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

/* =========================
   업무 링크(/worklinks) — 목업 스타일
   ========================= */
#dashboard-stack.content-area:has(.worklinks-page) { padding-bottom: 12px !important; }
.worklinks-page { max-width: 720px; margin: 0 auto; }
@media screen and (max-width: 800px) {
  /* /worklinks: 앱 공통 상단바 숨김 — 페이지 상단바가 상단부터 */
  body:has(#dashboard-stack .worklinks-page) .app-top-header { display: none !important; }
  /* /worklinks: 상단바 풀폭 */
  body:has(#dashboard-stack .worklinks-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 .worklinks-page) .metric-header-fixed { display: none !important; }
  body:has(#dashboard-stack .worklinks-page) #dashboard-content { padding: 0 !important; }
  .worklinks-page { max-width: none !important; width: 100% !important; }
}

/* ── 주간 업무(/work/weekly) — 통일 톤 */
.weekly-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 24px;
    box-sizing: border-box;
}
.blockbar-page,
.opinion-page,
.profile-page,
.history-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 24px;
    box-sizing: border-box;
}
.stat-page { width: 100%; box-sizing: border-box; }
.weekly-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.weekly-card { background: #fff; border-radius: 12px; border: 0.5px solid #e5e7eb; overflow: hidden; }
.profile-page .weekly-card { overflow: visible; }
.weekly-ch { display: flex; align-items: center; gap: 7px; padding: 11px 14px 10px; border-bottom: 0.5px solid #f3f4f6; }
.weekly-ci { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.weekly-ci-b { background: #eff6ff; }
.weekly-ci-g { background: #f0fdf4; }
.weekly-ct { font-size: 13px; font-weight: 500; color: #111827; }
.weekly-cb { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.profile-page .weekly-cb { overflow: visible; }
.profile-page .SingleDatePicker_picker,
.profile-page .SingleDatePicker_picker__portal {
    z-index: 20050 !important;
}
.weekly-fr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weekly-fi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.weekly-fl { font-size: 11px; font-weight: 500; color: #374151; }
.weekly-inp, .weekly-inp 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;
}
.weekly-inp::placeholder { color: #9ca3af; font-size: 12px; }

.weekly-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weekly-btn {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.weekly-btn--primary { background: #1a2744; border-color: #1a2744; color: #fff; }
.weekly-btn--ghost { background: #fafafa; border-color: #e5e7eb; color: #334155; font-weight: 700; }
.weekly-msg { font-size: 12px; color: #64748b; min-height: 18px; }
.blockbar-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blockbar-table { width: 100%; min-width: 520px; }

/* /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: 0 !important;
  }
  body:has(#dashboard-content .stat-page-marker) .stat-page .technote-hamburger {
    display: none !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-body { padding: 10px 12px 16px; background: #f4f5f7; }
.worklinks-search-wrap { position: relative; margin-bottom: 2px; }
.worklinks-search-inp {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 0.5px solid #e5e7eb;
  font-size: 13px;
  padding: 0 36px 0 12px;
  outline: none;
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}
.worklinks-search-inp::placeholder { color: #9ca3af; }
.worklinks-search-ico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); opacity: .7; }
.worklinks-cat-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.worklinks-cat-scroll::-webkit-scrollbar { display: none; }
.worklinks-cat-row { display: flex; align-items: center; gap: 8px; }
.worklinks-cat-row .worklinks-cat-scroll { flex: 1; min-width: 0; padding: 10px 0; }
.worklinks-edit-chipbtn {
  width: 36px;
  height: 32px;
  border-radius: 10px;
  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: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 0.5px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
  white-space: nowrap;
}
.worklinks-ctab--active {
  background: #1a2744 !important;
  color: #fff !important;
  border-color: #1a2744 !important;
}
.worklinks-ctab-inp { display: none !important; }

/* 섹션 헤더 */
.worklinks-sec-head { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; }
.worklinks-sec-label { font-size: 11px; font-weight: 800; 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: 800; background: transparent; border: none; }

/* 자주 쓰는 링크 2열 */
.worklinks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 7px; }
.worklinks-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  padding: 13px 13px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.worklinks-card--featured { border: 0.5px solid #bfdbfe; background: #f0f7ff; }
.worklinks-card:hover { border-color: #9ca3af; }
.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; }
.worklinks-card-name { font-size: 12px; font-weight: 800; color: #111827; line-height: 1.3; }
.worklinks-card-desc { font-size: 10px; color: #9ca3af; line-height: 1.4; }
.worklinks-card-ext { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.wl-badge { font-size: 9px; font-weight: 800; padding: 2px 6px; 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; }
.worklinks-arrow { opacity: .25; }

/* 일반 가로 row */
.worklinks-row {
  background: #fff;
  border-radius: 11px;
  border: 0.5px solid #e5e7eb;
  padding: 11px 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
  text-decoration: none;
}
.worklinks-row:hover { border-color: #9ca3af; }
.worklinks-row-name { font-size: 13px; font-weight: 800; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.worklinks-row-desc { font-size: 11px; 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-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; }

/* 업무링크 상단 우측 액션(메뉴) */
.worklinks-top-actions { display: inline-flex; align-items: center; gap: 8px; }

/* 기술노트 상세: 모바일 바텀시트·메타·본문 Markdown·하단 액션 */
#tech-modal.modal--technote {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    #tech-modal.modal--technote {
        align-items: center;
        padding: 16px;
    }
}
#tech-modal .technote-detail-sheet {
    width: 100%;
    max-width: 560px;
    max-height: min(92vh, 900px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}
@media (min-width: 768px) {
    #tech-modal .technote-detail-sheet {
        border-radius: 16px;
        width: 94%;
        max-height: 90vh;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}
#tech-modal .technote-detail-handle-bar {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 10px auto 4px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    #tech-modal .technote-detail-handle-bar {
        display: none;
    }
}
#tech-modal .technote-detail-close.close-btn {
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
}
#tech-modal .technote-detail-hero {
    padding: 8px 18px 4px;
    flex-shrink: 0;
}
#tech-modal .technote-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 44px;
}
#tech-modal .technote-detail-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}
#tech-modal .technote-detail-avatar {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#tech-modal .technote-detail-av-letter {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}
#tech-modal .technote-detail-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
#tech-modal .technote-modal-body-scroll {
    padding: 12px 18px 18px;
    min-height: 0;
}
#tech-modal #tech-modal-body {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}
#tech-modal #tech-modal-body h1,
#tech-modal #tech-modal-body h2,
#tech-modal #tech-modal-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0 8px;
    padding: 0 0 6px 0;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.35;
}
#tech-modal #tech-modal-body h1 { font-size: 17px; }
#tech-modal #tech-modal-body h3 { font-size: 14px; font-weight: 600; color: #334155; }
#tech-modal #tech-modal-body h1:first-child,
#tech-modal #tech-modal-body h2:first-child,
#tech-modal #tech-modal-body h3:first-child {
    margin-top: 4px;
}
#tech-modal #tech-modal-body p {
    margin: 0 0 10px;
}
#tech-modal #tech-modal-body ul,
#tech-modal #tech-modal-body ol {
    margin: 0 0 10px;
    padding-left: 1.25rem;
}
#tech-modal #tech-modal-body pre {
    background: #1e222d;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.45;
    border: none;
    margin: 12px 0;
    white-space: pre;
    word-wrap: normal;
    tab-size: 4;
}
#tech-modal #tech-modal-body pre code {
    background: transparent !important;
    color: inherit !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: inherit;
}
#tech-modal #tech-modal-body :not(pre) > code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#tech-modal #tech-modal-body blockquote {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 3px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}
#tech-modal #tech-modal-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}
#tech-modal #tech-modal-body a {
    color: #2563eb;
    word-break: break-all;
}
#tech-modal .technote-detail-foot {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
    flex-shrink: 0;
}
#tech-modal .technote-detail-foot-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
#tech-modal .technote-detail-foot-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
#tech-modal .technote-detail-foot-btn--danger {
    color: #dc2626;
    border-color: #fecaca;
}
#tech-modal .technote-detail-foot-btn--danger:hover {
    background: #fef2f2;
}
#tech-modal .technote-detail-foot-del {
    flex: 1;
    min-width: 0;
}
#tech-modal .technote-detail-foot-del > div {
    width: 100%;
    height: 100%;
}
#tech-modal .technote-detail-foot-del button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
#tech-modal .technote-detail-foot-del button:hover {
    background: #fef2f2;
}

/* 사이드바/상단바 설정 — 앱 헤더(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: 901px) {
    .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: 152px !important; }
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area { margin-top: 26px !important; }

    /* PC: 담당구역 칩바는 한 줄(가로 스크롤) */
    .region-chip-bar {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 8px 10px 10px !important;
        min-height: 44px !important;
        -webkit-overflow-scrolling: touch;
    }
    /* PC에서 내부 row 래퍼가 남아있어도 줄바꿈 금지 */
    .region-chip-row {
        flex-wrap: nowrap !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-bar.metric-bar--buttons-only {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    min-height: 86px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 30px 8px;
    background-color: #ffffff;
    border-bottom: none;
    box-sizing: border-box;
}
/* 메트릭바 아래 (모바일 툴바 위) 한줄 요약 */
.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;
    }
    /* 모바일 메트릭: 가로 스크롤 스트립 */
    .metric-bar.metric-bar--buttons-only {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #ffffff !important;
        border-bottom: 0.5px solid #e2e5ea !important;
        padding: 6px 0 7px !important;
        gap: 0 !important;
    }
    .metric-bar.metric-bar--buttons-only::-webkit-scrollbar {
        display: none;
    }
    .metric-bar.metric-bar--buttons-only > .metric-box {
        flex: 0 0 auto !important;
        min-width: 58px !important;
        border-radius: 0 !important;
        border: none !important;
        border-right: 0.5px solid #f0f0f0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 7px 6px 8px !important;
    }
    .metric-bar.metric-bar--buttons-only > .metric-box:last-child {
        border-right: 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; }
