/* ============================================================================
   FleurenFlow Rapport: ontwerpsysteem
   Alles lokaal. Geen externe verzoeken. Licht en donker zijn allebei ontworpen.
   Verzin geen kleuren: gebruik de tokens hieronder.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}

/* ---------- 1. tokens ---------- */
:root {
  color-scheme: light;

  /* merk */
  --inkt: #14181F;
  --papier: #FAF9F7;
  --roest: #D9541F;          /* grafisch accent: marks, randen, de X-knoop */
  --roest-tekst: #B23F12;    /* roest als leesbare tekst / link */
  --roest-knop: #C0450F;     /* vulling van de primaire knop */
  --roest-diep: #8E3009;
  --roest-zacht: #FBEDE5;
  --roest-rand: #EFC6AC;
  --tekst-op-roest: #FFFFFF;

  /* vlakken */
  --vlak: #F1EFEA;
  --opp: #FFFFFF;
  --opp-2: #FAF9F7;
  --opp-3: #EDEBE5;
  --inkt-vlak: #14181F;
  --op-inkt: #F3F2EF;
  --op-inkt-2: #A9AAAD;

  /* tekst */
  --tekst: #14181F;
  --tekst-2: #565B64;
  --tekst-3: #83888F;

  /* lijnen */
  --lijn: rgba(20, 24, 31, .09);
  --lijn-2: rgba(20, 24, 31, .16);
  --lijn-sterk: rgba(20, 24, 31, .32);

  /* status: altijd samen met een woord of icoon, nooit kleur alleen */
  --goed: #1F7A3D;
  --goed-tekst: #196631;
  --goed-zacht: #E9F3EB;
  --let-op: #B87400;
  --let-op-tekst: #8A5800;
  --let-op-zacht: #FAF1DE;
  --slecht: #C0392B;
  --slecht-tekst: #A82C20;
  --slecht-zacht: #FAEAE8;

  /* invoervelden van de klant */
  --invoer: #FDF2EA;
  --invoer-rand: #EFC3A4;
  --invoer-tekst: #8A3D10;

  /* grafiek: gevalideerd op kleurenblindheid en contrast */
  --serie-1: #D9541F;
  --serie-2: #0089A0;
  --serie-3: #A07800;
  --serie-4: #7B3FA0;
  --pos: #1F7A3D;
  --neg: #C0392B;
  --neutraal: #B4B0A8;
  --raster: rgba(20, 24, 31, .07);
  --as: rgba(20, 24, 31, .24);

  /* vorm */
  --r-s: 5px;
  --r-m: 9px;
  --r-l: 14px;
  --r-vol: 999px;

  --schaduw-1: 0 1px 2px rgba(20, 24, 31, .05);
  --schaduw-2: 0 1px 2px rgba(20, 24, 31, .05), 0 10px 28px -16px rgba(20, 24, 31, .28);
  --schaduw-3: 0 2px 6px rgba(20, 24, 31, .07), 0 26px 60px -22px rgba(20, 24, 31, .38);

  /* ritme */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  --zijbalk: 252px;
  --topbar-h: 60px;

  /* papierkorrel: data-URI, geen extern verzoek */
  --grein: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  --grein-sterkte: .035;
}

