@font-face { font-family: 'Raleway'; src: url('/fonts/raleway.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --teal: #57B6B2; --teal-donker: #007680; --teal-licht: #E6F4F3; --teal-mark: #00938B;
  --leisteen: #323E48; --grijs: #687179; --lijn: #E3E6E8; --lijn-sterk: #CDD2D6;
  --achter: #F7F8F8; --wit: #fff; --oranje: #EB5C0C; --oranje-mark: #D9531A;
  --rood: #B42318; --rood-licht: #FDECEA; --geel-licht: #FFF6E0; --geel: #8A5A00; --groen: #1E7B4F; --groen-licht: #E7F5EE;
  /* Vaste maten: spacing in stappen van 4px, Ã©Ã©n hoogte voor alle bedieningselementen */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px;
  --hoogte: 40px; --hoogte-klein: 32px; --hoogte-veld: 42px;
  --r: 12px; --r-klein: 8px; --r-pil: 999px;
  --schaduw: 0 1px 2px rgba(50,62,72,.06), 0 4px 16px rgba(50,62,72,.06);
  --schaduw-hoog: 0 20px 60px rgba(50,62,72,.25);
  --focus-ring: 0 0 0 3px rgba(87,182,178,.3);
  --cijfers: lining-nums tabular-nums;
  --kaart-pad: 20px 24px; --kaart-x: 24px;
  --menu: 232px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 Raleway, system-ui, sans-serif; color: var(--leisteen); background: var(--achter); font-variant-numeric: lining-nums; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--teal-donker); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-donker); outline-offset: 2px; border-radius: 4px; }