/* 교체 이력: app.layout 에만 마운트(page-content 전환·부트 레이아웃과 무관) — 콜백 flat_data IndexError 방지 */
#swap-route-panel { box-sizing: border-box; }
#swap-route-panel.swap-route-visible {
    display: block !important;
    position: fixed;
    z-index: 100;
    left: 180px;
    top: 162px;
    right: 0;
    bottom: 88px;
    overflow: auto;
    background: #f8fafc;
    padding: 12px 16px;
}
@media screen and (max-width: 800px) {
    #swap-route-panel.swap-route-visible {
        left: 0;
        top: env(safe-area-inset-top, 0px);
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        padding: 0 !important;
    }
    /* /work/swap: 교체 이력 자체 상단바를 쓰므로 앱 공통 상단바 숨김 */
    body:has(#swap-route-panel.swap-route-visible) .app-top-header { display: none !important; }
    body:has(#swap-route-panel.swap-route-visible) .metric-header-fixed { display: none !important; }
    /* /work/swap: 상단바는 스크롤에 안 딸려가게(패널 내부 sticky) */
    body:has(#swap-route-panel.swap-route-visible) #swap-route-panel.swap-route-visible .technote-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 10125 !important;
    }
}
/* 견적서 작성: 교체 이력과 동일하게 app.layout 단일 마운트 */
#estimate-route-panel { box-sizing: border-box; }
#estimate-route-panel.estimate-route-visible {
    display: block !important;
    position: fixed;
    z-index: 100;
    left: 180px;
    top: 162px;
    right: 0;
    bottom: 88px;
    overflow: auto;
    background: #f4f5f7;
    padding: 12px 16px;
}
@media screen and (max-width: 800px) {
    /* 앱 상단바(브랜드+DB시각, 약 두 줄) 아래에서 스크롤 시작 — 견적 상단·스텝이 잘리지 않게 */
    #estimate-route-panel.estimate-route-visible {
        left: 0;
        top: calc(56px + 28px + env(safe-area-inset-top, 0px));
        bottom: 72px;
        padding: 10px 8px;
    }
    /* /work/estimate: 견적서 자체 상단바를 쓰므로 앱 공통 상단바 숨김 */
    body:has(#estimate-route-panel.estimate-route-visible) .app-top-header {
        display: none !important;
    }
    body:has(#estimate-route-panel.estimate-route-visible) #estimate-route-panel.estimate-route-visible {
        top: env(safe-area-inset-top, 0px);
        z-index: 10120 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* 하단 고정 채팅바 + safe-area 만큼 비워서 본문이 가리지 않게 */
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 !important;
    }
    /* /work/estimate: 상단바는 스크롤에 안 딸려가게(패널 내부 sticky) */
    body:has(#estimate-route-panel.estimate-route-visible) #estimate-route-panel.estimate-route-visible .technote-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 10125 !important;
    }
}
/* 기술노트(/tech): 고정 패널 — tech-data-table 등 콜백 id 가 모든 라우트에서 존재 */
#technote-route-panel {
    box-sizing: border-box;
    display: none;
}
#technote-route-panel.technote-route-visible {
    display: block !important;
    position: fixed;
    z-index: 100;
    left: 180px;
    top: 0;
    right: 0;
    bottom: 88px;
    overflow: hidden;
    background: #f4f6f9;
    /* 좌우 패딩 없음: 상단 네이비 바가 패널 가로 전체를 채움(회색 틈 방지). 본문은 .technote-cat-scroll 등 자체 패딩 */
    padding: 0 0 12px;
    box-sizing: border-box;
}

/* /tech PC: 상단 여백 제거 + 전역 헤더 레이어 숨김 */
body:has(#technote-route-panel.technote-route-visible) .app-top-header {
    display: none !important;
}
body:has(#technote-route-panel.technote-route-visible) .metric-header-fixed {
    display: none !important;
}
body:has(#technote-route-panel.technote-route-visible) #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:has(#technote-route-panel.technote-route-visible) #dashboard-content {
    padding: 0 !important;
}

/* /tech PC: 모달 팝업 대신 우측 상세패널만 사용 */
@media screen and (min-width: 801px) {
    body:has(#technote-route-panel.technote-route-visible) #tech-modal.modal--technote {
        display: none !important;
    }
}
@media screen and (max-width: 800px) {
    #technote-route-panel.technote-route-visible {
        left: 0;
        top: calc(56px + 28px + env(safe-area-inset-top, 0px));
        bottom: 72px;
        padding: 0 0 10px;
    }
    /* /tech: 기술노트 자체 상단바와 겹치지 않도록 전역 앱 헤더 숨김 + 패널을 안전영역부터 */
    body:has(#technote-route-panel.technote-route-visible) .app-top-header {
        display: none !important;
    }
    body:has(#technote-route-panel.technote-route-visible) #technote-route-panel.technote-route-visible {
        top: env(safe-area-inset-top, 0px);
        /* 앱 상단(10050)·메트릭(10040)보다 위로 — 좌우에 다른 레이어가 비치는 현상 방지 */
        z-index: 10120 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body:has(#technote-route-panel.technote-route-visible) #technote-route-panel.technote-route-visible .technote-page {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    body:has(#technote-route-panel.technote-route-visible) #technote-route-panel.technote-route-visible .technote-topbar {
        width: 100%;
        box-sizing: border-box;
    }
}
/* 견적서 작성 — 카드·스텝·폼 목업 톤 */
.estimate-quotation-page.est-q-mock {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 24px;
    box-sizing: border-box;
}
@media screen and (max-width: 800px) {
    /* /work/estimate: 상단바는 풀폭, 본문만 여백 */
    .estimate-quotation-page.est-q-mock {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 8px 24px !important;
    }
    body:has(#estimate-route-panel.estimate-route-visible) .estimate-quotation-page.est-q-mock .technote-topbar {
        margin: 0 -8px 0 !important;
    }
}