/* De donkere stand als eigen ontwerp, niet een omgedraaide lichte stand. */
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-thema="licht"])) { color-scheme: dark;
    --roest: #E8672C; --roest-tekst: #F2793F; --roest-knop: #E8672C;
    --roest-diep: #FF8A52; --roest-zacht: #2A1710; --roest-rand: #5E3018;
    --tekst-op-roest: #14181F;
    --vlak: #0D1015; --opp: #171B22; --opp-2: #1D222A; --opp-3: #232935;
    --inkt-vlak: #060809; --op-inkt: #F3F2EF; --op-inkt-2: #9A9DA3;
    --tekst: #F2F3F5; --tekst-2: #A8AEB8; --tekst-3: #767C86;
    --lijn: rgba(255, 255, 255, .09); --lijn-2: rgba(255, 255, 255, .17);
    --lijn-sterk: rgba(255, 255, 255, .34);
    --goed: #3FA862; --goed-tekst: #5EC17F; --goed-zacht: #12291B;
    --let-op: #D19A1E; --let-op-tekst: #E0AC38; --let-op-zacht: #2B2310;
    --slecht: #E8695C; --slecht-tekst: #F2857A; --slecht-zacht: #2E1512;
    --invoer: #2A1A11; --invoer-rand: #5E3418; --invoer-tekst: #F0A578;
    --serie-1: #E8672C; --serie-2: #12A0BB; --serie-3: #B8880C; --serie-4: #9C63C4;
    --pos: #3FA862; --neg: #E8695C; --neutraal: #5C6068;
    --raster: rgba(255, 255, 255, .07); --as: rgba(255, 255, 255, .24);
    --schaduw-1: 0 1px 2px rgba(0, 0, 0, .5);
    --schaduw-2: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -16px rgba(0, 0, 0, .8);
    --schaduw-3: 0 2px 6px rgba(0, 0, 0, .55), 0 26px 60px -22px rgba(0, 0, 0, .9);
    --grein-sterkte: .022;
  }
}
:root[data-thema="donker"] { color-scheme: dark;
  --roest: #E8672C; --roest-tekst: #F2793F; --roest-knop: #E8672C;
  --roest-diep: #FF8A52; --roest-zacht: #2A1710; --roest-rand: #5E3018;
  --tekst-op-roest: #14181F;
  --vlak: #0D1015; --opp: #171B22; --opp-2: #1D222A; --opp-3: #232935;
  --inkt-vlak: #060809; --op-inkt: #F3F2EF; --op-inkt-2: #9A9DA3;
  --tekst: #F2F3F5; --tekst-2: #A8AEB8; --tekst-3: #767C86;
  --lijn: rgba(255, 255, 255, .09); --lijn-2: rgba(255, 255, 255, .17);
  --lijn-sterk: rgba(255, 255, 255, .34);
  --goed: #3FA862; --goed-tekst: #5EC17F; --goed-zacht: #12291B;
  --let-op: #D19A1E; --let-op-tekst: #E0AC38; --let-op-zacht: #2B2310;
  --slecht: #E8695C; --slecht-tekst: #F2857A; --slecht-zacht: #2E1512;
  --invoer: #2A1A11; --invoer-rand: #5E3418; --invoer-tekst: #F0A578;
  --serie-1: #E8672C; --serie-2: #12A0BB; --serie-3: #B8880C; --serie-4: #9C63C4;
  --pos: #3FA862; --neg: #E8695C; --neutraal: #5C6068;
  --raster: rgba(255, 255, 255, .07); --as: rgba(255, 255, 255, .24);
  --schaduw-1: 0 1px 2px rgba(0, 0, 0, .5);
  --schaduw-2: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -16px rgba(0, 0, 0, .8);
  --schaduw-3: 0 2px 6px rgba(0, 0, 0, .55), 0 26px 60px -22px rgba(0, 0, 0, .9);
  --grein-sterkte: .022;
}

/* ---------- 2. basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--vlak);
  color: var(--tekst);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {                       /* papierkorrel over het hele vlak */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: var(--grein);
  opacity: var(--grein-sterkte);
  mix-blend-mode: multiply;
}
:root[data-thema="donker"] body::before { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-thema="licht"])) body::before { mix-blend-mode: screen; }
}

h1, h2, h3, h4 {
  font-weight: 700; font-stretch: 112%; letter-spacing: -.028em;
  line-height: 1.14; color: var(--tekst);
}
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; letter-spacing: -.018em; }
h4 { font-size: 14px; letter-spacing: -.012em; }
p { text-wrap: pretty; }
a { color: var(--roest-tekst); text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--roest);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--roest); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* getallen: smal en tabulair, zodat kolommen uitlijnen */
.num {
  font-variant-numeric: tabular-nums;
  font-stretch: 88%;
  font-feature-settings: "tnum" 1;
}
.mini { font-size: 12.5px; color: var(--tekst-3); line-height: 1.45; }
.stil { color: var(--tekst-2); }

/* het meetlat-motief: fijne streepjes, het merkdetail van dit rapport */
.meetlat {
  height: 7px; flex: none;
  background-image: repeating-linear-gradient(
    to right, var(--lijn-2) 0 1px, transparent 1px 9px);
  opacity: .85;
}
/* De streep onder het merk in de zijbalk. Stond als style="" in de
   pagina; dat is eruit zodat de beveiligingskop ook inline stijl kan
   verbieden. */
.meetlat--merk { margin: 0 20px 4px; }

/* ---------- 3. app-skelet ---------- */
#app { display: grid; grid-template-columns: var(--zijbalk) minmax(0, 1fr); min-height: 100vh; }
#app[hidden] { display: none; }

