/* Coenders Werkapp — huisstijl: antraciet/zwart + oranje, Montserrat (koppen) & Barlow (tekst) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/montserrat-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600-latin.woff2') format('woff2'); }

:root {
  --oranje: #f26a1b; --oranje-d: #d95c12; --oranje-l: #fff1e6;
  --zwart: #111111; --antraciet: #1c1c1e; --antraciet-l: #2a2a2d;
  --bg: #f4f5f7; --wit: #ffffff; --lijn: #e5e7eb; --lijn-d: #d1d5db;
  --tekst: #17181a; --tekst-2: #4b5563; --tekst-3: #8a919c;
  --blauw: #2364c4; --blauw-l: #e6eefb; --groen: #1f8a4c; --groen-l: #e6f5ec; --rood: #c0392b; --rood-l: #fde8e8; --geel: #b7791f; --geel-l: #fff6e0; --paars: #6e3fc2; --paars-l: #efe7fb;
  --r: 12px; --r-s: 8px; --schaduw: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --kop: 'Montserrat', Arial, sans-serif; --body: 'Barlow', Arial, sans-serif;
  --nav-h: 64px; --tab-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--tekst); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--kop); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; } h2 { font-size: 18px; font-weight: 600; } h3 { font-size: 15px; font-weight: 600; }
a { color: var(--oranje-d); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sprite { position: absolute; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.klein { width: 16px; height: 16px; } svg.ic.groot { width: 26px; height: 26px; }
.stil { color: var(--tekst-3); } .stil2 { color: var(--tekst-2); } .klein { font-size: 13px; } .vet { font-weight: 600; } .rechts { text-align: right; } .mono { font-variant-numeric: tabular-nums; }
.oranje { color: var(--oranje-d); } .groen { color: var(--groen); } .rood { color: var(--rood); }
.rij { display: flex; align-items: center; gap: 10px; } .rij.tussen { justify-content: space-between; } .rij.wrap { flex-wrap: wrap; } .rij.top { align-items: flex-start; } .groei { flex: 1; min-width: 0; }
.kol { display: flex; flex-direction: column; gap: 6px; }
.verborgen { display: none !important; }
.ellips { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.laden { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--lijn); border-top-color: var(--oranje); border-radius: 50%; animation: draai .8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.zijbalk { background: var(--zwart); color: #d6d6d6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.logo { padding: 22px 20px 18px; border-bottom: 1px solid #2a2a2a; }
.logo .naam { font-family: var(--kop); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: .03em; line-height: 1; }
.logo .sub { display: inline-block; margin-top: 5px; background: var(--oranje); color: #fff; font-family: var(--kop); font-weight: 700; font-size: 9px; letter-spacing: .22em; padding: 3px 8px; border-radius: 3px; }
.logo .schild { width: 30px; height: 30px; color: #fff; margin-bottom: 8px; }
.nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #cfcfcf; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: #222; color: #fff; text-decoration: none; }
.nav a.actief { background: var(--oranje); color: #fff; }
.nav .teller { margin-left: auto; background: rgba(255,255,255,.18); color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.nav a.actief .teller { background: rgba(0,0,0,.25); }
.zijbalk-voet { padding: 14px 16px; border-top: 1px solid #2a2a2a; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--oranje); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--kop); font-weight: 700; font-size: 14px; flex: none; }
.avatar.klein { width: 26px; height: 26px; font-size: 11px; } .avatar.groot { width: 56px; height: 56px; font-size: 20px; }
.hoofd { min-width: 0; display: flex; flex-direction: column; }
.topbalk { height: var(--nav-h); background: var(--wit); border-bottom: 1px solid var(--lijn); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.topbalk h1 { font-size: 20px; }
.topbalk .zoek { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.zoek input { width: 100%; padding: 9px 12px 9px 38px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--bg); }
.zoek svg { position: absolute; left: 11px; top: 10px; color: var(--tekst-3); }
.zoek-res { position: absolute; top: 44px; left: 0; right: 0; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); box-shadow: var(--schaduw); z-index: 30; max-height: 60vh; overflow: auto; }
.zoek-res a { display: block; padding: 10px 14px; color: var(--tekst); border-bottom: 1px solid var(--lijn); }
.zoek-res a:hover { background: var(--bg); text-decoration: none; } .zoek-res a:last-child { border-bottom: 0; }
.zoek-res .soort { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--oranje-d); font-weight: 600; }
.ikoonknop { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--tekst-2); display: inline-flex; align-items: center; justify-content: center; }
.ikoonknop:hover { background: var(--bg); color: var(--tekst); }
.ikoonknop .bol { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--oranje); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.inhoud { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
.mobiel-top, .tabbalk { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .zijbalk, .topbalk { display: none; }
  .mobiel-top { display: flex; align-items: center; gap: 10px; background: var(--zwart); color: #fff; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); position: sticky; top: 0; z-index: 20; }
  .mobiel-top .logo { padding: 0; border: 0; display: flex; align-items: center; gap: 8px; flex: 1; }
  .mobiel-top .logo .schild { width: 24px; height: 24px; margin: 0; } .mobiel-top .logo .naam { font-size: 13px; } .mobiel-top .logo .sub { font-size: 7px; padding: 2px 5px; margin: 0 0 0 4px; }
  .mobiel-top .ikoonknop { color: #fff; } .mobiel-top .ikoonknop:hover { background: #222; }
  .inhoud { padding: 16px; padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
  .tabbalk { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--wit); border-top: 1px solid var(--lijn); z-index: 20; }
  .tabbalk a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tekst-3); font-size: 11.5px; font-weight: 500; position: relative; }
  .tabbalk a.actief { color: var(--oranje); } .tabbalk a:hover { text-decoration: none; }
  .tabbalk .bol { position: absolute; top: 8px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px; background: var(--oranje); color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
  h1 { font-size: 21px; }
  .tegel { gap: 10px; padding: 14px; } .tegel .ik { width: 42px; height: 42px; } .tegel .ik svg.ic { width: 20px; height: 20px; }
  .tegel .getal { font-size: 20px; overflow-wrap: anywhere; } .tegel .label { font-size: 12.5px; } .tegel > div:last-child { min-width: 0; }
}

/* ---------- Kaarten, koppen ---------- */
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); box-shadow: var(--schaduw); padding: 18px 20px; }
.kaart.strak { padding: 0; overflow: hidden; }
.kaart + .kaart, .blok + .blok { margin-top: 16px; }
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kaart.strak .kaart-kop { padding: 16px 20px 0; }
.kaart-kop h2 { font-size: 16px; }
.grid { display: grid; gap: 16px; }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.zij { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.zij { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid.k3, .grid.k2 { grid-template-columns: 1fr; } .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pagina-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.pagina-kop .sub { color: var(--tekst-3); margin-top: 4px; }
.pagina-kop .acties { display: flex; gap: 8px; flex-wrap: wrap; }
.kruimel { color: var(--tekst-3); font-size: 14px; margin-bottom: 6px; } .kruimel a { color: var(--tekst-3); }

/* Statistiek-tegel */
.tegel { display: flex; align-items: center; gap: 14px; }
.tegel .ik { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--oranje-l); color: var(--oranje); flex: none; }
.tegel .ik.grijs { background: var(--bg); color: var(--tekst-2); } .tegel .ik.groen { background: var(--groen-l); color: var(--groen); } .tegel .ik.blauw { background: var(--blauw-l); color: var(--blauw); } .tegel .ik.rood { background: var(--rood-l); color: var(--rood); }
.tegel .getal { font-family: var(--kop); font-size: 26px; font-weight: 700; line-height: 1; }
.tegel .label { color: var(--tekst-2); font-size: 13.5px; margin-top: 3px; }
a.kaart, .kaart.klik { color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; } a.kaart:hover, .kaart.klik:hover { text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-1px); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--tekst-2); line-height: 1.4; }
.badge.blauw { background: var(--blauw-l); color: var(--blauw); } .badge.oranje { background: var(--oranje-l); color: var(--oranje-d); } .badge.groen { background: var(--groen-l); color: var(--groen); }
.badge.rood { background: var(--rood-l); color: var(--rood); } .badge.geel { background: var(--geel-l); color: var(--geel); } .badge.paars { background: var(--paars-l); color: var(--paars); } .badge.grijs { background: #ececee; color: #555; }
.badge.donker { background: var(--zwart); color: #fff; }
.stip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--oranje); flex: none; }

