/* Waakpunt. Kleuren uit de MediePDMS-huisstijl: praktijkblauw + medisch teal. */
:root {
  color-scheme: light dark;
  --blauw: #003A64;
  --blauw-diep: #002C4C;
  --hoofd: #014A79;
  --hoofd-hover: #0E5E92;
  --teal: #008487;
  --teal-licht: #2BC0C4;
  --bg: #F3F6F9;
  --vlak: #FFFFFF;
  --vlak-2: #EEF3F7;
  --hover: #E7EFF5;
  --lijn: #D9E2E9;
  --tekst: #13222F;
  --zacht: #586979;
  --fout: #B3261E;
  --fout-bg: #FCEBE9;
  --goed: #0B6B4F;
  --goed-bg: #E2F4EC;
  --schaduw: 0 1px 2px rgb(0 44 76 / .08), 0 8px 24px rgb(0 44 76 / .10);
  --rond: 8px;
  --balk: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hoofd: #2277AC;
    --hoofd-hover: #4A97CB;
    --teal: #2BC0C4;
    --bg: #0D1720;
    --vlak: #15212C;
    --vlak-2: #1C2B38;
    --hover: #223443;
    --lijn: #2A3B4A;
    --tekst: #E6EEF4;
    --zacht: #9DB0BF;
    --fout: #FFB4AB;
    --fout-bg: #4A1D1A;
    --goed: #7FDDBA;
    --goed-bg: #123A2E;
    --schaduw: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .45);
  }
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--hoofd); }
hr { border: 0; border-top: 1px solid var(--lijn); margin: 4px 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.verborgen, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zacht { color: var(--zacht); }
.klein { font-size: 12.5px; }
.foutkleur { color: var(--fout); }
.geen-terugloop { white-space: nowrap; }
.tussenruimte { margin-top: 20px; }

.ikoon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ── Knoppen en velden ─────────────────────────────────────────────────── */

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 13px;
  border: 1px solid var(--lijn); border-radius: var(--rond);
  background: var(--vlak); color: var(--tekst);
  font: inherit; font-weight: 550; text-decoration: none; cursor: pointer;
}
.knop:hover:not(:disabled) { background: var(--hover); }
.knop:disabled { opacity: .55; cursor: default; }
.knop-hoofd { background: var(--hoofd); border-color: var(--hoofd); color: #fff; }
.knop-hoofd:hover:not(:disabled) { background: var(--hoofd-hover); }
.knop-gevaar { background: var(--fout); border-color: var(--fout); color: var(--vlak); }
.knop-gevaar:hover:not(:disabled) { background: var(--fout); filter: brightness(1.1); }
.knop-breed { width: 100%; min-height: 42px; }

.ikoonknop {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;
}
.ikoonknop:hover { background: var(--hover); }

.tekstknop {
  display: block; padding: 2px 0; margin-top: 10px;
  border: 0; background: none; color: var(--hoofd); font: inherit; cursor: pointer; text-decoration: underline;
}

input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select {
  width: 100%; min-height: 40px; padding: 0 11px;
  border: 1px solid var(--lijn); border-radius: var(--rond);
  background: var(--vlak); color: var(--tekst); font: inherit;
}
textarea {
  width: 100%; padding: 9px 11px; resize: vertical;
  border: 1px solid var(--lijn); border-radius: var(--rond);
  background: var(--vlak); color: var(--tekst); font: inherit;
}
input[readonly] { background: var(--vlak-2); color: var(--zacht); }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--hoofd); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 550; }
.form small { font-weight: 400; color: var(--zacht); }
.veldfout { padding: 9px 11px; border-radius: var(--rond); background: var(--fout-bg); color: var(--fout); }

/* ── Inlogschermen ─────────────────────────────────────────────────────── */

.aanmeld { display: grid; grid-template-columns: minmax(280px, 40%) 1fr; min-height: 100%; }

