/* WAKE Admin Portal — app-local styles.
   The HELM design system (helm-tokens.css + the UI kit's bespoke components) owns the shell, cards,
   chips, KPI cards, page headers, and empty/error/loading states. This file only carries the few
   WAKE-specific bits the kit doesn't ship: the audit data tables and a couple of layout helpers.
   Everything is expressed in HELM tokens so it tracks brand + light/dark automatically. */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-default);
    background: var(--bg-app);
    font-size: var(--fs-base);
}

/* Brand lockup in the shell topbar (dark variant — white wordmark on the teal primary bar) */
.wake-brand-lockup { height: 38px; width: auto; display: block; }

.mono { font-family: var(--font-mono); font-size: 0.9em; }

.helm-link { color: var(--accent); text-decoration: none; font-weight: var(--fw-medium); }
.helm-link:hover { text-decoration: underline; }

/* KPI row on the overview */
.wake-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.wake-cta { margin: 0; }

/* Centered brand loader for the overview's initial load (HelmLoader, wake variant). */
.wake-loading {
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0;
}

/* Audit data tables (findings / batches), carded by HelmCard */
.wake-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.wake-table th,
.wake-table td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.wake-table thead th {
    color: var(--text-muted);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.wake-table tbody tr:last-child td { border-bottom: none; }
.wake-table tbody tr:hover { background: var(--bg-sunken); }
.wake-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Blazor's unhandled-error toast (kept from the template, tokenized) */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-toast);
    background: var(--color-danger-soft);
    color: var(--color-danger);
    padding: var(--space-3) var(--space-5);
    box-shadow: var(--shadow-md);
}
#blazor-error-ui .reload { color: var(--color-danger); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
