.cal-chip.est { background: #f2f2f2; color: #111111; }
.cal-chip.open { background: #fef7e0; color: #b26a00; }
.cal-scroll { overflow-x: auto; }
table.cal-table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 2px 0 4px; }
table.cal-table th, table.cal-table td { border: 1px solid #e5e7ea; padding: 5px 9px; text-align: left; vertical-align: top; }
table.cal-table th { background: #f8f9fa; color: #5f6368; font-weight: 600; white-space: nowrap; }
table.cal-table td.k { font-weight: 600; white-space: nowrap; color: #202124; }
.caliber-body ul { margin: 2px 0 4px; padding-left: 20px; }
.caliber-body li { margin: 3px 0; }
.cal-foot { margin-top: 10px; color: #8a919c; font-size: 11.5px; }
.anomaly-body { padding: 2px 20px 16px; }
.an-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.an-metric { background: #f4f5f7; border-radius: 8px; padding: 7px 11px; min-width: 96px; }
.an-metric .k { color: #8a919c; font-size: 11px; }
.an-metric .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #202124; }
.an-metric .b { color: #9aa0a6; font-size: 11px; }
.an-metric.bad .v { color: #c0392b; }
.an-metric.good .v { color: #1a7f4b; }
.an-metric[title] { cursor: help; }
.an-foot { color: #9aa0a6; font-size: 11px; line-height: 1.5; margin: -4px 0 10px; }
.an-item { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid #eceef0; }
.an-lvl { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; height: fit-content; }
.an-lvl.高 { background: #fdeaea; color: #c0392b; }
.an-lvl.中 { background: #fff4e2; color: #b9770e; }
.an-lvl.低 { background: #eef1f4; color: #5f6368; }
.an-title { font-size: 13px; font-weight: 600; color: #202124; }
.an-detail { font-size: 12px; color: #5f6470; margin-top: 2px; line-height: 1.5; }
.an-people { margin-top: 4px; }
.an-chip { display: inline-block; background: #f2f2f2; color: #111111; font-size: 11px; padding: 1px 8px; border-radius: 10px; margin: 2px 4px 0 0; }
.an-ok { padding: 12px 0; color: #1a7f4b; font-size: 14px; font-weight: 600; }
.an-sub2 { font-size: 12px; color: #8a919c; margin: 12px 0 5px; font-weight: 600; }
.rank-more { padding: 8px 0 10px; text-align: center; }
.rank-more button { border: 1px solid #dcdfe3; background: #fff; color: #5c6470; border-radius: 6px; padding: 5px 16px; font-size: 12px; cursor: pointer; font-family: inherit; }
.rank-more button:hover { border-color: #b8bec6; color: #242a31; }
.trend-summary { display: flex; padding: 14px 20px 6px; }
.trend-stat { flex: 1 1 0; min-width: 0; padding: 2px 18px; border-left: 1px solid #eef0f2; }
.trend-stat:first-child { padding-left: 0; border-left: none; }
.trend-stat-label { font-size: 12px; color: #8a919c; margin-bottom: 5px; }
.trend-stat-value { font-size: 21px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-stat-value.brand { color: #111111; }
.trend-stat-sub { font-size: 12px; color: #8a919c; margin-top: 5px; font-variant-numeric: tabular-nums; }
.trend-chart-wrap { position: relative; padding: 0 20px; }
#trendSvgBox svg { display: block; width: 100%; touch-action: pan-y; }
.trend-tip { position: absolute; z-index: 5; pointer-events: none; display: none; background: #fff; border: 1px solid #e5e7ea; border-radius: 6px; padding: 8px 10px; font-size: 12px; line-height: 1.6; min-width: 158px; box-shadow: 0 2px 6px rgba(20,28,38,.07); }
.trend-tip .tt-title { font-weight: 600; margin-bottom: 3px; }
.trend-tip .tt-row { display: flex; justify-content: space-between; gap: 16px; color: #8a919c; }
.trend-tip .tt-row b { font-weight: 500; color: #242a31; font-variant-numeric: tabular-nums; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 20px 2px; }
.trend-note { padding: 6px 20px 14px; font-size: 12px; color: #8a919c; line-height: 1.7; }
.trend-note b { font-weight: 600; color: #5c6470; font-variant-numeric: tabular-nums; }
.trend-legend .lg { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 2px; font: inherit; font-size: 12px; color: #5f6771; cursor: pointer; border-radius: 4px; }
.trend-legend .lg:hover span { color: #242a31; }
.trend-legend .lg.off { opacity: .38; }
.trend-legend .lg svg { display: block; }
@media (max-width: 560px) {
      .trend-summary { flex-direction: column; padding: 12px 14px 4px; }
      .trend-stat { padding: 9px 0; border-left: none; border-top: 1px solid #f0f1f3; }
      .trend-stat:first-child { border-top: none; padding-top: 2px; }
      .trend-stat-value { font-size: 19px; }
      .trend-chart-wrap { padding: 0 14px; }
      .trend-legend { padding: 4px 14px 2px; }
      .trend-note { padding: 6px 14px 12px; }
    }
#excelView { display: none; }
body.view-excel #dashView { display: none; }
body.view-excel #excelView { display: block; }
.sheet-scroll { overflow: auto; max-height: calc(100vh - 208px); border: 1px solid #a6acb2; background: #fff;
      scrollbar-width: thin; scrollbar-color: #9aa0a6 #eceef0; }
.sheet-scroll::-webkit-scrollbar { height: 14px; width: 14px; }
.sheet-scroll::-webkit-scrollbar-track { background: #eceef0; border-radius: 7px; }
.sheet-scroll::-webkit-scrollbar-thumb { background: #9aa0a6; border-radius: 7px; border: 3px solid #eceef0; }
.sheet-scroll::-webkit-scrollbar-thumb:hover { background: #6f767d; }
.sheet-scroll::-webkit-scrollbar-corner { background: #eceef0; }
.hscroll-float { position: fixed; height: 14px; background: rgba(236,238,240,.95); border: 1px solid #c6cacd; border-radius: 7px; z-index: 60; display: none; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.hscroll-float .hsf-thumb { position: absolute; top: 1px; bottom: 1px; background: #9aa0a6; border-radius: 6px; cursor: grab; }
.hscroll-float .hsf-thumb:hover { background: #6f767d; }
.hscroll-float.dragging .hsf-thumb { background: #5f6368; cursor: grabbing; }
@media (hover: none) { .hscroll-float { display: none !important; } }
table.sheet { border-collapse: collapse; background: #fff; font-size: 12px; color: #202124; font-variant-numeric: tabular-nums; }
table.sheet th, table.sheet td { border: 1px solid #d3d6d9; }
table.sheet thead .corner { width: 40px; min-width: 40px; background: #e8eaed; position: sticky; left: 0; top: 0; z-index: 4; }
table.sheet thead .colh { background: #e8eaed; color: #5f6368; font-weight: 600; text-align: center; padding: 3px 8px; min-width: 82px; position: sticky; top: 0; z-index: 3; }
table.sheet td.rowh { background: #e8eaed; color: #5f6368; font-weight: 600; text-align: center; width: 40px; min-width: 40px; padding: 3px 6px; position: sticky; left: 0; z-index: 1; }
table.sheet td.cell { padding: 3px 9px; text-align: right; white-space: nowrap; }
table.sheet td.cell.l { text-align: left; }
table.sheet td.cell.hdr { background: #f1f3f4; font-weight: 600; color: #3c4043; text-align: center; }
table.sheet td.cell.hdr.l { text-align: left; }
table.sheet td.cell.title { background: #111111; color: #fff; text-align: left; font-weight: 600; letter-spacing: .02em; padding: 4px 9px; border-color: #111111; }
table.sheet td.cell.name { font-weight: 600; color: #202124; text-align: left; }
table.sheet td.pos { color: #137333; }
table.sheet td.neg { color: #c5221f; }
table.sheet td.dim { color: #b0b4b8; }
table.sheet td.cell.xh-group { background: #fff; color: #202124; font-weight: 700; font-size: 13px; text-align: center; }
table.sheet td.cell.xh-plain { background: #fff; color: #202124; font-weight: 600; }
table.sheet td.cell.xh-plain.l { text-align: left; }
table.sheet td.cell.xh-gray { background: #f2f2f2; font-weight: 600; }
table.sheet td.cell.xh-doctor { font-size: 13px; }
table.sheet td.cell.xh-bold { font-weight: 700; }
table.sheet tr.xh-subtotal td.cell { font-weight: 700; background: #fafafa; }
table.sheet tr.admission-row td.cell { background: #eaf6ee; }
table.sheet tr.alternate-row td.cell { background: #fff5dc; }
table.sheet tr.no-reception-row td.cell { color: #a0a5aa; background: #fafafa; }
table.sheet td.cell.status-admit { color: #137333; font-weight: 700; text-align: center; }
table.sheet td.cell.status-alternate { color: #b06000; font-weight: 700; text-align: center; }
table.sheet td.cell.status-pending { color: #8a6d1d; text-align: center; }
table.sheet td.cell.stick2 { position: sticky; left: 40px; z-index: 2; background: #fff; min-width: 96px; box-shadow: 1px 0 0 #a6acb2; }
table.sheet td.cell.stick2.hdr { background: #f1f3f4; }
table.sheet td.cell.stick2.xh-gray { background: #f2f2f2; }
table.sheet tr.xh-band td.cell.stick2 { background: #f8f9fa; }
table.sheet tr.xh-subtotal td.cell.stick2 { background: #fafafa; }
table.sheet td.cell.xh-gap { border: none; background: transparent; padding: 0; min-width: 18px; }
table.sheet td.cell.xh-note { background: #fff; color: #80868b; font-size: 11px; font-weight: 400; text-align: left; font-style: italic; white-space: normal; word-break: break-word; }
.sheet-srcnote { margin: 0 0 8px; padding: 8px 12px; background: #f2f2f2; border: 1px solid #d4d4d4;
      border-radius: 6px; color: #414141; font-size: 12px; line-height: 1.6; word-break: break-word; }
.sheet-srcnote div + div { margin-top: 3px; }
.card-srcnote { padding: 8px 20px 0; color: #8a919c; font-size: 11.5px; line-height: 1.55; word-break: break-word; }
#sec-anomaly.collapsed .card-srcnote { display: none; }
.version-toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 999;
      background: #202124; color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.loading-toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 999;
      background: #111111; color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 13px;
      box-shadow: 0 2px 10px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px; }
.stale-banner { position: sticky; top: 0; z-index: 998; background: #fce8e6; color: #c5221f;
      padding: 7px 16px; font-size: 13px; font-weight: 600; text-align: center; border-bottom: 1px solid #f6aea9; }
.modal-mask { position: fixed; inset: 0; z-index: 1200; background: rgba(32,33,36,.45);
      display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.22);
      max-width: 460px; width: 100%; padding: 20px 22px 18px; animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #202124; }
.modal-box .modal-msg { font-size: 13px; color: #5f6368; line-height: 1.7; white-space: pre-line; word-break: break-word; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.notify-stack { position: fixed; top: 16px; right: 16px; z-index: 1300; display: flex;
      flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.notify-item { max-width: 340px; padding: 10px 14px; border-radius: 8px; font-size: 13px;
      color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.22); line-height: 1.5; word-break: break-word;
      cursor: pointer; pointer-events: auto; animation: notifyIn .22s ease; transition: opacity .3s, transform .3s; }
.notify-item.leaving { opacity: 0; transform: translateX(14px); }
.notify-item.ok { background: #137333; }
.notify-item.err { background: #c5221f; }
.notify-item.info { background: #202124; }
@keyframes notifyIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .notify-stack { left: 16px; right: 16px; align-items: stretch; } .notify-item { max-width: none; } }
.xls-toolbar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #d3d6d9; flex-wrap: wrap; }
.xls-toolbar button { font-size: 12px; padding: 5px 12px; border-radius: 4px; border: 1px solid #111111; background: #fff; color: #111111; cursor: pointer; }
.xls-toolbar button:hover { background: #f2f2f2; }
.xls-toolbar button:disabled { opacity: .5; cursor: default; }
.xls-toolbar .sub { font-size: 12px; color: #5f6368; }
.xls-toolbar.admission-toolbar { flex-wrap: wrap; background: #fafafa; }
.xls-toolbar.admission-toolbar button.active { background: #111111; color: #fff; }
.xls-toolbar.admission-toolbar .divider { width: 1px; height: 20px; background: #d3d6d9; margin: 0 2px; }
.xls-toolbar .divider { width: 1px; height: 20px; background: #d3d6d9; margin: 0 2px; }
.sheet-find-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5f6368; }
.sheet-find-input { width: 180px; border: 1px solid #c9cdd2; border-radius: 4px; padding: 5px 8px;
      color: #202124; background: #fff; font: inherit; font-size: 12px; outline: none; }
.sheet-find-input:focus { border-color: #111111; box-shadow: 0 0 0 2px rgba(17,17,17,.12); }
.sheet-find-count { min-width: 48px; color: #80868b; font-size: 12px; font-variant-numeric: tabular-nums; }
table.sheet td.cell.sheet-find { box-shadow: inset 0 0 0 2px #f6bf26; }
table.sheet td.cell.sheet-find-current { background: #fff3c4 !important; box-shadow: inset 0 0 0 3px #e37400; }
.precise-panel { max-height: 320px; overflow: auto; border-bottom: 1px solid #d3d6d9; background: #fff; }
.pp-head { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: #f8f9fa; border-bottom: 1px solid #e0e2e5; position: sticky; top: 0; z-index: 2; }
.pp-head .pp-sum { font-size: 12px; color: #3c4043; flex: 1; }
.pp-head button { font-size: 11px; padding: 2px 10px; border-radius: 4px; border: 1px solid #dadce0; background: #fff; color: #3c4043; cursor: pointer; }
.pp-head button:hover { background: #f2f2f2; }
table.precise-table { border-collapse: collapse; width: 100%; font-size: 12px; }
table.precise-table th, table.precise-table td { border: 1px solid #e0e2e5; padding: 3px 9px; text-align: right; white-space: nowrap; }
table.precise-table th { background: #f1f3f4; font-weight: 600; text-align: center; position: sticky; top: 0; }
table.precise-table td.lbl { text-align: left; font-weight: 600; }
table.precise-table td.diff-ok { color: #137333; }
table.precise-table td.diff-bad { color: #c5221f; font-weight: 700; }
table.sheet td.cell.xh-target { background: #fff9c4; font-weight: 600; }
table.sheet tr.xh-band td.cell { background: #f8f9fa; }
table.sheet td.cell.xh-dept { background: #f2f2f2; font-weight: 700; }
table.sheet tr.xh-deptend td.cell { border-bottom: 2px solid #9aa0a6; }
.sheet-cat-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 8px; }
.sheet-cat-sel .scs-btn { font-size: 12.5px; padding: 5px 18px; border: 1px solid #d3d6d9; background: #fff; color: #5f6368; border-radius: 999px; cursor: pointer; }
.sheet-cat-sel .scs-btn:hover { border-color: #111111; color: #111111; }
.sheet-cat-sel .scs-btn.active { background: #111111; color: #fff; border-color: #111111; }
.sheet-tabs { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; padding: 4px 4px 0; background: #d3d6d9; border: 1px solid #a6acb2; border-bottom: none; position: sticky; top: 0; z-index: 50; }
.sheet-tabs button { flex: 0 0 auto; border: 1px solid transparent; border-top: none; background: rgba(255,255,255,.55); color: #5f6368; font-size: 12px; padding: 6px 13px; border-radius: 0 0 4px 4px; cursor: pointer; white-space: nowrap; border-bottom-width: 3px; }
.sheet-tabs button.g-main { border-bottom-color: #5f6368; }
.sheet-tabs button.g-formula { border-bottom-color: #111111; }
.sheet-tabs button.g-meeting { border-bottom-color: #111111; }
.sheet-tabs button.g-site { border-bottom-color: #8a3ffc; }
.sheet-tabs button.g-admission { border-bottom-color: #d97706; }
.sheet-tabs button.active { background: #fff; color: #202124; font-weight: 600; }
.sheet-tabs button.loading { opacity: .6; }
.site-table-wrap { padding: 14px; background: #fff; overflow: auto; min-height: 200px; }
.site-table-title { font-size: 13px; color: #5f6368; margin-bottom: 10px; }
.site-table-img { max-width: 100%; height: auto; border: 1px solid #dadce0; display: block; }
.site-table-missing { padding: 60px 0; text-align: center; color: #80868b; font-size: 13px; }
@media (max-width: 720px) {
      .topbar-inner { padding: 8px 12px; gap: 8px 10px; }
      main { padding: 12px 10px 40px; gap: 10px; }
      .brand { width: 100%; margin-right: 0; }
      .dept-side { flex: 1 1 100%; border-left: none; border-top: 1px solid #eef0f2; }
      .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
      .grid2 { gap: 10px; }
    }