.zijbalk {
  grid-column: 1; background: var(--opp); border-right: 1px solid var(--lijn);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.zijbalk__merk { padding: 22px 20px 16px; }
.zijbalk__merk .logo { height: 23px; width: auto; display: block; color: var(--tekst); }
.zijbalk__klant {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--lijn);
  font-weight: 700; font-stretch: 100%; font-size: 14px; letter-spacing: -.02em;
  line-height: 1.25;
}
.zijbalk__periode {
  font-size: 11.5px; font-stretch: 88%; color: var(--tekst-3); margin-top: 3px;
  letter-spacing: .01em;
}

.nav { padding: 6px 12px; overflow-y: auto; flex: 1; }
.nav__kop {
  font-size: 10.5px; font-weight: 600; font-stretch: 88%; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tekst-3);
  padding: 14px 8px 7px;
}
.nav__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px 9px 11px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--tekst-2);
  border-radius: var(--r-m); text-align: left; position: relative;
  transition: background .12s, color .12s;
}
.nav__item:hover { background: var(--opp-3); color: var(--tekst); }
.nav__item .ico { flex: none; opacity: .78; }
.nav__item[aria-current="page"] {
  background: var(--roest-zacht); color: var(--tekst); font-weight: 650;
}
.nav__item[aria-current="page"] .ico { opacity: 1; color: var(--roest); }
.nav__item[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%; translate: 0 -50%;
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--roest);
}
.nav__tel {
  margin-left: auto; font-size: 11.5px; font-stretch: 88%; color: var(--tekst-3);
  font-variant-numeric: tabular-nums;
}
.nav__item[aria-current="page"] .nav__tel { color: var(--roest-tekst); }

.zijbalk__voet { padding: 12px; border-top: 1px solid var(--lijn); display: grid; gap: 10px; }
.demo-merk {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px dashed var(--lijn-2); border-radius: var(--r-m);
  font-size: 11.5px; font-stretch: 88%; color: var(--tekst-3); line-height: 1.35;
}
.demo-merk .stip-demo { width: 6px; height: 6px; border-radius: 50%; background: var(--roest); flex: none; }

/* ---------- 4. topbar ---------- */
.hoofd { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--vlak) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lijn);
}
.topbar__in {
  min-height: var(--topbar-h); display: flex; align-items: center; gap: var(--sp-4);
  padding: 10px 28px; max-width: 1240px; margin: 0 auto; width: 100%;
}
.topbar__titel { font-size: 17px; font-weight: 700; font-stretch: 112%; letter-spacing: -.025em; }
.topbar__rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.vers {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  font-stretch: 88%; color: var(--tekst-2); white-space: nowrap;
}
.vers__stip {
  width: 7px; height: 7px; border-radius: 50%; background: var(--goed); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--goed) 20%, transparent);
}
.vers__stip[data-staat="bezig"] { background: var(--let-op); animation: pols 1.1s ease-in-out infinite; }
.vers__stip[data-staat="oud"] { background: var(--slecht); }
@keyframes pols { 0%,100% { opacity: 1 } 50% { opacity: .32 } }

.topbar .hamburger { display: none; }

/* ---------- 5. inhoud ---------- */
.blad { padding: 26px 28px 96px; max-width: 1240px; margin: 0 auto; width: 100%; }
.scherm { display: grid; gap: var(--sp-5); animation: opkomst .28s cubic-bezier(.2,.7,.3,1) both; }
@keyframes opkomst { from { opacity: 0; translate: 0 8px } to { opacity: 1; translate: 0 0 } }
@media (prefers-reduced-motion: reduce) {
  .scherm { animation: none } * { transition-duration: .01ms !important }
}

.blok-kop { display: flex; align-items: flex-end; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.blok-kop__label {
  font-size: 10.5px; font-weight: 600; font-stretch: 88%; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tekst-3); white-space: nowrap;
}
.blok-kop__lijn { flex: 1; height: 1px; background: var(--lijn-2); margin-bottom: 6px; }

