/* 통합 대시보드 (dashboard.js) — 차트 색은 dataviz 기본 팔레트 1~3번 */
.db-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.db-filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.db-filters input[type=month] { border: 1px solid #cdd8ce; border-radius: 8px; padding: 8px; background: #fff; }
.db-check { display: flex !important; align-items: center; gap: 6px; font-weight: 600 !important; padding-bottom: 8px; }
.db-seg { display: inline-flex; border: 1px solid #cdd8ce; border-radius: 9px; overflow: hidden; background: #fff; }
.db-seg button { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; color: var(--ink); }
.db-seg button + button { border-left: 1px solid #e3e9e4; }
.db-seg button.on { background: var(--brand); color: #fff; font-weight: 700; }
.db-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.db-tile { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; display: grid; gap: 6px; }
.db-tile span { font-size: 13px; color: var(--muted); }
.db-tile strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.db-tile small { color: var(--muted); font-size: 12px; }
.db-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin-bottom: 14px; }
.db-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.db-card-head h3 { margin: 0; font-size: 16px; }
.db-legend { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink); }
.db-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.db-legend i.line { height: 3px; border-radius: 2px; vertical-align: 3px; width: 16px; }
.db-chart { position: relative; }
.db-svg { width: 100%; height: auto; display: block; }
.db-grid { stroke: #eef1ee; stroke-width: 1; }
.db-grid.zero { stroke: #c9d3cb; }
.db-axis { font-size: 11px; fill: #6e7c72; font-variant-numeric: tabular-nums; }
.db-hit { fill: transparent; cursor: crosshair; outline: none; }
.db-hit:focus { fill: rgba(42,120,214,.06); }
.db-cross { stroke: #9aa69e; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.db-tip { position: absolute; top: 8px; min-width: 170px; background: #fff; border: 1px solid #dfe6df; border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,.12); padding: 8px 10px; font-size: 12.5px; pointer-events: none; }
.db-tip-h { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.db-tip div:not(.db-tip-h) { display: flex; align-items: center; gap: 8px; }
.db-tip i { width: 12px; height: 3px; border-radius: 2px; }
.db-tip strong { font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.db-tip span { color: var(--muted); }
.db-scroll { overflow-x: auto; }
.db-table { width: 100%; min-width: 600px; }
.db-table th, .db-table td { white-space: nowrap; }
.db-total td { background: #f3f7f4; font-weight: 800; }
.db-neg { color: #a43d31 !important; }
@media (max-width: 800px) { .db-tiles { grid-template-columns: 1fr; } }
