/* Ouderhulp. — rustige, professionele vormgeving. Mobile-first; toetsenbord- en schermlezervriendelijk. */
:root {
  --bg: #f5f4ef; --surface: #ffffff; --surface-2: #faf9f5; --ink: #1d2a2f; --muted: #56666c; --line: #dcdad2; --line-strong: #8b9599;
  --accent: #2f5d50; --accent-ink: #ffffff; --accent-soft: #e4efe9;
  --ok: #1b6e48; --ok-bg: #e0f1e8; --warn: #8a4f05; --warn-bg: #fbefd8; --bad: #a8201a; --bad-bg: #fbe4e1; --info: #254f7a; --info-bg: #e1ecf7;
  --radius: 12px; --gap: 12px; --focus: #2b5c8a; --page: 1440px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12181a; --surface: #1b2326; --surface-2: #172023; --ink: #e8ecec; --muted: #a3b0b3; --line: #31403f; --line-strong: #6f8083;
    --accent-soft: #1f3a33; --ok: #7fd3a8; --ok-bg: #173a2a; --warn: #f0c674; --warn-bg: #3a2e14; --bad: #ff9f97; --bad-bg: #44211e; --info: #9cc4ee; --info-bg: #1b3149; --focus: #8fbfee; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.45 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; } a { color: var(--info); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .6em 1em; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.noscript { padding: 24px; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; } .grow { flex: 1 1 auto; }
.stack > * + * { margin-top: var(--gap); }

/* Kop en inhoud */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: var(--page); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; min-width: 0; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.brand img { height: 36px; width: auto; max-width: min(160px, 38vw); object-fit: contain; flex: none; } /* schoollogo's zijn vaak breed: nooit bijsnijden */
.brand .logo { background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: var(--page); margin: 0 auto; padding: 14px 20px 64px; }
main:focus { outline: none; }
.narrow { max-width: 520px; }
main > .narrow { margin-inline: auto; }
footer.site { max-width: var(--page); margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: .9rem; }

/* Kaarten en velden */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card.soft { background: var(--surface-2); }
.card h2 { margin-bottom: .3em; }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
label.f { display: block; font-weight: 600; margin: 0 0 10px; } label.f > span { display: block; margin-bottom: 4px; }
label.f small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .5em .7em; width: 100%; min-height: 44px; }
textarea { min-height: 84px; resize: vertical; } input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type=file] { padding: .5em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 6px 0; min-height: 36px; } .check input { width: 22px; height: 22px; margin-top: 2px; }
.btn { font: inherit; font-weight: 700; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: .5em 1em; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { box-shadow: 0 2px 8px rgb(0 0 0 / .15); } .btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent); } .btn.ghost { background: transparent; border-color: transparent; color: var(--info); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; } .btn.danger.secondary { background: transparent; color: var(--bad); }
.btn.small { min-height: 36px; padding: .3em .75em; font-size: .92rem; } .btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
@media (prefers-color-scheme: dark) { .btn { color: #0c1412; } .btn.secondary, .btn.danger.secondary { color: var(--accent-soft); } .btn.secondary { border-color: var(--accent-soft); } .btn.danger { color: #1a0c0b; } }

/* Meldingen */
.banner { border-radius: 10px; padding: 9px 12px; border: 1px solid; margin: 0 0 var(--gap); } .banner > :last-child { margin-bottom: 0; }
.banner.info { background: var(--info-bg); border-color: var(--info); color: var(--ink); } .banner.warn { background: var(--warn-bg); border-color: var(--warn); } .banner.bad { background: var(--bad-bg); border-color: var(--bad); } .banner.ok { background: var(--ok-bg); border-color: var(--ok); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgb(0 0 0 / .25); animation: pop .2s ease; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Chips en statussen */
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .85rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.chip.neutral { background: var(--surface-2); border-color: var(--line); color: var(--muted); } .chip.interest { background: var(--info-bg); color: var(--info); } .chip.prov { background: var(--warn-bg); color: var(--warn); }
.chip.final { background: var(--ok-bg); color: var(--ok); } .chip.done { background: var(--accent); color: var(--accent-ink); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.must { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { .chip.done { color: #0c1412; background: var(--ok); } .chip.must { color: var(--ok); } }

/* Tabs */
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 4px 20px; max-width: var(--page); margin: 0 auto; scrollbar-width: thin; }
.tabs a { flex: none; padding: .45em .8em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a[aria-current=page] { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .tabs a[aria-current=page] { color: #0c1412; } }
/* Vanaf tabletbreedte alle tabbladen in beeld (geen verborgen laatste tab); op de telefoon horizontaal scrollen. */
@media (min-width: 760px) { .tabs { flex-wrap: wrap; overflow-x: visible; } .tabs a { padding: .5em .8em; } }

/* Tabellen */
/* In tabellen geen breuk per letter (body heeft overflow-wrap:anywhere): anders knijpt de tabel kolommen tot één letter breed. */
.table-wrap th, .table-wrap td { overflow-wrap: break-word; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; } caption { text-align: left; padding: 10px 12px; font-weight: 700; }
th, td { text-align: left; padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; } th { background: var(--surface-2); font-size: .85rem; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Ouderscherm */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } @media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .stat b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; } .stat span { font-size: .85rem; color: var(--muted); }
.progress { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; } .progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.activity { padding: 0; overflow: hidden; } .activity > header { padding: 14px 16px 6px; } .activity > header h3 { margin: 0 0 4px; }
.shift { padding: 12px 16px 16px; border-top: 1px solid var(--line); } .shift h4 { margin: 0 0 2px; font-size: 1rem; }
/* Meestal is het wel of niet: twee gelijke hoofdkeuzes; 'een deel van de tijd' is een kleinere, secundaire keuze eronder. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; border: 0; padding: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .5em .8em; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--surface); transition: background-color .15s ease, border-color .15s ease; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg label.no:has(input:checked) { background: var(--surface-2); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .seg label:has(input:checked) { color: #0c1412; } }
.seg label.part { grid-column: 1 / -1; justify-content: flex-start; min-height: 44px; padding: .3em .2em; border-color: transparent; background: none; font-weight: 500; font-size: .95rem; color: var(--link, #1f4e79); text-decoration: underline; text-underline-offset: .2em; }
.seg label.part:has(input:checked) { justify-content: flex-start; padding: .3em .8em; background: var(--surface); border-color: var(--accent); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); }
.seg label.part:has(input:checked)::before { content: '✓'; margin-right: .45em; color: var(--accent); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .times label { font-weight: 600; }
.pill-note { margin-top: 8px; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 20px; max-width: min(560px, calc(100vw - 24px)); width: 100%; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgb(10 20 20 / .5); } dialog[open] { animation: pop2 .18s ease; } @keyframes pop2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
details > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; } details ul { margin: 6px 0 0; padding-left: 1.2em; }
.list-clean { list-style: none; padding: 0; margin: 0; } .list-clean > li { padding: 10px 0; border-top: 1px solid var(--line); } .list-clean > li:first-child { border-top: 0; }
.shift-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; margin-bottom: 10px; } @media (min-width: 640px) { .shift-row { grid-template-columns: 1.4fr 1.4fr .8fr auto; align-items: end; } }
.kbd { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; font-size: .9em; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.hero { padding: 28px 0 8px; } .hero h1 { font-size: 2rem; }
.pick { display: grid; gap: 12px; margin-top: 16px; } .pick a { display: block; text-decoration: none; color: inherit; } .pick .card { transition: border-color .15s ease, transform .12s ease; } .pick a:hover .card { border-color: var(--accent); transform: translateY(-1px); }
.fade-in { animation: fade .25s ease; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .tabs, .btn, .toast { display: none !important; } body { background: #fff; color: #000; } }

.bad-text { color: var(--bad); }
.times > [data-span] { grid-column: 1 / -1; }
pre.card { white-space: pre-wrap; margin: 8px 0; font-family: inherit; }
fieldset.f { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 8px 12px; } fieldset.f legend { font-weight: 600; padding: 0 6px; }
button.card { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; } button.card:hover { border-color: var(--accent); }
[hidden] { display: none !important; }
.top .btn { white-space: nowrap; } .top-in .row { flex-wrap: wrap; justify-content: flex-end; }
.top-in { flex-wrap: nowrap; }
.table-wrap table { min-width: 560px; }
@media (max-width: 639px) { .top-in > .row > .muted { display: none; } .brand span { max-width: 52vw; } }

@media (max-width: 639px) {
  .table-wrap table { min-width: 0; } .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; } .table-wrap tr:first-child { border-top: 0; }
  .table-wrap td { display: block; border: 0; padding: 3px 12px; text-align: left !important; } .table-wrap td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
  .table-wrap td:empty { display: none; } .table-wrap caption { display: block; }
}


.acceptance-bar{padding:12px max(16px,calc((100vw - 1160px)/2));background:#fff8e9;border-bottom:1px solid #e6d9bb;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:.85rem}.eyebrow{font-weight:700;letter-spacing:.08em;text-transform:uppercase} .draft-hint{color:var(--muted)}

/* Nu te doen (beheer) */
.card.next { border-width: 2px; border-color: var(--accent); background: var(--surface); } .card.next.blocker { border-color: var(--bad); } .card.next.ok { border-color: var(--ok); }
.eyebrow { margin: 0 0 .2em; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card.next h2 { font-size: 1.35rem; margin-bottom: .6em; } .btn.big { min-height: 54px; font-size: 1.1rem; padding: .7em 1.6em; }
ol.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 12px; }
.step.done { color: var(--muted); } .step.todo { color: var(--muted); }
.step.open { background: var(--surface); border: 1px solid var(--line); padding: 12px; align-items: flex-start; } .step.open.current { border-color: var(--accent); }
.mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--line); color: var(--ink); }
.step.done .mark { background: var(--ok-bg); color: var(--ok); } .step.current .mark { background: var(--accent); color: var(--accent-ink); }
ul.issues { margin-top: 8px; } .issue { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
details.later { margin-top: 6px; } details.later summary { font-weight: 500; color: var(--muted); }
dialog.wide { max-width: min(1000px, calc(100vw - 24px)); }
.flash { animation: flash 2.5s ease; } @keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Ouder: invulroute */
.stepper-top { display: grid; gap: 8px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; } .dots button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; padding: 0; cursor: pointer; }
.dots button.done { background: var(--accent); border-color: var(--accent); } .dots button.partial { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color: var(--accent); } .dots button[aria-current=step] { outline: 3px solid var(--focus); outline-offset: 2px; }
.navbar { position: sticky; bottom: 0; z-index: 15; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin: 0 -16px; background: var(--surface); border-top: 1px solid var(--line); }
.navbar .btn { flex: 1; } .navbar .btn.prev { flex: 0 0 38%; }
.saved { font-size: .85rem; color: var(--ok); min-height: 1.2em; } .saved.err { color: var(--bad); }
.review-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; min-height: 56px; }
.review-row .mark { margin-top: 2px; } .review-row.open { border-style: dashed; }
.review-row ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; }

.card > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .sum-sub { flex-basis: 100%; } .sum-sub p { margin: 0; }

.field-err { color: var(--bad); font-weight: 600; margin: .25rem 0 0; font-size: .95rem; }
.field-err::before { content: '⚠ '; }
.review-row { position: relative; }
.review-row .edit { align-self: center; color: var(--accent, #1f5a8a); font-weight: 600; white-space: nowrap; padding-left: .5rem; }
/* Telefoon: 'Aanpassen' onder de inhoud, zodat de dienstregels de volle breedte houden. */
@media (max-width: 520px) { .review-row { flex-wrap: wrap; } .review-row .grow { flex: 1 1 calc(100% - 2.5em); min-width: 0; } .review-row .edit { flex-basis: 100%; text-align: right; padding: 4px 0 0; } }
.saved.err { color: var(--bad); font-weight: 600; }

.ok-note { background: var(--ok-bg); border: 1px solid var(--ok); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.review-row .mark { min-width: 1.5em; text-align: center; }

/* Werkdashboard, ouderhulplijsten en reactieoverzicht */
.work-list { display: grid; gap: .75rem; }
.work-item { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; background: var(--surface); display: grid; gap: .35rem; }
.work-item > p { margin: 0; }
.meter { height: .55rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.wizard-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.step-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .45rem .8rem; font: inherit; cursor: pointer; min-height: 44px; }
.step-btn.current { background: var(--accent); color: var(--accent-ink, #fff); border-color: var(--accent); font-weight: 700; }
.pick-row { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.pick-row input { margin-top: .3rem; width: 1.3rem; height: 1.3rem; flex: none; }
.summary-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.summary-dl dt { color: var(--muted); } .summary-dl dd { margin: 0; font-weight: 600; }
.preview-mail { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; overflow-x: auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.sticky-head { max-height: 70vh; overflow: auto; }
.sticky-head thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.navbar-inline { margin-top: .5rem; align-items: center; }
.filters { align-items: end; }
@media (max-width: 639px) { .sticky-head { max-height: none; } .summary-dl { grid-template-columns: 1fr; } }

.sticky-head th { white-space: nowrap; } .sticky-head table { min-width: 1000px; }
@media (max-width: 639px) { .sticky-head table { min-width: 0; } .sticky-head th { white-space: normal; } }

/* ===================== 1.4 — één samenhangend, compact ontwerp =====================
   Uitgangspunten: relevante informatie op één laptopscherm (1366×768 / 1440×900), breedte benutten,
   compacte regels i.p.v. grote kaarten, details uitklapbaar, bewerken in een zijpaneel zonder de pagina te verlaten.
   Leesbaarheid blijft: basistekst 16 px, regels in lange toelichtingen begrensd. */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.page-head h1 { margin: 0; } .page-head .sub { color: var(--muted); font-size: .92rem; margin: 2px 0 0; max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prose { max-width: 75ch; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 12px; }
.kpi { display: block; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; cursor: pointer; min-height: 0; }
.kpi b { display: block; font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .85rem; color: var(--muted); }
.kpi.act { border-color: var(--warn); background: var(--warn-bg); } .kpi.bad { border-color: var(--bad); background: var(--bad-bg); }
.kpi.zero b { color: var(--muted); }
a.kpi:hover, button.kpi:hover { border-color: var(--accent); }
.cols { display: grid; gap: 12px; align-items: start; }
@media (min-width: 1100px) { .cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.box > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.box > header h2 { margin: 0; font-size: 1rem; } .box > header .count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.box > .inner { padding: 10px 14px; }
.box .empty { padding: 8px 14px; color: var(--muted); font-size: .92rem; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 14px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows .main { flex: 1 1 260px; min-width: 0; } .rows .main b { font-weight: 650; } .rows .meta { color: var(--muted); font-size: .88rem; }
.rows .side { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.tag-info { font-size: .82rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
/* Kleine, leesbare tabel: één regel per item; datums niet opbreken; geen tweede scrollbalk */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); }
.tbl th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tbl td.when, .tbl td.nowrap { white-space: nowrap; }
.tbl tr.is-past td { color: var(--muted); }
.tbl-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--surface); }
.tbl-wrap .tbl th:first-child, .tbl-wrap .tbl td:first-child { padding-left: 14px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.filters-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 0 0 10px; }
.filters-bar label.f { margin: 0; min-width: 150px; flex: 0 1 200px; } .filters-bar label.f > span { font-size: .82rem; color: var(--muted); }
.filters-bar .check { margin: 0; min-height: 44px; align-items: center; }
.seg-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg-filter button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .3em .8em; min-height: 36px; cursor: pointer; }
.seg-filter button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* Actiemenu: één primaire knop zichtbaar, de rest in een compact menu */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; min-height: 36px; padding: .3em .7em; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--info); background: var(--surface); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > .menu-items { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .14); padding: 4px; display: grid; }
.menu-items button { font: inherit; text-align: left; background: none; border: 0; padding: .55em .8em; border-radius: 8px; cursor: pointer; color: var(--ink); min-height: 40px; }
.menu-items button:hover, .menu-items button:focus-visible { background: var(--surface-2); } .menu-items button.danger { color: var(--bad); }
/* Zijpaneel: bewerken zonder de pagina te verlaten */
dialog.panel { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(680px, 100vw); max-width: 100vw; border-radius: 0; border: 0; border-left: 1px solid var(--line); padding: 0; flex-direction: column; }
dialog.panel[open] { display: flex; }
dialog.panel[open] { animation: slide .18s ease; } @keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
dialog.panel > header h2 { margin: 0; } dialog.panel > header p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
dialog.panel > .panel-body { padding: 12px 18px; overflow-y: auto; flex: 1; }
dialog.panel > footer { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.shift-edit { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.shift-edit:first-child { border-top: 0; }
.shift-edit .need { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.shift-edit .need .check { margin: 0; } .shift-edit .need input[type=number] { width: 90px; min-height: 40px; }
@media (max-width: 560px) { .shift-edit { grid-template-columns: 1fr 1fr; } .shift-edit > :first-child { grid-column: 1 / -1; } }
/* Statuspillen met vaste betekenis (één woordenlijst, zie status.js) */
.chip { font-size: .8rem; padding: .15em .6em; }
/* Wizard: compacte voortgang en altijd bereikbare navigatie */
.wizard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.wizard-head h1 { margin: 0; font-size: 1.3rem; }
.wizard-steps { margin: 0; gap: 4px; counter-reset: wz; }
.step-btn { padding: .3rem .7rem; min-height: 36px; font-size: .9rem; }
.step-btn.done::before { content: '✓ '; color: var(--ok); }
.wizard-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; font-size: .88rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.wizard-help b { color: var(--ink); font-weight: 650; }
.wizard-foot { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; margin-top: 10px; background: var(--bg); border-top: 1px solid var(--line); }
.pick-table td.sel { width: 36px; } .pick-table input[type=checkbox] { width: 20px; height: 20px; }
.pick-table tr.is-picked { background: var(--accent-soft); }
.pick-table td .elsewhere { font-size: .8rem; color: var(--info); }
/* Planbord */
.board { display: grid; gap: 8px; }
.board-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.board-row .bh { padding: 8px 12px; border-right: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.board-row .bh b { display: inline; } .board-row .bh .meta { font-size: .85rem; color: var(--muted); }
.board-row .slots { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; align-content: flex-start; }
.slot { font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: .25em .7em; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; max-width: 100%; }
.slot.empty { border-style: dashed; color: var(--muted); }
.slot.empty:hover { border-color: var(--accent); color: var(--accent); }
.slot.prov { background: var(--warn-bg); border-color: var(--warn); }
.slot.final { background: var(--ok-bg); border-color: var(--ok); }
.slot.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot.reserve { border-style: dotted; }
.slot .t { font-size: .8rem; color: var(--muted); } .slot.done .t { color: inherit; }
.slot.add { border-style: dashed; color: var(--info); }
@media (max-width: 760px) { .board-row { grid-template-columns: 1fr; } .board-row .bh { border-right: 0; border-bottom: 1px solid var(--line); } }
.cand { list-style: none; margin: 0; padding: 0; }
.cand li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.cand li:first-child { border-top: 0; } .cand .who { flex: 1; min-width: 0; } .cand .who .meta { font-size: .85rem; color: var(--muted); }
.cand .warn { color: var(--warn); font-size: .85rem; }
/* Ouder: duidelijke selectie (nog niet beantwoord / ik kan / ik kan niet) */
.seg label:not(.part):has(input:checked) > span::before { content: '✓\00a0'; } /* vinkje bij de gekozen knop */
.seg label.no:has(input:checked) { background: var(--surface-2); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; }
.seg label:not(.part):has(input:checked) { font-weight: 700; }
.saved.ok { color: var(--ok); font-weight: 600; }
.progress-steps { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.progress-steps button { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0; cursor: pointer; }
.progress-steps button.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.progress-steps button.partial { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.progress-steps button.skipped { border-style: dashed; }
.progress-steps button[aria-current=step] { outline: 3px solid var(--focus); outline-offset: 2px; color: var(--ink); }
.progress-steps button.done[aria-current=step] { color: var(--accent-ink); }
.mand-list { margin: 6px 0 0; padding-left: 1.1em; }
/* Punten */
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 80px; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); } .bar > i.prov { background: var(--warn); opacity: .7; }
.mstate { font-size: .82rem; } .mstate.ok { color: var(--ok); } .mstate.no { color: var(--warn); } .mstate.open { color: var(--bad); }
@media (max-width: 639px) {
  main { padding: 12px 12px 72px; } .top-in { padding: 8px 12px; } .tabs { padding: 4px 12px; }
  .rows > li { padding: 8px 12px; } .box > header { padding: 8px 12px; }
  .tbl-wrap { border: 0; background: none; overflow: visible; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; } .tbl thead { position: absolute; left: -9999px; }
  .tbl tr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; padding: 6px 0; }
  .tbl td { border: 0; padding: 2px 12px; } .tbl td[data-label]:not([data-label=""])::before { content: attr(data-label) ': '; color: var(--muted); font-size: .82rem; }
  .tbl td.num { text-align: left; } .tbl th { position: static; }
}
/* 1.4: compacte kop, testbalk en hoofdactie */
.acceptance-bar { padding: 3px max(20px, calc((100vw - var(--page)) / 2 + 20px)); font-size: .8rem; }
.acceptance-bar summary { min-height: 28px; display: flex; align-items: center; }
.top-in { padding-top: 6px; padding-bottom: 4px; }
.brand img { max-height: 40px; }
.tabs a { min-height: 36px; padding: .35em .8em; }
.card.next { padding: 10px 16px; } .card.next h2 { font-size: 1.15rem; margin: .1em 0 .15em; } .card.next p { margin: 0; }
.card.next .eyebrow { margin: 0; font-size: .75rem; }
.tbl td .btn, .tbl td details.menu { white-space: nowrap; } .tbl td { vertical-align: top; } .tbl td .meta { margin-top: 1px; }
dialog.panel textarea { min-height: 60px; }
.tpls { display: grid; gap: 6px; }
.tpl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.tpl input { margin-top: 4px; width: 18px; height: 18px; } .tpl b { display: block; } .tpl .muted { display: block; }
.tpl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
/* Ouderkeuze: Ik kan = groen met ✓; Ik kan niet = duidelijk gekozen, neutraal (nooit rood); niet gekozen = beide neutraal */
.seg label.yes:has(input:checked) { background: #1e6b45; border-color: #1e6b45; color: #fff; }
.seg label.no:has(input:checked) { background: #dfe3e6; border-color: #3b4650; color: #1b232a; box-shadow: inset 0 0 0 1.5px #3b4650; }
@media (prefers-color-scheme: dark) { .seg label.yes:has(input:checked) { background: #2f8f5f; color: #fff; } .seg label.no:has(input:checked) { background: #3a434b; color: #f2f4f5; border-color: #c9d1d7; box-shadow: inset 0 0 0 1.5px #c9d1d7; } }
.stepper-top .legend { margin-top: 4px; }
.board-row { grid-template-columns: minmax(260px, 420px) 1fr; }
.board-row .bh { padding: 6px 12px; } .board-row .slots { padding: 6px 10px; align-items: center; }
.board section > h2 { margin: 6px 0 0; } .board .stack { gap: 6px; }
.board-row .bh .chip { font-size: .75rem; }
.tbl tr[hidden] { display: none !important; } .tbl tr.detail td { background: var(--surface-2); padding: 0; }
.filters-bar > input[type=search] { flex: 1 1 220px; max-width: 340px; min-height: 40px; }
.navbar { margin: 0 -20px; padding-left: 20px; padding-right: 20px; } @media (max-width: 639px) { .navbar { margin: 0 -12px; padding-left: 12px; padding-right: 12px; } }
@media (max-width: 760px) { .board-row { grid-template-columns: 1fr; } .board-row .bh { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 639px) { .tbl td.when, .tbl td.nowrap, .tbl td .btn { white-space: normal; } }
@media (max-width: 639px) { .filters-bar { gap: 6px 8px; } .filters-bar label.f { flex: 1 1 calc(50% - 8px); min-width: 0; } .page-head .actions .btn { flex: 0 1 auto; } }

/* Wisselen tussen Mijn klas en Schoolbeheer (één account, twee omgevingen) */
.role-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.role-switch .rs-opt { padding: .4em .9em; min-height: 36px; display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; }
.role-switch .rs-opt.on { background: var(--accent); color: var(--accent-ink); }
.role-switch .rs-opt:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (max-width: 520px) { .top-in .row { flex-wrap: wrap; justify-content: flex-end; } .role-switch .rs-opt { padding: .35em .7em; font-size: .85rem; } }
.hero-logo { display: block; max-height: 88px; max-width: min(260px, 70%); width: auto; height: auto; margin: 0 0 12px; object-fit: contain; }

/* ---------- Kerstboeken ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.subtabs a { padding: .45em .8em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.subtabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.subtabs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-books { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; border: 2px solid var(--accent); }
.tile-books b { display: block; font-size: 1.1rem; }
.tile-books .muted { display: block; }
.tile-icon { font-size: 2rem; line-height: 1; }
.books-parent .lead { font-size: 1.1rem; margin: .3em 0; }
.kid-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kid-card { display: grid; gap: 8px; }
.kid-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.kid-head h2 { margin: 0; font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; }
.kv dt { color: var(--muted, #555); }
.kv dd { margin: 0; }
.book-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .book-grid { grid-template-columns: repeat(4, 1fr); } }
.book-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; }
.book-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (min-width: 560px) { .book-card { grid-template-columns: 1fr; } .book-card .book-cover { justify-self: center; } }
.book-card h3 { margin: 0 0 2px; font-size: 1.02rem; overflow-wrap: break-word; }
.book-card p { margin: .2em 0; }
.book-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.book-body .btn { margin-top: auto; min-height: 48px; }
.book-cover { width: 96px; aspect-ratio: 180 / 260; }
@media (min-width: 560px) { .book-cover { width: 150px; } }
.book-cover.small { width: 90px; }
.book-cover img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: var(--surface-2, #f3f3f3); }
.book-fallback { width: 100%; height: 100%; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; background: linear-gradient(160deg, var(--accent), #1d3d34); color: #fff; text-align: center; box-sizing: border-box; }
.bf-title { font-weight: 700; font-size: .85rem; overflow-wrap: anywhere; }
.bf-author { font-size: .72rem; opacity: .9; }
.sticky-next { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg, #fff) 30%); }
.confirm-card { display: grid; grid-template-columns: max-content 1fr; gap: 16px; align-items: start; }
.filters select { min-width: 0; max-width: 100%; }
.print-sheet h1 { font-size: 1.4rem; }
table.print { width: 100%; border-collapse: collapse; }
table.print th, table.print td { border: 1px solid #999; padding: 6px 8px; text-align: left; }
table.print .num { text-align: right; }
table.print td.box { text-align: center; font-size: 1.2rem; width: 6em; }
@media print {
  header.top, .acceptance-bar, .no-print, .subtabs, .page-head, nav.tabs, .skip, #toast { display: none !important; }
  main { padding: 0 !important; }
  body { background: #fff; color: #000; }
}
.bf-title, .book-card h3, .kv dd, .kid-head h2 { overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 520px) { .confirm-card { grid-template-columns: 1fr; } .confirm-card .book-cover { justify-self: center; } .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; font-size: .9rem; } }
.kid-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.child-fields { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
/* Statuslabels die de nieuwere schermen gebruiken: aandacht, in voorbereiding, in lijst */
.chip.needs_info { background: #fff3d6; color: #6b4a00; border-color: #e8c66a; }
.chip.preparing { background: #e8f0fb; color: #1f4e79; border-color: #b9cfea; }
.chip.in_list { background: #eef4f1; color: #24493f; border-color: #b8d3c8; }
@media (prefers-color-scheme: dark) { .chip.needs_info { background: #3a2f12; color: #f3d48a; } .chip.preparing { background: #1c2b3d; color: #b9d3f3; } .chip.in_list { background: #1d2c27; color: #b8d3c8; } }
.pick-class { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; min-height: 64px; border: 1.5px solid var(--line-strong); }
.pick-class b { font-size: 1.15rem; }
.pick-class:hover, .pick-class.on { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick-class:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.edit-code { font: 700 1.8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center; padding: .4em; border: 2px dashed var(--accent); border-radius: 10px; margin: 0; }
.link-box { font: .95rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; background: var(--surface-2, #f3f3f3); padding: .6em .8em; border-radius: 8px; margin: 0; }
.ss-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.mine { border-color: var(--accent); }
.mine h2 { font-size: 1.05rem; margin: 0; }
