/* 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;
  margin-top: 6px;
}

/* 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;
}

/* 업무내역 패널 (참고 디자인 — 다크 테마) */
.tasks-panel-resizer {
  width: 8px;
  cursor: col-resize;
  background: transparent;
  z-index: 100;
  margin-left: -4px;
  margin-right: -4px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

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

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

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

.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.task-item-viewing {
  background: rgba(16, 185, 129, 0.08);
  /* border-left: 4px solid #10b981; */
  /* 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.ongoing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.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.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;
}

.detail-task-add-full-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.detail-task-add-full-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-style: solid;
}

/* 업무 추가 사이드 패널 스타일 — slide는 최초 오픈(.is-entering)만 */
.detail-add-task-panel {
  flex: 0 0 30%;
  min-width: 300px;
  background: #1e252b;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-add-task-panel.is-entering {
  animation: slideInRight 0.3s ease-out;
}

.detail-viewer-panel.form-open {
  overflow: hidden;
}

.detail-viewer-panel [data-dtt-slides-root] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-top-panels>[data-dtt-task-form-slot]:not(:empty) {
  flex: 0 0 30%;
  min-width: 300px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-top-panels>[data-dtt-task-form-slot]:empty {
  display: none;
}

.detail-top-panels>[data-dtt-task-form-slot] .detail-add-task-panel {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.detail-viewer-panel:fullscreen,
.detail-viewer-panel.is-fs {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  position: absolute;
  inset: 0;
  z-index: 999;
  background: #000;
}

.detail-viewer-panel:fullscreen .arrow,
.detail-viewer-panel.is-fs .arrow {
  z-index: 10000;
}

/* 카운터가 스트립 뒤로 숨지 않도록 바 전체를 함께 올린다 */
.detail-viewer-panel:fullscreen .slide-thumbs-bar,
.detail-viewer-panel.is-fs .slide-thumbs-bar {
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.detail-viewer-panel:fullscreen .slide-wrap,
.detail-viewer-panel.is-fs .slide-wrap {
  background: #000;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.detail-add-task-panel .panel-header {
  justify-content: space-between;
  padding: 18px 20px 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.detail-add-task-panel .panel-header h3 {
  font-size: 24px;
  color: #f9fafb;
  font-weight: 600;
  margin: 0;
}

.detail-add-task-panel .panel-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.detail-add-task-panel .panel-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 20px;
  /* html scrollbar-color 상속 차단 — 아래 webkit 다크 커스텀이 먹히게 */
  scrollbar-color: auto;
}

/* 다크모드 스크롤바 스타일 */
.detail-add-task-panel .panel-body::-webkit-scrollbar {
  width: 6px;
}

.detail-add-task-panel .panel-body::-webkit-scrollbar-track {
  background: transparent;
}

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

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

.detail-add-task-panel .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-add-task-panel label {
  font-size: 18px;
  color: #9ca3af;
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-add-task-panel input[type="text"],
.detail-add-task-panel input[type="date"],
.detail-add-task-panel input[type="url"],
.detail-add-task-panel .sdp-field {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.detail-add-task-panel .sdp-field {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-add-task-panel .sdp-field .sdp-field-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #9ca3af;
  opacity: 0.9;
}

.detail-add-task-panel .sdp-field .sdp-field-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.detail-add-task-panel .sdp-field .sdp-field-value {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.detail-add-task-panel .sdp-field.date-error {
  border-color: #ff4444;
}

.detail-add-task-panel .sdp-field:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-add-task-panel input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ── Single / range date picker (.sdp-*) — light default, dark via --dark ── */
/* 색은 메인 기간 필터 팝오버(.drf-popover, layout.css)와 같은 값을 쓴다.
   다크 테마는 아래 .sdp-popover--dark 에서 같은 토큰만 다시 지정한다. */
.sdp-popover {
  --sdp-accent: #168044;
  --sdp-accent-dark: #1a6e4c;
  --sdp-accent-soft: rgba(22, 128, 68, 0.12);
  --sdp-accent-muted: rgba(22, 128, 68, 0.16);
  --sdp-accent-preview: rgba(22, 128, 68, 0.52);
  --sdp-surface: #fafafa;
  --sdp-field-bg: var(--card-white);
  --sdp-grid-line: #e6e6e6;
  --sdp-today-bg: #ffdc9a;
  --sdp-today-fg: var(--brown-dark, #3e332c);
  --sdp-text-strong: #000;
  --sdp-text-sub: #555;
  --sdp-text-dim: var(--text-muted);
  --sdp-text-day: var(--text-main);

  position: fixed;
  z-index: 12000;
  background: var(--sdp-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 16px 48px -16px rgba(62, 51, 44, 0.28), 0 2px 8px rgba(62, 51, 44, 0.06);
  padding: 12px;
  color: var(--sdp-text-day);
  font-family: inherit;
  box-sizing: border-box;
}

.sdp-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--sdp-grid-line);
  background: var(--sdp-field-bg);
  color: var(--sdp-text-strong);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.sdp-nav-btn:hover {
  background: var(--sdp-accent-soft);
  color: var(--sdp-accent-dark);
  border-color: var(--sdp-accent-dark);
}

.sdp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.sdp-weekday {
  text-align: center;
  font-size: 13px;
  color: var(--sdp-text-strong);
  padding: 4px 0;
}

/* 메인 팝오버와 동일 — 주말은 파랑·빨강 대신 보조 톤으로 낮춘다 */
.sdp-weekday.is-sat,
.sdp-weekday.is-sun {
  color: var(--sdp-text-sub);
}

.sdp-weeks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sdp-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* z-index:0 으로 스태킹 컨텍스트를 만들어, 오늘 마커(::before, z-index:-1)가
   범위 채움 위 · 날짜 숫자 아래에 깔리게 한다 */
.sdp-day {
  position: relative;
  z-index: 0;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sdp-text-day);
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.sdp-day:hover:not(:disabled) {
  background: var(--sdp-accent-soft);
}

.sdp-day.is-other-month {
  color: var(--sdp-text-dim);
}

/* 오늘은 선택과 무관하게 알아볼 수 있는 앰버 원형 마커 (메인 팝오버와 동일).
   칸이 가로로 넓어 배경 대신 정원(34×34) 의사요소를 가운데 깐다 —
   범위 막대가 오늘에서 끊기지 않는다. */
.sdp-day.is-today:not(.is-selected) {
  color: var(--sdp-today-fg);
  font-weight: 800;
}

.sdp-day.is-today:not(.is-selected)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 34px;
  height: 34px;
  margin: auto;
  border-radius: 50%;
  background: var(--sdp-today-bg);
}

.sdp-day.is-selected {
  background: var(--sdp-accent);
  color: #fff;
  font-weight: 700;
}

.sdp-day.is-sat:not(.is-selected),
.sdp-day.is-sun:not(.is-selected) {
  color: var(--sdp-text-sub);
}

.sdp-day.is-other-month.is-sat,
.sdp-day.is-other-month.is-sun {
  color: var(--sdp-text-dim);
}

.sdp-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sdp-day.is-in-range,
.sdp-day.is-preview {
  background: var(--sdp-accent-muted);
  border-radius: 0;
}

.sdp-day.is-preview {
  background: var(--sdp-accent-soft);
}

.sdp-day.is-preview-end {
  box-shadow: inset 0 0 0 1px var(--sdp-accent-preview);
  border-radius: 8px;
}

.sdp-day.is-range-start {
  border-radius: 8px 0 0 8px;
}

.sdp-day.is-range-end {
  border-radius: 0 8px 8px 0;
}

.sdp-day.is-range-start.is-range-end {
  border-radius: 8px;
}

.sdp-day.is-selected.is-in-range,
.sdp-day.is-selected.is-preview {
  background: var(--sdp-accent);
}

/* ── Dual-month range popover (start | end independent) ──
   단일 피커(.sdp-popover-single)도 같은 패딩·헤더·그리드를 쓴다 */
.sdp-popover-range,
.sdp-popover-single {
  padding: 14px 16px 12px;
}

.sdp-dual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdp-dual-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sdp-month-panel {
  min-width: 0;
}

.sdp-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sdp-panel-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.sdp-panel-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--sdp-text-sub);
  letter-spacing: 0.02em;
}

.sdp-ym-selects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.sdp-year-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sdp-text-strong);
  white-space: nowrap;
}

.sdp-ym-select {
  min-height: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--sdp-grid-line);
  background: var(--sdp-field-bg);
  color: var(--sdp-text-strong);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.sdp-ym-select:focus {
  border-color: var(--sdp-accent-dark);
  box-shadow: 0 0 0 2px var(--sdp-accent-soft);
}

.sdp-ym-select option {
  background: var(--sdp-field-bg);
  color: var(--sdp-text-strong);
}

.sdp-range-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sdp-grid-line);
}

.sdp-range-label {
  font-size: 14px;
  color: var(--sdp-text-sub);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.sdp-range-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.sdp-range-btn {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--sdp-grid-line);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.sdp-range-btn-cancel {
  background: var(--sdp-field-bg);
  color: var(--sdp-text-strong);
}

.sdp-range-btn-cancel:hover {
  background: var(--sdp-accent-soft);
  color: var(--sdp-accent-dark);
  border-color: var(--sdp-accent-dark);
}

.sdp-range-btn-apply {
  background: var(--sdp-accent);
  border-color: var(--sdp-accent);
  color: #fff;
  font-weight: 600;
}

.sdp-range-btn-apply:hover:not(:disabled) {
  background: var(--sdp-accent-dark);
}

.sdp-range-btn-apply:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Dark theme — 업무 상세 / 업무 추가 전용.
   구조·의미는 라이트와 같고 토큰 값만 어두운 표면에 맞춰 바꾼다.
   초록 강조·앰버 오늘 마커는 메인 팝오버와 같은 값을 그대로 쓴다. */
.sdp-popover--dark {
  --sdp-accent-dark: #2fae70;
  --sdp-accent-soft: rgba(255, 255, 255, 0.1);
  --sdp-accent-muted: rgba(22, 128, 68, 0.22);
  --sdp-surface: #1f2937;
  --sdp-field-bg: rgba(255, 255, 255, 0.06);
  --sdp-grid-line: rgba(255, 255, 255, 0.14);
  --sdp-text-strong: #f3f4f6;
  --sdp-text-sub: #9ca3af;
  --sdp-text-dim: #6b7280;
  --sdp-text-day: #f3f4f6;

  border: 1px solid var(--sdp-grid-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.sdp-popover--dark .sdp-nav-btn:hover {
  color: var(--sdp-text-strong);
  border-color: var(--sdp-grid-line);
}

.sdp-popover--dark .sdp-ym-select {
  background: rgba(0, 0, 0, 0.25);
}

.sdp-popover--dark .sdp-ym-select option {
  background: var(--sdp-surface);
}

.sdp-popover--dark .sdp-range-btn-cancel:hover {
  color: var(--sdp-text-strong);
  border-color: var(--sdp-grid-line);
}

.detail-add-task-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* padding: 8px; */
}

.detail-add-task-panel .panel-footer {
  display: flex;
  gap: 10px;
  padding: 24px 28px;
  background: #1e252b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-add-task-panel .cancel-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  border-radius: 6px;
  cursor: pointer;
}

.detail-add-task-panel .save-btn {
  flex: 2;
  padding: 10px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.detail-add-task-panel .save-btn:hover {
  background: #059669;
}

/* 프로젝트 기본 정보 섹션 */

/* 진행률 바 */

/* 이슈 목록 */

/* 버전 섹션 */

/* ══════════════════════════════
   워크플랜 타임라인 — 다크 테마
══════════════════════════════ */
.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;
  display: flex;
  flex-direction: column;
  background: #0f1419;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.detail-timeline-header {
  flex: 0 0 auto;
  padding: 0 16px;
  min-height: 44px;
  background: #141921;
  background: #262a31;
  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: var(--green);
  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: #0f1419;
  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: #0f1419;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.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: rgba(255, 255, 255, 0.4);
}

.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 rgba(255, 255, 255, 0.06);
}

.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: 32px;
  padding-bottom: 40px;
}

.dtl-label-row {
  height: var(--dtl-row-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.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: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dtl-label-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dtl-label-row.viewing {
  background: rgba(16, 185, 129, 0.15);
}

.dtl-label-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dtl-label-row.viewing .dtl-label-text {
  color: #10b981;
  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;
  /* 세로 스크롤바 공간을 항상 예약 — 스크롤바 등장/소멸로 너비가 바뀌어
     주차 셀(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: rgba(255, 255, 255, 0.02);
}

.dtl-tl-date-axis {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0f1419;
  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;
}

.dtl-tl-date-cell-span {
  text-align: center;
  justify-content: center;
}

.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 {
  color: var(--green);
  font-weight: 900;
  font-size: 16px;
}

.dtl-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--green);
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 50%, transparent);
}

.dtl-today-badge {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--card-white);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--green) 40%, transparent);
  z-index: 60;
  pointer-events: none;
  line-height: 1.2;
}

.dtl-tl-day-dividers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px var(--dtl-day-width));
}

.dtl-tl-row {
  display: flex;
  align-items: center;
  height: var(--dtl-row-h);
  gap: 0;
  margin: 0;
  border-radius: 0;
  transition: background 0.15s ease;
}

.dtl-tl-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dtl-tl-row.dtl-tl-row-viewing {
  background: rgba(16, 185, 129, 0.15);
}

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

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

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

.dtl-tl-bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--dtl-progress-pct, 0%);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px 0 0 4px;
  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-waiting {
  background: var(--orange);
  border: 1px solid var(--orange);
}

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

.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;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  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;
}

/* fit-to-width(전체) 등 dayWidth가 좁을 때 — 바는 얇게, 라벨은 바 아래로 빼냄 */
.dtl-tl-bar.is-compact {
  height: 4px;
  padding: 0;
  border-radius: 2px;
}

.dtl-tl-bar.is-compact .dtl-tl-bar-label {
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}

.dtl-tl-bar.is-compact .dtl-tl-bar-percent {
  display: none;
}

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

.app.timeline-only-view .detail-timeline-panel {
  --dtl-row-h: 36px;
}

.app.timeline-only-view .detail-timeline-header {
  min-height: 38px;
  padding: 0 12px;
  gap: 8px;
}

.app.timeline-only-view .detail-timeline-header span {
  font-size: 15px;
}

.app.timeline-only-view .detail-timeline-header-right {
  gap: 6px;
}

.app.timeline-only-view .dtl-legend {
  gap: 6px;
}

.app.timeline-only-view .dtl-legend-item {
  font-size: 12px;
}

.app.timeline-only-view .dtl-legend-item::before {
  width: 8px;
  height: 8px;
}

.app.timeline-only-view .dtl-view-btn,
.app.timeline-only-view .dtl-filter-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 14px;
}

.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;
}

/* ── 뷰어 하단 썸네일 스트립 (구 .slide-meta-fixed 리스트 번호 대체) ──
   첨부 2건 이상일 때만 렌더된다. 이미지 위에 겹치지 않도록 .slide-wrap 의
   bottom 을 스트립 높이만큼 밀어 영역을 나눠 쓴다. */
[data-dtt-slides-root] {
  /* 썸네일 43 + 상하 패딩 12 + 가로 스크롤바 6 + 위 테두리 1 */
  --dtt-thumbstrip-h: 62px;
  /* 카운터가 차지하는 최소 폭. 트랙 왼쪽에 같은 값을 패딩으로 줘서 가운데로 보이게 한다 */
  --dtt-thumbcount-w: 72px;
}

[data-dtt-slides-root].has-thumbs .slide-wrap {
  bottom: var(--dtt-thumbstrip-h);
  /* inset:0 과 함께 있는 height:100% 를 풀어야 bottom 이 먹는다 */
  height: auto;
}

/* 화살표는 스트립을 뺀 이미지 영역 기준으로 가운데 */
[data-dtt-slides-root].has-thumbs .arrow {
  top: calc((100% - var(--dtt-thumbstrip-h)) / 2);
}

/* 스트립과 카운터를 한 줄에 나란히 둔다.
   카운터를 스트립 위에 겹쳐 놓으면 자릿수가 늘거나(1/120) 스크롤 컨테이너가
   오른쪽 패딩을 흘릴 때 마지막 썸네일과 겹친다. 흐름 안에서 자리를 나눠 갖게 한다. */
.slide-thumbs-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dtt-thumbstrip-h);
  z-index: 30;
  display: flex;
  align-items: stretch;
  background: #0f1418;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.slide-thumbs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  /* 왼쪽 여백을 카운터 폭과 같게 둬야 트랙이 가운데로 보인다 */
  padding: 6px 0 6px var(--dtt-thumbcount-w);
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  /* html scrollbar-color 상속 차단 — 아래 webkit 다크 커스텀이 먹히게 */
  scrollbar-color: auto;
}

/* 스크롤바는 .dtl-tl-scroll 과 같은 모양으로 맞춘다.
   (scrollbar-width / 상속된 scrollbar-color 가 있으면 Chrome 이 webkit 커스텀을 무시한다) */
.slide-thumbs::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

.slide-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* 썸네일이 스크롤돼도 따라 움직이지 않도록 스트립 밖(형제)에 둔다 */
.slide-thumbs-count {
  flex: 0 0 auto;
  min-width: var(--dtt-thumbcount-w);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  box-sizing: border-box;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

/* margin:auto 로 가운데 정렬 — 썸네일이 넘치면 auto 가 0 이 되어 왼쪽부터 스크롤된다.
   (컨테이너에 justify-content:center 를 주면 넘칠 때 왼쪽이 잘려 못 본다) */
.slide-thumbs-track {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
}

.slide-thumb {
  position: relative;
  flex: 0 0 auto;
  height: 43px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #1b2127;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.65;
}

.slide-thumb:hover {
  opacity: 1;
}

.slide-thumb.is-active {
  border-color: #00c471;
  opacity: 1;
}

.slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 첫 프레임을 썸네일로 쓴다. 로드 실패해도 검은 타일 + 재생 배지로 영상임은 읽힌다 */
.slide-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}

/* 정지 이미지와 구분되도록 재생 배지를 겹친다 */
.slide-thumb-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.slide-thumb-file {
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

/* 읽기 전용 업무 트리 (계층 tasks) */
.detail-task-tree {
  display: flex;
  flex-direction: column;

}

.detail-task-tree-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px 12px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--panel-text-soft);
  font-family: inherit;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.detail-task-tree-row.is-viewing {
  background: rgba(16, 185, 129, 0.2);
  position: relative;
}

.detail-task-tree-row.is-viewing::after,
.detail-task-row.task-item-viewing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--green-emerald);
}

