/* Boob & Poep · ontwerp B Kraamkamer. Licht en warm overdag, gedempt donker 's nachts. */

:root {
  --grond: #F4EEE6;
  --kaart: #FFFCF8;
  --inkt: #2B2420;
  --bij: #6E625A;
  --lijn: rgba(43, 36, 32, 0.09);
  --zacht-vlak: #EFE7DD;
  --perzik: #F2C7AE;
  --perzik-sterk: #EBA982;
  --perzik-inkt: #5A3A2A;
  --perzik-zacht: #FBEADF;
  --salie: #DCE6DC;
  --salie-inkt: #3E5B49;
  --plas: #DCE6F2;
  --plas-inkt: #23364F;
  --poep: #EBDCC6;
  --poep-inkt: #5A3F1F;
  --geel: #F5E2B8;
  --rood: #9E2F1E;
  --rood-zacht: #F6D9D2;
  --knop: #2B2420;
  --knop-tekst: #FFF8F1;
  --kop: 'Fraunces', Georgia, serif;
  --tekst: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --r: 22px;
}

body.nacht {
  --grond: #1E1A17;
  --kaart: #2A2420;
  --inkt: #EDE3D8;
  --bij: #A8998C;
  --lijn: rgba(255, 255, 255, 0.07);
  --zacht-vlak: #3A322C;
  --perzik: #5E4436;
  --perzik-sterk: #7A4E38;
  --perzik-inkt: #F2C7AE;
  --perzik-zacht: #3A2B24;
  --salie: #2F3B32;
  --salie-inkt: #A9C4B0;
  --plas: #2E3A4A;
  --plas-inkt: #C9D6E8;
  --poep: #4A3C2C;
  --poep-inkt: #E6D2B4;
  --geel: #4A3F22;
  --rood: #F0A898;
  --rood-zacht: #4A2A24;
  --knop: #EDE3D8;
  --knop-tekst: #1E1A17;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grond); color: var(--inkt); font-family: var(--tekst); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
body.vast { overflow: hidden; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
/* Dubbel tikken zoomt het scherm niet in (half wakker, baby op de arm), en tikken wacht niet op een tweede tik. */
* { touch-action: manipulation; }
p { margin: 0; line-height: 1.4; }
[hidden] { display: none !important; }

.scherm {
  max-width: 520px; margin: 0 auto; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 16px);
  display: flex; flex-direction: column; gap: 12px;
}
.laden { padding: 40px 4px; }

/* ---------- Kop ---------- */
.kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 2px; }
.kop-tekst { min-width: 0; }
.kop h1 { margin: 0; font-family: var(--kop); font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.bijtekst { margin: 2px 0 0; font-size: 14px; color: var(--bij); font-weight: 600; }
.kopknoppen { display: flex; gap: 8px; flex-shrink: 0; }
.pil {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: none; background: var(--kaart); color: var(--inkt);
  font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pil.rond { width: 44px; padding: 0; }
.pil.donker { background: var(--knop); color: var(--knop-tekst); }

/* ---------- Basisonderdelen ---------- */
.kaart { background: var(--kaart); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kaart.fout { background: var(--rood-zacht); }
.label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--bij); }
.sublabel { font-size: 13px; font-weight: 700; color: var(--bij); margin-top: 4px; }
.zacht { color: var(--bij); }
.klein { font-size: 13px; }
.sub { font-size: 15px; color: var(--bij); }
.groot { font-family: var(--kop); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -1px; margin: 0; }
.duw { flex: 1; }
.rechts { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--bij); }