.paneel {
  background: var(--opp); border: 1px solid var(--lijn); border-radius: var(--r-l);
  box-shadow: var(--schaduw-1); overflow: hidden;
}
.paneel--vlak { box-shadow: none; }
.paneel-kop {
  padding: 17px 20px 14px; border-bottom: 1px solid var(--lijn);
  display: flex; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap;
}
.paneel-kop__tekst { min-width: 0; flex: 1 1 240px; }
.paneel-kop h3 { margin-bottom: 2px; }
.paneel-kop__acties { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.paneel-body { padding: 20px; }
.paneel-body--strak { padding: 0; }

/* ---------- 6. knoppen en velden ---------- */
.knop {
  font: inherit; font-size: 13px; font-weight: 600; font-stretch: 95%;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  text-decoration: none;   /* een <a> die als knop is opgemaakt hoort geen streep */
  padding: 8px 13px; border-radius: var(--r-m); cursor: pointer;
  border: 1px solid var(--lijn-2); background: var(--opp); color: var(--tekst);
  transition: background .13s, border-color .13s, transform .08s;
}
.knop:hover { background: var(--opp-3); border-color: var(--lijn-sterk); }
.knop:active { transform: translateY(1px); }
.knop--primair {
  background: var(--roest-knop); border-color: var(--roest-knop); color: var(--tekst-op-roest);
}
.knop--primair:hover { background: var(--roest-diep); border-color: var(--roest-diep); }
.knop--stil { border-color: transparent; background: transparent; color: var(--tekst-2); }
.knop--stil:hover { background: var(--opp-3); color: var(--tekst); border-color: transparent; }
.knop--klein { padding: 5px 9px; font-size: 12px; }
.knop--icoon { padding: 7px; border-radius: var(--r-m); }
.knop:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.knop[aria-busy="true"] { cursor: progress; }
.knop .ico { flex: none; }

.veld {
  font: inherit; font-size: 14px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-m);
  border: 1px solid var(--lijn-2); background: var(--opp); color: var(--tekst);
  transition: border-color .13s, box-shadow .13s;
}
.veld::placeholder { color: var(--tekst-3); }
.veld:focus { border-color: var(--roest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--roest) 18%, transparent); outline: none; }
.veld--invoer {
  background: var(--invoer); border-color: var(--invoer-rand); color: var(--invoer-tekst);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
select.veld { appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
label { font-size: 13px; font-weight: 600; color: var(--tekst-2); display: block; }

/* zoekveld met loep */
.zoek { position: relative; flex: 1 1 240px; min-width: 180px; }
.zoek .ico { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--tekst-3); pointer-events: none; }
.zoek .veld { padding-left: 35px; }

/* schakelaar */
.schakel { position: relative; display: inline-flex; flex: none; }
.schakel input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.schakel__spoor {
  width: 40px; height: 23px; border-radius: var(--r-vol); background: var(--lijn-2);
  border: 1px solid transparent; transition: background .16s; position: relative; pointer-events: none;
}
.schakel__spoor::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--opp); box-shadow: var(--schaduw-1);
  transition: translate .16s cubic-bezier(.3,.8,.3,1);
}
.schakel input:checked + .schakel__spoor { background: var(--roest-knop); }
.schakel input:checked + .schakel__spoor::after { translate: 17px 0; }
.schakel input:focus-visible + .schakel__spoor { outline: 2px solid var(--roest); outline-offset: 2px; }

/* ---------- 7. chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 2px 8px 2px 6px; border-radius: var(--r-vol);
  font-size: 11.5px; font-weight: 600; font-stretch: 88%; letter-spacing: .005em;
  background: var(--opp-3); color: var(--tekst-2); border: 1px solid transparent;
  white-space: nowrap;
}
.chip .stip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip--goed { background: var(--goed-zacht); color: var(--goed-tekst); }
.chip--let-op { background: var(--let-op-zacht); color: var(--let-op-tekst); }
.chip--slecht { background: var(--slecht-zacht); color: var(--slecht-tekst); }
.chip--roest { background: var(--roest-zacht); color: var(--roest-tekst); }
.chip--kaal { background: transparent; border-color: var(--lijn-2); color: var(--tekst-2); }

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; font-stretch: 88%; }
.delta--op { color: var(--goed-tekst); }
.delta--neer { color: var(--slecht-tekst); }
.delta--gelijk { color: var(--tekst-3); }

/* ---------- 8. tabellen ---------- */
.tabel-kader {
  overflow-x: auto; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tabel thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--opp-3); color: var(--tekst-2);
  font-size: 11px; font-weight: 600; font-stretch: 88%; letter-spacing: .09em;
  text-transform: uppercase; text-align: left; white-space: nowrap;
  padding: 9px 12px; border-bottom: 1px solid var(--lijn-2);
}
.tabel thead th.r, .tabel td.r { text-align: right; }
.tabel thead th.sorteerbaar { cursor: pointer; user-select: none; }
.tabel thead th.sorteerbaar:hover { color: var(--tekst); }
.tabel thead th[aria-sort] { color: var(--roest-tekst); }
.tabel th .pijl { display: inline-block; margin-left: 4px; opacity: .9; }
.tabel tbody td { padding: 9px 12px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover td { background: var(--opp-2); }
.tabel tbody tr[data-actief="ja"] td { background: var(--roest-zacht); }
.tabel .naam { font-weight: 600; letter-spacing: -.008em; }
.tabel .sub { display: block; font-size: 11.5px; color: var(--tekst-3); font-weight: 400; font-stretch: 88%; }

.lege-staat {
  padding: var(--sp-7) var(--sp-4); text-align: center; color: var(--tekst-2);
}
.lege-staat h4 { margin-bottom: 5px; }

/* ---------- 9. grafiek ---------- */
.grafiek { width: 100%; display: block; overflow: visible; }
.grafiek text { font-family: "Archivo", sans-serif; font-variant-numeric: tabular-nums; }
.grafiek .as-tekst { font-size: 11px; font-stretch: 88%; fill: var(--tekst-3); }
.grafiek .raster { stroke: var(--raster); stroke-width: 1; }
.grafiek .nullijn { stroke: var(--as); stroke-width: 1; }

.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font-size: 12.5px; color: var(--tekst-2); font-stretch: 95%; }
.legenda__item { display: inline-flex; align-items: center; gap: 6px; }
.legenda__vlag { width: 11px; height: 11px; border-radius: 3px; flex: none; }

