/* Kleuterdoelen: licht en rustig. Eén groot wit-grijs vlak met witte kaarten, ronde hoeken,
   zachte schaduwen en pillen. De vier scorestappen volgen het IEP-verloop (limoen naar teal,
   licht naar donker); nooit rood, geen verkeerslicht en nooit een cijfer of oordeel. Geen externe fonts of
   bibliotheken: systeemlettertype en eigen inline SVG-iconen. */
:root {
  --buiten: #e4e8ee;      /* rondom het app-vlak */
  --achtergrond: #f3f5f8; /* het app-vlak zelf */
  --vlak: #ffffff;        /* kaarten */
  --tegel: #eef1f5;       /* lichte tegels in tabellen */
  --tegel-licht: #f5f7fa;
  --tekst: #1b2333;
  --tekst-zacht: #5a6478;
  --lijn: #e3e7ee;
  --lijn-sterk: #cbd3df;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-licht: #dbeafe;
  --accent-zacht: #eff5ff;
  --accent-donker: #1e3a8a;
  --accent-tekst: #ffffff;
  --focus: #2563eb;

  /* scorestappen: het IEP-huisstijlverloop limoen (#bace04) -> groen (#96c347) ->
     groenblauw (#00a98c) -> teal (#009da6), per stap donkerder gemaakt voor contrast.
     Contrast tegen wit (WCAG): stap 1 3.20:1, stap 2 4.92:1, stap 3 7.64:1,
     stap 4 11.56:1; tussen opeenvolgende stappen 1.51-1.55:1. Stap 1 tegen
     "niet geobserveerd" 2.85:1. Accent met witte tekst 5.17:1;
     tekst-zacht op wit/achtergrond/tegel 5.95/5.45/5.25:1. */
  --stap-1: #899803;
  --stap-2: #5c7a28;
  --stap-3: #005f4f;
  --stap-4: #004044;
  --stap-0: #eef2f7; /* niet geobserveerd */
  --stap-0-streep: #c3ccd9;
  --gestreept: repeating-linear-gradient(135deg, #eef1f5 0 6px, #dde3eb 6px 8px);

  --schaduw-klein: 0 1px 2px rgba(16, 24, 40, 0.05);
  --schaduw-kaart: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05);
  --schaduw-paneel: 0 30px 70px rgba(28, 39, 60, 0.16), 0 2px 8px rgba(28, 39, 60, 0.06);
  --schaduw-accent: 0 6px 16px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);

  --rij-hoogte: 56px;
  --straal: 12px;
  --straal-kaart: 22px;
  --straal-paneel: 30px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 16px;
  min-height: 100vh;
  background: var(--buiten);
  color: var(--tekst);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.01em; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, .tabel-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.alleen-lezer {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.overslaan {
  position: absolute; left: 24px; top: -60px; z-index: 50;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-tekst); font-weight: 600; text-decoration: none;
}
.overslaan:focus { top: 24px; }

.icoon { width: 20px; height: 20px; flex: none; }

/* --- App-vlak: zijbalk + kolom ------------------------------------------------------------ */
.app {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px;
  max-width: 1480px; min-height: calc(100vh - 32px); margin: 0 auto; padding: 14px;
  background: var(--achtergrond);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--straal-paneel);
  box-shadow: var(--schaduw-paneel);
}
.app-kolom { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.zijbalk {
  position: sticky; top: 30px; align-self: start;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  height: calc(100vh - 60px); min-height: 420px; padding: 14px 0;
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--straal-kaart);
  box-shadow: var(--schaduw-klein);
}
.logo { display: inline-flex; border-radius: 12px; }
.logo svg { display: block; filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.3)); }
.zijbalk-lijst {
  list-style: none; margin: auto 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.zijbalk-scheiding { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--lijn); }