/* ── 교체 이력(/work/swap) — 목업 카드 UI */
.swap-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 24px;
    box-sizing: border-box;
}
@media screen and (max-width: 800px) {
    /* /work/swap: 상단바는 풀폭, 본문만 여백 */
    .swap-page {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 8px 24px !important;
    }
    body:has(#swap-route-panel.swap-route-visible) .swap-page .technote-topbar {
        margin: 0 -8px 0 !important;
    }
}
.swap-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.swap-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    overflow: hidden;
}
.swap-ch {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px 10px;
    border-bottom: 0.5px solid #f3f4f6;
}
.swap-ci {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.swap-ci-b { background: #eff6ff; }
.swap-ci-g { background: #f0fdf4; }
.swap-ct {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}
.swap-csb {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
}
.swap-cb {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.swap-fr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.swap-fi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.swap-fl { font-size: 11px; font-weight: 500; color: #374151; display: flex; gap: 6px; align-items: baseline; }
.swap-inp input,
.swap-inp {
    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;
}
.swap-inp::placeholder { color: #9ca3af; font-size: 12px; }
.swap-ta {
    border-radius: 9px;
    border: 0.5px solid #e5e7eb;
    font-size: 13px;
    padding: 10px 12px;
    outline: none;
    color: #111827;
    background: #fafafa;
    width: 100%;
    resize: none;
    min-height: 58px;
    line-height: 1.5;
    box-sizing: border-box;
}
.swap-ta::placeholder { color: #9ca3af; font-size: 12px; }

/* 사진 업로드 — 순서형 */
.swap-photo-label { font-size: 11px; font-weight: 500; color: #374151; display: flex; align-items: center; justify-content: space-between; }
.swap-photo-hint { font-size: 10px; color: #9ca3af; font-weight: 400; }
.swap-photo-strip { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.swap-photo-strip::-webkit-scrollbar { display: none; }
.swap-photo-slot {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}
.swap-ps-empty { border: 1.5px dashed #d1d5db; }
.swap-ps-empty:hover { border-color: #1a56db; background: #f0f7ff; }
.swap-ps-num { font-size: 10px; font-weight: 500; color: #9ca3af; margin-top: 5px; }
.swap-save-path {
    background: #f8faff;
    border: 0.5px solid #dbeafe;
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}
.swap-save-path .swap-path-text {
    font-size: 11px;
    color: #1e40af;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
}
.swap-save-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #1a2744;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* 저장된 이력: 검색 */
.swap-search-wrap { position: relative; }
.swap-srch {
    width: 100%;
    height: 38px;
    border-radius: 9px;
    border: 0.5px solid #e5e7eb;
    font-size: 12px;
    padding: 0 36px 0 12px;
    outline: none;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}
.swap-srch::placeholder { color: #9ca3af; }
.swap-sico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); }

/* 이력 카드 */
.swap-hist-card {
    background: #fff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
}
.swap-hist-card:hover { border-color: #9ca3af; }
.swap-hist-card.swap-selected { border-color: #1a56db; background: #f8fbff; }
.swap-hc-top { padding: 10px 13px; display: flex; align-items: center; gap: 10px; }
.swap-hc-chk {
    width: 18px; height: 18px; border-radius: 5px;
    border: 0.5px solid #d1d5db; background: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.swap-hc-chk.on { background: #1a2744; border-color: #1a2744; }
.swap-hc-info { flex: 1; min-width: 0; }
.swap-hc-date { font-size: 10px; color: #9ca3af; margin-bottom: 2px; }
.swap-hc-site { font-size: 13px; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-hc-part { font-size: 11px; color: #6b7280; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-hc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.swap-hc-id { font-size: 10px; color: #d1d5db; }
.swap-hc-photo-badge { font-size: 10px; font-weight: 500; background: #eff6ff; color: #1e40af; padding: 2px 7px; border-radius: 4px; }
.swap-hc-thumbs { display: flex; gap: 5px; padding: 0 13px 10px; }
.swap-hc-thumb { width: 52px; height: 52px; border-radius: 7px; flex-shrink: 0; overflow: hidden; background: #f3f4f6; position: relative; }
.swap-hc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swap-hc-thumb-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 2px 4px; background: rgba(0,0,0,.45); font-size: 8px; color: #fff; text-align: center; }
.swap-hc-thumb-more { width: 52px; height: 52px; border-radius: 7px; background: #f3f4f6; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #6b7280; }

/* 하단 액션 */
.swap-hist-actions { display: flex; gap: 7px; padding: 0 0 4px; }
.swap-ha-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
}
.swap-btn-zip { background: #1a2744; color: #fff; }
.swap-btn-del { background: #fef2f2; color: #dc2626; border: 0.5px solid #fecaca; }
.est-q-topbar {
    background: #1a2744;
    padding: 12px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    margin: 0 -12px 0;
    box-sizing: border-box;
}
@media screen and (max-width: 800px) {
    .est-q-topbar {
        margin: 0 -8px 0;
    }
}
.est-q-topbar-left .est-q-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.est-q-topbar-left .est-q-meta {
    font-size: 10px;
    color: #6b85b5;
    margin-top: 2px;
}
.est-step-bar {
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    padding: 12px 16px;
    margin: 0 -12px 0;
    box-sizing: border-box;
}
@media screen and (max-width: 800px) {
    .est-step-bar {
        margin: 0 -8px 0;
    }
}
.est-step-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.est-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
}
.est-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 60%;
    right: -40%;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}
.est-step-item.est-step-done:not(:last-child)::after {
    background: #1a56db;
}
.est-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    z-index: 1;
    position: relative;
}
.est-step-item.est-step-done .est-step-circle {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}
.est-step-item.est-step-active .est-step-circle {
    background: #1a56db;
    border-color: #1a56db;
    color: #fff;
}
.est-step-label {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
}
.est-step-item.est-step-active .est-step-label {
    color: #1a56db;
    font-weight: 500;
}
.est-step-item.est-step-done .est-step-label {
    color: #374151;
}
.est-q-body {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.est-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    padding: 14px;
    box-sizing: border-box;
}
.est-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.est-card-head .est-card-title-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.est-card-ico {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.est-ci-blue {
    background: #eff6ff;
}
.est-ci-green {
    background: #f0fdf4;
}
.est-ci-purple {
    background: #faf5ff;
}
.est-ci-amber {
    background: #fffbeb;
}
.est-card-sub {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}
.est-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}
.est-field:last-child {
    margin-bottom: 0;
}
.est-field-label {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}
.est-req {
    color: #dc2626;
    font-size: 10px;
}
.est-field-input {
    height: 40px !important;
    border-radius: 9px !important;
    border: 0.5px solid #e5e7eb !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    color: #111827 !important;
    background: #fafafa !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}
.est-field-input:focus {
    border-color: #1a56db !important;
    background: #fff !important;
    outline: none !important;
}
.est-field-input.est-readonly-no {
    color: #9ca3af !important;
    background: #f3f4f6 !important;
}
.est-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.est-field-textarea {
    border-radius: 9px !important;
    border: 0.5px solid #e5e7eb !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    color: #111827 !important;
    background: #fafafa !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 72px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
.est-fixed-field {
    background: #f3f4f6;
    border-radius: 9px;
    border: 0.5px solid #e5e7eb;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.est-fixed-badge {
    font-size: 10px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.est-fixed-input {
    border: none !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
    font-size: 13px !important;
    color: #374151 !important;
    padding: 0 !important;
    height: auto !important;
    max-width: none !important;
}
.est-fixed-input:focus {
    outline: none !important;
}
.est-items-card {
    padding: 14px 14px 0;
}
.est-lines-wrap {
    overflow-x: auto;
    overflow-y: auto;
    margin: 0 -14px;
    padding: 0 14px;
    /* 헤더 + 품목 약 3행만 보이고 나머지는 세로 스크롤 */
    max-height: 158px;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container {
    max-height: 158px;
    overflow-y: auto !important;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container .dash-spreadsheet-inner table {
    border-collapse: collapse;
    font-size: 11px;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container .dash-spreadsheet-inner th {
    padding: 7px 6px;
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
    border-bottom: 0.5px solid #f0f0f0;
    white-space: nowrap;
    background: #fff !important;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container .dash-spreadsheet-inner td {
    padding: 2px 4px;
    border-bottom: 0.5px solid #f8f8f8;
    vertical-align: middle;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container .dash-spreadsheet-inner td input {
    width: 100%;
    height: 34px;
    border: none;
    font-size: 11px;
    padding: 0 6px;
    outline: none;
    background: transparent;
    color: #111827;
    box-sizing: border-box;
}
.estimate-quotation-page #estimate-lines-table .dash-spreadsheet-container .dash-spreadsheet-inner td input:focus {
    background: #f0f7ff;
}
.est-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    border-top: 0.5px solid #f0f0f0;
    margin-top: 4px;
}
.est-total-label {
    font-size: 12px;
    color: #6b7280;
}
.est-total-num {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}
.est-foot {
    padding: 12px 0 0;
    display: flex;
    gap: 8px;
    background: transparent;
}
.est-btn {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    font-family: inherit;
    box-sizing: border-box;
}
.est-btn-preview {
    flex: 0.85;
    background: #fff;
    color: #374151;
    border: 0.5px solid #d1d5db;
}
.est-btn-primary {
    background: #1a2744;
    color: #fff;
}
.est-build-msg {
    min-height: 20px;
    font-size: 12px;
    margin: 4px 0 8px;
}
.estimate-quotation-page .SingleDatePickerInput,
.estimate-quotation-page .DateInput {
    width: 100% !important;
    max-width: none !important;
}
.estimate-quotation-page .SingleDatePickerInput .DateInput_input {
    height: 40px !important;
    border-radius: 9px !important;
    border: 0.5px solid #e5e7eb !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    background: #fafafa !important;
    color: #111827 !important;
    font-weight: 400 !important;
}

/* 견적 미리보기: PNG 이미지(img) — 모바일·PC 공통 */
#estimate-pdf-preview-img {
    display: block;
    width: 100%;
    max-height: min(78vh, 720px);
    height: auto;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    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;
}
/* 메인(/) 카드형 목업 — .home-mock-page 안만 조정 (공지·일정·날씨·AI) */
.home-mock-page .home-preamble-top-row {
    gap: 8px;
    margin-bottom: 8px;
}
.home-mock-page .home-preamble-left-stack {
    gap: 8px;
}
.home-mock-page .home-notice-card,
.home-mock-page .home-schedule-card,
.home-mock-page .home-weather-box {
    border-radius: 12px;
    border: 0.5px solid #e2e5ea;
    box-shadow: none;
}
.home-mock-page .home-notice-card,
.home-mock-page .home-schedule-card {
    padding: 0;
    overflow: hidden;
}
.home-mock-page .home-notice-card-header {
    padding: 10px 13px 0;
    margin-bottom: 0;
}
.home-mock-page .home-notice-icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #fef3c7;
}
.home-mock-page .home-notice-title-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.home-mock-page .home-notice-edit-link {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
}
.home-mock-page .home-notice-body {
    margin: 8px 13px 11px;
    border: none;
    border-radius: 0 6px 6px 0;
    border-left: 2px solid #f59e0b;
    background: #fffbeb;
    padding: 8px 10px;
    font-size: 12px;
    color: #374151;
    line-height: 1.6;
}
.home-mock-page .home-schedule-card-header {
    padding: 10px 13px 0;
    margin-bottom: 0;
}
.home-mock-page .home-schedule-icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}
.home-mock-page .home-schedule-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.home-mock-page .home-schedule-grid {
    padding: 8px 13px 11px;
    gap: 8px;
}
.home-mock-page .home-schedule-col--today {
    background: #f8faff;
    border: 0.5px solid #dbeafe;
    border-radius: 8px;
}
.home-mock-page .home-schedule-col--next {
    background: #fafafa;
    border: 0.5px solid #e5e7eb;
    border-radius: 8px;
}
.home-mock-page .home-schedule-col-label {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 3px;
    gap: 4px;
}
.home-mock-page .home-schedule-bullet--today {
    width: 5px;
    height: 5px;
}
.home-mock-page .home-schedule-bullet--next {
    width: 5px;
    height: 5px;
}
/* 날씨: 목업 카드 톤만 유지 — padding/overflow 는 기본 .home-weather-box 와 동일하게(이모지·가로 스크롤 잘림 방지) */
.home-mock-page .home-weather-box {
    padding: 12px 14px 10px;
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 12px;
}
.home-mock-page .home-weather-title-row {
    padding: 0;
    margin-bottom: 10px;
}
.home-mock-page .home-weather-title-icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #e0f2fe;
}
.home-mock-page .home-weather-title-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.home-mock-page .home-weather-daily-strip .home-weather-day .ico {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    margin: 4px 0 3px;
}
.home-mock-page .home-weather-hour-pill .hw-ico {
    display: block;
    line-height: 1.2;
    min-height: 1.15em;
}
.home-mock-page .home-weather-footnote {
    padding: 10px 0 0;
    margin: 0;
    font-size: 10px;
    color: #d1d5db;
}
.home-mock-page .home-main-grid { display: none; } /* default off (mobile) */

/* PC 메인(/) 대시보드 리스킨 (home-mock-page 전용) */
@media (min-width: 900px) {
  .home-mock-page { background: #f0f2f5; border-radius: 16px; border: 0.5px solid #d1d5db; overflow: hidden; padding: 0; }
  .home-mock-page .home-main-topbar { background: #fff; border-bottom: 0.5px solid #e8eaed; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
  .home-mock-page .home-main-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .home-mock-page .home-main-tabs::-webkit-scrollbar { display:none; }
  .home-mock-page .home-main-tab { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; color: #6b7280; white-space: nowrap; border: 0.5px solid transparent; }
  .home-mock-page .home-main-tab--active { background: #1a2744; color: #fff; }
  .home-mock-page .home-main-tab .cnt { font-size: 10px; opacity: .75; margin-left: 3px; }
  .home-mock-page .home-main-grid { display: grid; padding: 16px 20px 18px; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: auto; gap: 14px; }
  .home-mock-page .home-card { background: #fff; border-radius: 12px; border: 0.5px solid #e5e7eb; overflow: hidden; }
  .home-mock-page .home-card-head { display:flex; align-items:center; gap:7px; padding:12px 14px 10px; border-bottom:0.5px solid #f3f4f6; }
  .home-mock-page .home-card-ico { width:20px; height:20px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .home-mock-page .home-card-title { font-size:12px; font-weight:700; color:#111827; }
  .home-mock-page .home-card-action { font-size:11px; font-weight:700; color:#1a56db; margin-left:auto; cursor:pointer; }
  .home-mock-page .home-long-card { background:#fff8f8; border-color:#fecaca; }
  .home-mock-page .home-long-inner { padding:12px 14px; display:flex; align-items:center; gap:12px; }
  .home-mock-page .home-long-num { font-size:36px; font-weight:800; color:#dc2626; line-height:1; }
  .home-mock-page .home-long-sub { font-size:11px; color:#b91c1c; font-weight:700; }
  .home-mock-page .home-long-badge { margin-left:auto; font-size:10px; font-weight:800; padding:3px 9px; border-radius:6px; background:#fee2e2; color:#991b1b; flex-shrink:0; }
  .home-mock-page .home-span2 { grid-column: span 2; }
  .home-mock-page .home-span3 { grid-column: span 3; }

  /* 중복 렌더 방지: PC에서는 grid만 보여준다 */
  .home-mock-page .home-preamble-top-row { display: none !important; }
  /* briefing_sec가 grid에도 들어가므로, grid 바깥의 briefing은 숨김 */
  .home-mock-page > .home-ai-briefing-box { display: none !important; }
}

/* PC 공통 — 구역칩/메트릭바 보정 (사이드바는 공통 스타일 사용) */
@media (min-width: 900px) {
  /* 상단 구역칩(탭) */
  .metric-header-fixed #region-chip-bar.region-chip-bar {
    padding: 0 20px 6px !important;
    background: #ffffff !important;
    border-bottom: 0.5px solid #e8eaed !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
    padding: 8px 0 0 !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip {
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    background: #ffffff !important;
    border: 0.5px solid #e5e7eb !important;
    box-shadow: none !important;
    gap: 5px !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip--active {
    background: #1a2744 !important;
    border-color: #1a2744 !important;
    color: #ffffff !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip__count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 16px !important;
    padding: 0 5px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    margin-left: 2px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
  }
  .metric-header-fixed #region-chip-bar .region-chip--active .region-chip__count {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
  }

  /* 메트릭바 (PC 공통 통일) */
  .metric-header-fixed .metric-bar.metric-bar--buttons-only {
    background: #ffffff !important;
    border-bottom: 0.5px solid #e8eaed !important;
    padding: 0 20px !important;
    gap: 0 !important;
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only > .metric-box {
    flex: 1 1 0 !important;
    text-align: center !important;
    padding: 10px 0 !important;
    border-right: 0.5px solid #f0f0f0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only > .metric-box:last-child {
    border-right: none !important;
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label {
    justify-content: center !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    margin-bottom: 3px !important;
    gap: 0 !important;
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label iconify-icon,
  .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label svg {
    display: none !important; /* 아이콘 없이 텍스트만 */
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label span {
    font-size: 11px !important;
    font-weight: 500 !important;
  }
  .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box h2 {
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }
}
.home-mock-page .home-ai-briefing-box {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}
.home-mock-page .home-ai-briefing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px 0;
    gap: 8px;
}
.home-mock-page .home-ai-briefing-head-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.home-mock-page .home-ai-briefing-head-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-mock-page .home-ai-briefing-head-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.home-mock-page .home-ai-briefing-updated {
    font-size: 10px;
    color: #9ca3af;
    flex-shrink: 0;
}
.home-mock-page .home-ai-briefing-card-body {
    padding: 8px 13px 11px;
}
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md,
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md p,
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md li {
    color: #374151 !important;
    font-size: 12px !important;
}
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md h1,
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md h2,
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md h3,
.home-mock-page .home-ai-briefing-box .home-ai-briefing-md h4 {
    color: #374151 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}
.home-mock-page .home-ai-briefing-empty-msg {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    padding: 0 13px 11px;
}
@media screen and (max-width: 800px) {
    .home-mock-page {
        background: #f4f5f7 !important;
        padding: 5px 12px 14px !important;
    }
}
/* 메인(/): 모바일은 공지→일정→날씨 세로, PC(≥901px)는 공지·일정 좌 / 날씨 우 */
.home-preamble-top-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 7px;
}
.home-preamble-left-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    width: 100%;
}
.home-preamble-weather-slot {
    min-width: 0;
    width: 100%;
}
.home-preamble-weather-slot .home-weather-box {
    margin-bottom: 0;
}
@media (min-width: 901px) {
    .home-preamble-top-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 11px;
        margin-bottom: 9px;
    }
    .home-preamble-left-stack {
        flex: 0 1 38%;
        max-width: 460px;
        min-width: 260px;
    }
    .home-preamble-weather-slot {
        flex: 1 1 0;
        min-width: 0;
    }
    .home-preamble-left-stack .home-notice-body {
        padding: 8px 12px;
        font-size: 12px;
    }
    .home-preamble-left-stack .home-schedule-col {
        padding: 8px 10px;
        font-size: 12px;
    }
}
/* 메인 공지: 흰 카드 + 헤더(종 아이콘) + 본문 크림박스 왼쪽 주황 강조줄 */
.home-notice-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 14px 12px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 100%;
}
.home-notice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}
.home-notice-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.home-notice-icon-wrap {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-notice-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.home-notice-edit-link {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: inherit;
}
.home-notice-edit-link:hover {
    background: #eff6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.home-notice-body {
    background: #fffbeb;
    border-radius: 10px;
    border: 1px solid #fde68a;
    border-left: 3px solid #f97316;
    padding: 9px 14px;
    font-size: 13px;
    color: #422006;
    line-height: 1.55;
    white-space: pre-wrap;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}
/* 메인 일정: 흰 카드 + 오늘/다음 2열 */
.home-schedule-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 14px 12px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 100%;
}
.home-schedule-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.home-schedule-icon-wrap {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-schedule-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.home-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}
@media (max-width: 380px) {
    .home-schedule-grid {
        grid-template-columns: 1fr;
    }
}
.home-schedule-col {
    border-radius: 12px;
    padding: 10px 12px 11px;
    box-sizing: border-box;
    min-width: 0;
}
.home-schedule-col--today {
    background: #f8fafc;
    border: 1px solid #bfdbfe;
}
.home-schedule-col--next {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.home-schedule-col-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}
.home-schedule-col-label--today {
    color: #1d4ed8;
}
.home-schedule-col-label--next {
    color: #64748b;
}
.home-schedule-bullet {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}
.home-schedule-bullet--today {
    background: #2563eb;
}
.home-schedule-bullet--next {
    background: #94a3b8;
}
.home-schedule-empty {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-align: left;
    padding: 2px 0 0;
    line-height: 1.45;
    letter-spacing: normal;
}
.home-schedule-next-empty {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    padding: 4px 0 0;
}
.home-schedule-day-events {
    font-size: 12px;
    color: #1e293b;
    line-height: 1.45;
}
.home-schedule-event-title {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.35;
}
.home-schedule-event-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
}
.home-schedule-event-desc {
    font-size: 11px;
    color: #475569;
    white-space: pre-wrap;
}
.home-schedule-event-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.home-schedule-event-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
/* 공지와 동일 크림 톤. Dash Markdown 래퍼(모노·내부 배경) 덮어쓰기 */
.home-ai-briefing-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #422006;
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}
.home-ai-briefing-box .home-ai-briefing-md {
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: transparent !important;
    background-color: transparent !important;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md > div,
.home-ai-briefing-box .home-ai-briefing-md .markdown,
.home-ai-briefing-box .home-ai-briefing-md > div > div,
.home-ai-briefing-box .home-ai-briefing-md [class*="markdown"],
.home-ai-briefing-box .home-ai-briefing-md [class*="Markdown"],
.home-ai-briefing-box .home-ai-briefing-md [class*="dash-markdown"] {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md p,
.home-ai-briefing-box .home-ai-briefing-md li,
.home-ai-briefing-box .home-ai-briefing-md ul,
.home-ai-briefing-box .home-ai-briefing-md ol {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14px;
    color: #422006;
    line-height: 1.5;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md p {
    margin: 0 0 0.5em;
}
.home-ai-briefing-box .home-ai-briefing-md p:last-child {
    margin-bottom: 0;
}
.home-ai-briefing-box .home-ai-briefing-md h1,
.home-ai-briefing-box .home-ai-briefing-md h2,
.home-ai-briefing-box .home-ai-briefing-md h3,
.home-ai-briefing-box .home-ai-briefing-md h4 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #78350f !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    margin: 0.65em 0 0.4em;
    border: none;
    padding: 0;
    background: transparent !important;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md h1:first-child,
.home-ai-briefing-box .home-ai-briefing-md h2:first-child {
    margin-top: 0;
}
.home-ai-briefing-box .home-ai-briefing-md blockquote {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-left: 3px solid #fbbf24;
    margin: 0.5em 0;
    padding-left: 10px;
    color: #57534e;
    background: transparent !important;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md a {
    color: #b45309;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.home-ai-briefing-box .home-ai-briefing-md pre,
.home-ai-briefing-box .home-ai-briefing-md code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    font-family: inherit !important;
}
.home-ai-briefing-box .home-ai-briefing-md code {
    background: rgba(251, 191, 36, 0.35) !important;
    color: #422006;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 14px;
}
.home-ai-briefing-box .home-ai-briefing-md pre {
    background: rgba(254, 243, 199, 0.55) !important;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #422006;
    margin: 0.5em 0;
}
.home-ai-briefing-box .home-ai-briefing-md strong {
    color: #422006;
    font-weight: 700;
}
.home-ai-briefing-box .home-ai-briefing-md ul,
.home-ai-briefing-box .home-ai-briefing-md ol {
    margin: 0.35em 0 0.5em;
    padding-left: 1.25em;
}
.home-weather-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.home-weather-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.home-weather-title-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #dbeafe;
}
.home-weather-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.home-weather-footnote {
    font-size: 11px;
    color: #d1d5db;
    margin-top: 10px;
    padding-top: 2px;
}
.home-weather-section-rule {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    background: transparent;
    height: 0;
}
.home-weather-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-top: 6px;
}
.home-weather-card {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 220px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 6px 8px;
    box-sizing: border-box;
}
.home-weather-card-title {
    font-weight: 700;
    font-size: 12px;
    color: #1e40af;
    margin-bottom: 4px;
    border-bottom: 1px solid #dbeafe;
    padding-bottom: 3px;
}
.home-weather-days {
    display: flex;
    flex-direction: row;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.home-weather-day {
    flex: 0 0 auto;
    min-width: 40px;
    text-align: center;
    font-size: 10px;
    color: #334155;
    line-height: 1.2;
}
.home-weather-daily-strip .home-weather-day .dow {
    color: #9ca3af;
    font-weight: 600;
    font-size: 12px;
}
.home-weather-daily-strip .home-weather-day .ico {
    font-size: 17px;
    line-height: 1.15;
    margin: 3px 0 3px;
}
.home-weather-day .dow {
    color: #1d4ed8;
    font-weight: 600;
}
.home-weather-day .ico {
    font-size: 13px;
    line-height: 1.15;
}
.home-weather-day .tx {
    font-size: 9px;
    color: #475569;
}
/* 홈 날씨: 지역 드롭다운 + 시간별 스크롤 + 5일 한 줄 */
.home-weather-region-picker {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.home-weather-chip-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px 0;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-weather-chip-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.home-weather-chip {
    flex: 0 0 auto;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1.25;
}
.home-weather-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.home-weather-chip--active {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
.home-weather-tab-inner {
    min-width: 0;
}
.home-weather-subtitle {
    font-size: 11px;
    font-weight: 650;
    color: #1e40af;
    margin-bottom: 3px;
}
.home-weather-subtitle--spaced {
    margin-top: 8px;
}
.home-weather-hourly-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0 6px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-weather-hourly-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.home-weather-hour-pill {
    flex: 0 0 auto;
    min-width: 44px;
    max-width: 54px;
    text-align: center;
    line-height: 1.25;
    padding: 3px 5px 5px;
    border-right: none;
    box-sizing: border-box;
}
.home-weather-hour-pill .hw-hour {
    font-size: 11px;
    font-weight: 650;
    color: #9ca3af;
}
.home-weather-hour-pill .hw-hour.hw-hour--current,
.home-weather-hour-pill--current .hw-hour {
    color: #2563eb;
}
.home-weather-hour-pill .hw-ico {
    font-size: 17px;
    line-height: 1.12;
    margin: 2px 0 2px;
}
.home-weather-hour-pill .hw-temp {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.home-weather-hour-pill .hw-temp.hw-temp--current,
.home-weather-hour-pill--current .hw-temp {
    color: #2563eb;
}
.home-weather-hour-pill .hw-pop {
    font-size: 10px;
    font-weight: 500;
    color: #2563eb;
    margin-top: 2px;
}
.home-weather-daily-outer {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2px 0 0;
    box-sizing: border-box;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-weather-daily-outer::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.home-weather-daily-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    box-sizing: border-box;
    justify-content: center;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
}
.home-weather-daily-strip .home-weather-day {
    flex: 0 0 auto;
    min-width: 54px;
    max-width: 80px;
    box-sizing: border-box;
}
.home-weather-daily-range {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
}
.home-weather-daily-hi {
    font-weight: 700;
    color: #111827;
}
.home-weather-daily-sep {
    font-weight: 500;
    color: #9ca3af;
    margin: 0 1px;
}
.home-weather-daily-lo {
    font-weight: 500;
    color: #9ca3af;
}
.admin-home-split-row {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.admin-region-summary-table {
    border-collapse: collapse;
    box-sizing: border-box;
}
.admin-region-summary-table th,
.admin-region-summary-table td {
    box-sizing: border-box;
}
.admin-home-row-frequent {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 12px;
}
/* PC: 본문 좌우 여백 축소 + 1400px 캡 제거(사이드~창 끝까지 넓게) */
@media screen and (min-width: 901px) {
    .content-area {
        padding: 8px 2px 24px 2px;
    }
    .main-home-preamble {
        max-width: none;
        width: 100%;
        padding: 7px 6px 12px 6px;
        margin-left: 0;
        margin-right: 0;
    }
    .admin-home-split-row,
    .admin-home-row-frequent {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }
}
/* KPI 현장별 통계 (/stat/site) — 목업(컨트롤 바·요약·순위 카드) */
.kpi-ctrl-bar {
    background: #ffffff;
    border-bottom: 0.5px solid #e8eaed;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}
.kpi-ctrl-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.kpi-ctrl-label {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.kpi-ctrl-divider {
    width: 0.5px;
    height: 16px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.kpi-site-panel-body {
    padding: 10px 10px 16px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}
.kpi-site-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}
.kpi-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 8px;
    box-sizing: border-box;
}
.kpi-sec-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-sec-title-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-sec-title-text {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}
.kpi-sec-period {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}
.kpi-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 2px;
    width: 100%;
}
.kpi-summary-card {
    background: #ffffff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 10px 12px;
    box-sizing: border-box;
}
.kpi-summary-card-label {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 4px;
}
.kpi-summary-card-numrow {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.kpi-summary-card-num {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    line-height: 1.1;
}
.kpi-summary-card-unit {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}
.kpi-summary-card-sub {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}
.kpi-summary-card-zone {
    font-size: 16px;
    font-weight: 500;
    color: #5b21b6;
    line-height: 1.2;
}
.kpi-rank-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.kpi-rank-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 8px;
}
.kpi-rank-card {
    background: #ffffff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
}
.kpi-rank-card--top1 {
    border: 0.5px solid #fde68a;
    background: #fffbeb;
}
.kpi-rank-card--top1 .kpi-rank-name {
    color: #92400e;
}
.kpi-rank-card--top1 .kpi-rank-count-btn {
    color: #b45309;
}
.kpi-rank-num {
    font-size: 13px;
    font-weight: 500;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}
.kpi-rank-num--1 {
    color: #f59e0b;
}
.kpi-rank-num--2 {
    color: #9ca3af;
}
.kpi-rank-num--3 {
    color: #b45309;
}
.kpi-rank-num--n {
    color: #d1d5db;
}
.kpi-rank-info {
    flex: 1;
    min-width: 0;
}
.kpi-rank-name {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.kpi-rank-bar-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
.kpi-rank-bar-wrap {
    flex: 1;
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    min-width: 0;
}
.kpi-rank-bar {
    height: 100%;
    border-radius: 3px;
    min-width: 0;
}
.kpi-rank-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.kpi-rank-tag--yg {
    background: #ede9fe;
    color: #5b21b6;
}
.kpi-rank-tag--su {
    background: #e8f0fe;
    color: #1a56db;
}
.kpi-rank-tag--def {
    background: #f3f4f6;
    color: #64748b;
}
.kpi-rank-count-wrap {
    flex-shrink: 0;
    min-width: 44px;
    text-align: right;
}
.kpi-rank-count-btn {
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1a2744;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    text-align: right;
    width: 100%;
}
.kpi-rank-count-btn:hover {
    text-decoration: underline;
}

/* 구역별 통계 (/stat/region) — 목업 톤 */
.regstat-page {
    background: #f4f5f7;
    min-height: 60vh;
    padding: 10px 10px 20px;
    box-sizing: border-box;
}
.regstat-filter-bar {
    background: #ffffff;
    border-bottom: 0.5px solid #e8eaed;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin-bottom: 8px;
    border-radius: 0;
}
.regstat-filter-dd {
    flex: 1 1 160px;
    min-width: 0;
    font-size: 12px;
}
@media (min-width: 769px) {
    .regstat-filter-dd {
        min-width: 180px;
    }
    .regstat-filter-dd .Select-control {
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 9px !important;
    }
    .regstat-filter-dd .Select-placeholder,
    .regstat-filter-dd .Select-value-label,
    .regstat-filter-dd .Select-input > input {
        font-size: 13px !important;
        line-height: 38px !important;
    }
    .regstat-filter-dd .Select-arrow-zone,
    .regstat-filter-dd .Select-clear-zone {
        width: 28px !important;
        line-height: 38px !important;
    }
}
.regstat-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 6px;
    box-sizing: border-box;
}
.regstat-sec-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}
.regstat-sec-sub {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
}
.regstat-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}
.regstat-kpi-card {
    background: #ffffff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 12px 13px;
    box-sizing: border-box;
}
.regstat-kpi-label {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.regstat-kpi-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.regstat-kpi-badge--good {
    background: #dcfce7;
    color: #166534;
}
.regstat-kpi-badge--warn {
    background: #fef9c3;
    color: #854d0e;
}
.regstat-kpi-badge--over {
    background: #dbeafe;
    color: #1e40af;
}
.regstat-kpi-main {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}
.regstat-kpi-main--sm {
    font-size: 17px;
}
.regstat-kpi-sub {
    font-size: 10px;
    color: #9ca3af;
}
.regstat-kpi-blue {
    color: #1a56db;
}
.regstat-kpi-green {
    color: #059669;
}
.regstat-kpi-amber {
    color: #d97706;
}
.regstat-kpi-purple {
    color: #7c3aed;
}
.regstat-chart-card {
    background: #ffffff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 12px 10px 10px;
    box-sizing: border-box;
    margin-bottom: 8px;
}
.regstat-chart-title {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}
.regstat-note-box {
    background: #ffffff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
}
.regstat-note-item {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    padding-left: 10px;
    position: relative;
}
.regstat-note-item::before {
    content: "*";
    position: absolute;
    left: 0;
    color: #9ca3af;
}

/* 기술노트 (/tech) — 본문 영역과 이어지도록 카드 테두리 최소화 */
.technote-page {
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-sizing: border-box;
}
.technote-topbar {
    background: #1a2744;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}
.technote-top-sub { font-size: 10px; color: rgba(255, 255, 255, 0.45); line-height: 1; }
.technote-top-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; margin-top: 1px; }
.technote-top-titles { min-width: 0; }
.technote-hamb-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
}
.technote-back-btn { color: #fff; }
.technote-back-btn svg, .technote-hamb-btn svg { color: #fff; }
.technote-top-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.technote-top-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
a.technote-back-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.technote-back-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.technote-top-text {
    min-width: 0;
}
.technote-home-link {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}
.technote-page-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    margin-top: 1px;
}
.technote-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.technote-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #8fa8d4;
    border-radius: 2px;
}
.technote-topbar-titles {
    margin-bottom: 8px;
}
.technote-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.technote-meta {
    font-size: 10px;
    color: #6b85b5;
    margin-top: 1px;
}
.technote-search-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}
.technote-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 38px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    padding: 0 6px 0 14px;
    outline: none;
    box-sizing: border-box;
}
.technote-search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.technote-search-btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: 42px;
    min-height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.65;
    box-sizing: border-box;
}
.technote-search-btn:hover {
    opacity: 1;
}
.technote-cat-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    scrollbar-width: none;
    box-sizing: border-box;
}
.technote-cat-scroll::-webkit-scrollbar {
    display: none;
}
.technote-cat-chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 0.5px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
    white-space: nowrap;
    font-family: inherit;
}
.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-server {
    background: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}
.technote-cat-chip--c-server.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-hw {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}
.technote-cat-chip--c-hw.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-sw {
    background: #fefce8;
    color: #854d0e;
    border-color: #fef08a;
}
.technote-cat-chip--c-sw.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-pay {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.technote-cat-chip--c-pay.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-cat-chip--c-ops {
    background: #fdf4ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}
.technote-cat-chip--c-ops.technote-cat-chip--active {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    box-sizing: border-box;
}
.technote-note-count {
    font-size: 12px;
    color: #6b7280;
}
.technote-note-count strong {
    color: #111827;
    font-weight: 500;
}
.technote-toolbar-right {
    display: flex;
    gap: 6px;
    align-items: center;
}
.technote-tool-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    color: #374151;
    background: #f3f4f6;
    border: 0.5px solid #d1d5db;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.technote-tool-btn--primary {
    background: #1a2744;
    color: #fff;
    border-color: #1a2744;
}
.technote-note-list {
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-sizing: border-box;
    min-height: 120px;
}
.technote-note-card {
    background: #fff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    padding: 12px 13px;
    cursor: pointer;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.technote-note-card:hover {
    border-color: #9ca3af;
}
.technote-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.technote-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a56db;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.technote-card-date {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}
.technote-card-mid {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.technote-card-bot {
    display: flex;
    align-items: center;
    gap: 6px;
}
.technote-note-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 5px;
}
.technote-tag--server {
    background: #eff6ff;
    color: #1e40af;
}
.technote-tag--hw {
    background: #fff7ed;
    color: #9a3412;
}
.technote-tag--sw {
    background: #fefce8;
    color: #854d0e;
}
.technote-tag--pay {
    background: #f0fdf4;
    color: #166534;
}
.technote-tag--ops {
    background: #fdf4ff;
    color: #7e22ce;
}
.technote-tag--def {
    background: #f1f5f9;
    color: #475569;
}
.technote-note-author {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.technote-author-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 500;
    color: #1a56db;
    flex-shrink: 0;
}
.technote-empty {
    padding: 40px 16px;
    text-align: center;
}
.technote-empty-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.technote-empty-sub {
    font-size: 11px;
    color: #9ca3af;
}
.technote-table-hidden {
    display: none !important;
}

@media screen and (min-width: 801px) {
    #technote-route-panel.technote-route-visible {
        overflow: hidden !important;
    }
    #technote-route-panel .technote-page {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    #technote-route-panel .technote-page {
        background: #f0f2f5;
        min-height: 0;
    }
    #technote-route-panel .technote-topbar {
        padding: 12px 20px 10px;
    }
    #technote-route-panel .technote-top-head {
        margin-bottom: 8px;
    }
    #technote-route-panel .technote-hamburger {
        display: none !important;
    }
    #technote-route-panel .technote-search-wrap {
        margin-bottom: 8px;
    }
    #technote-route-panel .technote-cat-scroll {
        background: #1a2744;
        border-bottom: none;
        padding: 0 20px 12px;
    }
    #technote-route-panel .technote-cat-chip {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.62);
    }
    #technote-route-panel .technote-cat-chip--active {
        background: #fff;
        color: #1a2744;
        border-color: #fff;
    }
    #technote-route-panel .technote-main-panels {
        display: flex;
        gap: 0;
        flex: 1;
        min-height: 0;
        background: #f0f2f5;
        overflow: hidden;
    }
    #technote-route-panel .technote-list-panel {
        width: 360px;
        flex-shrink: 0;
        background: #fff;
        border-right: 0.5px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }
    #technote-route-panel .technote-toolbar {
        padding: 10px 14px 8px;
        border-bottom: 0.5px solid #f3f4f6;
    }
    #technote-route-panel .technote-note-list {
        padding: 0;
        gap: 0;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    #technote-route-panel .technote-note-card {
        border: none;
        border-bottom: 0.5px solid #f3f4f6;
        border-radius: 0;
        padding: 12px 14px;
        background: #fff;
    }
    #technote-route-panel .technote-note-card:hover {
        background: #f8faff;
        border-color: transparent;
    }
    #technote-route-panel .technote-note-card.technote-note-card--active {
        background: #eff6ff;
        border-right: 2.5px solid #1a56db;
    }
    #technote-route-panel .technote-card-title {
        color: #111827;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #technote-route-panel .technote-note-card.technote-note-card--active .technote-card-title {
        color: #1a56db;
    }
    #technote-route-panel .technote-card-mid {
        -webkit-line-clamp: 1;
        margin-bottom: 6px;
    }
    #technote-route-panel .technote-detail-panel {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        min-height: 0;
        overflow: hidden;
    }
    #technote-route-panel .technote-pc-detail-head {
        padding: 14px 20px 12px;
        border-bottom: 0.5px solid #f3f4f6;
        flex-shrink: 0;
    }
    #technote-route-panel .technote-pc-detail-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 18px 20px;
    }
    #technote-route-panel .technote-pc-empty {
        flex: 1;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        color: #9ca3af;
    }
    #technote-route-panel .technote-pc-empty-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #technote-route-panel .technote-pc-empty-title {
        font-size: 13px;
        color: #475569;
        font-weight: 500;
    }
    #technote-route-panel #tech-modal.modal--technote {
        display: none !important;
    }
}

/* ── 통합 자료실 /docs (NAS) — 모바일 카드형 UI */
#dashboard-stack.content-area:has(.docslab-page) {
    padding-bottom: 12px !important;
}
body:has(#dashboard-stack .docslab-page) .app-top-header {
    display: none !important;
}
body:has(#dashboard-stack .docslab-page) .metric-header-fixed {
    display: none !important;
}
body:has(#dashboard-stack .docslab-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 .docslab-page) #dashboard-content {
    padding: 0 !important;
}
.docslab-page {
    max-width: 720px;
    margin: 0 auto;
    background: #f4f5f7;
    border-radius: 20px;
    overflow: hidden;
    border: 0.5px solid #d1d5db;
    box-sizing: border-box;
}
.docslab-topbar {
    background: #1a2744;
    padding: 12px 14px 14px;
}
.docslab-topbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.docslab-topbar-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.docslab-topbar-meta {
    font-size: 10px;
    color: #6b85b5;
    margin-top: 1px;
    word-break: break-all;
}
.docslab-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: default;
    opacity: 0.6;
}
.docslab-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #8fa8d4;
    border-radius: 2px;
}
.docslab-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docslab-search-form {
    position: relative;
    flex: 1;
    min-width: 0;
}
.docslab-search-input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    padding: 0 38px 0 14px;
    outline: none;
    box-sizing: border-box;
}
.docslab-search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.docslab-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.docslab-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
}
.docslab-search-submit:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}
.docslab-search-clear {
    font-size: 11px;
    color: #8fa8d4;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.docslab-search-clear:hover {
    color: #fff;
}
.docslab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 14px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    overflow-x: auto;
    scrollbar-width: none;
}
.docslab-breadcrumb::-webkit-scrollbar {
    display: none;
}
.docslab-bc-item {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    text-decoration: none;
}
.docslab-bc-item:hover {
    color: #1a56db;
}
.docslab-bc-item--active {
    color: #1a56db;
    font-weight: 500;
    pointer-events: none;
}
.docslab-bc-sep {
    font-size: 10px;
    color: #d1d5db;
    flex-shrink: 0;
}
.docslab-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 0.5px solid #e8eaed;
    flex-wrap: wrap;
    gap: 8px;
}
.docslab-action-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.docslab-back-btn,
.docslab-refresh-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    color: #374151;
    background: #f3f4f6;
    border: 0.5px solid #e5e7eb;
    text-decoration: none;
    box-sizing: border-box;
}
.docslab-action-right {
    display: flex;
    gap: 6px;
}
.docslab-view-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    cursor: default;
    box-sizing: border-box;
}
    .docslab-view-btn a {
        display: inline-flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        color: inherit;
        text-decoration: none;
    }
