/* ═════════════════ 처리 인사이트 · 운영 리포트 (P5 · 2026-11-11) ═════════════════
 * 색은 토큰으로 — 밝기 전환이 따라온다. 막대는 HTML (외부 차트 라이브러리는 CSP 로 막힌다).
 */
.kpi-row { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; margin-bottom:14px; }
.kpi-tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:12px 14px; }
.kpi-l { font-size:12px; color:var(--ink-500); }
.kpi-v { font-size:22px; font-weight:700; letter-spacing:-.4px; margin:4px 0 2px; font-variant-numeric:tabular-nums; }
.kpi-s { font-size:11.5px; color:var(--ink-500); }
.kpi-d { font-weight:700; color:var(--ink-500); }
.kpi-d.good { color:var(--green-700); }
.kpi-d.bad { color:var(--red-700); }

.ins-grid > .panel, .ins-grid > .grid-2 { margin-bottom:14px; }
.ins-table td { vertical-align:middle; }
.rate { font-weight:700; font-variant-numeric:tabular-nums; }
.rate.good { color:var(--green-700); } .rate.mid { color:var(--amber-700); } .rate.bad { color:var(--red-700); }
.bad-text { color:var(--red-700); }

.range-bar { position:relative; height:10px; width:160px; max-width:100%; background:var(--surface-3); border-radius:5px; overflow:hidden; margin-bottom:3px; }
.range-bar i { position:absolute; left:0; top:0; bottom:0; border-radius:5px; }
.range-bar .p90 { background:var(--brand-100); }
.range-bar .p50 { background:var(--brand-700); }

.legend { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:11.5px; color:var(--ink-500); margin-bottom:10px; }
.legend .lg { display:inline-flex; align-items:center; gap:5px; }
.legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.stack-row { display:grid; grid-template-columns:110px 1fr 70px; align-items:center; gap:10px; padding:5px 0; font-size:12.5px; }
.stack { display:flex; height:14px; border-radius:4px; overflow:hidden; min-width:4px; }
.stack i { display:block; height:100%; }
.stack-v { text-align:right; font-variant-numeric:tabular-nums; }
/* 단계 색 — 사람 확인 단계는 주황 계열로 묶어 눈에 띄게 */
.st-queue { background:#B6AFA3; } .st-credentials { background:#7FA8CE; } .st-profile_lock { background:#958F84; }
.st-browser { background:#5B90D4; } .st-login { background:var(--brand-700); } .st-capture { background:#4FB3A0; }
.st-upload { background:#2F6F8F; } .st-otp { background:#D6A85A; } .st-captcha { background:#C2705F; }
.st-human_auth { background:#B45309; } .st-protection { background:#9C2B24; }

.heat { display:flex; flex-direction:column; gap:2px; overflow-x:auto; }
.heat-row { display:grid; grid-template-columns:22px repeat(24, minmax(10px, 1fr)); gap:2px; }
.heat-y, .heat-x { font-size:10.5px; color:var(--ink-500); text-align:center; }
.heat-c { height:16px; border-radius:2px; background:color-mix(in srgb, var(--brand-700) calc(var(--a) * 100%), var(--surface-3)); }

.cols { display:flex; align-items:flex-end; gap:3px; height:150px; overflow-x:auto; padding-top:6px; }
.col { flex:1 0 14px; display:flex; flex-direction:column; align-items:center; height:100%; }
.col-bar { flex:1; width:100%; display:flex; flex-direction:column-reverse; justify-content:flex-start; }
.col-bar i { display:block; width:100%; }
.c-ok { background:var(--c-recover); } .c-ng { background:var(--c-fail); } .c-human { background:var(--amber-700); }
.legend .c-ok, .legend .c-ng, .legend .c-human { display:inline-block; }
.col-dot { font-size:10px; color:#fff; background:var(--amber-700); border-radius:8px; padding:0 4px; margin-top:2px; min-height:14px; }
.col-dot.empty { background:none; }
.col-x { font-size:10px; color:var(--ink-500); height:14px; white-space:nowrap; }

.rep-head { background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--brand-700); border-radius:var(--r-lg); padding:14px 16px; margin-bottom:14px; }
.rep-headline { font-size:16px; font-weight:700; letter-spacing:-.3px; margin-bottom:4px; }
.tl { list-style:none; padding:0; margin:0; }
.tl li { display:grid; grid-template-columns:96px 150px 1fr; gap:10px; padding:7px 0; border-bottom:1px solid var(--line-2); font-size:12.5px; }
.tl-k { font-weight:700; }
.tl-fail .tl-k { color:var(--red-700); } .tl-human .tl-k { color:var(--amber-700); } .tl-change .tl-k { color:var(--blue-700); }
.todo { list-style:none; padding:0; margin:0; }
.todo li { padding:6px 0; border-bottom:1px solid var(--line-2); font-size:12.5px; }
@media (max-width:700px) {
  .tl li { grid-template-columns:1fr; gap:2px; }
  .stack-row { grid-template-columns:80px 1fr 56px; }
}

/* 인쇄 — 메뉴·상단 바를 빼고 리포트만 (운영 리포트 [인쇄 · PDF]) */
@media print {
  .sidebar, .topbar, .mode-banner, .page-actions, #toasts, .hp-backdrop, .hotel-panel { display:none !important; }
  .shell { display:block; }
  body { background:#fff; }
  .panel, .kpi-tile, .rep-head { break-inside:avoid; box-shadow:none; }
}

/* 대시보드 요약 띠 (P6) */
.dash-strip { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)) auto; gap:10px; align-items:stretch; margin-bottom:14px; }
.dash-strip .kpi-tile { padding:10px 12px; }
.dash-strip .kpi-v { font-size:19px; }
.dash-strip-more { align-self:center; font-size:12.5px; white-space:nowrap; padding:0 6px; }
@media (max-width:900px) { .dash-strip { grid-template-columns:repeat(2, minmax(0, 1fr)); } .dash-strip-more { grid-column:1 / -1; } }