/* ---------- Knoppen ---------- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--lijn-d); background: var(--wit); color: var(--tekst); font-weight: 600; font-size: 14.5px; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.knop:hover { background: var(--bg); text-decoration: none; }
.knop.primair { background: var(--oranje); border-color: var(--oranje); color: #fff; } .knop.primair:hover { background: var(--oranje-d); }
.knop.donker { background: var(--zwart); border-color: var(--zwart); color: #fff; } .knop.donker:hover { background: #333; }
.knop.gevaar { color: var(--rood); border-color: #f1c4c4; } .knop.gevaar:hover { background: var(--rood-l); }
.knop.groen { background: var(--groen); border-color: var(--groen); color: #fff; }
.knop.licht { border-color: transparent; background: transparent; color: var(--oranje-d); } .knop.licht:hover { background: var(--oranje-l); }
.knop.klein { padding: 6px 11px; font-size: 13px; border-radius: 8px; } .knop.klein svg.ic { width: 15px; height: 15px; }
.knop.breed { width: 100%; } .knop:disabled { opacity: .55; cursor: not-allowed; }
.knop.ikoon-boven { flex-direction: column; gap: 6px; padding: 12px 8px; font-size: 13px; color: var(--tekst); } .knop.ikoon-boven svg { color: var(--oranje); }
.actiebalk { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(244,245,247,0), var(--bg) 30%); padding: 16px 0 8px; display: flex; gap: 10px; z-index: 5; }
.actiebalk .knop { flex: 1; }
@media (max-width: 900px) { .actiebalk { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: 12px; } }

/* ---------- Formulieren ---------- */
.veld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.veld > label, .label { font-size: 13px; font-weight: 600; color: var(--tekst-2); }
.veld .hint { font-size: 12.5px; color: var(--tekst-3); }
.veld .fout { font-size: 12.5px; color: var(--rood); }
.invoer, input.invoer, select.invoer, textarea.invoer { width: 100%; padding: 10px 12px; border: 1px solid var(--lijn-d); border-radius: 10px; background: var(--wit); min-height: 42px; }
.invoer:focus { outline: 2px solid rgba(242,106,27,.35); border-color: var(--oranje); }
textarea.invoer { min-height: 90px; resize: vertical; line-height: 1.4; }
.invoer:disabled, .invoer[readonly] { background: var(--bg); color: var(--tekst-2); }
.invoer.fout { border-color: var(--rood); }
.met-eenheid { position: relative; } .met-eenheid .eenheid { position: absolute; right: 12px; top: 11px; color: var(--tekst-3); font-size: 13px; pointer-events: none; }
.met-eenheid .invoer { padding-right: 44px; }
.met-ikoon { position: relative; } .met-ikoon svg { position: absolute; left: 12px; top: 11px; color: var(--tekst-3); } .met-ikoon .invoer { padding-left: 40px; }
.form-rij { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-rij.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-rij.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-rij, .form-rij.k3, .form-rij.k4 { grid-template-columns: 1fr; } .form-rij.k2m { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vink { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-weight: 500; }
.vink input { width: 20px; height: 20px; accent-color: var(--oranje); margin: 0; }
.sectie-kop { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-family: var(--kop); font-weight: 600; font-size: 15px; } .sectie-kop svg { color: var(--oranje); }
.sectie-kop:first-child { margin-top: 0; }
.teller-invoer { display: inline-flex; align-items: center; border: 1px solid var(--lijn-d); border-radius: 8px; overflow: hidden; }
.teller-invoer button { width: 36px; height: 36px; border: 0; background: var(--wit); font-size: 18px; } .teller-invoer button:hover { background: var(--bg); }
.teller-invoer input { width: 54px; height: 36px; border: 0; border-left: 1px solid var(--lijn); border-right: 1px solid var(--lijn); text-align: center; }
.zoekselect { position: relative; }
.zoekselect .lijst { position: absolute; top: 100%; left: 0; right: 0; background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px; box-shadow: var(--schaduw); z-index: 40; max-height: 260px; overflow: auto; margin-top: 4px; }
.zoekselect .lijst div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--lijn); } .zoekselect .lijst div:hover, .zoekselect .lijst div.actief { background: var(--oranje-l); } .zoekselect .lijst div:last-child { border-bottom: 0; }
.zoekselect .lijst .sub { font-size: 12.5px; color: var(--tekst-3); }
.segment { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 2px; }
.segment button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--tekst-2); font-size: 13.5px; }
.segment button.actief { background: var(--wit); color: var(--tekst); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; } .filters .invoer { width: auto; min-width: 160px; }
.filters .groei { flex: 1 1 240px; } .filters .groei .invoer { width: 100%; min-width: 0; }
@media (max-width: 700px) {
  .filters { gap: 8px; } .filters .groei { flex: 1 1 100%; max-width: none !important; }
  .filters > select.invoer, .filters > input.invoer { flex: 1 1 calc(50% - 4px); min-width: 0; width: auto; }
  .filters .chips { flex-basis: 100%; } .filters .vink { padding: 4px 0; }
  .pagina-kop .acties { width: 100%; } .pagina-kop .acties .knop { flex: 1 1 auto; }
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lijn-d); background: var(--wit); font-size: 13px; font-weight: 500; cursor: pointer; } .chip.actief { background: var(--zwart); color: #fff; border-color: var(--zwart); }

/* ---------- Tabellen ---------- */
.tabel-wrap { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
.tabel td { padding: 11px 12px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tr.klik { cursor: pointer; } .tabel tr.klik:hover td { background: #fafafa; }
.tabel .r { text-align: right; font-variant-numeric: tabular-nums; }
.tabel td.acties { white-space: nowrap; text-align: right; }
.tabel input.invoer, .tabel select.invoer { min-height: 36px; padding: 6px 10px; }
.tabel tfoot td { font-weight: 600; border-top: 2px solid var(--lijn-d); }
@media (max-width: 700px) {
  table.tabel.kaarten, table.tabel.kaarten tbody, table.tabel.kaarten tr, table.tabel.kaarten td { display: block; }
  table.tabel.kaarten thead, table.tabel.kaarten tfoot { display: none; }
  table.tabel.kaarten tr { border: 1px solid var(--lijn); border-radius: var(--r-s); margin-bottom: 10px; padding: 8px 12px; background: var(--wit); }
  table.tabel.kaarten td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.tabel.kaarten td::before { content: attr(data-label); color: var(--tekst-3); font-size: 12.5px; text-align: left; flex: none; }
  table.tabel.kaarten td.geen-label::before { display: none; } table.tabel.kaarten td.geen-label { justify-content: flex-start; text-align: left; }
  table.tabel.kaarten td.acties { justify-content: flex-end; }
}
.lijst { display: flex; flex-direction: column; }
.lijst-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--lijn); color: inherit; }
.lijst-item:last-child { border-bottom: 0; } .lijst-item:hover { text-decoration: none; }
a.lijst-item:hover .titel { color: var(--oranje-d); }
.lijst-item .titel { font-weight: 600; } .lijst-item .sub { color: var(--tekst-3); font-size: 13.5px; }
.lijst-item .tijd { font-family: var(--kop); font-weight: 600; font-size: 15px; width: 52px; flex: none; }
.lijst-item .chev { color: var(--tekst-3); }
.leeg { text-align: center; padding: 36px 20px; color: var(--tekst-3); }
.leeg svg { width: 40px; height: 40px; margin-bottom: 8px; color: var(--lijn-d); }
.tijdlijn .lijst-item { position: relative; padding-left: 26px; }
.tijdlijn .lijst-item::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--lijn); }
.tijdlijn .lijst-item .stip { position: absolute; left: 4px; top: 22px; }
.tijdlijn .lijst-item .stip.grijs { background: var(--lijn-d); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; } .kv dt { color: var(--tekst-3); } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv.smal { grid-template-columns: 100px 1fr; }
.totalen { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: 14px; max-width: 320px; margin-left: auto; } .totalen .eind { font-weight: 700; font-size: 16px; border-top: 2px solid var(--lijn-d); padding-top: 6px; }
.info-balk { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--blauw-l); color: #1c4c96; font-size: 14px; margin-bottom: 14px; } .info-balk svg { flex: none; margin-top: 1px; }
.info-balk.waarschuw { background: var(--geel-l); color: #7a5410; } .info-balk.fout { background: var(--rood-l); color: var(--rood); } .info-balk.goed { background: var(--groen-l); color: var(--groen); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--lijn); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--tekst-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.actief { color: var(--tekst); border-bottom-color: var(--oranje); }
.voortgang { display: flex; align-items: center; gap: 0; margin: 4px 0 8px; }
.voortgang .stap { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--tekst-3); flex: 1; position: relative; }
.voortgang .stap .bol { width: 14px; height: 14px; border-radius: 50%; background: var(--lijn-d); border: 3px solid var(--wit); box-shadow: 0 0 0 1px var(--lijn-d); }
.voortgang .stap.klaar .bol { background: var(--groen); box-shadow: 0 0 0 1px var(--groen); } .voortgang .stap.nu .bol { background: var(--oranje); box-shadow: 0 0 0 1px var(--oranje); }
.voortgang .stap:not(:last-child)::after { content: ''; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--lijn); z-index: -1; }
.voortgang .stap.klaar:not(:last-child)::after { background: var(--groen); }