.docslab-view-btn--active {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}
.docslab-file-list {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.docslab-sec-label {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    padding: 4px 2px 6px;
    letter-spacing: 0.04em;
}
.docslab-folder-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.docslab-folder-card:hover {
    border-color: #9ca3af;
}
.docslab-folder-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docslab-fi-yellow {
    background: #fef9c3;
    color: #d97706;
}
.docslab-fi-blue {
    background: #eff6ff;
    color: #2563eb;
}
.docslab-fi-green {
    background: #f0fdf4;
    color: #059669;
}
.docslab-fi-purple {
    background: #faf5ff;
    color: #7c3aed;
}
.docslab-folder-info {
    flex: 1;
    min-width: 0;
}
.docslab-folder-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.docslab-folder-meta {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-folder-arrow {
    opacity: 0.35;
    flex-shrink: 0;
}
.docslab-file-card {
    background: #fff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}
.docslab-file-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3f4f6;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docslab-file-info {
    flex: 1;
    min-width: 0;
}
.docslab-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    word-break: break-all;
    margin-bottom: 2px;
}
.docslab-file-meta {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-file-dl {
    font-size: 11px;
    font-weight: 500;
    color: #1a56db;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.docslab-alert {
    margin: 0 12px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
}
.docslab-alert--muted {
    background: #f9fafb;
    color: #6b7280;
    border: 0.5px solid #e5e7eb;
}
.docslab-alert--warn {
    background: #fffbeb;
    color: #a16207;
    border: 0.5px solid #fde68a;
}
.docslab-upload-section {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    margin: 0 12px 10px;
    overflow: hidden;
}
.docslab-upload-head {
    padding: 11px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.docslab-upload-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.docslab-upload-path-badge {
    font-size: 10px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 5px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.docslab-new-folder-row {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    align-items: center;
}
.docslab-new-folder-input {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    font-size: 12px;
    padding: 0 10px;
    outline: none;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    min-width: 0;
}
.docslab-new-folder-input::placeholder {
    color: #9ca3af;
}
.docslab-folder-create-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1a2744;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.docslab-upload-form-block {
    padding: 10px 13px 13px;
}
.docslab-upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
form.docslab-upload-form {
    margin: 0;
    padding: 0;
}
form.docslab-mkdir-form {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f0f0f0;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
}
.docslab-file-drop-wrap {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    background: #fafafa;
    box-sizing: border-box;
}
.docslab-file-drop-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 3px;
}
.docslab-file-drop-sub {
    font-size: 10px;
    color: #9ca3af;
}
.docslab-file-drop-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #1a56db;
}
.docslab-file-input {
    width: 100%;
    font-size: 12px;
    box-sizing: border-box;
}
.docslab-file-input::file-selector-button {
    margin-right: 8px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}
.docslab-upload-submit {
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #1a56db;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}
.docslab-footnote {
    padding: 0 14px 14px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}

@media screen and (min-width: 801px) {
    #dashboard-stack.content-area:has(.docslab-page) {
        padding: 0 !important;
    }
    .docslab-page {
        max-width: none !important;
        width: 100% !important;
        height: calc(100vh - 88px);
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        background: #f0f2f5;
    }
    .docslab-topbar {
        padding: 12px 20px 10px;
    }
    .docslab-hamburger {
        display: none !important;
    }
    .docslab-content-shell {
        flex: 1;
        min-height: 0;
        display: flex;
        overflow: hidden;
        background: #f0f2f5;
    }
    .docslab-tree-panel {
        width: 220px;
        flex-shrink: 0;
        background: #fff;
        border-right: 0.5px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .docslab-tree-head {
        padding: 12px 14px 8px;
        border-bottom: 0.5px solid #f3f4f6;
        font-size: 11px;
        font-weight: 500;
        color: #374151;
    }
    .docslab-tree-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .docslab-tree-item {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 6px 8px;
        border-radius: 7px;
        text-decoration: none;
        color: #374151;
        font-size: 12px;
    }
    .docslab-tree-item:hover {
        background: #f3f4f6;
    }
    .docslab-tree-item--active {
        background: #eff6ff;
        color: #1a56db;
        font-weight: 500;
    }
    .docslab-tree-count {
        margin-left: auto;
        font-size: 10px;
        color: #9ca3af;
    }
    .docslab-main-panel {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: #f8f9fb;
    }
    .docslab-breadcrumb,
    .docslab-action-bar {
        padding-left: 16px;
        padding-right: 16px;
    }
    .docslab-file-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 12px 16px;
    }
    .docslab-folder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
        margin-bottom: 6px;
    }
    .docslab-folder-grid-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .docslab-folder-grid-card .docslab-folder-arrow {
        display: none;
    }
    .docslab-file-table-wrap {
        background: #fff;
        border: 0.5px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
    }
    .docslab-file-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }
    .docslab-file-table th {
        padding: 8px 12px;
        text-align: left;
        color: #9ca3af;
        font-weight: 500;
        background: #f9fafb;
        border-bottom: 0.5px solid #f0f0f0;
        white-space: nowrap;
    }
    .docslab-file-table td {
        padding: 9px 12px;
        border-bottom: 0.5px solid #f8f8f8;
        color: #374151;
        vertical-align: middle;
    }
    .docslab-file-table tbody tr:hover td {
        background: #f8fbff;
    }
    .docslab-file-table tbody tr:last-child td {
        border-bottom: none;
    }
    .docslab-file-table tbody tr .docslab-table-row-actions {
        opacity: 0;
        transition: opacity 0.12s ease;
    }
    .docslab-file-table tbody tr:hover .docslab-table-row-actions {
        opacity: 1;
    }
    .docslab-table-file-cell {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .docslab-table-file-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: #f3f4f6;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .docslab-table-file-name {
        color: #111827;
        font-weight: 500;
        word-break: break-all;
    }
    .docslab-table-size,
    .docslab-table-date {
        color: #9ca3af;
        white-space: nowrap;
    }
    .docslab-table-download {
        font-size: 11px;
        font-weight: 500;
        color: #1a56db;
        text-decoration: none;
        white-space: nowrap;
    }
    .docslab-table-row-actions,
    .docslab-file-row-actions {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .docslab-row-btn {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: #f3f4f6;
        border: 0.5px solid #e5e7eb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        text-decoration: none;
    }
    .docslab-file-card .docslab-file-row-actions {
        opacity: 0;
        transition: opacity 0.12s ease;
    }
    .docslab-file-card:hover .docslab-file-row-actions {
        opacity: 1;
    }
    .docslab-head-check label,
    .docslab-row-check label {
        margin: 0;
        padding: 0;
        font-size: 0;
    }
    .docslab-upload-panel {
        width: 260px;
        flex-shrink: 0;
        margin: 0 !important;
        border-left: 0.5px solid #e5e7eb;
        border-right: none;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .docslab-upload-form-block {
        flex: 0 0 auto;
        min-height: 0;
        overflow: hidden;
    }
}

.docslab-error-inner {
    padding: 16px 14px 20px;
    background: #fff;
}
.docslab-error-title {
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 8px;
}
.docslab-error-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 8px;
}
@media screen and (max-width: 800px) {
    /* /docs: 앱 공통 상단바 숨김 — 자료실 네이비 바가 상단부터(기술노트와 동일) */
    body:has(#dashboard-stack .docslab-page) .app-top-header {
        display: none !important;
    }
    /* /guidelines: 앱 공통 상단바 숨김 — 지침관리 네이비 바를 상단부터 */
    body:has(#guidelines-route-panel[style*="display: block"]) .app-top-header {
        display: none !important;
    }
    /* /guidelines: 패널 기본 패딩 제거(상단바 풀폭) */
    body:has(#guidelines-route-panel[style*="display: block"]) #guidelines-route-panel {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }
    /* /guidelines: 상단 헤더/메트릭 예약 공간 제거 → 상단바를 최상단에 붙임 */
    body:has(#guidelines-route-panel[style*="display: block"]) #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(#guidelines-route-panel[style*="display: block"]) .metric-header-fixed {
        display: none !important;
    }
    .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area:has(.docslab-page) {
        margin-top: env(safe-area-inset-top, 0px) !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .docslab-page {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        /* 카드 테두리 상단이 네이비 바 위로 비치며 하얀 선처럼 보이는 현상 방지 */
        border-top: none !important;
    }
}

.regstat-perf-sec-head {
    padding: 4px 2px 6px;
}
.regstat-perf-sec-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}
.regstat-perf-card {
    background: #ffffff;
    border-radius: 11px;
    border: 0.5px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.regstat-perf-row {
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-bottom: 0.5px solid #f3f4f6;
    gap: 10px;
    box-sizing: border-box;
}
.regstat-perf-row:last-child {
    border-bottom: none;
}
.regstat-perf-row--head {
    padding: 7px 13px;
    background: #f9fafb;
}
.regstat-perf-col-reg {
    width: 80px;
    flex-shrink: 0;
}
.regstat-perf-col-rate {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.regstat-perf-col-avg {
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}
.regstat-head-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}
.regstat-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.regstat-tag-su {
    background: #e8f0fe;
    color: #1a56db;
}
.regstat-tag-yg {
    background: #ede9fe;
    color: #5b21b6;
}
.regstat-tag-hs {
    background: #ecfdf5;
    color: #065f46;
}
.regstat-tag-pt {
    background: #fff7ed;
    color: #9a3412;
}
.regstat-tag-ss {
    background: #fdf4ff;
    color: #86198f;
}
.regstat-tag-def {
    background: #f3f4f6;
    color: #475569;
}
.regstat-rate-bar-wrap {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
.regstat-rate-bar {
    height: 100%;
    border-radius: 3px;
    min-width: 0;
}
.regstat-rate-num {
    font-size: 10px;
    color: #374151;
    font-weight: 500;
}
.regstat-avg-num {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}
.regstat-avg-sub {
    font-size: 10px;
    color: #9ca3af;
}

/* 빈번접수 현장 표만 가로 폭 제한 */
.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;
    }
    /* 모바일·태블릿: 메트릭 6개 한 줄·동일 비율 (wrap 금지) */
    .metric-bar.metric-bar--buttons-only {
        flex-wrap: nowrap !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .metric-bar.metric-bar--buttons-only > .metric-box {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    /* 메트릭: 라벨만 작게·숫자 크게 (아이콘 없음) */
    .metric-bar.metric-bar--buttons-only .metric-box {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 6px 5px 7px !important;
        gap: 1px !important;
    }
    .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label {
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        order: 0 !important;
    }
    .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-box .metric-box-label span {
        font-size: 10px !important;
        font-weight: 500 !important;
        color: #6b7280 !important;
    }
    .metric-bar.metric-bar--buttons-only .metric-box h2 {
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        margin: 0 !important;
        order: 1 !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;
    }
}
/* 🤖 하단 AI 채팅바 (PC 짤림 방지 완결판) */
.chat-bar {
    position: fixed;
    bottom: 0;
    left: 180px; /* 🌟 PC 사이드바 너비만큼 시작 지점을 조절 */
    right: 0;
    height: auto;
    background: transparent;
    border-top: none;
    display: flex;
    align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    box-sizing: border-box; /* 패딩이 너비에 포함되게 설정 */
    pointer-events: none; /* 내부 컨테이너만 클릭 */
}

/* 🤖 채팅바 컨테이너 (기준점) */
.chat-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    position: relative; /* 🌟 이게 있어야 말풍선이 위로 뜹니다! */
    background: #ffffff;
    border-radius: 14px;
    padding: 8px 8px 8px 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    pointer-events: auto;
}

.chat-input {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background-color: #f1f5f9;
    color: #0f172a;
    min-width: 0;
}

.chat-input:focus { box-shadow: 0 0 0 3px rgba(0, 85, 170, 0.22); background-color: #ffffff; }

.chat-send-btn {
    width: 40px;
    height: 40px;
    background-color: #0055aa;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 85, 170, 0.26);
}
.chat-send-btn:active { transform: translateY(0.5px); opacity: 0.95; }
.chat-send-btn.chat-send-btn--listening {
    background-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.35), 0 6px 14px rgba(185, 28, 28, 0.35);
    animation: chat-send-pulse 1s ease-in-out infinite;
}
@keyframes chat-send-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

#chat-response-area {
    position: absolute; /* 🌟 공중에 띄움 */
    bottom: 74px;       /* 🌟 입력창에서 위로 */
    left: 0;
    right: 0;
    background-color: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 2px solid #2563eb;
    z-index: 2000;
    max-height: 350px;
    overflow: hidden;
    overscroll-behavior: contain;
    /* display/flexDirection 은 콜백 인라인(style)로만 — 기본 display:flex 가 display:none 을 덮어 빈 말풍선이 떠 보이는 문제 방지 */
}

/* 닫기는 헤더(스크롤 밖), 본문만 스크롤 */
.ai-chat-bubble__header {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px 4px 14px;
    box-sizing: border-box;
}

.ai-chat-bubble__close {
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    font-weight: 700;
    padding: 4px 8px;
    margin: 0;
    position: relative;
    z-index: 10002;
}

.ai-chat-bubble__close:active {
    background: #f1f5f9;
}

.ai-chat-bubble__scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* flex 부모 높이가 불명확할 때도 스크롤 되도록 고정 max-height (헤더 제외 본문만) */
    max-height: none;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0 16px 16px 16px;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}

/* AI 채팅: 로딩(생성중)일 때는 중앙 정렬 */
#chat-response-area[data-ai-loading="1"] .ai-chat-bubble__scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 16px 16px;
}
#chat-response-area[data-ai-loading="1"] #chat-response-content {
    width: 100%;
    text-align: center;
    font-weight: 800;
    color: #0f172a;
    padding: 18px 10px;
}