.zijbalk-onder { margin: 0; }
.zijknop {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  color: var(--tekst-zacht); background: transparent; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font: inherit;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.zijknop:hover { background: var(--tegel); color: var(--tekst); }
.zijknop[aria-current] {
  background: var(--vlak); color: var(--accent); border-color: var(--lijn);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.1);
}
.zijknop[aria-current]::after {
  content: ""; position: absolute; left: -15px; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--accent);
}
.tip {
  position: absolute; left: calc(100% + 12px); top: 50%; z-index: 30;
  padding: 0.35rem 0.7rem; border-radius: 8px;
  background: var(--tekst); color: #fff; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-4px, -50%);
  transition: opacity 0.12s, transform 0.12s;
}
.zijknop:hover .tip, .zijknop:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }

/* --- Menubalk ------------------------------------------------------------------------------ */
.kop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 10px; background: var(--vlak);
  border: 1px solid var(--lijn); border-radius: var(--straal-kaart); box-shadow: var(--schaduw-klein);
}
.appnaam {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--tekst); text-decoration: none;
}
.menupillen { display: flex; flex-wrap: wrap; gap: 6px; }

.pil {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--lijn); border-radius: 999px;
  background: var(--vlak); color: var(--tekst); box-shadow: var(--schaduw-klein);
  font: inherit; font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pil .icoon { width: 18px; height: 18px; color: var(--tekst-zacht); }
.pil:hover { border-color: var(--lijn-sterk); background: var(--tegel-licht); }
.pil[aria-current], .pil.actief {
  background: var(--accent); border-color: var(--accent); color: var(--accent-tekst);
  box-shadow: var(--schaduw-accent);
}
.pil[aria-current] .icoon, .pil.actief .icoon { color: var(--accent-tekst); }
.pil-klein { padding: 0 14px; font-size: 0.88rem; }

.zoekveld { position: relative; display: flex; align-items: center; flex: 1 1 200px; max-width: 340px; margin: 0; }
.zoekveld .icoon { position: absolute; left: 14px; color: var(--tekst-zacht); pointer-events: none; }
.zoekveld input {
  width: 100%; min-height: 44px; padding: 0 16px 0 42px;
  font: inherit; font-size: 0.95rem; color: var(--tekst);
  background: var(--achtergrond); border: 1px solid var(--lijn); border-radius: 999px;
  transition: background-color 0.15s, border-color 0.15s;
}
.zoekveld input::placeholder { color: var(--tekst-zacht); opacity: 1; }
.zoekveld input:focus { background: var(--vlak); border-color: var(--accent); }

.groepsnaam { display: flex; align-items: center; margin-left: auto; }
.groepkeuze { display: flex; align-items: center; gap: 8px; margin: 0; }
.groepkeuze label { color: var(--tekst-zacht); font-size: 0.9rem; }
.groepslabel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--tegel); border-radius: 999px; font-weight: 600;
}
.groepslabel .icoon { color: var(--tekst-zacht); width: 18px; height: 18px; }
.gebruiker { display: flex; align-items: center; margin-left: auto; }
.groepsnaam + .gebruiker { margin-left: 0; }
.avatar-gebruiker {
  width: 44px; height: 44px; font-size: 0.9rem;
  background: var(--accent-licht); color: var(--accent-donker);
  box-shadow: 0 0 0 2px var(--vlak), 0 0 0 3px var(--lijn);
}

/* --- Formulierelementen en knoppen ------------------------------------------------------- */
select {
  min-height: 44px; max-width: 100%; padding: 0 38px 0 14px;
  font: inherit; font-size: 0.95rem; color: var(--tekst);
  background-color: var(--vlak);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  border: 1px solid var(--lijn); border-radius: 999px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
select:hover { border-color: var(--lijn-sterk); }

.knop, .knop-klein {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 18px;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--tekst);
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: 999px;
  box-shadow: var(--schaduw-klein); cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.knop:hover, .knop-klein:hover { border-color: var(--lijn-sterk); background: var(--tegel-licht); }
.knop-primair, .knop-klein.knop-primair {
  background: var(--accent); border-color: var(--accent); color: var(--accent-tekst);
  font-weight: 600; box-shadow: var(--schaduw-accent);
}
.knop-primair:hover, .knop-klein.knop-primair:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

input[type="text"], input[type="email"], input[type="password"], input[type="file"], textarea {
  font: inherit; color: var(--tekst);
}
input[type="text"], input[type="email"], input[type="password"] {
  min-height: 44px; padding: 0 14px; width: 100%; max-width: 26rem;
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--straal);
}
input[type="file"] { min-height: 44px; padding: 8px; border: 1px dashed var(--lijn-sterk); border-radius: var(--straal); background: var(--tegel-licht); max-width: 100%; }

