/* Studio-stijl (HANDOFF §3): achtergrond #F6F4EF, tekst #1F1E1B, accent #C0623D; Newsreader,
   Geist, Geist Mono. Telefoon eerst: het menu staat boven de inhoud en klapt in; vanaf 900px een
   vaste zijbalk zoals het canvas. Geen JavaScript. */
:root {
  --achtergrond: #F6F4EF; --tekst: #1F1E1B; --accent: #C0623D; --zacht: #6B675E; --middel: #4A4740;
  --lijn: #E2DED3; --zijbalk: #EFECE5; --actief: #E4E0D6; --wit: #FFFFFF; --fout: #8A3B1E;
  --ok: #3F8F5A; --let-op: #B58A2E;
  --kop: 'Newsreader', Georgia, serif; --body: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--achtergrond); color: var(--tekst); font-family: var(--body); font-size: 15px; line-height: 1.45; }
a { color: var(--tekst); }
a:hover { color: #000; }
h1, h2 { font-family: var(--kop); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--zacht); text-transform: uppercase; letter-spacing: 0.06em; }
.zacht { color: var(--zacht); }
.sterk { font-weight: 500; }
.mono { font-family: var(--mono); font-size: 12px; }
.accent { color: var(--accent); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

.app { display: flex; flex-direction: column; min-height: 100vh; }
.zijbalk { background: var(--zijbalk); border-bottom: 1px solid var(--lijn); padding: 12px 14px; }
.merk-rij { display: flex; align-items: center; justify-content: space-between; }
.merk { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; padding: 0 6px; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.menu-schakel { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-knop { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #DCD7CB; border-radius: 10px; background: #FBFAF7; cursor: pointer; font-size: 14px; }
.menu-schakel:focus-visible ~ .merk-rij .menu-knop { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu { display: none; flex-direction: column; gap: 2px; padding-top: 10px; }
.menu-schakel:checked ~ .menu { display: flex; }
.menu-item { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; }
a.menu-item:hover { background: var(--actief); }
.menu-item[aria-current="page"] { background: var(--actief); font-weight: 500; }
.menu-item.uit { color: #8F8A7F; }
.teller, .noot { font-size: 13px; color: var(--zacht); }
.noot { font-size: 12px; font-style: italic; }
.groep { font-size: 12px; color: var(--zacht); padding: 16px 12px 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.voet { margin-top: 16px; padding: 8px 12px 4px; display: flex; flex-direction: column; gap: 10px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--zacht); }
.stip { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.let-op .stip { background: var(--let-op); }
.status.fout .stip { background: var(--fout); }
.uitloggen button { min-height: 44px; width: 100%; border: 1px solid #DCD7CB; border-radius: 10px; background: #FBFAF7; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }

.inhoud { flex: 1; min-width: 0; padding: 28px 16px 40px; display: flex; justify-content: center; }
.kolom { width: 100%; max-width: 940px; display: flex; flex-direction: column; gap: 28px; }
.kop { display: flex; flex-direction: column; gap: 8px; }
.kop h1 { font-size: 34px; line-height: 1.1; }
.intro { margin: 0; font-size: 17px; color: var(--middel); }
.raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.beslissing { flex: 999 1 420px; min-width: 0; }
.beslissing h2 { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--zacht); }
.labels { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--middel); }
.label { background: #F1EEE7; border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; }
.zij { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.zij section.lijn { border-top: 1px solid var(--lijn); padding-top: 18px; }
.regel { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; overflow-wrap: anywhere; }
.regel .zacht { font-size: 13px; }
.rij { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.recent li { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.recent .zacht { font-size: 13px; }
.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--tekst); color: var(--wit); text-decoration: none; font-weight: 500; }
.knop:hover { color: var(--wit); background: #000; }
.fout h1 { font-size: 30px; }
.fout { border-color: #E5C9BC; }

.inlog { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.inlog-kaart { width: 100%; max-width: 400px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.inlog-kaart h1 { font-size: 34px; }
.melding { margin: 0; padding: 10px 12px; border-radius: 10px; background: #F7E9E2; color: var(--fout); font-size: 14px; }

@media (min-width: 900px) {
  .app { flex-direction: row; }
  .zijbalk { width: 248px; flex: 0 0 248px; border-bottom: 0; border-right: 1px solid var(--lijn); padding: 22px 14px; display: flex; flex-direction: column; }
  .menu-knop { display: none; }
  .menu { display: flex; flex: 1; padding-top: 14px; }
  .voet { margin-top: auto; }
  .inhoud { padding: 64px 40px 48px; }
  .kop h1 { font-size: 44px; }
  .kaart { padding: 26px; }
  .beslissing h2 { font-size: 28px; }
}

/* W5a: systeemschermen (Agents, Standaard, Bronregister, Hoe het werkt). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--lijn); border-radius: 999px; background: var(--wit); text-decoration: none; font-size: 13px; }
.chip[aria-current="true"] { background: var(--tekst); border-color: var(--tekst); color: var(--wit); }
.chip[aria-current="true"] .zacht { color: #D8D4CB; }
.lijst-detail { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.keuzelijst { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.keuze { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 14px; border: 1px solid var(--lijn); border-radius: 12px; background: var(--wit); text-decoration: none; overflow-wrap: anywhere; }
.keuze .zacht { font-size: 13px; }
.keuze[aria-current="true"] { border-color: var(--tekst); box-shadow: inset 3px 0 0 var(--accent); }
.keuze-kop, .bron-kop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.detail { flex: 999 1 420px; min-width: 0; }
.detail h2 { font-size: 26px; overflow-wrap: anywhere; }
.detail section { border-top: 1px solid var(--lijn); padding-top: 14px; }
.velden { margin: 0; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.velden dt { color: var(--zacht); }
.velden dd { margin: 0; overflow-wrap: anywhere; }
.tekstblok { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bronnen-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bron { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; font-size: 14px; }
.status-label { flex: none; font-size: 12px; font-weight: 500; border-radius: 6px; padding: 2px 8px; background: #EFECE5; color: var(--middel); }
.status-label.s-actief, .status-label.s-verbonden { background: #E4EEE9; color: #24493D; }
.status-label.s-wacht_op_koppeling, .status-label.s-gepland { background: #F5ECD9; color: #6B4A12; }
.status-label.s-te_valideren { background: #E6E9F4; color: #2E3E78; }
.veldgroep h4 { margin: 8px 0 0; font-size: 15px; font-weight: 500; }
.bouwsteen h2 { font-size: 24px; }
details.kaart summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
/* Pakket W5b: Resultaten (tabs, tegels, lijst, meeting-detail en notes). */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--lijn); margin-top: -12px; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; font-size: 15px; }
.tab[aria-current="page"] { border-bottom-color: var(--tekst); font-weight: 600; }
.tab.uit { color: #8F8A7F; }
.tab-teller { font-size: 12px; font-weight: 600; color: var(--wit); background: var(--tekst); border-radius: 999px; padding: 1px 7px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.tegel { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tegel-getal { font-family: var(--kop); font-size: 28px; line-height: 1.1; }
.resultaten { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.resultaat { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--lijn); overflow-wrap: anywhere; }
.resultaten li:last-child .resultaat, .resultaten li.resultaat:last-child { border-bottom: 0; }
a.resultaat { text-decoration: none; min-height: 44px; }
a.resultaat:hover .sterk { text-decoration: underline; }
.chip { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 8px; background: #F1EEE7; color: var(--middel); }
.chip-notes_concept, .chip-routering_bevestigd { background: #F5ECD9; color: #6B4A12; }
.chip-geaccordeerd { background: #E4EEE9; color: #24493D; }
.feiten { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feit { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.feit dt { flex: 0 0 140px; color: var(--zacht); }
.feit dd { margin: 0; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.kaal { list-style: none; margin: 0; padding: 0; }
.notes-sectie { border-top: 1px solid var(--lijn); padding-top: 12px; overflow-wrap: anywhere; }
.notes-sectie:first-of-type { border-top: 0; padding-top: 0; }
.notes-sectie h4 { margin: 0 0 6px; font-family: var(--kop); font-weight: 500; font-size: 19px; }
.notes-sectie p { margin: 0; }
.notes-lijst { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.notes-object { display: flex; flex-direction: column; gap: 2px; }
.nevens { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; }
.notes-object ul { margin: 2px 0 0; padding-left: 18px; }


/* ---------------------------------------------------------------- W4: Dispatches-bord en detail */
.dfilters { display: flex; flex-direction: column; gap: 10px; }
.dfilter-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.schakel { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14px; background: #EFECE5; overflow-wrap: anywhere; }
.schakel:hover { background: var(--actief); }
.schakel[aria-current="true"] { background: var(--wit); box-shadow: 0 1px 2px rgba(31,30,27,0.08); font-weight: 500; border: 1px solid #DCD7CB; }
.scheiding { width: 1px; align-self: stretch; background: var(--lijn); margin: 0 6px; }
.dchip { align-self: flex-start; font-size: 12px; font-weight: 500; border-radius: 6px; padding: 2px 8px; white-space: nowrap; background: #EFECE5; color: var(--middel); }
.dchip-wacht { background: #F6E3D9; color: var(--fout); }
.dchip-loopt { background: #E6EAF5; color: #2A3A75; }
.dchip-fout { background: #F7E9E2; color: var(--fout); }
.dchip-klaar { background: #E4EEE9; color: #24493D; }
.dchip-uit { background: #EFECE5; color: #8F8A7F; }
.bord { display: flex; flex-direction: column; gap: 18px; }
.kolom-bord { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kolom-bord h3 { margin: 0; }
.leeg { margin: 0; font-size: 14px; }
.dkaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dkaart.beslis { border: 1.5px solid #E6B9A3; background: #FBF3EE; }
.dkaart-kop { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.kaart-titel { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.kaart-titel:hover { text-decoration: underline; }
.dkaart-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--zacht); overflow-wrap: anywhere; }
.bijlage-teller { color: var(--accent); font-weight: 500; }
.lijst-groep h3 { margin-bottom: 8px; }
.lijst { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.kruimel { font-size: 14px; color: var(--zacht); }
.dsp-detail { display: flex; flex-direction: column; gap: 24px; }
.dsp-hoofd { display: flex; flex-direction: column; gap: 18px; min-width: 0; flex: 1 1 auto; }
.dsp-zij { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dsp-zij section.lijn { border-top: 1px solid var(--lijn); padding-top: 18px; }
.zijlijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zijregel { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #FBFAF7; border: 1px solid #EFECE5; text-decoration: none; overflow-wrap: anywhere; font-size: 14px; }
.zijregel[aria-current="page"] { background: var(--wit); border-color: #DCD7CB; }
.zijregel-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.dkop h1 { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.levensloop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stap { font-size: 12px; border-radius: 6px; padding: 3px 8px; background: #F1EEE7; color: #8F8A7F; }
.stap.gedaan { color: var(--middel); }
.stap.nu { background: var(--tekst); color: var(--wit); font-weight: 500; }
.dsp-detail .kaart h4 { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.dsp-detail .kaart p { margin: 0; overflow-wrap: anywhere; }
.doorlopend { white-space: pre-line; }
.punten { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.bijlagen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bijlage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; overflow-wrap: anywhere; font-size: 14px; }
.bijlage.afb { flex-direction: column; align-items: flex-start; }
.miniatuur { display: block; width: 160px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--lijn); background: #F1EEE7; }
.ext { font-family: var(--mono); font-size: 11px; background: #F1EEE7; border-radius: 6px; padding: 3px 6px; }

@media (min-width: 900px) {
  .bord { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
  .dsp-detail { flex-direction: row; align-items: flex-start; }
  .dsp-zij { flex: 0 0 280px; }
  .kolom:has(.dsp-detail) { max-width: 1180px; }
}