/* dcc.Loading 래퍼가 높이를 무한히 키우지 않도록 */
#chat-response-area .ai-chat-bubble__scroll > div {
    min-height: 0;
    max-height: 100%;
}

/* 말풍선 열림 시 배경 스크롤/터치 차단 오버레이 */
#ai-chat-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    /* 채팅 입력바 영역은 막지 않기 위해 하단 여백을 둔다 */
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    background: transparent;
    overscroll-behavior: none;
    /* overlay는 배경만 막고, 버블/본문 스크롤은 허용해야 함 */
    touch-action: auto;
    /* overlay는 배경 클릭/스크롤 차단용 (클릭 관통 방지) */
    pointer-events: auto;
}

/* 말풍선 내부 내용 스크롤 영역 */
#chat-response-content {
    overflow: visible;
    min-height: 0;
    box-sizing: border-box;
}

/* 로딩 중일 때 "확인 중..." 글자를 보여주기 위한 팁 */
.dash-loading-callback::after {
    content: " 🔍 AI 에이전트가 확인 중입니다. 잠시만 기다려주세요...";
    font-size: 13px;
    color: #2563eb;
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* 닫기 버튼: 헤더 안에서만 배치 (스크롤과 분리) */
#close-chat-btn {
    position: static;
    flex-shrink: 0;
}

