/*
 * hub.board.sk design system.
 * Structure follows Keenthemes Ceres (hero band with top navigation, content
 * cards overlapping the band, soft-tinted badges, quiet uppercase table heads);
 * colours follow the BOARD brand of the audit reports (navy, blue, teal).
 * Bootstrap 5.3 stays the component base; it is themed through its CSS variables.
 */

:root {
    --hub-navy-950: #08111f;
    --hub-navy-900: #0e1a2f;
    --hub-navy-800: #15243f;
    --hub-navy-700: #1e3254;

    --hub-ink: #071437;
    --hub-ink-2: #4b5675;
    --hub-muted: #78829d;
    --hub-subtle: #99a1b7;
    --hub-line: #eef0f4;
    --hub-line-strong: #dbdfe9;
    --hub-canvas: #f4f6fa;
    --hub-surface: #ffffff;
    --hub-surface-2: #f9fafc;

    --hub-primary: #2366d1;
    --hub-primary-hover: #1c55b0;
    --hub-primary-soft: #eaf1fc;
    --hub-teal: #1a9cc0;
    --hub-teal-soft: #e5f5fa;
    --hub-success: #1e9e5a;
    --hub-success-soft: #e5f6ec;
    --hub-warning: #c9770f;
    --hub-warning-soft: #fdf2e2;
    --hub-danger: #d13f4b;
    --hub-danger-soft: #fcebed;
    --hub-violet: #6b46d9;
    --hub-violet-soft: #f1ecfd;
    --hub-slate: #c7d2e3;

    --hub-radius: 14px;
    --hub-radius-sm: 8px;
    --hub-shadow: 0 1px 2px rgba(7, 20, 55, .04), 0 6px 24px -6px rgba(7, 20, 55, .08);
    --hub-shadow-hover: 0 2px 4px rgba(7, 20, 55, .05), 0 12px 32px -8px rgba(7, 20, 55, .14);
    --hub-font: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --bs-body-font-family: var(--hub-font);
    --bs-body-font-size: .875rem;
    --bs-body-line-height: 1.5;
    --bs-body-color: var(--hub-ink);
    --bs-body-bg: var(--hub-canvas);
    --bs-emphasis-color: var(--hub-ink);
    --bs-secondary-color: var(--hub-muted);
    --bs-tertiary-bg: var(--hub-surface-2);
    --bs-border-color: var(--hub-line);
    --bs-border-radius: var(--hub-radius-sm);
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: var(--hub-radius);
    --bs-primary: var(--hub-primary);
    --bs-primary-rgb: 35, 102, 209;
    --bs-link-color: var(--hub-primary);
    --bs-link-color-rgb: 35, 102, 209;
    --bs-link-hover-color: var(--hub-primary-hover);
    --bs-link-hover-color-rgb: 28, 85, 176;
    --bs-heading-color: var(--hub-ink);
    --bs-code-color: var(--hub-violet);
}

body {
    background: var(--hub-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

.num,
.stat-value,
.bar-value {
    font-variant-numeric: tabular-nums;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code { font-size: .8125em; }

.text-secondary { color: var(--hub-muted) !important; }

/* ---------- Buttons and form controls ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--hub-radius-sm);
    --bs-btn-font-size: .8125rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
}

.btn-sm {
    --bs-btn-padding-y: .375rem;
    --bs-btn-padding-x: .8rem;
    --bs-btn-font-size: .8125rem;
}

.btn-primary {
    --bs-btn-bg: var(--hub-primary);
    --bs-btn-border-color: var(--hub-primary);
    --bs-btn-hover-bg: var(--hub-primary-hover);
    --bs-btn-hover-border-color: var(--hub-primary-hover);
    --bs-btn-active-bg: var(--hub-primary-hover);
    --bs-btn-active-border-color: var(--hub-primary-hover);
    --bs-btn-focus-shadow-rgb: 35, 102, 209;
}

.btn-light-primary {
    --bs-btn-color: var(--hub-primary);
    --bs-btn-bg: var(--hub-primary-soft);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hub-primary);
    --bs-btn-hover-border-color: var(--hub-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hub-primary-hover);
}

.form-control,
.form-select {
    border-color: var(--hub-line-strong);
    border-radius: var(--hub-radius-sm);
    color: var(--hub-ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 .2rem rgba(35, 102, 209, .16);
}

.form-label {
    font-weight: 600;
    font-size: .8125rem;
    color: var(--hub-ink-2);
}

/* ---------- Hero band, navigation, page header ---------- */

.hub-container {
    max-width: 1680px;
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

.hub-hero {
    position: relative;
    color: #fff;
    padding-bottom: 5.5rem;
    background:
        radial-gradient(1100px 380px at 85% -60px, rgba(35, 102, 209, .55), transparent 70%),
        radial-gradient(700px 300px at 10% 120%, rgba(26, 156, 192, .22), transparent 70%),
        linear-gradient(180deg, var(--hub-navy-900) 0%, var(--hub-navy-800) 100%);
    overflow: hidden;
}

/* Fine grid texture, the Ceres header pattern translated to the BOARD palette. */
.hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.hub-hero > * { position: relative; }

.hub-nav {
    padding-top: .9rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-right: 2rem;
    color: #fff !important;
}

.hub-brand:hover { text-decoration: none; }

.hub-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 18px -4px rgba(0, 0, 0, .45);
}

.hub-brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .06em;
}

.hub-brand-tag {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    padding: .15rem .45rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
}

.hub-menu { gap: .25rem; }

.hub-menu .nav-link {
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
    font-size: .8125rem;
    padding: .5rem .85rem !important;
    border-radius: var(--hub-radius-sm);
    transition: background-color .15s ease, color .15s ease;
}

.hub-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

.hub-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.hub-nav-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.hub-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .75rem;
    color: rgba(255, 255, 255, .78);
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}

.hub-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hub-success);
    box-shadow: 0 0 0 3px rgba(30, 158, 90, .25);
}