/* --- Pagina en kaarten -------------------------------------------------------------------- */
.pagina { min-width: 0; }
.paginakop {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px 16px; margin: 0 0 14px; padding: 4px 6px 0;
}
.paginatitel { margin: 0; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.schooljaar { color: var(--tekst-zacht); font-size: 1rem; font-weight: 400; margin-left: 0.35rem; }
.uitleg { margin: 0.5rem 0 0; color: var(--tekst-zacht); font-size: 0.9rem; }
.leeg { color: var(--tekst-zacht); }
.leeg-rustig {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--tegel-licht); color: var(--tekst-zacht);
}

.kaart {
  min-width: 0; padding: 20px;
  background: var(--vlak); border: 1px solid #e8ecf1; border-radius: var(--straal-kaart);
  box-shadow: var(--schaduw-kaart);
}
.kaart + .kaart { margin-top: 14px; }
.kaartkop {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 16px;
}
.kaarttitel { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.kaarttitel-groot { font-size: 1.65rem; font-weight: 600; letter-spacing: -0.02em; }
.kaartsub { margin: 4px 0 0; color: var(--tekst-zacht); font-size: 0.9rem; }
.kaarticoon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: var(--tegel); color: var(--tekst-zacht);
}
.kaarticoon .icoon { width: 18px; height: 18px; }
.kaartacties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kaartuitleg { margin: -8px 0 12px; color: var(--tekst-zacht); font-size: 0.85rem; }
.kaartteller {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--tegel); color: var(--tekst-zacht); font-size: 0.85rem; font-weight: 600;
}

.melding {
  max-width: 34rem; margin: 3rem auto; padding: 28px;
  background: var(--vlak); border: 1px solid #e8ecf1; border-radius: var(--straal-kaart);
  box-shadow: var(--schaduw-kaart);
}
.melding h1 { margin: 0 0 0.75rem; font-size: 1.5rem; font-weight: 600; }
.melding p:last-child { margin-bottom: 0; }
.melding-icoon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent-zacht); color: var(--accent);
}
.melding-icoon .icoon { width: 24px; height: 24px; }
.melding-acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }

/* --- Startpagina -------------------------------------------------------------------------- */
.dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dashboard .kaart + .kaart { margin-top: 0; }
.kaart-breed { grid-column: 1 / -1; }

.segment {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
  background: var(--tegel); border-radius: 24px;
}
.segment-knop {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--tekst); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s;
}
.segment-knop:hover { background: rgba(255, 255, 255, 0.7); }
.segment-knop[aria-current] {
  background: var(--accent); color: var(--accent-tekst); font-weight: 600; box-shadow: var(--schaduw-accent);
}

