/* Kompas – huisstijl Compliance Partner
   Groen #17784A / #0F5132, nacht #0A2A1D, mint #9BE3B8, blauw #2F5496 voor focus. */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --groen: #17784A; --groen-donker: #0F5132; --diep: #0F3D2A; --nacht: #0A2A1D;
  --mint: #9BE3B8; --mint-licht: #E3F4EA; --fel: #5CCB8A;
  --tekst: #14211B; --zacht: #5B6770; --lijn: #DCE4E0; --achter: #F3F7F5; --wit: #fff;
  --blauw: #2F5496; --blauw-licht: #ECF0F8;
  --rood: #B42318; --rood-licht: #FDECEA; --oranje: #B54708; --oranje-licht: #FEF3E2; --geel: #FDE68A;
  --r: 14px; --r-klein: 8px;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "DM Sans", "Segoe UI", system-ui, sans-serif;
  --schaduw: 0 1px 2px rgba(10, 42, 29, .06), 0 4px 16px rgba(10, 42, 29, .05);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--font); color: var(--tekst); background: var(--achter); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--groen); text-underline-offset: 2px; }
a:hover { color: var(--groen-donker); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--diep); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code { font-size: .9em; background: var(--mint-licht); padding: .1em .35em; border-radius: 4px; }
code.groot { font-size: 1.2rem; letter-spacing: .04em; display: inline-block; margin: .3rem 0; }
:focus-visible { outline: 3px solid var(--blauw); outline-offset: 2px; }
.grijs { color: var(--zacht); }
.klein { font-size: .875rem; }
.sterk { font-weight: 600; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Testomgeving */
.testbalk { background: var(--geel); color: #5c4400; text-align: center; font-weight: 600; font-size: .875rem; padding: .35rem 1rem; position: sticky; top: 0; z-index: 20; }

/* Opbouw */
body.met-zijbalk { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
body.met-zijbalk.test { grid-template-rows: auto 1fr; }
body.met-zijbalk.test .testbalk { grid-column: 1 / -1; }
.zijbalk { background: var(--nacht); color: #d7e6de; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
body.test .zijbalk { height: calc(100vh - 2rem); top: 2rem; }
.woordmerk { display: flex; align-items: center; gap: .6rem; color: var(--wit); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 700; padding: 0 .4rem; }
.woordmerk:hover { color: var(--wit); }
.woordmerk small { display: block; font-family: var(--font); font-size: .7rem; font-weight: 500; color: var(--mint); letter-spacing: .04em; text-transform: uppercase; margin-top: -.15rem; }
.merk { width: 30px; height: 35px; flex: none; }
.merk.groot { width: 48px; height: 56px; }
.orgkeuze { padding: 0 .4rem; }
.orgkeuze select { width: 100%; background: #12382a; color: var(--wit); border: 1px solid #1f5a42; border-radius: var(--r-klein); padding: .45rem .5rem; font: inherit; font-size: .9rem; }
.orgnaam { padding: .5rem .6rem; background: #12382a; border-radius: var(--r-klein); font-weight: 600; color: var(--wit); font-size: .9rem; }
.menu > summary { display: none; }
.menugroep { display: flex; flex-direction: column; margin-bottom: .9rem; }
.groepnaam { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7fa392; padding: 0 .6rem .25rem; display: block; }
.menugroep a { color: #d7e6de; text-decoration: none; padding: .38rem .6rem; border-radius: var(--r-klein); font-size: .95rem; }
.menugroep a:hover { background: #12382a; color: var(--wit); }
.menugroep a.actief { background: var(--groen); color: var(--wit); font-weight: 600; }
.ik { margin-top: auto; border-top: 1px solid #1f4a38; padding-top: .9rem; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.ik-naam { display: flex; align-items: center; gap: .5rem; color: var(--wit); text-decoration: none; padding: .2rem .4rem; border-radius: var(--r-klein); }
.ik-naam.actief, .ik-naam:hover { background: #12382a; color: var(--wit); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--nacht); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.ik .link { color: #a9c4b7; padding: 0 .4rem; text-align: left; }
.versie { font-size: .72rem; color: #6b8f80; padding: 0 .4rem; }
main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1280px; width: 100%; }
body.zonder-zijbalk main { margin: 0 auto; max-width: 560px; padding-top: 8vh; }
body.zonder-zijbalk .smal.breed { max-width: 680px; }
body.zonder-zijbalk:has(.smal.breed) main { max-width: 720px; }

/* Koppen en kruimels */
.paginakop { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.kruimel { margin: 0 0 .3rem; font-size: .875rem; }
.kruimel a { color: var(--zacht); }
.aanmeldkop { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.aanmeldkop h1 { margin: 0; }
.aanmeldkop p { margin: 0; }

/* Kaarten en raster */
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--schaduw); }
.subkaart { border: 1px solid var(--lijn); border-radius: var(--r-klein); padding: .7rem .9rem; margin-bottom: .7rem; background: var(--achter); }
.subkaart p { margin: .2rem 0; }
.kaartkop { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
details.kaart > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.kaart > summary::-webkit-details-marker { display: none; }
details.kaart[open] > summary { margin-bottom: 1rem; }
.raster { display: grid; gap: 0 1.25rem; }
.raster.twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster > .kaart, .raster > div > .kaart, .raster > form.kaart { min-width: 0; }
.leeg { text-align: center; padding: 2.5rem 1rem; background: var(--wit); border: 1px dashed var(--lijn); border-radius: var(--r); color: var(--zacht); }
.leeg p { max-width: 40rem; margin: 0 auto 1rem; }

/* Tegels */
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tegel { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 1rem 1.2rem; text-decoration: none; color: var(--tekst); display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--schaduw); }
.tegel:hover { border-color: var(--groen); color: var(--tekst); }
.tegel.accent { background: var(--nacht); color: #d7e6de; border-color: var(--nacht); }
.tegel.accent .getal { color: var(--mint); }
.getal { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--diep); line-height: 1.1; }
.balk { height: 6px; background: var(--mint-licht); border-radius: 3px; overflow: hidden; margin-top: .4rem; }
.vulling { display: block; height: 100%; background: var(--groen); }
.w0 { width: 0 } .w5 { width: 5% } .w10 { width: 10% } .w15 { width: 15% } .w20 { width: 20% } .w25 { width: 25% } .w30 { width: 30% } .w35 { width: 35% } .w40 { width: 40% } .w45 { width: 45% } .w50 { width: 50% }
.w55 { width: 55% } .w60 { width: 60% } .w65 { width: 65% } .w70 { width: 70% } .w75 { width: 75% } .w80 { width: 80% } .w85 { width: 85% } .w90 { width: 90% } .w95 { width: 95% } .w100 { width: 100% }

/* Signalen */
.signalen { list-style: none; margin: 0; padding: 0; }
.signaal { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding: .6rem 0; border-bottom: 1px solid var(--lijn); }
.signaal:last-child { border-bottom: 0; }
.signaal .niveau { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .5rem; border-radius: 999px; background: var(--blauw-licht); color: var(--blauw); }
.signaal.urgent .niveau { background: var(--rood-licht); color: var(--rood); }
.signaal.actie .niveau { background: var(--oranje-licht); color: var(--oranje); }
.signaal > a { flex: 1; min-width: 14rem; color: var(--tekst); }
.afvinken summary { color: var(--zacht); cursor: pointer; }
.afvinken form { margin-top: .4rem; }
.signalen.afgevinkt li { color: var(--zacht); padding: .2rem 0; }

/* Meldingen */
.melding { padding: .75rem 1rem; border-radius: var(--r-klein); margin-bottom: 1rem; background: var(--mint-licht); border: 1px solid #bfe6cf; color: var(--diep); }
.melding.fout { background: var(--rood-licht); border-color: #f5c2bd; color: var(--rood); }
.melding.info { background: var(--blauw-licht); border-color: #ccd7ee; color: #1f3a6b; }
.melding.actie { background: var(--oranje-licht); border-color: #f8d7a8; color: var(--oranje); }
.melding.klein { padding: .5rem .8rem; }

/* Labels en status */
.label { display: inline-block; font-size: .72rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; background: var(--achter); border: 1px solid var(--lijn); color: var(--zacht); vertical-align: middle; white-space: nowrap; }
.label.actie { background: var(--oranje-licht); border-color: #f8d7a8; color: var(--oranje); }
.label.urgent { background: var(--rood-licht); border-color: #f5c2bd; color: var(--rood); }
.label.ok { background: var(--mint-licht); border-color: #bfe6cf; color: var(--groen-donker); }
.status { font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--achter); color: var(--zacht); white-space: nowrap; }
.status.vastgesteld, .status.afgehandeld { background: var(--mint-licht); color: var(--groen-donker); }
.status.concept, .status.in-behandeling { background: var(--blauw-licht); color: var(--blauw); }
.status.nieuw { background: var(--oranje-licht); color: var(--oranje); }
.status.beeindigd { background: #eee; color: #666; }
.oranje { background: var(--oranje-licht); }

/* Tabellen */
.tabelwrap { overflow-x: auto; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); box-shadow: var(--schaduw); margin-bottom: 1rem; }
.kaart .tabelwrap { box-shadow: none; }
table.lijst { width: 100%; border-collapse: collapse; font-size: .93rem; }
.lijst th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--zacht); font-weight: 600; padding: .7rem .8rem; border-bottom: 1px solid var(--lijn); background: var(--achter); }
.lijst td { padding: .7rem .8rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.lijst tr:last-child td { border-bottom: 0; }
.lijst tbody tr:hover td { background: #f8fbf9; }
.lijst.compact td, .lijst.compact th { padding: .4rem .6rem; }
.lijst .num { text-align: right; }
.lijst tr.inactief td { color: var(--zacht); }
.lijst td.acties { white-space: nowrap; text-align: right; }
.bewerkrij td { background: var(--achter); }
.verschil .oud { background: var(--rood-licht); }
.verschil .nieuw { background: var(--mint-licht); }
.verschil th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--tekst); width: 22%; }
dl.gegevens { display: grid; grid-template-columns: minmax(8rem, 35%) 1fr; gap: .45rem 1rem; margin: 0; }
dl.gegevens dt { color: var(--zacht); font-size: .9rem; }
dl.gegevens dd { margin: 0; }

/* Formulieren */
.formulier label, .filters label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; color: var(--diep); }
.hint { font-weight: 400; font-size: .8rem; color: var(--zacht); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  font: inherit; font-weight: 400; color: var(--tekst); background: var(--wit); border: 1px solid #c6d3cc; border-radius: var(--r-klein); padding: .55rem .7rem; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--groen); outline: 2px solid rgba(23, 120, 74, .2); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: var(--achter); color: var(--tekst); }
.formulier fieldset legend { font-weight: 600; font-size: .9rem; color: var(--diep); margin-bottom: .4rem; }
label.vink { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500 !important; margin-bottom: .55rem !important; }
label.vink input { width: 1.05rem; height: 1.05rem; accent-color: var(--groen); }
.vinkrij { display: flex; gap: .3rem 1.5rem; flex-wrap: wrap; }
.systeemkeuze { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 1rem; margin-top: .5rem; }
.systeemkeuze legend { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: 0 .8rem; align-items: flex-end; margin-bottom: 1rem; }
.filters label { min-width: 11rem; flex: 1; max-width: 18rem; }
.filters .knop { margin-bottom: .9rem; }
.rij { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.rij input { flex: 1; min-width: 12rem; }
.knoppenrij { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.plakbalk { position: sticky; bottom: 0; background: rgba(243, 247, 245, .96); padding: .8rem 0; display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--lijn); margin-bottom: 1rem; }
.upload { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.upload p { width: 100%; margin: 0; }
.kopieer { font-family: ui-monospace, monospace; font-size: .85rem !important; }
pre.sleutel { background: var(--nacht); color: var(--mint); padding: 1rem; border-radius: var(--r-klein); overflow-x: auto; }
.qr { display: block; width: 210px; height: 210px; margin: .5rem auto 1rem; }
.orglogo { max-width: 220px; max-height: 90px; display: block; margin-bottom: .7rem; }
ul.bijlagen { list-style: none; padding: 0; margin: 0 0 .5rem; }
ul.bijlagen li { padding: .3rem 0; border-bottom: 1px solid var(--lijn); }
ul.bijlagen li:last-child { border-bottom: 0; }
form.inline { display: inline; }

/* Knoppen */
.knop { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700; font-size: .95rem; background: var(--groen); color: var(--wit); border: 1px solid var(--groen); border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knop:hover { background: var(--groen-donker); border-color: var(--groen-donker); color: var(--wit); }
.knop.licht { background: var(--wit); color: var(--groen-donker); border-color: #bfe6cf; }
.knop.licht:hover { background: var(--mint-licht); }
.knop.klein { font-size: .82rem; padding: .3rem .8rem; }
.knop.gevaar { background: var(--rood); border-color: var(--rood); color: var(--wit); }
.knop.licht.gevaar { background: var(--wit); color: var(--rood); border-color: #f5c2bd; }
.knop.licht.gevaar:hover { background: var(--rood-licht); }
.knop[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--groen); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.link.sterk { font-weight: 600; text-decoration: none; }
button.link.gevaar, a.gevaar { color: var(--rood); }
.uitklap { position: relative; }
.uitklap summary { list-style: none; }
.uitklap summary::-webkit-details-marker { display: none; }
.uitklapmenu { position: absolute; right: 0; top: calc(100% + .3rem); background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r-klein); box-shadow: var(--schaduw); display: flex; flex-direction: column; min-width: 12rem; z-index: 5; }
.uitklapmenu a { padding: .55rem .9rem; text-decoration: none; color: var(--tekst); }
.uitklapmenu a:hover { background: var(--mint-licht); }

/* Tabs */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--lijn); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--zacht); border-bottom: 3px solid transparent; font-weight: 600; font-size: .93rem; }
.tabs a.actief { color: var(--diep); border-bottom-color: var(--groen); }

/* Mobiel */
@media (max-width: 860px) {
  body.met-zijbalk { display: block; }
  .zijbalk { position: static; height: auto; }
  body.test .zijbalk { height: auto; }
  .menu > summary { display: block; cursor: pointer; color: var(--wit); font-weight: 600; padding: .3rem .4rem; }
  .ik { margin-top: 0; }
  .raster.twee, .raster.drie { grid-template-columns: 1fr; }
  main { padding: 1.25rem 1rem 3rem; }
}
@media print {
  .zijbalk, .knop, .tabs, .filters, .plakbalk { display: none !important; }
  body.met-zijbalk { display: block; }
}
