/* ---------- Merktokens (gelijk aan de MudBlazor-thema's in BrandCatalog) ---------- */
/* --brand = vlak (inlogpaneel), --brand-accent = accent, --brand-bg = achtergrond, --brand-ink = donkere merkkleur voor koppen en lijnen */
body.brand-carl      { --brand: #5E8E9B; --brand-accent: #E30613; --brand-bg: #F6F4F0; --brand-ink: #2F5F6B; --brand-font: "Sora"; }
body.brand-neutral   { --brand: #4A545A; --brand-accent: #8A959B; --brand-bg: #F7F8F8; --brand-ink: #343C41; --brand-font: "Sora"; }
body.brand-cpark     { --brand: #006BA6; --brand-accent: #F39200; --brand-bg: #EEF2F7; --brand-ink: #00507E; --brand-font: "Montserrat"; }
body.brand-parkrable { --brand: #2D3030; --brand-accent: #D3D800; --brand-bg: #F4F2EC; --brand-ink: #2D3030; --brand-font: "Lexend Deca";
                       --brand-sand: #CFCABA; }

:root {
    --ink: #1B2428;
    --ink-soft: #56656B;
    --line: #D5DEE1;
    --danger: #C6283A;
}

html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--brand-font), system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ---------- App-shell ---------- */
.app-bar { border-bottom: 1px solid var(--mud-palette-lines-default); }
.app-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.wordmark {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: inherit;
    margin-left: .25rem;
}
.nav-section {
    display: block;
    padding: 1rem 1rem .25rem;
    color: var(--mud-palette-text-secondary);
    letter-spacing: .02em;
    text-transform: none;
    font-size: .75rem;
}
.stat .mud-typography-h3 { font-variant-numeric: tabular-nums; font-weight: 600; }
.logout-form { margin: 0; }
.logout-button {
    width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit;
    padding: 6px 16px; cursor: pointer;
}
.logout-button:hover { background: var(--mud-palette-action-default-hover); }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ---------- Inlogscherm ----------
   Eén merkvlak links met parkeervak-markering; rechts een rustig formulier. */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 100dvh;
    background: var(--brand-bg);
}
.auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--brand);
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
}
.bay-lines {
    position: absolute;
    inset: 0;
    /* Parkeervakken: witte lijnen onder een hoek, met één gele vaklijn als accent. */
    background:
        linear-gradient(90deg, transparent calc(62% - 3px), var(--brand-accent) calc(62% - 3px), var(--brand-accent) calc(62% + 3px), transparent calc(62% + 3px)),
        repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,.22) 118px 124px);
    transform: skewX(-18deg) scale(1.4);
    transform-origin: bottom left;
    mask-image: linear-gradient(to top, #000 10%, transparent 75%);
}
.auth-wordmark {
    position: relative;
    color: #fff;
    font-weight: 700;
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    letter-spacing: -0.035em;
    line-height: .95;
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.auth-wordmark-small { display: none; font-weight: 700; color: var(--brand); font-size: 1.25rem; margin-bottom: 2rem; }

.auth-form { display: grid; gap: 1.1rem; }
.auth-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 500; }
.auth-form input {
    font: inherit;
    font-size: 1rem;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.auth-form .validation-message { color: var(--danger); font-size: .85rem; font-weight: 400; }
.auth-submit {
    display: inline-flex; justify-content: center; align-items: center;
    font: inherit; font-weight: 600; font-size: 1rem;
    padding: .85rem 1rem; margin-top: .4rem;
    border: 0; border-radius: 10px;
    background: var(--brand); color: #fff; cursor: pointer;
    text-decoration: none;
}
.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.auth-link { display: inline-block; margin-top: 1.25rem; color: var(--brand); font-size: .9rem; }
.auth-hint { color: var(--ink-soft); font-size: .9rem; }
.form-error {
    background: color-mix(in srgb, var(--danger) 8%, #fff);
    border-left: 3px solid var(--danger);
    padding: .7rem .9rem; border-radius: 6px; margin: 0 0 1.25rem; font-size: .92rem;
}

@media (max-width: 800px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-wordmark-small { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- Blazor-foutmelding ---------- */
#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
    background: #FFF4D6; padding: .75rem 1.25rem; box-shadow: 0 -1px 0 var(--line);
}
#blazor-error-ui .reload { margin-left: .5rem; }

/* =====================================================================
   Beheerschermen
   ===================================================================== */
.page-head {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: flex-end; justify-content: space-between;
    margin: .5rem 0 1.5rem;
}
.page-head h1 { letter-spacing: -0.015em; font-weight: 600; }
.section-head {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.section-head > .mud-typography { max-width: 60ch; }
.back-link { display: inline-flex; align-items: center; gap: .25rem; margin-bottom: .25rem; }
.muted { color: var(--mud-palette-text-secondary); font-weight: 400; }
.muted-icon { color: var(--mud-palette-text-secondary); vertical-align: middle; }
.cell-strong { font-weight: 500; }
.text-right { text-align: right; }
.row-clickable tbody tr { cursor: pointer; }
.search-field { max-width: 320px; }
.filter-select { min-width: 200px; max-width: 260px; }
.toolbar-filters { width: 100%; align-items: center; }
.dialog-body { padding-top: .25rem; }

/* ---------- Formulier in secties: label links, velden rechts op brede schermen ---------- */
.form-sections { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Elke sectie is een eigen kaart met een gekleurde streep links; de kleuren wisselen per sectie. */
.form-section {
    --section-accent: var(--brand-ink);
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    gap: 1.25rem 2.5rem;
    padding: 1.4rem 1.6rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 5px solid var(--section-accent);
    border-radius: 14px;
}
.form-section:nth-of-type(6n+1) { --section-accent: var(--brand-ink); }
.form-section:nth-of-type(6n+2) { --section-accent: #1D5FA8; }
.form-section:nth-of-type(6n+3) { --section-accent: #B7791F; }
.form-section:nth-of-type(6n+4) { --section-accent: #6B46C1; }
.form-section:nth-of-type(6n+5) { --section-accent: #1E8E5A; }
.form-section:nth-of-type(6n+6) { --section-accent: #C62833; }
.form-section > header { display: grid; gap: .35rem; align-content: start; padding-right: .5rem; }
.form-section > header h2 {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.05rem; font-weight: 700; color: var(--section-accent);
}
.form-section > header h2::before {
    content: ""; width: .7rem; height: .7rem; border-radius: 3px; background: var(--section-accent); flex-shrink: 0;
}
/* Binnen een sectie: groepen velden met een dun lijntje ertussen */
.form-section .form-grid + .form-grid,
.form-section .switch-stack + .form-grid,
.form-section .form-grid + .switch-stack { border-top: 1px dashed var(--mud-palette-lines-default); padding-top: 1rem; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}
.form-grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.switch-stack { display: grid; gap: .25rem; grid-column: 1 / -1; }
.inline-status { display: grid; gap: .25rem; align-content: center; min-height: 56px; }
@media (max-width: 960px) {
    .form-section { grid-template-columns: 1fr; gap: 1rem; }
}

.device-group { margin-bottom: 1rem; }
.device-checks { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.share-list { display: grid; gap: .25rem; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.save-bar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 0;
    padding-bottom: max(.9rem, env(safe-area-inset-bottom));
    margin-top: 1rem;
    background: var(--mud-palette-background);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.key-box {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem .9rem; border-radius: 8px;
    background: var(--mud-palette-background-gray, rgba(0,0,0,.04));
    overflow-x: auto;
}
.key-box code { font-size: .95rem; word-break: break-all; }

/* ---------- Richting: dezelfde kleurcodering overal ---------- */
.dir-badge {
    display: inline-block; font-size: .7rem; font-weight: 600;
    padding: .05rem .4rem; border-radius: 4px; margin-left: .35rem; line-height: 1.4;
}
.dir-badge.dir-in  { background: #DDF3E7; color: #13613D; }
.dir-badge.dir-out { background: #FDE8D7; color: #8A3E05; }

/* ---------- Plattegrond ----------
   Het vlak is getekend als een parkeerterrein: asfaltgrijs met vakmarkering.
   Posities zijn percentages, dus het schaalt mee met elk scherm. */
.designer { display: grid; gap: 1rem; }
.designer-palette {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.palette-hint { margin-right: .5rem; }
.palette-item {
    display: inline-flex; align-items: center; gap: .4rem;
    font: inherit; font-size: .9rem; font-weight: 500;
    padding: .45rem .8rem; border-radius: 999px;
    border: 1px dashed var(--mud-palette-lines-default);
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    cursor: grab;
}
.palette-item:hover { border-color: var(--mud-palette-primary); }
.palette-item:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }

.designer-canvas {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #3A4145;
    background-image:
        repeating-linear-gradient(90deg, transparent 0 calc(8.33% - 2px), rgba(255,255,255,.14) calc(8.33% - 2px) 8.33%),
        linear-gradient(180deg, transparent 48%, rgba(255,255,255,.10) 48% 52%, transparent 52%);
    touch-action: none;
}
.designer-canvas.is-drop-target { outline: 3px dashed var(--mud-palette-secondary); outline-offset: -6px; }
.designer-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.designer-links .link { stroke-width: 2; stroke-dasharray: 6 5; }
.designer-links .link.dir-in  { stroke: #7FD6A7; }
.designer-links .link.dir-out { stroke: #F6B07A; }
.designer-empty {
    position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem;
    color: rgba(255,255,255,.8); text-align: center; font-size: .95rem;
}

.node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .65rem;
    border-radius: 8px;
    background: #fff; color: #1B2428;
    font-size: .85rem; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    cursor: pointer; user-select: none;
    touch-action: none;
}
.is-editable .node { cursor: grab; }
.node:focus-visible { outline: 3px solid var(--mud-palette-secondary); outline-offset: 2px; }
.node.is-dragging { cursor: grabbing; box-shadow: 0 6px 18px rgba(0,0,0,.35); z-index: 10; }
.node.is-inactive { opacity: .55; }
.node-gate {
    background: var(--mud-palette-secondary); color: #1B2428;
    font-weight: 600; padding: .5rem .8rem;
}
.node-gate .node-meta { font-weight: 400; opacity: .75; font-size: .75rem; }
.node-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }

.designer-list {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.gate-group { display: grid; gap: .25rem; align-content: start; }
.device-line {
    display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
    font: inherit; font-size: .9rem; text-align: left;
    padding: .35rem .5rem; margin: 0 -.5rem;
    border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer;
}
.device-line:hover { background: var(--mud-palette-action-default-hover); }
.device-line .device-name { font-weight: 500; }

@media (max-width: 600px) {
    .designer-canvas { aspect-ratio: 4 / 5; }
    .node-name { max-width: 9ch; }
}

/* =====================================================================
   Gebruikers, kentekens en tijdschema's
   ===================================================================== */

/* ---------- Kentekenplaat: geel met blauwe EU-strook ---------- */
.plate {
    display: inline-flex; align-items: center;
    font-family: "Kenteken", "DIN Alternate", "Arial Narrow", var(--brand-font), sans-serif;
    font-weight: 700; font-size: .95rem; letter-spacing: .06em;
    color: #111; background: #F5C400;
    border: 1.5px solid #111; border-radius: 4px;
    padding: .1rem .5rem .1rem .95rem;
    position: relative; white-space: nowrap; line-height: 1.4;
}
.plate::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .55rem;
    background: #1B3FA0; border-radius: 2px 0 0 2px;
}
.plate-sm { font-size: .78rem; padding: 0 .4rem 0 .8rem; }
.plate-sm::before { width: .45rem; }
.plate.is-inactive, .code-chip.is-inactive { opacity: .45; }

.code-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 500; font-size: .9rem;
    padding: .15rem .55rem; border-radius: 6px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
}
.plate-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* Kentekeninvoer: als een plaat, en direct in hoofdletters */
.plate-input input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.tenant-picker { min-width: 240px; }

/* ---------- Lijst van kentekens/codes bij een gebruiker ---------- */
.credential-list { display: grid; gap: .25rem; }
.credential-row {
    display: grid; grid-template-columns: minmax(8rem, auto) 1fr auto; align-items: center; gap: 1rem;
    font: inherit; text-align: left; color: inherit;
    padding: .6rem .75rem; border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface);
    cursor: pointer;
}
.credential-row:hover { border-color: var(--mud-palette-primary); }
.credential-row:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.cred-meta { display: grid; gap: .1rem; font-size: .9rem; }
.cred-status { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
    .credential-row { grid-template-columns: 1fr; gap: .4rem; }
    .cred-status { justify-content: flex-start; }
}

/* ---------- Mijn kentekens ---------- */
.my-plates { display: grid; gap: .75rem; max-width: 36rem; }
.my-plate {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    padding: .75rem 1rem; border-radius: 10px;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
}
.my-plate .plate { font-size: 1.15rem; }
.my-plate-add { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: start; margin-top: .5rem; }
.my-plate-add .mud-button-root { margin-top: 6px; height: 48px; }
@media (max-width: 480px) { .my-plate-add { grid-template-columns: 1fr; } }

/* ---------- Weekoverzicht van een tijdschema ---------- */
.week-preview { display: grid; gap: 3px; font-size: .75rem; }
.wp-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.wp-day { color: var(--mud-palette-text-secondary); font-weight: 500; }
.wp-track {
    position: relative; height: 14px; border-radius: 3px;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--mud-palette-lines-default) calc(25% - 1px) 25%),
        var(--mud-palette-background);
}
.wp-seg { position: absolute; top: 0; bottom: 0; background: var(--mud-palette-primary); border-radius: 3px; }
.wp-axis .wp-track { height: 1rem; background: none; }
.wp-tick {
    position: absolute; transform: translateX(-50%);
    color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums;
}
.wp-tick:first-child { transform: none; }
.wp-tick:last-child { transform: translateX(-100%); }
.week-preview.is-compact .wp-track { height: 8px; }

.schedule-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.schedule-card {
    display: grid; gap: 1rem; align-content: start;
    padding: 1.25rem; border-radius: 12px;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
}
.schedule-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.schedule-name { font-weight: 600; }
.slot-summary { margin: 0; padding-left: 1.1rem; color: var(--mud-palette-text-secondary); font-size: .9rem; }

/* ---------- Schema-editor ---------- */
.schedule-editor { display: grid; gap: 1.25rem; }
.slot-row {
    display: grid; gap: .75rem;
    padding: 1rem; border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
}
.day-toggles { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.day-toggle {
    font: inherit; font-size: .85rem; font-weight: 600;
    width: 2.6rem; height: 2.3rem; border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface); color: var(--mud-palette-text-secondary);
    cursor: pointer;
}
.day-toggle.is-on { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: #fff; }
.day-toggle:focus-visible { outline: 2px solid var(--mud-palette-secondary); outline-offset: 2px; }
.slot-times { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: center; }
.slot-note { margin-top: -.25rem; }
.align-self-start { justify-self: start; }

/* ---------- Schemakeuze bij een kenteken of code ---------- */
.schedule-select { display: grid; gap: .5rem; }
.schedule-choices { display: grid; gap: .4rem; }
.schedule-choice {
    display: grid; grid-template-columns: auto minmax(7rem, 12rem) 1fr; align-items: center; gap: .5rem;
    padding: .35rem .75rem .35rem .25rem; border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default); cursor: pointer;
}
.schedule-choice.is-on { border-color: var(--mud-palette-primary); }
.schedule-choice-name { font-weight: 500; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .schedule-choice { grid-template-columns: auto 1fr; }
    .schedule-choice .week-preview { grid-column: 1 / -1; }
}

/* =====================================================================
   Gebeurtenissenlog
   ===================================================================== */
.live-state { display: inline-flex; align-items: center; gap: .45rem; }
.live-dot {
    width: .6rem; height: .6rem; border-radius: 50%;
    background: #1E8E5A; box-shadow: 0 0 0 0 rgba(30,142,90,.5);
    animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(30,142,90,.5); }
    70% { box-shadow: 0 0 0 .5rem rgba(30,142,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,142,90,0); }
}

.filter-bar {
    display: grid; gap: .75rem 1rem; padding: .9rem 1rem; margin-bottom: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    align-items: start;
}

.event-table .cell-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-table .cell-sub { font-size: .8rem; }
.event-table tr.row-denied td:first-child { box-shadow: inset 3px 0 0 var(--mud-palette-error); }
.event-table tr.row-new td { animation: row-flash 2.4s ease-out; }
@keyframes row-flash {
    0% { background: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent); }
    100% { background: transparent; }
}

.result { display: inline-flex; align-items: center; gap: .3rem; font-weight: 500; font-size: .88rem; }
.result.is-granted { color: #1E8E5A; }
.result.is-denied { color: var(--mud-palette-error); }

.load-more { display: flex; justify-content: center; padding: 1rem 0; }

.snapshot-frame {
    position: relative; min-height: 16rem; border-radius: 8px; overflow: hidden;
    background: #1B2226; display: grid; place-items: center;
}
.snapshot-frame img { display: block; width: 100%; height: auto; }
.snapshot-frame img.is-hidden { display: none; }
.snapshot-status {
    display: grid; justify-items: center; gap: .75rem; padding: 2rem; text-align: center;
    color: rgba(255,255,255,.85); max-width: 28rem;
}
.snapshot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }

@media (prefers-reduced-motion: reduce) {
    .live-dot, .event-table tr.row-new td { animation: none; }
}

/* ---------- Import ---------- */
.import-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-bottom: 1.5rem; }
.import-step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 1.25rem; align-items: start; }
.step-no {
    display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--mud-palette-primary); color: #fff; font-weight: 700;
}
.import-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0 .5rem; }
.import-errors { margin: 0; padding-left: 1.1rem; color: var(--mud-palette-error); font-size: .88rem; }
.import-done { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }

/* ---------- Datum + tijd: naast elkaar, met genoeg ruimte voor 31-12-2075 en 23:59:59 ---------- */
.datetime-field {
    display: grid; gap: .75rem; align-items: start;
    grid-template-columns: minmax(11rem, 1fr) minmax(9.5rem, 11rem);
    max-width: 30rem;
}
.form-grid > .datetime-field, .form-grid > .subscription-fields { grid-column: 1 / -1; }
.subscription-fields { display: grid; gap: .75rem; max-width: 30rem; }
@media (max-width: 480px) { .datetime-field { grid-template-columns: 1fr; } }

/* ---------- Taalkeuze ---------- */
.lang-code { font-weight: 600; font-size: .85rem; }
.auth-langs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 2rem; font-size: .85rem; }
.auth-langs a { color: var(--ink-soft); text-decoration: none; }
.auth-langs a:hover { color: var(--brand); text-decoration: underline; }
.auth-langs a.is-current { color: var(--ink); font-weight: 600; }
.new-password { display: grid; gap: .25rem; }
.new-password-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: -.25rem; }

/* ---------- Apparaatkeuze per code ---------- */
.device-select { display: grid; gap: .35rem; }
.device-select .device-group { margin: 0 0 .25rem .25rem; }
.device-group-name { color: var(--mud-palette-text-secondary); font-weight: 600; }

/* Eigen id van gate/camera/reader op de plattegrond */
.node-id {
    display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem;
    border-radius: 999px; font-size: .72rem; font-weight: 700;
    background: rgba(0,0,0,.12);
}

/* Tijdkiezer met seconden */
.time-pick { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .35rem; margin-top: .5rem; }
.time-pick-sep { font-weight: 700; font-size: 1.2rem; }
.time-pick-quick { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .75rem; }
.slot-times { grid-template-columns: minmax(9.5rem, 1fr) minmax(9.5rem, 1fr) auto; }

/* ---------- Instellingenvensters in secties ---------- */
.dlg-sections { display: grid; gap: 1rem; }
.dlg-section { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; }
.dlg-section > h3 {
    display: flex; align-items: center; gap: .45rem; margin: 0 0 .9rem;
    font-size: .95rem; font-weight: 600; color: var(--mud-palette-text-primary);
}
.dlg-section > h3 .mud-icon-root { color: var(--mud-palette-primary); }
.dlg-hint { margin: -.5rem 0 .75rem; font-size: .82rem; color: var(--mud-palette-text-secondary); }
.dlg-grid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.dlg-grid > .span-all { grid-column: 1 / -1; }

/* =====================================================================
   Locatie-dashboard
   ===================================================================== */
.dash-top { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.dash-card { padding: 1.1rem 1.25rem; border-radius: 14px; }
.dash-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.dash-label {
    margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.occ-numbers { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.occ-number { display: flex; align-items: center; gap: .6rem; }
.occ-number .mud-icon-root {
    width: 2.4rem; height: 2.4rem; padding: .45rem; border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); color: var(--mud-palette-primary);
}
.occ-number.is-free .mud-icon-root { background: #DDF3E7; color: #13613D; }
.occ-number strong { display: block; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.occ-number span { font-size: .8rem; color: var(--mud-palette-text-secondary); }
.occ-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.occ-set { display: flex; gap: .6rem; align-items: center; margin-top: .9rem; max-width: 18rem; }

.tenant-occ {
    display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; align-items: center;
    padding: .45rem 0; color: inherit; text-decoration: none; border-radius: 6px;
}
.tenant-occ:hover .tenant-occ-name { color: var(--mud-palette-primary); }
.tenant-occ-name { font-weight: 500; font-size: .92rem; }
.tenant-occ-count { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.tenant-occ-bar { grid-column: 1 / -1; }

.gate-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.gate-card { display: grid; gap: .8rem; align-content: start; border-left: 4px solid var(--mud-palette-primary); }
.gate-card.mode-locked { border-left-color: var(--mud-palette-error); }
.gate-card.mode-holdopen { border-left-color: var(--mud-palette-warning); }
.gate-head { display: flex; align-items: center; gap: .75rem; }
.gate-badge {
    display: grid; place-items: center; min-width: 3rem; height: 3rem; padding: 0 .4rem; border-radius: 10px;
    background: var(--mud-palette-primary); color: #fff; line-height: 1;
}
.gate-badge span { font-size: .6rem; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.gate-badge strong { font-size: 1.35rem; }
.gate-title { display: grid; gap: .1rem; }
.gate-title .muted { font-size: .82rem; }
.gate-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
    display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 500;
    background: var(--mud-palette-background); border: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary);
}
.tag.tag-ok { background: #DDF3E7; border-color: #BFE6D0; color: #13613D; }
.gate-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: 0; font-size: .85rem; }
.kv dt { color: var(--mud-palette-text-secondary); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.link-button {
    font: inherit; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--mud-palette-primary); text-decoration: underline; text-underline-offset: 2px;
}

.device-cards { display: grid; gap: .6rem; padding-left: .9rem; border-left: 2px solid var(--mud-palette-lines-default); }
.device-card {
    display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .75rem .9rem; border-radius: 10px;
    background: color-mix(in srgb, #1E8E5A 7%, var(--mud-palette-surface)); border: 1px solid color-mix(in srgb, #1E8E5A 22%, transparent);
}
.device-card.is-inactive { background: var(--mud-palette-background); border-color: var(--mud-palette-lines-default); opacity: .75; }
.device-card-icon .mud-icon-root { width: 2rem; height: 2rem; padding: .35rem; border-radius: 8px; background: var(--mud-palette-surface); color: #1E8E5A; }
.device-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.device-card-desc { font-size: .82rem; margin-bottom: .35rem; }

.occ-cell { display: grid; gap: .25rem; min-width: 6rem; font-variant-numeric: tabular-nums; }

/* ---------- Snapshots live in het gebeurtenissenlog ---------- */
.live-preview {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); gap: 1.25rem;
    padding: 1rem; margin-bottom: 1rem; border-radius: 14px;
}
.live-preview-image {
    display: grid; place-items: center; min-height: 12rem; max-height: 22rem; overflow: hidden;
    padding: 0; border: 0; border-radius: 10px; background: #1B2226; cursor: zoom-in;
}
.live-preview-image img { width: 100%; height: 100%; max-height: 22rem; object-fit: contain; display: block; }
.live-preview-missing { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.8); padding: 2rem; }
.live-preview-info { display: grid; gap: .6rem; align-content: start; }
.cell-thumb { width: 5.5rem; }
.thumb {
    display: block; width: 5rem; height: 3rem; object-fit: cover; border-radius: 6px; cursor: zoom-in;
    background: var(--mud-palette-background);
}
@media (max-width: 700px) { .live-preview { grid-template-columns: 1fr; } }

/* ---------- Zoekpaneel gebeurtenissen ---------- */
.filter-panel { padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 14px; display: grid; gap: .85rem; }
.filter-panel .filter-bar { padding: 0; margin: 0; border: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.filter-panel .filter-bar > .datetime-field { grid-column: span 2; max-width: none; }
@media (max-width: 700px) { .filter-panel .filter-bar > .datetime-field { grid-column: 1 / -1; } }
.filter-quick, .filter-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.filter-note { margin-left: auto; font-size: .82rem; }

/* Kentekenplaat en code-chip nooit uitrekken in een grid of flex-kolom */
.plate, .code-chip { width: fit-content; max-width: 100%; justify-self: start; align-self: start; }

/* ---------- Startpagina ---------- */
.home-locations { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin-bottom: 2rem; }
.home-location {
    display: grid; gap: .75rem; padding: 1.1rem 1.25rem; border-radius: 14px; color: inherit; text-decoration: none;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
    transition: border-color .15s, box-shadow .15s;
}
a.home-location:hover { border-color: var(--mud-palette-primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.home-location-head { display: flex; align-items: center; gap: .5rem; }
.home-location-head strong { font-size: 1.05rem; }
.home-client { margin-left: auto; width: .65rem; height: .65rem; border-radius: 50%; background: var(--mud-palette-lines-default); }
.home-client.is-online { background: #1E8E5A; box-shadow: 0 0 0 3px #DDF3E7; }
/* Meer client-apps, niet allemaal verbonden */
.home-client.is-partial { background: #D98A12; box-shadow: 0 0 0 3px #FBE9CC; }
.home-events-head { display: flex; justify-content: space-between; align-items: baseline; }
.home-events { border-radius: 14px; overflow: hidden; }
.home-event {
    display: grid; grid-template-columns: 5.5rem auto minmax(8rem, 1fr) minmax(6rem, 1fr) auto; gap: 1rem; align-items: center;
    padding: .6rem 1rem; border-top: 1px solid var(--mud-palette-lines-default);
}
.home-event:first-child { border-top: 0; }
.home-event.row-new { animation: row-flash 2.4s ease-out; }
@media (max-width: 700px) {
    .home-event { grid-template-columns: auto 1fr; gap: .35rem .75rem; }
    .home-event-where, .home-event-who { grid-column: 1 / -1; }
}

/* ---------- Aanwezigheid ---------- */
.presence-summary { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; border-radius: 14px; }
.presence-summary > strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* ---------- Dagschema ---------- */
.day-schedule { display: grid; gap: .5rem; }
.day-row {
    display: grid; grid-template-columns: auto 2.5rem minmax(8.5rem, 1fr) minmax(8.5rem, 1fr); gap: .75rem; align-items: center;
    padding: .4rem .6rem; border-radius: 10px; background: var(--mud-palette-background); opacity: .7;
}
.day-row.is-on { opacity: 1; background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface)); }
.day-name { font-weight: 600; }
.day-schedule-quick { display: flex; flex-wrap: wrap; gap: .25rem; }
@media (max-width: 560px) { .day-row { grid-template-columns: auto 1fr; } .day-row .mud-input-control { grid-column: 1 / -1; } }

/* ---------- Passant: camerategels ---------- */
.camera-tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.camera-tile {
    display: grid; justify-items: center; gap: .25rem; padding: .9rem .6rem; border-radius: 12px; cursor: pointer; font: inherit;
    border: 1.5px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); color: var(--mud-palette-text-secondary);
}
.camera-tile.is-on { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)); }
.camera-tile .muted { font-size: .75rem; text-align: center; }

.gate-state { display: flex; gap: .3rem; }
.gate-mode-group .mud-button-root { text-transform: none; }
.schedule-card.is-inactive { opacity: .65; }

.relay-status { display: flex; align-items: center; gap: .35rem; font-size: .8rem; }
.relay-status.is-ok { color: #1E8E5A; }
.relay-status.is-error { color: var(--mud-palette-error); }

/* ---------- Relais kiezen: bord + relais ---------- */
.relay-list { display: grid; gap: .5rem; }
.relay-picker { display: grid; grid-template-columns: minmax(9rem, 1.2fr) minmax(6.5rem, 1fr) minmax(7.5rem, 1fr); gap: .6rem; align-items: center; }
.relay-picker-label { font-size: .9rem; }
.dlg-sub { margin: 1rem 0 .4rem; font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) { .relay-picker { grid-template-columns: 1fr 1fr; } .relay-picker-label { grid-column: 1 / -1; } }

/* ---------- Gatekaart: alles binnen de kaart ---------- */
.gate-card { min-width: 0; overflow: hidden; }
.gate-card > * { min-width: 0; }
.gate-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr)); gap: .4rem; }
.gate-modes .mud-button-root { text-transform: none; white-space: normal; line-height: 1.2; min-height: 2.1rem; }
.gate-actions .mud-switch { margin-left: -.5rem; }
.relay-status { overflow-wrap: anywhere; }
.device-cards { padding-left: .6rem; }
.device-card { min-width: 0; }
.device-card-body { min-width: 0; }
.kv dd { overflow-wrap: anywhere; }


.gate-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .gate-modes { grid-template-columns: 1fr; } }

/* ---------- Waarschuwing bij open/dicht vergrendelen en AutoGate ---------- */
.gate-warning-dialog .mud-dialog-title { padding: 0; }
.gw-head {
    display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.4rem; color: #fff;
    background: linear-gradient(135deg, #B42318, #D92D20);
}
.gw-head.gw-autogate { background: linear-gradient(135deg, #0B6E99, #1591C7); }
.gw-head.gw-holdopen { background: linear-gradient(135deg, #B54708, #DC6803); }
.gw-icon {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px;
    background: rgba(255,255,255,.18); flex-shrink: 0;
}
.gw-title { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.gw-sub { font-size: .85rem; opacity: .9; }
.gw-body { display: grid; gap: .6rem; padding-top: .5rem; }
.gw-body p { margin: 0; }
.gw-lead {
    display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 10px; font-weight: 500;
    background: #FEF3F2; color: #912018; border: 1px solid #FECDCA;
}
.gw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.gw-list li {
    display: flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border-radius: 8px;
    background: var(--mud-palette-background); font-weight: 500;
}
.gw-note { font-size: .85rem; color: var(--mud-palette-text-secondary); }
.gate-active-row { display: grid; gap: .1rem; }
.gate-active-row .muted { font-size: .82rem; margin-left: .25rem; }

a.link-button { display: inline-flex; align-items: center; gap: .2rem; }
.link-icon { font-size: .95rem !important; opacity: .7; }

/* =====================================================================
   Reserveren
   ===================================================================== */
.res-availability { padding: 1rem 1.1rem; border-radius: 14px; margin-bottom: 1.25rem; display: grid; gap: .6rem; }
.res-day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.res-day-nav .muted { font-size: .82rem; }
.res-day-picker { max-width: 11rem; }
.res-slots { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; height: 3.2rem; align-items: end; }
.res-slot { position: relative; height: 100%; border-radius: 3px; background: var(--mud-palette-background); overflow: hidden; }
.res-slot > span { position: absolute; left: 0; right: 0; bottom: 0; }
.res-some > span { background: #7FB3D5; }
.res-busy > span { background: #F0A43C; }
.res-full > span { background: #D92D20; }
.res-hours { display: flex; justify-content: space-between; font-size: .72rem; color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums; }
.res-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.res-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.res-legend .res-free { background: var(--mud-palette-background); border: 1px solid var(--mud-palette-lines-default); }
.res-legend .res-some { background: #7FB3D5; } .res-legend .res-busy { background: #F0A43C; } .res-legend .res-full { background: #D92D20; }
.res-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.res-list-head h2 { margin-right: auto; }
.res-days { max-width: 9rem; }
.res-search { max-width: 16rem; margin-top: 0; }
.res-quick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .75rem; }

/* =====================================================================
   Bezetting
   ===================================================================== */
.occ-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1rem; }
.occ-card { padding: 1rem 1.1rem; border-radius: 14px; display: grid; gap: .15rem; }
.occ-card strong { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.occ-chart-card { padding: 1rem 1.1rem; border-radius: 14px; }
.occ-chart { width: 100%; height: auto; display: block; }
.occ-grid { stroke: var(--mud-palette-lines-default); stroke-width: 1; }
.occ-day { stroke: var(--mud-palette-lines-default); stroke-dasharray: 2 4; }
.occ-axis { font-size: 11px; fill: var(--mud-palette-text-secondary); font-family: inherit; }
.occ-area { fill: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent); }
.occ-line { fill: none; stroke: var(--mud-palette-primary); stroke-width: 1.6; stroke-linejoin: round; }
.occ-capacity { fill: none; stroke: #D92D20; stroke-width: 1.2; stroke-dasharray: 6 4; }
.occ-hover { fill: transparent; }
.occ-hover:hover { fill: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent); }
.occ-chart-empty { padding: 2rem; text-align: center; color: var(--mud-palette-text-secondary); }
.occ-chart-legend { display: flex; gap: 1.25rem; font-size: .8rem; color: var(--mud-palette-text-secondary); margin-top: .4rem; }
.occ-chart-legend i { display: inline-block; width: 1.2rem; height: 0; margin-right: .35rem; vertical-align: middle; }
.occ-chart-legend .lg-line { border-top: 2px solid var(--mud-palette-primary); }
.occ-chart-legend .lg-cap { border-top: 2px dashed #D92D20; }

/* ---------- Modules per tenant ---------- */
.module-table { display: grid; gap: .25rem; overflow-x: auto; }
.module-row { display: grid; grid-template-columns: minmax(10rem, 1.3fr) repeat(5, minmax(9.5rem, 1fr)); gap: .5rem; align-items: center;
    padding: .35rem .25rem; border-bottom: 1px solid var(--mud-palette-lines-default); min-width: 60rem; }
.module-head { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-palette-text-secondary); }
.module-cell { display: flex; align-items: center; gap: .25rem; border-radius: 8px; padding: .1rem .3rem; }
.module-cell.is-on { background: #DDF3E7; }
.module-date { max-width: 8.5rem; margin: 0; }

.altplate-note { display: inline-flex; align-items: center; gap: .2rem; margin-top: .15rem; font-size: .75rem; color: #B54708; }
/* Tenantlogo op het overzicht: kaart in de stijl van de bezettingskaart, logo hooguit 5,5rem hoog en gecentreerd. */
.tenant-logo-card { display: grid; place-items: center; height: 7.5rem; margin-bottom: 1rem; padding: 1rem 1.25rem;
    border-radius: 14px; border: 1px solid var(--mud-palette-lines-default); background: #fff; }
.tenant-logo-card img { max-height: 5.5rem; max-width: min(100%, 22rem); object-fit: contain; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.logo-preview { width: 11rem; height: 4.5rem; display: grid; place-items: center; border-radius: 10px;
    border: 1px dashed var(--mud-palette-lines-default); background: var(--mud-palette-background); overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.narrow-field { max-width: 22rem; }

/* ---------- Toegang tot locaties en tenants ---------- */
.grant-list { display: grid; gap: .35rem; max-height: 55vh; overflow-y: auto; padding-right: .25rem; }
.grant-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default); }
.grant-row.is-on { background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface)); }
.grant-name { display: grid; flex: 1; min-width: 12rem; }
.grant-name .muted { font-size: .8rem; }

/* ---------- Instellingen per camera/reader bij de tenant ---------- */
.device-setting-row { display: grid; gap: .25rem; padding: .25rem .4rem; border-radius: 8px; }
.device-setting-row.is-on { background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent); }
.device-flags { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: 2.2rem; }
.device-flags .mud-chip { margin: 0; }
/* ---------- API-sleutel ---------- */
.api-key-panel code { font-size: .85rem; }
.api-key-new { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; word-break: break-all; }

/* ---------- Sessie ---------- */
.session-timer { font-variant-numeric: tabular-nums; }
.session-warning { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; }
.session-warning-card { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: 14px; max-width: 34rem; }
.session-warning-text { display: grid; }
.session-warning-text span { font-size: .9rem; color: var(--mud-palette-text-secondary); }
.form-info { padding: .6rem .8rem; border-radius: 8px; background: #FEF3E2; color: #7A3E00; }

.exitpass-link code { display: inline-block; margin-top: .35rem; padding: .35rem .6rem; border-radius: 8px; background: var(--mud-palette-background); word-break: break-all; }

/* =====================================================================
   Snelle uitrijpagina (tablet/telefoon, groot en duidelijk)
   ===================================================================== */
.kiosk-shell { min-height: 100vh; background: #EEF3F4; display: grid; place-items: center; padding: 1.5rem; box-sizing: border-box; }
.exitpass { width: 100%; max-width: 26rem; }
.exitpass-card { background: #FFFFFF; border-radius: 22px; padding: 2rem 1.75rem; box-shadow: 0 8px 30px rgba(20,37,43,.12); display: grid; gap: 1rem; }
.exitpass-title { margin: 0; font-size: 1.6rem; font-weight: 800; text-align: center; color: var(--ink); }
.exitpass-sub { margin: -.5rem 0 0; text-align: center; color: #4A5E65; }
.exitpass-tenant { text-align: center; font-weight: 600; color: var(--brand-ink); }
.pin-dots { display: flex; justify-content: center; gap: .6rem; min-height: 1rem; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand-ink); }
.pin-dot.is-filled { background: var(--brand-ink); }
.pin-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.pin-key { height: 4.2rem; border-radius: 16px; border: 1px solid #D5E0E3; background: #F7FAFB; font: inherit; font-size: 1.6rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.pin-key:active { background: #E3EEF1; }
.pin-key-muted { font-size: 1rem; color: #4A5E65; }
.pin-key-ok { background: var(--brand-ink); color: #FFFFFF; border-color: var(--brand-ink); font-size: 1.2rem; }
.pin-key-ok:disabled { opacity: .45; cursor: default; }
.exitpass-label { font-weight: 600; color: var(--ink); }
.exitpass-plate { height: 4.2rem; border-radius: 12px; border: 3px solid var(--ink); background: #F5CE0A; text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 2rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.exitpass-go { height: 3.6rem; border-radius: 14px; border: 0; background: #C62833; color: #FFFFFF; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.exitpass-go:disabled { opacity: .45; cursor: default; }
.exitpass-result { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 12px; text-align: center; }
.exitpass-result strong { font-size: 1.3rem; letter-spacing: .06em; }
.exitpass-result.is-ok { background: #DDF3E7; color: #13613D; }
.exitpass-result.is-warn { background: #FEF3E2; color: #7A3E00; }
.exitpass-error { margin: 0; text-align: center; color: #B42318; font-weight: 600; }
.exitpass-logout { justify-self: center; background: none; border: 0; color: var(--brand-ink); font: inherit; text-decoration: underline; cursor: pointer; padding: .5rem; }

.exitpass-form { display: grid; gap: .75rem; }
.exitpass-pin { height: 4.2rem; border-radius: 12px; border: 2px solid var(--brand-ink); text-align: center; font-size: 2rem; letter-spacing: .4em; font-weight: 700; }

/* ---------- Status: tellers boven lijsten en labels in de lijst ---------- */
.status-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 .9rem; }
.status-summary-title { font-size: 1.15rem; font-weight: 700; }
.status-summary-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.status-count, .status-chip {
    display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; font: inherit; line-height: 1;
    border: 1px solid transparent;
}
.status-count { padding: .45rem .8rem; font-size: .9rem; cursor: pointer; }
.status-count.is-selected { outline: 2px solid currentColor; outline-offset: 1px; }
.status-chip { padding: .3rem .6rem; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.status-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-active { background: #DDF6E8; border-color: #B7E8CC; color: #13613D; }
.status-inactive { background: #EEF1F4; border-color: #D5DCE2; color: #4A5A66; }
.status-soon { background: #FEF3C7; border-color: #F8DE8A; color: #8A5300; }
.status-expired { background: #FEE4E2; border-color: #FBC6C1; color: #A0271C; }
.status-clear { background: none; border: 0; color: var(--mud-palette-primary); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.quick-search { padding: .9rem 1rem; border-radius: 14px; margin-bottom: 1.5rem; }
.search-hits { display: grid; gap: .35rem; margin-top: .6rem; max-height: 22rem; overflow-y: auto; }
.search-hit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; text-align: left;
    padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface);
    font: inherit; color: inherit; cursor: pointer; }
.search-hit:hover { border-color: var(--mud-palette-primary); }
.search-hit-main, .search-hit-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.search-hit-meta { font-size: .85rem; }

.relay-warning { display: inline-flex; align-items: center; gap: .2rem; margin-top: .15rem; font-size: .75rem; color: #B42318; font-weight: 600; }

/* Vensters en beheerkaarten: dezelfde gekleurde streep */
.dlg-section { border-left: 4px solid var(--section-accent, var(--brand-ink)); }
.dlg-sections > .dlg-section:nth-of-type(5n+2) { --section-accent: #1D5FA8; }
.dlg-sections > .dlg-section:nth-of-type(5n+3) { --section-accent: #B7791F; }
.dlg-sections > .dlg-section:nth-of-type(5n+4) { --section-accent: #6B46C1; }
.dlg-sections > .dlg-section:nth-of-type(5n+5) { --section-accent: #1E8E5A; }
.dlg-section > h3 .mud-icon-root { color: var(--section-accent, var(--mud-palette-primary)); }
.dash-card > .dash-label:first-child { color: var(--brand-ink); }
.settings-card { border-left: 5px solid var(--section-accent, var(--brand-ink)); }
.settings-card > .dash-label:first-child { color: var(--section-accent, var(--brand-ink)); }
.accent-violet { --section-accent: #6B46C1; }

/* ---------- Kopbalk: rol en klok ---------- */
.role-badge { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; border: 1.5px solid currentColor;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: transparent; }
.role-serveradmin { color: #B42318; }
.role-superadmin { color: #6B46C1; }
.role-admin { color: #1D5FA8; }
.role-tenant { color: #1E6E7E; }
.role-user { color: #1E8E5A; }
.app-clock { display: inline-flex; align-items: baseline; gap: .4rem; font-variant-numeric: tabular-nums; margin: 0 .5rem; }
.app-clock strong { font-size: 1rem; }
.app-clock span { font-size: .8rem; opacity: .85; }
@media (max-width: 700px) { .app-clock span, .role-badge .role-name { display: none; } }

/* ---------- Subkoppen binnen een instellingensectie en de tarieftester ---------- */
.subsection-title { margin: 1.1rem 0 .5rem; padding-top: .9rem; border-top: 1px dashed var(--mud-palette-lines-default);
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--section-accent, var(--brand-ink)); }
.rate-tester { margin-top: .9rem; padding: .9rem 1rem; border-radius: 12px; background: var(--mud-palette-background); }
.rate-tester-title { font-weight: 700; margin-bottom: .5rem; }
.rate-tester-result { display: flex; align-items: baseline; gap: .6rem; margin-top: .4rem; }
.rate-tester-result strong { font-size: 1.4rem; }

/* Uitrijpagina: velden en knoppen altijd binnen de kaart */
.exitpass-form input, .exitpass-form button, .exitpass-card input, .exitpass-card button { box-sizing: border-box; width: 100%; max-width: 100%; }
.exitpass-logout { width: auto !important; }
.exitpass-card { box-sizing: border-box; }

/* Alle inhoud van een instellingensectie in de rechterkolom */
.section-body { display: grid; gap: .9rem; min-width: 0; align-content: start; }
.section-body > .form-grid, .section-body > .switch-stack { min-width: 0; }
.rate-tester .form-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
@media (max-width: 900px) { .form-section { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gates op het overzicht ---------- */
.quick-gates { padding: 1rem 1.1rem; border-radius: 14px; margin-bottom: 1.5rem; }
.quick-gates-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .6rem; }
.quick-gates-location { margin: .8rem 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.quick-gate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .5rem .2rem; border-top: 1px solid var(--mud-palette-lines-default); }
.quick-gate.is-inactive { opacity: .55; }
.quick-gate-name { display: grid; flex: 1; min-width: 10rem; }
.quick-gate-name .muted { font-size: .82rem; }
.quick-gate-actions { display: inline-flex; align-items: center; gap: .25rem; }
.gate-mode { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: #EEF1F4; color: #4A5A66; }
.gate-mode-holdopen { background: #DDF6E8; color: #13613D; }
.gate-mode-locked { background: #FEE4E2; color: #A0271C; }
.gate-mode-autogate { background: #E6EEFB; color: #1D5FA8; }
/* ---------- Modules van een tenant ---------- */
.tenant-modules.is-card { padding: 1rem 1.1rem; border-radius: 14px; margin-bottom: 1.5rem; }
.module-list { display: grid; gap: .4rem; margin: .4rem 0 .6rem; }
.module-list .module-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* ---------- Werkbalk boven lijsten: tellers links, sorteren rechts ---------- */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .9rem; }
.list-toolbar .status-summary { margin: 0; }
.list-sort { max-width: 15rem; }

/* ---------- Gates op het overzicht (zelfde kaarten als de locatiepagina) ---------- */
.quick-gates-section { margin-bottom: 1.75rem; }
.quick-gates-filter { max-width: 18rem; }
.quick-gates-location-block { margin-top: .75rem; }
.gates-only-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .25rem 0 .6rem; }
.gates-only-title { font-weight: 700; font-size: 1rem; color: var(--brand-ink); text-decoration: none; }
.gates-only-title:hover { text-decoration: underline; }

.code-sample { margin: .5rem 0; padding: .7rem .9rem; border-radius: 8px; background: var(--mud-palette-background); font-size: .82rem; overflow-x: auto; }

/* =====================================================================
   Overzicht: locaties en gates links, laatste gebeurtenissen rechts (blijft staan bij scrollen)
   ===================================================================== */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr);
    grid-template-areas: "locations events" "gates events";
    grid-template-rows: auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
}
.home-area-locations { grid-area: locations; min-width: 0; }
.home-area-gates { grid-area: gates; min-width: 0; }
.home-area-events { grid-area: events; min-width: 0; position: sticky; top: 76px; }
.home-area-events .home-events { max-height: calc(100vh - 170px); overflow-y: auto; }
.home-area-locations .home-locations { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.home-area-locations > .dash-label:first-child, .home-area-events .dash-label { margin-top: 0; }
.home-area-gates .gate-cards { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.home-area-gates .quick-gates-section { margin-bottom: 0; }
@media (max-width: 1100px) {
    .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "locations" "events" "gates"; grid-template-rows: auto; }
    .home-area-events { position: static; }
    .home-area-events .home-events { max-height: 26rem; }
}

/* =====================================================================
   Overzicht, verfijnd: brede tegels en kaarten, compacte gebeurtenissen
   ===================================================================== */
.home-grid { grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 1fr); }

/* Locaties: tegels vullen de kolom; getallen naast elkaar */
.home-area-locations .home-locations { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-bottom: 1.5rem; }
.home-area-locations .home-location { display: grid; gap: .7rem; padding: 1rem 1.2rem; }
.home-area-locations .occ-numbers { gap: 2.5rem; }

/* Gates: kaarten vullen de kolom (max. drie naast elkaar) */
.home-area-gates .gate-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.home-area-gates .gate-card { padding: 1rem 1.1rem; }
.home-area-gates .gates-only-head { margin-top: 0; }

/* Gebeurtenissen: twee regels per stuk — tijd, kenteken, waar, resultaat; daaronder wie */
.home-area-events .home-events { border-radius: 14px; }
.home-area-events .home-event {
    grid-template-columns: 4.2rem auto minmax(0, 1fr) auto;
    grid-template-areas: "time plate where result" "time plate who result";
    gap: 0 .7rem; padding: .5rem .9rem; align-items: center;
}
.home-area-events .home-event .cell-time { grid-area: time; font-size: .85rem; color: var(--mud-palette-text-secondary); }
.home-area-events .home-event .plate-chip, .home-area-events .home-event > :nth-child(2) { grid-area: plate; }
.home-area-events .home-event .home-event-where { grid-area: where; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-area-events .home-event .home-event-who { grid-area: who; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-area-events .home-event .result { grid-area: result; font-size: .82rem; white-space: nowrap; }
.home-area-events .home-events-head { margin-bottom: .4rem; }

/* =====================================================================
   Kentekens en codes: overal even breed en goed leesbaar
   - lettertype met gelijke tekenbreedte, tekst in het midden
   - standaard breed genoeg voor 12 tekens; alleen een (zeldzaam) langer kenteken wordt breder
   ===================================================================== */
.plate {
    --plate-chars: 12;
    font-family: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-weight: 700; font-size: .92rem; letter-spacing: .02em; line-height: 1.45;
    justify-content: center; text-align: center; box-sizing: border-box;
    min-width: calc(var(--plate-chars) * 1ch + 1.55rem);
    padding: .12rem .5rem .12rem 1.05rem;
    color: #0B0B0B; background: #F7C600; border: 1.5px solid #1A1A1A; border-radius: 5px;
}
.plate::before { width: .6rem; }
.plate-sm { font-size: .82rem; padding: .05rem .4rem .05rem .9rem; min-width: calc(var(--plate-chars) * 1ch + 1.3rem); }
.plate-sm::before { width: .5rem; }
.my-plate .plate { font-size: 1.15rem; }

.code-chip {
    font-family: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-weight: 600; font-size: .86rem; letter-spacing: .01em; box-sizing: border-box;
    min-width: calc(12ch + 2.4rem); justify-content: flex-start;
}
.code-chip > span { flex: 1; text-align: center; }

/* Laatste gebeurtenissen: vaste kolommen, zodat alles recht onder elkaar staat */
.home-area-events .home-event {
    grid-template-columns: 4.3rem max-content minmax(0, 1fr) max-content;
    gap: 0 .8rem; padding: .45rem .9rem;
}
.home-area-events .home-event .cell-time { font-variant-numeric: tabular-nums; }
.home-area-events .home-event .home-event-where { display: flex; align-items: center; gap: .4rem; }
.home-area-events .home-event .home-event-who { color: var(--mud-palette-text-secondary); }
.home-area-events .home-event .result { justify-self: end; }
.home-area-events .home-event:nth-child(even) { background: color-mix(in srgb, var(--mud-palette-background) 55%, transparent); }

/* ---------- Inlogs, auditlog en debuglog ---------- */
.view-toggle { margin-bottom: 1rem; }
.login-kind { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.login-login { background: #DDF6E8; color: #13613D; }
.login-logout, .login-sessionexpired { background: #EEF1F4; color: #4A5A66; }
.login-failed { background: #FEE4E2; color: #A0271C; }
.audit-cat { display: inline-block; padding: .12rem .5rem; border-radius: 6px; background: var(--mud-palette-background); font-size: .78rem; font-weight: 600; }
.audit-diff { display: grid; gap: .25rem; padding: .6rem .9rem; background: var(--mud-palette-background); border-radius: 8px; margin: .2rem 0 .6rem; }
.audit-diff-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; font-size: .85rem; }
.audit-key { font-weight: 600; }
.audit-old { color: #A0271C; word-break: break-word; }
.audit-new { color: #13613D; word-break: break-word; }
.audit-arrow { color: var(--mud-palette-text-secondary); }
.debug-status { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.debug-payload { font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.mail-error { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; word-break: break-word; }

/* Overzicht: standaard 10 gebeurtenissen, uitklapbaar; niet meer tot onderaan het scherm */
.home-area-events .home-events { max-height: none; overflow: visible; }
.home-events-more { display: flex; justify-content: center; margin-top: .3rem; }
/* Inlogs in het gebeurtenissenlog */
.event-table .row-login td { background: color-mix(in srgb, #1D5FA8 5%, transparent); }
.login-where, .login-account { display: inline-flex; align-items: center; gap: .3rem; }
.login-account { font-weight: 600; }

/* ---------- Intercoms op de plattegrond ---------- */
.intercoms-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.intercom-list { display: grid; gap: .4rem; }
.intercom-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) minmax(10rem, auto) auto; gap: .8rem; align-items: center;
    padding: .55rem .7rem; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; }
.intercom-row.is-inactive { opacity: .55; }
.intercom-id { width: 2.2rem; height: 2.2rem; border-radius: 8px; background: #1D5FA8; color: #fff; display: grid; place-items: center; font-weight: 800; }
.intercom-main { display: grid; min-width: 0; }
.intercom-main .muted { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intercom-actions { display: inline-flex; }
@media (max-width: 700px) { .intercom-row { grid-template-columns: 2.2rem minmax(0, 1fr); } .intercom-sync, .intercom-actions { grid-column: 2; } }

/* ---------- Modules per tenant (Serverbeheer): per tenant een rij tegels ---------- */
.lic-tenants { display: grid; gap: 1rem; }
.lic-tenant { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: .8rem .9rem; }
.lic-tenant-name { font-weight: 700; margin-bottom: .6rem; }
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .6rem; }
.lic-card { border-radius: 10px; padding: .55rem .7rem; border: 1px solid var(--mud-palette-lines-default); display: grid; gap: .3rem; }
.lic-card.is-on { background: #EEF9F2; border-color: #B7E8CC; }
.lic-card.is-expired { background: #FEF3F2; border-color: #FBC6C1; }
.lic-card.is-off { background: var(--mud-palette-background); }
.lic-card-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.lic-name { font-weight: 600; }
.lic-state { font-size: .82rem; color: var(--mud-palette-text-secondary); }
.lic-card.is-on .lic-state { color: #13613D; }
.lic-card.is-expired .lic-state { color: #A0271C; font-weight: 600; }
.lic-date { margin-top: .1rem; }
/* ---------- Intercom op de plattegrond ---------- */
.node-intercom { border-color: #1D5FA8; }
.node-intercom .mud-icon-root { color: #1D5FA8; }
.node-sync { font-size: .7rem; font-weight: 800; padding: 0 .3rem; border-radius: 6px; }
.node-sync.is-ok { background: #DDF6E8; color: #13613D; }
.node-sync.is-error { background: #FEE4E2; color: #A0271C; }
.palette-item.kind-intercom .mud-icon-root { color: #1D5FA8; }
.intercom-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }

/* ---------- Locatie-id (serverbeheerder en superadmin) ---------- */
.location-id { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.location-id code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .76rem; background: var(--mud-palette-background);
    padding: .08rem .35rem; border-radius: 5px; }
.location-id-label { font-weight: 600; }
.location-id.is-compact code { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.location-id-copy { background: none; border: 0; padding: .1rem; cursor: pointer; color: inherit; display: inline-flex; border-radius: 4px; }
.location-id-copy:hover { background: var(--mud-palette-action-default-hover); }

/* ---------- Privacyverklaring ---------- */
.app-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--mud-palette-lines-default); text-align: center; font-size: .82rem; }
.app-footer a, .auth-privacy, .exitpass-privacy { color: var(--mud-palette-text-secondary); }
.auth-privacy { display: block; margin-top: 1rem; text-align: center; font-size: .82rem; }
.exitpass-privacy { display: block; margin-top: 1rem; text-align: center; font-size: .85rem; }

/* ---------- Privacypagina ---------- */
.privacy-page { width: 100%; max-width: 50rem; }
.privacy-content { background: #fff; border-radius: 18px; padding: 2rem 2.2rem; box-shadow: 0 8px 30px rgba(20,37,43,.10); line-height: 1.6; color: var(--ink); }
.privacy-content h1 { font-size: 1.7rem; margin: 0 0 .5rem; }
.privacy-content h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.privacy-content table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .92rem; }
.privacy-content th, .privacy-content td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #D5E0E3; vertical-align: top; }
.privacy-content th { background: #EEF3F4; }
@media (max-width: 600px) { .privacy-content { padding: 1.2rem; } .privacy-content table { display: block; overflow-x: auto; } }

/* ---------- Tijdklokkaart: alles binnen de kaart, kop loopt door op een nieuwe regel ---------- */
.schedule-card { min-width: 0; overflow: hidden; }
.schedule-card > header { flex-wrap: wrap; align-items: center; row-gap: .5rem; }
.schedule-card > header > div:first-child { flex: 1 1 12rem; min-width: 0; }
.schedule-card > header .status-chip, .schedule-card > header .mud-button-root { white-space: nowrap; flex-shrink: 0; }
.schedule-card .week-preview { min-width: 0; padding-right: .9rem; }  /* ruimte voor het label 24:00 */
.home-event-login .login-account { font-size: .85rem; }
.home-area-events .home-event-login { background: color-mix(in srgb, #1D5FA8 5%, transparent); }

/* Inlogregels: gebruikersnaam in hetzelfde vak als een kenteken, resultaat rechts in het midden */
.login-account {
    display: inline-flex; align-items: center; justify-content: center; gap: .25rem; box-sizing: border-box;
    min-width: calc(12ch + 1.3rem); padding: .05rem .5rem; border-radius: 5px; border: 1.5px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background); font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-area-events .home-event-login .login-account { grid-area: plate; max-width: 11rem; }
.home-area-events .home-event .login-kind { grid-area: result; justify-self: end; align-self: center; }
.event-table .row-login .login-account { max-width: 14rem; }

.snapshots-stopped { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

/* ---------- Handleiding ---------- */
.help-content { max-width: 52rem; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px; padding: 1.6rem 2rem; line-height: 1.65; }
.help-content h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; padding-top: .5rem; border-top: 1px solid var(--mud-palette-lines-default); }
.help-content h2:first-of-type { border-top: 0; margin-top: 1rem; }
.help-content h3 { font-size: 1.02rem; margin: 1.2rem 0 .3rem; }
.help-content p, .help-content li { font-size: .95rem; }
.help-content ol, .help-content ul { padding-left: 1.3rem; }
.help-content li + li { margin-top: .2rem; }
.help-content .toc { background: var(--mud-palette-background); border-radius: 10px; padding: .8rem 1.2rem; }
.help-content .toc ul { margin: .3rem 0 0; columns: 2 16rem; }
.help-content .tip { border-left: 4px solid var(--mud-palette-primary); background: var(--mud-palette-background); padding: .6rem .9rem; border-radius: 6px; }
.help-content table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .5rem 0 1rem; }
.help-content th, .help-content td { text-align: left; padding: .4rem .55rem; border-bottom: 1px solid var(--mud-palette-lines-default); vertical-align: top; }
.help-content kbd, .help-content .ui { font-weight: 600; }
@media (max-width: 600px) { .help-content { padding: 1rem; } .help-content table { display: block; overflow-x: auto; } }

/* ---------- Uitleg (ⓘ) bij instellingen ---------- */
.cc-tip-icon {
    display: inline-flex; align-items: center; justify-content: center; margin-left: .3em;
    width: 1.05em; height: 1.05em; font-size: .92em; line-height: 1; border-radius: 50%;
    color: var(--mud-palette-primary); cursor: help; pointer-events: auto; vertical-align: middle; user-select: none;
}
.cc-tip-icon:hover, .cc-tip-icon:focus { background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); outline: none; }
.cc-tip {
    position: fixed; z-index: 3000; display: none; max-width: min(24rem, calc(100vw - 16px));
    padding: .6rem .8rem; border-radius: 8px; background: var(--ink); color: #fff;
    font-size: .84rem; line-height: 1.45; box-shadow: 0 6px 24px rgba(0,0,0,.25); pointer-events: none; white-space: normal;
}

/* Kentekenregel bij de gebruiker: labels zo breed als hun tekst, naast elkaar */
.cred-meta { justify-items: start; }
.cred-meta > * { max-width: 100%; }
.cred-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .15rem 0; }
.cred-badges .tag, .cred-badges .status-chip { width: auto; }

/* =====================================================================
   Merken: beeldmerk, balk en inlogpaneel in de stijl van Car-L, C-Park en PARKRable
   ===================================================================== */
.wm { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.wm-tagline { display: block; }

/* Car-L: 'car' met een rode L, zoals het logo */
.wm-carl { font-weight: 700; letter-spacing: -0.02em; }
.wm-carl .wm-accent { color: var(--brand-accent); }

/* C-Park: oranje C, strakke hoofdletters */
.wm-cpark { font-weight: 800; letter-spacing: .01em; flex-direction: row; flex-wrap: wrap; }
.wm-cpark .wm-accent { color: var(--brand-accent); }
.wm-cpark .wm-tagline { flex-basis: 100%; font-size: .22em; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--brand-accent); margin-top: .35em; }

/* PARKRable: PARK dun, Rable vet in lime (lime alleen op een donkere of witte ondergrond) */
.wm-parkrable { flex-wrap: wrap; letter-spacing: .01em; }
.wm-parkrable .wm-thin { font-weight: 200; }
.wm-parkrable .wm-bold { font-weight: 800; color: var(--brand-accent); letter-spacing: -0.01em; }
.wm-parkrable .wm-tagline { flex-basis: 100%; font-size: .2em; font-weight: 300; letter-spacing: .28em; margin-top: .5em; }
/* Op een witte ondergrond: lime tekst is daar te licht voor gewone tekst, maar mag in het logo (huisstijlgids) */

/* Balk bovenaan: in de merkkleur, alles wit */
.app-bar { border-bottom: 0 !important; }
.app-bar .role-badge { color: #FFFFFF; border-color: rgba(255,255,255,.7); }
.app-bar .app-clock, .app-bar .mud-icon-button { color: inherit; }
body.brand-carl .app-bar { box-shadow: inset 0 -3px 0 var(--brand-accent); }
body.brand-cpark .app-bar { box-shadow: inset 0 -3px 0 var(--brand-accent); }
body.brand-parkrable .app-bar { box-shadow: inset 0 -3px 0 var(--brand-accent); }

/* Menu links: actieve regel in de accentkleur */
.app-drawer .mud-nav-link.active { box-shadow: inset 3px 0 0 var(--brand-accent); }
body.brand-parkrable .app-drawer .mud-nav-link.active { color: var(--brand-ink); background: color-mix(in srgb, var(--brand-accent) 22%, transparent); }

/* Inlogpaneel */
.auth-wordmark .wm { font-size: 1em; }
.auth-wordmark-small { font-size: 1.8rem; color: var(--brand-ink); } /* alleen zichtbaar op smalle schermen (zie boven) */

body.brand-parkrable .auth-brand { background:
    radial-gradient(circle at 1px 1px, rgba(207,202,186,.35) 1.5px, transparent 2px) 0 0 / 56px 56px, var(--brand); }

/* PARKRable: koppen in Antonio, altijd hoofdletters (huisstijlgids) */
body.brand-parkrable .auth-card h1,
body.brand-parkrable .exitpass-title,
body.brand-parkrable .help-content h1,
body.brand-parkrable .help-content h2 { font-family: "Antonio", "Lexend Deca", sans-serif; text-transform: uppercase; font-weight: 700; letter-spacing: .01em; }
body.brand-parkrable .dash-label { color: var(--brand-ink); }
body.brand-parkrable .mud-button-filled.mud-button-filled-secondary { color: var(--brand-ink); }

/* Car-L: labels in monoletter, zoals op de website */
body.brand-carl .dash-label, body.brand-carl .nav-section { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; }

/* Keuze van de skin (serverbeheerder) */
.skin-choices { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 .6rem; }
.skin-choice { display: grid; gap: .35rem; min-width: 9.5rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--mud-palette-lines-default);
    text-decoration: none; color: var(--mud-palette-text-primary); background: var(--mud-palette-surface); }
.skin-choice:hover { border-color: var(--mud-palette-primary); }
.skin-choice.is-current { border: 2px solid var(--mud-palette-primary); }
.skin-bar { height: 1.9rem; border-radius: 8px; display: flex; align-items: center; padding: 0 .6rem; color: #fff; font-size: .95rem; }
.skin-bar.skin-carl { background: #5E8E9B; box-shadow: inset 0 -3px 0 #E30613; font-family: "Sora", sans-serif; }
.skin-bar.skin-cpark { background: #006BA6; box-shadow: inset 0 -3px 0 #F39200; font-family: "Montserrat", sans-serif; }
.skin-bar.skin-parkrable { background: #2D3030; box-shadow: inset 0 -3px 0 #D3D800; font-family: "Lexend Deca", sans-serif; }
.skin-bar.skin-auto { background: var(--mud-palette-background); color: var(--mud-palette-text-secondary); border: 1px dashed var(--mud-palette-lines-default); }
.skin-bar .wm-accent { color: inherit; }
.skin-bar.skin-carl .wm-accent { color: #F27D84; }
.skin-bar.skin-cpark .wm-accent { color: #F39200; }
.skin-bar.skin-parkrable .wm-bold { color: #D3D800; }

button.skin-choice { font: inherit; text-align: left; cursor: pointer; }
button.skin-choice:disabled { cursor: default; opacity: .7; }

/* =====================================================================
   Inlogpaneel: rustig vlak in de merkkleur, een verticale lijn links in de logokleur, en het logo
   (Car-L rood #E30613, C-Park oranje #F39200, PARKRable lime #D3D800)
   ===================================================================== */
.auth-brand .bay-lines { display: none; }
.auth-brand { box-shadow: inset 10px 0 0 var(--brand-accent); }
.auth-brand::before, .auth-brand::after { content: none !important; }
body.brand-carl .auth-brand, body.brand-cpark .auth-brand { background: var(--brand); }
.auth-wordmark { position: relative; z-index: 1; }
.auth-wordmark .wm { font-size: 1em; }

/* Car-L-logo als afbeelding */
.wm-carl-logo { display: block; height: 2.1rem; width: auto; }
.app-bar .wm-carl-logo { height: 2.3rem; margin: -.25rem 0; }
.auth-wordmark .wm-carl-logo { height: clamp(6rem, 12vw, 9rem); }
.auth-wordmark-small .wm-carl-logo { height: 4rem; }
.skin-bar .wm-carl-logo { height: 1.6rem; }

/* Kop die focus krijgt na het laden (Blazor) zonder kader */
h1:focus, h1:focus-visible { outline: none; }

.intercom-alerts ul { margin: .4rem 0 .2rem; padding-left: 1.2rem; }
.intercom-alerts li + li { margin-top: .2rem; }

/* ---------- Logbestanden (serverbeheerder) ---------- */
.logs-layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.logs-files { padding: .4rem; max-height: 75vh; overflow-y: auto; }
.log-file { display: flex; align-items: center; border-radius: 8px; }
.log-file.is-selected { background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); }
.log-file-open { flex: 1; display: grid; text-align: left; gap: .1rem; padding: .45rem .6rem; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.log-file-download { padding: .4rem; color: var(--mud-palette-text-secondary); display: inline-flex; }
.logs-view { padding: .8rem; min-width: 0; }
.log-lines { margin: .5rem 0 0; max-height: 65vh; overflow: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .76rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.log-line.is-warning { color: #B86E00; }
.log-line.is-error { color: #C6283A; font-weight: 600; }
@media (max-width: 900px) { .logs-layout { grid-template-columns: 1fr; } }
.log-line { white-space: pre-wrap; }
.audit-ip { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .76rem; }

/* ---------- Contact ---------- */
.contact-edit { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: .8rem .9rem .4rem; margin-bottom: .8rem; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: .5rem; }
.contact-card { padding: 1rem 1.1rem; border-radius: 14px; display: grid; gap: .25rem; align-content: start; }
.contact-category { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent); }
.contact-company { font-weight: 700; font-size: 1.05rem; }
.contact-name { color: var(--mud-palette-text-secondary); }
.contact-lines { display: grid; gap: .2rem; margin-top: .3rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: .4rem; color: var(--mud-palette-primary); text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }
.contact-note { font-size: .85rem; margin-top: .2rem; }
body.brand-parkrable .contact-category { color: var(--brand-ink); }

/* =====================================================================
   Inlogpagina (vernieuwd): alles in het midden, merkkaart in plaats van een volle balk,
   subtiele lijntekening onderaan over de hele breedte
   ===================================================================== */
.auth-page { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--brand-bg); overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) clamp(7rem, 16vh, 11rem); }
.auth-layout { position: relative; z-index: 1; width: 100%; max-width: 64rem; display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
/* het oude volledige paneel uitzetten */
.auth-shell { display: contents; }
.auth-page .auth-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem;
    min-height: clamp(18rem, 46vh, 26rem); padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 3rem) clamp(1.8rem, 4vw, 2.8rem) clamp(2.4rem, 5vw, 3.6rem);
    border-radius: 22px; background: var(--brand); color: #FFFFFF; box-shadow: 0 18px 50px rgba(20, 30, 35, .16);
}
.auth-page .auth-brand::before, .auth-page .auth-brand::after { content: none !important; }
.auth-page .auth-brand { box-shadow: 0 18px 50px rgba(20, 30, 35, .16); }
.auth-accent { position: absolute; left: clamp(1.2rem, 2.4vw, 1.6rem); top: 50%; width: 6px; height: 4.5rem; transform: translateY(-50%);
    border-radius: 6px; background: var(--brand-accent); }
.auth-page .auth-wordmark { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; }
.auth-claim { margin: 0; max-width: 24rem; font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.auth-page .auth-main { display: flex; justify-content: center; padding: 0; background: transparent; min-height: 0; }
.auth-page .auth-card { width: 100%; max-width: 24rem; background: var(--mud-palette-surface, #FFFFFF); border-radius: 18px;
    padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: 0 10px 34px rgba(20, 30, 35, .10); }
/* lijntekening */
.auth-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(7rem, 18vh, 12rem); z-index: 0;
    color: var(--brand-ink); opacity: .16; pointer-events: none; }
.auth-scene-plate { fill: #F7C600; stroke: currentColor; stroke-width: 1.5; }
.auth-scene-arm { stroke: var(--brand-accent); fill: none; }
body.brand-parkrable .auth-scene { opacity: .2; }
body.brand-parkrable .auth-page .auth-brand {
    background: radial-gradient(circle at 1px 1px, rgba(207, 202, 186, .3) 1.5px, transparent 2px) 0 0 / 44px 44px, var(--brand); }
/* smal scherm: alleen de inlogkaart, met het kleine beeldmerk */
@media (max-width: 900px) {
    .auth-layout { grid-template-columns: 1fr; max-width: 26rem; }
    .auth-page .auth-brand { display: none; }
    .auth-page .auth-wordmark-small { display: block; margin-bottom: 1.4rem; }
}
@media (min-width: 901px) { .auth-page .auth-wordmark-small { display: none; } }

/* =====================================================================
   Inlogpagina: links de merkkleur over de volle hoogte, rechts een licht neutraal vlak met de inlogkaart.
   Geen schuine lijnen en geen tekening; een korte accentlijn naast het logo, logo en tekst ruim van de rand.
   ===================================================================== */
.auth-page.auth-split { display: block; padding: 0; background: #F5F5F2; }
.auth-split .auth-layout { max-width: none; min-height: 100vh; min-height: 100dvh; gap: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.auth-split .auth-brand {
    min-height: 100%; border-radius: 0; box-shadow: none !important; justify-content: center; align-items: flex-start;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 8vw, 7rem);
    /* subtiele lichtval, modern en rustig */
    background: radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .14), transparent 55%), var(--brand);
}
.auth-split .auth-accent { position: static; transform: none; width: 4.5rem; height: 6px; margin-bottom: .4rem; }
.auth-split .auth-wordmark { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.auth-split .auth-claim { max-width: 26rem; }
.auth-split .auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem); background: #F5F5F2; }
.auth-split .auth-card { max-width: 25rem; background: #FFFFFF; border: 1px solid #E8E8E4; box-shadow: 0 6px 24px rgba(20, 30, 35, .06); }
body.brand-parkrable .auth-split .auth-brand {
    background: radial-gradient(circle at 1px 1px, rgba(207, 202, 186, .28) 1.5px, transparent 2px) 0 0 / 44px 44px,
                radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .08), transparent 55%), var(--brand); }
body.brand-parkrable .auth-split .auth-main, body.brand-parkrable .auth-page.auth-split { background: #F4F2EC; }
@media (max-width: 900px) {
    .auth-split .auth-layout { grid-template-columns: 1fr; }
    .auth-split .auth-brand { display: none; }
}

/* Accentlijn: verticaal, links van het logo, een eind van de rand en niet van boven tot onder */
.auth-split .auth-brand { padding-left: clamp(5rem, 11vw, 9rem); }
.auth-split .auth-accent {
    position: absolute; left: clamp(2.5rem, 6vw, 5rem); top: 14%; bottom: 14%;
    width: 6px; height: auto; margin: 0; transform: none; border-radius: 6px;
}

/* Tijdschema: per dag de tijden naast de balk */
.week-preview:not(.is-compact) .wp-row { grid-template-columns: 2rem minmax(0, 1fr) minmax(7.5rem, auto); }
.wp-times { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; color: var(--mud-palette-text-secondary); white-space: nowrap; }
@media (max-width: 600px) { .week-preview:not(.is-compact) .wp-row { grid-template-columns: 2rem minmax(0, 1fr); } .week-preview:not(.is-compact) .wp-times { grid-column: 2; } }

.lic-filter { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem) auto; gap: .75rem; align-items: center; margin-bottom: 1rem; }
@media (max-width: 700px) { .lic-filter { grid-template-columns: 1fr; } }

/* =====================================================================
   Telefoon: overzicht in één kolom, compacte balk, uitloggen in het menu
   ===================================================================== */
/* Tegels en kaarten nooit breder dan het scherm */
/* Zelfde breedtes als op een monitor (auto-fit, 22rem en 21rem); min(100%, …) houdt ze op een telefoon binnen het scherm. */
.home-area-locations .home-locations { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.home-area-gates .gate-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
/* Deze regel moet ná de andere .home-grid-regels staan, anders wint de tweekolomsindeling */
@media (max-width: 1100px) {
    .home-grid { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "locations" "events" "gates"; grid-template-rows: auto; }
    .home-area-events { position: static; }
}
@media (max-width: 760px) {
    .app-bar .app-clock { display: none; }
}
@media (max-width: 600px) {
    .app-bar .role-badge, .app-bar .appbar-help { display: none; }
    .app-bar .lang-code { display: none; }
    .app-bar .wm-carl-logo { height: 1.9rem; }
    .app-bar .session-timer { min-width: 0; padding-left: .3rem; padding-right: .3rem; }
    .app-bar .mud-toolbar { gap: .1rem; padding-left: .5rem; padding-right: .5rem; }
}
.nav-logout { margin: 0; }
.nav-logout button { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
    display: flex; align-items: center; gap: .9rem; padding: 8px 16px; }
.app-version { padding: .6rem 1rem 1rem; font-size: .72rem; color: var(--mud-palette-text-secondary); font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Uitzonderingsdagen bij een tijdschema */
.schedule-exceptions { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--mud-palette-lines-default); display: grid; gap: .45rem; }
.schedule-exceptions .dash-label { margin: 0; }
.exception-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.exception-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .4rem .25rem .7rem; border-radius: 999px; font-size: .82rem;
    background: color-mix(in srgb, #C6283A 10%, transparent); border: 1px solid color-mix(in srgb, #C6283A 30%, transparent); }
.exception-chip.is-past { opacity: .55; }
.exception-remove { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; color: inherit; padding: 0 .3rem; }
.exception-add { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(10rem, 1fr) auto auto; gap: .5rem; align-items: center; }
@media (max-width: 700px) { .exception-add { grid-template-columns: 1fr; } }
.reason-detail { max-width: 28rem; white-space: normal; font-size: .76rem; line-height: 1.35; margin-top: .15rem; }

/* Betaald parkeren: totalen per dag */
.paid-totals { display: flex; flex-wrap: wrap; gap: 1rem; }
.paid-totals > div { display: grid; gap: .1rem; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface); min-width: 9rem; }
.paid-totals strong { font-size: 1.25rem; }

/* ---------- Verkeer (serverbeheerder) ---------- */
.traffic-switches { display: grid; gap: .3rem; }
.traffic-switches > div { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.traffic-list { display: grid; gap: .35rem; }
.traffic-row { border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; background: var(--mud-palette-surface); overflow: hidden; }
.traffic-row.is-error { border-color: color-mix(in srgb, #C6283A 45%, transparent); }
.traffic-head { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem .8rem; background: none; border: 0;
    cursor: pointer; font: inherit; color: inherit; text-align: left; }
.traffic-time { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8rem; }
.traffic-kind { font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; background: var(--mud-palette-background); }
.traffic-kind.kind-signalr { color: #1D5FA8; }
.traffic-summary { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; word-break: break-all; flex: 1 1 18rem; }
.traffic-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .8rem; padding: .2rem .8rem .8rem; }
.traffic-detail pre { margin: .3rem 0 0; max-height: 22rem; overflow: auto; white-space: pre-wrap; word-break: break-word;
    font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .74rem; background: var(--mud-palette-background); padding: .6rem; border-radius: 8px; }

/* Tabbladen die op een telefoon niet wegschuiven maar doorlopen naar een tweede regel */
@media (max-width: 760px) {
    .wrap-tabs .mud-tabs-tabbar-wrapper { flex-wrap: wrap; width: 100% !important; transform: none !important; }
    .wrap-tabs .mud-tabs-scroll-button { display: none; }
    .wrap-tabs .mud-tab { min-width: 0; flex: 1 1 auto; white-space: normal; text-align: center; }
}
/* Accounts (superadmins, admins): op een tablet minder kolommen, en anders horizontaal scrollen */
.account-grid .mud-table-container { overflow-x: auto; }
.account-grid .account-actions { white-space: nowrap; }
@media (max-width: 1280px) { .account-grid .col-wide { display: none; } }
@media (max-width: 900px) { .account-grid .col-mid { display: none; } }

/* ---------- Belasting (serverbeheerder) ---------- */
.load-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.load-cards > div { display: grid; gap: .15rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); }
.load-cards strong { font-size: 1.35rem; }
.load-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; }
.load-chart { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: .6rem .8rem; background: var(--mud-palette-surface); }
.load-chart svg { width: 100%; height: 10rem; display: block; }
.lc-grid { stroke: var(--mud-palette-lines-default); stroke-width: 1; }
.lc-limit { stroke: #C6283A; stroke-width: 1.2; stroke-dasharray: 6 5; }
.lc-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lc-line.lc-s0 { stroke: var(--mud-palette-primary); }
.lc-line.lc-s1 { stroke: #B86E00; }
.lc-legend { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .8rem; margin-top: .3rem; }
.lc-key::before { content: ""; display: inline-block; width: .9rem; height: .2rem; border-radius: 2px; margin-right: .3rem; vertical-align: middle; background: var(--mud-palette-primary); }
.lc-key.lc-s1::before { background: #B86E00; }
.lc-range { margin-left: auto; }
.load-warnings { margin: .3rem 0 0; padding-left: 1.2rem; }

/* =====================================================================
   Merkloze inlogpagina: links grijs met een tekening (auto voor een slagboom), rechts een iets lichter vlak.
   ===================================================================== */
.skin-bar.skin-neutral { background: #5F696F; box-shadow: inset 0 -3px 0 #8A959B; font-family: "Sora", sans-serif; }
body.brand-neutral .auth-split .auth-brand {
    align-items: center; padding: clamp(2rem, 5vw, 4rem);
    background: radial-gradient(110% 80% at 80% 8%, rgba(255, 255, 255, .16), transparent 58%),
                linear-gradient(160deg, #6A747A 0%, #535C62 100%);
}
body.brand-neutral .auth-split .auth-main, body.brand-neutral .auth-page.auth-split { background: #F7F8F8; }
body.brand-neutral .auth-split .auth-card { border-color: #E6E9EA; }
.neutral-scene { width: 100%; max-width: 34rem; height: auto; display: block; }

/* Tweestapsverificatie */
.mfa-qr { display: block; margin: .5rem 0 .75rem; border: 8px solid #fff; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.mfa-key { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9rem; letter-spacing: .04em; word-break: break-all; }
.mfa-state { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.mfa-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.mfa-row .mud-input-control { max-width: 12rem; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: .4rem 2rem; }
.mfa-codes code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1rem; letter-spacing: .06em; }
@media (max-width: 480px) { .mfa-codes { grid-template-columns: 1fr; } }

/* Bewerken- en verwijderknoppen in lijsten */
.cell-actions { width: 1%; white-space: nowrap; text-align: right; }
.row-actions { display: inline-flex; align-items: center; gap: .1rem; cursor: default; }
.cred-status { align-items: center; }
.cred-actions { display: inline-flex; align-items: center; gap: .15rem; margin-left: .35rem; }
.cred-action { display: inline-flex; padding: .3rem; border-radius: 50%; color: var(--mud-palette-text-secondary); }
.cred-delete { color: var(--mud-palette-error); cursor: pointer; }
.cred-delete:hover, .cred-delete:focus-visible { background: color-mix(in srgb, var(--mud-palette-error) 12%, transparent); outline: none; }
.cred-delete.is-disabled { opacity: .35; cursor: not-allowed; }

/* Meldingen bovenin, aflopende accounts op het overzicht */
.announcement .announcement-text { display: block; margin-top: .15rem; white-space: pre-line; }
.announcement .announcement-when { display: block; margin-top: .2rem; font-size: .8rem; opacity: .85; }
.expiring-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.expiring-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-bottom: 1px solid var(--mud-palette-lines-default); padding-bottom: .35rem; }
.expiring-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.expiring-list .expiring-when { color: var(--mud-palette-text-secondary); font-size: .9rem; }
.expiring-list li.is-expired .expiring-when { color: var(--mud-palette-error); }

/* Betaald parkeren pauzeren */
.pause-switch { margin: .25rem 0 .75rem; }
.pause-switch.is-paused { padding: .5rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--mud-palette-warning) 12%, transparent); }
.pause-card { border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); padding: 1rem 1.25rem; }


/* =====================================================================
   Inlogpagina, verfijnd (Car-L, C-Park en merkloos; PARKRable houdt zijn eigen patroon).
   Zelfde indeling: links het merkvlak, rechts het lichtere vlak met de kaart. Meer diepte, een grote slogan
   en een rustige tekening van parkeervakken.
   ===================================================================== */
.auth-split .auth-brand {
    isolation: isolate; color: #FFFFFF; gap: 1.6rem; box-sizing: border-box; min-height: 0;
    padding-right: clamp(2rem, 5vw, 4.5rem);
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .20), transparent 62%),
        radial-gradient(70% 55% at 0% 100%, rgba(0, 0, 0, .22), transparent 65%),
        linear-gradient(160deg, color-mix(in srgb, var(--brand) 82%, #FFFFFF) 0%, var(--brand) 42%, color-mix(in srgb, var(--brand) 72%, #000000) 100%);
}
body.brand-neutral .auth-split .auth-brand {
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .18), transparent 62%),
        radial-gradient(70% 55% at 0% 100%, rgba(0, 0, 0, .20), transparent 65%),
        linear-gradient(160deg, #78838A 0%, #5E686E 45%, #474F54 100%);
}
.auth-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: #FFFFFF; }
.auth-deco-rings { position: absolute; width: clamp(22rem, 42vw, 38rem); height: auto; right: -9rem; top: -9rem; opacity: .10; }
.auth-deco-bays { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; opacity: .13;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%); mask-image: linear-gradient(to top, #000 30%, transparent 100%); }
.auth-deco-sheen { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .07) 46%, transparent 54%); }
body.brand-parkrable .auth-deco { display: none; }

/* Slogan: groot en stevig, het laatste deel met een accentstreep in de logokleur */
.auth-claim-block { position: relative; z-index: 1; display: grid; gap: 1.4rem; max-width: 34rem; }
.auth-slogan { margin: 0; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; font-weight: 700; letter-spacing: -.025em;
    color: #FFFFFF; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .12); }
.auth-slogan em { font-style: normal; white-space: nowrap;
    background: linear-gradient(to top, color-mix(in srgb, var(--brand-accent) 85%, transparent) 0 .16em, transparent .16em) no-repeat 0 92% / 100% 100%; }
body.brand-carl .auth-slogan em { background-image: linear-gradient(to top, #E30613 0 .14em, transparent .14em); }
body.brand-neutral .auth-slogan em { background-image: linear-gradient(to top, rgba(255, 255, 255, .55) 0 .12em, transparent .12em); }
.auth-split .auth-claim { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255, 255, 255, .9); }

/* Drie kenmerken als glazen labels */
.auth-points { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .75rem; border-radius: 999px;
    font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth-points li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 30%, transparent); }
body.brand-neutral .auth-points li::before { background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

/* Logo wat groter en met lucht; de accentlijn loopt mee met de inhoud */
.auth-split .auth-wordmark { position: relative; z-index: 1; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .14)); }
.auth-split .auth-accent { top: 18%; bottom: 18%; box-shadow: 0 0 24px color-mix(in srgb, var(--brand-accent) 60%, transparent); }
body.brand-cpark .auth-split .auth-wordmark { font-size: clamp(3rem, 5.4vw, 4.6rem); }

/* Merkloos: tekening in het midden, slogan eronder, alles gecentreerd */
body.brand-neutral .auth-split .auth-brand { align-items: center; text-align: center; gap: 2rem; }
body.brand-neutral .auth-claim-block { justify-items: center; }
body.brand-neutral .auth-points { justify-content: center; }
body.brand-neutral .neutral-scene { max-width: 30rem; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }

/* Rechts: licht vlak met een zacht stippenraster */
.auth-split .auth-main, body.brand-neutral .auth-split .auth-main {
    background:
        radial-gradient(circle at 1px 1px, rgba(20, 30, 35, .075) 1px, transparent 1.6px) 0 0 / 22px 22px,
        radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .9), transparent 70%),
        linear-gradient(180deg, #FAFAF8 0%, #F0F0EB 100%);
}
body.brand-cpark .auth-split .auth-main {
    background:
        radial-gradient(circle at 1px 1px, rgba(0, 60, 100, .08) 1px, transparent 1.6px) 0 0 / 22px 22px,
        radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .9), transparent 70%),
        linear-gradient(180deg, #F7F9FC 0%, #EAF0F6 100%);
}

/* De kaart: ruimer, ronder, met een dunne merkstreep bovenaan */
.auth-split .auth-card { position: relative; max-width: 26rem; padding: clamp(2rem, 3.4vw, 2.75rem); border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(20, 30, 35, .07);
    box-shadow: 0 1px 2px rgba(20, 30, 35, .05), 0 12px 32px rgba(20, 30, 35, .08), 0 40px 80px -30px rgba(20, 30, 35, .18); }
.auth-split .auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 60%, var(--brand-accent) 100%); }
body.brand-neutral .auth-split .auth-card::before { background: linear-gradient(90deg, #5E686E, #A3ADB2); }
.auth-split .auth-card h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 .35rem; color: var(--brand-ink); }
.auth-lead { margin: 0 0 1.8rem; color: var(--ink-soft); font-size: .95rem; }

/* Velden en knop */
.auth-split .auth-form { gap: 1.15rem; }
.auth-split .auth-form label > span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.auth-split .auth-form input { padding: .9rem 1rem; border-radius: 12px; border: 1px solid #DEE2E3; background: #F8F9F9;
    transition: border-color .15s, box-shadow .15s, background-color .15s; }
.auth-split .auth-form input:hover { border-color: #C9CFD1; }
.auth-split .auth-form input:focus-visible { background: #FFFFFF; border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.auth-split .auth-submit { margin-top: .6rem; padding: 1rem 1.2rem; border-radius: 12px; letter-spacing: .01em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #FFFFFF) 0%, var(--brand) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -6px color-mix(in srgb, var(--brand) 70%, transparent);
    transition: transform .15s, box-shadow .15s, filter .15s; }
.auth-split .auth-submit:hover { transform: translateY(-1px); filter: brightness(1.05);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 26px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
.auth-split .auth-submit:active { transform: translateY(0); }
.auth-split .auth-link { font-weight: 600; text-decoration: none; }
.auth-split .auth-link:hover { text-decoration: underline; }
.auth-split .auth-langs { justify-content: center; padding-top: 1.2rem; border-top: 1px solid #EEF0F0; }

/* Rustig binnenkomen (niet bij 'minder beweging') */
@media (prefers-reduced-motion: no-preference) {
    .auth-split .auth-card { animation: auth-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
    .auth-claim-block, .auth-split .auth-wordmark, .neutral-scene { animation: auth-rise .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Smal scherm: alleen de kaart; de slogan dan klein boven de kaart is niet nodig */
@media (max-width: 900px) {
    .auth-split .auth-main { padding: 1.5rem 1rem; }
    .auth-split .auth-card { box-sizing: border-box; padding: 1.75rem 1.4rem; box-shadow: 0 12px 32px rgba(20, 30, 35, .08); }
}

/* Tarieventester: uitsplitsing per dag (werkweek of weekend) */
.rate-days { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; width: 100%; font-size: .85rem; }
.rate-days li { display: grid; grid-template-columns: minmax(8rem, auto) 1fr auto; gap: .75rem; align-items: baseline;
    padding-top: .25rem; border-top: 1px dashed var(--mud-palette-lines-default); }
.rate-tester-result { flex-wrap: wrap; }
.rate-tester-result .rate-days strong { font-size: .9rem; white-space: nowrap; }
.rate-days li > :first-child { white-space: nowrap; }
/* Smalle tester (zijkolom, telefoon): dag en bedrag op één regel, de uitleg eronder over de hele breedte. */
.rate-tester { container-type: inline-size; }
@container (max-width: 30rem) {
    .rate-days li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day amount" "detail detail"; row-gap: .1rem; }
    .rate-days li > :nth-child(1) { grid-area: day; }
    .rate-days li > :nth-child(2) { grid-area: detail; }
    .rate-days li > :nth-child(3) { grid-area: amount; text-align: right; }
}

/* Client-app offline: rood bolletje (valt op); grijs alleen als de locatie nog geen client-app heeft */
.home-client.is-offline { background: #C6283A; box-shadow: 0 0 0 3px #F8DADF; animation: client-offline-pulse 2s ease-in-out infinite; }
@keyframes client-offline-pulse { 50% { box-shadow: 0 0 0 5px #F8DADF; } }
@media (prefers-reduced-motion: reduce) { .home-client.is-offline { animation: none; } }

/* Datum + tijd: naast elkaar als het past, anders de tijd onder de datum (bijv. in de smalle tarieventester).
   Zo loopt een veld nooit buiten zijn kader. */
.datetime-field { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; max-width: 30rem; min-width: 0; }
.datetime-field > :first-child { flex: 1 1 11rem; min-width: min(100%, 11rem); }
.datetime-field > :last-child { flex: 1 1 9.5rem; min-width: min(100%, 9.5rem); }
.rate-tester { min-width: 0; }

/* =====================================================================
   PARKRable-inlogpagina in dezelfde opzet als Car-L en C-Park (16-10-2026; de oude stijl staat in docs/huisstijl-backup-2026-10-16.md).
   Antraciet #2D3030 met lime #D3D800, slogan "Ingenious parking solutions" in Antonio, tekst in Lexend Deca.
   ===================================================================== */
body.brand-parkrable .auth-deco { display: block; color: #D3D800; }
body.brand-parkrable .auth-deco-rings { opacity: .12; }
body.brand-parkrable .auth-deco-bays { opacity: .10; }
body.brand-parkrable .auth-split .auth-brand {
    background:
        radial-gradient(circle at 1px 1px, rgba(207, 202, 186, .16) 1.2px, transparent 1.8px) 0 0 / 30px 30px,
        radial-gradient(80% 60% at 100% 0%, rgba(211, 216, 0, .14), transparent 60%),
        radial-gradient(70% 55% at 0% 100%, rgba(0, 0, 0, .35), transparent 65%),
        linear-gradient(160deg, #3B3F3F 0%, #2D3030 45%, #1E2121 100%);
}
body.brand-parkrable .auth-split .auth-wordmark { font-size: clamp(2.6rem, 4.6vw, 3.8rem); }
body.brand-parkrable .auth-slogan {
    font-family: "Antonio", "Lexend Deca", sans-serif; text-transform: uppercase; font-weight: 700;
    font-size: clamp(3rem, 5.4vw, 5rem); line-height: .96; letter-spacing: .005em; max-width: 12ch;
}
body.brand-parkrable .auth-slogan em { color: #D3D800; background-image: none; }
body.brand-parkrable .auth-points li { font-family: "Lexend Deca", system-ui, sans-serif; font-weight: 500; letter-spacing: .12em;
    border-color: rgba(211, 216, 0, .28); background: rgba(211, 216, 0, .06); }

body.brand-parkrable .auth-split .auth-main, body.brand-parkrable .auth-page.auth-split {
    background:
        radial-gradient(circle at 1px 1px, rgba(45, 48, 48, .08) 1px, transparent 1.6px) 0 0 / 22px 22px,
        radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .85), transparent 70%),
        linear-gradient(180deg, #F7F5EF 0%, #ECE8DE 100%);
}
body.brand-parkrable .auth-split .auth-card h1 { font-size: 2.5rem; letter-spacing: .01em; color: #2D3030; }
body.brand-parkrable .auth-split .auth-form input:focus-visible { border-color: #2D3030; box-shadow: 0 0 0 4px rgba(211, 216, 0, .45); }
body.brand-parkrable .auth-split .auth-submit {
    color: #D3D800; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    background: linear-gradient(180deg, #3B3F3F 0%, #2D3030 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -6px rgba(45, 48, 48, .55);
}
body.brand-parkrable .auth-split .auth-link { color: #2D3030; text-decoration: underline; text-decoration-color: #D3D800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Gate-kaart: de client-app van deze gate is offline (meer client-apps op één locatie) */
.tag.tag-danger { color: #C6283A; border-color: #F1B5BE; background: #FDF0F2; }

/* Server → Belasting: back-up en bijwerken */
.ops-panel { display: flex; flex-direction: column; gap: .6rem; }
.ops-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ops-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.ops-warn { color: #B35C00; font-weight: 600; }
.ops-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ops-table code { font-size: .8rem; word-break: break-all; }

/* Mail (SMTP): verstuurde e-mails */
.mail-today { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; }
.mail-today > div { display: grid; gap: .1rem; }
.mail-today strong { font-size: 1.5rem; font-weight: 600; }
.mail-days td, .mail-days th { white-space: nowrap; }

/* Akkoord met de voorwaarden (wachtwoord kiezen en na het inloggen) */
.auth-form label.auth-terms { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; font-weight: 400; line-height: 1.45; }
.auth-split .auth-form label.auth-terms > span { font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; }
.auth-form label.auth-terms input[type="checkbox"] { width: 1.15rem; height: 1.15rem; padding: 0; margin: .15rem 0 0; flex: none; accent-color: var(--brand); }
.auth-terms a { color: var(--brand); text-decoration: underline; }
.auth-secondary { margin-top: 1rem; }
.auth-link.as-button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