/* Tegeltabel: lichte tegels zoals een planningsrooster; gestreept = niet van toepassing */
.tabel-zacht { margin: 0 -4px; padding: 0 4px; }
table.tegeltabel { width: 100%; border-collapse: separate; border-spacing: 6px; }
.tegeltabel th, .tegeltabel td { padding: 0; border: 0; background: none; text-align: left; vertical-align: middle; }
.tegeltabel thead th { font-weight: 600; }
.tegeltabel .naamkolom { background: var(--vlak); min-width: 13rem; max-width: 16rem; border-right: 0; }
.kolomkop-tekst { display: block; padding: 0 6px; color: var(--tekst-zacht); font-size: 0.85rem; font-weight: 600; }
.kolomtegel {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px;
  border-radius: var(--straal); background: var(--tegel);
  color: var(--tekst-zacht); font-size: 0.82rem; font-weight: 600; line-height: 1.25; text-align: center;
}
a.kolomtegel { color: var(--tekst); text-decoration: none; }
a.kolomtegel:hover { background: var(--accent-zacht); color: var(--accent-donker); }
.kolomtegel-domein { background: transparent; color: var(--tekst-zacht); min-height: 32px; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.tegelcel { min-width: 9.5rem; }
.tegel {
  display: flex; align-items: center; min-height: 56px; padding: 8px 12px;
  border-radius: var(--straal); background: var(--tegel-licht); border: 1px solid #edf0f4;
}
.tegel-tekst { font-weight: 600; font-size: 0.92rem; }
.tegel-gestreept { background: var(--gestreept); border-color: transparent; }

.kindchip {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px 6px 7px;
  border: 1px solid var(--lijn); border-radius: 16px; background: var(--vlak);
  color: var(--tekst); text-decoration: none; box-shadow: var(--schaduw-klein);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kindchip:hover { border-color: var(--lijn-sterk); box-shadow: 0 4px 12px rgba(16, 24, 40, 0.07); }
.kindchip-tekst { display: flex; flex-direction: column; min-width: 0; }
.kindnaam { font-weight: 600; font-size: 0.92rem; line-height: 1.25; overflow-wrap: anywhere; }
.kindsub { color: var(--tekst-zacht); font-size: 0.8rem; line-height: 1.3; }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.avatar-klein { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar-groot { width: 64px; height: 64px; font-size: 1.25rem; }

.minibalk { display: grid; gap: 5px; width: 100%; }
.balk.balk-mini { height: 10px; border: 0; gap: 2px; background: transparent; }
.balk-mini .stap { border-radius: 999px; }
.minibalk-tekst { color: var(--tekst-zacht); font-size: 0.75rem; line-height: 1.2; white-space: nowrap; }

.legenda-regel {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 14px 0 0; padding: 0; color: var(--tekst-zacht); font-size: 0.82rem;
}
.legenda-regel li { display: inline-flex; align-items: center; gap: 7px; }

.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent-regel, .lijstlink {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 10px 10px;
  border-radius: 16px; background: var(--tegel-licht); border: 1px solid #edf0f4;
}
.lijstlink { align-items: center; min-height: 56px; color: var(--tekst); text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.lijstlink:hover { background: var(--vlak); border-color: var(--lijn-sterk); }
.regel-tekst { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.regel-titel { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.regel-sub {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--tekst-zacht); font-size: 0.82rem; line-height: 1.35;
}
.regel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; color: var(--tekst-zacht); font-size: 0.78rem; }
.stappil {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 5px;
  border-radius: 999px; background: var(--vlak); border: 1px solid var(--lijn);
  color: var(--tekst); font-size: 0.78rem; font-weight: 500;
}
.stip-mini { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }

.snelformulier { display: grid; gap: 6px; margin: 0 0 16px; }
.snelformulier label { font-weight: 600; font-size: 0.92rem; }
.veldrij { display: flex; gap: 8px; }
.snelformulier > * { min-width: 0; }
.veldrij select { flex: 1 1 0; width: 0; min-width: 0; text-overflow: ellipsis; }
.snelactie {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  border-radius: 16px; background: var(--accent-zacht); color: var(--accent-donker);
  font-weight: 600; text-decoration: none; transition: background-color 0.15s;
}
.snelactie:hover { background: var(--accent-licht); }
.icoon-pijl { width: 16px; height: 16px; margin-left: auto; color: var(--tekst-zacht); }
.snelactie .icoon-pijl { color: var(--accent-donker); }

/* --- Kinderenlijst ------------------------------------------------------------------------ */
.kindraster {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px;
}
.kindkaart {
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--lijn); border-radius: 18px; background: var(--vlak);
  color: var(--tekst); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.kindkaart:hover { border-color: var(--lijn-sterk); box-shadow: 0 6px 16px rgba(16, 24, 40, 0.07); }
.zoekstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 14px; color: var(--tekst-zacht); }

/* --- Keuzeknoppen (kindprofiel, import) --------------------------------------------------- */
.keuzes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.75rem; }
.keuze {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--lijn); border-radius: 999px; box-shadow: var(--schaduw-klein);
  background: var(--vlak); color: var(--tekst); text-decoration: none; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.keuze:hover { border-color: var(--lijn-sterk); }
.keuze.actief { background: var(--accent); border-color: var(--accent); color: var(--accent-tekst); font-weight: 600; box-shadow: var(--schaduw-accent); }
.keuzes-klein .keuze { padding: 0 14px; font-size: 0.9rem; }

/* --- Tabellen (groepsoverzicht, raster) --------------------------------------------------- */
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--straal); }
.naamkolom { position: sticky; left: 0; z-index: 1; min-width: 10rem; max-width: 14rem; }
thead .naamkolom { z-index: 2; }