.hub-dot.is-warning {
    background: #f0a33a;
    box-shadow: 0 0 0 3px rgba(240, 163, 58, .25);
}

.btn-ghost-light {
    --bs-btn-color: rgba(255, 255, 255, .85);
    --bs-btn-border-color: rgba(255, 255, 255, .16);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .1);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .24);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .14);
}

/* Module pages under the module switcher. */
.hub-subnav {
    flex-wrap: wrap;
    padding-top: .75rem;
}

.hub-subnav .nav-link { font-size: .78rem; padding: .4rem .75rem !important; }

/* Bell with the count of unacknowledged backup alerts (all modules). */
.hub-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background-color .15s ease, color .15s ease;
}

.hub-bell:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.hub-bell.has-alerts { color: #fff; border-color: rgba(209, 63, 75, .6); background: rgba(209, 63, 75, .18); }

.hub-bell-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hub-danger);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--hub-navy-900);
}

.hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding-top: 2.25rem;
}

.hub-eyebrow {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .4rem;
}

.hub-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0;
}

.hub-subtitle {
    color: rgba(255, 255, 255, .62);
    margin: .35rem 0 0;
    max-width: 46rem;
}

/* Period filter sits on the dark band. */
.period-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.period-bar form { justify-content: flex-end; }

.period-bar .form-select,
.period-bar .form-control {
    color: #fff;
    background-color: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color-scheme: dark;
    min-height: 34px;
}

.period-bar .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.period-bar .form-select option { color: var(--hub-ink); background: #fff; }

.period-bar .form-select:focus,
.period-bar .form-control:focus {
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .12);
}

.period-label {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .8);
}

.period-label .text-compare { color: rgba(255, 255, 255, .5); }

/* Content overlaps the band. */
.hub-main {
    margin-top: -4rem;
    padding-bottom: 3rem;
    position: relative;
}

/* ---------- Cards ---------- */

.card {
    --bs-card-border-color: transparent;
    --bs-card-border-radius: var(--hub-radius);
    --bs-card-inner-border-radius: var(--hub-radius);
    --bs-card-cap-bg: transparent;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-cap-padding-x: 1.5rem;
    --bs-card-cap-padding-y: 1.15rem;
    background: var(--hub-surface);
    box-shadow: var(--hub-shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--hub-line);
}

.card-title {
    font-size: .975rem;
    font-weight: 650;
    letter-spacing: -.005em;
    margin: 0;
}

.card-subtitle {
    display: block;
    font-size: .75rem;
    color: var(--hub-muted);
    font-weight: 400;
    margin-top: .15rem;
}

.card-note {
    font-size: .75rem;
    color: var(--hub-muted);
    border-top: 1px dashed var(--hub-line-strong);
    padding: .9rem 1.5rem;
    margin: 0;
}

.card-table .card-body { padding: .25rem .5rem .5rem; }

.card-chart canvas { max-height: 340px; }

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 2.25rem 0 1rem;
}

/* ---------- Stat cards (audit report style: accent bar, large figure) ---------- */

.stat-card {
    --stat-accent: var(--hub-primary);
    --stat-soft: var(--hub-primary-soft);
    position: relative;
    height: 100%;
    background: var(--hub-surface);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow);
    padding: 1.25rem 1.35rem 1.1rem;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.stat-card:hover {
    box-shadow: var(--hub-shadow-hover);
    transform: translateY(-1px);
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--stat-accent);
}

