html, body { height: 100%; overflow: hidden; }
/* Kiem LMS – vormgeving naar het voorbeeld van JSIS (bovenmenu-indeling) */
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #19394b; --muted: #5e7283; --line: #d9e3eb; --soft: #f0f6f9; --bg: #f5f8fa; --card: #fff;
  --brand: #9bcbd9; --brand-ink: #15536f; --accent: #236d87; --primary: #7431a0;
  --nav: #365f73; --nav-agenda: #97515d; --nav-onderwijs: #ad6034; --nav-leren: #4b7057; --nav-instellingen: #386b70;
  --groen: #e5f4e7; --groen-ink: #236d38; --oranje: #ffe9d6; --oranje-ink: #89431d; --rood: #fde4e1; --rood-ink: #a0302a;
  --blauw: #e1edf9; --blauw-ink: #255885; --grijs: #edf1f4; --grijs-ink: #5e7283;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 "Jakarta", "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }

/* ---- schil ---- */
.shell { min-height: 100vh; padding: 12px 18px 28px; }
.brandbar { display: flex; align-items: center; gap: 16px; min-height: 74px; padding: 8px 16px 8px 8px; background: var(--brand); border-radius: 12px; }
.schoollogo { display: grid; place-items: center; width: 58px; height: 58px; flex: none; background: #fff; border-radius: 10px; color: #246584; font-size: 26px; font-weight: 800; }
.schoolnaam { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; color: var(--brand-ink); text-decoration: none; min-width: 0; }
.schoolnaam strong { font-size: 22px; font-weight: 800; }
.schoolnaam small { font-size: 13px; }
.brand-acties { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; padding: 10px 15px; background: #ffffffa8; border: 1px solid #ffffffa8; border-radius: 8px; color: #123f57; font-size: 13px; font-weight: 700; }
.account summary::-webkit-details-marker { display: none; }
.account summary small { font-weight: 500; color: #2a6680; }
.account > div { position: absolute; right: 0; top: 48px; width: 200px; display: grid; background: #fff; border: 1px solid #dce6ee; border-radius: 10px; box-shadow: 0 10px 25px #24496122; z-index: 80; padding: 6px; }
.account > div > a, .account > div > button { text-align: left; padding: 11px 12px; color: #26495e; border: 0; background: none; text-decoration: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.account > div > a:hover, .account > div > button:hover { background: #eaf4f8; }

.hoofdmenu { display: flex; gap: 7px; margin: 10px 0 0; flex-wrap: wrap; }
.hoofdmenu a { flex: 1 1 90px; display: grid; place-items: center; min-height: 44px; padding: 9px 10px; border: 2px solid transparent; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; background: var(--nav); transition: filter .15s; text-align: center; }
.hoofdmenu a.agenda { background: var(--nav-agenda); }
.hoofdmenu a.onderwijs { background: var(--nav-onderwijs); }
.hoofdmenu a.leren { background: var(--nav-leren); }
.hoofdmenu a.instellingen { background: var(--nav-instellingen); }
.hoofdmenu a.start { background: #2c5466; }
.hoofdmenu a:hover { filter: brightness(1.08); }
.hoofdmenu a.actief { border-color: #fff; box-shadow: inset 0 -3px 0 #ffffff75; outline: 1px solid #365768; outline-offset: 1px; }

.submenu { display: flex; gap: 8px; padding: 10px 0 0; flex-wrap: wrap; }
.submenu a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 16px; border-radius: 8px; color: #436276; background: #e8f0f5; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.submenu a:hover { background: #dcebf2; }
.submenu a svg, .rubrieken a svg { flex: none; opacity: .92; }
.submenu a.actief { background: #d0e7f0; color: #164c64; }

.kopbalk { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 18px 0 14px; border-bottom: 3px solid var(--accent); flex-wrap: wrap; }
.kopbalk h1 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.4px; line-height: 1.2; }
.kopbalk .kruimel { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kopbalk .kruimel a { color: var(--muted); text-decoration: none; }
.kopbalk .kruimel a:hover { color: var(--accent); }
.kop-acties { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
main { padding-top: 18px; }

/* ---- bouwstenen ---- */
.paneel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 10px #28465a05; margin-bottom: 16px; }
.paneel-kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e9eff4; flex-wrap: wrap; }
.paneel-kop h2 { margin: 0; font-size: 17px; font-weight: 700; }
.paneel-inhoud { padding: 16px 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { display: block; background: #fff; border: 1px solid var(--line); border-top: 3px solid #83bccf; border-radius: 10px; padding: 12px 16px; text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 26px; font-weight: 750; }
.stat span { color: var(--muted); font-size: 12px; }
.twee-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.drie-kol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }

.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 39px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.knop:hover { filter: brightness(1.07); }
.knop.primair { background: var(--primary); border-color: var(--primary); }
.knop.sec { background: #fff; color: #2f5a6e; border-color: #c4d5e0; }
.knop.groen { background: #26803e; border-color: #26803e; }
.knop.rood { background: #b9504e; border-color: #b9504e; }
.knop.klein { min-height: 0; padding: 4px 9px; font-size: 12px; font-weight: 600; }
.acties { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; }
th { background: #e9f0f5; color: #446175; font-size: 11px; font-weight: 700; text-align: left; padding: 9px 12px; text-transform: none; letter-spacing: .2px; }
td { padding: 8px 12px; border-bottom: 1px solid #e9eff4; vertical-align: top; font-size: 13px; }
tbody tr:nth-child(even) td, table.zebra tr:nth-child(even) td { background: var(--soft); }
tr:hover td { background: #f7fbfd; }
td.wrap { white-space: pre-line; }
.scroll { overflow-x: auto; }
.leeg { text-align: center; color: var(--muted); padding: 40px 20px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 650; background: var(--grijs); color: var(--grijs-ink); white-space: nowrap; }
.badge.groen { background: var(--groen); color: var(--groen-ink); }
.badge.oranje { background: var(--oranje); color: var(--oranje-ink); }
.badge.rood { background: var(--rood); color: var(--rood-ink); }
.badge.blauw { background: var(--blauw); color: var(--blauw-ink); }
.vink { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 11px; color: #46606f; background: #fff; }
.vink.ja::before { content: "✔"; color: #2f8a46; }
.vink.nee::before { content: "✘"; color: #c0453f; }

.melding { padding: 9px 14px; border-radius: 8px; margin-bottom: 10px; background: var(--groen); color: var(--groen-ink); font-size: 13px; }
.melding.error, .melding.rood { background: var(--rood); color: var(--rood-ink); }
.melding.warning, .melding.oranje { background: var(--oranje); color: var(--oranje-ink); }
.melding.info, .melding.blauw { background: var(--blauw); color: var(--blauw-ink); }
.melding.violet { background: #efe6f7; color: #5b2a82; }

/* ---- formulieren ---- */
form .veld { margin-bottom: 13px; }
form label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 12px; color: #427996; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; max-width: 620px; height: 39px; padding: 7px 10px; border: 1px solid #b9cfdc; border-radius: 7px; background: #fff; color: #26485e; font-size: 13px;
}
textarea { height: auto; max-width: 100%; }
select[multiple] { height: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid #20779b55; border-color: #20779b; }
.help { color: var(--muted); font-size: 12px; margin-top: 3px; }
.errorlist { color: var(--rood-ink); margin: 3px 0; padding-left: 18px; font-size: 12px; }
.veld ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 3px 14px; max-height: 260px; overflow: auto; border: 1px solid #e1eaf0; border-radius: 7px; padding: 8px 10px; background: #fbfdfe; }
.veld ul:not(.errorlist) label { font-weight: 500; color: var(--ink); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.vinkje label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters label { font-size: 12px; font-weight: 700; color: #427996; display: flex; flex-direction: column; gap: 5px; }
.filters select, .filters input { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 7px 12px; border-radius: 7px; color: #436276; background: #e8f0f5; font-size: 12px; font-weight: 700; text-decoration: none; }
.tabs a.actief { background: #d0e7f0; color: #164c64; }

/* ---- specifiek ---- */
.login { max-width: 380px; margin: 9vh auto; }
.login .brandbar { margin-bottom: 14px; }
tr.vakantie td { background: var(--oranje) !important; color: var(--oranje-ink); font-weight: 600; font-style: italic; }
tr.toetsweek td:first-child { border-left: 3px solid var(--accent); }
tr.weekkop td { background: #e3edf3 !important; border-top: 2px solid var(--line); font-size: 12px; }
tr.weekkop.vakantie td { background: var(--oranje) !important; }
.weekcel { white-space: nowrap; font-size: 12px; color: var(--muted); }
.weekcel b { color: var(--ink); }
table.agenda td { font-size: 12px; min-width: 140px; }
table.agenda td.weekcel { min-width: 90px; }
table.agenda td div + div { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.formset td { padding: 4px; }
.formset textarea { font-size: 12px; min-width: 160px; }
.formset select { font-size: 12px; min-width: 150px; }
h3.groep { font-size: 14px; margin: 18px 0 8px; color: var(--accent); }
.az-groep { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.az-item { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--nav-instellingen); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; }
.az-item:hover { box-shadow: 0 4px 14px #28465a14; }
.az-item b { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.az-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.matrix select { min-width: 92px; height: 32px; font-size: 12px; padding: 3px 6px; }
.matrix td.groep { background: #dcebf2 !important; font-weight: 700; color: #164c64; }
.toets-meta { font-size: 11px; color: var(--muted); }
.toets-meldingen { margin-top: 4px; }
.toets-meldingen span { display: block; color: var(--rood-ink); font-size: 11px; }
.stempel { color: #c0453f; border: 3px solid #c0453f; display: inline-block; padding: 2px 14px; font-weight: 800; letter-spacing: 3px; transform: rotate(-4deg); }
.muted { color: var(--muted); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

@media (max-width: 900px) {
  .shell { padding: 8px; }
  .twee-kol, .drie-kol { grid-template-columns: 1fr; }
  .schoolnaam strong { font-size: 17px; }
  .schoolnaam small { display: none; }
  .hoofdmenu a { flex-basis: 30%; }
  .dl { grid-template-columns: 1fr; }
}
@media print {
  .shell { padding: 0; background: #fff; }
  .brandbar, .hoofdmenu, .submenu, .kop-acties, .geen-print { display: none !important; }
  body { background: #fff; }
}

/* aliassen voor oudere sjablonen (studiewijzers, agenda) */
.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 13px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn.sec { background: #fff; color: #2f5a6e; border-color: #c4d5e0; }
.btn.klein { min-height: 0; padding: 4px 9px; }
.btn.danger { background: #b9504e; border-color: #b9504e; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.msg { padding: 9px 14px; border-radius: 8px; margin-bottom: 10px; background: var(--groen); color: var(--groen-ink); }
.vakkop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vakkop h2 { margin: 0; font-size: 17px; }

/* Instellingen: rubrieken als knoppen onder het hoofdmenu (JSIS-stijl) */
.rubrieken { display: flex; gap: 7px; margin: 10px 0 0; flex-wrap: wrap; padding: 8px; background: #e3eef3; border-radius: 9px; }
.rubrieken a { flex: 1 1 130px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 9px 12px; border-radius: 8px;
  background: #fff; color: #2c5a6c; border: 1px solid #c3d8e2; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.rubrieken a:hover { background: #f3f9fb; }
.rubrieken a.actief { background: var(--nav-instellingen); border-color: var(--nav-instellingen); color: #fff; box-shadow: inset 0 -3px 0 #ffffff55; }
.rubrieken + .submenu { padding-top: 8px; }
@media (max-width: 900px) { .rubrieken a { flex-basis: 30%; } }

/* Bedieningsbalk met filters (JSIS 'preview-controls') */
.kopbalk { align-items: flex-start; min-height: 96px; }
.kop-links { flex: 1 1 520px; min-width: 0; }
.kop-acties { flex: 0 0 auto; max-width: 420px; justify-content: flex-end; padding-top: 18px; }
.kop-acties .knop { min-height: 46px; min-width: 110px; white-space: normal; text-align: center; line-height: 1.25; }
.jfilters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-items: end; margin-top: 12px; }
.jfilters label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; color: #427996; }
.jfilters input, .jfilters select { width: 100%; max-width: none; min-width: 0; height: 39px; padding: 7px 9px; border: 1px solid #84aac2;
  border-radius: 7px; background: #fff; color: #26485e; font-size: 12px; }
.jfilters label.breed { grid-column: span 2; }
.jfilters .wissen { height: 39px; display: grid; place-items: center; padding: 7px; border-radius: 7px; background: #ffe2d0; color: #89431d;
  border: 1px solid #efb792; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.jfilters .wissen.uit { opacity: .4; pointer-events: none; }
.jfilters .vinkjes { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-height: 39px; font-weight: 500; color: var(--ink); }
.jfilters .vinkjes label { flex-direction: row; align-items: center; gap: 5px; font-weight: 500; color: var(--ink); }
.jfilters .vinkjes input { width: auto; height: auto; }
.jfilters .tabs { align-self: end; }
.jfilters .tabs a { height: 39px; display: grid; place-items: center; }
@media (max-width: 900px) { .kop-acties { max-width: 100%; padding-top: 0; justify-content: flex-start; } .jfilters label.breed { grid-column: auto; } }

/* ---- Drie menulagen, elk met een eigen vorm ----
   1. hoofdmenu: gekleurde tegels
   2. rubrieken (Instellingen): tabbladen met icoon boven de tekst, vastgehecht aan het hoofdmenu
   3. onderdelen: ronde chips met icoon links */
.rubrieken { gap: 8px; padding: 10px 0 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.rubrieken a { flex: 1 1 130px; flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 52px; padding: 8px 12px;
  border: 1px solid #fff; border-radius: 10px; background: linear-gradient(145deg, #fff, var(--r-bg, #f4f8fa));
  box-shadow: 0 3px 0 #becbd640, 0 6px 14px #29455a09; color: #2f4f60; font-size: 13px; font-weight: 700; text-align: left; }
.rubrieken a .ri { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--r-ic, #dceaf4); color: var(--r-ink, #547e9c); font-style: normal; }
.rubrieken a .ri svg { width: 19px; height: 19px; color: inherit; opacity: 1; }
.rubrieken a:hover { background: linear-gradient(145deg, #fff, var(--r-ic, #e4eff8)); }
.rubrieken a.actief { border-color: var(--r-rand, #91b5d0); background: linear-gradient(135deg, var(--r-bg, #e4eff8), var(--r-ic, #d7e6f1));
  box-shadow: 0 3px 0 var(--r-rand, #80a8c3); color: #1f3a48; }
.rubrieken a.actief .ri { background: #fff; }
/* zachte kleur per rubriek */
.r-schooljaar      { --r-bg: #eef6fd; --r-ic: #dcebf8; --r-ink: #3f78a8; --r-rand: #9cc2e2; }
.r-schoolstructuur { --r-bg: #eef8f2; --r-ic: #d9efe2; --r-ink: #3d7f5a; --r-rand: #98cbad; }
.r-pta             { --r-bg: #fdf3ec; --r-ic: #f8e2d3; --r-ink: #a8622f; --r-rand: #e3b393; }
.r-rollen          { --r-bg: #f4f1fc; --r-ic: #e6e0f7; --r-ink: #6a59a8; --r-rand: #b9aee0; }
.r-personeel       { --r-bg: #fcf0f3; --r-ic: #f6dde4; --r-ink: #a24d65; --r-rand: #dea6b6; }
.r-studiewijzers   { --r-bg: #f0f8f8; --r-ic: #d8eeee; --r-ink: #367d7f; --r-rand: #94c9ca; }
.r-school          { --r-bg: #fbf8ea; --r-ic: #f3ecc9; --r-ink: #8a7424; --r-rand: #d8c77f; }
.rubrieken + .submenu { padding: 12px 2px 0; }
.submenu { gap: 8px; align-items: center; }
.submenu a { padding: 7px 15px 7px 11px; border-radius: 999px; border: 1px solid #b9cfdb; background: #fff; color: #3e6577; font-size: 13px; }
.submenu a svg { width: 16px; height: 16px; color: #6f93a4; }
.submenu a:hover { background: #eef5f8; border-color: #8fb3c5; }
.submenu a.actief { background: #2c5466; border-color: #2c5466; color: #fff; }
.submenu a.actief svg { color: #fff; }
@media (max-width: 900px) { .rubrieken a { flex-basis: 45%; } }

/* ---- Vaste schermindeling (HD): menu's en kopbalk staan stil, alleen de inhoud schuift in haar eigen kader ---- */
.shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; max-width: 1920px; margin: 0 auto; padding-bottom: 0; }
.shell > * { flex: none; }
.shell > main { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; margin-top: 12px; padding: 6px 4px 28px 0; }
@media print {
  html, body { height: auto; overflow: visible; }
  .shell { height: auto; display: block; overflow: visible; }
  .shell > main { overflow: visible; }
}

/* ---- Instellingen → Schooljaar (naar JSIS 'Years') ---- */
.jaar-balk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #fff;
  border-radius: 14px; background: linear-gradient(120deg, #fff, #eef3f7); box-shadow: 0 3px 0 #bccbd64d; }
.jaar-balk h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; flex: none; }
.jaar-keuzes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.jaar-keuze { display: inline-flex; align-items: center; gap: 5px; min-width: 76px; justify-content: center; min-height: 36px; padding: 6px 12px;
  border: 1px solid #c6d7e5; border-radius: 10px; background: #f5f9fc; color: #42627c; font-weight: 700; font-size: 13px; text-decoration: none; }
.jaar-keuze:hover { background: #e9f2f9; }
.jaar-keuze.gekozen { background: #dcecf8; color: #1f4864; }
.jaar-keuze.huidig { border: 2px solid #41936a; box-shadow: 0 0 0 2px #d9eee2; color: #276e49; }
.jaar-acties { display: flex; gap: 5px; flex-wrap: wrap; }
.jaar-acties form, .acties form { display: inline; margin: 0; }
.knop.gevaar { color: #a33b39; border-color: #e3c1c0; }
.knop.gevaar:hover { background: #fdf0ef; }
.knop:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.jaar-data { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border: 1px solid #d5e3ec;
  border-radius: 12px; background: #fff; }
.jaar-data > strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.jaar-data dl { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.jaar-data dl > div { padding: 6px 14px; border-radius: 9px; background: #f2f6f9; }
.jaar-data dl > .start { background: #e5f3ea; } .jaar-data dl > .eind { background: #fbeee3; }
.jaar-data dt { font-size: 11px; font-weight: 700; color: #5d7a8c; } .jaar-data dd { margin: 0; font-weight: 750; color: #213c4c; }
.jaar-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.jaar-raster > .paneel { margin-bottom: 12px; min-width: 0; }
.kies-tabel tbody tr { cursor: pointer; }
.kies-tabel tbody tr:hover td { background: #f4f8fb; }
.kies-tabel tbody tr.gekozen td { background: #e7f3f5; }
.kies-tabel tbody tr.gekozen td:first-child { box-shadow: inset 4px 0 #558f9d; }
.quarters-paneel { background: #f3f9fa; border-color: #a9cbd3; box-shadow: inset 4px 0 #558f9d; }
.quarter-rij { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 7px; background: #fff; border: 1px solid #d3e4ea; border-radius: 9px; }
.quarter-rij > span { flex: 1; color: #4d6878; }
.quarter-auto { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #b9d2da; font-size: 12.5px; color: #4d6878; }
.quarter-auto select { width: auto; min-width: 60px; height: 32px; }
.rij-velden { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.rij-velden.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.leeg.compact { padding: 14px; }
.nowrap { flex-wrap: nowrap; }
@media (max-width: 1100px) { .jaar-raster { grid-template-columns: minmax(0, 1fr); } .rij-velden, .rij-velden.vier { grid-template-columns: minmax(0, 1fr); } }

/* Kopbalk zonder titel (pagina is al aangewezen in het menu) */
.kopbalk.compact { min-height: 0; padding: 10px 0 10px; align-items: center; }
.kopbalk.compact .kop-acties { padding-top: 0; margin-left: auto; }
.kopbalk.compact .kop-links:empty, .kopbalk.compact .kop-links:not(:has(*)) { display: none; }
.kopbalk.compact .jfilters { margin-top: 0; }

/* ---- Agenda (naar JSIS Calendar) ---- */
.agenda-js { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 620px; }
.agenda-weergave { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; flex: none; }
.agenda-weergave > div[role=group] { display: flex; padding: 3px; gap: 3px; background: #e7eef5; border: 1px solid #d5e1eb; border-radius: 9px; }
.agenda-weergave a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; color: #60768d; font-size: 12px; font-weight: 700; text-decoration: none; }
.agenda-weergave a[aria-pressed=true] { background: #537d96; color: #fff; box-shadow: 0 2px 4px #35556c20; }
.agenda-lijst-tools { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #718398; }
.agenda-indeling { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1fr); gap: 14px; }
.agenda-kalender { min-height: 0; display: flex; flex-direction: column; padding: 14px; background: #fff; border: 1px solid #dce5f2; border-radius: 12px; }
.agenda-kalender > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.agenda-kalender h3 { margin: 0; font-size: 19px; }
.agenda-kalender > header > div { display: flex; align-items: center; gap: 6px; }
.agenda-telling { font-size: 11px; color: #687f93; margin-right: 8px; } .agenda-telling strong { font-size: 15px; color: #31506a; }
.agenda-kalender .pijl, .agenda-kalender .vandaag-knop { display: grid; place-items: center; height: 32px; min-width: 32px; padding: 0 8px; background: #f1f5fa;
  border: 1px solid #dce5f2; border-radius: 6px; color: #35556c; font-size: 20px; text-decoration: none; }
.agenda-kalender .vandaag-knop { font-size: 11px; font-weight: 700; padding: 0 10px; }
.agenda-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; flex: none; padding: 6px 9px; margin-top: 8px; border-radius: 7px;
  border: 1px solid #d8e4ed; background: #f4f8fb; color: #60788b; font-size: 11px; }
.agenda-status.vakantie { background: #fff2dd; border-color: #efd3a6; color: #8b622d; }
.agenda-status.lesdag { background: #eaf5ef; border-color: #c6e0cf; color: #3f7456; }
.agenda-status.toetsweek { background: #e8effb; border-color: #c3d3ee; color: #3d5f97; }
.agenda-status .volgende { margin-left: auto; }
.agenda-weekdagen { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 0 7px; color: #708399; font-size: 11px; font-weight: 700; text-align: center; flex: none; }
.agenda-dagen { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 5px; flex: 1; min-height: 0; }
.agenda-dag { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 0; padding: 6px; background: #f8fafc; border: 1px solid #e3eaf2;
  border-radius: 7px; color: #34556c; overflow: hidden; text-decoration: none; }
.agenda-dag:hover { border-color: #b9cddd; }
.agenda-dag > strong { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 12px; line-height: 1.4; }
.agenda-dag.buiten { opacity: .42; }
.agenda-dag.vandaag > strong { color: #a75459; }
.agenda-dag.st-weekend { background: #f3f5f7; }
.agenda-dag.st-vakantie { background: #fff4e2; border-color: #ecd6b7; color: #896436; }
.agenda-dag.st-toetsweek { background: #eef3fc; border-color: #cbd8ef; }
.agenda-dag.gekozen { border: 2px solid #537c97; background: #edf4fa; padding: 5px; }
.dag-label { font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.dag-label.vak { background: #f7dfb8; color: #81561f; } .dag-label.tw { background: #d6e2f7; color: #3a5c93; }
.agenda-dag > div { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.agenda-dag .chip { background: var(--dg-bg, #e4edf6); color: var(--dg-ink, #36597a); border-left: 2px solid var(--dg, #5f8db5); border-radius: 3px; padding: 2px 4px; font-size: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.agenda-dag small { font-size: 9px; color: #75869a; }
.dg-algemeen { --dg: #5f8db5; --dg-bg: #e4edf6; --dg-ink: #36597a; }
.dg-kiemm { --dg: #a9636a; --dg-bg: #f3e3e5; --dg-ink: #78494e; }
.dg-onderbouw { --dg: #4f9a6c; --dg-bg: #e1f1e7; --dg-ink: #33704b; }
.dg-bovenbouw { --dg: #c07a3a; --dg-bg: #f8e9da; --dg-ink: #84501f; }
.dg-personeel { --dg: #7b68b5; --dg-bg: #ebe6f7; --dg-ink: #54448a; }
.dg-kwaliteit { --dg: #3f8f95; --dg-bg: #dff0f1; --dg-ink: #2d6a6e; }
.dg-te_verwerken { --dg: #8a8f96; --dg-bg: #eceef0; --dg-ink: #555a61; }
.agenda-detail { display: flex; flex-direction: column; min-height: 0; border: 1px solid #dce5f2; border-radius: 12px; background: #fff; overflow: hidden; }
.agenda-detail > header { background: #edf4f8; border-bottom: 1px solid #dce5f2; padding: 16px; flex: none; }
.agenda-detail > header small { font-size: 9px; letter-spacing: 1.2px; color: #607d93; font-weight: 750; }
.agenda-detail > header h3 { font-size: 17px; margin: 5px 0; }
.agenda-detail > header > span { font-size: 11px; color: #708399; }
.detail-context { display: block; margin-top: 8px; font-size: 12px; color: #3f6a55; }
.agenda-detail-scroll { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.agenda-item { border-left: 3px solid var(--dg, #a9636a); padding: 8px 10px; background: var(--dg-bg, #fbf7f8); border-radius: 4px; margin-bottom: 10px; }
.agenda-item small { font-size: 10px; color: var(--dg-ink, #98717a); font-weight: 700; }
.agenda-item p { font-size: 13px; color: #2f475a; margin: 5px 0 6px; }
.agenda-leeg { text-align: center; padding: 14px 8px; color: #71869b; }
.agenda-leeg > span { display: block; font-size: 24px; color: #a5b9c9; }
.agenda-leeg strong { font-size: 12px; } .agenda-leeg p { font-size: 11px; margin: 5px 0; }
.agenda-binnenkort { border-top: 1px solid #e3eaf2; padding-top: 10px; margin-top: 8px; }
.agenda-binnenkort h4 { font-size: 12px; margin: 0 0 6px; }
.agenda-binnenkort > a { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #edf1f5; color: #34556c; text-decoration: none; }
.datum-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 38px; background: #edf3f9; border-radius: 6px; flex: none; }
.datum-chip strong { font-size: 15px; line-height: 1.1; } .datum-chip small { font-size: 9px; }
.agenda-binnenkort > a > span:nth-child(2) { min-width: 0; }
.agenda-binnenkort > a > span:nth-child(2) strong { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-binnenkort > a > span:nth-child(2) small { display: block; font-size: 10px; color: #8093a3; }
.pijltje { margin-left: auto; }
.agenda-lijst { flex: 1; min-height: 0; border: 1px solid #d9e4ee; border-radius: 12px; background: #f0f5f9; padding: 18px; overflow: auto; }
.agenda-papier { max-width: 1050px; margin: auto; background: #fff; border: 1px solid #dde6ee; border-radius: 9px; padding: 20px; box-shadow: 0 4px 14px #34556c09; }
.agenda-papier header { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #5c8299; padding-bottom: 12px; margin-bottom: 12px; }
.agenda-papier header small { font-size: 9px; letter-spacing: 1.3px; color: #7891a6; }
.agenda-papier h2 { margin: 4px 0; font-size: 20px; } .agenda-papier header p { margin: 2px 0; font-size: 12px; }
.agenda-papier header > span { background: #eaf1f8; border-radius: 7px; padding: 8px 10px; font-size: 11px; color: #557a97; }
.agenda-papier table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 12px; }
.agenda-papier th { background: #e8eff6; color: #53718b; text-align: left; }
.agenda-papier td, .agenda-papier th { padding: 8px 10px; border-bottom: 1px solid #e2e9ef; vertical-align: top; }
.agenda-papier tbody tr:nth-child(even) { background: #f6f8fa; }
.agenda-papier td small { display: block; font-size: 11px; color: #72859a; margin-top: 3px; }
.agenda-papier footer { font-size: 10px; color: #60768b; margin-top: 10px; }
.lijst-datum { display: inline-block; white-space: nowrap; font-weight: 700; padding: 3px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.lijst-datum.start { background: #e3eefb; color: #285a91; } .lijst-datum.eind { background: #fce8db; color: #96532a; }
.lijst-badge { display: inline-block; border-radius: 5px; padding: 3px 7px; font-weight: 700; font-size: 11px; background: #e7edf5; color: #4a6581; }
.soort-vakantie .lijst-badge { background: #fff0cf; color: #8a5b1f; } .soort-periode .lijst-badge { background: #daf0e7; color: #326a56; }
.soort-toetsweek .lijst-badge { background: #f9e1e6; color: #9c4057; } .soort-agenda .lijst-badge { background: #dcecfb; color: #376c9b; }
.soort-overig .lijst-badge { background: #e3f2d5; color: #547b2c; } .soort-schooljaar .lijst-badge { background: #ede3fa; color: #70519b; }
.lijst-bewerk { float: right; color: #7a93a6; }
.jfilters label.doelgroepen { grid-column: span 4; }
@media (max-width: 1000px) { .agenda-indeling { grid-template-columns: minmax(0, 1fr); } .agenda-js { height: auto; } }
@media print {
  .agenda-weergave, .jfilters, .kopbalk { display: none !important; }
  .agenda-lijst { border: 0; padding: 0; background: #fff; overflow: visible; }
  .agenda-papier { border: 0; box-shadow: none; max-width: none; padding: 0; }
  .shell > .brandbar, .shell > .hoofdmenu, .shell > .rubrieken, .shell > .submenu { display: none !important; }
}

/* ---- Formulieren in JSIS-stijl (personen, klassen, instellingen) ---- */
.pform { display: flex; flex-direction: column; gap: 12px; }
.pkaart { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(120deg, #fff, #eef4f8);
  border: 1px solid #dbe6ee; border-radius: 12px; box-shadow: 0 3px 0 #bccbd633; }
.pavatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #d6e8f1; color: #1d5670;
  font-weight: 800; font-size: 17px; letter-spacing: .5px; flex: none; }
.pkaart strong { font-size: 18px; color: #1f3a4a; }
.pkaart-sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.psecties { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.psectie { margin: 0; border: 1px solid #dfe6ec; background: #eef2f5; border-radius: 9px; min-width: 44px; flex: 0 0 44px; overflow: hidden; }
.psectie > summary { writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 12px; min-height: 260px; display: flex; align-items: center;
  justify-content: center; gap: 8px; list-style: none; font-size: 12.5px; font-weight: 750; color: #526578; cursor: pointer; user-select: none; }
.psectie > summary::-webkit-details-marker { display: none; }
.psectie > summary svg { transform: rotate(90deg); flex: none; }
.psectie > summary:hover { background: #e3ecf1; }
.psectie[open] { display: grid; grid-template-columns: 44px minmax(0, 1fr); flex: 1 1 440px; background: #fff; }
.psectie[open] > summary { background: #deedf4; color: #195872; }
.psectie.fout > summary { background: #fbe4e2; color: #9b3a36; }
.sfout { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #b9504e; color: #fff; font-size: 11px; transform: rotate(90deg); }
.psectie-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 17px; padding: 20px; align-content: start; min-width: 0; }
.psectie-raster .pveld { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.psectie-raster .pveld.breed { grid-column: 1 / -1; }
.pveld > label { font-size: 12px; font-weight: 700; color: #526c7d; margin: 0; }
.pveld .verplicht { color: #b9504e; }
.pveld input:not([type=checkbox]):not([type=radio]), .pveld select, .pveld textarea { width: 100%; max-width: none; min-height: 42px;
  border: 1px solid #d0dcef; border-radius: 8px; padding: 9px 12px; background: #fcfdff; color: #2c394d; font-size: 13.5px; }
.pveld textarea { min-height: 90px; }
.pveld input:focus, .pveld select:focus, .pveld textarea:focus { outline: none; border-color: #5b93b1; box-shadow: 0 0 0 3px #5b93b122; }
.pveld.fout input, .pveld.fout select, .pveld.fout textarea { border-color: #d48a87; background: #fff8f7; }
.pveld select[multiple] { min-height: 160px; }
.pveld ul:not(.errorlist) { max-height: 230px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 6px; padding: 8px; background: #f8fbfd; border-color: #dbe6ee; }
.pveld ul:not(.errorlist) label { padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; align-items: center; }
.pveld ul:not(.errorlist) label:hover { background: #eef5f9; }
.pveld ul:not(.errorlist) label:has(input:checked) { background: #e1eff6; border-color: #a9cadb; color: #164c64; font-weight: 650; }
.pveld.vinkje { justify-content: flex-end; }
.pveld .schakel { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid #d0dcef; border-radius: 8px;
  background: #fcfdff; font-weight: 650; color: #2c394d; cursor: pointer; }
.pveld .schakel input { width: 17px; height: 17px; accent-color: #2c6d87; }
.pacties { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; margin-top: 4px;
  background: #ffffffee; backdrop-filter: blur(4px); border: 1px solid #dbe6ee; border-radius: 12px; box-shadow: 0 -4px 14px #28465a12; z-index: 2; }
.pacties .knop { min-height: 42px; min-width: 110px; font-size: 13px; }
@media (max-width: 1100px) { .psectie-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .psectie-raster { grid-template-columns: minmax(0, 1fr); } .psectie[open] { flex-basis: 100%; } }
/* verfijning formulier-indeling */
.psectie[open] { flex: 1 1 560px; }
.psectie-raster { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.meerkeuze:not(.lijst) > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 6px; max-height: 260px; overflow: auto;
  padding: 8px; background: #f8fbfd; border: 1px solid #dbe6ee; border-radius: 8px; }
.meerkeuze:not(.lijst) label { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; font-size: 13px; color: var(--ink); font-weight: 500; margin: 0; }
.meerkeuze:not(.lijst) label:hover { background: #eef5f9; }
.meerkeuze:not(.lijst) label:has(input:checked) { background: #e1eff6; border-color: #a9cadb; color: #164c64; font-weight: 650; }
.meerkeuze input[type=checkbox] { width: 16px; height: 16px; accent-color: #2c6d87; margin: 0; }
.meerkeuze.lijst select { min-height: 170px; }
.kleurstaal { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid; vertical-align: -2px; margin-right: 6px; }
.r-agenda { --r-bg: #fcf1f2; --r-ic: #f5dfe2; --r-ink: #97515d; --r-rand: #d9a9b1; }
/* lijst: soort-label blijft binnen zijn kolom */
.agenda-papier td { overflow-wrap: anywhere; }
.lijst-badge { max-width: 100%; white-space: normal; line-height: 1.35; }
