/* Shared components. Values come from tokens.css; brand colours from layout.css. */

.stat-tile {
    --tone: var(--ink-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-1);
    min-height: 92px;
    padding: var(--sp-3) var(--sp-4);
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-left: 4px solid var(--tone);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    min-width: 0;
}
.stat-tile--primary { --tone: var(--coffee-primary); }
.stat-tile--success { --tone: var(--c-success); }
.stat-tile--danger  { --tone: var(--c-danger); }
.stat-tile--warning { --tone: var(--c-warning); }
.stat-tile--info    { --tone: var(--c-info); }

.stat-tile__value {
    color: var(--tone);
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.stat-tile--neutral .stat-tile__value { color: var(--ink); }
.stat-tile__label { color: var(--ink-muted); font-size: var(--fs-sm); }

.stat-tile--link { transition: var(--transition-ui); }
.stat-tile--link:hover { color: var(--ink); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.stat-tile--link:active { transform: translateY(0); box-shadow: var(--shadow-1); }

/* Money and counts read best in a fixed-width figure style wherever they sit in a table. */
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Small helpers that replace repeated inline styles. */
.cursor-pointer { cursor: pointer; }
.scroll-y { overflow-y: auto; }
.scroll-y--240 { max-height: 240px; }
.scroll-y--340 { max-height: 340px; }
.scroll-y--400 { max-height: 400px; }
.scroll-y--550 { max-height: 550px; }
.report-figure--cafe { color: #4b2e2b; }
.report-figure--inventory { color: #2e7d32; }
.filter-actions { display: flex; align-items: flex-end; gap: var(--sp-3); }