.aanmeld-merk {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 48px clamp(28px, 5vw, 72px);
  background: linear-gradient(160deg, var(--blauw) 0%, var(--blauw-diep) 100%);
  color: #fff;
}
.merk-groot { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 650; letter-spacing: -.01em; }
.merk-groot .ikoon { width: 34px; height: 34px; color: var(--teal-licht); }
.aanmeld-merk p { max-width: 34ch; font-size: 16px; color: #C9DDEB; }
.aanmeld-merk ul { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; color: #DCE9F2; }
.aanmeld-merk li { display: flex; align-items: center; gap: 10px; }
.aanmeld-merk li .ikoon { color: var(--teal-licht); }

.aanmeld-paneel { display: grid; place-items: center; padding: 32px 16px; }
.aanmeld-kaart { width: min(400px, 100%); display: grid; gap: 14px; }
.aanmeld-kaart h1 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.qr { display: block; width: 200px; height: 200px; border-radius: var(--rond); image-rendering: pixelated; }
.handmatig summary { color: var(--hoofd); cursor: pointer; }
.handmatig code { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 6px; background: var(--vlak-2); word-break: break-word; }

.herstelcodes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  margin: 0; padding: 12px 14px;
  border: 1px solid var(--lijn); border-radius: var(--rond); background: var(--vlak);
  list-style: none;
}

/* ── De schil ──────────────────────────────────────────────────────────── */

.schil {
  display: grid; height: 100dvh;
  grid-template: var(--balk) minmax(0, 1fr) / 264px minmax(0, 1fr) auto;
  grid-template-areas: "balk balk balk" "zij hoofd paneel";
}

.balk {
  grid-area: balk; z-index: 5;
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--blauw); color: #fff;
}
.merk { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 17px; font-weight: 650; text-decoration: none; }
.merk .ikoon { width: 22px; height: 22px; color: var(--teal-licht); }
.menu-knop { display: none; }
.menu-knop:hover { background: rgb(255 255 255 / .12); }

.zoekveld {
  position: relative; display: flex; align-items: center; flex: 1; max-width: 520px; margin: 0 auto;
  color: #C9DDEB;
}
.zoekveld .ikoon { position: absolute; left: 11px; pointer-events: none; }
.zoekveld input {
  min-height: 36px; padding-left: 36px;
  border-color: transparent; background: rgb(255 255 255 / .13); color: #fff;
}
.zoekveld input::placeholder { color: #C9DDEB; }
.zoekveld input:focus { background: #fff; color: #13222F; }

.persoon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 50%; background: var(--teal-licht); color: var(--blauw-diep);
  font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer;
}

.zijbalk {
  grid-area: zij; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px; overflow-y: auto;
  border-right: 1px solid var(--lijn); background: var(--vlak);
}
.zijkop { padding: 14px 10px 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--zacht); }
.zijlink {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px;
  border-radius: 6px; color: var(--tekst); text-decoration: none; font-weight: 500;
}
.zijlink:hover { background: var(--hover); }
.zijlink.actief { background: var(--vlak-2); color: var(--hoofd); font-weight: 650; }
.zijonder { margin-top: auto; padding-top: 12px; }
.teller { display: grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--hoofd); color: #fff; font-size: 12px; font-weight: 650; }

.tak { display: flex; align-items: center; min-height: 32px; border-radius: 6px; }
.tak:hover { background: var(--hover); }
.tak.actief { background: var(--vlak-2); }
.tak.actief a { color: var(--hoofd); font-weight: 650; }
.tak a { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 5px 6px 5px 2px; color: var(--tekst); text-decoration: none; }
.tak a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tak a .ikoon { width: 16px; height: 16px; color: var(--teal); }
.tak[data-diepte="1"] { padding-left: 14px; }
.tak[data-diepte="2"] { padding-left: 28px; }
.tak[data-diepte="3"] { padding-left: 42px; }
.tak[data-diepte="4"] { padding-left: 56px; }
.tak[data-diepte="5"], .tak[data-diepte="6"], .tak[data-diepte="7"], .tak[data-diepte="8"] { padding-left: 70px; }
.pijl { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; flex: none; border: 0; background: none; color: var(--zacht); cursor: pointer; }
.pijl .ikoon { width: 14px; height: 14px; transition: transform .12s; }
.pijl.open .ikoon { transform: rotate(90deg); }

.inhoud { grid-area: hoofd; padding: 22px clamp(16px, 3vw, 32px) 80px; overflow-y: auto; }

.paginakop { margin-bottom: 14px; }
.titelregel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.titelregel h1 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; }

.kruimels { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; margin-bottom: 6px; color: var(--zacht); font-size: 13px; }
.kruimels .ikoon { width: 13px; height: 13px; }
.kruimels a { color: var(--zacht); text-decoration: none; }
.kruimels a:hover { color: var(--hoofd); text-decoration: underline; }
.kruimels .tekstknop { margin: 0; padding: 0; text-decoration: none; }

