@import url("./y10_home.css");
@import url("./y20_worklinks_weekly.css");
@import url("./y30_route_panels_work_estimate.css");
@import url("./y40_stats.css");
@import url("./y50_technote_modal.css");
@import url("./y55_technote_docs.css");
@import url("./y60_calendar.css");
@import url("./y70_ai_chat.css");

body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f6f9; }
/* 모바일에서 상단 fixed가 스크롤과 함께 움직이는 현상 완화(상위 transform 제거) */
#react-entry-point, #_dash-app-content {
    transform: none !important;
    filter: none !important;
}

.pc-view { display: block; }
.mobile-view { display: none; }

/* 📱 강제 모바일 모드: 터치 기기에서 가로 회전(폭 증가)해도 PC 브레이크포인트로 전환되지 않게 */
html.force-mobile .pc-view { display: none !important; }
html.force-mobile .mobile-view { display: block !important; }

/* 팝업 레이아웃 기본 */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.modal-content { background-color: #fff; padding: 0 !important; border-radius: 12px; width: 95%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden !important; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-header { padding: 20px; border-bottom: 1px solid #e2e8f0; background: #fff; z-index: 3100; position: relative; }
.modal-body-scroll { padding: 20px; overflow-y: auto !important; flex: 1; background: #fff; display: flex; flex-direction: column; }
.close-btn { position: absolute; top: 15px; right: 15px; font-size: 35px; font-weight: bold; color: #ef4444; cursor: pointer; z-index: 3200; line-height: 1; }
.modal-title { font-size: 20px; font-weight: bold; color: #1e293b; margin: 0; padding-right: 40px; }
.modal-section { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
.modal-pre { white-space: pre-wrap; font-family: inherit; background-color: #f8f9fa; padding: 12px; border-radius: 6px; margin-top: 8px; border: 1px solid #e2e8f0; }
/* 모바일 카드 상세 스타일을 PC 상세모달에서도 공통 사용 */
.mob-tr-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    margin-top: 8px;
    line-height: 1.45;
}
.mob-tr-detail-row--tight { margin-top: 6px; }
.mob-tr-detail-ico {
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px;
    color: #64748b;
}
.mob-tr-detail-label { font-weight: 800; color: #0f172a; }
.mob-tr-detail-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    white-space: pre-line;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.5;
}
.mob-tr-detail-box--desc {
    background: #fefce8;
    border-color: #fde68a;
}
.mob-tr-detail-box--history {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.mob-tr-history-line { display: block; color: #0f172a; }
.mob-tr-history-line--last { color: #0055aa; font-weight: 700; }
.modal-body-content { white-space: pre-wrap !important; word-break: break-all; line-height: 1.6; font-size: 16px; padding-top: 10px; }

/* 이미지 자동 축소 */
.modal-body-scroll img { max-width: 100% !important; height: auto !important; display: block; margin: 15px auto !important; border-radius: 8px !important; box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; }

/* =========================
   캘린더 모달(바텀시트) — 목업 스타일
   ========================= */
.cal-sheet-modal, .cal-form-modal {
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}
.cal-sheet-handle-row {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: #fff;
}
.cal-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
}
.cal-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
  background: #fff;
  border-bottom: 0.5px solid #f3f4f6;
}
.cal-sheet-date {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 0.5px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cal-sheet-body {
  padding: 12px 16px 18px;
  background: #fff;
}
.cal-sheet-list { margin-bottom: 12px; }
.cal-sheet-add-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #1a2744;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cal-sheet-add-plus { font-size: 16px; line-height: 1; }

.cal-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
  background: #fff;
  border-bottom: 0.5px solid #f3f4f6;
}
.cal-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.cal-form-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 0.5px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cal-form-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}
.cal-form-field { display: flex; flex-direction: column; gap: 6px; }
.cal-form-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-req { color: #dc2626; font-size: 10px; }
.cal-opt { color: #9ca3af; font-weight: 500; font-size: 10px; }
.cal-form-input {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  border: 0.5px solid #e5e7eb;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  background: #fafafa;
  color: #111827;
  box-sizing: border-box;
}
.cal-form-textarea {
  width: 100%;
  min-height: 56px;
  border-radius: 9px;
  border: 0.5px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: #fafafa;
  color: #111827;
  resize: none;
  line-height: 1.5;
  box-sizing: border-box;
}

/* 세그먼트(공통/개인, 종일/시간) */
.cal-seg-radio { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-seg-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.cal-seg-radio .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.cal-seg-input { display: none !important; }
.cal-seg-item {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 0.5px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}
.cal-seg-item--checked {
  background: #1a2744 !important;
  border-color: #1a2744 !important;
  color: #fff !important;
}
.cal-seg-item .cal-seg-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.cal-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-time-field { display: flex; flex-direction: column; gap: 6px; }
.cal-time-label { font-size: 11px; font-weight: 600; color: #374151; }

.cal-form-foot {
  padding: 10px 16px 20px;
  display: flex;
  gap: 8px;
  background: #fff;
}
.cal-btn-cancel {
  flex: .7;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  border: 0.5px solid #e5e7eb;
  font-weight: 700;
  cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cal-btn-save {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: #1a2744;
  color: #fff;
  border: none;
  font-weight: 800;
  cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================
   기술노트 작성 바텀시트 — 목업 스타일
   ========================= */
#write-tech-modal.modal {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 768px) {
  #write-tech-modal.modal {
    align-items: center;
    padding: 16px;
  }
}
.tn-sheet-modal {
  width: 100%;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
}
.tn-handle-row { display: flex; justify-content: center; padding: 10px 0 4px; background: #fff; }
.tn-handle { width: 36px; height: 4px; border-radius: 2px; background: #e5e7eb; }
.tn-sheet-head {
  padding: 4px 16px 12px;
  border-bottom: 0.5px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.tn-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tn-head-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tn-head-title { font-size: 15px; font-weight: 600; color: #111827; }
.tn-close-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: #f3f4f6; border: 0.5px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  font-size: 18px; line-height: 1; color: #374151;
}
.tn-form-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; overflow-y: auto; background: #fff; }
.tn-field { display: flex; flex-direction: column; gap: 6px; }
.tn-flabel { font-size: 11px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 4px; }
.tn-req { color: #dc2626; font-size: 10px; }
.tn-opt { color: #9ca3af; font-weight: 500; font-size: 10px; }
.tn-input {
  height: 40px; border-radius: 9px; border: 0.5px solid #e5e7eb;
  font-size: 13px; padding: 0 12px; outline: none; color: #111827;
  background: #fafafa; width: 100%; box-sizing: border-box;
}
.tn-input::placeholder { color: #9ca3af; font-size: 12px; }
.tn-input:focus { border-color: #1a56db; background: #fff; }
.tn-textarea {
  border-radius: 9px; border: 0.5px solid #e5e7eb;
  font-size: 13px; padding: 10px 12px; outline: none; color: #111827;
  background: #fafafa; width: 100%; box-sizing: border-box;
  resize: none; min-height: 140px; line-height: 1.6;
}
.tn-textarea::placeholder { color: #9ca3af; font-size: 12px; }
.tn-textarea:focus { border-color: #1a56db; background: #fff; }

/* 분류 칩 */
.tn-cat-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.tn-cat-chips input[type="radio"], .tn-cat-chips .form-check-input {
  appearance: none; -webkit-appearance: none;
  width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
}
.tn-chip-input { display: none !important; }
.tn-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 0.5px solid #e5e7eb;
  color: #6b7280;
  background: #f9fafb;
  white-space: nowrap;
  transition: all .12s;
}
.tn-chip--active {
  border-color: transparent !important;
  background: #dbeafe !important;
  color: #1e40af !important;
}

/* 파일 첨부 */
.tn-file-drop {
  border: 1.5px dashed #d1d5db;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fafafa;
  transition: all .12s;
}
.tn-file-drop:hover { border-color: #1a56db; background: #f0f7ff; }
.tn-file-drop-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tn-file-drop-text { flex: 1; }
.tn-file-drop-title { font-size: 12px; font-weight: 600; color: #374151; }
.tn-file-types { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tn-ftype { font-size: 10px; padding: 2px 7px; border-radius: 4px; font-weight: 600; background: #f3f4f6; color: #6b7280; }

/* 푸터 */
.tn-sheet-foot { padding: 10px 16px 24px; border-top: 0.5px solid #f3f4f6; display: flex; gap: 8px; flex-shrink: 0; background: #fff; }
.tn-cancel-btn {
  flex: .7;
  height: 46px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  border: 0.5px solid #e5e7eb;
  cursor: pointer;
}
.tn-save-btn {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  background: #1a2744;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =========================
   지침 관리(/guidelines) — 목업 스타일
   ========================= */
.guidelines-mock {
  max-width: none;
  margin: 0;
}
.guidelines-topbar { display: none; }
.guidelines-topbar-left { display: none; }
.guidelines-topbar-title { display: none; }
.guidelines-topbar-sub { display: none; }
.guidelines-topbar-menu { display: none; }
.guidelines-body { padding: 10px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.guid-card { background: #fff; border-radius: 12px; border: 0.5px solid #e5e7eb; overflow: hidden; }
.guid-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 0.5px solid #f3f4f6;
}
.guid-card-icon {
  width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gci-purple { background: #ede9fe; }
.gci-amber { background: #fffbeb; }
.gci-blue { background: #eff6ff; }
.guid-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.guid-card-sub { font-size: 10px; color: #9ca3af; margin-left: auto; }

/* STEP 1 */
.guid-ai-area { padding: 12px 14px; }
.guid-ai-textarea {
  width: 100%;
  border-radius: 9px;
  border: 0.5px solid #e5e7eb;
  font-size: 12px;
  padding: 10px 12px;
  outline: none;
  color: #111827;
  background: #fafafa;
  resize: none;
  min-height: 96px;
  line-height: 1.6;
  font-family: inherit;
}
.guid-ai-textarea::placeholder { color: #9ca3af; font-size: 12px; }
.guid-ai-textarea:focus { border-color: #7c3aed; background: #fff; }
.guid-ai-hint { font-size: 10px; color: #9ca3af; margin-top: 6px; line-height: 1.5; }
.guid-ai-btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg,#6d28d9,#4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

/* STEP 2 */
.guid-result-area { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.guid-rlabel { font-size: 11px; font-weight: 700; color: #374151; }
.guid-rinput {
  height: 38px;
  border-radius: 8px;
  border: 0.5px solid #e5e7eb;
  font-size: 13px;
  padding: 0 11px;
  outline: none;
  color: #111827;
  background: #fafafa;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
}
.guid-register-btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #059669;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.guid-save-msg { font-size: 12px; min-height: 18px; color: #64748b; }

/* STEP 3 */
.guid-tabs { display: flex; align-items: center; gap: 0; padding: 10px 14px; border-bottom: 0.5px solid #f3f4f6; }
/* Guidelines list: spacing between status tabs (open/done/all) */
.guid-scope-radio { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.guid-scope-radio .form-check { margin: 0 !important; padding-left: 0 !important; }
.guid-scope-radio input[type="radio"], .guid-scope-radio .form-check-input {
  appearance: none; -webkit-appearance: none;
  width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
}
.guid-tab-input { display: none !important; }
.guid-tab {
  flex: 1 1 auto;
  min-width: 4.5em;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.guid-tab--active {
  color: #1a2744 !important;
  border-bottom-color: #1a2744 !important;
}
.guid-actions { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 0.5px solid #f3f4f6; flex-wrap: wrap; }
.guid-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.guid-btn-excel { background: #f0fdf4; color: #166534; border: 0.5px solid #bbf7d0; }
.guid-btn-del { background: #fef2f2; color: #dc2626; border: 0.5px solid #fecaca; }
.guid-groups-wrap { padding: 8px 14px 12px; }
.guid-groups-wrap details summary { list-style: none; }
.guid-groups-wrap details summary::-webkit-details-marker { display:none; }

/* 목록/이력 */
.guid-hist-area { padding: 12px 14px; }
.guid-hist-note { font-size: 10px; color: #9ca3af; margin-left: auto; }

/* /guidelines PC redesign: compact 3-column operations workspace */
@media screen and (min-width: 901px) {
  body:has(#guidelines-route-panel[style*="display: block"]) .app-top-header,
  body:has(#guidelines-route-panel[style*="display: block"]) .metric-header-fixed {
    display: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding: 0 !important;
    background: #f0f2f5 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-route-panel {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 0px) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #f0f2f5 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock {
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f0f2f5 !important;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
    color: #111827 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-topbar {
    flex-shrink: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1a2744 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-top-head {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-top-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-back-btn {
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-top-text {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-home-link {
    color: rgba(255, 255, 255, 0.44) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-home-link::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 9px;
    vertical-align: middle;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-page-name {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-top-hint {
    margin-left: auto !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-mock .technote-hamburger {
    display: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-body {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) minmax(220px, 0.9fr) !important;
    grid-template-areas:
      "ai list"
      "result history" !important;
    gap: 14px !important;
    overflow: hidden !important;
    padding: 14px !important;
    min-height: calc(100vh - 38px) !important;
    box-sizing: border-box !important;
    background: #f0f2f5 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card {
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 0.5px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--ai { grid-area: ai !important; }
  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--result { grid-area: result !important; }
  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--list { grid-area: list !important; }
  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--history { grid-area: history !important; }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card-head {
    flex-shrink: 0 !important;
    min-height: 44px !important;
    padding: 12px 16px 10px !important;
    border-bottom: 0.5px solid #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card-icon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111827 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card-sub {
    margin-left: auto !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    color: #5b21b6 !important;
    background: #ede9fe !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--result .guid-card-sub {
    color: #854d0e !important;
    background: #fef9c3 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--list .guid-card-sub,
  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--history .guid-card-sub {
    color: #166534 !important;
    background: #dcfce7 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-ai-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-ai-textarea {
    flex: 1 1 auto !important;
    min-height: 170px !important;
    height: auto !important;
    border-radius: 9px !important;
    border: 0.5px solid #e5e7eb !important;
    background: #fafafa !important;
    color: #111827 !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
    padding: 10px 12px !important;
    resize: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-ai-hint {
    margin: 0 !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-ai-btn {
    flex-shrink: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-result-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #e5e7eb transparent !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-rlabel {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #374151 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-rinput {
    height: 34px !important;
    border-radius: 8px !important;
    border: 0.5px solid #e5e7eb !important;
    background: #fafafa !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 0 10px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-ai-preview-table .dash-table-container {
    border: 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-ai-preview-table .dash-spreadsheet-container th {
    display: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-ai-preview-table .dash-spreadsheet-container td {
    padding: 7px 9px !important;
    border: 0.5px solid #dbeafe !important;
    background: #f8faff !important;
    color: #111827 !important;
    font-size: 11px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-register-btn {
    flex-shrink: 0 !important;
    height: 38px !important;
    margin-top: auto !important;
    border-radius: 9px !important;
    background: #059669 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-save-msg:not(:empty) {
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    border: 0.5px solid #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-tabs {
    flex-shrink: 0 !important;
    padding: 9px 16px !important;
    border-bottom: 0.5px solid #f3f4f6 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-scope-radio {
    width: auto !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-tab {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding: 5px 14px !important;
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-bottom: 2px solid transparent !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-tab--active {
    color: #1a2744 !important;
    border-bottom-color: #1a2744 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-actions {
    position: absolute !important;
    top: 51px !important;
    right: 16px !important;
    z-index: 2 !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 7px !important;
    background: transparent !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-card--list {
    position: relative !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-act-btn {
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-groups-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 10px 12px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #e5e7eb transparent !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-groups-wrap details {
    margin: 0 0 8px !important;
    border: 0.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-groups-wrap details summary {
    padding: 10px 13px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: 0.5px solid #fde68a !important;
    background: #fffbeb !important;
    color: #92400e !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    font-size: 12px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table thead {
    display: none !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table tr {
    background: #fafafa !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table td {
    padding: 8px 10px !important;
    border: 0 !important;
    border-top: 0.5px solid #f0f0f0 !important;
    border-bottom: 0.5px solid #f0f0f0 !important;
    color: #374151 !important;
    font-size: 11px !important;
    vertical-align: middle !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table td:first-child {
    border-left: 0.5px solid #f0f0f0 !important;
    border-radius: 8px 0 0 8px !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guidelines-group-table td:last-child {
    border-right: 0.5px solid #f0f0f0 !important;
    border-radius: 0 8px 8px 0 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) .guid-hist-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table {
    height: 100% !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table .dash-table-container,
  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table .dash-spreadsheet-container {
    height: 100% !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table .dash-spreadsheet-container th {
    padding: 7px 10px !important;
    border-bottom: 0.5px solid #f0f0f0 !important;
    background: #f9fafb !important;
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table .dash-spreadsheet-container td {
    padding: 8px 10px !important;
    border-bottom: 0.5px solid #f8f8f8 !important;
    color: #374151 !important;
    font-size: 11px !important;
  }

  body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-history-table .dash-spreadsheet-container tr:hover td {
    background: #f8fbff !important;
  }
}

/* /history PC 리디자인 */
@media screen and (min-width: 801px) {
  #history-route-panel .history-page {
    max-width: none !important;
    width: 100% !important;
    padding: 0 0 18px !important;
    background: #f0f2f5;
  }
  #history-route-panel .history-page .technote-topbar {
    border-bottom: 0.5px solid #e8eaed;
    background: #fff;
  }
  #history-route-panel .history-page .technote-top-sub {
    font-size: 12px !important;
    color: #9ca3af !important;
  }
  #history-route-panel .history-page .technote-top-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
  }
  #history-route-panel .history-page .technote-hamburger { display: none !important; }
  #history-route-panel .history-page .weekly-body {
    padding: 14px 16px 16px !important;
    gap: 12px !important;
    max-width: none !important;
  }
  #history-route-panel .history-page .weekly-card {
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
  }
  #history-route-panel .history-page .history-filter-card .weekly-ch,
  #history-route-panel .history-page .history-result-card .weekly-ch {
    padding: 12px 16px;
    border-bottom: 0.5px solid #f3f4f6;
  }
  #history-route-panel .history-page .history-filter-card .weekly-cb,
  #history-route-panel .history-page .history-result-card .weekly-cb {
    padding: 14px 16px;
    gap: 10px;
  }
  #history-route-panel .history-page #history-filter-date-range {
    width: 100%;
    max-width: 360px;
  }
  #history-route-panel .history-page .DateRangePicker,
  #history-route-panel .history-page .DateRangePickerInput {
    width: 100% !important;
    min-width: 220px !important;
    border-radius: 8px !important;
    border: 0.5px solid #e5e7eb !important;
    background: #fafafa !important;
  }
  #history-route-panel .history-page .DateInput,
  #history-route-panel .history-page .DateInput_input {
    background: #fafafa !important;
    color: #111827 !important;
    font-size: 12px !important;
    height: 34px !important;
  }
  #history-route-panel .history-page .Select-control,
  #history-route-panel .history-page .Select__control {
    border-radius: 8px !important;
    border: 0.5px solid #e5e7eb !important;
    background: #fafafa !important;
    min-height: 36px !important;
  }
  #history-route-panel .history-page input[type="text"] {
    border: 0.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    height: 36px !important;
    font-size: 12px !important;
  }
  #history-route-panel .history-page .history-grid-top,
  #history-route-panel .history-page .history-grid-bottom {
    margin-bottom: 8px !important;
    gap: 12px !important;
  }
  #history-route-panel .history-page .history-grid-bottom label,
  #history-route-panel .history-page .history-grid-top label {
    font-size: 12px !important;
    color: #4b5563 !important;
    margin-right: 10px !important;
  }
  #history-route-panel .history-page .history-actions {
    margin-top: 2px;
  }
  #history-route-panel .history-page #history-search-btn {
    height: 38px !important;
    border-radius: 9px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #1a2744 !important;
    border-color: #1a2744 !important;
  }
  #history-route-panel .history-page #history-trouble-table .dash-spreadsheet-container th {
    background: #f9fafb !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
    border-bottom: 0.5px solid #f0f0f0 !important;
  }
  #history-route-panel .history-page #history-trouble-table .dash-spreadsheet-container td {
    border-bottom: 0.5px solid #f8f8f8 !important;
    color: #374151 !important;
  }
  #history-route-panel .history-page #history-trouble-table .dash-spreadsheet-container tr:hover td {
    background: #f8fbff !important;
  }
}

@media screen and (max-width: 800px) {
  /* /work/weekly: 날짜 아래로 담당자 입력(1열) */
  .weekly-fr { grid-template-columns: 1fr !important; }
  body:has(#dashboard-stack .weekly-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .weekly-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .weekly-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .weekly-page) #dashboard-content { padding: 0 !important; }
  .weekly-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .weekly-page) .weekly-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; }

  /* /blockbar */
  body:has(#dashboard-stack .blockbar-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .blockbar-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .blockbar-page) #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .blockbar-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .blockbar-page) .blockbar-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .blockbar-page) .blockbar-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important; }
  body:has(#dashboard-stack .blockbar-page) .blockbar-table th { padding: 9px 10px !important; font-size: 12px !important; }
  body:has(#dashboard-stack .blockbar-page) .blockbar-table td { padding: 9px 10px !important; font-size: 13px !important; }

  /* /work/opinion */
  body:has(#dashboard-stack .opinion-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .opinion-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .opinion-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .opinion-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .opinion-page) .opinion-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .opinion-page) .opinion-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; }

  /* /profile */
  body:has(#dashboard-stack .profile-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .profile-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .profile-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .profile-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .profile-page) .profile-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .profile-page) .profile-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; }

  /* /history */
  body:has(#history-route-panel[style*="display: block"] .history-page) .app-top-header { display: none !important; }
  body:has(#history-route-panel[style*="display: block"] .history-page) .metric-header-fixed { display: none !important; }
  body:has(#history-route-panel[style*="display: block"] .history-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#history-route-panel[style*="display: block"] .history-page) #dashboard-content { padding: 0 !important; }
  body:has(#history-route-panel[style*="display: block"] .history-page) #history-route-panel { padding: 0 !important; margin: 0 !important; }
  body:has(#history-route-panel[style*="display: block"] .history-page) .history-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#history-route-panel[style*="display: block"] .history-page) .history-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important; }

  /* /stat* */
  body:has(#dashboard-content .stat-page-marker) .app-top-header { display: none !important; }
  body:has(#dashboard-content .stat-page-marker) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-content .stat-page-marker) .sidebar {
    border-right: none !important;
  }
  body:has(#dashboard-content .stat-page-marker) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-content .stat-page-marker) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-content .stat-page-marker) .stat-page .technote-topbar {
    margin: 0 -10px 0 !important;
    position: sticky;
    top: 0;
    z-index: 10125;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  }
  /* /cal */
  body:has(#dashboard-stack .cal-page-root.cal-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .cal-page-root.cal-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .cal-page-root.cal-page) #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .cal-page-root.cal-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .cal-page-root.cal-page) .cal-page-root.cal-page .technote-topbar { margin: 0 0 0 !important; position: sticky; top: 0; z-index: 10125; padding-top: 12px !important; }
  body:has(#dashboard-stack .cal-page-root.cal-page) .cal-page-root.cal-page { padding: 0 0 24px !important; }
}

@media screen and (max-width: 800px) {
  /* /work/carlog */
  body:has(#dashboard-stack .carlog-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .carlog-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .carlog-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .carlog-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .carlog-page) .carlog-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .carlog-page) .carlog-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; }

  /* /work/hipass */
  body:has(#dashboard-stack .hipass-page) .app-top-header { display: none !important; }
  body:has(#dashboard-stack .hipass-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .hipass-page) #dashboard-stack.content-area {
    margin-top: env(safe-area-inset-top, 0px) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body:has(#dashboard-stack .hipass-page) #dashboard-content { padding: 0 !important; }
  body:has(#dashboard-stack .hipass-page) .hipass-page { max-width: none !important; width: 100% !important; padding: 0 8px 24px !important; margin: 0 !important; }
  body:has(#dashboard-stack .hipass-page) .hipass-page .technote-topbar { margin: 0 -8px 0 !important; position: sticky; top: 0; z-index: 10125; }
}

@media screen and (max-width: 800px) {
  /* /settings: settings-forms-root를 전폭 패널로 */
  body:has(#settings-forms-root[style*="display: block"]) .app-top-header { display: none !important; }
  body:has(#settings-forms-root[style*="display: block"]) .metric-header-fixed { display: none !important; }
  /* /settings: 상단바는 스크롤에 안 딸려가게(sticky) */
  body:has(#settings-forms-root[style*="display: block"]) #settings-forms-root .technote-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10125 !important;
  }
  body:has(#settings-forms-root[style*="display: block"]) #settings-forms-root {
    top: env(safe-area-inset-top, 0px) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
.worklinks-topbar {
  background: #1a2744;
  padding: 12px 24px 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.worklinks-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.worklinks-topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.worklinks-back-link-anchor { text-decoration: none; }
.worklinks-back-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.worklinks-top-text { min-width: 0; }
.worklinks-home-link {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}
.worklinks-page-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-top: 1px;
}
.worklinks-topbar-spacer { flex: 1; }
.worklinks-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.worklinks-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #8fa8d4;
  border-radius: 2px;
}
.worklinks-top-add-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: #3b5bdb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.worklinks-body {
  padding: 0 24px 20px;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.worklinks-search-wrap { position: relative; margin-bottom: 0; }
.worklinks-search-inp {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  padding: 0 36px 0 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-sizing: border-box;
}
.worklinks-search-inp::placeholder { color: rgba(255, 255, 255, 0.35); }
.worklinks-search-ico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); opacity: .56; }
.worklinks-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  margin: 0 -24px;
  padding: 10px 24px 0;
  border-bottom: 0.5px solid #e8eaed;
}
.worklinks-cat-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.worklinks-cat-scroll::-webkit-scrollbar { display: none; }
.worklinks-cat-row .worklinks-cat-scroll { flex: 1; min-width: 0; padding: 0; }
.worklinks-edit-chipbtn {
  width: 34px;
  height: 30px;
  border-radius: 8px;
  border: 0.5px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.worklinks-edit-chipbtn:active { opacity: .85; }
.worklinks-ctab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  background: transparent;
  white-space: nowrap;
}
.worklinks-ctab--active {
  background: transparent !important;
  color: #1a2744 !important;
  border-bottom-color: #1a2744 !important;
}
.worklinks-ctab-inp { display: none !important; }

/* 섹션 헤더 */
.worklinks-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.worklinks-sec-label { font-size: 13px; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 6px; }
.worklinks-sec-line { flex: 1; height: 0.5px; background: #e5e7eb; }
.worklinks-add-link { font-size: 11px; color: #1a56db; cursor: pointer; white-space: nowrap; font-weight: 600; background: transparent; border: none; }

/* 자주 쓰는 링크 2열 */
.worklinks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.worklinks-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.worklinks-card--featured { border: 0.5px solid #bfdbfe; background: #f0f7ff; }
.worklinks-card:hover { border-color: #9ca3af; transform: translateY(-1px); }
.worklinks-card-top { display: flex; align-items: flex-start; gap: 10px; }
.worklinks-card-info { min-width: 0; }
.wl-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wl-ic-green { background: #e8f5e9; }
.wl-ic-blue { background: #e3f2fd; }
.wl-ic-yellow { background: #fff8e1; }
.wl-ic-purple { background: #f3e5f5; }
.wl-ic-red { background: #fce4ec; }
.wl-ic-teal { background: #e0f2f1; }
.wl-ic-orange { background: #fff3e0; }
.wl-ic-gray { background: #f3f4f6; }
.worklinks-card-name { font-size: 13px; font-weight: 600; color: #111827; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklinks-card-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklinks-card-ext { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.wl-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.wl-badge--sheet { background: #e8f5e9; color: #2e7d32; }
.wl-badge--doc { background: #fff8e1; color: #f57f17; }
.wl-badge--drive { background: #fce4ec; color: #c62828; }
.wl-badge--crm { background: #f3e5f5; color: #6a1b9a; }
.wl-badge--faq { background: #e0f2f1; color: #004d40; }
.wl-badge--web { background: #e3f2fd; color: #1565c0; }
.wl-badge--grp { background: #fff3e0; color: #e65100; }
.worklinks-arrow { opacity: .25; }

/* 일반 가로 row */
.worklinks-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-bottom: 16px; }
.worklinks-row {
  background: #fff;
  border-radius: 10px;
  border: 0.5px solid #e5e7eb;
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.worklinks-row:hover { border-color: #9ca3af; }
.worklinks-row-name { font-size: 13px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.worklinks-row-desc { font-size: 10px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worklinks-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.worklinks-add-card {
  min-height: 108px;
  border-radius: 12px;
  border: 1.5px dashed #e5e7eb;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.worklinks-add-card:hover { border-color: #1a56db; background: #f0f7ff; }
.worklinks-add-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.worklinks-add-card-text { font-size: 12px; color: #9ca3af; }

/* 삭제 버튼 */
.worklinks-card-wrap, .worklinks-row-wrap { position: relative; }
.worklinks-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 0.5px solid #fecaca;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.worklinks-del-btn:active { opacity: .85; }

@media screen and (max-width: 800px) {
  .worklinks-topbar { padding: 12px 12px 10px; }
  .worklinks-topbar-row { margin-bottom: 8px; }
  .worklinks-body { padding: 0 12px 16px; }
  .worklinks-cat-row { margin: 0 -12px; padding: 8px 12px 0; }
  .worklinks-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .worklinks-link-grid { grid-template-columns: 1fr; gap: 6px; }
  .worklinks-sec-head { margin-top: 10px; }
  .worklinks-top-add-btn { height: 30px; padding: 0 10px; font-size: 11px; }
}

/* 사이드바/상단바 설정 — 앱 헤더(72px) 아래에 사이드바·메트릭; 헤더 높이 바꿀 때 162px 등 연쇄 수정 */
.sidebar { position: fixed; top: 72px; left: 0; bottom: 0; width: 180px; padding: 20px; background-color: #1a2744; border-right: 0.5px solid rgba(255,255,255,.10); box-sizing: border-box; z-index: 1000; }
.top-bar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: #1e293b;
    color: #fff;
}
/* 로그인 스텁 등 숨김용 구형 DB 바 (보이지 않음) */
.top-bar.top-bar--db {
    box-sizing: border-box;
}
/* 앱 상단 헤더: 브랜드 + DB 시각 + 모바일 햄버거 (Tailwind 유틸 보조) */
.app-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-sizing: border-box;
    background-color: #0055aa;
    box-shadow: 0 2px 8px rgba(0, 40, 100, 0.18);
}
.app-top-header .sidebar-brand-home-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: #fff;
}
.app-top-header .sidebar-brand-home-btn:hover {
    opacity: 0.92;
}
.app-top-header .sidebar-toggle-btn {
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}
.app-top-header .sidebar-toggle-btn:active {
    opacity: 0.75;
}
/* 메인 상단 햄버거: 기술노트와 동일 3줄 아이콘 */
.app-top-header .sidebar-toggle-btn.app-hamburger-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0;
    line-height: 0;
    font-weight: 500;
    min-width: 44px;
    padding: 8px 10px;
}
.app-top-header .sidebar-toggle-btn.app-hamburger-icon span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #8fa8d4;
    border-radius: 2px;
}

/* PC: 상단바(경기남부 통합) → 사이드바 상단만 사용 */
@media (min-width: 801px) {
    .app-top-header { display: none !important; }
    .sidebar { top: 0 !important; }
    .metric-header-fixed { top: 0 !important; }
    /* 기존 inline marginTop(헤더 72px 포함)을 72px 만큼 줄여 PC에서 여백 제거 */
    .metric-header-fixed:not(.hidden-metric) ~ #dashboard-stack.content-area { margin-top: 126px !important; }
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area { margin-top: 26px !important; }
}
/* 🛡️ 상단 고정: 담당구역 필터(전폭) + 메트릭 버튼 행 */
.metric-header-fixed {
    position: fixed;
    top: 72px;
    left: 180px;
    right: 0;
    z-index: 999;
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-sizing: border-box;
}
.metric-header-fixed.hidden-metric {
    display: none !important;
}
.region-filter-full-row {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 30px 6px;
}
.region-filter-full-row #region-filter-container.region-filter-shell.metric-title {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
}
/* 메트릭바 아래 (모바일 툴바 위) 한줄 요약 */
.metric-breakdown-line {
    display: none;
    padding: 6px 12px 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
    /* 화면이 좁으면 2줄까지 표시 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
/* 메트릭 하단 요약: "처리중 : 수원 (14) 용인 (17) …" 줄바꿈 정돈 */
.metric-breakdown-line .metric-breakdown-rich {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 5px;
    width: 100%;
}
.metric-bd-prefix {
    font-weight: 800;
    color: #0f172a;
    flex: 0 0 auto;
    margin-right: 2px;
}
.metric-bd-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 10px;
    flex: 1 1 200px;
    min-width: 0;
}
.metric-bd-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.metric-bd-item__name {
    color: #334155;
    font-weight: 600;
}
.metric-bd-item__num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
@media screen and (max-width: 800px) {
    .metric-breakdown-line { display: block; }
}
/* 🏷️ 필터 셸 */
.metric-title {
    min-width: 0;
}
@media screen and (min-width: 801px) {
    .metric-title {
        margin-bottom: 0;
    }
}
/* 📦 개별 메트릭 박스 (네모간) */
.metric-box {
    flex: 1 1 calc(14% - 6px); /* PC에서 6개 메트릭 */
    background-color: #f8fafc; /* 연한 회색 배경 */
    border: 1px solid #e2e8f0; /* 테두리 추가 */
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-box div {
    font-weight: bold;
    margin-bottom: 3px;
}
.metric-box .metric-box-label {
    margin-bottom: 3px;
}

.metric-box h2 {
    font-size: 14px !important;
    font-weight: 800;
    margin: 0 !important;
}

/* 담당 구역 필터 — Bootstrap primary 스타일(파란 배경·흰 글자·둥근 버튼) */
#region-filter-container.region-filter-shell {
    box-sizing: border-box;
}
/* 모바일 담당구역 칩 바 — 둥근 사각형 + 우측 건수 배지(타깃 UI와 유사) */
.region-chip-bar {
    /* 2줄 고정: 1줄/2줄 순서 지정 + 각 줄은 좌우 스크롤 */
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 6px 4px 8px;
    margin-bottom: 0;
    min-height: 44px;
    scrollbar-width: none; /* firefox */
}
.region-chip-bar::-webkit-scrollbar { display: none; }
.region-chip-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.region-chip-row::-webkit-scrollbar { display: none; }
.region-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 10px 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none;
}
.region-chip__label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}
.region-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}
.region-chip--active {
    background: #0055aa;
    border-color: #0055aa;
    color: #ffffff;
    box-shadow: none;
}
.region-chip--active .region-chip__count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}
.region-chip--dim {
    opacity: 0.38;
}
@media screen and (max-width: 800px) {
    .region-filter-full-row {
        padding: 0;
    }
    /* 모바일 담당구역 칩: 네이비 그리드(프로토타입 톤) */
    .region-chip-bar {
        background: #1a2744 !important;
        border-radius: 0 !important;
        border-top: none !important;
        box-shadow: none !important;
        padding: 6px 8px 6px !important;
        margin: 0 !important;
        gap: 5px !important;
    }
    .region-chip-row {
        display: grid !important;
        grid-template-columns: 2fr 1fr 1fr 1fr !important;
        gap: 4px !important;
        overflow-x: visible !important;
    }
    .region-chip {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 4px !important;
        border-radius: 7px !important;
        border: 0.5px solid rgba(255, 255, 255, 0.13) !important;
        background: rgba(255, 255, 255, 0.07) !important;
        color: rgba(255, 255, 255, 0.58) !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        gap: 2px !important;
        text-align: center;
        box-shadow: none !important;
    }
    .region-chip__label {
        text-align: center;
        font-weight: 500;
    }
    .region-chip__count {
        background: transparent !important;
        color: inherit !important;
        font-size: 11px;
        font-weight: 400;
        opacity: 0.85;
        min-width: auto;
        padding: 0;
    }
    .region-chip--active {
        background: #ffffff !important;
        border-color: #ffffff !important;
        color: #1a2744 !important;
    }
    .region-chip--active .region-chip__count {
        background: transparent !important;
        color: #1a2744 !important;
        opacity: 0.75;
    }
    .region-chip--dim:not(.region-chip--active) {
        opacity: 0.38;
    }
    /* 모바일 메트릭: 6칸 균등 고정 */
    .metric-bar.metric-bar--buttons-only {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        border-bottom: 0.5px solid #e2e5ea !important;
        padding: 5px 0 6px !important;
        margin: 0 !important;
    }
    .metric-bar.metric-bar--buttons-only > .metric-box {
        grid-column: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        border-right: 0.5px solid #f0f0f0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 5px 3px 6px !important;
        box-sizing: border-box !important;
    }
    .metric-bar.metric-bar--buttons-only > .metric-box:last-child {
        border-right: none !important;
    }
    .metric-bar.metric-bar--buttons-only .metric-box h2 {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label,
    .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label span {
        font-size: 10px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label iconify-icon,
    .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label svg {
        display: none !important;
    }
    .metric-bar.metric-bar--buttons-only #metric-1 { color: #1a56db !important; }
    .metric-bar.metric-bar--buttons-only #metric-2 { color: #dc2626 !important; }
    .metric-bar.metric-bar--buttons-only #metric-3 { color: #dc2626 !important; }
    .metric-bar.metric-bar--buttons-only #metric-4 { color: #ca8a04 !important; }
    .metric-bar.metric-bar--buttons-only #metric-5 { color: #7c3aed !important; }
    .metric-bar.metric-bar--buttons-only #metric-6 { color: #dc2626 !important; }
    /* 모바일에서는 드롭다운 대신 칩바를 주 UI로 */
    #region-filter-container .region-pc-filter-dropdown { display: none; }
}
/* react-select (Dash classic) — 컨트롤 = primary 버튼 */
#region-filter-container .Select-control {
    border-radius: 6px !important;
    border: none !important;
    background: #0d6efd !important;
    min-height: 40px !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.35) !important;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
#region-filter-container .Select-control:hover {
    background: #0b5ed7 !important;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.45) !important;
}
#region-filter-container .is-open > .Select-control,
#region-filter-container .Select.is-focused > .Select-control {
    background: #0a58ca !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35) !important;
}
#region-filter-container .Select-value-label,
#region-filter-container .Select-placeholder {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
#region-filter-container .Select-arrow-zone {
    cursor: pointer !important;
}
#region-filter-container .Select-arrow {
    border-color: #ffffff transparent transparent !important;
}
#region-filter-container .Select-input > input {
    color: #fff !important;
}

/* Dash 2.x / react-select 5+ (BEM 클래스) — PC에서 기본 회색 드롭다운이 보일 때 */
#region-filter-container .Select__control {
    border-radius: 6px !important;
    border: none !important;
    background-color: #0d6efd !important;
    min-height: 40px !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.35) !important;
    cursor: pointer !important;
}
#region-filter-container .Select__control:hover {
    background-color: #0b5ed7 !important;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.45) !important;
}
#region-filter-container .Select__control--is-focused {
    background-color: #0a58ca !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35) !important;
}
#region-filter-container .Select__single-value,
#region-filter-container .Select__placeholder {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
#region-filter-container .Select__indicator-separator {
    background-color: rgba(255, 255, 255, 0.35) !important;
}
#region-filter-container .Select__dropdown-indicator,
#region-filter-container .Select__clear-indicator {
    color: #ffffff !important;
}
#region-filter-container .Select__dropdown-indicator svg,
#region-filter-container .Select__clear-indicator svg {
    fill: #ffffff !important;
}
/* className 훅 (디버깅·특이 빌드 대비) */
#region-filter-container .region-pc-filter-dropdown {
    width: 100%;
}

.content-area { margin-left: 180px; margin-top: 162px; margin-bottom: 30px; padding: 10px 5px 20px 5px; box-sizing: border-box; }
/* 실시간 목록 DataTable: Toggle Columns(숨김 컬럼 메뉴) 비표시 */
#trouble-list-panel .dash-spreadsheet-menu,
#trouble-list-panel .dash-table-menu,
#pc-data-table-visible .dash-spreadsheet-menu,
#pc-data-table-visible .dash-table-menu,
#mobile-realtime-datatable-visible .dash-spreadsheet-menu,
#mobile-realtime-datatable-visible .dash-table-menu,
#dash-trouble-paging-root-stub .dash-spreadsheet-menu,
#dash-trouble-paging-root-stub .dash-table-menu {
    display: none !important;
}
/* PC: DataTable 커스텀 페이징 줄을 모바일 하단 페이저처럼 가운데 정렬 */
@media screen and (min-width: 801px) {
    #trouble-list-panel .pc-view .previous-next-container,
    #trouble-list-panel .pc-view .dash-table-paging {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 10px 10px;
        margin-top: 4px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
        box-sizing: border-box;
    }
    #trouble-list-panel .pc-view .previous-next-container button,
    #trouble-list-panel .pc-view .dash-table-paging button,
    #history-route-panel .previous-next-container button,
    #history-route-panel .dash-table-paging button {
        padding: 10px 18px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #1e293b;
        cursor: pointer;
    }
    #history-route-panel .previous-next-container,
    #history-route-panel .dash-table-paging {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 10px 10px;
        margin-top: 4px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
        box-sizing: border-box;
    }
}
/* 로그인 전용: 화면 중앙 카드 */
.login-page-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 16px;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #1e40af 100%);
}
.login-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 36px 32px 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.08);
    box-sizing: border-box;
}
.login-box h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.login-box .login-sub {
    margin: 0 0 32px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
/* 아이디·비밀번호 세로 간격 */
.login-page-root .login-box .login-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 26px;
}
/*
 * dcc.Input: id가 <input> 또는 래퍼에 붙을 수 있음 → 선택자 병기.
 */
.login-page-root .login-box #login-id,
.login-page-root .login-box #login-pw,
.login-page-root .login-box #login-id input,
.login-page-root .login-box #login-pw input,
.login-page-root .login-box .login-fields input.login-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    padding: 17px 18px !important;
    min-height: 56px !important;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    -webkit-appearance: none;
    appearance: none;
}
.login-page-root .login-box #login-id:hover,
.login-page-root .login-box #login-pw:hover,
.login-page-root .login-box #login-id input:hover,
.login-page-root .login-box #login-pw input:hover,
.login-page-root .login-box .login-fields input.login-input:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}
.login-page-root .login-box #login-id::placeholder,
.login-page-root .login-box #login-pw::placeholder,
.login-page-root .login-box #login-id input::placeholder,
.login-page-root .login-box #login-pw input::placeholder,
.login-page-root .login-box .login-fields input.login-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    line-height: 1.5 !important;
}
.login-page-root .login-box #login-id:focus,
.login-page-root .login-box #login-pw:focus,
.login-page-root .login-box #login-id input:focus,
.login-page-root .login-box #login-pw input:focus,
.login-page-root .login-box .login-fields input.login-input:focus {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
/* id가 래퍼 div일 때 */
.login-page-root .login-box #login-id:not(input),
.login-page-root .login-box #login-pw:not(input) {
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.login-page-root .login-box #login-id:not(input) input,
.login-page-root .login-box #login-pw:not(input) input {
    margin: 0 !important;
}
.login-btn {
    width: 100%;
    margin-top: 0;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s, box-shadow 0.15s;
}
.login-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
.login-btn:active {
    transform: scale(0.98);
}
.login-hint {
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}
/* 사이드바: 제목 + 모바일 햄버거 */
.sidebar { display: flex; flex-direction: column; }
.sidebar-brand-home-btn {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0 4px 0 0;
    text-align: left;
    font-size: 22px;
    font-weight: bold;
    color: #1e3a5f;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}
.sidebar-brand-home-btn:hover { color: #1d4ed8; }
.main-home-preamble {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px 12px 12px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 801px) {
    .main-home-preamble {
        padding-top: 3px;
    }
}
/* 빈번접수 현장 표만 가로 폭 제한 */
.admin-frequent-site-table-wrap {
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
}
/* PC: 현장명 넓게(말줄임), 담당구역·접수횟수는 좁게 */
@media screen and (min-width: 801px) {
    .admin-top10-table {
        table-layout: fixed;
        width: 100%;
    }
    .admin-top10-table .admin-top10-col-site {
        width: 58%;
        min-width: 0;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
    }
    .admin-top10-table .admin-top10-col-zone {
        width: 15%;
        max-width: 88px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .admin-top10-table .admin-top10-col-cnt {
        width: 12%;
        max-width: 76px;
        vertical-align: middle;
    }
}
.admin-top10-cnt-btn {
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    color: #5b21b6;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
}
.admin-top10-cnt-btn:hover {
    background: #ede9fe;
}
.admin-top10-detail-modal-content.modal-content {
    max-width: 920px;
    width: 96%;
}
/* 모바일·태블릿: flex 는 DOM 순서대로 세로 쌓임(공지 → TOP7). 표는 전체 폭·현장명 줄바꿈 허용 */
@media screen and (max-width: 800px) {
    .admin-home-row-frequent {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .admin-home-row-frequent > div:first-child {
        max-width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .admin-home-row-frequent > div:last-child {
        min-width: 0 !important;
        width: 100% !important;
    }
    .admin-top10-table {
        width: 100%;
        table-layout: fixed;
        font-size: 12px;
    }
    .admin-top10-table .admin-top10-col-site {
        max-width: none !important;
        width: 46% !important;
        white-space: normal !important;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }
    .admin-top10-table .admin-top10-col-zone {
        width: 22% !important;
        max-width: none !important;
    }
    .admin-top10-table .admin-top10-col-cnt {
        width: 22% !important;
        max-width: none !important;
    }
}
.admin-top10-table th,
.admin-top10-table td {
    box-sizing: border-box;
}
.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sidebar-toggle-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    min-width: 44px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    color: #334155;
}
.sidebar-toggle-btn:active { background: #e2e8f0; }
.sidebar-drawer { flex: 1; min-height: 0; }

@media screen and (max-width: 800px) {
    /* 상단 DB정보 바: 뷰포트 고정(모바일 브라우저·Dash 래퍼에서도 유지) */
    .app-top-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        z-index: 10050 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        min-height: 56px !important;
        padding: 10px 8px 8px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        box-shadow: none !important;
        background-color: #1a2744 !important;
        border-bottom: none !important;
    }
    .app-top-header .sidebar-brand-home-btn {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* 구역칩 영역과 동일 톤 — 좌측 쉴드 아이콘 래퍼 제거(브랜드 텍스트는 두 번째 div) */
    .app-top-header .sidebar-brand-home-btn > div:first-child:not(.app-header-brand-text) {
        display: none !important;
    }
    .app-top-header .app-header-brand-text h1,
    .app-top-header .app-header-brand-text .text-lg {
        font-size: 15px !important;
        font-weight: 500 !important;
        letter-spacing: -0.02em !important;
    }
    .app-top-header #trouble-db-updated-at,
    .app-top-header .app-header-brand-text p {
        color: #6b85b5 !important;
        font-size: 10px !important;
        margin-top: 2px !important;
    }
    /* 목록 지도보기 등 모달: 사이드 드로어(10135)·기술노트(10120)보다 위 */
    .modal {
        z-index: 10180 !important;
    }
    .app-top-header .sidebar-toggle-btn.app-hamburger-icon {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .content-area { margin-left: 0 !important; margin-top: 0 !important; padding-top: 4px !important; }
    .content-area .mobile-view { padding-top: 6px !important; }
    /* 고정 채팅바(60px) + 이전/다음 줄이 잘리지 않도록 하단 여백 */
    #trouble-list-panel .mobile-view {
        padding-top: 0 !important;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box;
    }
    .mobile-trouble-pager {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
        gap: 8px; padding: 10px 8px 14px 8px; margin-top: 2px; margin-bottom: 4px;
        border-top: 1px solid #e2e8f0; background: #f8fafc;
    }
    .mobile-trouble-pager button {
        padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 8px;
        border: 1px solid #cbd5e1; background: #fff; color: #1e293b; cursor: pointer;
    }
    .mobile-trouble-pager button:disabled { opacity: 0.45; cursor: not-allowed; }
    .mobile-trouble-pager .mobile-trouble-pager-label { font-size: 14px; color: #475569; min-width: 140px; text-align: center; }
    /* 구역별 요약(처리중 구역별 …) ↔ 최근/오래된순 툴바 — 좌우는 담당구역칩·메트릭바와 동일 10px 인셋 */
    .mobile-trouble-meta-stack {
        display: flex;
        flex-direction: column;
        gap: 3px;
        /* 메트릭바(모바일 padding:8px) 좌우 라인과 정렬 */
        padding: 0 8px 0;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    .mobile-trouble-meta-stack .metric-breakdown-line {
        width: 100% !important;
        max-width: none !important;
        padding: 6px 10px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        font-size: 12.5px !important;
        line-height: 1.5 !important;
        color: #334155 !important;
        box-sizing: border-box !important;
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
    .mobile-trouble-meta-stack .mobile-trouble-toolbar {
        padding: 0 0 2px !important;
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-trouble-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 2px 2px 6px;
        box-sizing: border-box;
    }
    .mobile-trouble-toolbar-left,
    .mobile-trouble-toolbar-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .mobile-tb-btn {
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #1e293b;
        cursor: pointer;
        line-height: 1.2;
    }
    .mobile-tb-btn--active {
        background: #1e3a8a !important;
        border-color: #1e3a8a !important;
        color: #fff !important;
    }
    /* 모바일 목록 헤더(제목 + 지도보기) — shadcn outline */
    .mobile-trouble-list-header-wrap {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    .mobile-trouble-list-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 0 0 2px;
        box-sizing: border-box;
        width: 100%;
    }
    .mobile-trouble-list-header__title {
        margin: 0;
        padding: 0;
        font-size: 17px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.35;
        flex: 1;
        min-width: 0;
    }
    .mob-tr-map-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 600;
        color: #0f172a;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .mob-tr-map-btn:active { opacity: 0.92; }
    .mob-tr-map-btn {
        border-radius: 7px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        height: auto !important;
        background: #f3f4f6 !important;
        border: 0.5px solid #d1d5db !important;
        color: #374151 !important;
    }
    /* 정렬: 최근 / 오래된순 / 가까운순 */
    .mob-tb-sort-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 2px;
    }
    .mob-tb-sort-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 28px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #0f172a;
        cursor: pointer;
        line-height: 1;
    }
    .mob-tb-sort-btn--active {
        background: #e8f0fe !important;
        border: 0.5px solid #c5d8fc !important;
        color: #1a56db !important;
        font-weight: 700 !important;
    }
    .mob-tb-sort-btn--active iconify-icon,
    .mob-tb-sort-btn--active svg {
        color: #1a56db !important;
    }
    .mob-tb-sort-btn iconify-icon,
    .mob-tb-sort-btn svg {
        flex-shrink: 0;
        width: 12px !important;
        height: 12px !important;
    }

    /* 모바일 카드 리스트: 좌우 인셋 축소(카드 폭 확대) */
    #mobile-trouble-cards-visible-main {
        padding: 0 4px;
        box-sizing: border-box;
        touch-action: pan-y;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none; /* firefox */
    }
    #mobile-trouble-cards-visible-main::-webkit-scrollbar { display: none; }
    #mobile-trouble-cards-visible-main.mob-cards-loading::after {
        content: "전환 중…";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: -0.2px;
        color: rgba(15, 23, 42, 0.70);
        background: rgba(248, 250, 252, 0.55);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        pointer-events: none;
        opacity: 1;
        transition: opacity 160ms ease-out;
    }
    /* 모바일 카드 — 3줄 + 아바타 */
    /* 좌측 세로색은 인라인 borderLeft(메트릭 톤). 전체 border !important 는 인라인을 덮어쓰므로 상·우·하만 지정 */
    .mob-tr-card__summary {
        box-sizing: border-box;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        scroll-margin-left: 4px;
        scroll-margin-right: 4px;
        animation: mobCardEnter 160ms ease-out;
        border-radius: 10px !important;
        border-top: 0.5px solid #e2e5ea !important;
        border-right: 0.5px solid #e2e5ea !important;
        border-bottom: 0.5px solid #e2e5ea !important;
    }
    @keyframes mobCardEnter {
        from { opacity: 0.35; transform: translateY(6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
        .mob-tr-card__summary { animation: none !important; }
        #mobile-trouble-cards-visible-main { scroll-behavior: auto !important; }
        #mobile-trouble-cards-visible-main.mob-cards-loading::after { transition: none !important; }
    }
    .mob-tr-card__top {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .mob-tr-card__avatar {
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        background: #0055aa;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(0, 85, 170, 0.25);
    }
    .mob-tr-card__avatar iconify-icon,
    .mob-tr-card__avatar svg {
        width: 12px !important;
        height: 12px !important;
    }
    .mob-tr-card__body {
        flex: 1;
        min-width: 0;
    }
    .mob-tr-card__row1 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
        column-gap: 8px;
    }
    .mob-tr-card__row1-left {
        min-width: 0;
    }
    .mob-tr-card__site {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        max-width: 100%;
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.35;
    }
    .mob-tr-card__site-text {
        flex: 1 1 0%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* 칩 + 장애내역(왼쪽) / 처리상태(오른쪽) — 텍스트가 버튼 열을 넘지 않음 */
    .mob-tr-card__stack {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        margin-top: 8px;
        min-width: 0;
        width: 100%;
    }
    .mob-tr-card__stack-main {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1 1 0%;
        min-width: 0;
        overflow: hidden;
    }
    .mob-tr-card__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        min-width: 0;
        max-width: 100%;
        justify-content: flex-start;
    }
    .mob-tr-card__status {
        flex: 0 0 auto;
        max-width: min(46%, 11rem);
        text-align: left;
    }
    .mob-tr-card__status span {
        max-width: 100%;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: middle;
    }
    .mob-tr-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
        padding: 3px 8px;
        border-radius: 999px;
        max-width: 100%;
        word-break: break-word;
    }
    .mob-tr-pill__ico,
    .mob-tr-pill__ico svg {
        flex-shrink: 0;
        width: 12px !important;
        height: 12px !important;
    }
    /* 통신: 민트·틸 */
    .mob-tr-pill--comm {
        background: #ecfdf5;
        color: #0f766e;
        border: 1px solid #99f6e4;
    }
    .mob-tr-pill--comm .mob-tr-pill__ico,
    .mob-tr-pill--comm .mob-tr-pill__ico svg {
        color: #0d9488;
    }
    /* 단순문의: 라이트 블루 */
    .mob-tr-pill--inq {
        background: #eff6ff;
        color: #2563eb;
        border: 1px solid #bfdbfe;
    }
    .mob-tr-pill--inq .mob-tr-pill__ico,
    .mob-tr-pill--inq .mob-tr-pill__ico svg {
        color: #2563eb;
    }
    /* H/W: 슬레이트 그레이 */
    .mob-tr-pill--hw {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #cbd5e1;
    }
    .mob-tr-pill--hw .mob-tr-pill__ico,
    .mob-tr-pill--hw .mob-tr-pill__ico svg {
        color: #64748b;
    }
    /* S/W */
    .mob-tr-pill--sw {
        background: #faf5ff;
        color: #7c3aed;
        border: 1px solid #e9d5ff;
    }
    .mob-tr-pill--sw .mob-tr-pill__ico,
    .mob-tr-pill--sw .mob-tr-pill__ico svg {
        color: #7c3aed;
    }
    .mob-tr-pill--cat {
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }
    .mob-tr-pill--cat .mob-tr-pill__ico,
    .mob-tr-pill--cat .mob-tr-pill__ico svg {
        color: #1d4ed8;
    }
    .mob-tr-pill--zone {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
    }
    /* 유상 현장: 담당구역 칩과 동일 pill 형태, 빨간 톤 */
    .mob-tr-pill--paid {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
        font-weight: 700;
    }
    /* 현장구분: 운영/렌탈 */
    .mob-tr-pill--sitecat-op {
        background: #fef9c3; /* yellow-100 */
        color: #854d0e;      /* yellow-800 */
        border: 1px solid #fde68a; /* yellow-200 */
        font-weight: 700;
    }
    .mob-tr-pill--sitecat-rental {
        background: #dcfce7; /* green-100 */
        color: #166534;      /* green-800 */
        border: 1px solid #bbf7d0; /* green-200 */
        font-weight: 700;
    }
    /* 모바일 카드 펼침(세부내역) 스타일 */
    .mob-tr-detail-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
        color: #334155;
        margin-top: 8px;
        line-height: 1.45;
    }
    .mob-tr-detail-row--tight { margin-top: 6px; }
    .mob-tr-detail-ico {
        flex: 0 0 auto;
        width: 16px !important;
        height: 16px !important;
        margin-top: 2px;
        color: #64748b;
    }
    .mob-tr-detail-label { font-weight: 800; color: #0f172a; }
    .mob-tr-detail-box {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        box-sizing: border-box;
        white-space: pre-line;
        color: #0f172a;
        font-size: 13px;
        line-height: 1.5;
    }
    .mob-tr-detail-box--desc {
        background: #fefce8;        /* 연노랑 */
        border-color: #fde68a;
    }
    .mob-tr-detail-box--history {
        background: #eff6ff;        /* 연파랑 */
        border-color: #bfdbfe;
    }
    .mob-tr-history-line { display: block; color: #0f172a; }
    .mob-tr-history-line--last { color: #0055aa; font-weight: 700; }
    .mob-tr-card__desc {
        margin-top: 0;
        font-size: 12px;
        line-height: 1.45;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
        min-width: 0;
    }
    #mobile-realtime-datatable-visible .dash-spreadsheet-menu,
    #mobile-realtime-datatable-visible .dash-table-menu {
        display: none !important;
    }
    #mobile-realtime-datatable-visible {
        max-width: 100%;
    }
    /* 칩+메트릭바: 상단바(#1a2744)와 이어지는 네이비 + 그 아래 흰 메트릭 스트립 */
    .metric-header-fixed {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        z-index: 10040 !important;
        box-sizing: border-box !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        box-shadow: none !important;
        margin-top: 0 !important;
        background: transparent !important;
        border-bottom: none !important;
    }
    /* 가로 인셋은 region-chip-bar 한 곳만(8px) — 상단바 제목과 첫 칩 열이 같은 라인 */
    .metric-header-fixed .region-filter-full-row {
        background: #1a2744 !important;
        padding: 0 0 4px !important;
        margin: 0 !important;
        border-top: none !important;
    }
    /* 구역별 요약: 메트릭바 바로 아래 전폭 스트립(PC에서는 숨김) */
    .metric-header-fixed.hidden-metric .metric-breakdown-strip {
        display: none !important;
    }
    .metric-breakdown-strip {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        background: #eef2f7 !important;
        border-bottom: 0.5px solid #e2e5ea !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .metric-breakdown-strip .metric-breakdown-line.metric-breakdown-line--strip {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 6px 8px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        color: #334155 !important;
        box-sizing: border-box !important;
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
    /* 구역별 스트립 숨김: 칩+메트릭만. 잘림 방지 최소 여유만(과도한 margin+padding 중첩 방지) */
    .metric-header-fixed:not(.hidden-metric):has(.metric-breakdown-line[style*="display: none"]) ~ #dashboard-stack.content-area,
    .metric-header-fixed:not(.hidden-metric):has(.metric-breakdown-line[style*="display:none"]) ~ #dashboard-stack.content-area {
        margin-top: 238px !important;
        padding-top: 0 !important;
    }
    /* 스트립 표시 시 */
    .metric-header-fixed:not(.hidden-metric):not(:has(.metric-breakdown-line[style*="display: none"])):not(:has(.metric-breakdown-line[style*="display:none"])) ~ #dashboard-stack.content-area {
        margin-top: 280px !important;
        padding-top: 0 !important;
    }
    .metric-breakdown-strip:has(.metric-breakdown-line[style*="display: none"]),
    .metric-breakdown-strip:has(.metric-breakdown-line[style*="display:none"]) {
        display: none !important;
    }
    /* 메트릭·구역칩 없음: 고정 app-top-header(2줄+패딩)만큼 비움. 콜백 marginTop 98px과 동기; !important가 인라인을 덮으므로 여기서 맞춘다 */
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area {
        margin-top: calc(100px + env(safe-area-inset-top, 0px)) !important;
        padding-top: 0 !important;
    }
    /* /cal 업무 달력: 본문 상단 여백만 축소 */
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area:has(.cal-page-root) {
        margin-top: calc(68px + env(safe-area-inset-top, 0px)) !important;
    }
    .metric-header-fixed:not(.hidden-metric) ~ #dashboard-stack.content-area .mobile-view {
        padding-top: 4px !important;
    }
    #trouble-list-panel .mobile-trouble-meta-stack {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .pc-view { display: none !important; }
    .mobile-view { display: block !important; }
    /* AI 채팅: 둥근 카드(참고 UI) — 좌우 inset + 하단 safe-area */
    .chat-bar {
        left: 0 !important;
        right: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        padding-top: 6px !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }
    .chat-container {
        width: 100% !important;
        max-width: 720px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: #252f42 !important;
        border: none !important;
        box-shadow: 0 6px 24px rgba(15, 23, 42, 0.38) !important;
        border-radius: 14px !important;
        padding: 8px 10px 8px 14px !important;
    }
    .chat-input {
        background: transparent !important;
        color: #f1f5f9 !important;
        border-radius: 8px !important;
    }
    .chat-input::placeholder {
        color: rgba(241, 245, 249, 0.48) !important;
    }
    .chat-input:focus {
        box-shadow: none !important;
        background: transparent !important;
    }
    #ai-chat-upload {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    #ai-chat-upload-btn {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: #f1f5f9 !important;
        border-radius: 10px !important;
        width: 40px !important;
        height: 40px !important;
        margin-right: 6px !important;
    }
    #ai-chat-upload-btn iconify-icon,
    #ai-chat-upload-btn svg {
        color: #f1f5f9 !important;
    }
    .chat-send-btn {
        border-radius: 10px !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 40px !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
    #chat-response-area {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: min(52vh, 420px) !important;
        box-sizing: border-box !important;
        /* display 는 인라인(style)로만 제어 — display:flex !important 가 display:none 을 덮어 빈 말풍선이 항상 보이는 버그 방지 */
        overflow: hidden !important;
        padding: 0 !important;
        overscroll-behavior: contain !important;
        touch-action: auto !important;
    }
    #chat-response-area .ai-chat-bubble__scroll {
        max-height: min(46vh, 320px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
}
@media screen and (min-width: 801px) {
    .metric-breakdown-strip {
        display: none !important;
    }
}
/* 기간별 통계 (/stat/period) — 증감 카드·탭 (모바일 목업 톤) */
.pstat-ctrl {
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pstat-ctrl-hint {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
    white-space: nowrap;
}
/* Dash dcc.RadioItems: 루트 .dash-radioitems + 옵션 .dash-options-list-option.dash-radioitems-inline */
.dash-radioitems.pstat-period-tabs {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    padding: 0 14px;
    gap: 0;
}
.dash-radioitems.pstat-period-tabs .dash-options-list-option.dash-radioitems-inline {
    display: flex !important;
    flex: 1 1 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
}
.pstat-period-tabs > div {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.dash-radioitems.pstat-period-tabs label.pstat-period-radio-label {
    display: block;
    width: 100%;
    padding: 10px 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}
.dash-radioitems.pstat-period-tabs label.pstat-period-radio-label:has(input.pstat-period-radio-input:checked) {
    color: #1a2744;
    font-weight: 600;
    border-bottom-color: #1a2744;
}
.dash-radioitems.pstat-period-tabs input.pstat-period-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.pstat-range {
    background: #f8f9fb;
    padding: 7px 14px;
    border-bottom: 0.5px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pstat-range-prev { font-size: 11px; color: #9ca3af; }
.pstat-range-arr { font-size: 11px; color: #d1d5db; }
.pstat-range-curr { font-size: 11px; font-weight: 500; color: #374151; }
.pstat-body { padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.pstat-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pstat-stat-card {
    background: #fff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 12px 13px;
}
.pstat-stat-card-label {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pstat-sicon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pstat-si-b { background: #eff6ff; }
.pstat-si-g { background: #f0fdf4; }
.pstat-si-p { background: #faf5ff; }
.pstat-si-a { background: #fffbeb; }
.pstat-stat-nums { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.pstat-stat-prev { font-size: 13px; color: #d1d5db; font-weight: 500; line-height: 1; }
.pstat-stat-arr { font-size: 10px; color: #e5e7eb; margin-bottom: 1px; }
.pstat-stat-curr { font-size: 24px; font-weight: 500; line-height: 1; color: #111827; }
.pstat-diff-row { display: flex; align-items: center; gap: 5px; }
.pstat-dbadge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.pstat-dup { background: #dcfce7; color: #166534; }
.pstat-ddown { background: #fee2e2; color: #991b1b; }
.pstat-dzero { background: #f3f4f6; color: #6b7280; }
.pstat-dpct { font-size: 10px; color: #9ca3af; }
.pstat-spark { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-top: 8px; }
.pstat-spark-bar { border-radius: 2px 2px 0 0; min-width: 4px; flex: 1; transition: height 0.3s; }


/* ==================================================
   업무 달력 PC 리디자인 (2026-04)
   ================================================== */
.cal-pc-shell {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 125px);
    height: calc(100vh - 125px);
    border-radius: 0;
    overflow: hidden;
    border: 0.5px solid #e5eaf0;
    background: #f8fafd;
}
.cal-pc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 0;
}
.cal-pc-head {
    padding: 3px 10px 5px;
    border-bottom: 0.5px solid #edf1f5;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10120;
    background: #fff;
}
.cal-pc-head .cal-pc-ym {
    margin: 0;
    line-height: 1;
}
.cal-pc-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 0.5px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cal-pc-ym {
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.cal-pc-year { font-size: 16px; font-weight: 500; color: #374151; }
.cal-pc-month { font-size: 26px; font-weight: 600; color: #1a56db; line-height: 1; }
.cal-pc-month-unit { font-size: 12px; color: #94a3b8; }
.cal-pc-today-btn {
    height: 30px;
    padding: 0 11px;
    border-radius: 7px;
    border: 0.5px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.cal-view-mode-bar {
    padding: 6px 18px 8px;
    border-bottom: 0.5px solid #f3f4f6;
    background: #fff;
    display: flex;
    gap: 6px;
}
.cal-view-tb-btn {
    height: 28px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    border: 0.5px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
}
.cal-view-tb-btn--active {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}
#cal-wall-wrap.cal-mode-wall {
    padding: 0;
    background: #fff;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.cal-pc-side {
    width: 270px;
    background: #f8fafc;
    border-left: 0.5px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cal-pc-side-head {
    padding: 10px 12px 9px;
    border-bottom: 0.5px solid #e5e7eb;
    background: #fff;
}
.cal-pc-side-title { font-size: 12px; font-weight: 700; color: #111827; }
.cal-pc-side-sub { font-size: 10px; color: #9ca3af; margin-top: 1px; }
.cal-pc-side-body {
    flex: 1;
    overflow: hidden;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cal-pc-side-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
    padding: 10px 9px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    background: #fff;
}
.cal-pc-side-list-wrap {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.cal-pc-side-list-wrap .cal-m-listwrap {
    padding: 0;
}
.cal-pc-side-list-wrap .cal-m-list-row {
    margin-bottom: 6px;
}
.cal-pc-side-list-wrap .cal-m-list-row:last-child {
    margin-bottom: 0;
}
.cal-pc-side-list-wrap .cal-m-list-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.35;
}
.cal-pc-add-btn {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #1a2744;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 8px;
    cursor: pointer;
}
.cal-pc-side-bottom {
    margin-top: auto;
    border-top: 0.5px solid #e5e7eb;
    padding-top: 8px;
    background: #f8fafc;
}
.cal-pc-mini-cal {
    padding-top: 2px;
}
.cal-pc-mini-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.cal-pc-mini-title-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.cal-pc-mini-navs {
    display: inline-flex;
    gap: 4px;
}
.cal-pc-mini-nav {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}
.cal-pc-mini-weekhdr,
.cal-pc-mini-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-pc-mini-weekhdr span {
    text-align: center;
    font-size: 10px;
    color: #9ca3af;
    padding: 2px 0 4px;
}
.cal-pc-mini-weekhdr span:first-child { color: #ef4444; }
.cal-pc-mini-weekhdr span:last-child { color: #2563eb; }
.cal-pc-mini-day {
    border: none;
    background: transparent;
    text-align: center;
    font-size: 11px;
    color: #475569;
    line-height: 1;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}
.cal-pc-mini-daynum {
    line-height: 1;
}
.cal-pc-mini-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    display: inline-block;
}
.cal-pc-mini-dot--on {
    background: #22c55e;
}
.cal-pc-mini-day--empty {
    color: transparent;
    cursor: default;
}
.cal-pc-mini-day--selected {
    background: #1a56db;
    color: #fff;
    font-weight: 700;
}

.cal-pc-main .cal-event-item {
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cal-pc-weekday-row {
    background: #fff;
    border-bottom: 0.5px solid #e6ebf2;
}
.cal-pc-weekday-row .cal-pc-weekday-cell {
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.1;
}

/* /cal 상단 바를 참고 스샷처럼 얇게 */
.cal-page-root .technote-topbar {
    padding: 6px 10px 7px;
}
.cal-page-root .technote-top-left {
    gap: 6px;
}
.cal-page-root .technote-back-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}
.cal-page-root .technote-top-sub {
    display: none;
}
.cal-page-root .technote-top-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
}

@media (max-width: 1100px) {
    .cal-pc-shell {
        min-height: auto;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .cal-pc-side { display: none; }
}

/* =========================
   PC 실시간 내역 리프레시
   ========================= */
#trouble-list-panel .pc-realtime-panel {
    background: #fff;
    border: 0.5px solid #e9edf2;
    border-radius: 8px;
    overflow: hidden;
}

#trouble-list-panel .pc-realtime-topbar {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 0.5px solid #edf1f5;
    background: #fff;
}

#trouble-list-panel .pc-realtime-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

#trouble-list-panel .pc-realtime-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

#trouble-list-panel .pc-realtime-subtitle {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

#trouble-list-panel .pc-realtime-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    border: 0.5px solid #e7ebf0;
    background: #f7f8fa;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#trouble-list-panel .pc-realtime-map-btn:hover {
    background: #eef2f6;
}

#pc-data-table-visible .dash-table-container .dash-spreadsheet-container {
    border: 0 !important;
}

#pc-data-table-visible .dash-table-container .dash-spreadsheet-inner th {
    position: sticky;
    top: 0;
    z-index: 5;
}

#pc-data-table-visible .dash-cell {
    border-bottom: 0.5px solid #f1f4f7 !important;
}

/* PC 실시간 표: 세로 구분선 제거 */
#pc-data-table-visible .dash-header,
#pc-data-table-visible .dash-cell,
#pc-data-table-visible th,
#pc-data-table-visible td {
    border-left: none !important;
    border-right: none !important;
}

#pc-data-table-visible .dash-spreadsheet tr:hover td {
    background: #fafcff !important;
}

/* 처리상태: 셀이 아닌 텍스트 배지 스타일 */
#pc-data-table-visible td[data-dash-column="처리상태"] .status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
#pc-data-table-visible td[data-dash-column="처리상태"] .status-pill--service {
    background: #0d6efd;
    color: #ffffff;
}
#pc-data-table-visible td[data-dash-column="처리상태"] .status-pill--recall {
    background: #dc2626;
    color: #ffffff;
}
#pc-data-table-visible td[data-dash-column="처리상태"] .status-pill--default {
    background: transparent;
    color: #111827;
}

#trouble-list-panel .pc-view .previous-next-container,
#trouble-list-panel .pc-view .dash-table-paging {
    display: none !important;
}

#trouble-list-panel .pc-view .previous-next-container button,
#trouble-list-panel .pc-view .dash-table-paging button {
    min-width: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    border: 0.5px solid #e7ebf0 !important;
    background: #fff !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

#trouble-list-panel .pc-view .previous-next-container button:hover,
#trouble-list-panel .pc-view .dash-table-paging button:hover {
    background: #f3f4f6 !important;
}

/* 기본 current/total(1 / 4) 표시는 숨기고 숫자 버튼은 커스텀으로 제공 */
#trouble-list-panel .pc-view .previous-next-container .current-page-container,
#trouble-list-panel .pc-view .dash-table-paging .current-page-container,
#trouble-list-panel .pc-view .previous-next-container .page-number,
#trouble-list-panel .pc-view .dash-table-paging .page-number {
    display: none !important;
}

/* 페이지 선택 - 활성 버튼(스크린샷 톤) */
#trouble-list-panel .pc-view .previous-next-container button.current-page,
#trouble-list-panel .pc-view .dash-table-paging button.current-page,
#trouble-list-panel .pc-view .previous-next-container button.active,
#trouble-list-panel .pc-view .dash-table-paging button.active,
#trouble-list-panel .pc-view .previous-next-container button[aria-current="page"],
#trouble-list-panel .pc-view .dash-table-paging button[aria-current="page"] {
    background: #1a2744 !important;
    border-color: #1a2744 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 비활성 화살표 버튼 톤 다운 */
#trouble-list-panel .pc-view .previous-next-container button:disabled,
#trouble-list-panel .pc-view .dash-table-paging button:disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
    opacity: 1 !important;
    cursor: default !important;
}

/* PC 커스텀 페이지 숫자 버튼 */
#trouble-list-panel .pc-realtime-page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 10px !important;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 0.5px solid #edf1f5;
    background: #fff;
}
#trouble-list-panel .pc-realtime-page-btn {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    border: 0.5px solid #e7ebf0;
    background: #fff;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
#trouble-list-panel .pc-realtime-page-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: default;
}
#trouble-list-panel .pc-realtime-page-btn:hover {
    background: #f3f4f6;
}
#trouble-list-panel .pc-realtime-page-btn--active {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
    font-weight: 700;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.adm10-detail-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.adm10-detail-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
}

.adm10-hero-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.adm10-hero-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.adm10-hero-sub {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.adm10-summary-card,
.adm10-ticket-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.adm10-summary-card {
    padding: 13px 14px;
    background: #faf5ff;
    border-color: #e9d5ff;
}

.adm10-section-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
}

.adm10-count-pills {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.adm10-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.adm10-count-pill--service {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.adm10-count-pill--remote {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.adm10-section-head--ai {
    color: #5b21b6;
}

.adm10-summary-md {
    color: #1f2937;
    font-size: 13px;
    line-height: 1.55;
    max-width: 100%;
    overflow-x: hidden;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.adm10-summary-md p {
    margin: 0 0 8px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.adm10-summary-md ul,
.adm10-summary-md ol {
    padding-left: 18px;
    margin: 6px 0 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.adm10-summary-md li {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.adm10-summary-md pre,
.adm10-summary-md code {
    white-space: pre-wrap !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.adm10-ticket-section {
    padding: 13px 12px 12px;
}

.adm10-ticket-list {
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 4px;
}

.adm10-ticket-card {
    margin-bottom: 9px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.adm10-ticket-card[open] {
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(15, 35, 70, 0.06);
}

.adm10-ticket-summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 12px;
}

.adm10-ticket-summary::-webkit-details-marker {
    display: none;
}

.adm10-ticket-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.adm10-ticket-date,
.adm10-ticket-id {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.adm10-ticket-title {
    grid-column: 1 / 2;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adm10-ticket-status {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.adm10-ticket-status--red {
    background: #dc2626;
}

.adm10-ticket-status--green {
    background: #16a34a;
}

.adm10-ticket-status--blue {
    background: #0d6efd;
}

.adm10-ticket-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 10px 10px;
}

.adm10-ticket-detail-box {
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    background: #f8fafc;
}

.adm10-ticket-detail-box--complete {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.adm10-ticket-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.adm10-ticket-detail-label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.adm10-ticket-detail-head .adm10-ticket-detail-label {
    margin-bottom: 0;
    color: #1d4ed8;
}

.adm10-ticket-owner {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.adm10-ticket-detail-text {
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.adm10-ticket-detail-box--complete .adm10-ticket-detail-text {
    color: #1d4ed8;
}

.adm10-actionbar {
    position: sticky;
    bottom: -20px;
    padding: 10px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 35%);
}

.adm10-history-btn {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.adm10-history-btn--ai {
    width: auto;
    min-height: 38px;
    padding: 0 13px;
    margin-top: 10px;
    background: #7c3aed;
}

.adm10-ai-empty {
    padding: 12px;
    border: 1px dashed #c4b5fd;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.adm10-ai-empty-text {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.adm10-ai-pending {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #5b21b6;
    font-size: 13px;
    font-weight: 800;
}

.adm10-inline-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #ddd6fe;
    border-top-color: #7c3aed;
    animation: spin 0.9s linear infinite;
    flex: 0 0 auto;
}