#tooltip {
  position: fixed; z-index: 9000; pointer-events: none; opacity: 0;
  transition: opacity .1s; max-width: 260px;
  background: var(--inkt-vlak); color: var(--op-inkt);
  border-radius: var(--r-m); padding: 9px 11px; box-shadow: var(--schaduw-3);
  font-size: 12.5px; line-height: 1.42;
}
#tooltip[data-zichtbaar="ja"] { opacity: 1; }
#tooltip b { font-weight: 650; font-stretch: 100%; }
#tooltip .tt-rij { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
#tooltip .tt-rij span:last-child { font-variant-numeric: tabular-nums; font-stretch: 88%; font-weight: 600; }
#tooltip .tt-stil { color: var(--op-inkt-2); }

/* ---------- 10. meldingen ---------- */
#meldingen {
  position: fixed; z-index: 9500; bottom: 20px; left: 50%; translate: -50% 0;
  display: grid; gap: 8px; justify-items: center; pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}
.melding {
  background: var(--inkt-vlak); color: var(--op-inkt); padding: 10px 15px;
  border-radius: var(--r-m); box-shadow: var(--schaduw-3); font-size: 13.5px;
  display: flex; align-items: center; gap: 9px; animation: melding-in .24s cubic-bezier(.2,.8,.3,1) both;
}
.melding[data-ernst="slecht"] { background: var(--slecht); color: #fff; }
@keyframes melding-in { from { opacity: 0; translate: 0 12px } }

/* ---------- 11. telefoon ---------- */
@media (max-width: 900px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  .hoofd { grid-column: 1; }
  .zijbalk {
    position: fixed; inset: 0 auto 0 0; width: 282px; height: 100dvh;
    translate: -100% 0; transition: translate .24s cubic-bezier(.3,.8,.3,1);
    box-shadow: var(--schaduw-3); z-index: 60;
  }
  .zijbalk[data-open="ja"] { translate: 0 0; }
  .zijbalk-scherm {
    position: fixed; inset: 0; background: rgba(10, 12, 16, .5); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .zijbalk-scherm[data-open="ja"] { opacity: 1; pointer-events: auto; }
  .topbar .hamburger { display: inline-flex; }
  .topbar__in { padding: 9px 14px; gap: 10px; }
  .topbar__titel { font-size: 15.5px; }
  .blad { padding: 18px 14px 88px; }
  .vers { font-size: 11.5px; }
  .vers__tekst-lang { display: none; }
  .paneel-kop { padding: 15px 15px 12px; }
  .paneel-body { padding: 15px; }
  h1 { font-size: 22px; }
}
@media (max-width: 460px) {
  .knop--verberg-klein span:not(.ico) { display: none; }
  .knop--verberg-klein { padding: 8px; }
}

/* ---------- 12. logo dat meekleurt met de stand ---------- */
.logo-img { content: url("logo/fleurenflow-lockup.svg"); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-thema="licht"])) .logo-img { content: url("logo/fleurenflow-lockup-wit.svg"); }
}
:root[data-thema="donker"] .logo-img { content: url("logo/fleurenflow-lockup-wit.svg"); }
:root[data-thema="licht"] .logo-img { content: url("logo/fleurenflow-lockup.svg"); }