/* ---------- Foto's / handtekening ---------- */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--lijn); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.foto .weg { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.foto.toevoegen { border: 2px dashed var(--lijn-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--oranje-d); font-weight: 600; font-size: 13px; cursor: pointer; background: var(--wit); }
.foto .bezig { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.8); }
.pad { position: relative; border: 1px solid var(--lijn-d); border-radius: 10px; background: var(--wit); touch-action: none; }
.pad canvas { display: block; width: 100%; height: 180px; border-radius: 10px; }
.pad .wis { position: absolute; right: 10px; bottom: 8px; }
.pad .lijn { position: absolute; left: 20px; right: 20px; bottom: 44px; border-top: 1px dashed var(--lijn-d); pointer-events: none; }
.handtekening-img { max-height: 90px; }

/* ---------- Modals & toasts ---------- */
.modal-achter { position: fixed; inset: 0; background: rgba(17,17,17,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 100; padding: 0; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--wit); border-radius: 16px 16px 0 0; width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; animation: omhoog .2s; }
@keyframes omhoog { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) { .modal-achter { align-items: center; padding: 24px; } .modal { border-radius: 16px; } .modal.breed { max-width: 900px; } }
.modal-kop { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--lijn); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-voet { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--lijn); flex-wrap: wrap; }
@media (max-width: 700px) { .modal-voet .knop { flex: 1; } }
.toasts { position: fixed; top: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; align-items: flex-end; }
.toast { pointer-events: auto; background: var(--zwart); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 500; max-width: 420px; display: flex; gap: 10px; align-items: center; animation: omhoog .2s; }
.toast.fout { background: var(--rood); } .toast.goed { background: var(--groen); }
.popover { position: absolute; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 14px; z-index: 50; width: 300px; }

