.chart-box { position: relative; height: 320px; }
.card .chart-box { height: 260px; }

/* Dashboard quick entry: compact number input + send icon in the card header */
.quick-entry { width: 9rem; flex: none; }
.quick-entry input::-webkit-outer-spin-button,
.quick-entry input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-entry input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.quick-entry .btn svg { vertical-align: -2px; }

/* Range pager: fixed-width label per period so the arrows don't move while paging */
[data-period-label] { display: inline-block; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-period="year"] [data-period-label] { min-width: 3.5em; }
[data-period="month"] [data-period-label] { min-width: 10em; } /* "September 2026" */
[data-period="week"] [data-period-label] { min-width: 15.5em; } /* "Dec 29, 2025 – Jan 4, 2026" */

/* Frequency heatmap */
:root { --hm-0: #ebedf0; --hm-1: #9be9a8; --hm-2: #40c463; --hm-3: #30a14e; --hm-4: #216e39; }
[data-bs-theme="dark"] { --hm-0: #2a2f36; --hm-1: #0e4429; --hm-2: #006d32; --hm-3: #26a641; --hm-4: #39d353; }
.heatmap-scroll { overflow-x: auto; }
.heatmap-scroll svg { display: block; }
.hm-label { font-size: 10px; fill: var(--bs-secondary-color); }
.hm-cell.hm-0 { fill: var(--hm-0); }
.hm-cell.hm-1 { fill: var(--hm-1); }
.hm-cell.hm-2 { fill: var(--hm-2); }
.hm-cell.hm-3 { fill: var(--hm-3); }
.hm-cell.hm-4 { fill: var(--hm-4); }
.hm-cell.hm-future { fill: none; stroke: var(--bs-border-color); stroke-width: 1; }
.heatmap-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .5rem; font-size: .8rem; color: var(--bs-secondary-color); }
.hm-legend { display: inline-flex; align-items: center; gap: 3px; }
.hm-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 2px; }
.hm-swatch.hm-0 { background: var(--hm-0); }
.hm-swatch.hm-1 { background: var(--hm-1); }
.hm-swatch.hm-2 { background: var(--hm-2); }
.hm-swatch.hm-3 { background: var(--hm-3); }
.hm-swatch.hm-4 { background: var(--hm-4); }
