/* ============================================================
   FTS Platform Concept — huisstijl Flevo Trade Service
   Palet en typografie overgenomen van flevotradeservice.nl:
   primair #003049 · accent #ff4628 · secundair #b9c8d7
   geel #efc743 · licht #f2f2f2 · stroke #e2e2e2
   Fonts: Sora (koppen) · Work Sans (lopende tekst)
   ============================================================ */

@font-face {
  font-family: 'Sora';
  src: url('../assets/Sora-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../assets/WorkSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primair: #003049;
  --primair-donker: #002336;
  --primair-licht: #0a4a6b;
  --accent: #ff4628;
  --accent-donker: #e64f25;
  --secundair: #b9c8d7;
  --secundair-licht: #e8eef4;
  --geel: #efc743;
  --geel-donker: #b98f13;
  --geel-licht: #fdf6dd;
  --groen: #2b7a4b;
  --groen-licht: #e3f1e8;
  --rood-licht: #ffe9e5;
  --licht-bg: #f2f2f2;
  --wit: #ffffff;
  --stroke: #e2e2e2;
  --tekst: #001820;
  --tekst-zacht: rgba(0, 13, 20, 0.72);
  --tekst-stil: #747474;
  --tekst-op-donker: rgba(255, 255, 255, 0.72);
  --radius: 10px;
  --radius-groot: 16px;
  --radius-pill: 100px;
  --schaduw: 0 1px 3px rgba(0, 48, 73, 0.08), 0 4px 16px rgba(0, 48, 73, 0.06);
  --sidebar-breedte: 232px;
  --font-kop: 'Sora', Arial, sans-serif;
  --font-tekst: 'Work Sans', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: var(--font-tekst);
  color: var(--tekst);
  background: var(--licht-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-kop); color: var(--primair); font-weight: 600; }
h1 { font-size: 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 0.95rem; }

a { color: var(--primair); }

/* ---------- Layout: shell ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-breedte);
  min-width: var(--sidebar-breedte);
  background: var(--primair);
  color: var(--tekst-op-donker);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo img { width: 100%; max-width: 168px; display: block; }
.sidebar-logo .platform-naam {
  margin-top: 10px;
  font-family: var(--font-kop);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secundair);
}

.nav { padding: 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--tekst-op-donker);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 450;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-tekst);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.actief { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 550; }
.nav-item.actief .nav-icoon { color: var(--accent); }
.nav-icoon { width: 19px; height: 19px; flex: none; color: var(--secundair); }
.nav-item .nav-teller {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}

.sidebar-voet {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* ---------- Topbar ---------- */

.hoofd { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--wit);
  border-bottom: 1px solid var(--stroke);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .scherm-titel { font-size: 1.02rem; }
.topbar .spacer { flex: 1; }
.topbar .datum { font-size: 0.82rem; color: var(--tekst-stil); }

.concept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--geel-donker);
  background: var(--geel-licht);
  border: 1px solid #ecd98a;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

.gebruiker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primair);
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--secundair-licht);
  color: var(--primair);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kop);
  font-size: 0.75rem; font-weight: 600;
}

/* ---------- Content ---------- */

.inhoud { padding: 26px 28px 48px; max-width: 1360px; width: 100%; }

.scherm { display: none; }
.scherm.actief { display: block; }

.scherm-kop { margin-bottom: 20px; }
.scherm-kop h1 { margin-bottom: 4px; }
.scherm-kop .sub { color: var(--tekst-zacht); font-size: 0.9rem; max-width: 70ch; }

/* ---------- Kaarten & grids ---------- */

.kaart {
  background: var(--wit);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-groot);
  box-shadow: var(--schaduw);
  padding: 20px 22px;
}
.kaart-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.kaart-kop h2 { font-size: 1rem; }
.kaart-kop .kaart-link {
  font-size: 0.8rem;
  color: var(--tekst-stil);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-tekst);
}
.kaart-kop .kaart-link:hover { color: var(--accent-donker); }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-1 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .grid-2-1, .grid-1-1 { grid-template-columns: 1fr; }
}

/* ---------- KPI-tegels ---------- */

.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .kpi-label {
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tekst-stil);
}
.kpi .kpi-waarde {
  font-family: var(--font-kop);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--primair);
  line-height: 1.1;
}
.kpi .kpi-waarde .eenheid { font-size: 0.95rem; font-weight: 450; color: var(--tekst-stil); }
.kpi .kpi-voetnoot { font-size: 0.78rem; color: var(--tekst-zacht); }
.kpi .kpi-voetnoot.goed { color: var(--groen); font-weight: 500; }
.kpi .kpi-voetnoot.let-op { color: var(--geel-donker); font-weight: 500; }
.kpi .kpi-voetnoot.urgent { color: var(--accent-donker); font-weight: 500; }

