/* Beheerdersdashboard in de huisstijl optimAIse. Laad eerst huisstijl/tokens.css en huisstijl/bundle.css.
   Alleen tokens (var(--...)): geen eigen kleuren, lettertypes, schaduwen of verlopen. Diepte komt uit
   de afwisseling van --surface en --surface-soft. Kleur is nooit het enige signaal: een status staat in tekst. */

* { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; }

/* Kop: donker, negatief icoon, het woord Beheer */
.kop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--space-3); padding: var(--space-2) var(--space-5); background: var(--surface); color: var(--ink); --focus: var(--ink); }
.kop .merk { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 0; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 600; }
.kop .merk img { display: block; height: 40px; width: 40px; }
.kop nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; font-weight: 400; }
.kop nav a { color: var(--ink); font-weight: 400; text-underline-offset: 4px; }
.kop nav strong { font-weight: 600; }
.kop .wie { margin-left: auto; font-size: 16px; font-weight: 400; color: var(--ink-muted); }

/* Stroken: wisselen af tussen --surface en --surface-soft; een kaart krijgt de andere van de twee */
main { flex: 1; }
.strook { padding: var(--space-4) max(var(--space-5), calc((100% - 1280px) / 2)); background: var(--surface); overflow-x: auto; }
.strook:nth-of-type(even) { background: var(--surface-soft); }
.strook > :first-child { margin-top: 0; }
.strook > :last-child { margin-bottom: 0; }
.kaart, .oa-bericht { background: var(--surface-soft); }
.strook:nth-of-type(even) .kaart, .strook:nth-of-type(even) .oa-bericht { background: var(--surface); }

/* Tekst: 18 px en meer in 300, kleiner in 400, titels van blokken en kaarten in 600 */
h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 var(--space-2); font-size: 26px; line-height: 1.2; font-weight: 600; }
h3 { margin: var(--space-3) 0 var(--space-1); font-size: 20px; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 var(--space-2); max-width: 920px; }
.stil { color: var(--ink-muted); }
.klein { font-size: 16px; font-weight: 400; }
h2 .klein, h2 .stil { font-weight: 400; }
.leeg { color: var(--ink-muted); }
code { font: inherit; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }

/* Links en focus: elk klikbaar element minstens 44 px, focusring 2 px effen op 2 px afstand */
a { color: var(--kers); font-weight: 500; text-underline-offset: 3px; padding-block: 10px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0 0 var(--space-2); font-size: 16px; font-weight: 400; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }

/* Tabellen: 16 px in 400, lijnen uit de tokens */
table { width: 100%; border-collapse: collapse; font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink-muted); }
tr:first-child > th { border-bottom-color: var(--line-strong); }
table + h3, table + h2 { margin-top: var(--space-4); }
td.n, th.n { text-align: right; }
td .klein, td.klein { font-size: 15px; }
th.kolomkop { color: var(--ink); font-size: 18px; border-bottom: 2px solid var(--line-strong); }
.kant-nieuw { padding-left: 14px; background: var(--surface-soft); }
.strook:nth-of-type(even) .kant-nieuw { background: var(--surface); }

/* Status: altijd tekst; het balkje ernaast geeft de soort aan */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.status::before { content: ""; flex-shrink: 0; width: 5px; height: 20px; background: var(--line-strong); }
.status.ok, .status.actief, .status.verwerkt, .status.klaar, .status.verzonden, .status.goedgekeurd, .status.review_ontvangen { font-weight: 500; }
.status.ok::before, .status.actief::before, .status.verwerkt::before, .status.klaar::before, .status.verzonden::before, .status.goedgekeurd::before, .status.review_ontvangen::before { background: var(--ink); }
.status.waarschuwing::before, .status.voorgesteld::before, .status.ontvangen::before, .status.bezig::before, .status.gepland::before, .status.vraag::before, .status.vraag_gemeld::before, .status.wacht_op_beheerder::before { background: var(--kers); }
.status.fout, .status.ongeldig, .status.mislukt, .status.verlopen, .status.afgewezen { font-weight: 600; }
.status.fout::before, .status.ongeldig::before, .status.mislukt::before, .status.verlopen::before, .status.afgewezen::before { background: var(--gloed); }
.status.proef { min-height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius-pill); }
.status.proef::before { display: none; }
h2 .status { font-size: 18px; }