.knop {
  min-height: 56px; border-radius: 18px; border: none; background: var(--knop); color: var(--knop-tekst);
  font-weight: 800; font-size: 17px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform .08s ease; text-align: center; line-height: 1.15;
}
.knop:active, .pil:active, .mini:active, .vinkje:active, .keuze:active { transform: scale(0.97); }
.knop.zacht { background: var(--zacht-vlak); color: var(--inkt); }
.tekstknop { background: none; border: none; color: var(--bij); font-weight: 800; font-size: 15px; min-height: 44px; padding: 0 6px; cursor: pointer; }
.tekstknop.klein { font-size: 14px; align-self: center; }
.rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rij4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.veld { display: flex; flex-direction: column; gap: 6px; }
.veld span { font-size: 13px; font-weight: 700; color: var(--bij); }
.veld input, .veld textarea {
  min-height: 52px; border-radius: 14px; border: 2px solid var(--zacht-vlak); background: var(--kaart); color: var(--inkt);
  padding: 10px 14px; font-size: 16px; width: 100%;
}
/* iPhone: een datum-tijdveld wilde breder zijn dan het blad en zette de tekst in het midden (foto Jesse, 11 november). */
.veld input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
.veld input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
.veld textarea { resize: vertical; }
.veld input:focus, .veld textarea:focus { outline: none; border-color: var(--inkt); }

.keuzes { display: flex; flex-wrap: wrap; gap: 8px; }
.keuze {
  flex: 1 1 auto; min-height: 48px; min-width: 64px; padding: 6px 14px; border-radius: 14px; border: 2px solid var(--zacht-vlak);
  background: var(--kaart); color: var(--inkt); font-weight: 800; font-size: 15px; cursor: pointer;
}
.keuze.aan { background: var(--knop); border-color: var(--knop); color: var(--knop-tekst); }
.keuzes.kolom { flex-direction: column; }
/* Vier knoppen op één rij (tijden van de nacht bij Voeding om de). */
.keuzes.vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.keuzes.vier .keuze { min-width: 0; padding: 6px 4px; }
.keuzes.drie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keuzes.drie .keuze { min-width: 0; padding: 6px 4px; }
.keuzes.kolom .keuze { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }
.keuzes.kolom .keuze span { font-weight: 600; font-size: 13px; opacity: .8; }

/* ---------- Blokken op het startscherm ---------- */
.blokken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.blok { position: relative; display: flex; flex-direction: column; min-width: 0; }
.blok.breed { grid-column: 1 / -1; }
.blok > .kaart, .blok > .tegel { flex: 1; }
[data-houd] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.blok.ingedrukt > * { transform: scale(0.98); transition: transform .5s ease; }

.kaartkop, .tegelkop { display: flex; align-items: baseline; gap: 8px; }

/* Volgende voeding */
.voeding { background: var(--perzik); gap: 8px; }
.voeding .label { color: var(--perzik-inkt); }
.voeding .kant { font-family: var(--kop); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -1px; margin: 2px 0 0; }
.voeding .sub { color: var(--perzik-inkt); opacity: .85; }
.voeding .knop.zacht { background: rgba(255, 252, 248, 0.7); }
.voeding .rij2 .knop { font-size: 16px; padding: 0 8px; }
.voeding.is-tijd { background: var(--perzik-sterk); box-shadow: 0 0 0 3px var(--inkt) inset; }
.wanneer { margin-left: auto; font-family: var(--kop); font-size: 22px; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; text-align: right; }
.wanneer small { font-family: var(--tekst); font-size: 13px; font-weight: 700; color: var(--perzik-inkt); }
.wanneer.nu { font-size: 26px; flex-direction: row; gap: 6px; align-items: baseline; }
body.nacht .voeding .knop.zacht { background: rgba(0, 0, 0, 0.25); color: var(--inkt); }

