body { background: #f6f7f9; }
.login-card { max-width: 380px; margin: 4rem auto; }
.stat-value { font-size: 2rem; font-weight: 600; line-height: 1.1; }

/* Left sidebar (md and up). Below md it is a Bootstrap offcanvas opened from the top bar. */
:root { --sidebar-w: 240px; }
.sidebar { --bs-offcanvas-width: var(--sidebar-w); }
.sidebar-brand { padding: 1.1rem 1.25rem; color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 768px) {
    .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); z-index: 1030; overflow-y: auto; }
    .has-sidebar .page { margin-left: var(--sidebar-w); }
}
.sidebar .nav-link { color: rgba(255, 255, 255, .75); }
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sidebar .nav-link.active { color: #fff; background: var(--bs-primary); }
/* Collapsible Settings group: a button that looks like a nav link, with a chevron that turns when open. */
.sidebar .nav-toggle { border: 0; background: none; }
.sidebar .nav-chevron { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: .25rem; }
.sidebar .nav-toggle.collapsed .nav-chevron { transform: rotate(-45deg); }
.cmd { user-select: all; white-space: pre-wrap; word-break: break-all; }

/* Report charts (assets/js/charts.js). Values follow the reference palette: blue = series 1, orange = the emphasised mark. */
.viz { --viz-main: #2a78d6; --viz-accent: #eb6834; --viz-ink: #0b0b0b; --viz-ink2: #52514e; --viz-muted: #898781; --viz-axis: #c3c2b7; --viz-grid: #e6e5df; }
.viz-wrap { position: relative; }
.viz .viz-main { fill: var(--viz-main); }
.viz .viz-accent { fill: var(--viz-accent); }
.viz .viz-bar { transition: opacity .12s; }
.viz .viz-hit:hover ~ .viz-bar, .viz .viz-hit:focus { outline: none; }
.viz .viz-hit:hover, .viz .viz-hit:focus { fill: rgba(0, 0, 0, .05); }
.viz .viz-axis { stroke: var(--viz-axis); stroke-width: 1; }
.viz .viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz .viz-range { stroke: var(--viz-ink2); stroke-width: 1.5; }
.viz .viz-tick { fill: var(--viz-muted); font-size: 11px; }
.viz .viz-val { fill: var(--viz-ink2); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz .viz-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--viz-axis); border-radius: 6px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); white-space: nowrap; }
.viz .viz-tip-val { color: var(--viz-ink); font-weight: 600; font-size: 1rem; }
.viz .viz-tip-lab { color: var(--viz-ink2); font-size: .8rem; }
.viz .viz-note { color: var(--viz-ink2); font-size: .8rem; margin: .25rem 0 0; }
.viz-key { display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; vertical-align: -1px; margin-right: .3rem; }
.meter { height: 6px; background: #e6e5df; border-radius: 3px; overflow: hidden; min-width: 70px; }
.meter > span { display: block; height: 100%; background: #2a78d6; }
.meter > span.over { background: #eb6834; }
.th-sort a { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort a:hover { text-decoration: underline; }
