/* styles.css — Doorstortingen. Tokens volgens de Xaurum-standaard (gelijk aan iso/styles.css).
 * REGELS: elke kleur, maat, radius en schaduw komt uit een token (gate tokens-test: geen hex buiten deze twee
 * blokken). Breakpoints alleen 900 (zijbalk/strook; schrijf max-width:899.98px) en 640 (telefoon).
 * Componentmaten: references/ux-en-huisstijl.md. Een bewuste afwijking hoort in docs/design-tokens.md. */

[hidden] { display: none !important; }

:root {
  color-scheme: light;
  --canvas: #eceef4; --surface: #fff; --surface-2: #f5f6fb; --surface-3: #eef0f7;
  --ink: #14161d; --ink-soft: #3c4150; --muted: #646b7a;
  --line: #e7e9f1; --line-strong: #d4d8e4;
  --primary: #5b5bd6; --primary-soft: #ececfa; --primary-strong: #4a4ac4; --primary-knop: #5b5bd6; --on-primary-soft: #4a4ac4;
  --green: #0f9d6b; --green-soft: #e7f6ef; --on-green-soft: #0a6b49;
  --amber: #9a5b00; --amber-soft: #fdf1e0; --on-amber-soft: #7c4700;
  --red: #e0364f; --red-soft: #fdecef; --on-red-soft: #b0142c;
  --toast-info: #4a4ac4; --toast-goed: #0a6b49; --toast-fout: #b0142c; --on-toast: #fff;
  --avatar-1: #ececfa; --avatar-2: #e7f6ef; --avatar-3: #fdf1e0; --avatar-4: #fdecef; --avatar-5: #eef0f7;
  --backdrop: rgba(15, 17, 23, .5);

  --font: "Segoe UI", system-ui, sans-serif;
  --text-2xs: 11px; --text-xs: 12px; --text-sm: 13px; --text-base: 14px; --text-lg: 16px; --text-xl: 20px; --text-2xl: 26px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --r-xs: 6px; --r-sm: 8px; --r-md: 11px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 40, .04), 0 2px 7px rgba(18, 20, 40, .05);
  --shadow-md: 0 6px 22px rgba(18, 20, 40, .09);
  --shadow-lg: 0 20px 54px rgba(18, 20, 40, .18);
  --zijbalk: 236px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f1117; --surface: #171a22; --surface-2: #1d212b; --surface-3: #242833;
  --ink: #eceef4; --ink-soft: #c3c8d4; --muted: #98a0b0;
  --line: #2a2f3b; --line-strong: #39404f;
  --primary: #7b7bea; --primary-soft: #262a44; --primary-strong: #9a9af2; --primary-knop: #5b5bd6; --on-primary-soft: #b4b4f5;
  --green-soft: #12291f; --on-green-soft: #5ed6a4;
  --amber-soft: #2c2011; --on-amber-soft: #e0a75c;
  --red-soft: #2d1519; --on-red-soft: #ff8fa0;
  --avatar-1: #262a44; --avatar-2: #12291f; --avatar-3: #2c2011; --avatar-4: #2d1519; --avatar-5: #242833;
}

/* ---------- basis ---------- */
* { box-sizing: border-box; }
body { margin: 0; font: var(--text-base)/1.5 var(--font); color: var(--ink); background: var(--canvas); }
h1, h2, h3 { margin: 0; }
h2 { font-size: var(--text-lg); font-weight: 650; }
p { margin: 0 0 var(--space-2); }
a { color: var(--primary-strong); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.klein { font-size: var(--text-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 500; background: var(--surface); padding: 8px 12px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
:is(a, button, select, summary, [data-action], [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-xs); }
kbd { font: 600 var(--text-2xs)/1 var(--font); padding: 3px 6px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--ink-soft); border: 1px solid var(--line); }
ul.wi, ol.wi { margin: var(--space-2) 0 0 18px; padding: 0; }
ul.wi li, ol.wi li { margin: 4px 0; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--zijbalk) minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.zijbalk { grid-row: 1 / span 2; background: var(--surface-2); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: var(--space-4); }
.merk { display: flex; align-items: center; gap: 10px; }
.merk-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); flex: none; }
.merk-naam { margin: 0; font-size: var(--text-lg); font-weight: 650; }
.merk-versie { margin: 0; font-size: var(--text-xs); }
#nav { display: grid; gap: 2px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: var(--text-base); font-weight: 550; }
#nav a:hover { background: var(--surface-3); }
#nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
.navkeuze { display: none; }
/* Menu inklappen (js/gedeeld/zijbalk.js): de knop onderaan; ingeklapt alleen de pictogrammen, gecentreerd. */
.zijbalk .xzijbalk-voet { margin-top: auto; padding: 0; }
@media (min-width: 900px) { .zijbalk { position: sticky; top: 0; height: 100vh; align-self: start; overflow-y: auto; } }
html[data-xzijbalk="in"] .zijbalk { padding-left: 8px; padding-right: 8px; }
html[data-xzijbalk="in"] #nav a { justify-content: center; padding: 9px 0; }
html[data-xzijbalk="in"] .zijbalk .merk { justify-content: center; }