/* ============================================================================
   Pagina-eigen CSS hieronder, per pagina onder een eigen kop en met een prefix.
   ========================================================================== */

/* ---------- terug naar de site (zijbalk + inlogscherm) ---------- */
.terug-site {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-m);
  font-size: 12.5px; font-stretch: 90%; font-weight: 500;
  color: var(--tekst-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.terug-site:hover { background: var(--opp-2); color: var(--tekst); }
.terug-site svg { flex: none; }

.in-naar-site {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-stretch: 90%; font-weight: 500;
  color: var(--op-inkt-2); text-decoration: none;
}
.in-naar-site:hover { color: var(--op-inkt); }
.in-naar-site svg { flex: none; }

/* ---------- blokken komen rustig binnen bij het wisselen van pagina ---------- */
.scherm.is-in > * {
  opacity: 0; transform: translateY(10px);
  animation: ax-binnen .42s cubic-bezier(.2, .75, .3, 1) forwards;
}
.scherm.is-in > *:nth-child(1) { animation-delay: .02s }
.scherm.is-in > *:nth-child(2) { animation-delay: .07s }
.scherm.is-in > *:nth-child(3) { animation-delay: .12s }
.scherm.is-in > *:nth-child(4) { animation-delay: .17s }
.scherm.is-in > *:nth-child(n+5) { animation-delay: .22s }
@keyframes ax-binnen { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .scherm.is-in > * { animation: none; opacity: 1; transform: none; }
}

/* ---------- 12. het "waarom"-blok ----------
   Overal waar we uitleggen waaróm een getal is zoals het is. Eén regel per
   oorzaak: een balkje links van het midden kost geld, rechts levert het op. */
.waarom {
  border: 1px solid var(--lijn); border-radius: var(--r-m);
  background: var(--opp-2); padding: 14px 15px 12px;
}
.waarom--compact { padding: 12px 13px 10px; background: transparent; }
.waarom__kop {
  font-size: 11.5px; font-weight: 700; font-stretch: 88%;
  letter-spacing: .07em; text-transform: uppercase; color: var(--tekst-3);
  margin-bottom: 8px;
}
.waarom__samen { font-size: 13.5px; line-height: 1.5; margin-bottom: 4px; }
.waarom__gat { margin-bottom: 10px; }
.waarom__lijst { list-style: none; display: grid; gap: 10px; }
.waarom__rij { display: flex; gap: 12px; align-items: flex-start; }
.waarom__tekst { min-width: 0; flex: 1; }
.waarom__regel {
  display: flex; align-items: baseline; gap: 10px; justify-content: space-between;
  font-size: 13.5px; margin-bottom: 1px;
}
.waarom__regel b { font-weight: 650; font-stretch: 95%; }
.waarom__bedrag { font-size: 13px; font-weight: 650; white-space: nowrap; }
.waarom__rij[data-teken="neg"] .waarom__bedrag { color: var(--slecht-tekst); }
.waarom__rij[data-teken="pos"] .waarom__bedrag { color: var(--goed-tekst); }

/* het balkje: twee helften met een streep in het midden */
.waarom__balk { display: flex; width: 84px; flex: none; margin-top: 5px;
  border-left: 1px solid transparent; }
.waarom__balk i { display: block; width: 50%; height: 9px; }
.waarom__balk-links { display: flex; justify-content: flex-end;
  border-right: 1px solid var(--lijn-2); }
.waarom__balk-rechts { border-left: 1px solid transparent; }
.waarom__balk u { display: block; height: 9px; border-radius: 2px; text-decoration: none; }
.waarom__balk-links u { background: var(--neg); }
.waarom__balk-rechts u { background: var(--pos); }

.waarom__slot {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 11px;
  padding-top: 10px; border-top: 1px dashed var(--lijn-2);
  font-size: 12.5px; line-height: 1.5; color: var(--tekst-2);
}
.waarom__slot svg { flex: none; margin-top: 2px; color: var(--tekst-3); }
.waarom__slot--kans { border-top: 0; padding-top: 0; margin-top: 6px; color: var(--roest-tekst); }
.waarom__slot--kans svg { color: var(--roest); }

@media (max-width: 560px) {
  .waarom__balk { width: 56px; }
  .waarom__regel { flex-wrap: wrap; gap: 2px 10px; }
}
