/* app.css — Rijschool PAXX.
   Uitgangspunt: een rustige, compacte werkplek. Vlakke panelen met een dunne rand in plaats van zwevende kaarten,
   kleine koppen, dichte lijsten en tabellen. Kleur alleen waar het iets betekent (status, actie). Het herkenbare
   element is de "weg": de voortgangsbalk met middenstreep. */
@font-face { font-family: "Montserrat"; font-weight: 700 800; font-display: swap; src: local("Montserrat"), url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: local("Open Sans"), url(/fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: local("Open Sans SemiBold"), url(/fonts/open-sans-latin-600-normal.woff2) format("woff2"); }

/* ══════════════ Tokens ══════════════ */
:root {
  --paxx-blue: #27AAE1; --paxx-grey: #F1F2F2;
  --primary: #0A6F9C; --on-primary: #FFFFFF; --primary-soft: #E8F5FB;
  /* Lagen: canvas (pagina) → card (paneel) → surface-sunken (kop van tabel, hover) */
  --canvas: #F2F5F7; --card: #FFFFFF; --surface: #FFFFFF; --surface-sunken: #F6F8FA; --ink-deep: #0F1C23;
  --line: #E1E7EB; --line-strong: #C4CED5; --ink: #12303F; --ink-muted: #5F707A; --ink-zacht: #8696A0;
  --success: #1F7A3D; --success-soft: #E8F5EC; --warning: #8F5400; --warning-soft: #FFF3DB; --danger: #B42318; --danger-soft: #FDECEA;
  --rail-bg: #0E2230; --rail-hover: #163345; --rail-active: #17405A; --rail-ink: #D3E0E7; --rail-muted: #87A0AF; --rail-line: #1B3647;
  --rail-breed: 232px; --rail-smal: 64px;
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 20px; --space-8: 28px;
  --radius-sm: 5px; --radius-md: 7px; --radius-lg: 10px; --radius-pill: 999px;
  --shadow-card: none;
  --shadow-pop: 0 10px 30px rgba(14,34,48,.18), 0 1px 3px rgba(14,34,48,.08);
  --gutter: 14px; --inhoud-max: 1440px; --kop-h: 54px;
  --paneel-pad: 14px 16px; --paneel-x: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5EC2EC; --on-primary: #0F1C23; --primary-soft: #0F3243;
    --canvas: #0A161D; --card: #10212A; --surface: #0C1B23; --surface-sunken: #142832; --ink-deep: #060D11;
    --line: #1E3441; --line-strong: #36505F; --ink: #EEF2F4; --ink-muted: #9AA9B2; --ink-zacht: #6F818C;
    --success: #5FD08A; --success-soft: #113021; --warning: #F4B740; --warning-soft: #352707; --danger: #FF8A7A; --danger-soft: #3A1512;
    --rail-bg: #071219; --rail-hover: #0F2330; --rail-active: #11364A; --rail-line: #132A37;
    --shadow-pop: 0 12px 32px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
@media (min-width: 768px)  { :root { --gutter: 20px; } }
@media (min-width: 1280px) { :root { --gutter: 24px; } }
@media (min-width: 1800px) { :root { --gutter: 32px; --inhoud-max: 1680px; } }
@media (min-width: 2200px) { :root { --gutter: 40px; --inhoud-max: 2040px; } }

/* ══════════════ Basis ══════════════ */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 14px/20px var(--font-sans); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 var(--space-2); color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: 21px; line-height: 28px; font-weight: 800; }
h2 { font-size: 15px; line-height: 22px; font-weight: 700; }
h3 { font-size: 13.5px; line-height: 20px; font-weight: 700; }
a { color: var(--primary); }
p { margin: 0 0 var(--space-2); }
.muted { color: var(--ink-muted); }
.klein { font-size: 12.5px; line-height: 18px; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.verborgen { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ══════════════ Layout: zijpaneel + werkvlak ══════════════ */
.app { display: grid; grid-template-columns: var(--rail-breed) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.app.ingeklapt { grid-template-columns: var(--rail-smal) minmax(0, 1fr); }

.zijpaneel { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--rail-bg); color: var(--rail-ink); z-index: 40; overflow: hidden; }
.zp-logo { display: flex; align-items: center; height: var(--kop-h); padding: 0 16px; border-bottom: 1px solid var(--rail-line); flex: none; }
.zp-logo img { display: block; height: 30px; width: auto; }
.zp-logo .merk-klein { display: none; height: 15px; width: auto; }
.zp-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 12px; scrollbar-width: thin; scrollbar-color: var(--rail-line) transparent; }
.zp-groep { font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--rail-muted); padding: 14px 10px 4px; white-space: nowrap; }
.zp-groep:first-child { padding-top: 4px; }
.zp-link { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin: 1px 0; border-radius: var(--radius-md); color: var(--rail-ink); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.zp-link .ico { color: var(--rail-muted); width: 17px; height: 17px; }
.zp-link:hover { background: var(--rail-hover); color: #fff; }
.zp-link:hover .ico { color: var(--rail-ink); }
.zp-link.actief { background: var(--rail-active); color: #fff; }
.zp-link.actief .ico { color: var(--paxx-blue); }
.zp-link.actief::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--paxx-blue); }
.zp-link .teller { margin-left: auto; background: var(--paxx-blue); color: #0E2230; border-radius: var(--radius-pill); font-size: 10.5px; line-height: 17px; min-width: 18px; padding: 0 5px; text-align: center; font-weight: 700; }
.zp-link .teller.rood { background: #FF8A7A; }
.zp-voet { flex: none; border-top: 1px solid var(--rail-line); padding: 8px 10px; display: grid; gap: 2px; }
.zp-wie { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-md); color: var(--rail-ink); text-decoration: none; min-width: 0; }
.zp-wie:hover { background: var(--rail-hover); }
.zp-wie .tekst { min-width: 0; line-height: 17px; }
.zp-wie .tekst strong { display: block; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zp-wie .tekst > span { display: block; font-size: 11.5px; color: var(--rail-muted); white-space: nowrap; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-display); background: var(--paxx-blue); color: #0E2230; }
.zp-klap { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--rail-muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.zp-klap:hover { background: var(--rail-hover); color: #fff; }
.zp-klap .ico { transition: transform .2s ease; }

.app.ingeklapt .zp-logo { justify-content: center; padding: 0; }
.app.ingeklapt .zp-logo .merk-groot { display: none; }
.app.ingeklapt .zp-logo .merk-klein { display: block; }
.app.ingeklapt .zp-nav { padding: 8px; }
.app.ingeklapt .zp-link { justify-content: center; padding: 0; gap: 0; }
.app.ingeklapt .zp-link .tekst, .app.ingeklapt .zp-wie .tekst, .app.ingeklapt .zp-klap .tekst { display: none; }
.app.ingeklapt .zp-link.actief::before { left: -8px; }
.app.ingeklapt .zp-link .teller { position: absolute; top: 2px; right: 2px; min-width: 15px; line-height: 15px; padding: 0 4px; font-size: 9.5px; }
.app.ingeklapt .zp-groep { font-size: 0; padding: 8px 0 4px; }
.app.ingeklapt .zp-groep::after { content: ""; display: block; height: 1px; background: var(--rail-line); margin: 0 8px; }
.app.ingeklapt .zp-groep:first-child { display: none; }
.app.ingeklapt .zp-wie, .app.ingeklapt .zp-klap { justify-content: center; padding-left: 0; padding-right: 0; }
.app.ingeklapt .zp-klap .ico { transform: rotate(180deg); }
.zweeftip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink-deep); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); white-space: nowrap; transform: translateY(-50%); }

/* Werkvlak */
.werkvlak { min-width: 0; display: flex; flex-direction: column; }
.kopbalk { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--kop-h); padding: 0 var(--gutter); background: var(--card); border-bottom: 1px solid var(--line); }
.kopbalk .kruimel { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--ink-muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.kopbalk .kruimel b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.kopbalk .ruimte { flex: 1; }
.kopbalk .mobiel-logo { display: none; height: 24px; }
.zoekknop { display: flex; align-items: center; gap: 8px; height: 34px; width: min(380px, 34vw); padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-muted); font-size: 13px; text-align: left; }
.zoekknop:hover { border-color: var(--line-strong); }
.zoekknop kbd, kbd { margin-left: auto; font: 600 10.5px/1 var(--font-sans); padding: 3px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-muted); background: var(--card); }
.live-stip { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.live-stip.uit { background: var(--warning); }
.kopbalk .icoonknop { color: var(--ink); }
.hoofd { width: 100%; padding: var(--gutter); min-width: 0; }
.onderbalk { display: none; }
.scrim { display: none; }

@media (max-width: 1023px) { .zoekknop { width: auto; } .zoekknop .tekst, .zoekknop kbd { display: none; } }

/* Telefoon: zijpaneel wordt een lade, onderbalk voor de belangrijkste plekken */
@media (max-width: 767px) {
  .app, .app.ingeklapt { grid-template-columns: minmax(0, 1fr); }
  .zijpaneel { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-pop); }
  .app.lade-open .zijpaneel { transform: none; }
  .app.ingeklapt .zp-logo { justify-content: flex-start; padding: 0 16px; }
  .app.ingeklapt .zp-logo .merk-groot { display: block; } .app.ingeklapt .zp-logo .merk-klein { display: none; }
  .app.ingeklapt .zp-link { justify-content: flex-start; padding: 0 10px; gap: 10px; }
  .app.ingeklapt .zp-link .tekst, .app.ingeklapt .zp-wie .tekst { display: block; }
  .app.ingeklapt .zp-groep { font-size: 11.5px; padding: 14px 10px 4px; } .app.ingeklapt .zp-groep::after { display: none; }
  .zp-klap { display: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(6,13,17,.5); }
  .app.lade-open .scrim { display: block; }
  .kopbalk { padding: 0 8px 0 4px; gap: 4px; }
  .kopbalk .kruimel { display: none; }
  .kopbalk .mobiel-logo { display: block; }
  .onderbalk { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .onderbalk a, .onderbalk button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: var(--ink-muted); text-decoration: none; background: none; border: 0; padding: 4px 0; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .onderbalk .ico { width: 20px; height: 20px; }
  .onderbalk .actief { color: var(--primary); }
  .onderbalk .actief .ico { stroke-width: 2.2; }
}
@media (max-width: 359px) { .knop { padding: 0 10px; } }
/* Vinger in plaats van muis: tikvlakken groot genoeg, zonder alles op te blazen */
@media (pointer: coarse) { .knop { min-height: 40px; } .knop.klein { min-height: 34px; } .icoonknop { width: 40px; height: 40px; } .zp-link { height: 42px; } }

.alleen-mobiel { display: none !important; }
@media (max-width: 767px) { .alleen-mobiel { display: inline-flex !important; } .nieuwknop .tekst { display: none; } .nieuwknop { padding: 0 9px; } }
.menu.zwevend { z-index: 66; }

/* ── Snelzoeken (Ctrl+K) ── */
.palet { position: fixed; inset: 0; z-index: 65; background: rgba(6,13,17,.45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palet .doos { width: 100%; max-width: 600px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.palet .invoer { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.palet .invoer input { border: 0; background: transparent; min-height: 50px; font-size: 15px; padding: 0; }
.palet .invoer input:focus { outline: none; }
.palet ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.palet li.kop { font-size: 11.5px; font-weight: 600; color: var(--ink-muted); padding: 8px 10px 3px; }
.palet li.item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-md); cursor: pointer; }
.palet li.item .ico { color: var(--ink-muted); }
.palet li.item small { color: var(--ink-muted); margin-left: auto; font-size: 12px; white-space: nowrap; }
.palet li.item.aan { background: var(--primary-soft); }
.palet li.item.aan .ico { color: var(--primary); }
.palet .voet { display: flex; gap: 14px; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-muted); flex-wrap: wrap; }
@media (max-width: 767px) { .palet { padding: 0; align-items: stretch; } .palet .doos { max-height: none; border-radius: 0; } .palet .voet { display: none; } }

/* ── Kop van een scherm ── */
.schermkop { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); min-height: 34px; }
.schermkop h1 { margin: 0; margin-right: auto; }
.schermkop .chip { align-self: center; }
.terug { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.terug .ico { width: 15px; height: 15px; }
.terug:hover { color: var(--primary); }

/* ── Knoppen ── */
button { font: inherit; cursor: pointer; }
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 18px; text-decoration: none; white-space: nowrap; }
.knop .ico { width: 16px; height: 16px; }
.knop:hover { border-color: var(--ink-muted); background: var(--surface-sunken); }
.knop.primair { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.knop.primair:hover { filter: brightness(1.08); background: var(--primary); }
.knop.gevaar { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.knop.gevaar:hover { background: var(--danger-soft); border-color: var(--danger); }
.knop.stil { border-color: transparent; background: transparent; }
.knop.klein { min-height: 28px; padding: 0 9px; font-size: 12.5px; gap: 5px; }
.knop.klein .ico { width: 15px; height: 15px; }
.knop:disabled { opacity: .5; cursor: default; }
.icoonknop { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-md); border: 0; background: transparent; color: inherit; }
.icoonknop:hover { background: rgba(127,127,127,.14); }
.knoppen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.knoppen > input, .knoppen > select, .schermkop > input[type=date] { width: auto; }
@supports not (color: color-mix(in srgb, red, blue)) { .knop.gevaar { border-color: var(--danger); } }

/* ── Panelen en raster ── */
.kaart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--paneel-pad); margin-bottom: var(--space-3); min-width: 0; }
.kaart > h2:first-child, .kaart > h3:first-child { margin-top: 0; }
.kaart > h2:first-child { margin-bottom: var(--space-2); }
.kaart-kop { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-2); min-height: 28px; }
.kaart-kop h2, .kaart-kop h3 { margin: 0; margin-right: auto; }
.kaart-kop > .muted, .kaart-kop > span.muted { font-size: 12.5px; }
.kaart > p:last-child, .kaart > .lesrij:last-child { margin-bottom: 0; }
.raster { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.raster.breed { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.raster > .kaart { margin-bottom: 0; }
.raster-2 { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .raster-2 { grid-template-columns: 1fr; } }
.leeg { text-align: center; padding: var(--space-6) var(--space-4); color: var(--ink-muted); }

/* Kengetallen: één strook met dunne scheidingen in plaats van losse tegels */
.kpis { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-3); }
.kpi { flex: 1 1 150px; background: var(--card); padding: 10px 14px; text-decoration: none; color: inherit; display: block; min-width: 0; }
a.kpi:hover { background: var(--surface-sunken); }
.kpi .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .waarde { font: 700 19px/26px var(--font-display); margin-top: 1px; white-space: nowrap; }
.kpi .klein { margin-top: 1px; }
.kpi.let-op .waarde { color: var(--danger); }

/* ── Chips / status ── */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: var(--radius-sm); font-size: 11.5px; line-height: 19px; font-weight: 600; background: var(--surface-sunken); color: var(--ink-muted); white-space: nowrap; border: 1px solid var(--line); }
.chip.blauw { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip.groen { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip.geel { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.chip.rood { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: var(--space-3); }
.chips button.chip, .chips label.chip { cursor: pointer; line-height: 24px; padding: 0 10px; font-size: 12.5px; border-radius: var(--radius-md); background: var(--card); }
.chips button.chip:hover { border-color: var(--line-strong); }
.chips button.chip.aan { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* ── Tabellen ── */
.tabel-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.kaart .tabel-wrap { border: 0; border-radius: 0; margin: 0 calc(-1 * var(--paneel-x)); background: transparent !important; }
.kaart .tabel-wrap:last-child { margin-bottom: -14px; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabel th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-muted); padding: 7px 12px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.kaart .tabel th { background: transparent; border-top: 1px solid var(--line); }
.tabel th:first-child, .tabel td:first-child { padding-left: var(--paneel-x); }
.tabel th:last-child, .tabel td:last-child { padding-right: var(--paneel-x); }
.tabel td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tbody tr.klik { cursor: pointer; }
.tabel tbody tr.klik:hover td { background: var(--surface-sunken); }
.tabel .r { text-align: right; font-variant-numeric: tabular-nums; }
.tabel td .chip { vertical-align: middle; }
@media (max-width: 767px) {
  .tabel.mobiel thead { display: none; }
  .tabel.mobiel tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tabel.mobiel tr:last-child { border-bottom: 0; }
  .tabel.mobiel td { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); border: 0; padding: 1px 0 !important; text-align: right; min-height: 22px; }
  .tabel.mobiel td::before { content: attr(data-label); color: var(--ink-muted); font-size: 12.5px; text-align: left; }
  .tabel.mobiel td:first-child { font-weight: 600; }
  .tabel.mobiel td:first-child::before { display: none; }
  .tabel.mobiel td:first-child { justify-content: flex-start; text-align: left; }
}

/* ── Formulieren ── */
.formulier { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.formulier .breed { grid-column: 1 / -1; }
.veld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.veld > span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.veld > span .req { color: var(--danger); }
.veld .hint { font-size: 11.5px; line-height: 16px; color: var(--ink-muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 6px 10px; min-height: 34px; width: 100%; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-zacht); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea { min-height: 72px; resize: vertical; line-height: 19px; }
input[type=checkbox] { width: 17px; height: 17px; min-height: 0; accent-color: var(--primary); box-shadow: none !important; }
input[type=radio] { box-shadow: none !important; }
input[type=color] { padding: 2px; height: 34px; }
input[type=file] { padding: 5px 8px; }
.vinkje { flex-direction: row; align-items: center; gap: var(--space-2); }
.zoek { max-width: 300px; }
.schakelaar { display: flex; align-items: center; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid var(--line); }
.schakelaar:last-child { border-bottom: 0; }
.schakelaar .tekst { flex: 1; }
.schakelaar .tekst strong { font-size: 13.5px; }
.schakelaar input { appearance: none; width: 36px; height: 20px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; cursor: pointer; flex: none; border: 0; padding: 0; min-height: 0; }
.schakelaar input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schakelaar input:checked { background: var(--primary); }
.schakelaar input:checked::after { left: 18px; }
.schakelaar input:disabled { opacity: .5; }
.melding { padding: 8px 12px; border-radius: var(--radius-md); margin-bottom: var(--space-3); background: var(--primary-soft); color: var(--ink); font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.melding.rood { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.melding.geel { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.melding.groen { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.melding .knop { margin-left: 6px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--ink-muted); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.aan { color: var(--ink); border-bottom-color: var(--primary); }

/* ── Modal en toast ── */
.achtergrond { position: fixed; inset: 0; background: rgba(6,13,17,.5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh var(--space-4); overflow-y: auto; }
.modal { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); width: 100%; max-width: 580px; padding: 16px 18px 18px; }
.modal.breed { max-width: 880px; }
.modal-kop { display: flex; align-items: center; gap: var(--space-2); margin: -4px -6px var(--space-3) 0; }
.modal-kop h2 { margin: 0; margin-right: auto; font-size: 16px; }
.modal-voet { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin: var(--space-4) -18px -18px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-sunken); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-voet .links { margin-right: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.modal h3 { margin-top: var(--space-3); }
@media (max-width: 767px) {
  .achtergrond { padding: 0; align-items: flex-end; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; overflow-y: auto; padding: 14px 14px 0; }
  .modal-voet { position: sticky; bottom: 0; margin: var(--space-3) -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; }
}
.toasts { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: var(--ink-deep); color: var(--paxx-grey); padding: 8px 14px; border-radius: var(--radius-md); box-shadow: var(--shadow-pop); font-weight: 600; font-size: 13.5px; max-width: 90vw; }
.toast.rood { background: #B42318; color: #fff; }
@media (max-width: 767px) { .toasts { bottom: 80px; } }

/* ── De weg: voortgangsbalk met middenstreep (het herkenbare PAXX-element) ── */
.weg { position: relative; height: 12px; border-radius: var(--radius-pill); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.weg > i { position: absolute; inset: 0 auto 0 0; background: var(--paxx-blue); border-radius: var(--radius-pill); }
.weg::after { content: ""; position: absolute; left: 8px; right: 8px; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 10px, transparent 10px 18px); }
.weg.dun { height: 6px; box-shadow: none; background: var(--line); } .weg.dun::after { display: none; }
.weg.rood > i { background: var(--danger); } .weg.geel > i { background: #F4B740; }
.tegoed { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tegoed .getal { font: 700 20px/26px var(--font-display); }
.tegoed .label { margin-bottom: 1px; }

/* ── Agenda ── */
.agenda { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.ag-raster { display: grid; min-width: 760px; position: relative; }
.ag-kop { position: sticky; top: 0; z-index: 3; padding: 6px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 12.5px; background: var(--card); }
.ag-kop.vandaag { color: var(--primary); }
.ag-uren { border-right: 1px solid var(--line); }
.ag-uur { height: 48px; font-size: 10.5px; color: var(--ink-zacht); text-align: right; padding: 0 6px; transform: translateY(-7px); }
.ag-dag { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 48px; cursor: copy; }
.ag-dag .werk { position: absolute; left: 0; right: 0; background: var(--primary-soft); opacity: .6; pointer-events: none; }
.ag-dag .blok { position: absolute; left: 2px; right: 2px; background: repeating-linear-gradient(45deg, var(--surface-sunken) 0 6px, var(--line) 6px 8px); border-radius: var(--radius-sm); font-size: 10.5px; padding: 2px 5px; color: var(--ink-muted); overflow: hidden; pointer-events: none; }
.ag-les { position: absolute; left: 3px; right: 3px; border-radius: var(--radius-sm); padding: 2px 5px; font-size: 11.5px; line-height: 14px; overflow: hidden; cursor: pointer; color: #0F1C23; border-left: 3px solid rgba(15,28,35,.4); }
.ag-les b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-les:hover { filter: brightness(1.05); box-shadow: 0 2px 8px rgba(14,34,48,.2); z-index: 2; }
.ag-les.aangevraagd { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px) !important; outline: 2px dashed #0F1C23; outline-offset: -2px; }
.ag-les.geannuleerd { opacity: .45; text-decoration: line-through; }
.ag-les.gegeven { filter: saturate(.55); }
.ag-nu { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.ag-balk { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: var(--space-2); }
.ag-balk select { width: auto; }
.ag-balk .chips { margin: 0; }
.legenda { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 11.5px; color: var(--ink-muted); margin-top: var(--space-2); }
.legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* ── Rijen in panelen (lessen, taken, aanmeldingen) ── */
.lesrij { display: flex; gap: var(--space-3); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.lesrij:first-child { padding-top: 2px; }
.lesrij:last-child { border-bottom: 0; padding-bottom: 0; }
.lesrij .tijd { font: 700 14px/18px var(--font-display); min-width: 46px; color: var(--ink); }
.lesrij .wat { flex: 1; min-width: 0; line-height: 18px; }
.lesrij .wat b { display: block; font-weight: 600; }
.lesrij .wat .klein, .lesrij .wat span.muted { display: block; }
.lesrij .label { font-size: 11px; }
@media (max-width: 600px) {
  .lesrij { flex-wrap: wrap; row-gap: 6px; }
  .lesrij .wat { flex: 1 1 55%; }
  .lesrij > .knoppen { width: 100%; padding-left: 58px; }
}
.kleurstip { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ── Scores (logboek) ── */
.scores { display: grid; gap: 0; }
.scorerij { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: 5px 0; border-bottom: 1px solid var(--line); }
.scorerij span { flex: 1; min-width: 180px; font-size: 13.5px; }
.sterren { display: flex; gap: 3px; }
.sterren button { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); font-weight: 700; font-size: 13px; color: var(--ink); }
.sterren button:hover { border-color: var(--primary); }
.sterren button.aan { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ── Momentkiezer (portaal) ── */
.momenten { display: grid; gap: var(--space-3); }
.momenten .dag h3 { margin-bottom: 6px; text-transform: capitalize; }
.momenten .tijden { display: flex; flex-wrap: wrap; gap: 6px; }
.momenten .tijden button { min-width: 64px; }
.momenten .tijden button.aan { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ── Inloggen / publieke schermen ── */
.inlog { min-height: 100vh; display: grid; place-items: center; padding: var(--space-4); background: var(--rail-bg); }
.inlog .doos { width: 100%; max-width: 400px; }
.inlog .logo { display: block; width: 200px; max-width: 60%; margin: 0 auto var(--space-6); }
.inlog .kaart { padding: 22px; background: var(--card) !important; border: 0; box-shadow: var(--shadow-pop); }
.inlog .kaart > * + * { margin-top: var(--space-3); }
.inlog h1 { font-size: 20px; }
.inlog .knop { width: 100%; min-height: 38px; }
.inlog .wissel { text-align: center; margin-top: var(--space-4); color: var(--paxx-grey); font-size: 13.5px; }
.inlog .wissel a { color: var(--paxx-blue); }
.inlog ol { padding-left: 20px; margin: 0; }
.inlog ol li { margin-bottom: 4px; }
.code-invoer { font: 700 24px/32px var(--font-display); letter-spacing: .3em; text-align: center; }
.geheim { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; background: var(--surface-sunken); padding: 8px 10px; border-radius: var(--radius-md); }

/* ── Staafjes in rapportages ── */
.staven { display: grid; gap: 6px; }
.staaf { display: grid; grid-template-columns: 130px 1fr auto; gap: var(--space-3); align-items: center; font-size: 13px; }
.staaf .balk { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.staaf .balk i { display: block; height: 100%; background: var(--paxx-blue); border-radius: var(--radius-pill); }
@media (max-width: 600px) { .staaf { grid-template-columns: 90px 1fr auto; } }

.gebruikermenu { position: relative; }
.menu { position: absolute; right: 0; top: 44px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); min-width: 210px; padding: 4px; z-index: 45; }
.menu a, .menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border-radius: var(--radius-sm); border: 0; background: none; color: var(--ink) !important; text-decoration: none; font-size: 13.5px; }
.menu a:hover, .menu button:hover { background: var(--surface-sunken); }
.menu .wie { padding: 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

@media print { .kopbalk, .zijpaneel, .onderbalk, .knoppen, .schermkop .knop, .tabs, .chips, .bulkbalk { display: none !important; } .app { display: block; } body { background: #fff; } .kaart { border: 1px solid #ccc; break-inside: avoid; } }

/* ── Verfijning per formaat ── */
@media (max-width: 767px) {
  :root { --paneel-pad: 12px 14px; --paneel-x: 14px; }
  .kaart .tabel-wrap:last-child { margin-bottom: -12px; }
  .kpi { flex-basis: 40%; padding: 9px 12px; }
  .kpi .waarde { font-size: 17px; line-height: 22px; }
  h1 { font-size: 19px; line-height: 26px; }
}
@media (min-width: 2200px) { .raster-2 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; } }
.kaartlink { display: inline-flex; align-items: center; gap: 3px; }
.kaartlink .ico { width: 14px; height: 14px; flex: none; }
.tabel td a { font-weight: 600; text-decoration: none; }
.tabel td a:hover { text-decoration: underline; }
.lesrij .wat a { text-decoration: none; }
.lesrij .wat a:hover { text-decoration: underline; }

/* ══════════════ Vaste app-schil: alleen de inhoud scrollt ══════════════ */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; width: 100%; }
.app { height: 100vh; height: 100dvh; }
.werkvlak { height: 100vh; height: 100dvh; overflow: hidden; }
.kopbalk { position: relative; flex: none; }
.hoofd { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-top: 16px; max-width: none; }
.hoofd > * { max-width: var(--inhoud-max); }
.tabel-wrap, .agenda, .tabs { overscroll-behavior-x: contain; }
.inlog { height: 100%; overflow-y: auto; }
button, a, .zp-link, .ag-les, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.zijpaneel, .onderbalk, .kopbalk, .tabs, .chips { -webkit-user-select: none; user-select: none; }
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px; } /* voorkomt inzoomen op iPhone */
  .hoofd { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  .kopbalk { padding-top: env(safe-area-inset-top); height: calc(var(--kop-h) + env(safe-area-inset-top)); }
}
@media (display-mode: standalone) { .zp-logo { padding-top: env(safe-area-inset-top); } }

/* ── Actiekaart van een les ── */
.lesinfo .les-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.tijd-groot { font: 800 22px/1.15 var(--font-display); }
.feiten { display: grid; grid-template-columns: 100px 1fr; gap: 5px 12px; margin: 0 0 12px; font-size: 13.5px; }
.feiten dt { color: var(--ink-muted); }
.feiten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.feiten dd.contact { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 420px) { .feiten { grid-template-columns: 1fr; gap: 0; } .feiten dt { margin-top: 6px; font-size: 12px; } }
.actieraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.actieknop { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--ink); font-weight: 600; font-size: 13px; text-align: left; text-decoration: none; }
.actieknop:hover { border-color: var(--line-strong); background: var(--surface-sunken); }
.actieknop .ico { color: var(--primary); width: 16px; height: 16px; }
.actieknop.primair { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.actieknop.primair .ico { color: var(--on-primary); }
.actieknop.gevaar { color: var(--danger); } .actieknop.gevaar .ico { color: var(--danger); }
pre.deeltekst { white-space: pre-wrap; font: inherit; font-size: 13.5px; background: var(--surface-sunken); padding: 10px; border-radius: var(--radius-md); margin: 0 0 10px; }

/* ── Keuzes (annuleren) en meldstap ── */
.keuzes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-bottom: 10px; }
.keuze { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; font-size: 13.5px; }
.keuze:hover { border-color: var(--line-strong); }
.keuze:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.keuze input { width: 16px; height: 16px; min-height: 0; margin-top: 2px; accent-color: var(--primary); flex: none; }
.keuze span { display: flex; flex-direction: column; } .keuze small { color: var(--ink-muted); font-size: 11.5px; line-height: 15px; }
.meldblok { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 12px 10px; }
.kanalen { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
.kanaal { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.kanaal:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.kanaal input { width: 15px; height: 15px; min-height: 0; accent-color: var(--primary); }
.kanaal.uit { opacity: .5; cursor: not-allowed; } .kanaal small { font-weight: 400; }
.meld-detail { display: grid; gap: 8px; }

/* ── Slepen in de agenda ── */
.ag-les[data-sleep] { cursor: grab; }
.ag-les.wordt-gesleept { opacity: .35; }
.ag-les.spook { position: fixed; z-index: 80; pointer-events: none; cursor: grabbing; box-shadow: var(--shadow-pop); opacity: .95; transform: rotate(-1deg); }
@media (max-width: 1023px) { .alleen-breed { display: none; } }

/* ── Selectie en bulkacties ── */
.bulkbalk { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 12px; margin-bottom: 10px; background: var(--rail-bg); color: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-pop); font-size: 13.5px; }
.bulkbalk .ruimte { flex: 1; }
.bulkbalk .knop { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.bulkbalk .knop:hover { background: var(--rail-hover); }
.bulkbalk .knop.gevaar { color: #FF8A7A; border-color: #FF8A7A; }
.tabel th.sel, .tabel td.sel { width: 40px; padding-right: 0; }
.tabel td.sel input, .tabel th.sel input { width: 16px; height: 16px; min-height: 0; accent-color: var(--primary); cursor: pointer; }
.tabel tr.gekozen td { background: var(--primary-soft); }
.lijstvoet { margin: 6px 2px 0; font-size: 12.5px; }
@media (max-width: 767px) {
  .tabel.mobiel.met-selectie tr { position: relative; padding-left: 44px; }
  .tabel.mobiel td.sel { position: absolute; left: 14px; top: 12px; width: auto; padding: 0 !important; }
  .tabel.mobiel td.sel::before { display: none; }
  .bulkbalk { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 31; }
}
.alleen-mobiel-tekst { display: none; } @media (max-width: 1023px) { .alleen-mobiel-tekst { display: inline; } }
.tabel tr.totaal td { font-weight: 700; border-top: 2px solid var(--ink); }

/* ══════════ Examenbord, wagenpark, taken, aftekenen, offline ══════════ */
.raster-2.breed-links { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .raster-2.breed-links { grid-template-columns: 1fr; } }
.mono, strong.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

.examenlijst { display: grid; gap: 6px; }
.examenrij { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--space-3); padding: 9px 10px 9px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); border-left: 3px solid var(--success); align-items: start; }
.examenrij.geel { border-left-color: var(--warning); }
.examenrij.rood { border-left-color: var(--danger); }
.ex-datum .dag { font: 700 12.5px/18px var(--font-display); }
.ex-datum .tijd { font: 800 17px/22px var(--font-display); color: var(--primary); }
.ex-wie b { font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; margin-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; }
.check .ico { width: 13px; height: 13px; flex: none; }
.check.goed { color: var(--ink-muted); }
.check.goed .ico { color: var(--success); }
.check.mis { color: var(--danger); font-weight: 600; }
.examenrij .ex-wie b a { text-decoration: none; }
@media (max-width: 640px) { .examenrij { grid-template-columns: 1fr; gap: 6px; } .examenrij .ex-datum { display: flex; gap: 8px; align-items: baseline; } }

/* Kenteken zoals op de auto */
.kenteken { display: inline-block; background: #F6C700; color: #111; font: 800 13px/20px var(--font-display); letter-spacing: .05em; padding: 0 8px 0 15px; border-radius: 3px; border: 1px solid #111; position: relative; text-transform: uppercase; white-space: nowrap; }
.kenteken::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: #0A3A99; border-radius: 2px 0 0 2px; }
.kenteken.klein { font-size: 11px; line-height: 16px; padding-left: 13px; }
h1 .kenteken { font-size: 17px; line-height: 26px; vertical-align: 2px; margin-right: 6px; }
.wat .kenteken, .lesrij .kenteken { align-self: flex-start; }
a.autokaart { display: block; color: inherit; text-decoration: none; }
a.autokaart:hover { border-color: var(--line-strong); background: var(--surface-sunken); }
a.autokaart.uit { opacity: .6; }
a.autokaart h2 { margin: 8px 0 0; font-size: 14px; }
a.autokaart .chips { margin: 6px 0 0; }
a.autokaart p { margin-bottom: 0; }

/* Taken */
.taakrij { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.taakrij:first-child { padding-top: 2px; }
.taakrij:last-child { border-bottom: 0; padding-bottom: 0; }
.taakrij > input[type=checkbox] { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: var(--success); cursor: pointer; }
.taakrij .wat { flex: 1; min-width: 0; line-height: 18px; }
.taakrij .wat b { font-weight: 600; }
.taakrij .chips { margin: 4px 0 0; gap: 4px; }
.taakrij.klaar .wat b { text-decoration: line-through; color: var(--ink-muted); }
.taakrij .icoonknop { flex: none; width: 28px; height: 28px; color: var(--ink-muted); }
.taakrij .icoonknop .ico { width: 15px; height: 15px; }
.taakrij .wat b a { color: var(--ink); text-decoration: none; }
.taakrij .wat b a:hover { color: var(--primary); text-decoration: underline; }

/* Handtekening */
.tekenwrap { display: grid; gap: 6px; }
.tekenwrap .knoppen { justify-content: space-between; }
canvas.tekenvlak { width: 100%; max-width: 560px; aspect-ratio: 3 / 1; height: auto; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); touch-action: none; cursor: crosshair; }
img.handtekening { max-width: 260px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.voorstel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 5px; max-height: 50vh; overflow: auto; }
.voorstel .keuze span { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex-direction: row; }
dl.feiten.compact { margin: var(--space-3) 0 0; }

/* Leerling-app */
.vriendcode { font: 800 24px/32px var(--font-display); letter-spacing: .08em; color: var(--primary); padding: 4px 0; user-select: all; }
.plek-kaart { max-width: 480px; margin: 0 auto; text-align: center; }
.plek-moment { padding: var(--space-3); margin: var(--space-3) 0; background: var(--primary-soft); border-radius: var(--radius-md); }
.plek-moment .groot { font: 800 19px/26px var(--font-display); text-transform: capitalize; }
.knop.groot { font-size: 15px; padding: 10px 20px; min-height: 44px; }
.kaart.let-op { border-left: 3px solid var(--warning); }
.prijs { font: 800 24px/30px var(--font-display); color: var(--primary); margin: 2px 0 4px; }

/* Offline */
.offline-balk { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60; background: var(--ink-deep); color: #fff; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12.5px; box-shadow: var(--shadow-pop); max-width: calc(100vw - 32px); text-align: center; }
@media (min-width: 768px) { .offline-balk { bottom: 16px; } }
html.is-offline .live-stip { background: var(--warning) !important; }
a.lesrij { color: inherit; text-decoration: none; }
a.lesrij:hover { background: var(--surface-sunken); }
a.lesrij .wat span { text-decoration: none; }
select.smal, .schermkop > select, .schermkop > input[type=month], .schermkop > input[type=date] { width: auto; min-width: 0; flex: none; }

/* QR-code bij tweestapsverificatie */
.qr-vak { display: flex; justify-content: center; margin: 10px 0 4px; }
.qr-vak svg.qr { width: min(196px, 66vw); height: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; }
details.handmatig { margin: 4px 0 12px; }
details.handmatig summary { cursor: pointer; color: var(--primary); font-size: 13px; }
details.handmatig .geheim { margin-top: 6px; }
details.kaart > summary { cursor: pointer; }
.lesrij .wat b.kenteken, .wat .kenteken { display: inline-block; width: auto; }
/* Telefoon: kengetallen als één rij die je opzij veegt, in plaats van een hoge stapel */
@media (max-width: 767px) {
  .kpis { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-left: -12px; margin-right: -12px; border-radius: 0; border-left: 0; border-right: 0; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 auto; min-width: 118px; scroll-snap-align: start; }
  .kpi:first-child { padding-left: 12px; }
  .schermkop h1 { flex: 1 1 auto; }
}
/* Kengetallen als raster: gelijke kolommen, scheidingslijnen via schaduw, lege restcellen blijven rustig wit */
@media (min-width: 768px) {
  .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 0; background: var(--card); }
  .kpi { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
}
@media (min-width: 768px) { .kpi { box-shadow: none; outline: 1px solid var(--line); } }