.stat-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--hub-muted);
    min-height: 2.25em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--stat-accent);
    margin-top: .35rem;
    white-space: nowrap;
}

.stat-unit {
    font-size: .95rem;
    font-weight: 600;
    margin-left: .2rem;
    opacity: .75;
}

.stat-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .7rem;
    font-size: .75rem;
    color: var(--hub-subtle);
}

.stat-primary { --stat-accent: var(--hub-primary); }
.stat-success { --stat-accent: var(--hub-success); }
.stat-teal { --stat-accent: var(--hub-teal); }
.stat-warning { --stat-accent: var(--hub-warning); }
.stat-danger { --stat-accent: var(--hub-danger); }
.stat-violet { --stat-accent: var(--hub-violet); }
.stat-ink { --stat-accent: var(--hub-ink); }

.delta {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-weight: 600;
    font-size: .6875rem;
    padding: .15rem .45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.delta-good { color: var(--hub-success); background: var(--hub-success-soft); }
.delta-bad { color: var(--hub-danger); background: var(--hub-danger-soft); }
.delta-neutral { color: var(--hub-ink-2); background: var(--hub-line); }

/* ---------- Tables ---------- */

.table-metrics {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--hub-surface-2);
    --bs-table-border-color: var(--hub-line);
    margin-bottom: 0;
    font-size: .8125rem;
}

.table-metrics > :not(caption) > * > * {
    padding: .7rem .75rem;
    border-bottom-style: dashed;
}

.table-metrics thead th {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hub-subtle);
    border-bottom: 1px solid var(--hub-line-strong) !important;
    white-space: nowrap;
    vertical-align: bottom;
}

.table-metrics tbody tr { transition: background-color .12s ease; }
.table-metrics tbody tr:hover > * { background: var(--hub-surface-2); }
.table-metrics tbody tr:last-child > * { border-bottom: 0; }

.table-metrics tfoot td {
    border-top: 1px solid var(--hub-line-strong);
    border-bottom: 0;
    font-weight: 700;
}

.table-metrics td.num,
.table-metrics th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table-metrics .cell-strong { font-weight: 600; color: var(--hub-ink); }
.table-metrics .cell-sub { display: block; font-size: .6875rem; color: var(--hub-subtle); }
.table-metrics .row-muted > * { color: var(--hub-muted); }

.table-responsive { scrollbar-width: thin; }

/* ---------- Soft badges ---------- */

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1;
    padding: .35rem .55rem;
    border-radius: 6px;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-soft-primary { color: var(--hub-primary); background: var(--hub-primary-soft); }
.badge-soft-success { color: var(--hub-success); background: var(--hub-success-soft); }
.badge-soft-warning { color: var(--hub-warning); background: var(--hub-warning-soft); }
.badge-soft-danger { color: var(--hub-danger); background: var(--hub-danger-soft); }
.badge-soft-teal { color: var(--hub-teal); background: var(--hub-teal-soft); }
.badge-soft-neutral { color: var(--hub-ink-2); background: var(--hub-line); }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .375rem;
    color: var(--hub-muted);
}
.btn-icon:hover, .btn-icon:focus-visible { color: var(--hub-primary); background: var(--hub-primary-soft); }

.status-ok { color: var(--hub-success); font-weight: 600; }
.status-warning { color: var(--hub-warning); font-weight: 600; }
.status-info { color: var(--hub-primary); font-weight: 600; }

/* ---------- Bar list (ranked horizontal bars, print-friendly) ---------- */

.bar-list {
    --bar-fill: var(--hub-primary);
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .8rem;
}

.bar-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value" "track track";
    column-gap: 1rem;
    row-gap: .35rem;
    align-items: baseline;
}

.bar-label {
    grid-area: label;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--hub-ink-2);
    font-size: .8125rem;
}

.bar-value {
    grid-area: value;
    font-weight: 650;
    font-size: .8125rem;
    white-space: nowrap;
}

.bar-value small {
    font-weight: 500;
    color: var(--hub-subtle);
    margin-left: .35rem;
}

.bar-track {
    grid-area: track;
    height: 8px;
    border-radius: 999px;
    background: var(--hub-line);
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bar-fill);
    min-width: 4px;
}

.bar-primary { --bar-fill: var(--hub-primary); }
.bar-teal { --bar-fill: var(--hub-teal); }
.bar-success { --bar-fill: var(--hub-success); }
.bar-warning { --bar-fill: var(--hub-warning); }
.bar-danger { --bar-fill: var(--hub-danger); }
.bar-violet { --bar-fill: var(--hub-violet); }

