.dashboard-toolbar h2 { margin-bottom: 4px; }
.dashboard-shortcuts { display: flex; align-items: center; gap: 8px; color: #7a8982; }
.dashboard-shortcuts button { padding: 5px 14px; font-size: 12px; }
.dashboard-metric { padding: 22px; }
.dashboard-metric b { font-size: clamp(22px,2vw,32px); white-space: nowrap; }
.dashboard-metric span { display: block; color: #849188; font-size: 11px; margin-top: 10px; }
.dashboard-metric:first-child span { color: #bdd5c6; }
.dashboard-metric em,.invoice-metrics em { font-size: 12px; font-style: normal; margin-left: 5px; font-weight: normal; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.chart-wide { grid-column: 1/-1; }
.chart-panel { min-width: 0; padding: 24px; }
.chart-heading { margin-bottom: 24px; }
.chart-heading h2 { font-size: 17px; margin-bottom: 3px; }
.chart-heading small { font-size: 12px; }
.chart-empty { min-height: 220px; display: grid; place-items: center; color: #8d9b92; background: #fafbf8; border-radius: 10px; }
.chart-bars { display: grid; gap: 17px; }
.chart-bar-row { display: flex; gap: 12px; align-items: center; }
.bar-rank { font-size: 12px; color: #8b9c8e; width: 16px; }
.bar-data { flex: 1; min-width: 0; }
.bar-caption { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-size: 12px; }
.bar-caption>span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-caption b { flex-shrink: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track { background: #f0f3ed; height: 7px; border-radius: 6px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; }
.donut-layout { display: flex; align-items: center; gap: 24px; min-height: 240px; }
.donut-layout svg { width: 48%; max-width: 220px; overflow: visible; }
.donut-number { fill: #25463a; font-size: 20px; font-weight: 600; }
.donut-label { fill: #8b968f; font-size: 9px; }
.chart-legend { flex: 1; display: grid; gap: 18px; font-size: 12px; }
.chart-legend>div { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.chart-legend b { font-weight: 500; }
.chart-legend i,.trend-legend i { display: inline-block; height: 8px; width: 8px; border-radius: 3px; margin-right: 7px; }
.trend-legend { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; }
.trend-legend small { margin-left: auto; }
.trend-svg { width: 100%; max-height: 340px; margin-top: 20px; overflow: visible; }
.chart-gridline { stroke: #e7ede5; stroke-dasharray: 4 4; }
.chart-axis { fill: #8b968f; font-size: 10px; }
.trend-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-point { stroke: white; stroke-width: 1.5; cursor: help; }
.trend-point:hover,.trend-point:focus { stroke: #263f32; stroke-width: 3; outline: none; }
.chart-details summary,.stock-details summary { cursor: pointer; color: #627568; font-size: 12px; }
.chart-details[open] summary,.stock-details[open] summary { margin-bottom: 18px; }
.invoice-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.invoice-metrics>div { background: #f4f7ef; padding: 18px; border-radius: 8px; }
.invoice-metrics b { display: block; font-size: 28px; margin-top: 4px; }
.chart-footnote,.dashboard-note { color: #8c978f; font-size: 12px; margin: 18px 0 0; }
.stock-details summary { font-size: 15px; font-weight: 600; }
.stock-details summary small { font-size: 12px; font-weight: normal; margin-left: 8px; }
@media(max-width:1100px) { .donut-layout { gap: 12px; } .dashboard-metric b { font-size: 24px; } }
@media(max-width:800px) { .dashboard-grid { grid-template-columns: 1fr; } .donut-layout { justify-content: center; } .donut-layout svg { width: 44%; } }
@media(max-width:450px) { .trend-legend { gap: 10px; } .dashboard-metric { padding: 16px; } .dashboard-metric b { font-size: 20px; } .chart-panel { padding: 18px; } }
@media print { .dashboard-shortcuts,.chart-details { display: none; } .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .chart-panel,.cards { break-inside: avoid; } .trend-svg { max-height: 230px; } .dashboard-metric b { font-size: 22px; } }
