/* Detail Tasks Timeline — standalone HTML module
   Required CSS variables (override in :root if needed) */
:root {
  --bg-beige: #f0ede6;
  --card-white: #ffffff;
  --border-light: #e5e2db;
  --brown-dark: #3e332c;
  --brown-main: #684e42;
  --red: #ff3b30;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --green: #2e7d32;
  --blue: #1565c0;
  --grey: #6d645e;
  --text-main: #1e1b18;
  --text-muted: #8e8780;
}

.dtt-root.detail-view {
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f1419;
  overflow: hidden;
}

.dtt-root .detail-top .side-title-main {
  font-size: 22px;
  color: #e8f5f0;
}

.dtt-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #0f1419;
  color: #f3f4f6;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  overflow: hidden;
}

.dtt-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dtt-tasks-section {
  flex: 1 1 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-tasks-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px 12px 0;
  padding-inline: initial !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.detail-tasks-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.task-count-badge {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 6px;
}

.date-sep {
  opacity: 0.7;
}

.dtt-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

.dtt-empty-state .empty-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
}

.dtt-clock-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.dtl-label-expand svg {
  display: block;
}

.detail-tasks-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #141921;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-tasks-body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 0;
  position: relative;
  /* html scrollbar-color 상속 차단 — 아래 webkit 다크 커스텀이 먹히게 */
  scrollbar-color: auto;
}

.detail-tasks-body::-webkit-scrollbar {
  width: 6px;
}

.detail-tasks-body::-webkit-scrollbar-track {
  background: transparent;
}

.detail-tasks-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.detail-tasks-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 상세 업무 총 카운트 */

/* 업무 리스트 행 */
.detail-task-row {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  min-height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.detail-task-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.detail-task-row.is-child-task {
  background: rgba(0, 0, 0, 0.5);
}

.detail-task-row.task-item-viewing {
  background: rgba(16, 185, 129, 0.08);
  /* border-left: 4px solid #10b981; */
  /* padding-left: 16px; */
}

.detail-task-row.is-holding {
  border-left: 4px solid rgba(255, 255, 255, 0.92);
  padding-left: 16px;
}

.task-row-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.task-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.task-row-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}

/* 날짜 줄과 분리된 제목 줄 — column 컨테이너(align-items:center)에서 좌측 정렬 유지 */
.task-row-content>.task-row-bottom {
  width: 100%;
}

.detail-task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail-task-date,
.detail-task-daterange {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.detail-task-meta-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}