.rechtlabel, .label, .versielabel {
  display: inline-flex; align-items: center; padding: 1px 8px;
  border-radius: 999px; background: var(--vlak-2); color: var(--zacht);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.rechtlabel-2, .rechtlabel-3, .label-goed { background: var(--goed-bg); color: var(--goed); }
.label-fout { background: var(--fout-bg); color: var(--fout); }
.label-beurt { background: var(--hoofd); color: #fff; }
.versielabel { margin-left: 2px; padding: 0 6px; font-size: 11px; }

.opdrachtbalk { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 0; }
.opdrachtbalk:empty { display: none; }
.opdrachtbalk input { max-width: 360px; min-height: 36px; }

.selectiebalk {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding: 7px 12px;
  border-radius: var(--rond); background: var(--vlak-2);
}
.selectiebalk strong { margin-right: 6px; }

.tabelvak { overflow-x: auto; border: 1px solid var(--lijn); border-radius: var(--rond); background: var(--vlak); }

.lijst { width: 100%; border-collapse: collapse; }
.lijst th {
  padding: 8px 10px; border-bottom: 1px solid var(--lijn);
  text-align: left; font-size: 12.5px; font-weight: 600; color: var(--zacht); white-space: nowrap;
}
.lijst td { padding: 7px 10px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.lijst tbody tr:last-child td { border-bottom: 0; }
.lijst tbody tr:hover { background: var(--hover); }
.lijst tr.doel { background: var(--vlak-2); outline: 2px dashed var(--teal); outline-offset: -2px; }

.kolomknop { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.kolomknop .ikoon { width: 12px; height: 12px; }
.kolom-kies { width: 36px; padding-right: 0 !important; }
.kolom-actie { width: 44px; padding: 2px 6px !important; text-align: right; }
.kolom-smal { width: 90px; white-space: nowrap; }
.kolom-naam { min-width: 200px; overflow-wrap: anywhere; }
td.kolom-breed { white-space: nowrap; }

.naamlink {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 0;
  border: 0; background: none; color: var(--tekst); font: inherit; font-weight: 500; text-align: left; text-decoration: none;
}
a.naamlink, button.naamlink { cursor: pointer; }
a.naamlink:hover .naam, button.naamlink:hover .naam { color: var(--hoofd); text-decoration: underline; }

.mapicoon { display: grid; place-items: center; width: 32px; height: 26px; flex: none; color: var(--teal); }
.mapicoon .ikoon { width: 22px; height: 22px; }

.tegel {
  display: grid; place-items: center; width: 32px; height: 26px; flex: none;
  border-radius: 4px; background: var(--vlak-2); color: var(--zacht);
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
}
.tegel-pdf { background: #FBE4E2; color: #A4261D; }
.tegel-woord { background: #DFEBFA; color: #1A56A8; }
.tegel-reken { background: #DDF3E6; color: #17703F; }
.tegel-dia { background: #FCE9DC; color: #B14A12; }
.tegel-beeld { background: #EEE4F8; color: #6A3BA8; }
.tegel-archief { background: #F6EFD9; color: #806413; }

@media (prefers-color-scheme: dark) {
  .tegel-pdf { background: #4A1F1C; color: #FFB4AB; }
  .tegel-woord { background: #1B3353; color: #A9CBFA; }
  .tegel-reken { background: #173B28; color: #9BE2B8; }
  .tegel-dia { background: #482A16; color: #FBC39E; }
  .tegel-beeld { background: #33264A; color: #D6BEF6; }
  .tegel-archief { background: #3D3314; color: #E9D48C; }
}

.leeg { display: grid; place-items: center; padding: 28px 0; }
.leeg-kader {
  display: grid; justify-items: center; gap: 8px; width: min(520px, 100%); padding: 44px 28px;
  border: 2px dashed var(--lijn); border-radius: 12px; background: var(--vlak); text-align: center;
}
.leeg-kader.geen-rand { border-color: transparent; background: transparent; }
.leeg-kader .ikoon { width: 30px; height: 30px; color: var(--teal); }
.leeg-kader h2 { font-size: 17px; font-weight: 650; }
.leeg-kader p { color: var(--zacht); max-width: 42ch; }

/* ── Paneel rechts ─────────────────────────────────────────────────────── */

.paneel {
  grid-area: paneel; display: flex; flex-direction: column; width: 380px;
  border-left: 1px solid var(--lijn); background: var(--vlak); overflow: hidden;
}
.paneel-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--lijn); }
.paneel-kop h2 { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.paneel-inhoud { display: grid; gap: 14px; align-content: start; padding: 16px 18px; overflow-y: auto; }
.paneel-inhoud h3 { font-size: 13px; font-weight: 650; }
.detailknoppen { display: flex; flex-wrap: wrap; gap: 8px; }

.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.gegevens dt { color: var(--zacht); }
.gegevens dd { margin: 0; overflow-wrap: anywhere; }

.versies { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.versies li { padding-bottom: 10px; border-bottom: 1px solid var(--lijn); }
.versies li:last-child { border-bottom: 0; }
.versieknoppen { display: flex; gap: 6px; margin-top: 6px; }
.versieknoppen .knop { min-height: 30px; padding: 0 9px; font-size: 12.5px; }

.personen { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.persoonrij { display: grid; grid-template-columns: minmax(0, 1fr) 158px; align-items: center; gap: 10px; }
.persoonrij > div { overflow-wrap: anywhere; }
.persoonrij select { min-height: 34px; padding: 0 6px; font-size: 13px; }

.uitleg { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; padding: 12px; border-radius: var(--rond); background: var(--vlak-2); font-size: 12.5px; }
.uitleg dt { font-weight: 650; }
.uitleg dd { margin: 0; color: var(--zacht); }

/* ── Menu, dialogen, meldingen ─────────────────────────────────────────── */

.menu {
  position: fixed; z-index: 50; min-width: 200px; padding: 5px;
  border: 1px solid var(--lijn); border-radius: var(--rond); background: var(--vlak); box-shadow: var(--schaduw);
}
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px;
  border: 0; border-radius: 5px; background: none; color: var(--tekst); font: inherit; text-align: left; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); }
.menu-item.gevaar { color: var(--fout); }

.dialoog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0;
  border: 1px solid var(--lijn); border-radius: 12px; background: var(--vlak); color: var(--tekst); box-shadow: var(--schaduw);
}
.dialoog[open] { display: flex; flex-direction: column; }
.dialoog::backdrop { background: rgb(0 29 51 / .5); }
.dialoog-smal { width: min(440px, calc(100vw - 32px)); }
.dialoog-breed { width: min(680px, calc(100vw - 32px)); }
.dialoog-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 20px; }
.dialoog-kop h2 { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.dialoog-inhoud { display: grid; gap: 12px; padding: 4px 20px 16px; overflow-y: auto; }
.dialoog-voet { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--lijn); }

.dialoog-voorbeeld { width: min(1100px, calc(100vw - 32px)); height: calc(100dvh - 48px); }
.dialoog-voorbeeld .dialoog-inhoud { flex: 1; min-height: 0; padding: 0; }
.voorbeeld-vak { display: grid; place-items: center; height: 100%; min-height: 0; overflow: auto; background: var(--vlak-2); }
.voorbeeld-vak img { max-width: 100%; max-height: 100%; }
.voorbeeld-vak iframe { width: 100%; height: 100%; border: 0; }
.voorbeeld-vak pre { align-self: start; justify-self: stretch; margin: 0; padding: 16px 20px; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.dialoog-editor { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.dialoog-editor .dialoog-kop { padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--lijn); }
.dialoog-editor .dialoog-kop h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialoog-editor .dialoog-inhoud { display: block; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.dialoog-editor iframe { display: block; width: 100%; height: 100%; border: 0; }

.kiezer { display: grid; gap: 8px; }
.kiezer ul { display: grid; gap: 2px; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; list-style: none; }
.kiezer li button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--tekst); font: inherit; text-align: left; cursor: pointer; }
.kiezer li button:hover { background: var(--hover); }
.kiezer li button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kiezer li .ikoon:first-child { color: var(--teal); }

.meldingen { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: grid; gap: 8px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); }
.melding { padding: 10px 14px; border-radius: var(--rond); background: var(--blauw); color: #fff; box-shadow: var(--schaduw); }
.melding-fout { background: var(--fout); color: var(--vlak); }

/* ── Uploaden ──────────────────────────────────────────────────────────── */

.droplaag {
  position: fixed; inset: var(--balk) 0 0 264px; z-index: 20;
  display: grid; place-items: center; padding: 20px;
  background: rgb(0 58 100 / .78); color: #fff; pointer-events: none;
}
.droplaag > div { display: grid; justify-items: center; gap: 10px; padding: 36px 44px; border: 2px dashed rgb(255 255 255 / .75); border-radius: 14px; font-size: 18px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.droplaag .ikoon { width: 40px; height: 40px; color: var(--teal-licht); }
.droplaag.geweigerd { background: rgb(60 20 20 / .8); }

.lade {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: min(360px, calc(100vw - 32px)); max-height: 46dvh; display: flex; flex-direction: column;
  border: 1px solid var(--lijn); border-radius: 10px; background: var(--vlak); box-shadow: var(--schaduw); overflow: hidden;
}
.lade header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--lijn); }
.lade ul { display: grid; gap: 10px; margin: 0; padding: 10px 14px; list-style: none; overflow-y: auto; }
.upload-regel { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upload-regel .naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-klaar .ikoon { color: var(--goed); }
.upload-fout .ikoon { color: var(--fout); }

progress { display: block; width: 100%; height: 6px; margin-top: 4px; border: 0; border-radius: 3px; background: var(--vlak-2); overflow: hidden; accent-color: var(--teal); }
progress::-webkit-progress-bar { background: var(--vlak-2); }
progress::-webkit-progress-value { background: var(--teal); }
progress::-moz-progress-bar { background: var(--teal); }

/* ── Kaarten (account, opslag) ─────────────────────────────────────────── */

.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; align-items: start; max-width: 1040px; }
.kaart { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--lijn); border-radius: var(--rond); background: var(--vlak); }
.kaart h2 { font-size: 15px; font-weight: 650; }
.opslagkaart { max-width: 520px; margin-top: 16px; }

/* ── Besluiten en notulen ──────────────────────────────────────────────── */

.leesvak { max-width: 820px; margin-bottom: 14px; }
.kaart-fout { border-color: var(--fout); background: var(--fout-bg); }
.doorlopend { white-space: pre-wrap; overflow-wrap: anywhere; }
.tussenkop { margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.waarschuwing { padding: 9px 11px; border-radius: var(--rond); background: var(--vlak-2); }

.kiesvakken { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.kiesvakken legend { padding: 0; margin-bottom: 5px; font-weight: 550; }
.form .kiesvakken label { display: flex; align-items: center; gap: 9px; font-weight: 400; }

.akkoorden { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.akkoorden li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.akkoorden .knop { margin-left: auto; }
.akkoord-ja, .akkoord-nee { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; }
.akkoord-ja { background: var(--goed-bg); color: var(--goed); }
.akkoord-nee { background: var(--vlak-2); color: var(--zacht); }
.akkoord-ja .ikoon, .akkoord-nee .ikoon { width: 14px; height: 14px; }

.filters { display: inline-flex; margin-left: auto; border: 1px solid var(--lijn); border-radius: var(--rond); background: var(--vlak); overflow: hidden; }
.filters button { min-height: 34px; padding: 0 12px; border: 0; background: none; color: var(--zacht); font: inherit; font-weight: 550; cursor: pointer; }
.filters button:hover { background: var(--hover); }
.filters button[aria-pressed="true"] { background: var(--vlak-2); color: var(--hoofd); }
.rij-klaar .naam { color: var(--zacht); text-decoration: line-through; }
.onderaan { display: grid; justify-items: center; margin-top: 14px; }

/* ── Telefoon en tablet ────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .paneel { position: fixed; top: var(--balk); right: 0; bottom: 0; z-index: 15; width: min(400px, 100vw); box-shadow: var(--schaduw); }
}

@media (max-width: 820px) {
  .schil { grid-template-columns: minmax(0, 1fr); grid-template-areas: "balk" "hoofd"; }
  .menu-knop { display: inline-grid; }
  .balk { gap: 8px; padding: 0 10px; }
  .merk { font-size: 0; gap: 0; }
  .zijbalk {
    position: fixed; top: var(--balk); bottom: 0; left: 0; z-index: 12; width: min(290px, 84vw);
    transform: translateX(-102%); transition: transform .16s ease; box-shadow: var(--schaduw);
  }
  .zijbalk.open { transform: none; }
  .kolom-breed { display: none; }
  .droplaag { left: 0; }
  .aanmeld { grid-template-columns: minmax(0, 1fr); }
  .aanmeld-merk { padding: 20px 16px; gap: 0; }
  .aanmeld-merk p, .aanmeld-merk ul { display: none; }
  .merk-groot { font-size: 22px; }
  .merk-groot .ikoon { width: 26px; height: 26px; }
  .aanmeld-paneel { place-items: start center; }
}