/* ---------- Badges & statussen ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 550;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.badge-groen { background: var(--groen-licht); color: var(--groen); }
.badge-geel { background: var(--geel-licht); color: var(--geel-donker); }
.badge-rood { background: var(--rood-licht); color: var(--accent-donker); }
.badge-blauw { background: var(--secundair-licht); color: var(--primair); }
.badge-grijs { background: var(--licht-bg); color: var(--tekst-stil); }

.stip { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.stip-groen { background: var(--groen); }
.stip-geel { background: var(--geel-donker); }
.stip-rood { background: var(--accent); }
.stip-blauw { background: var(--primair-licht); }

/* ---------- Knoppen ---------- */

.knop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tekst);
  font-size: 0.86rem;
  font-weight: 550;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.knop-primair { background: var(--accent); color: #fff; }
.knop-primair:hover { background: var(--accent-donker); }
.knop-donker { background: var(--primair); color: #fff; }
.knop-donker:hover { background: var(--primair-donker); }
.knop-stil { background: var(--wit); color: var(--primair); border-color: var(--stroke); }
.knop-stil:hover { border-color: var(--secundair); background: var(--secundair-licht); }
.knop-klein { padding: 6px 14px; font-size: 0.78rem; }

/* ---------- Tabellen ---------- */

.tabel-wrap { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tabel th {
  text-align: left;
  font-family: var(--font-tekst);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tekst-stil);
  padding: 8px 12px;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
.tabel td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f2;
  vertical-align: middle;
  color: var(--tekst);
}
.tabel tr:last-child td { border-bottom: none; }
.tabel tr.rij-klik { cursor: pointer; }
.tabel tr.rij-klik:hover td { background: #f8fafb; }
.tabel .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabel .mono { font-family: var(--font-kop); font-weight: 550; font-size: 0.8rem; color: var(--primair); }
.tabel tfoot td {
  border-top: 2px solid var(--primair);
  border-bottom: none;
  font-weight: 600;
  color: var(--primair);
}

/* ---------- Saldo-balken ---------- */

.saldo-balk {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--secundair-licht);
  overflow: hidden;
  min-width: 90px;
}
.saldo-balk .vulling { height: 100%; border-radius: var(--radius-pill); background: var(--primair-licht); }
.saldo-balk .vulling.vol { background: var(--groen); }
.saldo-balk .vulling.waarschuwing { background: var(--geel-donker); }
.saldo-balk .vulling.urgent { background: var(--accent); }

/* ---------- Waarschuwingslijst ---------- */

.melding {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--wit);
  align-items: flex-start;
}
.melding + .melding { margin-top: 10px; }
.melding.niveau-rood { border-color: #ffc4b8; background: #fff7f5; }
.melding.niveau-geel { border-color: #ecd98a; background: #fffdf4; }
.melding.niveau-groen { border-color: #bfe0cc; background: #f6fbf8; }
.melding .melding-icoon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.melding.niveau-rood .melding-icoon { color: var(--accent-donker); }
.melding.niveau-geel .melding-icoon { color: var(--geel-donker); }
.melding.niveau-groen .melding-icoon { color: var(--groen); }
.melding .melding-titel { font-size: 0.85rem; font-weight: 600; color: var(--primair); }
.melding .melding-tekst { font-size: 0.8rem; color: var(--tekst-zacht); margin-top: 2px; line-height: 1.45; }
.melding .melding-actie {
  font-size: 0.78rem; font-weight: 550; color: var(--accent-donker);
  background: none; border: none; cursor: pointer; padding: 0; margin-top: 6px;
  font-family: var(--font-tekst);
}

/* ---------- Deadlinelijst ---------- */

.deadline-rij {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid #eef0f2;
  font-size: 0.85rem;
}
.deadline-rij:last-child { border-bottom: none; }
.deadline-dag {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius);
  background: var(--secundair-licht);
  color: var(--primair);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-kop);
}
.deadline-dag.piek { background: var(--primair); color: #fff; }
.deadline-dag .dag-nr { font-size: 1.05rem; font-weight: 600; line-height: 1; }
.deadline-dag .dag-naam { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; opacity: 0.8; }
.deadline-info { flex: 1; min-width: 0; }
.deadline-info .dl-titel { font-weight: 550; color: var(--primair); font-size: 0.84rem; }
.deadline-info .dl-sub { color: var(--tekst-stil); font-size: 0.76rem; margin-top: 1px; }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--stroke); margin-bottom: 16px; }
.tab {
  font-family: var(--font-tekst);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--tekst-stil);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 16px;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab:hover { color: var(--primair); }
.tab.actief { color: var(--primair); font-weight: 600; border-bottom-color: var(--accent); }

/* ---------- Formulieren ---------- */

.veld { display: flex; flex-direction: column; gap: 5px; }
.veld label { font-size: 0.78rem; font-weight: 550; color: var(--primair); }
.veld label .verplicht { color: var(--accent); }
.veld input, .veld select, .veld textarea {
  font-family: var(--font-tekst);
  font-size: 0.87rem;
  color: var(--tekst);
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--wit);
  outline: none;
  width: 100%;
}
.veld input:focus, .veld select:focus, .veld textarea:focus {
  border-color: var(--primair-licht);
  box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.08);
}
.veld .hint { font-size: 0.74rem; color: var(--tekst-stil); }
.veld.veld-goed input, .veld.veld-goed select { border-color: var(--groen); background: #fbfefc; }
.veld.veld-fout input, .veld.veld-fout select { border-color: var(--accent); background: #fffafa; }
.veld .veld-melding { font-size: 0.74rem; font-weight: 500; }
.veld.veld-goed .veld-melding { color: var(--groen); }
.veld.veld-fout .veld-melding { color: var(--accent-donker); }

/* ---------- Checks / guardrails ---------- */

.check-rij {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  background: var(--wit);
  border: 1px solid var(--stroke);
}
.check-rij + .check-rij { margin-top: 8px; }
.check-rij.ok { border-color: #bfe0cc; background: #f6fbf8; }
.check-rij.fout { border-color: #ffc4b8; background: #fff7f5; }
.check-rij .check-icoon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.check-rij.ok .check-icoon { color: var(--groen); }
.check-rij.fout .check-icoon { color: var(--accent-donker); }
.check-rij .check-naam { font-weight: 600; color: var(--primair); }
.check-rij .check-detail { color: var(--tekst-zacht); font-size: 0.78rem; margin-top: 1px; }

/* ---------- Kanban ---------- */

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
.kolom {
  background: #eceff1;
  border-radius: var(--radius-groot);
  padding: 12px;
}
.kolom-kop {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 10px;
  font-family: var(--font-kop);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primair);
}
.kolom-kop .kolom-aantal {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--tekst-stil);
  font-family: var(--font-tekst);
  font-weight: 500;
}
.kanban-kaart {
  background: var(--wit);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 48, 73, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.kanban-kaart:hover { box-shadow: var(--schaduw); }
.kanban-kaart + .kanban-kaart { margin-top: 10px; }
.kanban-kaart .kk-ref { font-family: var(--font-kop); font-size: 0.72rem; font-weight: 600; color: var(--tekst-stil); }
.kanban-kaart .kk-titel { font-size: 0.85rem; font-weight: 550; color: var(--primair); margin: 3px 0 8px; line-height: 1.35; }
.kanban-kaart .kk-voet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kanban-kaart .kk-meta { font-size: 0.72rem; color: var(--tekst-stil); }

/* ---------- Magic box (verwerken) ---------- */

.magic-grid { display: grid; grid-template-columns: 0.92fr 320px 1.08fr; gap: 18px; align-items: start; }
.magic-grid .tabel td, .magic-grid .tabel th { padding-left: 7px; padding-right: 7px; }
@media (max-width: 1180px) { .magic-grid { grid-template-columns: 1fr; } }

.doc-venster {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wit);
}
.doc-venster + .doc-venster { margin-top: 14px; }
.doc-kop {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--licht-bg);
  border-bottom: 1px solid var(--stroke);
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--tekst-zacht);
}
.doc-kop .doc-icoon { width: 15px; height: 15px; color: var(--tekst-stil); }
.doc-body { padding: 12px 14px; font-size: 0.76rem; }