.detail-task-assignees {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-task-name {
  flex: 1;
  font-size: 24px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-task-desc {
  margin-top: 10px;
  font-size: 22px;
  color: #ffffff;
  line-height: 1.5;
  white-space: pre-wrap;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
  padding-top: 10px;
  word-break: break-all;
  width: 100%;
}

.task-attachment-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #306151;
  flex-shrink: 0;
}

.detail-task-row:hover .task-handle {
  opacity: 1;
}

.detail-task-badge {
  font-size: 18px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
  min-width: 54px;
  text-align: center;
}

.task-item-viewing .detail-task-badge {
  font-size: 20px;
}

.detail-task-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.detail-task-badge.holding {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.detail-task-badge.standby {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.detail-task-badge.ongoing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.detail-task-badge.waiting {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.task-info-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: #c6dcff0f;
  border: 1px solid #ffffff0f;
  border-radius: 4px;
  color: #a6a9ae;
  text-decoration: none;
  transition: all 0.2s;
  flex: 0 0 26px;
}

.task-link-btn:hover {
  background: #00c47122;
  color: #fff;
  border-color: #00c471;
}

/* 이슈 핀 — 링크 버튼과 분리(비클릭·빨간 배지 형태) */
.task-issue-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff8585;
  /* 아이콘 대신 ! 문자를 쓰므로 크기·굵기를 지정한다 */
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  pointer-events: none;
}

.task-issue-flag:hover {
  background: rgba(255, 107, 107, 0.14);
  color: #ff8585;
  border-color: rgba(255, 107, 107, 0.4);
}

/* 펼침(viewing) 시 상세 내용 아래 이슈 목록 */
.detail-task-issues {
  width: 100%;
  margin-top: 10px;
  border-top: 1px dotted rgba(255, 107, 107, 0.35);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-task-issue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* 메인 카드(.task-issue-text .issue-icon)와 같은 빨간 원 안의 ! 로 통일.
   원·색은 .issue-icon 이 담당하고, 크기·정렬은 메인 카드 값(12px/9px)에 맞춘다.
   부모가 flex-start 라 아이콘만 위로 튀므로 첫 줄 높이에 맞춰 중앙에 놓는다. */
.detail-task-issue-pin {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  font-size: 9px;
  align-self: flex-start;
  margin-top: 8px;
}

.detail-task-issue-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-task-issue-title {
  font-size: 19px;
  font-weight: 600;
  color: #ffd7d7;
  word-break: break-all;
}

.detail-task-issue-detail {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.timeline-panel-resizer {
  height: 8px;
  cursor: row-resize;
  background: transparent;
  z-index: 100;
  margin-top: -4px;
  margin-bottom: -4px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.timeline-panel-resizer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
}

.timeline-panel-resizer:hover {
  background: rgba(16, 185, 129, 0.1);
}

.timeline-panel-resizer:hover::after {
  background: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.detail-timeline-panel {
  --dtl-row-h: 36px;
  --dtt-tl-bg: #0f1419;
  --dtt-tl-track-bg: #0f1419;
  --dtt-tl-row-odd: #0f1419;
  --dtt-tl-row-even: #262b2f;
  --dtt-tl-row-hover: rgba(255, 255, 255, 0.04);
  --dtt-tl-track-row-hover: rgba(255, 255, 255, 0.03);
  --dtt-tl-row-viewing: rgba(16, 185, 129, 0.15);
  --dtt-tl-row-border: rgba(255, 255, 255, 0.06);
  --dtt-tl-line: rgba(255, 255, 255, 0.08);
  --dtt-tl-line-grid: rgba(255, 255, 255, 0.03);
  --dtt-tl-text: rgba(255, 255, 255, 0.75);
  --dtt-tl-text-muted: rgba(255, 255, 255, 0.5);
  --dtt-tl-text-dim: rgba(255, 255, 255, 0.4);
  --dtt-tl-accent: #10b981;
  --dtt-tl-today-highlight: rgba(38, 42, 49, 0.5);
  display: flex;
  flex-direction: column;
  background: var(--dtt-tl-bg);
  border-top: 1px solid var(--dtt-tl-line);
  overflow: hidden;
}

.detail-timeline-header {
  flex: 0 0 auto;
  padding: 0 16px;
  min-height: 44px;
  background: #26272f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-timeline-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-timeline-header-left .dtl-zoom-control {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-timeline-header-left svg {
  color: rgba(255, 255, 255, 0.85);
}

.detail-timeline-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-timeline-header span {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.dtl-filter-summary {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dtl-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dtl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.dtl-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dtl-legend-item.is-ongoing::before {
  background: var(--green);
}

.dtl-legend-item.is-waiting::before {
  background: var(--orange);
}

.dtl-legend-item.is-holding::before {
  background: #d97706;
}

.dtl-legend-item.is-standby::before {
  background: #d97706;
}

.detail-timeline-body {
  flex: 1 1 0;
  overflow: hidden;
  padding: 0;
  background: var(--dtt-tl-bg);
  display: flex;
  flex-direction: column;
}

.dtl-timeline-shell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dtl-timeline-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
  overflow: hidden;
}

/* ── 보기 구분 토글 (전체 / 주간 / 일간) ── */
.dtl-zoom-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.dtl-zoom-hint {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.dtl-zoom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 72px;
}

.dtl-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.dtl-zoom-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.dtl-zoom-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.dtl-zoom-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dtl-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dtl-status-filter {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dtl-view-btn {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dtl-view-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.dtl-view-btn.active {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.dtl-filter-btn {
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 0 9px;
}

.dtl-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.dtl-filter-btn.active {
  border-color: var(--green);
  background: rgba(46, 125, 50, 0.18);
  color: var(--green);
}

/* ── 좌측 업무 제목 컬럼 ── */
.dtl-label-col {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dtt-tl-bg);
  border-right: 1px solid var(--dtt-tl-line);
}

.dtl-label-head {
  flex: 0 0 auto;
  min-height: 32px;
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 12px 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dtt-tl-text-dim);
  background: var(--dtt-tl-bg);
}

.detail-timeline-body .dtl-label-head {
  height: var(--dtl-date-axis-h, 44px);
  min-height: var(--dtl-date-axis-h, 44px);
  padding: 0 12px;
  align-items: center;
  box-sizing: border-box;
  border-bottom: 1px solid var(--dtt-tl-line);
}

.dtl-tl-date-axis.has-sub-row~.dtl-tl-rows {
  margin-top: 0;
}

.dtl-label-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.dtl-label-list {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 0;
  padding-bottom: 40px;
}

.dtl-label-list>.dtl-label-row {
  height: var(--dtl-row-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 0;
  border-top: 1px solid var(--dtt-tl-row-border);
  background: var(--dtt-tl-row-odd);
  transition: background 0.15s ease;
}

.dtl-label-list>.dtl-label-row:nth-child(even) {
  background: var(--dtt-tl-row-even);
}

.dtl-label-expand,
.dtl-label-expand-spacer {
  flex: 0 0 24px;
  height: 24px;
}

.dtl-label-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 4px;
}

.dtl-label-expand:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 계층 번호 (1 / 1.1 …) */
.dtl-label-num {
  flex: 0 0 auto;
  margin-right: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dtt-tl-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dtl-label-list>.dtl-label-row:hover {
  background: var(--dtt-tl-row-hover);
}

.dtl-label-list>.dtl-label-row.viewing {
  background: var(--dtt-tl-row-viewing);
}

.dtl-label-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--dtt-tl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dtl-label-row.viewing .dtl-label-text {
  color: var(--dtt-tl-accent);
  font-weight: 600;
}

.detail-timeline-empty {
  flex: 1;
  padding: 24px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  text-align: center;
}

.dtl-tl-scroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: var(--dtt-tl-track-bg);
  /* 세로 스크롤바 공간을 항상 예약 — 스크롤바 등장/소멸로 너비가 바뀌어
     주차 셀(dtlDayWidth) 정렬이 깨지는 것을 방지 */
  scrollbar-gutter: stable;
  /* html scrollbar-color 상속 차단 — 아래 webkit 다크 커스텀이 먹히게 */
  scrollbar-color: auto;
  cursor: grab;
  user-select: none;
  position: relative;
}

.dtl-tl-scroll:active {
  cursor: grabbing;
}

/* 가로 스크롤바는 숨기고(드래그로 이동) 세로 스크롤바만 표시 */
.dtl-tl-scroll::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

.dtl-tl-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dtl-tl-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dtl-tl-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
  background-clip: padding-box;
}

.dtl-tl-inner {
  position: relative;
  min-height: 100%;
}

.dtl-tl-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dtl-tl-grid .dtl-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--dtt-tl-line-grid);
}

.dtl-tl-date-axis {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dtt-tl-bg);
  margin-bottom: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dtl-tl-date-axis.has-sub-row {
  margin-bottom: 0;
}

.dtl-tl-date-row {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.dtl-tl-date-row-month {
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.dtl-tl-date-row-week,
.dtl-tl-date-row-day {
  height: 28px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dtl-tl-date-cell {
  position: absolute;
  transform: translateX(0);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  box-sizing: border-box;
}

.dtl-tl-date-row-month .dtl-tl-date-cell {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  align-items: center;
  min-width: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.dtl-tl-date-cell-span {
  text-align: center;
  justify-content: center;
  height: 100%;

}

.dtl-tl-date-row-week .dtl-tl-date-cell,
.dtl-tl-date-row-day .dtl-tl-date-cell {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.dtl-tl-date-row-day .dtl-tl-date-cell-today {
  font-weight: 700;
  background: var(--dtt-tl-today-highlight);
  height: 100%;
}

.dtl-tl-date-row-week .dtl-tl-date-cell-today-week {
  color: var(--green);
  font-weight: 900;
}

.dtl-tl-axis-dividers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.dtl-tl-axis-dividers.is-day {
  background-image: repeating-linear-gradient(to right,
      var(--dtt-tl-line-grid) 0 1px,
      transparent 1px var(--dtl-day-width));
}

.dtl-tl-axis-divider-group {
  position: absolute;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
}

.dtl-tl-axis-divider-group.is-week {
  background-image: repeating-linear-gradient(to right,
      var(--dtt-tl-line-grid) 0 1px,
      transparent 1px calc(100% / var(--dtl-segment-count)));
}

.dtl-tl-axis-divider-group.is-month {
  background-image: repeating-linear-gradient(to right,
      var(--dtt-tl-line-grid) 0 1px,
      transparent 1px calc(100% / var(--dtl-segment-count)));
}

.dtl-tl-axis-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--dtt-tl-line-grid);
}

.dtl-tl-rows>.dtl-tl-row {
  display: flex;
  align-items: center;
  position: relative;
  height: var(--dtl-row-h);
  gap: 0;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid var(--dtt-tl-row-border);
  background: var(--dtt-tl-row-odd);
  transition: background 0.15s ease;
}

.dtl-tl-rows>.dtl-tl-row:nth-child(even) {
  background: var(--dtt-tl-row-even);
}

.dtl-tl-rows>.dtl-tl-row:hover {
  background: var(--dtt-tl-track-row-hover);
}

.dtl-tl-rows>.dtl-tl-row.dtl-tl-row-viewing {
  background: var(--dtt-tl-row-viewing);
}

.dtl-tl-rows {
  padding-top: 0;
  padding-bottom: 40px;
}

.dtl-tl-row-day-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--dtt-tl-today-highlight);
  pointer-events: none;
  z-index: 2;
}

.dtl-tl-bar-wrap {
  flex: 1;
  position: relative;
  height: var(--dtl-row-h);
  display: flex;
  align-items: center;
  z-index: 4;
}

.dtl-tl-bar {
  position: absolute;
  height: 28px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  box-sizing: border-box;
  min-width: 4px;
  transition: border-color 0.15s ease;
  overflow: hidden;
  z-index: 4;
}

.dtl-tl-bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--dtl-progress-pct, 0%);
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.dtl-tl-bar.is-ongoing,
.dtl-tl-bar.is-done {
  background: var(--green);
  border: 1px solid var(--green);
}

.dtl-tl-bar.is-holding {
  background: #d97706;
  border: 1px solid #d97706;
}

.dtl-tl-bar.is-waiting {
  background: var(--orange);
  border: 1px solid var(--orange);
}

.dtl-tl-bar.is-standby {
  background: #d97706;
  border: 1px solid #d97706;
}

.dtl-tl-bar.active {
  border-width: 2px;
  z-index: 10;
}

.dtl-tl-bar-label {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  line-height: 1;
}

.dtl-tl-bar-percent {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.dtl-tl-bar-fill {
  display: none;
}

/* ── Detail panel layout (extracted) ──
/* Detail View */
.detail-view {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  opacity: 0;
  background: #f7faf8;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.35s ease;
}

.right.detail-open .timeline-view {
  transform: translateX(-20%);
  opacity: 0;
}

.right.detail-open .detail-view {
  transform: translateX(0);
  opacity: 1;
}

.detail-top {
  position: relative;
  min-height: 48px;
  /* 접힘·펼침 동일 top 기준 — 한 줄일 때 예전 center와 비슷한 위치 */
  padding: 10px 22px 10px 20px;
  box-sizing: border-box;
  background: linear-gradient(0deg, #001d14 0%, #0e4732 80%, #22473d 100%);
  border-bottom: 1px solid #135643;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.detail-top::-webkit-scrollbar {
  display: none;
}

.detail-top-left {
  display: flex;
  /* common_header center !important 상시 오버라이드 — 접힘/펼침 Y 동일 */
  align-items: flex-start !important;
  height: auto;
  align-self: flex-start;
  opacity: 1;
  pointer-events: auto;
  /* 설명이 줄어들 수 있어야 우측(링크·배지)과 겹치지 않는다 */
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
}

/* common_header.css 의 스코프 없는 `.side-left-group { flex:0 1 520px !important }` 가
   상세 헤더까지 먹어 좌측이 520px 에 묶인다. 여기서만 풀어 남는 폭을 다 쓰게 한다. */
.detail-top .side-left-group {
  display: flex;
  align-items: flex-start !important;
  height: auto;
  align-self: flex-start;
  gap: 14px;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.detail-top .side-title-container {
  flex: 0 0 auto;
  min-width: max-content;
}

.detail-top-left>div[style*="margin-left:auto"] {
  margin-left: 0 !important;
  min-width: 0;
}

.detail-top .side-title-wrap,
.detail-top .detail-title-info,
.detail-top .detail-main-title {
  min-width: max-content;
}

.detail-top .side-title-main {
  display: inline-flex;
  min-width: max-content;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  /* common_header.css 의 max-width:340px !important 해제.
     overflow:visible 과 겹치면 제목이 박스 밖으로 그려져 옆 요소를 덮는다. */
  max-width: none !important;
}

.detail-title-info {
  gap: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.detail-main-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 설명 + 펼침 버튼. 길면 한 줄 요약(말줄임)으로 두고 버튼으로 펼친다 */
.side-desc-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.side-desc-text-top {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-left: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.4;
  padding-left: 0;
  margin-top: 0;
  display: block;
  -webkit-line-clamp: unset;
}

.side-desc-toggle {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.side-desc-toggle:hover {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* display:inline-flex 가 hidden 속성을 이기므로 명시적으로 숨긴다 */
.side-desc-toggle[hidden] {
  display: none;
}

/* 펼침 — 정렬/패딩은 접힘과 동일. 줄바꿈·토글 회전만 변경 */
.detail-top.is-desc-expanded .side-desc-text-top {
  white-space: normal !important;
  text-overflow: clip !important;
  /* 설명이 아주 길어도 헤더가 화면을 삼키지 않도록 상한을 둔다 */
  overflow: hidden auto !important;
  max-height: 30vh;
}

.detail-top.is-desc-expanded .side-desc-toggle {
  transform: rotate(180deg);
}

.detail-issue-inline {
  display: none;
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  font-size: 18px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  line-height: 1.2;
}

.detail-issue-inline.show {
  display: inline-flex;
  align-items: center;
}

.edit-btn {
  background: linear-gradient(180deg, #0d3f34 0%, #051f19 100%);
  border: 1.5px solid #1a4d42;
  box-shadow:
    0 0 0 1px #000,
    0 2px 2px rgba(0, 0, 0, 0.6);
  color: rgb(206, 241, 235);
  padding: 0 14px;
  height: 32px;
  border-radius: 20px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edit-btn:hover {
  background: linear-gradient(180deg, #115244 0%, #072b23 100%);
  border-color: #36816d;
  color: #fff;
  transform: translateY(-1px);
}

.back-btn {
  background: linear-gradient(180deg, #0d3f34 0%, #051f19 100%);
  border: 1.5px solid #1a4d42;
  box-shadow:
    0 0 0 1px #000,
    0 2px 2px rgba(0, 0, 0, 0.6);
  color: rgb(206, 241, 235);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-right: 12px;
}

.back-btn:hover {
  background: linear-gradient(180deg, #115244 0%, #072b23 100%);
  border-color: #36816d;
  color: #fff;
  transform: translateX(-2px) scale(1.05);
  box-shadow:
    0 0 0 1px #000,
    0 0 8px rgba(36, 204, 158, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.7);
}

.detail-top-right {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  z-index: 60;
  flex: 0 0 auto;
  max-width: none;
  min-width: max-content;
  margin-left: auto;
}

.detail-top-right .detail-related-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: max-content;
  max-width: none;
  overflow: visible;
}

.detail-top-right .related-link-btn {
  flex: 0 0 auto;
  min-width: max-content;
}

.detail-top-right .related-link-btn span {
  display: block;
  min-width: max-content;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.detail-top-right .detail-cell-badges {
  flex: 0 0 auto;
}

.detail-close-btn {
  background: linear-gradient(180deg, #0d3f34 0%, #051f19 100%);
  border: 1.5px solid #1a4d42;
  box-shadow:
    0 0 0 1px #000,
    0 2px 2px rgba(0, 0, 0, 0.6);
  color: rgb(206, 241, 235);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.detail-close-btn:hover {
  background: linear-gradient(180deg, #115244 0%, #072b23 100%);
  border-color: #36816d;
  color: #fff;
  transform: translateY(-1px);
}

.detail-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ──────────────────────────────
   3-Panel Layout
────────────────────────────── */
.detail-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 상단 패널 영역 (시안 + 업무내역) */
.detail-top-panels {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

/* 시안 뷰어 패널 */
.detail-viewer-panel {
  min-width: 0;
  position: relative;
  background: #111;
  border-right: 1px solid #1a3d33;
  overflow: hidden;
}

.slide-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden;
  z-index: 2;
}

.slide-track {
  height: 100%;
  display: flex;
  /* transition: transform .45s cubic-bezier(.22,.61,.36,1); 애니메이션 제거 */
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-content-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #000;
}

.slide-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* stable 은 html 이 스크롤러가 된 뒤로는 상시 빈 여백을 예약해 버린다.
   문서 스크롤바는 최소 크기(--wd-min-w/h) 미만에서만 나타나므로 예약이 불필요하다. */
html {
  scrollbar-gutter: auto;
}

.slide-pdf {
  width: 100%;
  height: 100%;
  border: none;
  color-scheme: dark;
}

.zoom-container {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}

.zoom-controls-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 110;
}

.zoom-menu-wrapper {
  position: relative;
}

.zoom-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-menu-trigger {
  background: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 10px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-menu-trigger:hover,
.zoom-fs-btn:hover {
  background: rgba(60, 60, 60, 0.9);
  transform: translateY(-1px);
}

.zoom-fs-btn {
  background: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-fs-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.zoom-percent {
  min-width: 40px;
  text-align: right;
}

.zoom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 230px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  z-index: 120;
  animation: menuAppear 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menuAppear {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zoom-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 115;
}

.menu-section {
  padding: 4px 0;
}

.menu-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #ddd;
  font-size: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-item-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  line-height: 1;
}

.menu-item-text {
  flex: 1;
}

.menu-check {
  color: #10b981;
}

.zoom-indicator-minimal {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.arrow.arrow-left {
  left: 32px;
}

.arrow.arrow-right {
  right: 32px;
}

/* ─── 자식창 헤더 작업셀 뱃지 스타일 ─── */
.detail-cell-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.detail-cell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 99px;
  letter-spacing: -0.2px;
  border: 1px solid #000000;
}

.detail-cell-badge-performing {
  color: #ffffff;
  background-color: #0000004f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-cell-badge-collaboration {
  color: #e5e7eb;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.related-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.related-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.related-link-btn span {
  font-weight: 500;
}

/* ==========================================================================
.side-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.side-title-main {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.main_tit, .main_tit a {
  color: #bad8ca;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 48, 36, 0.5);
}