/* ---------- Inlogpagina ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-links { background: var(--zwart); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background-image: radial-gradient(circle at 80% 20%, rgba(242,106,27,.25), transparent 50%); }
.auth-links h2 { font-size: 30px; color: #fff; margin-top: 30px; line-height: 1.15; } .auth-links p { color: #bdbdbd; max-width: 420px; }
.auth-links .logo { border: 0; padding: 0; } .auth-links .logo .naam { font-size: 22px; } .auth-links .logo .schild { width: 44px; height: 44px; }
.auth-rechts { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-kaart { width: 100%; max-width: 420px; }
.auth-kaart h1 { margin-bottom: 6px; } .auth-kaart .sub { color: var(--tekst-3); margin-bottom: 22px; }
.code-invoer { font-family: var(--kop); font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 600; }
.qr { display: flex; justify-content: center; margin: 10px 0; } .qr img { border: 1px solid var(--lijn); border-radius: 10px; padding: 8px; background: #fff; width: 200px; height: 200px; }
.geheim { font-family: monospace; letter-spacing: .1em; background: var(--bg); padding: 8px 12px; border-radius: 8px; text-align: center; word-break: break-all; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-links { padding: 28px 24px; min-height: 0; } .auth-links h2 { font-size: 22px; margin-top: 18px; } .auth-links p, .auth-links .voet { display: none; } }

/* ---------- Planbord ---------- */
.planbord { display: grid; grid-template-columns: 56px 1fr; border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; background: var(--wit); }
.pb-tijden { border-right: 1px solid var(--lijn); position: relative; background: #fafafa; }
.pb-tijden div { position: absolute; right: 8px; font-size: 11.5px; color: var(--tekst-3); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.pb-kolommen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
.pb-kop { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--lijn); background: var(--wit); position: sticky; top: var(--nav-h); z-index: 6; }
.pb-kop .pb-koppen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); }
.pb-kop .monteur { padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; border-left: 1px solid var(--lijn); }
.pb-kop .monteur .avatar { width: 26px; height: 26px; font-size: 11px; }
.pb-kolom { position: relative; border-left: 1px solid var(--lijn); background-image: linear-gradient(var(--lijn) 1px, transparent 1px); background-size: 100% var(--uur-h, 60px); background-position: 0 -1px; }
.pb-kolom.drop { background-color: var(--oranje-l); }
.pb-blok { position: absolute; left: 4px; right: 4px; top: var(--top); height: var(--h); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 1px solid; border-left-width: 4px; background: var(--blauw-l); border-color: #bcd0f1; color: #1a3b73; }
.pb-blok .t { font-weight: 700; } .pb-blok .s { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pb-blok .n { font-size: 11px; opacity: .75; margin-top: 2px; }
.pb-blok.onderweg { background: var(--oranje-l); border-color: #f5c9a8; color: #7a3a0e; } .pb-blok.bezig { background: var(--groen-l); border-color: #a8dcbd; color: #124f2b; } .pb-blok.afgerond { background: #ececee; border-color: #d3d3d6; color: #555; }
.pb-blok.sleept { opacity: .5; }
.pb-nu { position: absolute; left: 0; right: 0; top: var(--top); border-top: 2px dashed var(--oranje); z-index: 3; pointer-events: none; }
.pb-nu::before { content: ''; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--oranje); }
.legenda { display: flex; gap: 14px; font-size: 12.5px; color: var(--tekst-2); flex-wrap: wrap; } .legenda span { display: inline-flex; align-items: center; gap: 5px; }
.week { display: grid; grid-template-columns: 140px repeat(7, minmax(0, 1fr)); border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; background: var(--wit); }
.week .cel { border-left: 1px solid var(--lijn); border-top: 1px solid var(--lijn); padding: 6px; min-height: 76px; display: flex; flex-direction: column; gap: 4px; }
.week .cel.kop { min-height: 0; padding: 10px 8px; font-weight: 600; font-size: 13px; text-align: center; border-top: 0; background: #fafafa; }
.week .cel.kop.vandaag { color: var(--oranje-d); }
.week .cel.naam { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; border-left: 0; background: #fafafa; }
.week .cel.klik { cursor: pointer; } .week .cel.klik:hover { background: #fffaf6; } .week .cel.drop { background: var(--oranje-l); }
.week .chip-plan { font-size: 12px; padding: 4px 6px; border-radius: 6px; background: var(--blauw-l); color: #1a3b73; border-left: 3px solid #2364c4; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week .chip-plan.bezig { background: var(--groen-l); color: #124f2b; border-left-color: var(--groen); } .week .chip-plan.onderweg { background: var(--oranje-l); color: #7a3a0e; border-left-color: var(--oranje); } .week .chip-plan.afgerond { background: #ececee; color: #555; border-left-color: #999; }
.maand { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; background: var(--wit); }
.maand .cel { border-left: 1px solid var(--lijn); border-top: 1px solid var(--lijn); min-height: 96px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.maand .cel:hover { background: #fffaf6; } .maand .cel.kop { min-height: 0; border-top: 0; cursor: default; font-weight: 600; font-size: 12.5px; text-align: center; background: #fafafa; padding: 8px; }
.maand .cel.buiten { background: #fafafa; color: var(--tekst-3); } .maand .cel .dag { font-weight: 600; font-size: 13px; } .maand .cel.vandaag .dag { color: var(--oranje-d); }
.maand .chip-plan { font-size: 11px; padding: 2px 5px; border-radius: 4px; background: var(--blauw-l); color: #1a3b73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maand .meer { font-size: 11px; color: var(--tekst-3); }
.ongepland { display: flex; flex-direction: column; gap: 8px; }
.ongepland .item { padding: 10px 12px; border: 1px solid var(--lijn); border-radius: 10px; cursor: grab; background: var(--wit); } .ongepland .item:hover { border-color: var(--oranje); }
.ongepland .item .t { font-weight: 600; font-size: 14px; } .ongepland .item .s { font-size: 12.5px; color: var(--tekst-3); }
@media (max-width: 900px) { .pb-kop { top: 0; } .week { grid-template-columns: 90px repeat(7, minmax(0, 1fr)); font-size: 12px; } .week .chip-plan { font-size: 10.5px; } .maand .cel { min-height: 64px; } }

/* Balkgrafiek */
.staven { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.staven .staaf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--tekst-3); }
.staven .staaf .b { width: 100%; background: var(--oranje); border-radius: 4px 4px 0 0; height: var(--h); min-height: 2px; position: relative; }
.staven .staaf .b.kost { background: var(--lijn-d); }
.staven .staaf .b:hover::after { content: attr(data-w); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--zwart); color: #fff; padding: 3px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; margin-bottom: 4px; }
.marge-balk { height: 8px; border-radius: 4px; background: var(--lijn); overflow: hidden; } .marge-balk div { height: 100%; background: var(--groen); width: var(--w); } .marge-balk.laag div { background: var(--oranje); } .marge-balk.neg div { background: var(--rood); }
@media print { .zijbalk, .topbalk, .tabbalk, .mobiel-top, .actiebalk, .knop { display: none !important; } .shell { display: block; } .inhoud { padding: 0; } .kaart { box-shadow: none; break-inside: avoid; } }