/* Tegels */
.tegel { background: var(--kaart); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 128px; cursor: pointer; }
.tegelinhoud { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.getal { font-family: var(--kop); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.getal.klein-getal { font-size: 26px; }
.tegelvoet { display: flex; align-items: flex-end; gap: 8px; }
.voet { font-size: 13px; color: var(--bij); font-weight: 600; flex: 1; line-height: 1.3; }
.mini { min-height: 40px; min-width: 64px; padding: 0 12px; border-radius: 12px; border: none; background: var(--knop); color: var(--knop-tekst); font-weight: 800; font-size: 14px; cursor: pointer; }
.tegel.t-normaal { background: var(--salie); }
.tegel.t-verhoging { background: var(--geel); }
.tegel.t-koorts, .tegel.t-koud { background: var(--rood-zacht); }

.chiprij { display: flex; flex-wrap: wrap; gap: 4px; }
.kchip { font-style: normal; font-size: 11px; font-weight: 800; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.k-links { background: var(--perzik); color: var(--perzik-inkt); }
.k-rechts { background: var(--salie); color: var(--salie-inkt); }
.bol { width: 12px; height: 12px; border-radius: 50%; display: block; }
.s-plas { background: #4A7DB8; }
.s-poep { background: #A36A2C; }
.s-poepplas { background: linear-gradient(90deg, #4A7DB8 50%, #A36A2C 50%); }
.s-leeg { background: transparent; box-shadow: 0 0 0 2px #8E6FB0 inset; }

.vinkjes { display: flex; gap: 8px; flex: 1; align-items: center; }
.vinkje { flex: 1; min-height: 52px; border-radius: 14px; border: 2px solid var(--zacht-vlak); background: var(--kaart); color: var(--inkt); font-weight: 800; font-size: 18px; cursor: pointer; }
.vinkje.aan { background: var(--salie); border-color: var(--salie); color: var(--salie-inkt); }

/* Regels (tijdlijn en overzichten) */
.lijstkaart { gap: 4px; }
.regels { display: flex; flex-direction: column; }
.regel {
  display: grid; grid-template-columns: 48px 12px 1fr auto; align-items: center; gap: 10px; min-height: 50px; padding: 6px 4px;
  border-top: 1px solid var(--lijn); border-radius: 12px;
  background: linear-gradient(90deg, var(--perzik) 0 0) no-repeat left / 0% 100%;
}
.regels .regel:first-child { border-top-color: transparent; }
/* Drinkbeurt: 2 of 3 voedingen samen in een kader met een streep in de voedingkleur (zoals de cirkels van Jesse). */
.beurtkader { background: var(--perzik-zacht); border-radius: 14px; box-shadow: inset 4px 0 0 #C2714F; margin: 4px -6px; padding: 0 6px; }
.beurtkader .regel { border-top-color: transparent; }
.beurtkader + .regel { border-top-color: transparent; }
.regel.ingedrukt { background-size: 100% 100%; transition: background-size .5s linear; }
.tijd { font-variant-numeric: tabular-nums; font-size: 15px; }
.wat { line-height: 1.3; font-size: 15px; }
.notitie { display: block; font-size: 13px; color: var(--bij); }
.door { font-size: 12px; color: var(--bij); text-align: right; }
.dagscheiding { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--bij); padding: 10px 4px 2px; }
.samenvatting { font-size: 13px; font-weight: 700; color: var(--bij); }
.punt { width: 12px; height: 12px; border-radius: 50%; background: var(--zacht-vlak); }
.p-voeding { background: #C2714F; }
.p-luier-plas { background: #4A7DB8; }
.p-luier-poep { background: #A36A2C; }
.p-luier-poepplas { background: linear-gradient(90deg, #4A7DB8 50%, #A36A2C 50%); }
.p-luier-leeg { background: transparent; box-shadow: 0 0 0 2px #8E6FB0 inset; }
.p-temp-normaal { background: var(--salie-inkt); }
.p-temp-verhoging { background: #C9A23A; }
.p-temp-koorts, .p-temp-koud { background: var(--rood); }
.p-vitamine { background: var(--salie); box-shadow: 0 0 0 2px var(--salie-inkt) inset; }
.p-para { background: #8E6FB0; }

/* Indeling aanpassen */
.schikbalk { display: flex; align-items: center; gap: 8px; background: var(--kaart); border-radius: 16px; padding: 6px 6px 6px 14px; position: sticky; top: calc(env(safe-area-inset-top) + 6px); z-index: 15; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.blokken.schikken .blok { background: var(--zacht-vlak); border-radius: calc(var(--r) + 4px); padding: 4px; gap: 4px; }
.blokken.schikken .blok > .kaart, .blokken.schikken .blok > .tegel { pointer-events: none; opacity: .75; }
.blokken.schikken .tegel { min-height: 0; }
.schik { display: flex; gap: 4px; }
.schik button { flex: 1; min-height: 44px; min-width: 0; padding: 0; border-radius: 14px; border: none; background: var(--knop); color: var(--knop-tekst); font-weight: 800; font-size: 16px; cursor: pointer; }
.verborgen-lijst { display: flex; flex-wrap: wrap; gap: 8px; }
.verborgen-lijst .pil { background: var(--zacht-vlak); }

/* Luier onderin */
.onderruimte { height: calc(96px + env(safe-area-inset-bottom)); flex-shrink: 0; }
.onderbalk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--grond) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--lijn);
}
.onderbalk .rij4 { max-width: 520px; margin: 0 auto; }
.knop.plas { background: var(--plas); color: var(--plas-inkt); }
.knop.poep { background: var(--poep); color: var(--poep-inkt); }
.knop.leeg { background: var(--kaart); color: var(--bij); box-shadow: 0 0 0 2px var(--zacht-vlak) inset; }
/* Poep en plas: van de poepkleur naar de plaskleur, tussen de knoppen Poep en Plas in. */
.knop.poepplas { background: linear-gradient(90deg, var(--poep), var(--plas)); color: var(--inkt); }
/* Vier knoppen naast elkaar (Poep, Poep en plas, Plas, Leeg): iets kleinere letters, lange tekst over twee regels. */
.onderbalk .knop { min-height: 62px; font-size: 16px; padding: 0 6px; }

/* Melding onderin */
#toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 50; max-width: 496px; margin: 0 auto;
  background: var(--knop); color: var(--knop-tekst); border-radius: 18px; padding: 8px 8px 8px 16px;
  display: flex; align-items: center; gap: 4px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
#toast span { flex: 1; }
#toast .tekstknop { color: var(--perzik); padding: 0 10px; }
body.nacht #toast .tekstknop { color: #7A4A30; }

/* ---------- Bladen ---------- */
#blad { position: fixed; inset: 0; z-index: 40; }
.blad-achter { position: absolute; inset: 0; background: rgba(20, 16, 14, 0.45); }
.blad {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; background: var(--kaart); border-radius: 28px 28px 0 0;
  padding: 10px 16px 0; display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto;
}
/* De knoppen onderin het blad (Klaar, Weghalen, Bewaar) blijven in beeld, ook op een kleine iPhone.
   De ruimte onderin zit in deze rij zelf en niet in het blad: Safari rekent een vaste rij vanaf de binnenkant
   van het blad, en met ruimte onderin het blad viel de rij over Notitie en Wanneer (foto's Jesse, 11 november). */
.blad > .rij2:last-child {
  position: sticky; bottom: 0; z-index: 2; background: var(--kaart);
  padding: 8px 0 calc(env(safe-area-inset-bottom) + 16px);
}
.greep { width: 40px; height: 5px; border-radius: 3px; background: var(--zacht-vlak); align-self: center; }
.bladkop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bladkop h2 { margin: 0; font-family: var(--kop); font-size: 28px; }
.blad .knop.zacht { background: var(--zacht-vlak); }
.kleuren { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kleur {
  min-height: 60px; border-radius: 14px; border: 2px solid var(--zacht-vlak); background: var(--kaart); color: var(--inkt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.kleur i { width: 22px; height: 22px; border-radius: 50%; display: block; border: 1px solid rgba(0, 0, 0, 0.12); }
.kleur.aan { border-color: var(--inkt); }
body.nacht .kleur i, body.nacht .kleurstip { border-color: rgba(255, 255, 255, 0.35); }   /* zwart blijft zichtbaar in de nachtstand */
.advies:empty { display: none; }
.advies { font-weight: 700; color: var(--rood); font-size: 14px; }
.fotoknop { cursor: pointer; }
.fotoknoppen .knop { padding: 0 8px; }
/* Lege plekken in het blad (geen kleur bij een plasluier, nog geen foto) nemen geen ruimte in. */
#poepDeel:empty, #fotoPlek:empty { display: none; }
.foto { width: 100%; border-radius: 16px; display: block; }
.teller { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 10px; }
.teller .groot { text-align: center; font-variant-numeric: tabular-nums; font-size: 38px; }
.teller .knop { font-size: 30px; min-height: 64px; }
.snel { display: flex; justify-content: space-between; }
.tempstatus { padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.35; }
.tempstatus.t-normaal { background: var(--salie); }
.tempstatus.t-verhoging { background: var(--geel); }
.tempstatus.t-koorts, .tempstatus.t-koud { background: var(--rood-zacht); }

/* ---------- Volle schermen ---------- */
#volscherm { position: fixed; inset: 0; z-index: 35; background: var(--grond); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#volscherm.veegt { box-shadow: -12px 0 28px rgba(0, 0, 0, 0.18); }   /* terugvegen: het scherm schuift opzij */
.vol {
  max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 24px);
}
.volkop { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.terug { padding-left: 0; }
.voltitel { margin: 0 2px; font-family: var(--kop); font-size: 32px; letter-spacing: -0.5px; }

/* Lijsten en kaarten onder elkaar (overzicht, tegeloverzichten, kraamzorg): net als overal in de app wat ruimte ertussen. */
#ovInhoud, #owInhoud, #kijker { display: flex; flex-direction: column; gap: 12px; }

.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.cijfers div { background: var(--kaart); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cijfers b { font-family: var(--kop); font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }

.grafiek { width: 100%; height: auto; display: block; overflow: visible; }
.grafiek text { font-family: var(--tekst); font-size: 11px; fill: var(--bij); }
.grafiek .waarde { font-weight: 800; fill: var(--inkt); }
.grafiek .dag.vandaag { font-weight: 800; fill: var(--inkt); }
.grafiek .as { stroke: var(--lijn); stroke-width: 1.5; }
.grafiek .raster { stroke: var(--lijn); stroke-width: 1; stroke-dasharray: 3 3; }
.grafiek .as-tekst { font-size: 10px; }
.grafiek .band { fill: var(--salie); }
.grafiek .hulplijn { stroke: var(--lijn); stroke-width: 1; }
.grafiek .hulplijn.koorts { stroke: var(--rood); stroke-dasharray: 4 3; stroke-width: 1.5; }
.grafiek .tlijn { fill: none; stroke: var(--salie-inkt); stroke-width: 2; stroke-linejoin: round; }
.grafiek .tpunt { fill: var(--salie-inkt); stroke: var(--kaart); stroke-width: 2; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--bij); font-weight: 700; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.rooster { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.rooster th { font-size: 12px; color: var(--bij); font-weight: 700; padding: 6px 2px; }
.rooster td { padding: 8px 2px; }
.rooster .vink { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--salie); color: var(--salie-inkt); font-weight: 800; }
.rooster .geen { color: var(--bij); }

.instelling { gap: 12px; }

/* Delen */
.qr { background: #FFFFFF; border-radius: 18px; padding: 10px; width: min(100%, 280px); align-self: center; }
.qr svg { display: block; width: 100%; height: auto; }
.lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lijst li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-top: 1px solid var(--lijn); font-size: 15px; }
.lijst li:first-child { border-top: none; }
.uitvouw summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bij); cursor: pointer; list-style: none; }
.uitvouw summary::-webkit-details-marker { display: none; }
.uitvouw summary::before { content: '▸'; transition: transform .15s ease; }
.uitvouw[open] summary::before { transform: rotate(90deg); }

/* Smal scherm (iPhone SE): korter en compacter */
@media (max-width: 359px) {
  .breed-scherm { display: none; }
  .kop h1 { font-size: 28px; }
  .voeding .kant { font-size: 40px; }
  .wanneer { font-size: 19px; }
  .onderbalk .knop { font-size: 15px; padding: 0 4px; }
  .fotoknoppen .knop { font-size: 15px; padding: 0 4px; }   /* "Fotobibliotheek" past dan ook op een kleine iPhone */
}

/* ---------- Filters ---------- */
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--zacht-vlak); background: var(--kaart); color: var(--inkt); font-weight: 800; font-size: 14px; cursor: pointer; }
.filter.aan { background: var(--knop); border-color: var(--knop); color: var(--knop-tekst); }
#ovFilters .filters { margin: 0; }
.tijdlijn { cursor: pointer; }
.meer { align-self: flex-end; font-weight: 800; font-size: 14px; color: var(--bij); padding: 6px 4px 0; }

/* ---------- Brede tegels (zoals widgets) ---------- */
.tegel.is-breed { min-height: 0; }
.breedrij { display: flex; align-items: center; gap: 16px; }
.breedrij .getal { flex-shrink: 0; }
.getalrij { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.getalbij { font-size: 13px; font-weight: 700; color: var(--bij); line-height: 1.2; }
.breedrij .getalrij { flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.stats { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stat small { font-size: 11px; font-weight: 800; color: var(--bij); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tijdbalk { position: relative; height: 34px; margin: 4px 6px 0; }
.tb-lijn { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--zacht-vlak); }
.tb-punt { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--kaart); }
.tb-punt.k-links { background: #C2714F; }
.tb-punt.k-rechts { background: var(--salie-inkt); }
.tb-punt.s-plas { background: #4A7DB8; }
.tb-punt.s-poep { background: #A36A2C; }
.tb-punt.s-poepplas { background: linear-gradient(90deg, #4A7DB8 50%, #A36A2C 50%); }
.tb-punt.s-leeg { background: var(--kaart); box-shadow: 0 0 0 2px #8E6FB0 inset, 0 0 0 2px var(--kaart); }
.tb-punt.p-para { background: #8E6FB0; }
.tb-label { position: absolute; top: 19px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--bij); font-variant-numeric: tabular-nums; }
.tb-nu { right: 0; left: auto; transform: none; }
.sparklijn { flex: 1; min-width: 0; height: 44px; }
.sp-band { fill: var(--salie); opacity: .7; }
.t-normaal .sp-band { fill: var(--kaart); opacity: .5; }
.sp-lijn { fill: none; stroke: var(--salie-inkt); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.is-breed .mini { min-width: 120px; }
.vitweek { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-weight: 800; font-size: 13px; color: var(--bij); }
.vd-rij { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vd { height: 10px; border-radius: 5px; background: var(--zacht-vlak); }
.vd.aan { background: var(--salie-inkt); }

/* ---------- Tegel luiers ---------- */
.laatste-vakken { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.laatste-vakken div { display: flex; flex-direction: column; gap: 2px; }
.laatste-vakken b { font-family: var(--kop); font-size: 22px; }
.tabelrol { overflow-x: auto; }
.dagtabel { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.dagtabel th, .dagtabel td { padding: 9px 4px; text-align: center; border-top: 1px solid var(--lijn); }
.dagtabel thead th { border-top: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--bij); }
.dagtabel tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.dagtabel tr.vandaag td, .dagtabel tr.vandaag th { font-weight: 800; }
.kleurstip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin: 0 1px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .15); }
.fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fotoduim { border: none; padding: 0; background: var(--zacht-vlak); border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; color: var(--inkt); }
.fotoduim img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--zacht-vlak); }
.fotoduim span { font-size: 12px; font-weight: 700; padding: 4px 6px; }