.excel-tabel { width: 100%; border-collapse: collapse; font-size: 0.7rem; font-family: Arial, sans-serif; }
.excel-tabel td, .excel-tabel th {
  border: 1px solid #d9dde2;
  padding: 3px 7px;
  white-space: nowrap;
  color: #333;
}
.excel-tabel th { background: #eef1f4; font-weight: 600; text-align: left; }
.excel-tabel .xl-slordig { color: #8a6d1a; background: #fdf9e7; }

.mail-tekst { font-size: 0.78rem; line-height: 1.55; color: #333; font-family: Helvetica, Arial, sans-serif; }
.mail-tekst .mail-meta { color: var(--tekst-stil); font-size: 0.72rem; margin-bottom: 8px; }

.stap-lijst { display: flex; flex-direction: column; gap: 0; }
.stap {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.stap:last-child { padding-bottom: 0; }
.stap::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--secundair-licht);
}
.stap:last-child::before { display: none; }
.stap-bol {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--secundair-licht);
  color: var(--primair);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kop);
  font-size: 0.72rem; font-weight: 600;
  z-index: 1;
}
.stap.klaar .stap-bol { background: var(--groen); color: #fff; }
.stap.bezig .stap-bol { background: var(--accent); color: #fff; }
.stap-info .stap-titel { font-size: 0.85rem; font-weight: 600; color: var(--primair); }
.stap-info .stap-sub { font-size: 0.76rem; color: var(--tekst-zacht); margin-top: 2px; line-height: 1.45; }

.tijd-vergelijk {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--primair);
  color: #fff;
}
.tijd-blok { text-align: center; }
.tijd-blok .tijd-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secundair); }
.tijd-blok .tijd-waarde { font-family: var(--font-kop); font-size: 1.5rem; font-weight: 600; }
.tijd-blok.oud .tijd-waarde { color: var(--secundair); text-decoration: line-through; text-decoration-thickness: 2px; }
.tijd-blok.nieuw .tijd-waarde { color: #fff; }
.tijd-pijl { color: var(--accent); font-size: 1.3rem; }

/* ---------- Diversen ---------- */

.hr { border: none; border-top: 1px solid var(--stroke); margin: 16px 0; }

.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.76rem; color: var(--tekst-zacht); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }

