/* 팀 캘린더/타임라인 — 상세 페이지(detail-page-shell) 테마·타이포 공유 */

.team-timeline-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  background: var(--detail-page-bg, #f2f5f9);
  color: var(--detail-text-title, #1e3a5f);
}

.team-timeline-view--embedded {
  height: 100%;
}

.detail-shell-team-wrap {
  height: 100%;
}

.team-timeline-header {
  flex-shrink: 0;
  justify-content: space-between;
  gap: 16px;
}

.team-timeline-header.detail-page-header {
  display: flex;
  align-items: center;
}

.team-timeline-header__left {
  min-width: 0;
}

.team-timeline-header__right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.team-timeline-toggle-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.team-timeline-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.team-timeline-toggle.is-on {
  background: #4a90d9;
  border-color: #3578c4;
}

.team-timeline-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.team-timeline-toggle.is-on .team-timeline-toggle__thumb {
  transform: translateX(20px);
}

.team-timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 20px;
  border-bottom: 1px solid var(--detail-border, #e8edf2);
  background: #fff;
  color: var(--detail-text-title, #1e3a5f);
}

.team-timeline-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-timeline-toolbar__icon {
  display: flex;
  color: var(--detail-ref-hub-dark, #2563ab);
}

.team-timeline-nav,
.team-timeline-today {
  border: 1px solid var(--detail-border, #e8edf2);
  border-radius: 8px;
  background: #fff;
  color: var(--detail-text-title, #1e3a5f);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.team-timeline-nav:hover,
.team-timeline-today:hover {
  border-color: var(--detail-ref-hub-border, #3578c4);
  color: var(--detail-ref-hub-dark, #2563ab);
}

.team-timeline-nav {
  width: 34px;
  height: 34px;
  padding: 0;
}

.team-timeline-today {
  padding: 4px 12px;
}

.team-timeline-month {
  min-width: 96px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: center;
}

.team-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.15px;
  color: var(--detail-text-muted, #64748b);
}

.team-timeline-legend__item.is-start {
  color: var(--detail-ref-hub-dark, #2563ab);
}

.team-timeline-legend__item.is-done {
  color: #64748b;
}

.team-timeline-legend__item.is-milestone {
  color: #059669;
}

.team-timeline-legend__item.is-issue {
  color: #dc2626;
}

.team-timeline-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.team-timeline-body.is-calendar {
  background: #fff;
  overflow: auto;
}

.team-timeline-body.is-gantt {
  display: flex;
  flex-direction: column;
  background: var(--detail-page-bg, #f2f5f9);
}

.team-timeline-empty {
  padding: 24px;
  color: var(--detail-text-muted, #64748b);
  font-size: 18px;
  text-align: center;
}

.team-month-calendar {
  padding: 12px 20px 24px;
}

.team-month-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.team-month-calendar__weekday {
  padding: 6px 4px;
  color: var(--detail-text-muted, #64748b);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-align: center;
}

.team-month-calendar__grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-month-calendar__week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  border-radius: 8px;
}

.team-month-calendar__week-row.is-highlighted {
  outline: 2px solid #f59e0b;
  outline-offset: 1px;
  background: rgba(245, 158, 11, 0.06);
}

.team-month-calendar__day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 126px;
  padding: 8px;
  border: 1px solid var(--detail-border, #e8edf2);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.team-month-calendar__day.is-outside {
  background: #f8fafc;
  opacity: 0.6;
}

.team-month-calendar__day.is-today .team-month-calendar__day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--detail-ref-hub, #4a90d9);
  color: #fff;
}

.team-month-calendar__day.is-weekend .team-month-calendar__day-num {
  color: #dc2626;
}

.team-month-calendar__day-num {
  flex-shrink: 0;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--detail-text-title, #1e3a5f);
}

.team-month-calendar__events {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
}

.team-month-calendar__event {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  padding: 3px 6px;
  border: none;
  border-radius: 4px;
  background: var(--detail-ref-hub-soft, #f5faff);
  color: var(--detail-ref-hub-dark, #2563ab);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.1px;
  text-align: left;
  cursor: pointer;
}

.team-month-calendar__event.is-task-done {
  background: #f1f5f9;
  color: #64748b;
}

.team-month-calendar__event.is-issue {
  background: #fff1f2;
  color: #be123c;
}

.team-month-calendar__event-icon {
  flex-shrink: 0;
  font-size: 18px;
}

.team-month-calendar__event-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-month-calendar__more {
  padding-left: 4px;
  color: var(--detail-text-muted, #64748b);
  font-size: 18px;
}

.team-portfolio-gantt {
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--detail-border, #e8edf2);
  background: #fff;
}

.team-portfolio-gantt .dtl-body {
  flex: 1;
  min-height: 0;
}

.team-portfolio-gantt .dtl-label-col {
  background: #fff;
  border-right: 1px solid var(--detail-border, #e8edf2);
}

.team-portfolio-gantt .dtl-label-head {
  color: var(--detail-text-muted, #64748b);
  font-size: 18px;
  font-weight: 700;
}

.team-portfolio-gantt .dtl-label-row {
  color: var(--detail-text-title, #1e3a5f);
  font-size: 18px;
  font-weight: 600;
}

.team-portfolio-gantt .dtl-tl-scroll {
  background: #fff;
}