.kop { display: flex; justify-content: flex-end; padding: 12px 28px; }
.top-acties { display: flex; align-items: center; gap: 10px; }
.zoekpil { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; }
@media (min-width: 900px) {
  .kop .top-acties { flex: 1; min-width: 0; }
  .zoekpil { flex: 1; min-width: 0; justify-content: flex-start; }
  .zoekpil kbd { margin-left: auto; }
}
.wie { display: flex; align-items: center; gap: 10px; }
.wie-tekst { display: grid; text-align: right; line-height: 1.25; font-size: var(--text-sm); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--text-xs); font-weight: 650; background: var(--primary-soft); color: var(--on-primary-soft); flex: none; background-size: cover; }
.tandwiel-knop { position: relative; }
.nieuw-stip { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); box-sizing: content-box; }

main { padding: 24px 28px 44px; width: 100%; min-width: 0; outline: none; }
.paginakop { margin-bottom: var(--space-4); }
.paginakop h1 { font-size: 25px; font-weight: 760; letter-spacing: -.02em; }
.paginakop h1:focus { outline: none; }
.kruimel { margin: 0 0 4px; font-size: var(--text-xs); font-weight: 650; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.onderregel { margin: 6px 0 0; font-size: var(--text-sm); }
#banners:not(:empty) { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }

@media (max-width: 899.98px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  #nav { display: none; }
  .zijbalk { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
  .navkeuze { display: block; flex: 1; min-width: 160px; }
  .kop { padding: 8px 16px; }
  main { padding: 16px 16px 40px; }
}
@media (max-width: 640px) {
  .wie-tekst { display: none; }
  .zoekpil kbd { display: none; }
  .profiel-grid { grid-template-columns: 1fr; gap: 4px; }
  .paginakop h1 { font-size: var(--text-xl); }
}

/* ---------- knoppen ---------- */
button { min-height: 36px; padding: 0 13px; font: 600 13.5px/1 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--muted); border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:hover { border-color: var(--ink-soft); background: var(--surface-3); }
button.primary { background: var(--primary-knop); color: var(--on-toast); border-color: transparent; box-shadow: 0 4px 14px var(--primary-soft); }
button.primary:hover { background: var(--primary-strong); }
button.accent { border-color: var(--primary); color: var(--primary-strong); }
button.danger { background: var(--red-soft); color: var(--on-red-soft); border-color: transparent; }
button.ghost { background: transparent; border-color: transparent; }
button.mini { min-height: 30px; font-size: var(--text-xs); padding: 0 10px; }
.icon-btn { width: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 9px; border-color: var(--line); box-shadow: var(--shadow-sm); }
button[disabled], [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.knoprij { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---------- velden ---------- */
label, .veldlabel { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { min-height: 36px; padding: 8px 11px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 100%; }
textarea { resize: vertical; }
:is(input, select, textarea):focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.veld { margin-bottom: var(--space-3); }
.veld p.num { margin: 0; min-height: 36px; padding: 8px 0; }
fieldset.vinkjes { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
label.vinkje { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
label.vinkje input { width: auto; min-height: 0; }

/* ---------- kaart, tabel, badge, lege staat, balken ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: var(--text-xs); font-weight: 650; letter-spacing: .2px; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-soft); }
.badge:empty { display: none; }
.badge.groen { background: var(--green-soft); color: var(--on-green-soft); }
.badge.amber { background: var(--amber-soft); color: var(--on-amber-soft); }
.badge.rood { background: var(--red-soft); color: var(--on-red-soft); }
.badge.paars { background: var(--primary-soft); color: var(--on-primary-soft); }
.leeg { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); background: var(--surface-2); border-radius: var(--r-md); }
.leeg p { margin: 0; }
.statusbalk { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-soft); font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.statusbalk > span { flex: 1; }
.balk-filter { background: var(--primary-soft); color: var(--on-primary-soft); }
.balk-lezen { background: var(--amber-soft); color: var(--on-amber-soft); }
.balk-letop { background: var(--red-soft); color: var(--on-red-soft); }
.balk-archief { background: var(--surface-3); color: var(--ink-soft); }

/* ---------- aanmelden en laden ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-kaart { width: min(400px, 100%); padding: 28px; text-align: center; overflow: visible; }
.login-kaart h1 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-3); }
.login-kaart details { text-align: left; margin: var(--space-2) 0; }
.login-logo { display: block; margin: 0 auto var(--space-4); height: auto; }
.logo-donker { display: none; }
html[data-theme="dark"] .logo-licht { display: none; }
html[data-theme="dark"] .logo-donker { display: block; }
.login-voet { margin: var(--space-4) 0 0; font-size: var(--text-xs); }
.laad { position: fixed; inset: 0; display: grid; place-items: center; background: var(--canvas); z-index: 90; }
.laad-kaart { display: grid; justify-items: center; gap: var(--space-3); padding: 28px; color: var(--muted); text-align: center; min-width: 260px; }
.laad-kaart p { margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--primary); animation: draai .8s linear infinite; }
.laad-spoor { width: 180px; height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.laad-balk { width: 40%; height: 100%; background: var(--primary); border-radius: var(--r-pill); animation: schuif 1.2s ease-in-out infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes schuif { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ---------- tandwiel: panelen, profiel, over ---------- */
.paneel-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); flex-wrap: wrap; }
.paneel-nav button { border: none; background: none; border-bottom: 2px solid transparent; border-radius: 0; min-height: 0; font-weight: 400; color: var(--muted); padding: 7px 11px; box-shadow: none; }
.paneel-nav button.active { color: var(--ink); font-weight: 650; border-bottom-color: var(--primary); }
.paneel-inhoud h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.paneel-inhoud h4 { margin: var(--space-4) 0 4px; font-size: var(--text-base); }
.profiel-grid { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; align-items: start; margin-top: var(--space-2); }
.profiel-grid > span { color: var(--muted); font-size: var(--text-sm); padding-top: 6px; }
.profiel-grid select { width: auto; }
table.over { margin-top: var(--space-2); font-size: var(--text-sm); }
table.over th { position: static; background: none; color: var(--muted); font-weight: 500; padding: 6px 12px 6px 0; width: 160px; vertical-align: top; }
table.over td { padding: 6px 0; }
.verbinding-regel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.verbinding-regel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.verbinding-regel.bezig .dot { background: var(--primary); }
.verbinding-regel.fout .dot { background: var(--red); }
.verbinding-regel.fout { color: var(--on-red-soft); }

/* ---------- snelzoeken ---------- */
.zoeklijst { list-style: none; margin: var(--space-2) 0; padding: 0; max-height: 320px; overflow: auto; }
.zoeklijst li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.zoeklijst li[aria-selected="true"] { background: var(--primary-soft); color: var(--on-primary-soft); }
.zoeklijst li[aria-selected="true"] .muted { color: var(--on-primary-soft); }
.zoeklijst li.geen { cursor: default; }
.zk-titel { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- dialogen, slot, versiegate en toasts ---------- */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; width: min(960px, 94vw); max-height: 92vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.smal { width: min(520px, 94vw); } dialog.breed { width: min(1200px, 96vw); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
dialog form { margin: 0; }
.dlg-h { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: var(--text-xl); }
.dlg-b { padding: 16px 20px; max-height: calc(92vh - 130px); overflow: auto; }
.dlg-f { padding: 12px 20px; background: var(--surface-2); display: flex; justify-content: flex-end; gap: 8px; }
dialog.slot-dialoog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--canvas); }
dialog.slot-dialoog[open] { display: grid; place-items: center; }
.slot-kaart { width: min(420px, 92vw); padding: 28px; text-align: center; }
.slot-kaart .knoprij { justify-content: center; margin-top: var(--space-3); }
.versie-gate { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: var(--backdrop); padding: 24px; }
.versie-gate .card { padding: 28px 32px; max-width: 420px; text-align: center; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 99; display: grid; gap: 8px; max-width: 94vw; }
.toast { padding: 10px 14px; border-radius: 12px; color: var(--on-toast); background: var(--toast-info); box-shadow: var(--shadow-md); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toast.goed { background: var(--toast-goed); } .toast.fout { background: var(--toast-fout); }
.toast button { color: var(--on-toast); background: transparent; border-color: var(--on-toast); }
.toast code { font-size: var(--text-xs); }

/* ---------- lijstschermen (begunstigden, administraties; 0.2.0) ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 550; }
.tabs a.actief { color: var(--ink); border-bottom-color: var(--primary); font-weight: 650; }
.werkbalk { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.werkbalk select { width: auto; }
.zoekveld { flex: 1 1 260px; min-width: 200px; }
.werkbalk-tekst { flex: 1; margin: 0; }
.werkbalk-knoppen { margin-left: auto; }
.tabelkaart { overflow-x: auto; }
table.lijst td { font-size: var(--text-sm); }
tr.klikbaar { cursor: pointer; }
tr.klikbaar:hover td { background: var(--surface-2); }
th.sorteer { cursor: pointer; user-select: none; white-space: nowrap; }
th.sorteer svg { vertical-align: -2px; }
td.rij-acties { white-space: nowrap; text-align: right; width: 1%; }
td.rij-acties .icon-btn { width: 30px; box-shadow: none; }
.knoprij.midden { justify-content: center; margin-top: var(--space-3); }
.knop-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: var(--r-sm); background: var(--primary-knop); color: var(--on-toast); text-decoration: none; font-weight: 600; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.tegel { display: grid; gap: 4px; padding: var(--space-4); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.tegel:hover { border-color: var(--line-strong); }
.tegel-getal { font-size: var(--text-2xl); font-weight: 760; }
.tegel-label { color: var(--muted); font-size: var(--text-sm); }
.tegel-extra { font-size: var(--text-xs); color: var(--ink-soft); }

/* ---------- bewerkdialoog (js/bewerkdialoog.js) ---------- */
.veldraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.veldraster .veld.breed { grid-column: 1 / -1; }
.veldhint { margin: 4px 0 0; }
.veldfout { margin: 4px 0 0; color: var(--on-red-soft); font-size: var(--text-xs); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--red); }
.linkknop { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-align: left; cursor: pointer; }
.linkknop:hover { background: none; }
.sectiekop { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-base); font-weight: 650; }
.subkop { margin: var(--space-3) 0 4px; font-size: var(--text-sm); }
.hint-verifieer { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--on-primary-soft); font-size: var(--text-sm); }
.hint-verifieer svg { flex: none; margin-top: 2px; }
.verklaring { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--space-3); margin: 0 0 var(--space-3); background: var(--surface-2); }
.verklaring label.vinkje { align-items: flex-start; }
.verklaring label.vinkje input { margin-top: 3px; }
.historie { margin-top: var(--space-4); }
.historie summary { cursor: pointer; font-weight: 600; }
.tabel-scroll { overflow-x: auto; max-height: 360px; margin-top: var(--space-2); }
table.klein-tabel { font-size: var(--text-xs); }
table.klein-tabel th, table.klein-tabel td { padding: 6px 8px; vertical-align: top; }
.stappen { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-3); flex-wrap: wrap; counter-reset: stap; }
.stappen li { counter-increment: stap; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
.stappen li::before { content: counter(stap) ". "; }
.stappen li.actief { background: var(--primary-soft); color: var(--on-primary-soft); }
.btwrijen { display: grid; gap: var(--space-2); justify-items: start; }
.btwrij { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.btwrij .veld { margin-bottom: 0; }
.dlg-f button.links { margin-right: auto; }

/* ---------- runs (0.3.0) ---------- */
.run-stappen li { padding: 0; }
.run-stappen li .linkknop { padding: 4px 10px; text-decoration: none; color: inherit; font-weight: inherit; }
.run-kaart { padding: var(--space-4); margin-bottom: var(--space-3); }
.run-kaart .sectiekop:first-child { margin-top: 0; }
.run-vakken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-3); }
.run-vak { padding: var(--space-4); border-style: dashed; border-width: 2px; border-color: var(--line-strong); }
.run-vak.over { border-color: var(--primary); background: var(--primary-soft); }
.run-vak .sectiekop { margin-top: 0; }
.run-bezig { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.spinner.klein-spinner { display: inline-block; width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }
.run-knopveld { display: flex; align-items: flex-end; padding-top: 22px; }
.run-tabel td { vertical-align: top; }
tr.run-totaal td { background: var(--surface-2); }
.run-onbekend { border-color: var(--red); }
.run-voet { margin: var(--space-4) 0; }
table.run-opbouw th { width: 240px; }

@media (max-width: 640px) {
  .veldraster { grid-template-columns: 1fr; }
  .run-vakken { grid-template-columns: 1fr; }
  .run-knopveld { padding-top: 0; }
  table.run-opbouw th { width: auto; }
  .werkbalk-knoppen { margin-left: 0; }
  table.lijst thead { display: none; }
  table.lijst, table.lijst tbody, table.lijst tr, table.lijst td { display: block; width: 100%; }
  table.lijst tr { border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
  table.lijst td { border: 0; padding: 3px 12px; }
  table.lijst td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--text-xs); }
  td.rij-acties { text-align: left; width: auto; }
}

@media (hover: none) { .verborgen-actie { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
