/* Finance dashboard. The shared navigation drawer keeps its existing behavior. */
.bookkeeping-dashboard{--bk-ink:#102b50;--bk-muted:#627893;--bk-line:#e0eaf4;color:var(--bk-ink);font-size:14px}
.bookkeeping-dashboard svg{width:25px;height:25px;flex:none;vertical-align:middle}
.bk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
.bk-subtitle{font-size:18px;color:#294968;margin:0 0 4px}
.bk-toolbar small{display:block;color:var(--bk-muted);font-size:12px;max-width:410px}
.bk-filters{display:flex;gap:12px;align-items:flex-end;flex:none}
.bk-filters label{display:block;font-size:12px;margin:0 0 6px;color:#163450}
.bk-filters input,.bk-filters select{width:175px;min-height:39px;padding:8px 10px;border:1px solid #cedeed;background:#fcfdff;font-size:13px}
.bookkeeping-dashboard .bk-refresh{display:inline-flex;gap:9px;background:#173b64;min-height:39px;border-radius:6px;font-size:13px;white-space:nowrap}
.bookkeeping-dashboard a{color:#1455ae;text-decoration:none}
.bookkeeping-dashboard a:hover{text-decoration:underline}
.bk-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}
.bk-kpis:has(>.bk-kpi:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.bookkeeping-dashboard .bk-kpi{display:flex;position:relative;align-items:center;gap:12px;background:linear-gradient(130deg,#fff,#fafdff);border:1px solid var(--bk-line);border-radius:9px;min-width:0;padding:20px 14px;box-shadow:0 3px 12px #24456b03;color:var(--bk-ink);text-decoration:none;transition:box-shadow .15s,border-color .15s}
.bookkeeping-dashboard .bk-kpi:hover{border-color:#8cafcf;box-shadow:0 6px 20px #24456b0c;text-decoration:none}
.bk-kpi-icon{display:grid;place-items:center;width:44px;height:48px;border-radius:8px;background:var(--tint);color:var(--tone);flex:none}
.bk-kpi>div{min-width:0;flex:1}
.bk-kpi-label{display:block;font-size:12px;line-height:1.35;margin-bottom:6px}
.bk-kpi strong{display:block;font-size:clamp(16px,1.25vw,21px);font-weight:750;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bk-kpi small{display:block;font-size:11px;color:var(--bk-muted);margin-top:8px;line-height:1.35}
.bk-chevron{position:absolute;bottom:12px;right:12px;color:#8ba6c0;font-size:20px}
.bk-kpi .bk-money-number{font-size:clamp(12px,1.05vw,17px);white-space:nowrap}
.bk-currency{display:block;font-size:10px;font-weight:600;line-height:1.2;margin-bottom:3px;color:var(--bk-muted)}
.bk-money-number{display:block;white-space:nowrap;font-size:clamp(15px,1.25vw,20px);letter-spacing:-.5px}
.mint{--tone:#07854c;--tint:#e2f6ee}.blue{--tone:#075cd7;--tint:#e8f2ff}.rose{--tone:#b52b35;--tint:#fcecef}.amber{--tone:#94600e;--tint:#fcf4df}.violet{--tone:#7c42d8;--tint:#f0eaff}.plain{--tone:#173657;--tint:#f4f8fc}
.bk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.bk-panel{background:linear-gradient(125deg,#fff,#fcfeff);border:1px solid var(--bk-line);border-radius:9px;padding:19px 18px;min-width:0;box-shadow:0 3px 12px #24456b02}
.bk-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #eaf0f6;padding-bottom:12px;margin-bottom:13px}
.bk-panel-heading h2{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;letter-spacing:-.35px;line-height:1.35;margin:0;color:#142e50}
.bk-panel-wide{grid-column:1/-1}
.bk-panel-heading h2 svg{color:#264769;width:25px;height:25px}
.bk-panel-heading>a{font-size:12px;white-space:nowrap}
.bk-caption{font-size:12px;color:var(--bk-muted);margin:0 0 12px}
.bk-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bk-tiles.bk-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.bk-tile{display:flex;flex-direction:column;gap:13px;padding:17px 15px;background:linear-gradient(130deg,var(--tint),#fafdff);border-radius:7px;min-height:122px;min-width:0;color:var(--tone)}
.bk-tile>span{font-size:12px;line-height:1.4;font-weight:600}
.bk-tile>strong,.bk-tile>a>strong{font-size:clamp(20px,2.2vw,31px);line-height:1.25;font-weight:750;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bk-three .bk-tile>strong,.bk-three .bk-tile>a>strong{font-size:clamp(18px,1.6vw,25px)}
.bk-tile>small{font-size:11px;margin-top:auto;color:var(--tone)}
.bk-footnote{font-size:11px;color:var(--bk-muted);margin:14px 0 0;line-height:1.5}
.bk-badge{display:inline-block;padding:4px 11px;border-radius:5px;background:var(--tint);color:var(--tone);font-size:12px;font-weight:650;margin:0 0 12px}
.bk-table-wrap{overflow-x:auto;width:100%}
.bookkeeping-dashboard table{width:100%;font-size:12px;border-collapse:collapse}
.bookkeeping-dashboard th{background:#f0f6fc;color:#183455;font-weight:650;font-size:11px;letter-spacing:0;text-transform:none;padding:9px 8px;border-bottom:1px solid #e5edf6}
.bookkeeping-dashboard td{padding:10px 8px;border-bottom:1px solid #eaf0f6;vertical-align:middle;color:#29425e;line-height:1.45}
.bookkeeping-dashboard tbody tr:last-child td{border-bottom:0}
.bookkeeping-dashboard tbody tr:hover{background:#f8fbff}
.bookkeeping-dashboard .bk-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bk-nowrap{white-space:nowrap}.bk-description{max-width:230px;overflow-wrap:anywhere}
.bookkeeping-dashboard .bk-empty{padding:28px 12px;color:var(--bk-muted);text-align:center}
.bk-alert-count{color:var(--tone)!important;font-weight:750;padding:3px 8px;border-radius:4px;background:var(--tint)}
.bk-dot{display:inline-block;width:7px;height:7px;background:var(--tone);border-radius:50%;margin-right:7px}
.bk-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:22px 0 0;padding:16px 0;border-top:1px solid var(--bk-line)}
.bk-shortcuts>span{font-weight:650;font-size:12px;color:#526f8b;margin-right:6px}
.bk-shortcuts>a{padding:5px 9px;background:#edf4fb;border:1px solid #dbe7f3;border-radius:5px;font-size:11px}
.bk-updated{font-size:11px;color:#6a8097;text-align:right;margin:6px 0 0}
.bk-notice{padding:12px 15px;border:1px solid #e7d6a4;background:#fff9eb;border-radius:7px}
.bookkeeping-dashboard a:focus-visible,.bookkeeping-dashboard button:focus-visible,.bookkeeping-dashboard input:focus-visible,.bookkeeping-dashboard select:focus-visible{outline:3px solid #74afd9;outline-offset:3px}
@media(min-width:1600px){.bk-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.bk-kpi{padding:23px 16px}.bk-panel{padding:22px}.bk-grid{gap:20px}}
@media(max-width:1150px){.bk-toolbar{align-items:flex-start;flex-direction:column;gap:16px}.bk-filters{width:100%;justify-content:flex-end}.bk-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.bk-tiles{gap:8px}.bk-tile{padding:14px 10px}.bk-panel-heading h2{font-size:16px}.bk-kpi strong{font-size:19px}}
@media(max-width:850px){.bk-grid{grid-template-columns:minmax(0,1fr)}.bk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bk-kpi strong{font-size:20px}.bk-tile>strong,.bk-tile>a>strong{font-size:25px}.bk-filters{justify-content:flex-start}}
@media(max-width:520px){.bk-filters{flex-wrap:wrap;gap:10px}.bk-filters>div{flex:1;min-width:125px}.bk-filters input,.bk-filters select{width:100%}.bookkeeping-dashboard .bk-refresh{width:100%;justify-content:center}.bk-kpi-icon{width:32px;height:38px}.bk-kpi-icon svg{width:22px;height:22px}.bookkeeping-dashboard .bk-kpi{gap:8px;padding:14px 10px}.bk-kpi strong{font-size:16px}.bk-chevron{display:none}.bk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.bk-tiles.bk-three{grid-template-columns:1fr}.bk-panel{padding:15px 12px}.bk-panel-heading h2{font-size:16px}.bk-panel-heading>a{font-size:11px}.bk-toolbar small{font-size:11px}.bk-subtitle{font-size:16px}}
@media(max-width:520px){.bookkeeping-dashboard .bk-kpi{display:block}.bk-kpi-icon{position:absolute;top:14px;left:10px}.bk-kpi-label{min-height:36px;margin-left:42px}.bk-kpi .bk-money-number{font-size:15px}.bk-kpis:has(>.bk-kpi:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.bookkeeping-dashboard .bk-kpi{transition:none}}