table.overzicht { border-collapse: separate; border-spacing: 6px; width: 100%; }
.overzicht th, .overzicht td { padding: 0; text-align: left; vertical-align: middle; background: none; border: 0; }
.overzicht .naamkolom { background: var(--vlak); min-width: 13rem; }
.overzicht thead th { font-weight: 600; font-size: 0.85rem; vertical-align: bottom; }
.overzicht th.domein .kolomtegel { min-height: 34px; }
.overzicht th.aspect { min-width: 9.5rem; }
.overzicht td { min-width: 9.5rem; }
.overzicht td.cel-leeg .tegel, .overzicht td .tegel { min-height: var(--rij-hoogte); }
.cel-leeg { color: var(--tekst-zacht); text-align: center; }
.cel-fase { font-weight: 600; }

/* Verdelingsbalk */
.balk-blok { min-width: 8rem; width: 100%; }
.balk {
  display: flex; gap: 2px; height: 12px; overflow: hidden;
  border-radius: 999px; background: transparent;
}
.stap { display: block; flex-basis: 0; min-width: 6px; border-radius: 999px; }
.stap-1 { background: var(--stap-1); }
.stap-2 { background: var(--stap-2); }
.stap-3 { background: var(--stap-3); }
.stap-4 { background: var(--stap-4); }
.stap-0 {
  background: repeating-linear-gradient(135deg, var(--stap-0), var(--stap-0) 3px, var(--stap-0-streep) 3px, var(--stap-0-streep) 4.5px);
  box-shadow: inset 0 0 0 1px var(--stap-0-streep);
}
.balk-tekst { margin: 0.35rem 0 0; font-size: 0.76rem; color: var(--tekst-zacht); line-height: 1.25; }

/* Legenda */
.legenda { margin-top: 14px; padding: 14px 18px; background: var(--tegel-licht); border-radius: 16px; }
.legenda h2 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.legenda ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; }
.legenda li { display: inline-flex; align-items: center; gap: 0.5rem; }
.blokje { display: inline-block; width: 26px; height: 12px; border-radius: 999px; flex: none; }

/* --- ParnasSys-import --------------------------------------------------------------------- */
.fout { font-weight: 600; color: var(--tekst); }
.melding.fout { border-left: 5px solid var(--stap-4); }
.importformulier label { font-weight: 600; }
.importformulier p { margin: 0 0 1rem; }
.importlijst { margin: 0; padding-left: 1.25rem; }
.importlijst li { padding: 0.15rem 0; }
.importsecties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 14px; }
.importsecties .kaart + .kaart { margin-top: 0; }

/* --- Invoerraster: tikvlakken van minstens 44x44 px; waarde = gevulde stip ---------------- */
.kruimel { margin: 0 0 0.5rem; }
.kruimel a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--vlak); border: 1px solid var(--lijn); box-shadow: var(--schaduw-klein);
  color: var(--tekst); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.kruimel a:hover { border-color: var(--lijn-sterk); }