.verborgen { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: var(--cijfers); white-space: nowrap; }
.muted { color: var(--grijs); }
.klein { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { font-size: 22px; letter-spacing: -.2px; text-decoration: none; color: inherit; display: inline-block; }
.logo b { font-weight: 800; color: var(--teal); }
.logo span { font-weight: 300; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--menu) 1fr; min-height: 100vh; }
.zijbalk { background: var(--leisteen); color: #fff; padding: var(--s6) var(--s4); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s6); overflow-y: auto; }
.zijbalk .logo { color: #fff; padding: 0 var(--s3); }
.zijbalk .logo-sub { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #AEB6BC; padding: 2px var(--s3) 0; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: var(--s3); min-height: var(--hoogte); padding: var(--s2) var(--s3); border-radius: var(--r-klein); color: #DDE2E5; text-decoration: none; font-weight: 500; line-height: 1.3; }
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu a[aria-current="page"] { background: rgba(87,182,178,.18); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--teal); }
.menu svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.menu-onder { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--s3); display: grid; gap: var(--s2); }
.wie { font-size: 13px; line-height: 1.6; color: #AEB6BC; padding: 0 var(--s3); }
.wie button { background: none; border: 0; color: #DDE2E5; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; font-size: 13px; white-space: nowrap; }
.wie button:hover { color: #fff; }
.zijbalk :focus-visible { outline-color: #9FDCD8; }
.hoofd { min-width: 0; padding: var(--s7) 36px 60px; max-width: 1480px; width: 100%; }
.topbalk { display: none; }

/* Paginakop: titel + subtitel links, knoppen rechts op de hoogte van de titel */
.kop { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.kop > :not(.acties):first-child { flex: 1 1 360px; min-width: 0; }
.kop h1 { padding: 4px 0; } /* titelregel = knophoogte (40px), zodat titel en knoppen op Ã©Ã©n lijn staan */
.kop .sub { color: var(--grijs); margin-top: 2px; }
.acties { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.kop > .acties { justify-content: flex-end; }
.terug { display: inline-flex; align-items: center; gap: 6px; color: var(--grijs); text-decoration: none; font-size: 14px; margin-bottom: var(--s2); }
.terug:hover { color: var(--teal-donker); }

/* ---------- Knoppen ---------- */
/* Alle knoppen even hoog (rand altijd 1,5px, ook bij de primaire knop), icoon verticaal gecentreerd */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border: 1.5px solid transparent; border-radius: var(--r-pil); padding: 0 18px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; background: var(--teal-donker); color: #fff; white-space: nowrap; min-height: var(--hoogte); vertical-align: middle; transition: background .15s, border-color .15s, color .15s; }
.knop:hover { background: #005F67; } /* donkerteal: witte tekst haalt 5,4:1 contrast (norm 4,5:1) */
.knop.licht { background: var(--wit); color: var(--leisteen); border-color: var(--lijn-sterk); }
.knop.licht:hover { border-color: var(--teal); color: var(--teal-donker); }
.knop.stil { background: transparent; color: var(--teal-donker); padding: 0 var(--s3); min-height: 34px; }
.knop.stil:hover { background: var(--teal-licht); }
.filters .knop.stil, .acties .knop.stil { min-height: var(--hoogte); }
.knop.gevaar { background: var(--wit); color: var(--rood); border-color: #F1C4BF; }
.knop.gevaar:hover { background: var(--rood-licht); }
.knop.klein { padding: 0 var(--s3); min-height: var(--hoogte-klein); font-size: 13px; gap: 6px; }
.knop:disabled { opacity: .5; cursor: not-allowed; }
.knop svg { width: 16px; height: 16px; flex: none; }
.knop.klein svg { width: 14px; height: 14px; }
.icoonknop { border: 0; background: transparent; padding: 6px; border-radius: var(--r-klein); cursor: pointer; color: var(--grijs); display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.icoonknop:hover { background: var(--teal-licht); color: var(--teal-donker); }
.icoonknop svg { width: 18px; height: 18px; }

/* ---------- Kaarten ---------- */
.kaart { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: var(--kaart-pad); }
.kaart + .kaart, .raster + .kaart, .kaart + .raster, .raster + .raster { margin-top: var(--s5); }
.raster > .kaart, .raster > div > .kaart:first-child { margin-top: 0; }
.lijst tr.groepkop td { background: var(--achter); font-weight: 700; font-size: 13px; color: var(--grijs); padding: 7px 12px; }
/* Kaartkop altijd even hoog, met of zonder knop, zodat kaarten naast elkaar gelijk beginnen */
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; min-height: var(--hoogte-klein); }
.raster { display: grid; gap: var(--s5); }
.raster.twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s4); margin-bottom: var(--s6); }
.tegel { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.tegel .label { font-size: 13px; color: var(--grijs); font-weight: 600; }
.tegel .waarde { font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: var(--cijfers); }
.tegel .extra { font-size: 13px; color: var(--grijs); }

/* ---------- Tabellen ---------- */
.tabel-wrap { position: relative; overflow-x: auto; margin: 0 calc(-1 * var(--kaart-x)); padding: 0 var(--kaart-x); }
table.lijst { width: 100%; border-collapse: collapse; }
/* Kopjes onderaan uitgelijnd en met dezelfde horizontale padding als de cellen: tekst staat precies boven de inhoud */
.lijst th { text-align: left; vertical-align: bottom; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .6px; color: var(--grijs); font-weight: 700; padding: var(--s3); border-bottom: 1.5px solid var(--lijn); white-space: nowrap; }
.lijst th.num { text-align: right; }
.lijst tr.dik td { font-weight: 700; }
.lijst th.sorteer button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
/* Bij getalkolommen staat het pijltje links, zodat de tekst rechts precies boven de bedragen eindigt */
.lijst th.num.sorteer button { flex-direction: row-reverse; }
.lijst th.sorteer button:hover, .lijst th.sorteer[aria-sort="ascending"] button, .lijst th.sorteer[aria-sort="descending"] button { color: var(--leisteen); }
.lijst th.sorteer button:focus-visible { outline: 2px solid var(--teal-donker); outline-offset: 2px; border-radius: 4px; }
.lijst th.sorteer .pijl { font-size: 10px; opacity: .55; }
.lijst th.sorteer[aria-sort="none"] .pijl { opacity: .35; }
/* Begroting: direct bewerkbare regels */
.cel-invoer { width: 92px; text-align: right; border: 1.5px solid transparent; border-radius: 8px; padding: 5px 8px; background: var(--achter); font: inherit; font-variant-numeric: var(--cijfers); }
.regel-sub .cel-invoer { width: 58px; padding: 2px 6px; font-size: 13px; }
.cel-invoer:hover { border-color: var(--lijn-sterk); }
.cel-invoer:focus, .cel-keuze:focus, .snel-invoer:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(87,182,178,.25); background: var(--wit); }
.cel-keuze { max-width: 210px; border: 1.5px solid var(--lijn); border-radius: 8px; padding: 6px 8px; background: var(--wit); font: inherit; font-size: 14px; }
.snel-invoer { width: 100%; max-width: 520px; border: 1.5px dashed var(--lijn-sterk); border-radius: 8px; padding: 8px 12px; background: transparent; font: inherit; }
.nieuwe-regel td { border-bottom: none; padding-top: 6px; }
.status-ontvangen, .status-bevestigd { color: #1d7a52; font-weight: 600; }
/* Begroting als Ã©Ã©n strakke regel per post */
.begroting-tabel .cel-invoer { width: 84px; }
.begroting-tabel [data-veld="aantal"], .begroting-tabel .klein-invoer { width: 54px; }
.begroting-tabel .eenheid { display: inline-block; width: 52px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 12px; color: var(--grijs); text-align: left; }
.begroting-tabel td.nr { width: 64px; white-space: nowrap; }
.begroting-tabel td.omschr { min-width: 200px; }
.begroting-tabel .cel-keuze { max-width: 190px; padding: 5px 6px; }
.greep { border: 0; background: none; cursor: grab; color: var(--lijn-sterk); font-size: 15px; line-height: 1; padding: 2px 4px 2px 0; margin-right: 2px; border-radius: 4px; }
.greep:hover, .greep:focus-visible { color: var(--leisteen); }
.greep:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
tr.sleept { opacity: .45; background: var(--achter); }
.stip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.stip-open { background: #E8913A; } .stip-aangevraagd { background: #5B8DD6; } .stip-ok { background: #2E9B6A; } .stip-let { background: #D9B300; } .stip-leeg { background: transparent; }
.info-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--achter); color: var(--grijs); font-size: 11px; font-weight: 700; font-style: italic; cursor: help; vertical-align: 1px; }
.icoonknop:disabled { opacity: .3; cursor: not-allowed; }
.laden { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: draai .8s linear infinite; vertical-align: -2px; }
@keyframes draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .laden { animation-duration: 2.4s; } }
dialog .prijs-invoer { width: 100px; text-align: right; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); padding: 7px 9px; }
dialog td input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
.lijst td { padding: var(--s3); border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.lijst td.num, .lijst tfoot td { font-variant-numeric: var(--cijfers); }
.lijst tbody tr.klik { cursor: pointer; }
.lijst tbody tr.klik:hover td, .lijst tbody tr.klik:focus-within td { background: #F1F7F7; }
.lijst tbody tr.klik:focus-visible { outline: 2px solid var(--teal-donker); outline-offset: -2px; }
.lijst tr.maandkop td { background: var(--achter); font-weight: 700; font-size: 13px; color: var(--grijs); text-transform: capitalize; padding: 7px 12px; }
.lijst tfoot td, .lijst tr.totaal td { font-weight: 700; border-top: 2px solid var(--leisteen); border-bottom: 0; background: var(--wit); padding-top: var(--s3); padding-bottom: var(--s3); }
.lijst tfoot tr + tr td { border-top: 0; }
.lijst tr.totaalboven td { font-weight: 700; background: var(--teal-licht); border-bottom: 0; }
.lijst .geannuleerd td { color: var(--grijs); text-decoration: line-through; }
/* Evenementen als het prestatie-overzicht: doorgegaan groen, niet doorgegaan rood (met tekstlabel), gepland gewoon */
.prestaties tr.rij-doorgegaan td:first-child { box-shadow: inset 3px 0 0 #2F9E6A; }
.prestaties tr.rij-gepland td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.prestaties tr.rij-niet td { color: var(--rood); }
.prestaties tr.rij-niet td:first-child { box-shadow: inset 3px 0 0 var(--rood); }
.prestaties tr.rij-afgelast td { color: var(--grijs); text-decoration: line-through; }
.prestaties .niet-label { font-weight: 600; white-space: nowrap; }
.prestaties td:last-child { min-width: 170px; }
.prestaties tfoot tr.sub td { font-weight: 500; border-top: 0; font-size: 14px; color: var(--grijs); padding-top: 4px; padding-bottom: 4px; }
.prestaties tfoot tr.sub.niet td { color: var(--rood); }
.lijst td.acties-cel { text-align: right; white-space: nowrap; width: 1%; }
.leeg { text-align: center; color: var(--grijs); padding: 36px 16px; }
.leeg h3 { color: var(--leisteen); margin-bottom: 6px; }

/* ---------- Labels ---------- */
.label-pil { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--achter); color: var(--leisteen); border: 1px solid var(--lijn); white-space: nowrap; }
.label-pil.teal { background: var(--teal-licht); border-color: #BFE3E1; color: var(--teal-donker); }
.label-pil.groen { background: var(--groen-licht); border-color: #BFE5D1; color: var(--groen); }
.label-pil.geel { background: var(--geel-licht); border-color: #F4DFA8; color: var(--geel); }
.label-pil.rood { background: var(--rood-licht); border-color: #F1C4BF; color: var(--rood); }
.label-pil.grijs { color: var(--grijs); }

/* ---------- Filters ---------- */
/* Filterbalk: select, zoekveld, segment, knoppen en vinkjes allemaal 40px hoog */
.filters { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s5); }
.filters .vinkje { font-size: 14px; min-height: var(--hoogte); }
.segment { display: inline-flex; align-items: center; background: var(--wit); border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); padding: 3px; min-height: var(--hoogte); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segment button { border: 0; background: transparent; padding: 0 14px; min-height: 31px; line-height: 1.2; border-radius: var(--r-pil); cursor: pointer; font-weight: 600; color: var(--grijs); white-space: nowrap; }
.segment button:hover { color: var(--leisteen); }
.segment button[aria-pressed="true"] { background: var(--leisteen); color: #fff; }
.zoek { border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); padding: 0 var(--s4); height: var(--hoogte); min-width: 220px; background: var(--wit); }
select.kies { border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); padding: 0 34px 0 14px; height: var(--hoogte); max-width: 100%; background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23687179' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 600; cursor: pointer; }
.zoek:hover, select.kies:hover { border-color: var(--grijs); }
.zoek:focus, select.kies:focus { border-color: var(--teal); outline: none; box-shadow: var(--focus-ring); }

/* ---------- Formulieren ---------- */
.velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); align-items: start; }
.velden.een { grid-template-columns: 1fr; }
.velden.drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.veld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.veld.breed { grid-column: 1 / -1; }
.veld > span { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--grijs); }
/* Velden en selects exact even hoog (42px); vinkjes en keuzerondjes niet */
.veld input:not([type=checkbox]):not([type=radio]), .veld select, .veld textarea { width: 100%; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); padding: 0 var(--s3); background-color: var(--wit); height: var(--hoogte-veld); line-height: 1.3; }
.veld select { appearance: none; padding-right: 34px; cursor: pointer; background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23687179' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.veld select[multiple] { height: auto; padding: var(--s1); background-image: none; }
.veld input[type=file] { padding: 8px var(--s3); height: auto; }
.veld textarea { height: auto; min-height: 90px; padding: 10px var(--s3); resize: vertical; }
.veld input:hover, .veld select:hover, .veld textarea:hover { border-color: var(--grijs); }
.veld input:focus, .veld select:focus, .veld textarea:focus { border-color: var(--teal); outline: none; box-shadow: var(--focus-ring); }
.veld .hint { font-size: 12px; color: var(--grijs); }
.veld .live-hint { font-size: 13px; background: var(--teal-licht); color: var(--leisteen); border-radius: var(--r-klein); padding: 7px 10px; }
.vinkje { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vinkje input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--teal-donker); }
.veld.vinkje > span { font-size: 14px; font-weight: 500; color: var(--leisteen); }
/* Los vinkje in een veldenraster: op de hoogte van de invoervakken ernaast */
.velden > .vinkje:not(.breed) { align-self: end; min-height: var(--hoogte-veld); }
.formknoppen { display: flex; gap: var(--s2); justify-content: flex-end; align-items: center; margin-top: var(--s6); flex-wrap: wrap; }
.formknoppen .links { margin-right: auto; }
.melding { padding: 10px 14px; border-radius: var(--r-klein); background: var(--rood-licht); color: var(--rood); font-weight: 500; margin-top: 12px; }
.melding.ok { background: var(--groen-licht); color: var(--groen); }
.melding.info { background: var(--teal-licht); color: var(--teal-donker); }

/* Gegevens tonen (alleen lezen) */
/* Gegevens: per regel label (vet) en antwoord (normaal), zoals in de briefings. */
.gegevens { display: grid; grid-template-columns: 1fr; margin: 0; }
.gegevens > div { min-width: 0; display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--lijn); }
.gegevens > div:last-child { border-bottom: 0; }
.gegevens dt { font-size: 14px; color: var(--leisteen); font-weight: 700; }
.gegevens dd { margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.gegevens .breed { grid-template-columns: 1fr; }
.gegevens .breed dd { white-space: pre-line; }
.gegevens dd.leeg-w { color: #A2A9AE; }
/* Kerninfo bovenaan een evenement */
.kerninfo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kerninfo > div { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: var(--s4); display: flex; gap: var(--s3); align-items: flex-start; min-width: 0; }
.kerninfo svg { width: 22px; height: 22px; color: var(--teal-donker); flex: none; margin-top: 2px; }
.kerninfo .label { font-size: 13px; color: var(--grijs); }
.kerninfo .waarde { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.kerninfo .extra { font-size: 13px; color: var(--grijs); }
/* Documenten */
.doc-groep { margin-top: 22px; }
.doc-groep > h2 { font-size: 15px; color: var(--grijs); font-weight: 700; margin-bottom: 10px; }
.doc-kaart { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--teal); }
.doc-kaart .doc-kop { display: flex; gap: 12px; align-items: center; }
.doc-kaart .doc-kop svg { width: 26px; height: 26px; color: var(--teal-donker); flex: none; }
.doc-kaart h3 { font-size: 16px; }
.doc-kaart p { margin: 0; color: var(--grijs); font-size: 14px; flex: 1; }
.doc-kaart .doc-status { font-size: 13px; }
.doc-kaart .acties { display: flex; gap: 8px; flex-wrap: wrap; }
/* Asana */
.link-knop { background: none; border: 0; padding: 0; color: var(--teal-donker); text-decoration: underline; cursor: pointer; font: inherit; }
.check.asana { border-color: #F06A6A; }
.reacties { display: grid; gap: 10px; margin-top: 6px; }
.reactie { background: var(--achter); border-radius: var(--r-klein); padding: 8px 12px; }
.reactie p { margin: 4px 0 0; white-space: pre-line; }
/* Apps */
.app-kaart { border-top: 4px solid var(--teal); }
.app-kaart .doc-kop { display: flex; gap: 12px; align-items: flex-start; }
.app-kaart .doc-kop svg { width: 28px; height: 28px; color: var(--teal-donker); flex: none; margin-top: 2px; }
.app-kaart h3 { font-size: 14px; color: var(--grijs); margin: 4px 0 6px; }
.app-kaart .kaart-kop .acties { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--s1); border-bottom: 1.5px solid var(--lijn); margin-bottom: var(--s6); overflow-x: auto; scrollbar-width: thin; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s4); text-decoration: none; color: var(--grijs); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs a:hover { color: var(--leisteen); }
.tabs a:focus-visible { outline-offset: -3px; }
.tabs a[aria-current="page"] { color: var(--leisteen); border-bottom-color: var(--teal); }
.tabs .teller { font-size: 12px; line-height: 18px; min-width: 20px; text-align: center; background: var(--achter); border: 1px solid var(--lijn); border-radius: var(--r-pil); padding: 0 6px; font-variant-numeric: var(--cijfers); }
.tabs a[aria-current="page"] .teller { background: var(--teal-licht); border-color: #BFE3E1; color: var(--teal-donker); }

/* ---------- Dialoog ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--schaduw-hoog); color: var(--leisteen); }
dialog.breed { width: min(920px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(50,62,72,.45); }
.dlg-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s6) 0; }
.dlg-kop .icoonknop { margin-right: -6px; }
.dlg-inhoud { padding: var(--s4) var(--s6) var(--s6); overflow-y: auto; max-height: calc(100vh - 120px); }
/* Knoppen in een dialoog: met een dunne lijn gescheiden van de inhoud */
dialog .formknoppen { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--lijn); }

/* ---------- Meldingen (toast) ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--leisteen); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--schaduw); font-weight: 500; max-width: 380px; animation: in .2s ease-out; }
.toast.fout { background: var(--rood); }
@keyframes in { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Gedeeld: avatar en afvinkrondje (taken op eventkaart en lead) ---------- */
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.dagkop { padding: 10px 12px; border-bottom: 1px solid var(--lijn); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } /* printlijsten */
.asana-merk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #FCE4E4; color: #B3261E; font-size: 10px; font-weight: 800; flex: none; margin-top: 1px; vertical-align: middle; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--lijn-sterk); background: var(--wit); flex: none; cursor: pointer; display: grid; place-items: center; padding: 0; margin-top: 1px; }
.check:hover { border-color: var(--teal-donker); }
.check[aria-checked="true"] { background: var(--teal-donker); border-color: var(--teal-donker); }
.check[aria-checked="true"]::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.mini-lijst { display: grid; gap: 6px; }

/* ---------- Planning-overzicht (#/planning) ---------- */
.po .kop { margin-bottom: var(--s4); }
.po-melding { background: var(--teal-licht); border-radius: var(--r-klein); padding: 10px 14px; margin-bottom: var(--s4); font-size: 14px; }
.po-melding.rood { background: var(--rood-licht); color: var(--rood); }
.po-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s5); }
.po-filters .segment { margin-right: var(--s1); }
.po-chip { display: inline-flex; align-items: center; gap: 7px; min-height: var(--hoogte); padding: 0 14px 0 7px; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); background: var(--wit); font-weight: 600; font-size: 14px; cursor: pointer; }
.po-chip:hover { border-color: var(--teal); }
.po-chip[aria-pressed="true"] { border-color: var(--teal-donker); background: var(--teal-licht); color: var(--teal-donker); }
.po-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: none; letter-spacing: -.2px; }
.po-av.klein { width: 22px; height: 22px; font-size: 9.5px; }
.po-taak .po-av.klein { width: 18px; height: 18px; font-size: 8.5px; }
.po-av.niemand { background: #9AA3A9; }

/* Tellers */
.po-tellers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.po-teller { display: flex; align-items: center; gap: var(--s4); text-align: left; background: var(--wit); border: 1.5px solid transparent; border-radius: 14px; padding: var(--s4) var(--s5); box-shadow: var(--schaduw); cursor: pointer; min-width: 0; transition: border-color .15s; }
.po-teller:hover { border-color: var(--teal); }
.po-teller .n { font-size: 30px; font-weight: 700; line-height: 1; min-width: 44px; font-variant-numeric: var(--cijfers); }
.po-teller b { display: block; }
.po-teller small { display: block; font-size: 13px; color: var(--grijs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-teller > span:last-child { min-width: 0; }
.po-teller.rood { border-color: #F1C4BF; }
.po-teller.rood .n { color: var(--rood); }
.po-teller.teal { border-color: var(--teal-donker); }

/* Raster: week + aandacht, evenementen + team */
.po-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.po-weekkaart, .po-evenementen { grid-column: 1 / -1; }
.po-raster > .kaart { margin: 0; }
.po-kaartkop { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.po-kaartkop .po-voor { font-size: 14px; font-weight: 500; }
.po-telbol { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pil); background: var(--achter); color: var(--grijs); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }

/* Komende 7 dagen */
.po-weekrol { overflow-x: auto; margin: 0 calc(-1 * var(--s2)); padding: 0 var(--s2) var(--s1); }
.po-week { display: grid; grid-template-columns: var(--kolommen); gap: var(--s2); }
.po-dag { background: var(--achter); border: 1.5px solid transparent; border-radius: 10px; padding: var(--s2); min-height: 280px; min-width: 0; display: flex; flex-direction: column; transition: background .15s, border-color .15s; }
.po-dag.vandaag { background: var(--teal-licht); border-color: var(--teal); }
.po-dag.smal { opacity: .8; }
.po-dag.sleep-over { border-color: var(--teal-donker); border-style: dashed; background: #DDF0EE; opacity: 1; }
.po-dagkop { display: flex; justify-content: space-between; gap: 4px; font-size: 13px; font-weight: 700; margin: 0 2px var(--s2); white-space: nowrap; text-transform: capitalize; }
.po-dagextra { color: var(--grijs); font-weight: 500; text-transform: none; }
.po-daglijst { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.po-dagleeg { font-size: 12.5px; color: var(--grijs); padding: 2px; }
.po-taak { display: flex; flex-direction: column; gap: 4px; background: var(--wit); border-radius: var(--r-klein); border-left: 3px solid var(--k, var(--teal)); padding: 7px 8px; box-shadow: 0 1px 2px rgba(50,62,72,.08); font-size: 12.5px; line-height: 1.3; cursor: grab; min-width: 0; }
.po-taak:hover { box-shadow: 0 0 0 1.5px var(--teal), 0 1px 2px rgba(50,62,72,.08); }
.po-taak.laat { background: #FFF8F7; }
.po-taak.klaar { opacity: .55; }
.po-taak.klaar .po-titel { text-decoration: line-through; }
.po-taak.sleept { opacity: .35; }
.po-vink { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--lijn-sterk); background: var(--wit); padding: 0; display: grid; place-items: center; cursor: pointer; color: transparent; }
.po-vink svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.po-vink:hover { border-color: var(--groen); color: var(--groen); }
.po-vink.aan { background: var(--groen); border-color: var(--groen); color: #fff; }
.po-titel { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; cursor: pointer; overflow-wrap: break-word; word-break: normal; hyphens: none; line-height: 1.3; }
.po-titel:hover { color: var(--teal-donker); }
.po-meta { display: flex; align-items: center; gap: 5px; color: var(--grijs); font-size: 11.5px; min-width: 0; }
.po-waar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.po-tag { align-self: flex-start; font-size: 10px; font-weight: 700; color: var(--teal-donker); border: 1px solid #BFE3E1; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.po-laat-tekst { color: var(--rood); font-weight: 700; font-size: 11.5px; }
.po-meer { border: 0; background: none; color: var(--rood); font-weight: 700; font-size: 12px; text-align: left; padding: 2px; cursor: pointer; }

/* Snel een taak in Asana */
.po-snel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); padding: 8px 10px 8px 14px; border: 1.5px dashed var(--lijn-sterk); border-radius: var(--r); background: var(--wit); }
.po-snel:focus-within { border-color: var(--teal); border-style: solid; box-shadow: var(--focus-ring); }
.po-snel-titel { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; }
.po-plus { color: var(--grijs); font-size: 18px; line-height: 1; }
.po-snel-titel input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: var(--hoogte-klein); font-size: 14px; }
.po-kies { display: inline-flex; align-items: center; gap: 4px; height: var(--hoogte-klein); padding: 0 4px 0 10px; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); font-size: 13px; color: var(--grijs); background: var(--wit); }
.po-kies:focus-within { border-color: var(--teal); }
.po-kies select, .po-kies input { border: 0; background: none; font-size: 13px; color: var(--leisteen); font-weight: 600; height: 28px; max-width: 170px; outline: none; cursor: pointer; }
.po-snel .knop.klein { min-height: var(--hoogte-klein); margin-left: auto; }

/* Aandacht nodig */
.po-items { display: flex; flex-direction: column; gap: 10px; }
.po-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 10px; padding: 12px; border-radius: 10px; background: var(--achter); color: inherit; text-decoration: none; transition: opacity .15s; }
/* Kruisje: melding wegklikken (alleen voor jezelf; de taken blijven bestaan) */
.po-weg-knop { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--grijs); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; align-self: start; opacity: .55; }
.po-item:hover .po-weg-knop, .po-weg-knop:focus-visible { opacity: 1; }
.po-weg-knop:hover { background: var(--wit); color: var(--leisteen); }
.po-item.po-weg { opacity: .35; pointer-events: none; }
.po-melding-link { color: inherit; text-decoration: none; } .po-melding-link:hover { color: var(--teal-donker); text-decoration: underline; }
.po-verborgen { font-size: 13px; margin: var(--s3) 4px 0; }
/* Hele kaartje / regel / melding klikbaar (niet alleen de titel) */
.po-taak[data-open-rij], .po-klikrij, .po-dlgrij[data-open], .po-item.po-klik { cursor: pointer; }
.po-klikrij { border-radius: 6px; margin: 0 -6px; padding: 2px 6px; } .po-klikrij:hover { background: var(--wit); }
.po-dlgrij[data-open]:hover { background: var(--achter); }
.po-item.po-klik:hover { box-shadow: 0 0 0 1.5px var(--teal); }
.po-taak[data-open-rij]:hover { box-shadow: 0 0 0 1.5px var(--teal), 0 1px 2px rgba(0,0,0,.05); }
.po-item b { display: block; font-size: 14px; }
.po-item p { margin: 2px 0 8px; font-size: 13px; color: var(--grijs); }
.po-item ul { margin: 4px 0 8px; padding-left: 16px; font-size: 13px; }
.po-item ul.po-regels { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.po-regels li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.po-regels li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-regels li .knop { flex: none; }
.po-item.klein p { margin-bottom: 0; }
a.po-item:hover { box-shadow: 0 0 0 1.5px var(--teal); }
.po-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.po-item.rood .po-ic { background: var(--rood-licht); color: var(--rood); }
.po-item.geel .po-ic { background: var(--geel-licht); color: var(--geel); }
.po-item.teal .po-ic { background: var(--teal-licht); color: var(--teal-donker); }
.po-nog { font-size: 13px; margin: 0 4px; }
.link-stil { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font-size: inherit; }
.link-stil:hover { color: var(--teal-donker); text-decoration: underline; }
.po-rustig { text-align: center; padding: 28px 12px; }
.po-rustig-ic { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--groen-licht); color: var(--groen); margin-bottom: 10px; }
.po-rustig-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.po-rustig b { display: block; font-size: 16px; }
.po-rustig p { margin: 4px auto 0; color: var(--grijs); font-size: 14px; max-width: 280px; }
.po-rustig + .po-items { margin-top: var(--s2); }

/* Komende evenementen */
.po-ev { display: grid; grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) 124px; align-items: center; gap: 18px; padding: 12px 6px; border-top: 1px solid var(--lijn); color: inherit; text-decoration: none; border-radius: var(--r-klein); }
.po-ev:first-child { border-top: 0; }
.po-ev:hover { background: var(--achter); }
.po-datum { text-align: center; border-radius: 10px; background: var(--achter); padding: 6px 0; }
.po-ev:hover .po-datum { background: var(--wit); }
.po-datum b { display: block; font-size: 20px; line-height: 1.1; font-variant-numeric: var(--cijfers); }
.po-datum span { font-size: 12px; color: var(--grijs); text-transform: uppercase; letter-spacing: .5px; }
.po-evnaam, .po-volgende, .po-voortgang { min-width: 0; }
.po-evnaam b, .po-volgende b { display: block; overflow: hidden; text-overflow: ellipsis; }
.po-evnaam > span, .po-voortgang small, .po-volgende small { display: block; font-size: 13px; color: var(--grijs); }
.po-volgende b { font-size: 14px; white-space: nowrap; }
.po-volgende small.laat { color: var(--rood); font-weight: 700; }
.po-balk { display: block; height: 8px; border-radius: var(--r-pil); background: var(--lijn); overflow: hidden; margin-bottom: 5px; }
.po-balk i { display: block; height: 100%; background: var(--teal); border-radius: var(--r-pil); }
.po-balk i.laag { background: #E0A100; }
.po-pil { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pil); white-space: nowrap; }
.po-pil.ok { background: var(--groen-licht); color: var(--groen); }
.po-pil.nee { background: var(--geel-licht); color: var(--geel); }
.po-leeg { margin: 0; }

/* Team */
.po-leden { display: grid; gap: 6px; }
.po-lid { display: grid; grid-template-columns: 28px 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; border: 0; background: none; border-radius: var(--r-klein); text-align: left; cursor: pointer; font-size: 14px; }
.po-lid:hover { background: var(--achter); }
.po-lid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-stapel { display: flex; height: 10px; border-radius: var(--r-pil); overflow: hidden; background: var(--lijn); }
.po-stapel i { display: block; height: 100%; }
.po-lid small { font-size: 12.5px; color: var(--grijs); white-space: nowrap; font-variant-numeric: var(--cijfers); }
.po-lid .laat { color: var(--rood); font-weight: 600; }

/* Lijstje in een venster (tellers, Bekijken, Toewijzen) */
.po-dlglijst { display: grid; }
.po-dlgrij { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--lijn); }
.po-dlgrij:last-child { border-bottom: 0; }
.po-dlgtitel { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.po-dlgtitel b { display: block; font-weight: 600; }
.po-dlgtitel:hover b { color: var(--teal-donker); }
.po-dlgtitel small { display: block; color: var(--grijs); font-size: 12.5px; }
/* Team › Niemand: kiezen en verwijderen */
.po-kiesrij { cursor: pointer; } .po-kiesrij:hover { background: var(--achter); }
.po-kiesrij input[type=checkbox], .po-alles input { width: 18px; height: 18px; accent-color: var(--teal-donker); flex: none; }
.po-alles { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-weight: 600; }
.po-kiesrij .po-dlgtitel { cursor: pointer; }
.po-niemand .formknoppen { position: sticky; bottom: 0; background: var(--wit); margin-top: 0; padding: 12px 0 4px; border-top: 1px solid var(--lijn); z-index: 1; box-shadow: 0 28px 0 var(--wit); } /* schaduw dekt de ruimte onder de knoppen af */
.po-dlgdatum { font-size: 13px; white-space: nowrap; color: var(--grijs); }
.po-dlgdatum.laat { color: var(--rood); font-weight: 700; }

@media (max-width: 1100px) {
  .po-raster { grid-template-columns: minmax(0, 1fr); }
  .po-raster > .kaart { grid-column: auto; }
}
@media (max-width: 860px) {
  .po-tellers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .po-teller { padding: var(--s3) var(--s4); gap: var(--s3); }
  .po-teller .n { font-size: 26px; min-width: 32px; }
  .po-hint { display: none; }
  /* Week als lijst per dag; lege dagen worden een dunne regel */
  .po-week { grid-template-columns: minmax(0, 1fr) !important; }
  .po-weekrol { overflow: visible; margin: 0; padding: 0; }
  .po-dag { min-height: 0; }
  .po-dag.smal { opacity: 1; }
  .po-dag:not(.vandaag) .po-dagleeg { display: none; }
  .po-dag:not(.vandaag):has(.po-daglijst > .po-dagleeg:only-child) { padding-block: 6px; }
  .po-dag:not(.vandaag):has(.po-daglijst > .po-dagleeg:only-child) .po-dagkop { margin-bottom: 0; }
  .po-taak { font-size: 14px; padding: 9px 10px; }
  .po-vink { width: 20px; height: 20px; }
  .po-snel { padding: 10px; }

  .po-kies { flex: 1 1 140px; }
  .po-kies select, .po-kies input { flex: 1; max-width: none; min-width: 0; }
  .po-ev { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 12px; }
  .po-ev .po-datum { grid-row: span 3; align-self: start; }
  .po-ev .po-evnaam { grid-column: 2 / 4; }
  .po-ev .po-voortgang { grid-column: 2 / 3; }
  .po-ev .po-pil { grid-column: 3; grid-row: 2; align-self: center; }
  .po-ev .po-volgende { grid-column: 2 / 4; }
  .po-lid { grid-template-columns: 28px 70px minmax(0, 1fr) auto; }
}

/* ---------- Begroting ---------- */
.begroting-tabel td, .begroting-tabel th { padding: 9px 10px; }
.begroting-tabel tr.hoofdstuk td { background: var(--leisteen); color: #fff; font-weight: 700; padding: 9px 12px; }
.begroting-tabel tr.hoofdstuk .icoonknop { color: #DDE2E5; }
.begroting-tabel tr.hoofdstuk .icoonknop:hover { background: rgba(255,255,255,.12); color: #fff; }
.begroting-tabel tr.subtotaal td { font-weight: 700; background: var(--achter); font-size: 14px; }
.begroting-tabel td.nr { color: var(--grijs); width: 52px; font-variant-numeric: var(--cijfers); }
.begroting-tabel .marge-neg { color: var(--rood); font-weight: 700; }
.begroting-tabel tfoot td { font-size: 16px; }
/* === Begrotingstabel (frontend developer) === */
/* Knoppenbalk: drie groepen (maken · leveranciers · printen), alle knoppen even hoog. */
.begroting-balk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.begroting-balk .groep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.begroting-balk .groep:empty { display: none; }
.begroting-balk .groep + .groep { padding-left: 14px; border-left: 1px solid var(--lijn-sterk); }
.begroting-balk .groep:last-child { margin-left: auto; }
.begroting-balk .knop { min-height: 38px; height: 38px; padding: 0 15px; font-size: 14px; }
/* Tabel als een rekenblad: compacte cellen, cijfers even breed, kolommen strak boven elkaar. */
.begroting-tabel { font-size: 14px; font-variant-numeric: var(--cijfers); }
.begroting-tabel td, .begroting-tabel th { padding: 6px 6px; }
.begroting-tabel thead th { font-size: 11px; letter-spacing: .4px; padding-top: 8px; padding-bottom: 8px; vertical-align: bottom; }
.begroting-tabel th:first-child, .begroting-tabel td:first-child { padding-left: 10px; }
.begroting-tabel th:last-child, .begroting-tabel td:last-child { padding-right: 6px; }
.begroting-tabel td.num, .begroting-tabel th.num { text-align: right; white-space: nowrap; }
.begroting-tabel td.nr { width: 44px; }
.begroting-tabel td.omschr { min-width: 140px; }
.begroting-tabel .greep { padding: 2px 3px 2px 0; margin-right: 1px; }
/* Invoervelden en keuzelijsten: allemaal 30px hoog, op één lijn met de tekst. */
.begroting-tabel .cel-invoer, .begroting-tabel .cel-keuze { box-sizing: border-box; height: 30px; padding: 0 7px; font-size: 14px; line-height: 28px; vertical-align: middle; }
.begroting-tabel .cel-invoer { width: 78px; }
.begroting-tabel [data-veld="aantal"], .begroting-tabel .klein-invoer { width: 48px; }
.begroting-tabel .eenheid { width: 42px; height: 30px; line-height: 30px; font-size: 11.5px; }
.begroting-tabel .cel-keuze { width: 142px; max-width: 142px; padding-right: 2px; }
.begroting-tabel .stip { margin-right: 5px; }
/* Btw per regel */
.begroting-tabel .btw-cel { width: 1%; white-space: nowrap; text-align: left; padding-left: 12px; }
.begroting-tabel .btw-keuze { width: 86px; max-width: 86px; padding: 0 0 0 6px; font-size: 13px; }
.begroting-tabel .btw-keuze.btw-auto { color: var(--grijs); background: var(--achter); border-color: transparent; }
.begroting-tabel .btw-keuze.btw-auto:hover { border-color: var(--lijn-sterk); }
.begroting-tabel .btw-vast { display: inline-block; padding-left: 8px; font-size: 13px; color: var(--grijs); }
/* Actieknoppen per regel/hoofdstuk: klein, prullenbak kleurt rood. */
.begroting-tabel .acties-cel { padding-left: 2px; }
.begroting-tabel .icoonknop { padding: 5px; }
.begroting-tabel .icoonknop svg { width: 16px; height: 16px; }
.begroting-tabel .icoonknop.weg:hover, .begroting-tabel .icoonknop.weg:focus-visible { color: var(--rood); background: var(--rood-licht); }
.begroting-tabel tr.hoofdstuk td { padding-top: 7px; padding-bottom: 7px; }
/* Totalen onderaan: excl. btw, btw per tarief, incl. btw. */
.begroting-tabel tfoot td { font-size: 15px; padding-top: 7px; padding-bottom: 7px; }
.begroting-tabel tfoot tr.btw-rij td { border-top: 0; font-weight: 500; font-size: 14px; padding-top: 2px; padding-bottom: 2px; }
.begroting-tabel tfoot tr.btw-rij .grondslag { color: var(--grijs); }
.begroting-tabel tfoot tr.totaal-incl td { border-top: 1px solid var(--lijn-sterk); font-size: 16px; padding-top: 8px; }
/* Naam aanpassen met dubbelklik */
.inline-naam { cursor: text; border-radius: 4px; }
.inline-naam:hover { box-shadow: 0 0 0 3px rgba(87,182,178,.16); background: rgba(87,182,178,.16); }
.inline-naam:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
tr.hoofdstuk .inline-naam:hover { background: rgba(255,255,255,.14); box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
tr.hoofdstuk .inline-naam:focus-visible { outline-color: #fff; }
.inline-invoer { box-sizing: border-box; max-width: 100%; font: inherit; color: var(--leisteen); background: var(--wit); border: 1.5px solid var(--teal); border-radius: 6px; padding: 1px 6px; outline: none; box-shadow: 0 0 0 3px rgba(87,182,178,.25); }
h1 .inline-invoer { width: min(640px, 100%); }
@media (max-width: 860px) {
  .begroting-balk .groep + .groep { padding-left: 0; border-left: 0; }
  .begroting-balk .groep:last-child { margin-left: 0; }
}
.regel-sub { display: block; font-size: 12px; color: var(--grijs); }
.bar-advies { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--teal-licht); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }

/* ---------- Websites ---------- */
.site-kaart.storing { box-shadow: 0 0 0 2px var(--rood), var(--schaduw); }
.site-kaart h2 { margin-bottom: 2px; }
.raster > .site-kaart { margin-top: 0; }
.tijdlijn { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-top: 4px; }
.tijdlijn i { height: 22px; border-radius: 3px; background: var(--lijn); }
.tijdlijn i.goed { background: #2F9E6A; }
.tijdlijn i.fout { background: var(--rood); background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.35) 3px 5px); }
.tijdlijn-as { display: flex; justify-content: space-between; margin-top: 3px; }
.site-cijfers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.site-cijfers b { font-size: 17px; font-variant-numeric: var(--cijfers); }
.site-sec { border-top: 1px solid var(--lijn); margin-top: 16px; padding-top: 14px; }
.site-sec h3 { display: flex; gap: 8px; align-items: center; }
.site-sec .site-cijfers { margin-top: 8px; }
@media (max-width: 860px) { .site-cijfers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Grafiek ---------- */
.grafiek { position: relative; }
.grafiek svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafiek .as { font-size: 11px; fill: var(--grijs); font-family: Raleway, sans-serif; }
.grafiek .rasterlijn { stroke: var(--lijn); stroke-width: 1; }
.grafiek .nul { stroke: var(--lijn-sterk); stroke-width: 1; }
.legenda { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--grijs); margin-bottom: 8px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--leisteen); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; z-index: 5; }
.tip b { display: block; text-transform: capitalize; }

/* ---------- Inloggen ---------- */
.inlog { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--achter); }
.inlog-kaart { width: min(400px, 100%); background: var(--wit); border-radius: 18px; box-shadow: var(--schaduw); padding: 34px 32px; }
.inlog-kaart .logo { font-size: 26px; margin-bottom: 24px; }
.inlog-kaart h1 { font-size: 20px; margin-bottom: 6px; }
.inlog-of { margin-top: 18px; display: grid; gap: 10px; text-align: center; }
.inlog-of > span { display: flex; align-items: center; gap: 10px; color: var(--grijs); font-size: 13px; }
.inlog-of > span::before, .inlog-of > span::after { content: ''; flex: 1; height: 1px; background: var(--lijn); }
.inlog-of .knop { width: 100%; justify-content: center; }
.inlog-of p { margin: 0; }
.inlog-kaart p { color: var(--grijs); margin: 0 0 20px; }
.inlog-kaart .knop { width: 100%; margin-top: 18px; }
/* Openbare leverancierspagina (prijzen invullen via persoonlijke link) */
.publiek { min-height: 100vh; padding: 32px 16px; background: var(--achter); }
.publiek-kaart { max-width: 860px; margin: 0 auto; background: var(--wit); border-radius: 18px; box-shadow: var(--schaduw); padding: 32px; }
.publiek-kaart .logo { font-size: 26px; margin-bottom: 22px; }
.publiek-kaart h1 { font-size: 22px; margin-bottom: 8px; }
.publiek-kaart > p { color: var(--grijs); }
.publiek-details { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 20px; padding: 14px 16px; background: var(--achter); border-radius: 12px; }
.publiek-details span { display: block; font-size: 12px; color: var(--grijs); text-transform: uppercase; letter-spacing: .5px; }
.publiek-kaart .prijs { display: inline-flex; align-items: center; gap: 6px; }
.publiek-kaart .prijs input, .publiek-kaart .opm, dialog td input[type=email] { border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); padding: 8px 10px; background: var(--wit); }
.publiek-kaart .prijs input:focus, .publiek-kaart .opm:focus, dialog td input[type=email]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(87,182,178,.25); }
.publiek-kaart .prijs input { width: 110px; text-align: right; }
.publiek-kaart .opm { display: block; margin-top: 8px; width: 100%; font-size: 13px; }
dialog td input[type=email] { width: 100%; min-width: 200px; }
.publiek-kaart form > .veld { margin-top: 18px; }
.publiek-kaart form > .knop { margin-top: 20px; }
@media (max-width: 640px) { .publiek-kaart { padding: 22px 16px; } }
.qr { display: block; margin: 0 auto 12px; border-radius: 8px; border: 1px solid var(--lijn); }
.code-invoer { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-variant-numeric: var(--cijfers); }
.geheim { font-family: ui-monospace, monospace; background: var(--achter); padding: 8px; border-radius: 8px; text-align: center; font-size: 14px; word-break: break-all; }

/* ---------- Import ---------- */
.stappen { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.stap { display: flex; align-items: center; gap: 8px; color: var(--grijs); font-weight: 600; font-size: 14px; }
.stap i { width: 26px; height: 26px; border-radius: 50%; background: var(--lijn); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.stap.actief { color: var(--leisteen); }
.stap.actief i { background: var(--teal); color: #fff; }
.stap + .stap::before { content: ''; width: 24px; height: 1.5px; background: var(--lijn-sterk); }
.dropzone { border: 2px dashed var(--lijn-sterk); border-radius: var(--r); padding: 30px; text-align: center; background: var(--achter); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: var(--teal-licht); }

/* ---------- Print ---------- */
.printpagina { background: #fff; }
/* Documenten in de moderne Zomaar-stijl (zoals de pdf-begrotingen en het draaiboek kerstweek). */
.doc { --t: #57B6B2; --t2: #2F8F8E; --t3: #2E7F86; --tl: #E8F5F4; --tz: #F1F8F8; --ink: #323E48; --zacht: #6B7680; --rand: #E6EAEC;
  max-width: 860px; margin: 0 auto; padding: 32px 40px 40px; background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.55;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc p { margin: 0 0 8px; }
.doc b { font-weight: 700; }
.doc .zacht { color: var(--zacht); }
.doc .merk { font-size: 20px; letter-spacing: -.3px; font-weight: 400; }
.doc .merk b { font-weight: 800; }
.doc .boven { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--t); }
.doc .lopende-kop { display: none; }

/* Openingskaart */
.doc .omslag { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #5BB9B4 0%, #3E9C9C 60%, #2E7F86 100%); color: #fff; margin-bottom: 22px; }
.doc .omslag::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.09); right: -110px; top: -150px; }
.doc .omslag::after { content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.12); right: 150px; bottom: -70px; }
.doc .omslag-in { position: relative; z-index: 1; padding: 34px 44px 38px; }
.doc .omslag .merk { color: #fff; font-size: 24px; display: block; margin-bottom: 46px; }
.doc .omslag .boven { color: rgba(255,255,255,.9); }
.doc .omslag h1 { font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.8px; margin: 8px 0 10px; max-width: 620px; color: #fff; }
.doc .omslag .sub { font-size: 15.5px; color: rgba(255,255,255,.92); max-width: 520px; margin: 0; }
.doc .omslag .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc .omslag .chips span { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 13px 4px 22px; font-size: 12.5px; position: relative; }
.doc .omslag .chips span::before { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.doc .omslag-voet { position: relative; z-index: 1; background: #323E48; display: flex; gap: 40px; align-items: flex-end; padding: 18px 44px; font-size: 13px; }
.doc .omslag-voet b { display: block; color: #fff; }
.doc .omslag-voet span { color: rgba(255,255,255,.85); }
.doc .omslag-voet .versie { margin-left: auto; color: rgba(255,255,255,.55); }

/* Kerncijfers */
.doc .tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.doc .tegel { background: #F5F5F3; border-radius: 12px; padding: 16px 18px; }
.doc .tegel span { display: block; font-size: 12px; color: var(--zacht); }
.doc .tegel b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; margin-top: 6px; letter-spacing: -.2px; }
.doc .tegel small { display: block; font-size: 12px; color: var(--t2); margin-top: 2px; }
.doc .tegel.donker { background: #3E3E3E; color: #fff; }
.doc .tegel.donker span { color: #9FDCD8; }

/* Koppen */
.doc h2 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.doc h2.los { margin: 26px 0 10px; }
.doc .sectiekop { margin: 28px 0 14px; }
.doc .sectiekop h2 { font-size: 28px; letter-spacing: -.5px; margin-top: 4px; }
.doc .sectiekop p { color: var(--zacht); margin: 6px 0 0; max-width: 640px; }
.doc .kop-rij { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; }
.doc .kop-rij span { font-size: 12px; color: var(--zacht); }
.doc h3.dagkop { font-size: 16px; font-weight: 800; margin: 20px 0 8px; display: flex; align-items: center; gap: 10px; }
.doc h3.dagkop .tel { font-size: 11.5px; font-weight: 600; background: var(--tl); color: var(--t3); border-radius: 999px; padding: 2px 10px; }

/* Verdeling per onderdeel */
.doc .verdeling { display: grid; gap: 9px; }
.doc .v-rij { display: grid; grid-template-columns: 170px 1fr 44px 110px; gap: 14px; align-items: center; }
.doc .v-naam { font-weight: 500; }
.doc .v-balk { height: 16px; background: var(--tl); border-radius: 999px; overflow: hidden; }
.doc .v-balk i { display: block; height: 100%; background: var(--t); border-radius: 999px; }
.doc .v-pct { font-size: 12px; color: var(--zacht); text-align: right; }

/* Totalen */
.doc .totalen > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rand); }
.doc .totalen > div.groot, .doc .eindbalk { background: var(--t); color: #fff; font-weight: 800; font-size: 16px; border: 0; border-radius: 10px; padding: 12px 18px; margin-top: 8px; }
.doc .eindbalk { display: flex; justify-content: space-between; background: #3E3E3E; margin-top: 14px; }
.doc .eindregel { display: flex; justify-content: space-between; padding: 10px 18px; }
.doc .kleine-letter { font-size: 11.5px; color: var(--zacht); margin-top: 12px; }

/* Specificatie / picklijst */
.doc .hfd { margin-bottom: 8px; }
.doc .hfd-kop { display: flex; justify-content: space-between; background: var(--tl); color: var(--t2); font-weight: 800; font-size: 15px; border-radius: 8px; padding: 7px 12px; margin: 0 -8px; }
.doc .hfd-kop span:last-child { font-weight: 500; }
.doc table { width: 100%; border-collapse: collapse; }
.doc table.spec th { font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--zacht); text-align: left; padding: 12px 6px 6px; }
.doc table.spec td { padding: 5px 6px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.doc table .num { text-align: right; }
.doc .vak { border: 1.5px solid #B9C3CA; width: 16px; height: 16px; display: inline-block; border-radius: 4px; vertical-align: middle; }

/* Donkere tabel (rooster, schema) */
.doc table.tabel { margin-bottom: 8px; }
.doc table.tabel thead th { background: #323E48; color: #fff; font-size: 12px; font-weight: 600; text-align: left; padding: 8px 10px; }
.doc table.tabel thead th:first-child { border-radius: 8px 0 0 0; }
.doc table.tabel thead th:last-child { border-radius: 0 8px 0 0; }
.doc table.tabel td { padding: 9px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.doc table.tabel tbody tr:nth-child(even) td { background: var(--tz); }
.doc td.tijd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc .noot { color: var(--zacht); font-size: 12.5px; }
.doc .pil { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 10px 1px 18px; position: relative; }
.doc .pil::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }
.doc .pil.teal { background: var(--tl); color: var(--t3); }
.doc .pil.grijs { background: #EEF0F2; color: #5E6871; }

/* Gegevens en tekstblokken */
.doc .gegevenskaart { border: 1px solid var(--rand); border-left: 5px solid var(--t); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.doc .gegevenskaart dl { display: grid; grid-template-columns: 170px 1fr; gap: 5px 18px; margin: 10px 0 0; }
.doc .gegevenskaart dt { color: var(--zacht); }
.doc .gegevenskaart dd { margin: 0; }
.doc .blokken { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc .blok { border: 1px solid var(--rand); border-radius: 12px; padding: 14px 18px; border-top: 4px solid var(--t); }
.doc .blok.breed { grid-column: 1 / -1; }
.doc .blok .boven { margin-bottom: 6px; }
.doc .let-op { background: #FDF3E7; border-left: 4px solid #E08A3C; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.doc .wensen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.doc .wens { display: flex; gap: 12px; background: var(--tz); border-radius: 12px; padding: 12px 14px; }
.doc .wens .nr { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--t); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.doc .wens b { display: block; }
.doc .wens p { margin: 2px 0 0; }
.doc .oplevering { background: #323E48; color: #fff; border-radius: 12px; padding: 16px 20px; margin-top: 6px; }
.doc .oplevering .boven { color: #9FDCD8; margin-bottom: 6px; }

.doc .voet { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--zacht); border-top: 1px solid var(--rand); margin-top: 36px; padding-top: 10px; }
.print-balk { position: sticky; top: 0; background: var(--leisteen); color: #fff; padding: 10px 20px; display: flex; gap: 10px; justify-content: space-between; align-items: center; z-index: 10; }
@media print {
  .print-balk, .zijbalk, .topbalk { display: none !important; }
  body { background: #fff; }
  .doc { padding: 0; max-width: none; font-size: 11.5px; }
  .doc tr, .doc .blok, .doc .wens, .doc .tegel, .doc .gegevenskaart, .doc .oplevering, .doc .let-op { break-inside: avoid; }
  .doc h2, .doc h3, .doc .sectiekop, .doc .hfd-kop, .doc .kop-rij { break-after: avoid; }
  .doc thead { display: table-header-group; }
  .doc .nieuwe-pagina { break-before: page; }
  .doc .nieuwe-pagina > .sectiekop:first-child { margin-top: 0; }
  .doc .voet { display: none; }
  .doc .omslag h1 { font-size: 36px; }
  .doc .tegel { padding: 12px 14px; }
  .doc .tegel b { font-size: 15px; }
  @page { size: A4; margin: 14mm 14mm 16mm;
    @bottom-left { content: 'Zomaar Events Â· Nijverheidsstraat 10, 1704 RA Heerhugowaard Â· 072 220 45 10 Â· info@zomaarevents.nl'; font: 8pt Raleway, sans-serif; color: #6B7680; }
    @bottom-right { content: 'Pagina ' counter(page) ' / ' counter(pages); font: 8pt Raleway, sans-serif; color: #6B7680; } }
}

/* ---------- Mobiel ---------- */
@media (max-width: 1100px) {
  .raster.drie { grid-template-columns: 1fr 1fr; }
  .kerninfo { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gegevens > div { grid-template-columns: 1fr; gap: 2px; }
  .kerninfo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .zijbalk { position: fixed; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
  .app.menu-open .zijbalk { transform: none; box-shadow: 0 0 0 100vmax rgba(50,62,72,.45); }
  .topbalk { display: flex; align-items: center; gap: 12px; background: var(--leisteen); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .topbalk .logo { color: #fff; font-size: 19px; }
  .topbalk button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; display: inline-flex; }
  .topbalk button svg { width: 24px; height: 24px; }
  :root { --kaart-pad: 16px; --kaart-x: 16px; }
  .hoofd { padding: var(--s5) var(--s4) 50px; }
  .kop { margin-bottom: var(--s5); }
  .kop > .acties { justify-content: flex-start; }
  .filters > * { min-width: 0; }
  .dlg-kop { padding: var(--s4) var(--s4) 0; }
  .dlg-inhoud { padding: var(--s3) var(--s4) var(--s4); }
  h1 { font-size: 22px; }
  .raster.twee, .raster.drie, .velden, .velden.drie, .gegevens { grid-template-columns: 1fr; }
  .zoek { min-width: 0; flex: 1 1 160px; }
  .lijst .verberg-mobiel { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* === Indeling (UX architect) === */
/* Filterbalk: beheer-links rechts uitlijnen, los van de filters. */
.filters .rechts { margin-left: auto; }
/* Extra regel die alleen op mobiel verschijnt (bijv. naam onder klant als die kolom verborgen is). */
.alleen-mobiel { display: none; }
@media (max-width: 860px) {
  .lijst .alleen-mobiel { display: block; }
  .filters .rechts { margin-left: 0; }
}
/* Verborgen schermlezer-labels in tabellen mogen de pagina op mobiel niet breder maken. */
.tabel-wrap { position: relative; }
@media (max-width: 860px) {
  /* Excel-knoppen zijn voor de computer; op mobiel blijft alleen de hoofdactie over. */
  .kop .acties .verberg-mobiel { display: none; }
}
/* ---------- Taken in Asana-stijl (maten en kleuren zoals Asana: systeemlettertype 14px, rijen 37px, lijnen #EAEAEA) ---------- */
.hoofd:has(> .as) { padding: 0; max-width: none; }
.as {
  --as-tekst: #1E1F21; --as-muted: #6D6E6F; --as-lijn: #EAEAEA; --as-hover: #F9F8F8; --as-gekozen: #EDF6F5;
  --as-groen: #5DA283; --as-rood: #BE241E; --as-kolom: #F5F4F3; --as-accent: var(--teal-donker);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; background: #fff;
  font: 400 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--as-tekst);
}
.as.met-venster { grid-template-columns: 220px minmax(0, 1fr) min(620px, 48vw); }
.as button { font: inherit; }
.as-muted { color: var(--as-muted); }

/* Zijbalk met projecten */
.as-zij { border-right: 1px solid var(--as-lijn); padding: 16px 8px; display: flex; flex-direction: column; gap: 2px; background: #FBFBFA; }
.as-zij-kop { font-size: 12px; color: var(--as-muted); padding: 14px 10px 4px; }
.as-zij-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--as-tekst); }
.as-zij-item:hover { background: #EFEEED; }
.as-zij-item.actief { background: #E8E7E6; font-weight: 500; }
.as-zij-ic { width: 16px; height: 16px; border-radius: 4px; flex: none; display: inline-grid; place-items: center; }
.as-zij-ic.mijn, .as-proj-ic.mijn { background: none; border: 1.5px solid var(--as-muted); border-radius: 50%; }
.as-zij-ic svg, .as-proj-ic svg { width: 12px; height: 12px; fill: none; stroke: var(--as-muted); stroke-width: 2.5; }

/* Kop met titel en tabs */
.as-hoofd { min-width: 0; display: flex; flex-direction: column; }
.as-kop-balk { padding: 16px 24px 0; border-bottom: 1px solid var(--as-lijn); }
.as-titelregel { display: flex; align-items: center; gap: 10px; }
.as-titelregel h1 { font-size: 20px; font-weight: 500; line-height: 28px; }
.as-proj-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; }
.as-proj-ic.mijn svg { width: 18px; height: 18px; }
.as-tabs { display: flex; gap: 18px; margin-top: 8px; }
.as-tabs button { border: 0; background: none; padding: 8px 2px 10px; color: var(--as-muted); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.as-tabs button:hover { color: var(--as-tekst); }
.as-tabs button[aria-selected="true"] { color: var(--as-tekst); border-bottom-color: var(--as-tekst); }
.as-melding { margin: 12px 24px 0; padding: 8px 12px; background: #F5F4F3; border-radius: 6px; font-size: 13px; }
.as-werkbalk { display: flex; align-items: center; gap: 16px; padding: 10px 24px; font-size: 13px; color: var(--as-muted); }
.as-schakel { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.as-stand { margin-left: auto; }
.as-inhoud { padding: 0 24px 40px; min-width: 0; }
.as-leeg { color: var(--as-muted); padding: 24px 0; }

/* Afvinken: rond vinkje, groen als voltooid */
.as-vink { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--as-muted); background: #fff; padding: 0; display: inline-grid; place-items: center; flex: none; cursor: pointer; color: var(--as-muted); transition: background .12s, border-color .12s; }
.as-vink svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.as-vink:hover:not(:disabled) { border-color: var(--as-groen); color: var(--as-groen); background: #F1F8F4; }
.as-vink.aan { background: var(--as-groen); border-color: var(--as-groen); color: #fff; }
.as-vink:disabled { cursor: default; }
.as-vink.klein { width: 16px; height: 16px; }

/* Lijst */
.as-lijst { --as-kolommen: minmax(240px, 1fr) 120px 180px 200px; }
.as-lijst.met-project { --as-kolommen: minmax(240px, 1fr) 120px 180px 170px 190px; }
.as-rij { display: grid; grid-template-columns: var(--as-kolommen); align-items: center; min-height: 37px; border-bottom: 1px solid var(--as-lijn); }
.as-rij > div { padding: 0 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-rij > div + div { border-left: 1px solid var(--as-lijn); align-self: stretch; display: flex; align-items: center; gap: 6px; }
.as-kop { border-top: 1px solid var(--as-lijn); font-size: 12px; color: var(--as-muted); position: sticky; top: 0; background: #fff; z-index: 1; }
.as-kop > div:first-child { padding-left: 32px; }
.as-sectie-kop { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 16px; font-weight: 500; line-height: 20px; padding: 18px 0 10px; cursor: pointer; color: var(--as-tekst); }
.as-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--as-muted); transition: transform .12s; margin: 0 4px; }
.as-sectie-kop[aria-expanded="false"] .as-caret { transform: rotate(-90deg); }
.as-aantal { font-size: 12px; font-weight: 400; color: var(--as-muted); }
.as-taak { cursor: pointer; }
.as-taak:hover { background: var(--as-hover); }
.as-taak.gekozen { background: var(--as-gekozen); }
.as-naam { display: flex; align-items: center; gap: 8px; padding-left: 24px !important; }
.as-titel { overflow: hidden; text-overflow: ellipsis; }
.as-taak.klaar .as-titel { color: var(--as-muted); }
.as-datum { font-size: 13px; }
.as-datum.rood { color: var(--as-rood); }
.as-datum.groen { color: var(--as-groen); }
.as-wie span:last-child, .as-proj, .as-koppel { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.as-koppel a { color: var(--as-tekst); text-decoration: none; }
.as-koppel a:hover { text-decoration: underline; }
.as-nieuw { border-bottom-color: transparent; }
.as-nieuw-in { border: 0; background: none; color: var(--as-tekst); padding: 6px 0 6px 26px; width: 100%; outline: none; }
.as-nieuw-in::placeholder { color: var(--as-muted); }
.as-nieuw-in:focus { background: var(--as-hover); }

/* Avatar */
.as-av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 500; flex: none; }
.as-av.klein { width: 22px; height: 22px; font-size: 10px; }
.as-av.as-av-leeg { background: none; border: 1.5px dashed #AFABAC; }
.as-av.as-av-leeg svg { width: 14px; height: 14px; fill: none; stroke: #AFABAC; stroke-width: 1.8; }

/* Bord */
.as-bord { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 16px; }
.as-kolom { flex: 0 0 280px; background: var(--as-kolom); border-radius: 10px; padding: 10px 8px; max-height: calc(100vh - 190px); display: flex; flex-direction: column; }
.as-kolom.sleep-over { outline: 2px solid var(--as-accent); outline-offset: -2px; }
.as-kolom-kop { display: flex; align-items: baseline; gap: 8px; padding: 2px 8px 10px; }
.as-kolom-kop b { font-size: 16px; font-weight: 500; }
.as-kolom-inhoud { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 1px; }
.as-kaart { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--as-lijn), 0 1px 4px rgba(0,0,0,.04); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.as-kaart:hover { box-shadow: 0 0 0 1px #CFCBCB, 0 2px 6px rgba(0,0,0,.08); }
.as-kaart.gekozen { box-shadow: 0 0 0 2px var(--as-accent); }
.as-kaart.sleept { opacity: .5; }
.as-kaart-titel { display: flex; gap: 8px; align-items: flex-start; line-height: 22px; }
.as-kaart-titel .as-vink { margin-top: 2px; }
.as-kaart.klaar .as-kaart-titel span { color: var(--as-muted); }
.as-kaart-koppel { font-size: 12px; margin-left: 26px; }
.as-kaart-koppel a { color: var(--as-muted); }
.as-kaart-voet { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.as-kaart-nieuw { padding: 8px 10px; border-radius: 8px; }
.as-kaart-nieuw:hover, .as-kaart-nieuw:focus { background: #EBEAE9; }

/* Taakvenster rechts */
.as-venster { border-left: 1px solid var(--as-lijn); background: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.as-venster[hidden] { display: none; }
.as-v-balk { display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--as-lijn); }
.as-v-ruimte { flex: 1; }
.as-knop { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #CFCBCB; background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--as-tekst); }
.as-knop svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.as-knop:hover:not(:disabled) { background: #F1F8F4; border-color: var(--as-groen); color: #2F6B53; }
.as-knop.klaar { background: #E6F2EC; border-color: var(--as-groen); color: #2F6B53; }
.as-knop.blauw { background: var(--as-accent); border-color: var(--as-accent); color: #fff; }
.as-knop.blauw:hover { background: #005F67; color: #fff; }
.as-knop:disabled { opacity: .6; cursor: default; }
.as-v-ic { width: 30px; height: 30px; border-radius: 6px; border: 0; background: none; display: inline-grid; place-items: center; cursor: pointer; color: var(--as-muted); }
.as-v-ic:hover { background: #F0EFEE; color: var(--as-tekst); }
.as-v-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-v-body { padding: 16px 24px; overflow-y: auto; flex: 1; }
.as-v-titel { width: 100%; resize: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; margin-left: -12px; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--as-tekst); overflow: hidden; }
.as-v-titel:hover:not([readonly]) { border-color: #CFCBCB; }
.as-v-titel:focus { border-color: var(--as-accent); outline: none; }
.as-v-velden { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; align-items: center; margin: 14px 0 6px; }
.as-v-velden dt { font-size: 12px; color: var(--as-muted); }
.as-v-velden dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.as-v-velden select, .as-v-velden input { border: 1px solid transparent; border-radius: 6px; padding: 5px 8px; background: #fff; color: var(--as-tekst); max-width: 100%; }
.as-v-velden select:hover, .as-v-velden input:hover { border-color: #CFCBCB; }
.as-v-proj { display: inline-flex; align-items: center; gap: 6px; }
.as-v-kop { font-size: 14px; font-weight: 500; line-height: 20px; margin: 22px 0 8px; }
.as-v-tekst { white-space: pre-wrap; color: var(--as-tekst); }
.as-v-sub { border-top: 1px solid var(--as-lijn); }
.as-v-subrij { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--as-lijn); }
.as-v-subrij .as-muted { margin-left: auto; font-size: 12px; }
.as-v-subrij.klaar > span:nth-child(2) { color: var(--as-muted); }
.as-v-reacties { display: flex; flex-direction: column; gap: 14px; }
.as-v-reactie { display: flex; gap: 10px; }
.as-v-reactie p { margin: 2px 0 0; white-space: pre-wrap; }
.as-v-reageer { border-top: 1px solid var(--as-lijn); padding: 12px 20px; display: flex; gap: 8px; align-items: flex-end; background: #FBFBFA; }
.as-v-reageer textarea { flex: 1; border: 1px solid #CFCBCB; border-radius: 6px; padding: 8px 10px; resize: vertical; min-height: 40px; }

@media (max-width: 1100px) {
  .as, .as.met-venster { grid-template-columns: minmax(0, 1fr); }
  .as-zij { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--as-lijn); padding: 8px; }
  .as-zij-kop { display: none; }
  .as-zij-item { white-space: nowrap; }
  .as-venster { position: fixed; inset: 0; z-index: 50; height: auto; }
  .as-lijst, .as-lijst.met-project { --as-kolommen: minmax(0, 1fr) 90px 44px; }
  .as-rij > div:nth-child(n+4) { display: none; }
  .as-wie span:last-child { display: none; }
}
.as-av { box-sizing: border-box; overflow: hidden; line-height: 1; min-width: 0; }
.as-av svg { width: 14px; height: 14px; display: block; }
.as-rij > div + div .as-av { flex: 0 0 auto; }
/* Met het taakvenster open: alleen naam en datum (zoals Asana) */
.as-hoofd { overflow: hidden; }
.as.met-venster .as-lijst, .as.met-venster .as-lijst.met-project { --as-kolommen: minmax(180px, 1fr) 110px; }
.as.met-venster .as-rij > div:nth-child(n+3) { display: none; }
.as.met-venster .as-werkbalk { flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Takenlijst in Asana zetten (takenlijst.js) ---------- */
.tl-intro { margin: 0 0 var(--s3); }
.tl-melding { margin: 0 0 var(--s3); }
.tl-alle { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) var(--s3); border: 1px solid var(--lijn); border-bottom: 0; border-radius: var(--r-klein) var(--r-klein) 0 0; background: var(--achter); }
.tl-alle-wie { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--grijs); font-weight: 600; }
.tl-alle-wie select.kies { height: var(--hoogte-klein); font-size: 13px; }
.tl-check { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-weight: 600; font-size: 13px; }
.tl-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.tl-lijst { border: 1px solid var(--lijn); border-radius: 0 0 var(--r-klein) var(--r-klein); }
.tl-rij { display: grid; grid-template-columns: 28px minmax(0, 1fr) 150px 190px; gap: var(--s2) var(--s3); align-items: start; padding: var(--s2) var(--s3); border-top: 1px solid var(--lijn); }
.tl-rij:first-child { border-top: 0; }
.tl-rij .tl-check { padding-top: 9px; }
.tl-rij input[type=text], .tl-rij input[type=date], .tl-rij select { width: 100%; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); padding: 0 var(--s2); height: var(--hoogte-klein); background-color: var(--wit); font: inherit; }
.tl-rij select { appearance: none; padding-right: 28px; background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23687179' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.tl-rij input:focus, .tl-rij select:focus { border-color: var(--teal); outline: none; box-shadow: var(--focus-ring); }
.tl-rij .regel-sub { margin-top: 2px; }
.tl-naam { display: block; padding-top: 7px; font-weight: 600; }
.tl-al { grid-column: 3 / 5; padding-top: 7px; display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.tl-rij.is-al { background: var(--achter); color: var(--grijs); }
.tl-rij.is-uit .tl-titel input, .tl-rij.is-uit .tl-datum, .tl-rij.is-uit .tl-wie { opacity: .55; }
.tl-waarschuwing { grid-column: 2 / 5; font-size: 13px; color: var(--geel); background: var(--geel-licht); border-radius: var(--r-klein); padding: 5px 10px; }
.tl-sectie { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.tl-sectie [hidden] { display: none; }
.tl-dialoog .formknoppen { position: sticky; bottom: calc(-1 * var(--s6)); background: var(--wit); padding-bottom: var(--s6); margin-bottom: calc(-1 * var(--s6)); z-index: 1; }
.tl-wie-lijst { margin: var(--s3) 0; padding-left: var(--s5); display: grid; gap: var(--s2); }
@media (max-width: 640px) {
  .tl-rij { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .tl-titel { grid-column: 2 / 4; }
  .tl-datum { grid-column: 2; }
  .tl-wie { grid-column: 3; }
  .tl-al, .tl-waarschuwing { grid-column: 2 / 4; }
  .tl-al { padding-top: 0; }
  .tl-sectie { grid-template-columns: 1fr; }
  .tl-alle-wie select.kies { max-width: 170px; }
}

/* Kalender (zoals Asana): maand/week, taken op hun vervaldatum, rechts "Zonder datum" */
.as-inhoud.kal { padding: 0; flex: 1; display: flex; }
.as-kal { display: grid; grid-template-columns: minmax(0, 1fr) 250px; flex: 1; min-height: calc(100vh - 150px); border-top: 1px solid var(--as-lijn); }
.as.met-venster .as-kal { grid-template-columns: minmax(0, 1fr); }
/* Taakvenster open in de kalender: projectenlijst even weg en venster smaller, zodat de dagen leesbaar blijven */
@media (min-width: 1101px) {
  .as.met-venster:has(.as-kal) { grid-template-columns: minmax(0, 1fr) min(480px, 38vw); }
  .as.met-venster:has(.as-kal) > .as-zij { display: none; }
}
.as.met-venster .as-kal-zonder, .as.met-venster .as-kal-smalknop { display: none; }
.as-kal-hoofd { min-width: 0; display: flex; flex-direction: column; }
.as-kal-balk { display: flex; align-items: center; gap: 6px; padding: 10px 24px; border-bottom: 1px solid var(--as-lijn); flex-wrap: wrap; }
.as-kal-balk .as-knop { padding: 5px 12px; }
.as-kal-pijl { width: 28px; height: 28px; }
.as-kal-titel { font-size: 18px; font-weight: 500; line-height: 26px; margin: 0 0 0 8px; }
.as-seg { display: inline-flex; border: 1px solid #CFCBCB; border-radius: 6px; overflow: hidden; }
.as-seg button { border: 0; background: #fff; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--as-tekst); }
.as-seg button + button { border-left: 1px solid #CFCBCB; }
.as-seg button[aria-pressed="true"] { background: #EDEBEA; font-weight: 500; }
.as-seg button:hover:not([aria-pressed="true"]) { background: var(--as-hover); }
.as-kal-smalknop { font-size: 13px; color: var(--as-muted); margin-left: 12px; }

.as-kal-grid { --as-kal-kol: repeat(7, minmax(0, 1fr)); display: grid; grid-template-columns: var(--as-kal-kol); grid-template-rows: auto; grid-auto-rows: 1fr; align-content: stretch; flex: 1; } /* weken delen de hoogte; een drukke dag maakt alleen zijn eigen week hoger; de rij met dagnamen blijft laag */
.as-kal.smal .as-kal-grid { --as-kal-kol: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .5fr)); }
.as-kal-wd { font-size: 12px; color: var(--as-muted); padding: 8px 8px 6px; border-bottom: 1px solid var(--as-lijn); border-right: 1px solid var(--as-lijn); }
.as-kal-dag { position: relative; min-width: 0; min-height: 104px; border-right: 1px solid var(--as-lijn); border-bottom: 1px solid var(--as-lijn); padding: 6px 4px; display: flex; flex-direction: column; gap: 4px; transition: background .1s; }
.as-kal-dag.weekend, .as-kal-wd.weekend { background: #FBFBFA; }
.as-kal-dag.buiten { background: #F7F7F6; }
.as-kal-dag.buiten .as-kal-nr, .as-kal-dag.buiten .as-kal-taak { opacity: .55; }
.as-kal-dag:hover { background: #FCFCFB; }
.as-kal-dag.sleep-over { background: var(--as-gekozen); outline: 2px dashed var(--as-accent); outline-offset: -2px; }
.as-kal-dagkop { display: flex; align-items: center; justify-content: space-between; min-height: 24px; padding: 0 4px; }
.as-kal-nr { font-size: 12px; color: var(--as-muted); display: inline-flex; align-items: center; gap: 6px; }
.as-kal-nr b { font-weight: 600; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 11px; padding: 0 3px; }
.as-kal-dag.vandaag .as-kal-nr b { background: var(--as-accent); color: #fff; padding: 0 6px; }
.as-kal-plus { width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: var(--as-muted); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .1s; }
.as-kal-dag:hover .as-kal-plus, .as-kal-plus:focus-visible { opacity: 1; }
.as-kal-plus:hover { background: #EDEBEA; color: var(--as-tekst); }
.as-kal-taken { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-kal-stippen, .as-kal-daglijst { display: none; }

/* Kaartje: rond vinkje, titel afgekapt, kleur = project (links), rood = te laat */
.as-kal-taak { display: flex; align-items: flex-start; gap: 6px; min-width: 0; min-height: 26px; padding: 3px 6px 3px 6px; background: #fff; border: 1px solid #E3E1E0; border-left: 3px solid var(--k, #6D6E6F); border-radius: 5px; font-size: 12.5px; line-height: 17px; cursor: pointer; user-select: none; }
.as-kal-taak > span { overflow: hidden; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } /* titel afgekapt na 2 regels */
.as-kal-taak > span { hyphens: none; overflow-wrap: break-word; } /* alleen tussen woorden afbreken */
.as-kal-taak .as-vink.klein { width: 14px; height: 14px; border-width: 1.3px; margin-top: 1.5px; }
/* Smalle weekenden: één regel, zonder vinkje (afvinken kan in het taakvenster) */
@media (min-width: 701px) {
  .as-kal.smal .as-kal-dag.weekend .as-kal-taak > span { display: block; white-space: nowrap; text-overflow: ellipsis; }
  .as-kal.smal .as-kal-dag.weekend .as-kal-taak .as-vink { display: none; }
}
.as-kal-taak .as-vink.klein svg { width: 9px; height: 9px; }
.as-kal-taak:hover { border-color: #CFCBCB; border-left-color: var(--k); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.as-kal-taak:focus-visible { outline: 2px solid var(--as-accent); outline-offset: 1px; }
.as-kal-taak.gekozen { background: var(--as-gekozen); border-color: var(--as-accent); border-left-color: var(--k); }
.as-kal-taak.laat > span { color: var(--as-rood); }
.as-kal-taak.klaar > span { color: var(--as-muted); text-decoration: line-through; }
.as-kal-taak.sleept { opacity: .4; }
.as-kal-meer { align-self: flex-start; border: 0; background: none; font-size: 12px; color: var(--as-muted); padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.as-kal-meer:hover { background: #EDEBEA; color: var(--as-tekst); }
.as-kal-nieuw { height: 26px; border: 1px solid var(--as-accent); border-radius: 5px; padding: 0 8px; font: inherit; font-size: 13px; min-width: 0; width: 100%; outline: none; }

/* Weekweergave: één hoge rij, alle taken zichtbaar */
.as-kal.week .as-kal-grid { grid-template-rows: auto minmax(calc(100vh - 260px), 1fr); }
.as-kal.week .as-kal-dag { overflow-y: auto; }
.as-kal.week .as-kal-taak > span { -webkit-line-clamp: 3; }
.as-kal.week .as-kal-nr small { display: none; } /* weekdag staat al in de kop */

/* Zonder datum */
.as-kal-zonder { border-left: 1px solid var(--as-lijn); background: #FBFBFA; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.as-kal-zonder-kop { display: flex; align-items: baseline; justify-content: space-between; }
.as-kal-zonder-kop b { font-weight: 500; }
.as-kal-zonder > p { font-size: 12px; line-height: 17px; margin: 0 0 6px; }
.as-kal-zonder-lijst { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 2px; }
.as-kal-zonder .as-kal-taak { height: auto; min-height: 34px; padding: 6px 8px; }
.as-kal-zonder .as-kal-taak > span { white-space: normal; }
.as-kal-zonder.sleep-over { background: var(--as-gekozen); outline: 2px dashed var(--as-accent); outline-offset: -2px; }

@media (max-width: 1100px) {
  .as-kal { grid-template-columns: minmax(0, 1fr); }
  .as-kal-zonder { border-left: 0; border-top: 1px solid var(--as-lijn); }
}
/* Mobiel: maand compact met stipjes + taken van de gekozen dag; week als lijst per dag */
@media (max-width: 700px) {
  .as-kal { min-height: 0; }
  .as-kal-balk { padding: 8px 12px; gap: 4px; }
  .as-kal-titel { font-size: 16px; margin-left: 4px; }
  .as-kal-balk .as-v-ruimte, .as-kal-smalknop { display: none; }
  .as-seg { margin-left: auto; }
  .as-kal.smal .as-kal-grid { --as-kal-kol: repeat(7, minmax(0, 1fr)); }
  .as-kal.maand .as-kal-grid { grid-auto-rows: 48px; flex: none; }
  .as-kal.maand .as-kal-wd { text-align: center; padding: 6px 0; border-right: 0; }
  .as-kal.maand .as-kal-dag { border-right: 0; padding: 4px 0; align-items: center; gap: 3px; cursor: pointer; }
  .as-kal.maand .as-kal-dagkop { justify-content: center; padding: 0; min-height: 22px; }
  .as-kal.maand .as-kal-plus, .as-kal.maand .as-kal-taken { display: none; }
  .as-kal.maand .as-kal-nr b { font-size: 13px; }
  .as-kal.maand .as-kal-dag.gekozen .as-kal-nr b { box-shadow: inset 0 0 0 1.5px var(--as-accent); color: var(--as-accent); }
  .as-kal.maand .as-kal-dag.gekozen.vandaag .as-kal-nr b { color: #fff; }
  .as-kal.maand .as-kal-stippen { display: flex; gap: 3px; min-height: 5px; }
  .as-kal-stippen i { width: 5px; height: 5px; border-radius: 50%; }
  .as-kal-stippen i.klaar { opacity: .35; }
  .as-kal.maand .as-kal-daglijst { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-bottom: 1px solid var(--as-lijn); }
  .as-kal-daglijst-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .as-kal-daglijst-kop b { font-weight: 500; }
  .as-kal-daglijst .as-kal-taak, .as-kal.week .as-kal-taak, .as-kal-zonder .as-kal-taak { height: auto; min-height: 36px; font-size: 14px; }
  .as-kal.week .as-kal-grid { display: flex; flex-direction: column; flex: none; }
  .as-kal.week .as-kal-wd { display: none; }
  .as-kal.week .as-kal-dag { border-right: 0; padding: 8px 12px 10px; min-height: 52px; overflow: visible; }
  .as-kal.week .as-kal-dagkop { padding: 0; }
  .as-kal.week .as-kal-plus { opacity: 1; }
  .as-kal.week .as-kal-nr small { display: inline; font-weight: 600; color: var(--as-tekst); }
  .as-kal.week .as-kal-dag.weekend { background: #fff; }
}

/* ---------- Contracten (tabblad Contract, overzicht, instellingen) ---------- */
.ct-leegkaart { max-width: 640px; text-align: center; padding: 40px 32px; margin: 0 auto; }
.ct-leegkaart h2 { margin: var(--s3) 0 var(--s2); }
.ct-leegkaart p { margin: 0 0 var(--s3); }
.ct-leegkaart .knop { margin-top: var(--s2); }
.ct-leeg-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-licht); color: var(--teal-donker); display: inline-grid; place-items: center; }
.ct-leeg-ic svg { width: 26px; height: 26px; }
.ct-versies { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.ct-versie { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--hoogte-klein); padding: 0 var(--s3); border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); background: var(--wit); color: var(--leisteen); text-decoration: none; font-size: 13px; font-weight: 600; }
.ct-versie:hover { border-color: var(--teal); }
.ct-versie.actief { border-color: var(--teal-donker); box-shadow: inset 0 0 0 1px var(--teal-donker); }
.ct-oneflow { margin: 0 0 var(--s3); }
.ct-oneflow-pil { font-size: 11px; padding: 0 8px; vertical-align: 1px; }

/* Statusbalk met stappen */
.ct-status { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: 10px var(--s4); margin-bottom: var(--s4); }
.ct-status-tekst { font-size: 13px; color: var(--grijs); min-width: 0; flex: 1 1 260px; }
.ct-status-tekst b { color: var(--leisteen); }
.ct-fout { color: var(--rood) !important; font-weight: 600; }
.ct-stappen { list-style: none; display: flex; align-items: center; gap: var(--s2); margin: 0 0 0 auto; padding: 0; font-size: 13px; color: var(--grijs); }
.ct-stap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ct-stap + .ct-stap::before { content: ''; width: 18px; height: 2px; background: var(--lijn-sterk); margin-right: 2px; }
.ct-stap i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lijn-sterk); display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; }
.ct-stap.klaar i { background: var(--teal); border-color: var(--teal); }
.ct-stap.klaar + .ct-stap::before { background: var(--teal); }
.ct-stap.nu { color: var(--leisteen); font-weight: 700; }
.ct-stap.nu i { border-color: var(--teal-donker); background: var(--teal-donker); box-shadow: inset 0 0 0 3px #fff; }
.ct-stap.probleem { color: var(--rood); font-weight: 700; }
.ct-stap.probleem i { background: var(--rood); border-color: var(--rood); }
.ct-afgewezen { background: var(--rood-licht); color: var(--rood); border-radius: var(--r-klein); padding: 10px 14px; margin-bottom: var(--s4); }
.ct-afgewezen q { font-style: italic; }

/* Raster: editor links, kaarten rechts */
.ct-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ct-zij { display: grid; gap: 14px; }
.ct-zij > .kaart + .kaart { margin-top: 0; }
.ct-kaart { padding: 18px 20px; }
.ct-kaartkop { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.ct-kaartkop h2 { font-size: 15px; }
.ct-kop-link { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--grijs); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ct-kop-link:hover { color: var(--teal-donker); }
.ct-kop-link svg { width: 13px; height: 13px; }
.ct-dl { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 13.5px; }
.ct-dl dt { color: var(--grijs); }
.ct-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ct-dl-los { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--lijn); }
.ct-ontbreekt { color: var(--oranje-mark); font-weight: 600; }
.ct-waarschuwing { margin-top: var(--s3); background: var(--geel-licht); color: var(--geel); border-radius: var(--r-klein); padding: 9px 12px; font-size: 13px; line-height: 1.45; }
.ct-waarschuwing a { color: inherit; font-weight: 700; }
.ct-noot { margin: var(--s3) 0 0; }
.ct-donker { color: var(--leisteen); }
.ct-knoppen { display: grid; gap: var(--s2); }
.ct-knoppen .knop { width: 100%; }

/* Personen */
.ct-persoon { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 13.5px; text-align: left; }
.ct-persoon-tekst b { font-weight: 600; display: block; }
.ct-persoon small { display: block; color: var(--grijs); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ct-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; background: #6A5FD8; }
.ct-av.zomaar { background: var(--teal-donker); }
.ct-av.meelezer { background: #8C979F; }
.ct-zij .ct-persoon + .ct-persoon, .ct-persoon-knop + .ct-persoon-knop { border-top: 1px solid var(--lijn); }
.ct-persoon-knop { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--r-klein); }
.ct-persoon-knop:hover .ct-persoon-tekst b { color: var(--teal-donker); text-decoration: underline; text-underline-offset: 2px; }

/* Bijlagen */
.ct-bijlage { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; min-height: 44px; }
.ct-bijlage + .ct-bijlage { border-top: 1px solid var(--lijn); }
.ct-bijlage a { color: var(--leisteen); }
.ct-bijlage a:hover { color: var(--teal-donker); }
.ct-bijl-naam { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ct-bijl-naam small { display: block; font-size: 12px; }
.ct-bijl-acties { display: inline-flex; gap: 2px; margin-left: auto; flex: none; }
.ct-bijl-acties .knop.stil { min-height: 30px; padding: 0 8px; font-size: 12.5px; }
.ct-weg { color: var(--grijs) !important; }
.ct-weg:hover { color: var(--rood) !important; background: var(--rood-licht) !important; }
.ct-pdf { background: var(--rood-licht); color: var(--rood); font-size: 10px; font-weight: 800; padding: 3px 5px; border-radius: 4px; flex: none; }
.ct-drop { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); min-height: var(--hoogte); padding: 6px var(--s3); border: 1.5px dashed var(--lijn-sterk); border-radius: var(--r-klein); font-size: 13px; cursor: pointer; color: var(--leisteen); }
.ct-drop:hover, .ct-drop.over, .ct-drop:focus-within { border-color: var(--teal); background: var(--teal-licht); }
.ct-drop svg { width: 16px; height: 16px; color: var(--teal-donker); flex: none; }

/* Editor */
.ct-editor { border-radius: var(--r); box-shadow: var(--schaduw); background: var(--wit); }
.ct-werkbalk { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 2; background: var(--wit); border-radius: var(--r) var(--r) 0 0; }
.ct-wb-knop { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; color: var(--grijs); font-weight: 700; font-size: 15px; cursor: pointer; }
.ct-wb-knop:hover { background: var(--achter); color: var(--leisteen); }
.ct-wb-knop[aria-pressed="true"] { background: var(--teal-licht); color: var(--teal-donker); }
.ct-sep { width: 1px; height: 22px; background: var(--lijn); margin: 0 6px; }
.ct-wb-rechts { margin-left: auto; display: inline-flex; gap: var(--s2); align-items: center; }
.ct-wb-tekst { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--teal-donker); font-weight: 600; font-size: 13px; cursor: pointer; min-height: 34px; padding: 0 8px; border-radius: 6px; }
.ct-wb-tekst:hover { background: var(--teal-licht); }
.ct-wb-tekst svg { width: 14px; height: 14px; }
.ct-wb-kies { height: 34px; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-pil); padding: 0 30px 0 12px; font-size: 13px; font-weight: 600; color: var(--teal-donker); appearance: none; cursor: pointer; background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23007680' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center; max-width: 220px; }
.ct-vast { color: var(--grijs); font-size: 13px; gap: var(--s2); padding: 10px 14px; }
.ct-vast svg { width: 16px; height: 16px; }
.ct-hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.ct-papier { padding: 34px 56px 44px; font-size: 14px; line-height: 1.6; }
.ct-logo { font-size: 34px; font-weight: 300; letter-spacing: -1px; line-height: 1.1; margin-bottom: var(--s2); user-select: none; }
.ct-logo b { color: var(--teal); font-weight: 800; }
.ct-tekst { outline: none; min-height: 420px; overflow-wrap: anywhere; }
.ct-tekst:focus-visible { outline: none; }
.ct-editor:focus-within { box-shadow: var(--schaduw), 0 0 0 2px rgba(87,182,178,.35); }
.ct-editor.alleen-lezen:focus-within { box-shadow: var(--schaduw); }
.ct-tekst h2 { font-size: 15.5px; margin: 18px 0 4px; }
.ct-tekst h3, .ct-tekst h4 { font-size: 15px; margin: 18px 0 4px; }
.ct-tekst p { margin: 0 0 8px; }
.ct-tekst ul, .ct-tekst ol { margin: 0 0 8px; padding-left: 22px; }
.ct-tekst [data-veld] { background: var(--teal-licht); border-bottom: 1.5px solid var(--teal); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.ct-tekst [data-veld].ct-leeg { background: #FDEEE4; border-bottom-color: var(--oranje); color: var(--oranje-mark); }
.alleen-lezen .ct-tekst [data-veld] { background: none; border: 0; padding: 0; }
.ct-onder { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); padding: 0 4px; }

/* Versturen-dialoog */
.ct-samenvatting { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); font-size: 14px; }
.ct-samenvatting li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.ct-samenvatting svg { width: 18px; height: 18px; color: var(--teal-donker); margin-top: 2px; }
.ct-teken-kop { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; margin: var(--s5) 0 var(--s2); }
.ct-canvas-wrap { position: relative; border: 1.5px solid var(--lijn-sterk); border-radius: var(--r-klein); background: #FCFDFD; }
.ct-canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; border-radius: var(--r-klein); }
.ct-canvas-lijn { position: absolute; left: 24px; right: 24px; bottom: 34px; border-top: 1.5px dashed var(--lijn-sterk); padding-top: 6px; font-size: 12px; color: var(--grijs); text-align: center; pointer-events: none; }
.ct-verstuur > .vinkje { margin-top: var(--s3); }
.ct-bericht { margin-top: var(--s4); }
.ct-links-lijst { display: grid; gap: var(--s3); margin: var(--s3) 0; }
.ct-link-rij { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: end; }
.ct-link-rij .geheim { margin-top: 4px; overflow-wrap: anywhere; }

/* Logboek */
.ct-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.ct-log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.ct-log-tijd { color: var(--grijs); font-variant-numeric: var(--cijfers); white-space: nowrap; }
.ct-log-meer { margin-top: 8px; font-size: 13px; }
.ct-log-meer summary { cursor: pointer; color: var(--teal-donker); font-weight: 600; margin-bottom: 8px; }

/* Overzicht */
.ct-tellers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.ct-teller { display: flex; align-items: center; gap: var(--s4); text-align: left; background: var(--wit); border: 1.5px solid transparent; border-radius: var(--r); box-shadow: var(--schaduw); padding: 18px 22px; cursor: pointer; min-width: 0; }
.ct-teller:hover { border-color: var(--lijn-sterk); }
.ct-teller.aan { border-color: var(--teal-donker); }
.ct-teller .n { font-size: 30px; font-weight: 700; min-width: 40px; font-variant-numeric: var(--cijfers); line-height: 1; }
.ct-teller.geel .n { color: var(--geel); }
.ct-teller.rood .n { color: var(--rood); }
.ct-teller b { display: block; font-size: 15px; }
.ct-teller small { display: block; color: var(--grijs); font-size: 13px; }
.ct-tabelkaart { padding: 8px 8px 4px; }
.ct-tabel td { vertical-align: middle; }
.ct-cel-titel { min-width: 190px; }
.ct-sub { margin-top: 3px; max-width: 220px; }
.ct-rood { color: var(--rood); font-weight: 600; }
.ct-acties { display: inline-flex; gap: 6px; }
.ct-voortgang { display: grid; gap: 2px; }
.ct-balkjes { display: inline-flex; gap: 4px; }
.ct-balkjes i { width: 26px; height: 5px; border-radius: 3px; background: var(--lijn); }
.ct-balkjes i.aan { background: var(--teal); }
.ct-alleen-mobiel { display: none; }

/* Instellingen › Contract */
.ct-inst { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ct-inst > .kaart, .ct-inst-zij > .kaart + .kaart { margin-top: 0; }
.ct-inst-zij { display: grid; gap: 14px; }
.ct-inst .ct-editor { box-shadow: none; border: 1.5px solid var(--lijn); }
.ct-uitleg { margin: 0 0 var(--s4); font-size: 13.5px; }
.ct-veldenlijst { margin-top: var(--s4); font-size: 13px; }
.ct-veldenlijst summary { cursor: pointer; color: var(--teal-donker); font-weight: 600; margin-bottom: var(--s2); }
.ct-veldenlijst .ct-dl { grid-template-columns: 190px minmax(0, 1fr); }
.ct-veldenlijst dd { font-weight: 400; }

@media (max-width: 1180px) {
  .ct-raster, .ct-inst { grid-template-columns: minmax(0, 1fr); }
  .ct-zij, .ct-inst-zij { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 860px) {
  .ct-tellers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .ct-teller { padding: var(--s3) var(--s4); gap: var(--s3); }
  .ct-teller .n { font-size: 24px; min-width: 28px; }
  .ct-stappen { margin-left: 0; flex-wrap: wrap; row-gap: 4px; }
  .ct-stap + .ct-stap::before { width: 10px; }
  .ct-papier { padding: 22px 18px 28px; }
  .ct-logo { font-size: 26px; }
  .ct-tekst { min-height: 260px; }
  .ct-zij, .ct-inst-zij { grid-template-columns: minmax(0, 1fr); }
  .ct-wb-rechts { margin-left: 0; width: 100%; justify-content: space-between; padding-top: 4px; }
  .ct-alleen-mobiel { display: block; color: var(--grijs); }
  .ct-acties { flex-direction: column; align-items: flex-end; }
  .ct-log li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ct-veldenlijst .ct-dl { grid-template-columns: minmax(0, 1fr); }
}
.ct-titel { color: var(--teal); text-align: center; font-size: 24px; font-weight: 700; margin: 14px 0 6px; user-select: none; }
.ct-ok { display: flex; align-items: center; gap: var(--s2); }
.ct-ok svg { width: 18px; height: 18px; flex: none; }
.ct-zoek { min-width: 300px; }
@media (max-width: 860px) { .ct-zoek { min-width: 0; flex: 1 1 100%; } }
.ct-inst-zij .kaart-kop h2 { font-size: 15px; }
@media (max-width: 860px) {
  .ct-tabelkaart { padding: 4px 0; }
  .ct-tabel thead { display: none; }
  .ct-tabel tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--lijn); }
  .ct-tabel tbody td { padding: 0; border: 0; }
  .ct-tabel tbody td.ct-cel-titel { grid-column: 1 / -1; min-width: 0; }
  .ct-tabel tbody td.leeg { grid-column: 1 / -1; padding: 24px 0; }
  .ct-tabel .ct-sub { max-width: none; }
  .ct-tabel td.acties-cel { width: auto; align-self: center; }
  .ct-acties { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
}