/* ---------- Key/value list and callouts ---------- */

.kv-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.kv-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--hub-line-strong);
}

.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { font-weight: 400; color: var(--hub-ink-2); }
.kv-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }

.callout {
    border-radius: var(--hub-radius-sm);
    padding: .9rem 1.1rem;
    font-size: .8125rem;
    border: 1px solid transparent;
}

.callout strong { color: var(--hub-ink); }
.callout-info { background: var(--hub-primary-soft); border-color: rgba(35, 102, 209, .15); color: var(--hub-ink-2); }
.callout-warning { background: var(--hub-warning-soft); border-color: rgba(201, 119, 15, .2); color: var(--hub-ink-2); }
.callout-neutral { background: var(--hub-surface-2); border-color: var(--hub-line); color: var(--hub-ink-2); }

.alert {
    --bs-alert-border-radius: var(--hub-radius-sm);
    font-size: .8125rem;
    box-shadow: var(--hub-shadow);
    border: 0;
}

.alert-warning { --bs-alert-bg: var(--hub-warning-soft); --bs-alert-color: #7a4a09; }
.alert-secondary { --bs-alert-bg: var(--hub-surface); --bs-alert-color: var(--hub-ink-2); }
.alert-danger { --bs-alert-bg: var(--hub-danger-soft); --bs-alert-color: #8a1f29; }

.text-note {
    font-size: .75rem;
    color: var(--hub-muted);
}

/* ---------- Login ---------- */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(900px 500px at 80% 0%, rgba(35, 102, 209, .5), transparent 70%),
        radial-gradient(700px 420px at 0% 100%, rgba(26, 156, 192, .25), transparent 70%),
        linear-gradient(180deg, var(--hub-navy-900), var(--hub-navy-950));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--hub-surface);
    border-radius: 18px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.login-brand img { width: 40px; height: 40px; }
.login-brand strong { display: block; font-size: 1.1rem; letter-spacing: .04em; font-weight: 800; }
.login-brand span { font-size: .75rem; color: var(--hub-muted); }

.login-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .6875rem;
    color: rgba(255, 255, 255, .45);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .hub-brand { margin-right: 0; }
    .hub-menu { padding: .75rem 0; }
    .hub-nav-meta { padding-bottom: .5rem; flex-wrap: wrap; }
    .period-bar { align-items: flex-start; }
    .period-bar form { justify-content: flex-start; }
    .hub-hero { padding-bottom: 4.75rem; }
}

/* ---------- Print ---------- */

@media print {
    .no-print, nav, .hub-nav, .period-bar form { display: none !important; }
    body { background: #fff; font-size: 10pt; }
    .hub-hero { background: none; color: var(--hub-ink); padding: 0 0 .5rem; }
    .hub-hero::before { display: none; }
    .hub-title, .hub-eyebrow, .hub-subtitle, .period-label, .period-label .text-compare { color: var(--hub-ink) !important; }
    .hub-toolbar { padding-top: 0; }
    .hub-main { margin-top: 0; }
    .card, .stat-card { box-shadow: none; border: 1px solid var(--hub-line-strong); }
    .report-section { break-inside: auto; }
    .report-section h2 { break-before: page; }
    .report-section:first-of-type h2 { break-before: avoid; }
    table { font-size: 9pt; }
}

/* ---------- Veeam backups ---------- */

.badge-soft-missing { color: var(--hub-danger); background: var(--hub-surface); box-shadow: inset 0 0 0 1px rgba(209, 63, 75, .45); }

/* One cell per local day: worst report of the day; empty = no report. */
.day-strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.day-strip span { width: 9px; height: 16px; border-radius: 2px; background: var(--hub-line); }
.day-strip .d-success { background: var(--hub-success); }
.day-strip .d-warning { background: #e9a23b; }
.day-strip .d-failed { background: var(--hub-danger); }
.day-strip-lg span { width: 12px; height: 22px; }

.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    padding: .7rem 1.25rem;
    border-top: 1px solid var(--hub-line);
}
.alert-list li:first-child { border-top: 0; }
.alert-list .alert-what { font-weight: 600; color: var(--hub-ink); }
.alert-list .alert-meta { color: var(--hub-muted); font-size: .8125rem; }
.alert-list .alert-actions { margin-left: auto; display: flex; gap: .4rem; }
.alert-list .is-acknowledged { opacity: .62; }

.card-danger { box-shadow: inset 0 0 0 1px rgba(209, 63, 75, .35), var(--hub-shadow); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
.filter-bar .form-control { width: 16rem; max-width: 100%; }
