:root {
  --blauw: #1f3a5f; --blauw-licht: #e8eef6; --tekst: #1d2733; --grijs: #607d8b; --lijn: #cfd8dc;
  --groen: #2e7d32; --oranje: #ef6c00; --rood: #c62828; --achtergrond: #f6f8fa;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; color: var(--tekst); background: var(--achtergrond); line-height: 1.45; }
a { color: var(--blauw); }
header.top { background: var(--blauw); color: #fff; padding: 8px 20px; display: flex; align-items: center; gap: 20px; min-height: 52px; flex-wrap: wrap; }
header.top .merk { font-weight: 700; letter-spacing: .3px; font-size: 17px; color: #fff; text-decoration: none; white-space: nowrap; }
header.top .merk small { font-weight: 400; opacity: .75; margin-left: 8px; font-size: 12px; }
nav.hoofd { display: flex; gap: 4px; flex-wrap: wrap; }
nav.hoofd a { color: #dbe4ef; text-decoration: none; padding: 6px 10px; border-radius: 4px; font-size: 14px; }
nav.hoofd a:hover, nav.hoofd a.actief { background: rgba(255,255,255,.15); color: #fff; }
header.top .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; opacity: .9; }
header.top form { margin: 0; }
.demobalk { background: #ef6c00; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 5px 12px; letter-spacing: .2px; }
main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 60px; }
h1 { font-size: 24px; margin: 0 0 14px; } h2 { font-size: 18px; margin: 26px 0 10px; } h3 { font-size: 15px; margin: 18px 0 8px; }
.kaart { background: #fff; border: 1px solid var(--lijn); border-radius: 6px; padding: 16px 18px; margin-bottom: 18px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--lijn); border-radius: 6px; padding: 12px 14px; }
.kpi .w { font-size: 26px; font-weight: 700; } .kpi .l { font-size: 12px; color: var(--grijs); }
.kpi.rood .w { color: var(--rood); } .kpi.oranje .w { color: var(--oranje); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 13.5px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { background: var(--blauw-licht); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
tr:hover td { background: #fbfcfd; }
.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; }
.status.groen { background: var(--groen); } .status.oranje { background: var(--oranje); } .status.rood { background: var(--rood); } .status.grijs { background: #90a4ae; }
.melding { padding: 10px 14px; border-radius: 5px; margin-bottom: 14px; border: 1px solid; }
.melding.ok { background: #e8f5e9; border-color: #a5d6a7; } .melding.fout { background: #ffebee; border-color: #ef9a9a; } .melding.waarschuwing { background: #fff3e0; border-color: #ffcc80; }
form.regel { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
label { display: block; font-size: 12.5px; color: var(--grijs); margin-bottom: 3px; }
input[type=text], input[type=email], input[type=date], input[type=password], select, textarea { font: inherit; padding: 6px 8px; border: 1px solid #b0bec5; border-radius: 4px; min-width: 180px; background: #fff; }
textarea { width: 100%; min-height: 60px; }
button, .knop { font: inherit; padding: 7px 14px; border-radius: 4px; border: 1px solid var(--blauw); background: var(--blauw); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.licht, .knop.licht { background: #fff; color: var(--blauw); } button.klein { padding: 3px 8px; font-size: 12px; }
button.rood { background: var(--rood); border-color: var(--rood); }
.stil { color: var(--grijs); font-size: 13px; }
.info { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #1565c0; color: #fff; font: italic 700 11px/1 Georgia, serif; cursor: pointer; vertical-align: middle; position: relative; margin-left: 2px; }
.info:hover, .info:focus { background: #0d47a1; outline: none; }
.info .info-tekst { display: none; position: absolute; left: 0; top: 24px; z-index: 20; width: min(440px, 80vw); background: #fff; color: var(--tekst); border: 1px solid #90caf9; border-left: 4px solid #1565c0; border-radius: 6px; padding: 10px 12px; font: 400 13px/1.45 system-ui, sans-serif; text-align: left; box-shadow: 0 6px 20px rgba(0,0,0,.15); white-space: normal; }
.info:hover .info-tekst, .info:focus .info-tekst, .info.open .info-tekst { display: block; }
h1 .info, h2 .info { font-size: 11px; }
.info .normtekst { display: block; white-space: pre-wrap; max-height: 260px; overflow-y: auto; margin: 4px 0 6px; padding: 6px 8px; background: #f4f8fd; border-radius: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.voortgang { background: #eceff1; border-radius: 4px; height: 10px; overflow: hidden; }
.voortgang span { display: block; height: 100%; background: var(--groen); }
.tabs a { margin-right: 14px; } .tabs a.actief { font-weight: 700; }
.inline { display: inline; }
.recht-rij td.besluit { white-space: nowrap; }
.login { max-width: 380px; margin: 60px auto; }
details summary { cursor: pointer; color: var(--blauw); }
@media (max-width: 720px) {
  header.top { padding: 8px 12px; } main { padding: 14px 12px; } table { font-size: 13px; }
  table:not(.stapel) { display: block; overflow-x: auto; white-space: nowrap; }
  table.stapel, table.stapel tbody, table.stapel tr, table.stapel td { display: block; width: 100%; }
  table.stapel th { display: none; }
  table.stapel tr { border-bottom: 1px solid var(--lijn); padding: 8px 0; }
  table.stapel td { border-bottom: none; padding: 3px 0; }
  table.stapel td:first-child { font-weight: 600; }
  table.stapel input[type=text] { width: 100%; min-width: 0; }
  .kaart { padding: 12px; }
}