.leeg-tip {
  border: 1px dashed var(--secundair);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--tekst-zacht);
  background: var(--secundair-licht);
}

.voorafgaande-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-kop);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primair);
  background: var(--secundair-licht);
  border: 1px solid var(--secundair);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  white-space: nowrap;
}

.schakelaar { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.8rem; color: var(--tekst-zacht); }
.schakelaar .schakel-spoor {
  width: 34px; height: 19px; border-radius: var(--radius-pill);
  background: var(--secundair);
  position: relative;
  transition: background 0.15s ease;
  flex: none;
}
.schakelaar .schakel-spoor::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s ease;
}
.schakelaar input { display: none; }
.schakelaar input:checked + .schakel-spoor { background: var(--groen); }
.schakelaar input:checked + .schakel-spoor::after { left: 17px; }

/* ---------- Nav-secties (zoals in het echte platform) ---------- */

.nav-sectie {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  padding: 14px 12px 4px;
}
.nav-sectie:first-child { padding-top: 2px; }

/* ---------- Login ---------- */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(255, 70, 40, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(185, 200, 215, 0.12), transparent 55%),
    linear-gradient(160deg, #00263a 0%, var(--primair) 55%, #01415f 100%);
  opacity: 1;
  transition: opacity 0.45s ease;
}
.login-overlay.weg { opacity: 0; pointer-events: none; }

.login-kaart {
  width: 400px;
  max-width: calc(100vw - 40px);
  background: var(--wit);
  border-radius: var(--radius-groot);
  box-shadow: 0 24px 80px rgba(0, 10, 16, 0.45);
  padding: 36px 36px 28px;
  animation: loginIn 0.5s ease both;
}
@keyframes loginIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.login-kaart .login-logo { height: 40px; display: block; margin-bottom: 6px; }
.login-kaart .login-sub {
  font-family: var(--font-kop);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tekst-stil);
  margin-bottom: 24px;
}
.login-voet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 0.72rem;
  color: var(--tekst-stil);
}

/* ---------- Toasts (zoals snackbars in het echte platform) ---------- */

.toast-houder {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primair);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0, 20, 30, 0.35);
  animation: toastIn 0.3s ease both;
  max-width: 420px;
}
.toast.toast-weg { animation: toastUit 0.3s ease both; }
.toast .toast-icoon { width: 18px; height: 18px; flex: none; color: #7fd6a4; }
.toast.toast-info .toast-icoon { color: var(--secundair); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastUit { from { transform: none; opacity: 1; } to { transform: translateY(12px); opacity: 0; } }

/* ---------- Live-demo (magic box afspelen) ---------- */

.stap.wacht .stap-bol { background: var(--secundair-licht); color: var(--tekst-stil); }
.stap-bol .spinner, .knop .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: draai 0.7s linear infinite;
  display: inline-block;
}
@keyframes draai { to { transform: rotate(360deg); } }

.verschijn { animation: verschijnIn 0.35s ease both; }
@keyframes verschijnIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.demo-verborgen { opacity: 0; }

/* Schermwissel: subtiele binnenkomst */
.scherm.actief { animation: schermIn 0.22s ease both; }
@keyframes schermIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Saldo-balken animeren */
.saldo-balk .vulling { transition: width 0.9s cubic-bezier(0.2, 0.7, 0.3, 1); }

@media print {
  .sidebar, .topbar { display: none; }
}