/* Vraagt aandacht: eerst wat wij moeten doen, dan wat op de klant wacht */
.aandacht { margin: 0 0 var(--space-2); padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.aandacht li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 18px; border-left: 5px solid var(--gloed); border-radius: var(--radius-md); background: var(--surface-soft); font-size: 16px; font-weight: 400; }
.aandacht.klant li { border-left-color: var(--kers); }
.strook:nth-of-type(even) .aandacht li { background: var(--surface); }
.aandacht strong { font-weight: 600; }

/* Formulieren en knoppen (oa-knop uit bundle.css) */
form.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 8px 6px 0; vertical-align: middle; }
.knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.knoppen form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
td.knoppen { display: table-cell; }
td.knoppen form { margin: 0 6px 6px 0; }
.oa-knop[disabled] { border-style: dashed; border-color: var(--line-strong); color: var(--ink-muted); cursor: default; }
select, input[type=text] { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
input[type=text] { min-width: 240px; }
.melding { padding: 14px 18px; border-radius: var(--radius-md); background: var(--rookroze); color: var(--on-accent); font-size: 16px; font-weight: 400; }
.pauze { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); }
.pauze p { margin: 0; }

/* Kaarten */
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-3); }
.kaart { padding: var(--space-3); border-radius: var(--radius-lg); }
.kaart h3 { margin: 0 0 var(--space-1); }
.kaart dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 16px; font-weight: 400; }
.kaart dt { color: var(--ink-muted); }
.kaart dd { margin: 0; }

/* Bedienen: het concept zoals de ontvanger het krijgt, de beslissing ernaast */
.naast-bericht { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); gap: var(--space-4); align-items: start; }
.oa-bericht pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 18px; font-weight: 300; }
.oa-bericht dd:first-of-type { font-weight: 400; }
.oa-bericht p.klein, .oa-bericht form { font-size: 16px; font-weight: 400; }
.beslissen { display: flex; flex-direction: column; gap: var(--space-2); }
.beslissen h3 { margin: 0; }
.beslissen form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
.beslissen p { margin: 0; }
@media (max-width: 900px) { .naast-bericht { grid-template-columns: 1fr; } }

/* Flow van de reviewvragen: stappen als kaarten met een groot cijfer */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: var(--space-2); margin: 0 0 var(--space-2); }
.flowstap { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: var(--space-2) 20px 20px; border: 2px solid transparent; border-radius: var(--radius-lg); background: var(--surface-soft); color: var(--ink); font-weight: 400; text-decoration: none; }
.strook:nth-of-type(even) .flowstap { background: var(--surface); }
a.flowstap:hover { border-color: var(--line-strong); }
.flowstap.gekozen { border-color: var(--ink); }
.flowstap.optie { border: 1px dashed var(--line-strong); }
.flowgetal { font-size: 56px; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--ramp-1); }
.flowstap.goed .flowgetal { font-weight: 700; color: var(--ramp-3); }
.flowstap.aandacht .flowgetal { font-weight: 600; color: var(--kers); }
.flowtitel { font-size: 18px; font-weight: 600; }
.flowuitleg { font-size: 15px; color: var(--ink-muted); }

/* Waar in de flow: een rijtje balkjes (pictogram), het laatste gezette in gloed */
.stappen { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.picto { display: inline-flex; align-items: flex-end; gap: 5px; height: 24px; }
.picto span { display: block; width: 7px; background: var(--line); }
.picto span:nth-child(1) { height: 9px; }
.picto span:nth-child(2) { height: 14px; }
.picto span:nth-child(3) { height: 19px; }
.picto span:nth-child(4) { height: 24px; }
.picto span.aan { background: var(--ink); }
.picto span.laatste { background: var(--gloed); }

/* Kiezers: huidig of proef, venster in dagen */
.kiezer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; }
.kiezer .oa-label { padding-block: 0; font-weight: 400; }
.kiezer .oa-label.gekozen { border-width: 2px; font-weight: 600; }
.kiezer .oa-label:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 700px) {
  .kop, .strook { padding-left: var(--space-2); padding-right: var(--space-2); }
  .kop .wie { margin-left: 0; }
}
