:root {
  --paper:    #e4e8e0;
  --surface:  #fbfcfa;
  --surface-2:#f1f3ee;
  --ink:      #17211b;
  --ink-2:    #59645c;
  --ink-3:    #8b948a;
  --line:     #c6cdc2;
  --line-2:   #dde1d8;
  --groen:    #2f7d4e;
  --oranje:   #b4740f;
  --rood:     #ab3226;
  --blauw:    #2f5d7c;
  --r: 3px;
  --gap: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.45 ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blauw); outline-offset: 2px; }

/* ------------------------------------------------------------------ chrome */

.app { display: flex; flex-direction: column; height: 100%; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.merk { font-weight: 650; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.merk img { height: 24px; width: auto; display: block; }

.datumnav { display: flex; align-items: center; gap: 6px; }
.datumnav button, .knop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 10px;
}
.datumnav button:hover, .knop:hover { background: var(--surface-2); }
.knop-primair {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.knop-primair:hover { background: #24322a; }
.knop-gevaar { color: var(--rood); border-color: var(--rood); background: var(--surface); }
.datumnav input[type=date] {
  border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px; background: var(--surface);
}

.rolmenu { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rolmenu a { color: var(--ink-2); text-decoration: none; padding: 5px 8px; border-radius: var(--r); }
.rolmenu a:hover, .rolmenu a[aria-current] { background: var(--surface-2); color: var(--ink); }

/* KPI strip: geen kaartjes, maar een doorlopende meetlat */
.kpis {
  display: flex; gap: 0; background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.kpi { padding: 8px 18px; border-right: 1px solid var(--line-2); white-space: nowrap; }
.kpi b { font-size: 19px; font-weight: 600; }
.kpi small { display: block; color: var(--ink-2); font-size: 12px; }
.kpi.alarm b { color: var(--rood); }

/* -------------------------------------------------------------------- bord */

.bord {
  flex: 1; display: flex; gap: var(--gap); min-height: 0;
  padding: var(--gap); overflow-x: auto; align-items: flex-start;
}

.kolom {
  flex: 0 0 300px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  max-height: 100%; overflow-y: auto;
  scrollbar-width: none; /* scrollbar verbergen, scrollen met muis of trackpad blijft werken */
}
.kolom::-webkit-scrollbar { display: none; }
.kolom.stapel { position: sticky; left: 0; z-index: 3; box-shadow: 6px 0 12px -10px rgba(0,0,0,.35); }

/* Kop + laadprofiel blijven zichtbaar boven aan de kolom terwijl je door de stops
   scrolt. .bord's align-items:stretch geeft elke kolom (ook een korte) de volledige
   hoogte, zodat er "ruimte" is om dit tijdens het hele scrollbereik vast te houden. */
.kolom-sticky-kop { position: sticky; top: 0; z-index: 2; background: var(--surface); border-radius: var(--r) var(--r) 0 0; }

.kolomkop { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.kolomkop h2 { margin: 0; font-size: 14px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.kolomkop .kenteken { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.kolomkop .chauffeur { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.kolomkop .chauffeur select {
  font: inherit; color: inherit; background: transparent; border: 1px solid transparent;
  border-radius: var(--r); padding: 1px 3px; margin: -1px -3px;
}
.kolomkop .chauffeur select:hover, .kolomkop .chauffeur select:focus { border-color: var(--line); background: var(--surface); }

/* Het ladingprofiel: de lading over alle stops van de dag heen */
.profiel { padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); }
.profiel svg { display: block; width: 100%; height: 42px; }
.profiel .grafiek { position: relative; }
.profiel .nu-lijn { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--ink-3); pointer-events: none; }
.profiel .cijfers {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-2); margin-top: 4px;
}
.profiel .piek { font-size: 15px; font-weight: 650; color: var(--ink); }
.profiel .piek.oranje { color: var(--oranje); }
.profiel .piek.rood, .profiel .piek.over { color: var(--rood); }
.profiel .rest { color: var(--oranje); }

.trip { border-bottom: 1px solid var(--line-2); }
.triplabel {
  display: flex; justify-content: space-between;
  padding: 6px 12px; background: var(--surface-2);
  font-size: 12px; color: var(--ink-2);
}
.stops { list-style: none; margin: 0; padding: 4px; min-height: 46px; }
.stops.leeg::after {
  content: attr(data-leeg); display: block; padding: 12px;
  color: var(--ink-3); font-size: 12px; text-align: center;
}
.stops.doelwit { background: #e8f1ea; outline: 2px dashed var(--groen); outline-offset: -3px; }

.sleep-indicator {
  height: 3px; margin: 3px 6px; border-radius: 2px;
  background: var(--groen); pointer-events: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 78, .18);
}

.wissel {
  display: flex; align-items: center; gap: 5px;
  margin: 0 6px; padding: 3px 4px 3px 9px;
  border-left: 3px solid transparent; border-top: 1px dashed var(--line);
  color: var(--ink-3); font-size: 11px; font-style: italic;
}
.wissel-pijl { color: var(--ink-2); font-style: normal; }

/* ------------------------------------------------------------------ kaarten */

.kaart {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px;
  padding: 7px 9px; margin: 3px 0;
  background: var(--surface); border: 1px solid var(--line-2);
  border-left: 3px solid var(--line); border-radius: var(--r);
  touch-action: none; user-select: none;
}
.kaart:hover { border-color: var(--line); background: var(--surface-2); }
.kaart.groen  { border-left-color: var(--groen); }
.kaart.oranje { border-left-color: var(--oranje); }
.kaart.rood, .kaart.over { border-left-color: var(--rood); }
.kaart.klaar { opacity: .55; }
.kaart.sleept { opacity: .3; }

.kaart .nr { color: var(--ink-3); font-size: 12px; }
.kaart .titel { font-weight: 550; grid-column: 2; }
.kaart .route { grid-column: 1 / -1; color: var(--ink-2); font-size: 12px; }
.kaart .last { text-align: right; font-size: 12px; white-space: nowrap; }
.kaart .last b { font-weight: 650; }
.kaart .delta-op   { color: var(--groen); }
.kaart .delta-af   { color: var(--blauw); }

/* Meerdere laad/losstops op dezelfde locatie na elkaar, samengevoegd onder één kop. */
.kaartgroep {
  margin: 3px 0; border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; background: var(--surface);
}
.kaartgroep-kop {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 9px; background: var(--surface-2); border-bottom: 1px solid var(--line-2);
}
.kaartgroep-kop .titel { font-weight: 550; }
.kaartgroep-kop .last { text-align: right; font-size: 12px; white-space: nowrap; }
.kaartgroep-kop .last b { font-weight: 650; }

.kaartgroep .kaart-compact {
  grid-template-columns: auto auto 1fr auto; align-items: center;
  margin: 0; border: none; border-radius: 0; border-top: 1px solid var(--line-2);
  border-left: 3px solid var(--line); padding: 5px 9px 5px 6px;
}
.kaartgroep-kop + .kaart-compact { border-top: none; }
/* Expliciet elke kolom toewijzen: de brede .kaart-regels verderop (o.a. .titel op
   kolom 2) mogen deze compacte 4-koloms indeling niet overschrijven. */
.kaartgroep .kaart-compact .nr  { grid-column: 1; }
.kaartgroep .kaart-compact .ticketchip { grid-column: 2; }
.kaartgroep .kaart-compact .oms { grid-column: 3; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.kaartgroep .kaart-compact .last { grid-column: 4; }
.kaartgroep .kaart-compact.groen  { border-left-color: var(--groen); }
.kaartgroep .kaart-compact.oranje { border-left-color: var(--oranje); }
.kaartgroep .kaart-compact.rood, .kaartgroep .kaart-compact.over { border-left-color: var(--rood); }

.vlag {
  display: inline-block; padding: 0 5px; border-radius: 2px;
  font-size: 11px; font-weight: 600; border: 1px solid;
}
.vlag.spoed  { color: var(--rood); border-color: var(--rood); background: #f7e9e7; }
.vlag.hoog   { color: var(--oranje); border-color: var(--oranje); background: #f8f0e2; }
.vlag.laag   { color: var(--ink-3); border-color: var(--line); }
.vlag.doorgeschoven { color: var(--blauw); border-color: var(--blauw); background: #e7eef4; }

.ticketchip {
  display: inline-block; padding: 0 5px; border-radius: 3px;
  font-weight: 650; color: #1a1a1a;
}

/* De zwevende kaart tijdens het slepen */
.spook {
  position: fixed; z-index: 999; pointer-events: none; width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: rotate(-1deg);
}

/* ---------------------------------------------------------------- meldingen */

.meldingen { position: fixed; right: 16px; bottom: 16px; z-index: 500; width: min(420px, calc(100vw - 32px)); }
.melding {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--ink); border-radius: var(--r);
  padding: 10px 12px; margin-top: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.melding.fout { border-left-color: var(--rood); }
.melding.goed { border-left-color: var(--groen); }
.melding h3 { margin: 0 0 3px; font-size: 13px; font-weight: 650; }
.melding p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* -------------------------------------------------------------------- forms */

.paneel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; max-width: 620px; margin: var(--gap);
}
.paneel h1 { font-size: 18px; margin: 0 0 14px; font-weight: 650; }
.login-logo { display: block; height: 48px; width: auto; margin: 0 auto 18px; }
.veld { margin-bottom: 12px; }
.veld label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.veld input, .veld select, .veld textarea {
  width: 100%; padding: 7px 9px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
}
.rij { display: flex; gap: 10px; }
.rij > * { flex: 1; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.foutmelding { color: var(--rood); font-size: 13px; margin: 8px 0; }

table.lijst { width: 100%; border-collapse: collapse; background: var(--surface); }
table.lijst th { text-align: left; font-size: 12px; color: var(--ink-2); font-weight: 550; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.lijst td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
table.lijst tr:hover td { background: var(--surface-2); }
table.lijst input {
  width: 100%; padding: 5px 7px; background: transparent; color: inherit; font: inherit;
  border: 1px solid transparent; border-radius: var(--r);
}
table.lijst input:hover { border-color: var(--line); }
table.lijst input:focus { border-color: var(--line); background: var(--surface); outline: none; }

.filters { display: flex; gap: 8px; padding: 10px var(--gap); flex-wrap: wrap; background: var(--surface); border-bottom: 1px solid var(--line); }
.filters input, .filters select { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* -------------------------------------------------------------------- login */

.loginscherm { display: grid; place-items: center; height: 100%; }
.loginscherm .paneel { width: min(360px, calc(100vw - 32px)); }

/* ------------------------------------------------------------------- dialog */

dialog {
  border: 1px solid var(--line); border-radius: var(--r); padding: 0;
  background: var(--surface); color: var(--ink);
  /* Precies zo breed als de knoppenrij nodig heeft, met een minimum voor kleine dialogen. */
  width: fit-content; min-width: min(460px, calc(100vw - 32px)); max-width: min(780px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(23,33,27,.4); }
dialog .kop { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-weight: 650; }
dialog .body { padding: 18px; max-height: 60vh; overflow: auto; }
dialog .voet { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
dialog .voet .knop { white-space: nowrap; }

.tijdlijn { list-style: none; margin: 0; padding: 0; }
.tijdlijn li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line-2); position: relative; }
.tijdlijn li::before {
  content: ''; position: absolute; left: -5px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
}
.tijdlijn time { color: var(--ink-3); font-size: 12px; margin-left: 6px; }

@media (max-width: 720px) {
  .kolom { flex-basis: 84vw; }
  .kpi { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* -------------------------------------------------------- technische dienst */

.td-urg, .td-status {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650;
  white-space: nowrap; border: 1px solid transparent;
}
.td-urg-laag    { background: var(--surface-2); color: var(--ink-2); }
.td-urg-normaal { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.td-urg-hoog    { background: #f8f0e2; color: var(--oranje); border-color: var(--oranje); }
.td-urg-spoed   { background: var(--rood); color: var(--surface); }
.td-status { font-weight: 550; background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.td-status-nieuw               { border-color: var(--blauw); color: var(--blauw); }
.td-status-in_behandeling      { border-color: var(--oranje); color: var(--oranje); }
.td-status-wacht_op_onderdelen { border-color: var(--oranje); color: var(--oranje); border-style: dashed; }
.td-status-klaar               { border-color: var(--groen); color: var(--groen); }
.td-status-geannuleerd         { color: var(--ink-3); text-decoration: line-through; }

.td-regel {
  display: block; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; margin-bottom: 8px;
}
.td-regel:hover { background: var(--surface-2); }
.td-regel-hoog  { border-left-color: var(--oranje); }
.td-regel-spoed { border-left-color: var(--rood); }
.td-regel.td-dicht { opacity: .6; }
.td-regel-kop { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.td-regel-titel { font-weight: 650; margin-top: 6px; font-size: 15px; }
.td-regel-oms { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-regel-voet { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.td-tijd { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }

.td-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.td-filters button, .td-keuze button, .td-status-knop {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.td-filters button[aria-pressed=true], .td-keuze button[aria-pressed=true] {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.td-filters select { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: var(--surface); }
.td-keuze { display: flex; gap: 6px; flex-wrap: wrap; }
.td-keuze button { flex: 1 1 0; padding: 10px 8px; font-weight: 600; }
.td-keuze .td-keuze-hoog[aria-pressed=true]  { background: var(--oranje); border-color: var(--oranje); }
.td-keuze .td-keuze-spoed[aria-pressed=true] { background: var(--rood); border-color: var(--rood); }

.td-knoppen { display: flex; gap: 8px; flex-wrap: wrap; }
.td-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.td-foto { position: relative; display: block; width: 76px; height: 76px; }
.td-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; }
.td-fotos-groot .td-foto { width: calc(50% - 4px); height: auto; aspect-ratio: 4 / 3; }
.td-foto-weg {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; line-height: 1; padding: 0;
}

.td-detail-kop { margin: 14px 0; }
.td-detail-kop h1 { font-size: 22px; margin: 8px 0 6px; font-weight: 650; letter-spacing: -0.01em; }
.td-oms { white-space: pre-wrap; font-size: 15px; margin: 0 0 6px; }
.td-statusknoppen { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.td-status-knop { padding: 10px 12px; font-weight: 600; text-decoration: none; }
.td-status-knop[aria-pressed=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); border-style: solid; }
.td-tussenkop { font-size: 13px; color: var(--ink-2); font-weight: 550; margin: 20px 0 6px; }
.td-tijdlijn { list-style: none; padding: 0; margin: 0 0 12px; }
.td-tijdlijn li { padding: 8px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.td-tijdlijn .td-tl-status { color: var(--ink-2); }
.td-tl-tekst { flex-basis: 100%; white-space: pre-wrap; color: var(--ink); }
.td-aanvullen textarea { width: 100%; font-size: 16px; }
.td-aanvullen > .td-knoppen { margin-top: 10px; }

.td-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 14, 11, .92);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.td-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.td-lightbox button {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 22px; line-height: 1; padding: 0;
}
.td-lightbox button:hover { background: rgba(255,255,255,.26); }
.td-lb-sluit { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.td-lb-vorige { left: 12px; top: 50%; transform: translateY(-50%); font-size: 30px !important; }
.td-lb-volgende { right: 12px; top: 50%; transform: translateY(-50%); font-size: 30px !important; }
.td-lb-teller {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: #fff; font-size: 14px;
}
.knop-klaar { background: var(--groen); color: var(--surface); border-color: var(--groen); font-weight: 650; padding: 8px 18px; }
.knop-klaar:hover { background: #276a42; }
.knop-klaar:disabled { opacity: .5; }

/* ------------------------------------------------------- toegankelijkheid */

.weergave-houder { position: relative; }
.weergave-knop { padding: 4px 10px; font-size: 13px; font-weight: 700; }
.weergave-paneel {
  position: fixed; left: 12px; right: 12px; margin-left: auto; top: 56px; z-index: 50; max-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.weergave-rij { display: flex; align-items: center; gap: 8px; }
.weergave-rij > span:first-child { flex: 1; }
.weergave-procent { min-width: 44px; text-align: center; }
.weergave-schakel { cursor: pointer; }
.weergave-schakel input { width: 20px; height: 20px; }
.weergave-rij .knop:disabled { opacity: .4; }

/* Ruime tekst: meer ruimte tussen letters, woorden en regels (helpt veel mensen met dyslexie). */
/* Bij grote tekst de naam in de bovenbalk weglaten, anders past de balk niet meer op een telefoon. */
html.grote-tekst .balk .wie { visibility: hidden; }
html.ruime-tekst body { letter-spacing: .05em; word-spacing: .12em; line-height: 1.75; }
html.ruime-tekst input, html.ruime-tekst textarea, html.ruime-tekst select { letter-spacing: .04em; word-spacing: .1em; line-height: 1.6; }

.spraak-veld { display: flex; gap: 6px; align-items: stretch; }
.spraak-veld > input, .spraak-veld > textarea { flex: 1; min-width: 0; }
.spraak-groot { flex-direction: column; }
.spraak-groot .spraak-knop { align-self: flex-start; }
.spraak-knop { padding: 6px 12px; white-space: nowrap; }
.spraak-knop[aria-pressed=true] { background: var(--rood); color: var(--surface); border-color: var(--rood); }
.spraak-luistert { border-color: var(--rood) !important; box-shadow: 0 0 0 2px rgba(171,50,38,.18); }

/* Venster 'melding afronden' (bestede tijd) */
.tv-achtergrond {
  position: fixed; inset: 0; z-index: 900; background: rgba(10, 14, 11, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.tv-venster {
  background: var(--surface); width: min(520px, 100%); max-height: 92vh; overflow: auto;
  border-radius: 10px 10px 0 0; padding: 18px 16px max(18px, env(safe-area-inset-bottom));
}
@media (min-width: 600px) { .tv-achtergrond { align-items: center; } .tv-venster { border-radius: 10px; } }
.tv-venster h2 { font-size: 19px; margin: 0 0 14px; }
.tv-snel { gap: 8px; }
.tv-snel button { flex: 1 1 calc(25% - 8px); padding: 12px 4px; }
.tv-zelf { display: flex; gap: 12px; margin: -2px 0 14px; }
.tv-zelf label { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tv-zelf input { width: 76px; padding: 8px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tv-venster textarea { width: 100%; font-size: 16px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.tv-acties { justify-content: flex-end; margin-top: 4px; }
.tv-acties .knop { padding: 10px 18px; }
.td-duur { font-size: 12px; font-weight: 600; color: var(--groen); background: #e6f1ea; border-radius: 999px; padding: 1px 8px; }

/* Klanten van een crossdock-ticket (ticketvenster): vinkje | aantal | klant | knop in vaste kolommen. */
.klantenlijst { display: flex; flex-direction: column; gap: 2px; }
.klantrij { display: grid; grid-template-columns: 22px 3.2em minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 0; }
.klantrij.zonder-acties { grid-template-columns: 0 3.2em minmax(0, 1fr) 0; }
.klantrij .aantal { text-align: right; font-weight: 600; }
.klantrij .naam { overflow-wrap: anywhere; }
table.lijst .klantrij input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; cursor: pointer; }
.knop-klein { padding: 3px 8px; font-size: 12px; }
.knop-onder { align-self: flex-start; margin-top: 6px; }
.voorlees-knop {
  display: flex; width: 100%; margin: 4px 0 12px; padding: 8px 14px; font-size: 16px; font-weight: 650;
  background: var(--blauw); color: var(--surface); border-color: var(--blauw);
}
.voorlees-knop:hover { background: #264d67; }
/* Tijdens het voorlezen (knop toont '■ Stop') donkerder, zodat duidelijk is dat er nu iets gebeurt. */
.voorlees-knop[aria-pressed=true] { background: #1d3b50; border-color: #1d3b50; }

/* Knoppen met een lijn-icoon (voorlezen, inspreken) */
.voorlees-knop, .spraak-knop { align-items: center; justify-content: center; gap: 8px; }
.spraak-knop { display: inline-flex; }
.voorlees-knop .icoon, .spraak-knop .icoon { width: 20px; height: 20px; flex: 0 0 auto; }
.td-icoon { display: inline-flex; vertical-align: -0.15em; margin-right: 3px; }
.td-icoon svg { width: 1.05em; height: 1.05em; }
.td-regel-voet { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.td-regel-voet > span { display: inline-flex; align-items: center; }
.td-regel-voet > span + span::before { content: '·'; margin-right: 6px; }
.knop-icoon { display: inline-flex; align-items: center; gap: 6px; }
.knop-icoon .td-icoon { margin: 0; }
.knop-icoon .td-icoon svg { width: 18px; height: 18px; }
.td-duur { display: inline-flex; align-items: center; }