/* 📱 모바일 (600px 이하) - 메트릭 6칸 한 줄·동일 폭 (필터는 위 전폭 행) */
@media screen and (max-width: 600px) {
    .metric-bar.metric-bar--buttons-only {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 0 !important;
        padding: 5px 0 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        margin-right: 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;
        padding: 5px 3px 6px !important;
        box-sizing: border-box !important;
    }

    .metric-bar.metric-bar--buttons-only .metric-box h2 {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .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;
    }

    .chat-bar {
        left: 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;
    }
}

/* 업무 달력 — 모바일 달력+목록(컴팩트 그리드 + 시간순 리스트) */
.cal-m-root {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 24px;
}
.cal-page-root {
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
}
.content-area:has(.cal-page-root.cal-page) {
    margin-left: 180px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html.force-mobile .content-area:has(.cal-page-root.cal-page) {
    margin-left: 0 !important;
}
@media (max-width: 900px) {
    .content-area:has(.cal-page-root.cal-page) {
        margin-left: 0 !important;
    }
}
body:has(#dashboard-stack .cal-page-root.cal-page) .app-top-header,
body:has(#dashboard-stack .cal-page-root.cal-page) .metric-header-fixed {
    display: none !important;
}

/* stat 페이지: 상단 공백/햄버거 최종 강제 제거 (하단 규칙 덮어쓰기용) */
body:has(#dashboard-content .stat-page-marker) .metric-header-fixed.hidden-metric ~ #dashboard-stack.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body:has(#dashboard-content .stat-page-marker) .stat-page .technote-hamburger {
    display: none !important;
}
body:has(#dashboard-content .stat-page-marker) .stat-page .technote-topbar {
    margin-left: -10px !important;
}
body:has(#dashboard-content .stat-page-marker) #admin-top7-wrap {
    margin-top: 0 !important;
    padding: 0 !important;
}
body:has(#dashboard-content .stat-page-marker) #admin-top7-wrap .technote-topbar {
    margin: 0 -10px 0 !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
body:has(#dashboard-content .stat-page-marker) #admin-top7-wrap .technote-hamburger {
    display: none !important;
}
/* carlog 페이지: 상단 여백/사이드바-상단바 사이 틈 제거 */
body:has(#dashboard-stack .carlog-page) .app-top-header,
body:has(#dashboard-stack .carlog-page) .metric-header-fixed {
    display: none !important;
}
body:has(#dashboard-stack .carlog-page) .sidebar {
    border-right: none !important;
}
body:has(#dashboard-stack .carlog-page) #dashboard-stack.content-area,
body:has(#dashboard-stack .carlog-page) #dashboard-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:has(#dashboard-stack .carlog-page) .carlog-page {
    margin: 0 !important;
    padding: 0 8px 24px !important;
}
body:has(#dashboard-stack .carlog-page) .carlog-page .technote-topbar {
    margin: 0 -10px 0 !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
body:has(#dashboard-stack .carlog-page) .carlog-page .technote-hamburger {
    display: none !important;
}
/* hipass 페이지: carlog와 동일하게 상단/좌측 틈 제거 + 햄버거 숨김 */
body:has(#dashboard-stack .hipass-page) .app-top-header,
body:has(#dashboard-stack .hipass-page) .metric-header-fixed {
    display: none !important;
}
body:has(#dashboard-stack .hipass-page) .sidebar {
    border-right: none !important;
}
body:has(#dashboard-stack .hipass-page) #dashboard-stack.content-area,
body:has(#dashboard-stack .hipass-page) #dashboard-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:has(#dashboard-stack .hipass-page) .hipass-page {
    margin: 0 !important;
    padding: 0 8px 24px !important;
}
body:has(#dashboard-stack .hipass-page) .hipass-page .technote-topbar {
    margin: 0 -10px 0 !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
body:has(#dashboard-stack .hipass-page) .hipass-page .technote-hamburger {
    display: none !important;
}
/* settings 페이지: carlog/hipass와 동일하게 상단/좌측 틈 제거 + 햄버거 숨김 */
body:has(#settings-forms-root[style*="display: block"]) .app-top-header,
body:has(#settings-forms-root[style*="display: block"]) .metric-header-fixed {
    display: none !important;
}
body:has(#settings-forms-root[style*="display: block"]) .sidebar {
    border-right: none !important;
}
body:has(#settings-forms-root[style*="display: block"]) #dashboard-stack.content-area,
body:has(#settings-forms-root[style*="display: block"]) #dashboard-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body:has(#settings-forms-root[style*="display: block"]) #settings-forms-root {
    margin: 0 !important;
    padding-top: 0 !important;
}
body:has(#settings-forms-root[style*="display: block"]) #settings-forms-root .technote-topbar {
    margin: 0 -12px 12px !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}
body:has(#settings-forms-root[style*="display: block"]) #settings-forms-root .technote-hamburger {
    display: none !important;
}
body:has(#dashboard-stack .cal-page-root.cal-page) #dashboard-stack.content-area,
body:has(#dashboard-stack .cal-page-root.cal-page) #dashboard-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.cal-page-root .technote-topbar {
    position: sticky;
    top: 0;
    z-index: 10125;
}
/* 모바일 달력 카드 — 참고 목업(cal-header / cal-grid) 톤 */
.cal-m-calwrap {
    background: #ffffff;
    border: none;
    border-bottom: 0.5px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 0 12px 0;
    box-sizing: border-box;
}
.cal-m-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    border-bottom: none;
    box-sizing: border-box;
    column-gap: 0;
    padding: 0;
}
.cal-m-week:last-child {
    padding-bottom: 12px;
}
.cal-m-week--hdr {
    background: #fff;
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.cal-m-hdr-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    padding: 4px 0;
    box-sizing: border-box;
}
.cal-m-hdr-cell--sun {
    color: #ef4444;
}
.cal-m-hdr-cell--sat {
    color: #3b82f6;
}
.cal-m-cell {
    min-width: 0;
    min-height: 40px;
    box-sizing: border-box;
}
.cal-m-cell--empty {
    background: transparent;
}
.cal-m-cell--day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 5px 0 4px;
    cursor: pointer;
    box-sizing: border-box;
}
.cal-m-daynum {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    border-radius: 50%;
    color: #374151;
}
.cal-m-cell--sun .cal-m-daynum:not(.cal-m-daynum--today):not(.cal-m-daynum--selected) {
    color: #ef4444;
}
.cal-m-cell--sat .cal-m-daynum:not(.cal-m-daynum--today):not(.cal-m-daynum--selected) {
    color: #3b82f6;
}
.cal-m-cell--holiday .cal-m-daynum:not(.cal-m-daynum--today):not(.cal-m-daynum--selected) {
    color: #ef4444;
}
.cal-m-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    min-height: 6px;
    width: 100%;
    box-sizing: border-box;
}
.cal-m-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
/* 업무 달력 — 오늘 날짜 숫자에 동그라미 강조 */
.cal-day-today-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    aspect-ratio: 1;
    border: none;
    background-color: #1e3a8a;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.cal-m-daynum--today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    aspect-ratio: 1;
    background-color: #1a2744;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.cal-m-daynum--selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    aspect-ratio: 1;
    background-color: #1a56db;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.cal-m-listwrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px 16px;
}
.cal-m-list-date-group {
    margin-top: 10px;
}
.cal-m-list-date-group:first-child {
    margin-top: 0;
}
.cal-m-list-datehdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px 6px;
    box-sizing: border-box;
}
.cal-m-list-datehdr-line {
    flex: 1;
    height: 0.5px;
    min-width: 8px;
    background: #e5e7eb;
}
.cal-m-list-datehdr-date {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.cal-m-list-datehdr-wd {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}
.cal-m-list-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    background: #ffffff;
    border-radius: 10px;
    border: 0.5px solid #e5e7eb;
    padding: 10px 12px;
    box-sizing: border-box;
}
.cal-m-list-row:last-child {
    margin-bottom: 0;
}
.cal-m-list-colorbar {
    width: 3px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: center;
}
.cal-m-list-row-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}
.cal-m-list-textcol {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
}
.cal-m-list-meta {
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
    line-height: 1.3;
}
.cal-m-list-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-m-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.cal-m-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1.2;
    white-space: nowrap;
    border: none;
}
.cal-m-badge--plan {
    background: #dbeafe;
    color: #1d4ed8;
}
.cal-m-badge--duty {
    background: #ffedd5;
    color: #c2410c;
}
.cal-m-badge--common {
    background: #e0e7ff;
    color: #4338ca;
}
.cal-m-badge--personal {
    background: #ede9fe;
    color: #6d28d9;
}
.cal-m-list-time {
    font-size: 12px;
    color: #94a3b8;
    width: 36px;
    flex-shrink: 0;
}
.cal-m-complete-btn {
    flex-shrink: 0;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 20px;
    border: none;
    background: #ecfdf5;
    color: #065f46;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.25;
}
.cal-m-complete-btn:active {
    opacity: 0.88;
}
.cal-m-edit-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cal-m-edit-btn:active {
    opacity: 0.88;
}
.cal-m-list-empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px 8px;
    margin: 0;
}
/* 업무 달력: 연·월 + 참고 목업 cal-nav (SVG 화살표) */
.cal-month-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 14px;
    padding: 14px 12px 0;
    box-sizing: border-box;
    gap: 0;
    flex-wrap: nowrap;
}
.cal-month-title {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
    margin: 0;
    line-height: 1.2;
    font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
.cal-month-title-year {
    font-size: 18px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #111827;
    letter-spacing: -0.02em;
}
.cal-month-title-unit {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0;
}
.cal-month-title-monthnum {
    font-size: 24px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #1a56db;
    letter-spacing: -0.02em;
}
.cal-month-nav-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    background: #f4f5f7;
    color: #374151;
    line-height: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.cal-month-nav-icon-btn:active {
    background: #e5e7eb;
}
.cal-month-nav-chevron {
    display: block;
    vertical-align: middle;
}
.cal-month-nav-btn {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.cal-month-nav-btn:active {
    background: #f8fafc;
}
.cal-view-mode-bar {
    display: none !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.cal-view-tb-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
}
.cal-view-tb-btn--active {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #fff !important;
}
/* PC: 월간 벽보기만 표시 */
@media screen and (min-width: 801px) {
    .cal-mode-compact { display: none !important; }
    .cal-mode-wall { display: block !important; }
}
/* 모바일: 전환 버튼 없음 · 컴팩트(달력+목록)만 */
@media screen and (max-width: 800px) {
    .cal-view-mode-bar { display: none !important; }
    #cal-wall-wrap.cal-mode-wall { display: none !important; }
    .cal-pc-shell {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    #cal-compact-wrap.cal-mode-compact {
        display: block !important;
        width: 100% !important;
        overflow: visible !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;
}

/* PC 공통: 메트릭바 아이콘 제거 (경로 무관) */
@media (min-width: 900px) {
    .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label iconify-icon,
    .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label svg {
        display: none !important;
    }
    .metric-header-fixed .metric-bar.metric-bar--buttons-only .metric-box .metric-box-label {
        gap: 0 !important;
    }
}