.kruimel .icoon { width: 18px; height: 18px; color: var(--tekst-zacht); }
.overzicht.raster th.punt {
  min-width: 12rem; max-width: 16rem; vertical-align: top; font-weight: 500;
  padding: 10px 12px; background: var(--tegel); border-radius: var(--straal);
}
.punt-tekst {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 0.85rem; line-height: 1.3;
}
.badge {
  display: inline-block; margin-bottom: 0.3rem; padding: 0.05rem 0.5rem;
  border: 1px solid var(--lijn); border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: var(--tekst-zacht); background: var(--vlak);
}
.overzicht.raster th.naamkolom { padding-right: 4px; }
.overzicht.raster td.cel {
  min-width: 13rem; padding: 6px 8px;
  background: var(--tegel-licht); border: 1px solid #edf0f4; border-radius: var(--straal);
}
.overzicht.raster tbody tr { height: auto; }
.stippen {
  display: inline-flex; gap: 0; padding: 0 2px;
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: 999px;
}
.stip-knop {
  width: 44px; height: 44px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  touch-action: manipulation;
}
.stip {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%;
  background: var(--vlak); border: 2.5px solid var(--stap-2);
  transition: background-color 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.stip-knop.stap-1 .stip { border-color: var(--stap-1); }
.stip-knop.stap-3 .stip { border-color: var(--stap-3); }
.stip-knop.stap-4 .stip { border-color: var(--stap-4); }
.stip-knop[aria-pressed="true"] .stip { box-shadow: 0 0 0 3px var(--vlak), 0 0 0 5px var(--stap-4); }
.stip-knop[aria-pressed="true"].stap-1 .stip, .stip.stap-1.gevuld { background: var(--stap-1); }
.stip-knop[aria-pressed="true"].stap-2 .stip, .stip.stap-2.gevuld { background: var(--stap-2); }
.stip-knop[aria-pressed="true"].stap-3 .stip, .stip.stap-3.gevuld { background: var(--stap-3); }
.stip-knop[aria-pressed="true"].stap-4 .stip, .stip.stap-4.gevuld { background: var(--stap-4); }
.stip-knop:hover .stip { box-shadow: 0 0 0 4px var(--accent-zacht); }
.stip-knop[aria-pressed="true"]:hover .stip { box-shadow: 0 0 0 3px var(--vlak), 0 0 0 5px var(--stap-4); }
/* alleen lezen: de stappen als aaneengesloten pil, gevuld tot de huidige stap */
.stippen-alleen-lezen { gap: 3px; padding: 4px; background: transparent; border: 0; }
.stippen-alleen-lezen .stip { width: 28px; height: 12px; border-width: 0; border-radius: 999px; }
.stippen-alleen-lezen .stip:not(.gevuld) {
  background: repeating-linear-gradient(135deg, var(--stap-0), var(--stap-0) 3px, var(--stap-0-streep) 3px, var(--stap-0-streep) 4.5px);
  box-shadow: inset 0 0 0 1px var(--stap-0-streep);
}
.cel-tekst { margin: 2px 0 0 4px; font-size: 0.8rem; color: var(--tekst-zacht); }
.celacties { display: flex; gap: 2px; margin-top: 2px; }
.icoon-knop {
  min-width: 44px; min-height: 44px; padding: 0; font-size: 1.1rem; line-height: 1;
  background: transparent; color: var(--accent); border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  touch-action: manipulation;
}
.icoon-knop:hover:not(:disabled) { background: var(--vlak); border-color: var(--lijn); }
.icoon-knop:disabled { color: var(--stap-0-streep); cursor: not-allowed; }
.cel-fout {
  margin: 0.35rem 0 0; padding: 0.35rem 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--tekst);
  background: var(--vlak); border-left: 4px solid var(--stap-4); border-radius: 0 8px 8px 0;
}
.htmx-request .stip-knop, .htmx-request.stip-knop { opacity: 0.6; }

.fasen { display: flex; flex-wrap: wrap; gap: 6px; }
.fase-knop {
  min-width: 44px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 0.92rem; cursor: pointer; touch-action: manipulation;
  background: var(--vlak); color: var(--tekst); border: 1.5px solid var(--lijn-sterk); border-radius: 999px;
  transition: background-color 0.12s, border-color 0.12s;
}
.fase-knop:hover { border-color: var(--stap-2); }
.fase-knop[aria-pressed="true"] { background: var(--stap-3); border-color: var(--stap-3); color: var(--accent-tekst); font-weight: 700; box-shadow: 0 4px 12px rgba(26, 63, 158, 0.28); }