.detail-task-tree-expand,
.detail-task-tree-expand-spacer {
  flex: 0 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: end;
  color: var(--panel-text-muted);
}

/* 계층 번호 (1 / 1.1 …) — 뷰어 스케일 */
.detail-task-tree-num {
  flex: 0 0 30px;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.task-row-bottom .detail-task-tree-num {
  font-size: 22px;
}

.detail-task-tree-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--panel-text);
}

.detail-task-tree-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--panel-text-muted);
  font-size: 14px;
}

/* 듀얼모드 상세 — 1뎁스 부모 행 끝 날짜 */
.app.timeline-only-view .detail-task-tree-row--with-date {
  flex-wrap: nowrap;
  gap: 8px;
}

.app.timeline-only-view .detail-task-tree-row--with-date .detail-task-tree-name {
  flex: 1;
  min-width: 0;
}

.app.timeline-only-view .detail-task-tree-inline-date {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ─── 업무 등록/수정 패널 — 이슈 영역 다크 대응 ─────────────────
   패널 배경은 rgb(30,37,43) 인데 이슈 카드·버튼만 밝은 값(#F8FAFC, #FFF)이라
   그 영역만 강하게 튀었다. `.detail-add-task-panel` 하위로만 스코프하므로
   같은 마크업을 쓰는 다른 화면에는 영향이 없다.
   (마크업 근거: js/ui/issueSection.js) */

/* 배경은 modal.css `.issue-tag-list .tag.issue-tag` 가 잡고 있어 선택자를 맞춰 올린다 */
.detail-add-task-panel .issue-tag-list .tag.issue-tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.detail-add-task-panel .issue-tag-list .tag.issue-tag:hover {
  background: rgba(255, 255, 255, 0.08);
}

.detail-add-task-panel .issue-tag-list .tag.issue-tag.pinned {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.38);
}

.detail-add-task-panel .issue-tag-list .tag.issue-tag.pinned:hover {
  background: rgba(239, 68, 68, 0.16);
}

.detail-add-task-panel .issue-text {
  color: rgba(255, 255, 255, 0.92);
}

.detail-add-task-panel .issue-detail-sub {
  color: rgba(255, 255, 255, 0.55);
}

.detail-add-task-panel .add-issue-toggle-btn {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8f8f;
}

.detail-add-task-panel .add-issue-toggle-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

.detail-add-task-panel .pin-btn-small,
.detail-add-task-panel .edit-btn-small,
.detail-add-task-panel .del-btn-small {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.detail-add-task-panel .pin-btn-small:hover,
.detail-add-task-panel .edit-btn-small:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* 고정(핀) 활성 — 원래 노랑(#fef3c7/#d97706)은 이 패널의 초록·붉은색과 겉돌아
   이슈 계열의 옅은 붉은색으로 맞춘다. 핀 이슈 카드(더 옅은 붉은 배경) 위에서
   농도 차이로 '켜짐'이 구분된다. */
.detail-add-task-panel .pin-btn-small.active {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ff9b9b;
}

.detail-add-task-panel .pin-btn-small.active:hover {
  background: rgba(239, 68, 68, 0.40);
  border-color: rgba(239, 68, 68, 0.70);
  color: #ffb3b3;
}

.detail-add-task-panel .del-btn-small:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff8f8f;
}

/* 이슈 상세 textarea 다크 대응.
   modal.css 의 `.issue-input-fields textarea`(흰 배경)와 `.detail-add-task-panel textarea`(다크)는
   특정도가 같은데(0,1,1) 흰 배경 쪽이 뒤에 있어 이겨버린다. 제목 input 은 `input[type="text"]`라
   특정도가 높아 이미 다크로 나온다. 패널 스코프를 얹어 특정도(0,2,1)로 되돌린다. */
.detail-add-task-panel .issue-input-fields textarea {
  background: #24282d;
  border-color: #374151;
  color: #ffffff;
}

.detail-add-task-panel .issue-input-fields textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.detail-add-task-panel .issue-input-fields textarea:focus {
  border-color: #00c471;
  box-shadow: 0 0 0 3px rgba(0, 196, 113, 0.15);
}