:root {
  --achtergrond: #f5f6f8;
  --vlak: #ffffff;
  --tekst: #1d2330;
  --zacht: #667085;
  --rand: #dde1e7;
  --accent: #1f6feb;
  --accent-donker: #1858c4;
  --accent-licht: #e8f0fe;
  --go: #1a7f37;
  --go-licht: #dcf5e3;
  --nogo: #b42318;
  --nogo-licht: #fde4e1;
  --oranje: #9a5b00;
  --oranje-licht: #fff1d6;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--achtergrond); color: var(--tekst);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.zacht { color: var(--zacht); font-weight: normal; }
.klein { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }

/* kop */
.kop { background: #14213d; color: #fff; }
.kop-binnen { max-width: 1200px; margin: 0 auto; padding: .6rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.logo { color: #fff; font-weight: 700; font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.menu a { color: #c9d3e6; padding: .35rem .7rem; border-radius: 6px; }
.menu a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.menu a.actief { background: rgba(255,255,255,.15); color: #fff; }
.gebruiker { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.gebruiker a { color: #c9d3e6; }
.gebruiker .naam { color: #fff; }
.jaarkiezer select { background: #22325a; color: #fff; border: 1px solid #3a4c78; border-radius: 6px; padding: .25rem .4rem; font: inherit; }

.inhoud { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px 4rem; }

/* meldingen */
.melding { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; }
.melding.ok { background: var(--go-licht); border-color: #a6e3b8; color: #0f4d22; }
.melding.fout { background: var(--nogo-licht); border-color: #f5b5ad; color: #7a1a10; }
.melding.info { background: var(--accent-licht); border-color: #b6cdf7; color: #173d7a; }
.waarschuwing { color: var(--oranje); }
.leeg { background: var(--vlak); border: 1px dashed var(--rand); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--zacht); }

/* knoppen */
.knop {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--rand);
  background: var(--vlak); color: var(--tekst); line-height: 1.3;
}
.knop:hover { background: #eef0f3; text-decoration: none; }
.knop.primair { background: var(--accent); border-color: var(--accent); color: #fff; }
.knop.primair:hover { background: var(--accent-donker); }
.knop.gevaar { color: var(--nogo); border-color: #f0c2bc; }
.knop.gevaar:hover { background: var(--nogo-licht); }
.knop.licht { background: transparent; }
.knop.klein { padding: .2rem .55rem; font-size: .85rem; font-weight: 500; }
.knop.groot { padding: .6rem 1.5rem; font-size: 1rem; }

/* labels & badges */
.label { display: inline-block; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: #eceff3; color: var(--zacht); vertical-align: middle; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #eceff3; }
.badge.go { background: var(--go-licht); color: var(--go); }
.badge.nogo { background: var(--nogo-licht); color: var(--nogo); }
.badge.bijsturen { background: var(--oranje-licht); color: var(--oranje); }

/* layoutblokjes */
.titelrij { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.titelrij h1 { margin: 0; }
.code { color: var(--accent); }
.kruimel { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.bladeren a { margin-left: 1rem; }
.kaart { background: var(--vlak); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.werkbalk { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.zoek { flex: 1 1 260px; max-width: 420px; }
.filters { display: flex; gap: .25rem; flex-wrap: wrap; }
.filters a { padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--rand); background: var(--vlak); font-size: .85rem; color: var(--tekst); }
.filters a.actief { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rand); margin-bottom: 1rem; overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: .55rem 1rem; color: var(--tekst); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.actief { border-bottom-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; background: #eceff3; }
.knoppenbalk { display: flex; gap: .75rem; align-items: center; margin: 1rem 0; }
.knoppenbalk.plakkend { position: sticky; bottom: 0; background: var(--achtergrond); padding: .75rem 0; border-top: 1px solid var(--rand); }
.verwijderform { margin-top: 2rem; text-align: right; }
details.verwijder { display: inline-block; }
details.verwijder summary { list-style: none; }
details.verwijder summary::-webkit-details-marker { display: none; }
details.verwijder[open] form { display: block; margin-top: .5rem; }

/* tabellen */
.tabelwrap { overflow-x: auto; background: var(--vlak); border: 1px solid var(--rand); border-radius: var(--radius); }
.tabel { width: 100%; border-collapse: collapse; background: var(--vlak); }
.tabelwrap .tabel { border: 0; }
body > main > .tabel { border: 1px solid var(--rand); border-radius: var(--radius); margin-bottom: 1.5rem; }
.tabel th, .tabel td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid #edf0f3; vertical-align: top; }
.tabel th.rechts, .tabel td.rechts { text-align: right; }
.tabel thead th { background: #f9fafb; font-size: .85rem; color: var(--zacht); font-weight: 600; position: sticky; top: 0; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel.klikbaar tbody tr { cursor: pointer; }
.tabel.klikbaar tbody tr:hover { background: #f6f9ff; }
.tabel tr.gedimd td { color: var(--zacht); }
.tabel .acties { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
a.sorteer { color: inherit; }
.projectcel { white-space: nowrap; }
.projectcel a { margin-left: .35rem; }

/* formulieren */
input, select, textarea {
  font: inherit; color: inherit; padding: .45rem .6rem; border: 1px solid #c8ced8; border-radius: 6px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-licht); border-color: var(--accent); }
input[type=checkbox] { width: auto; }
input.fout { border-color: var(--nogo); background: var(--nogo-licht); }
textarea { resize: vertical; }
.formulier label { display: block; margin-bottom: .9rem; font-weight: 600; font-size: .9rem; }
.formulier label input, .formulier label select, .formulier label textarea { margin-top: .25rem; font-weight: normal; font-size: .95rem; }
.formulier.smal { max-width: 420px; }
.rij { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.rij > * { flex: 1 1 180px; }
.rij > .breed { flex: 3 1 300px; }
.labelknoppen { float: right; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
form.inline input, form.inline select { width: auto; }
.toevoegen { margin-top: .5rem; }
.toevoegen select { max-width: 100%; }
input.nr { width: 5.5rem; padding: .25rem .4rem; }
input.punt { width: 4rem; text-align: right; }
.vinkje { font-weight: normal; display: inline-flex; gap: .4rem; align-items: center; margin: .5rem 0; }
.projectblok p { margin: .25rem 0; }

.studentlijst { list-style: none; padding: 0; margin: 0 0 .5rem; }
.studentlijst li { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; border-bottom: 1px solid #edf0f3; }
.studentlijst li a { font-weight: 600; }
.studentlijst li form { margin-left: auto; }

.notitielijst { list-style: none; padding: 0; margin: 0 0 1rem; }
.notitielijst li { padding: .6rem .8rem; border-left: 3px solid var(--rand); background: #fafbfc; border-radius: 0 6px 6px 0; margin-bottom: .5rem; }
.notitielijst li.eigen { border-left-color: var(--accent); background: #f5f8ff; }
.notitielijst li.geen { color: var(--zacht); background: none; border: 0; padding-left: 0; }
.notitielijst .meta { font-size: .82rem; color: var(--zacht); margin-bottom: .15rem; }
.notitielijst .meta strong { color: var(--tekst); }
.notitie-weg { background: none; border: 0; padding: 0 0 0 .4rem; font: inherit; font-size: .8rem; color: var(--zacht); cursor: pointer; text-decoration: underline; }
.notitie-weg:hover { color: var(--nogo); }
.notitie-invoer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; }
.notitie-invoer label { flex: 1 1 100%; margin: 0 !important; }
.notitie-invoer textarea { flex: 1 1 300px; }

.beoordeling { width: 100%; border-collapse: collapse; }
.beoordeling th, .beoordeling td { padding: .5rem; border-bottom: 1px solid #edf0f3; vertical-align: top; text-align: left; }
.beoordeling tbody th { width: 22%; font-size: .9rem; padding-top: .9rem; }
.beoordeling td.rechts, .beoordeling th.rechts { text-align: right; width: 9rem; }
.beoordeling tfoot th, .beoordeling tfoot td { border-bottom: 0; font-size: 1.1rem; padding-top: .9rem; }
.beoordeling textarea { min-height: 2.6rem; }

.loginvak { max-width: 380px; margin: 3rem auto; background: var(--vlak); border: 1px solid var(--rand); border-radius: 12px; padding: 2rem; }

@media (max-width: 960px) {
  .kop-binnen { justify-content: space-between; }
  .menu { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -.7rem; }
  .menu a { white-space: nowrap; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.35rem; }
  .gebruiker { gap: .5rem; }
  .beoordeling, .beoordeling tbody, .beoordeling tr, .beoordeling th, .beoordeling td { display: block; width: 100% !important; }
  .beoordeling thead { display: none; }
  .beoordeling td.rechts { text-align: left; }
  .kaart { padding: 1rem; }
}

@media print {
  .kop, .knoppenbalk, .verwijderform, .werkbalk, .toevoegen, .studentlijst form, .labelknoppen { display: none !important; }
  body { background: #fff; }
  .kaart { border: 0; padding: 0; }
}