.dialoog {
  max-width: 30rem; width: calc(100% - 2rem); padding: 22px 24px;
  border: 1px solid var(--lijn); border-radius: var(--straal-kaart); color: var(--tekst);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.25);
}
.dialoog::backdrop { background: rgba(27, 35, 51, 0.4); backdrop-filter: blur(2px); }
.dialoog h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.dialoog label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.dialoog textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--lijn); border-radius: var(--straal); background: var(--tegel-licht); }
.dialoog-acties { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1rem; }

/* --- Kindprofiel -------------------------------------------------------------------------- */
.profielkop { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.profielkop-tekst { flex: 1 1 16rem; min-width: 0; }
.profielkop .paginatitel { font-size: 1.65rem; }
.profiel-gegevens { margin: 4px 0 0; color: var(--tekst-zacht); }
.profiel-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.print-alleen { display: none; margin: 0.25rem 0 0; color: var(--tekst-zacht); font-size: 0.85rem; }
.doelenboom { max-width: none; }
.knoop { margin: 0 0 10px; background: var(--vlak); border: 1px solid #e8ecf1; border-radius: 18px; }
.knoop-instrument { box-shadow: var(--schaduw-kaart); border-radius: var(--straal-kaart); }
.knoop > summary {
  display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 15rem) auto; align-items: center;
  gap: 0.35rem 1rem; padding: 0.7rem 1rem; min-height: 52px; cursor: pointer; border-radius: 18px;
}
.knoop > summary { list-style: none; position: relative; padding-left: 2.75rem; }
.knoop > summary::-webkit-details-marker { display: none; }
.knoop > summary::before {
  content: ""; position: absolute; left: 1.1rem; top: 50%; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(-45deg); transition: transform 0.15s;
}
.knoop[open] > summary::before { transform: translateY(-70%) rotate(45deg); }
.knoop > summary:hover { background: var(--tegel-licht); }
.knoop-instrument > summary { font-size: 1.15rem; font-weight: 600; min-height: 60px; }
.knoop-domein { background: var(--tegel-licht); border-color: #edf0f4; }
.knoop-domein > summary { font-weight: 600; }
.knoop-domein > summary:hover, .knoop-aspect > summary:hover { background: var(--tegel); }
.knoop-aspect { background: var(--vlak); }
.knoop-aspect > summary { font-weight: 500; }
.knoop > summary .balk-tekst { display: none; } /* de tekst staat al rechts ervan */
.knoop-tekst { font-size: 0.85rem; font-weight: 400; color: var(--tekst-zacht); }
.knoop-inhoud { padding: 0 0.75rem 0.6rem 1.25rem; }
.knoop .knoop { border-color: #edf0f4; }
.opbouw {
  display: inline-flex; align-items: center; margin-left: 0.5rem; padding: 0.1rem 0.6rem; cursor: help;
  border: 1px dashed var(--stap-0-streep); border-radius: 999px; white-space: nowrap;
  background: var(--stap-0); color: var(--tekst-zacht); font-size: 0.75rem; font-weight: 600;
}
.lijstlink .opbouw { margin-left: auto; cursor: inherit; }
.punten { list-style: none; margin: 0; padding: 0; }
.punt { padding: 0.55rem 0.25rem; border-top: 1px solid var(--lijn); }
.punt:first-child { border-top: 0; }
.punt-regel { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 18rem) auto; gap: 0.35rem 1rem; align-items: center; }
.punt-naam { font-size: 0.92rem; }
.punt-label { font-weight: 600; }
.punt-datum, .punt-leeg { color: var(--tekst-zacht); font-size: 0.88rem; }
.spelregel {
  margin: 0 0 10px; padding: 0.9rem 1.1rem; background: var(--vlak); border: 1px solid #e8ecf1;
  border-radius: var(--straal-kaart); box-shadow: var(--schaduw-kaart); font-weight: 600;
}
.geschiedenis:empty { display: none; }
.gesch-lijst { list-style: none; margin: 0.35rem 0 0.25rem; padding: 0.5rem 0.75rem; font-size: 0.9rem; background: var(--tegel-licht); border-radius: var(--straal); }
.gesch-lijst li { padding: 0.25rem 0; }
.gesch-datum { color: var(--tekst-zacht); margin-right: 0.5rem; }
.gesch-label { font-weight: 600; margin-right: 0.5rem; }
.gesch-door { color: var(--tekst-zacht); }
.gesch-notitie { display: block; margin-left: 0; white-space: pre-line; }

/* --- Inloggen ----------------------------------------------------------------------------- */
.app-zonder-menu { grid-template-columns: 76px minmax(0, 1fr); }
.tijdelijk {
  margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: var(--straal);
  background: var(--accent-zacht); border-left: 4px solid var(--accent); color: var(--tekst); font-size: 0.92rem;
}
.wachtwoordlogin input[type="email"], .wachtwoordlogin input[type="password"] { max-width: none; }
.wachtwoordlogin label { font-weight: 600; }
.wachtwoordlogin p { margin: 0 0 0.9rem; }
.inlogkaart { max-width: 26rem; }
.inlogkaart .knop { width: 100%; }

/* --- Smallere schermen (iPad staand 768px en kleiner) ------------------------------------- */
@media (max-width: 1180px) {
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #kaart-snel { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { padding: 10px; }
  .app { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 24px; min-height: calc(100vh - 20px); }
  .zijbalk { top: 20px; height: calc(100vh - 40px); }
  .zijknop { width: 46px; height: 46px; }
  .zijknop[aria-current]::after { left: -9px; }
  .zoekveld { order: 3; flex-basis: 100%; max-width: none; }
  .kaart { padding: 16px; }
  .kaarttitel-groot { font-size: 1.4rem; }
}
@media (max-width: 700px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .tegeltabel .naamkolom, .overzicht .naamkolom { min-width: 9rem; max-width: 10rem; }
  .kindchip .avatar { display: none; }
  .knoop > summary, .punt-regel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { padding: 0; }
  .app { grid-template-columns: minmax(0, 1fr); border-radius: 0; border: 0; padding: 8px; min-height: 100vh; }
  .zijbalk { position: static; flex-direction: row; height: auto; min-height: 0; padding: 6px 10px; }
  .zijbalk-lijst { flex-direction: row; margin: 0 auto; }
  .zijbalk-scheiding { margin: 0; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid var(--lijn); }
  .zijknop[aria-current]::after { display: none; }
  .tip { display: none; }
  .menupillen .pil { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* aanvullingen */
.legenda .stip { width: 16px; height: 16px; border-width: 0; }
.kindchip-statisch { box-shadow: none; }
.kindchip-statisch:hover { border-color: var(--lijn); box-shadow: none; }
.profielkaart { margin-bottom: 14px; }
.profielkaart .uitleg { margin-top: 12px; }
.profielkop .profiel-acties { margin-top: 0; }
.profielkop .avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.inlog-sub { margin: -0.5rem 0 1.25rem; }
.melding-acties .knop { text-decoration: none; }
.importkaart { max-width: 44rem; }
.importsecties .kaarttitel { margin-bottom: 0.75rem; }
.importbevestig { margin-top: 14px; }
/* groepskaart op de startpagina: vaste hoogte, kop blijft staan tijdens scrollen */
.tabel-hoog { max-height: 27rem; overflow: auto; }
.tabel-hoog thead th { position: sticky; top: 0; z-index: 2; background: var(--vlak); box-shadow: 0 -6px 0 var(--vlak); }
.tabel-hoog thead .naamkolom { z-index: 3; }
.lijst-scroll { max-height: 28rem; overflow-y: auto; padding-right: 4px; border-radius: 16px; }
.lijst-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* "Snel aan de slag" als doel van de menupil Invoer/Bekijken */
#kaart-snel:target { border-color: var(--stap-1); box-shadow: 0 0 0 4px var(--accent-licht), var(--schaduw-kaart); }
#kaart-snel:focus { outline: none; }
#kaart-snel:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
