/* ELPO werkbon-platform — gedeeld stijlsysteem */

:root {
  --cabine: none;
  --blauw:        #1654a2;
  --blauw-donker: #123f7a;
  --blauw-licht:  #e8f0f9;
  /* Het oranje uit het logo. Fel genoeg om op te vallen, maar te licht voor
     witte tekst erop (3,1:1). Daarvoor is --oranje-diep (5,0:1). */
  --oranje:       #F26532;
  --oranje-diep:  #c2470f;
  --oranje-licht: #fff0e9;
  --groen:        #1f9d63;
  --groen-licht:  #e6f6ee;
  --rood:         #d63b30;
  --rood-licht:   #fdecea;
  --geel:         #b8860b;
  --geel-licht:   #fdf6e3;

  --achtergrond:  #f2f5f9;
  --wit:          #ffffff;
  --tekst:        #1a2b3c;
  --zacht:        #6b8299;
  --rand:         #dce5ee;

  --radius:       12px;
  --radius-klein: 8px;
  --schaduw:      0 1px 3px rgba(20, 50, 90, .08);
  --schaduw-op:   0 4px 16px rgba(20, 50, 90, .12);
  --nav-hoogte:   64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--achtergrond);
  color: var(--tekst);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--blauw); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Kopbalk ───────────────────────────────────────────────────────────── */

.kopbalk {
  background: var(--blauw);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--schaduw);
  border-bottom: 3px solid var(--oranje);
}
.kopbalk-binnen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kopbalk-logo { display: flex; align-items: center; gap: 10px; }
.kopbalk-logo img { height: 30px; width: auto; border-radius: 4px; display: block; }
.kopbalk-logo span { font-weight: 800; font-size: 1rem; letter-spacing: .01em; }
.kopbalk-logo, .kopbalk-logo:hover { color: #fff; text-decoration: none; }

.kopbalk-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kopbalk-wie {
  font-size: .8rem;
  background: rgba(255,255,255,.16);
  padding: 5px 11px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.kopbalk-wie b { font-weight: 800; }
.kopbalk-uit {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-klein);
}
.kopbalk-uit:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }

/* ── Hoofdnavigatie (beheerder, bovenaan) ──────────────────────────────── */

.hoofdnav {
  background: var(--blauw-donker);
  position: sticky;
  top: 56px;
  z-index: 39;
  overflow-x: auto;
  scrollbar-width: none;
}
.hoofdnav::-webkit-scrollbar { display: none; }
.hoofdnav-binnen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  gap: 2px;
  min-width: max-content;
}
.hoofdnav a {
  color: rgba(255,255,255,.78);
  padding: 12px 14px;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hoofdnav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.hoofdnav a.actief { color: #fff; border-bottom-color: var(--oranje); }
.hoofdnav .telbadge {
  background: var(--oranje);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

/* ── Pagina ────────────────────────────────────────────────────────────── */

.pagina { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; }
.pagina.smal { max-width: 820px; }

.paginakop {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.paginakop h1 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em;
  position: relative; padding-bottom: 7px;
}
.paginakop h1::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--oranje); border-radius: 2px;
}
.paginakop p { color: var(--zacht); font-size: .87rem; }
.paginakop .rechts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Kaarten ───────────────────────────────────────────────────────────── */

.kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
}
.kaart + .kaart { margin-top: 14px; }
.kaart-kop {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rand);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfcfe;
}
.kaart-kop h2 { font-size: .95rem; font-weight: 800; }
.kaart-kop .rechts { margin-left: auto; }
.kaart-body { padding: 16px; }
.kaart-body.strak { padding: 0; }

/* ── Knoppen ───────────────────────────────────────────────────────────── */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-klein);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--blauw);
  color: #fff;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.knop:hover { background: var(--blauw-donker); text-decoration: none; color: #fff; }
.knop:disabled { opacity: .5; cursor: not-allowed; }
.knop.wit { background: var(--wit); color: var(--tekst); border-color: var(--rand); }
.knop.wit:hover { background: #f6f9fc; color: var(--tekst); }
.knop.oranje { background: var(--oranje-diep); }
.knop.oranje:hover { background: #a53c0b; }
.knop.groen { background: var(--groen); }
.knop.groen:hover { background: #178150; }
.knop.rood { background: var(--wit); color: var(--rood); border-color: #f0c8c4; }
.knop.rood:hover { background: var(--rood-licht); color: var(--rood); }
.knop.klein { padding: 6px 11px; font-size: .8rem; }
.knop.breed { width: 100%; }

/* ── Meldingen ─────────────────────────────────────────────────────────── */

.melding {
  padding: 12px 15px;
  border-radius: var(--radius-klein);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.melding.gelukt        { background: var(--groen-licht); border-color: #b7e3cc; color: #14663f; }
.melding.fout          { background: var(--rood-licht);  border-color: #f3c9c5; color: #96271e; }
.melding.waarschuwing  { background: var(--geel-licht);  border-color: #ecdca7; color: #7a5b06; }
.melding.info          { background: var(--blauw-licht); border-color: #c3d9f0; color: var(--blauw-donker); }

/* ── Formulieren ───────────────────────────────────────────────────────── */

.veld { margin-bottom: 14px; }
.veld label, .veldlabel {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--zacht);
  margin-bottom: 5px;
}
.veld input[type=text], .veld input[type=password], .veld input[type=date],
.veld input[type=time], .veld input[type=number], .veld input[type=email],
.veld select, .veld textarea, .invoer {
  width: 100%;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-klein);
  padding: 10px 12px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--tekst);
  background: var(--wit);
  transition: border-color .15s, box-shadow .15s;
}
.veld input:focus, .veld select:focus, .veld textarea:focus, .invoer:focus {
  outline: none;
  border-color: var(--blauw);
  box-shadow: 0 0 0 3px rgba(22,84,162,.12);
}
.veld textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.veld input:disabled, .veld textarea:disabled, .veld select:disabled {
  background: #f5f7fa; color: var(--zacht); cursor: not-allowed;
}
.veld .hint { font-size: .76rem; color: var(--zacht); margin-top: 4px; }

.velden { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.velden.drie { grid-template-columns: repeat(3, 1fr); }
.velden .vol { grid-column: 1 / -1; }
@media (max-width: 720px) { .velden, .velden.drie { grid-template-columns: 1fr; } }

.samengesteld { display: flex; gap: 8px; }
.samengesteld select { flex: 0 0 110px; }

.keuzeregel {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--rand); border-radius: var(--radius-klein);
  padding: 11px 13px; cursor: pointer; background: var(--wit);
  text-transform: none; letter-spacing: 0; color: var(--tekst);
  font-size: .88rem; font-weight: 400;
}
.keuzeregel:hover { border-color: var(--blauw); background: #fbfcfe; }
.keuzeregel input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blauw); }
.keuzeregel b { display: block; font-weight: 700; font-size: .9rem; }
.keuzeregel em { display: block; font-style: normal; color: var(--zacht); font-size: .8rem; margin-top: 2px; line-height: 1.45; }
.keuzeregel:has(input:checked) { border-color: var(--blauw); background: var(--blauw-licht); }

/* ── Facturatie ────────────────────────────────────────────────────────── */

.factuurkeuze { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
@media (max-width: 560px) { .factuurkeuze { grid-template-columns: 1fr; } }

.adviesvak {
  background: var(--blauw-licht); border: 1px solid #c3d9f0;
  border-radius: var(--radius-klein); padding: 12px 14px; margin-bottom: 14px;
  font-size: .85rem; line-height: 1.6;
}
.adviesvak h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--blauw-donker); margin-bottom: 6px; font-weight: 800; }
.adviesvak ul { margin: 0 0 0 16px; color: var(--blauw-donker); }

.factuurtabel { width: 100%; border-collapse: collapse; font-size: .87rem; }
.factuurtabel th {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--zacht); text-align: left; padding: 5px 4px;
}
.factuurtabel td { padding: 3px 3px; }
.factuurtabel input, .factuurtabel select {
  width: 100%; border: 1.5px solid var(--rand); border-radius: 6px;
  padding: 8px 9px; font-size: .87rem; font-family: inherit; color: var(--tekst);
  background: var(--wit);
}
.factuurtabel input:focus, .factuurtabel select:focus {
  outline: none; border-color: var(--blauw); box-shadow: 0 0 0 2px rgba(22,84,162,.1);
}
.factuurtabel td.bedrag { text-align: right; font-weight: 700; white-space: nowrap; padding-right: 6px; }
.factuurtabel .weg {
  background: none; border: none; color: var(--zacht);
  font-size: 1.1rem; cursor: pointer; padding: 4px 7px; border-radius: 6px;
}
.factuurtabel .weg:hover { background: var(--rood-licht); color: var(--rood); }

.factuurtotaal {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--rand); margin-top: 10px; padding-top: 11px;
}
.factuurtotaal span { font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--zacht); }
.factuurtotaal b { font-size: 1.3rem; font-weight: 800; color: var(--blauw-donker); }

/* Artikelkiezer: eigen venster met zoekveld en scrollbare lijst */
.kiezer-knop {
  background: var(--wit); border: 1.5px solid var(--rand); border-radius: 6px;
  padding: 7px 9px; cursor: pointer; font-size: .9rem; line-height: 1;
  color: var(--blauw);
}
.kiezer-knop:hover { border-color: var(--blauw); background: var(--blauw-licht); }

.kiezer {
  background: var(--wit); border-radius: var(--radius);
  width: 100%; max-width: 520px; max-height: min(74vh, 640px);
  display: flex; flex-direction: column; box-shadow: var(--schaduw-op);
  overflow: hidden;
}
.kiezer-kop { padding: 15px 18px 12px; border-bottom: 1px solid var(--rand); }
.kiezer-kop h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.kiezer-kop input {
  width: 100%; border: 1.5px solid var(--rand); border-radius: var(--radius-klein);
  padding: 11px 13px; font-size: .95rem; font-family: inherit; color: var(--tekst);
}
.kiezer-kop input:focus {
  outline: none; border-color: var(--blauw); box-shadow: 0 0 0 3px rgba(22,84,162,.12);
}
.kiezer-lijst { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.kiezer-lijst button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid #eef3f8; padding: 11px 18px; cursor: pointer;
  font-family: inherit; font-size: .88rem; color: var(--tekst);
}
.kiezer-lijst button:last-child { border-bottom: none; }
.kiezer-lijst button:hover, .kiezer-lijst button.actief { background: var(--blauw-licht); }
.kiezer-lijst .nr { font-weight: 800; color: var(--blauw); font-size: .78rem; }
.kiezer-lijst .pr { float: right; color: var(--tekst); font-size: .82rem; font-weight: 700; }
.kiezer-lijst .oms { display: block; margin-top: 2px; }
.kiezer-leeg { padding: 32px 20px; text-align: center; color: var(--zacht); font-size: .87rem; }
.kiezer-voet {
  padding: 11px 18px; border-top: 1px solid var(--rand);
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--zacht); background: #fbfcfe;
}
.kiezer-voet .knop { margin-left: auto; }

/* ── Statuslijst met vinkjes ───────────────────────────────────────────── */

.checklijst { list-style: none; display: grid; gap: 7px; }
.checklijst li { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; }
.checklijst .teken {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; margin-top: 1px;
}
.checklijst .goed { background: var(--groen-licht); color: #14663f; }
.checklijst .let  { background: var(--geel-licht);  color: #7a5b06; }
.checklijst .fout { background: var(--rood-licht);  color: #96271e; }
.checklijst .wacht{ background: #eef2f7;            color: var(--zacht); }

/* ── Controlelijst ─────────────────────────────────────────────────────── */

/* Eén regel per onderdeel, zodat een monteur snel kan afvinken */
.cl-regel {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 12px; border-bottom: 1px solid #f1f5f9;
}
.cl-regel:last-child { border-bottom: none; }
.cl-regel:nth-child(even) { background: #fcfdfe; }

.cl-nr {
  flex: 0 0 auto; min-width: 21px; text-align: center;
  background: var(--oranje-licht); color: var(--oranje-diep);
  border-radius: 4px; font-size: .68rem; font-weight: 800; padding: 2px 4px;
}
.cl-naam { flex: 1 1 110px; min-width: 0; font-size: .85rem; font-weight: 600; }

/* min-width:0 is nodig, anders houdt het tekstveld zijn eigen minimumbreedte
   vast en lopen de knoppen buiten beeld op een telefoon. */
.cl-onder { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; }
@media (max-width: 760px) { .cl-onder { flex: 1 1 100%; } }

.cl-velden { display: flex; gap: 5px; flex: 1 1 auto; min-width: 0; }
.cl-velden input {
  border: 1.5px solid var(--rand); border-radius: 6px;
  padding: 6px 8px; font-size: .82rem; font-family: inherit; color: var(--tekst);
  background: var(--wit); min-width: 0;
}
.cl-velden .cl-type   { flex: 1 1 auto; width: 116px; }
.cl-velden .cl-aantal { flex: 0 0 46px; width: 46px; text-align: center; }
.cl-velden input:focus {
  outline: none; border-color: var(--blauw); box-shadow: 0 0 0 2px rgba(22,84,162,.1);
}
.cl-velden input:disabled { background: #f5f7fa; color: var(--zacht); }

.cl-vinkjes, .cl-staat { display: flex; gap: 3px; flex: 0 0 auto; }

.cl-vink, .cl-s {
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--rand); background: var(--wit);
  font-family: inherit; font-size: .78rem; font-weight: 800; color: var(--zacht);
  transition: all .12s; padding: 0;
}
.cl-vink:hover:not(:disabled), .cl-s:hover:not(:disabled) { border-color: var(--blauw); }
.cl-vink.aan { background: var(--blauw); border-color: var(--blauw); color: #fff; }
.cl-s-g.aan { background: var(--groen); border-color: var(--groen); color: #fff; }
.cl-s-m.aan { background: var(--geel);  border-color: var(--geel);  color: #fff; }
.cl-s-s.aan { background: var(--rood);  border-color: var(--rood);  color: #fff; }
.cl-vink:disabled, .cl-s:disabled { opacity: .55; cursor: default; }

.cl-staat { margin-left: 4px; padding-left: 7px; border-left: 1px solid var(--rand); }

@media (max-width: 430px) {
  .cl-vink, .cl-s { width: 28px; height: 28px; font-size: .74rem; }
  .cl-velden .cl-type   { width: 76px; }
  .cl-velden .cl-aantal { flex: 0 0 40px; width: 40px; }
  .cl-staat { margin-left: 2px; padding-left: 5px; }
  .cl-regel { padding: 6px 9px; gap: 6px; }
}

/* Uitleg van de letters, blijft in beeld tijdens het scrollen */
.cl-legenda {
  position: sticky; top: 56px; z-index: 20;
  background: var(--wit); border: 1px solid var(--rand);
  border-radius: var(--radius-klein); padding: 8px 12px; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: .76rem; color: var(--zacht); box-shadow: var(--schaduw);
}
.cl-legenda b {
  display: inline-block; min-width: 19px; text-align: center;
  background: var(--blauw); color: #fff; border-radius: 4px;
  font-size: .7rem; padding: 1px 4px; margin-right: 3px;
}
.cl-legenda .s-g { background: var(--groen); }
.cl-legenda .s-m { background: var(--geel); }
.cl-legenda .s-s { background: var(--rood); }

.cl-groepkop {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; background: var(--blauw-donker); color: #fff;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}

/* Controlelijsten op de werkbon */
.cl-kaartje {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--rand); border-radius: var(--radius-klein);
  padding: 12px 14px; margin-bottom: 8px; background: var(--wit);
  color: var(--tekst);
}
.cl-kaartje:hover { border-color: var(--blauw); background: #fbfcfe; text-decoration: none; }
.cl-kaartje.klaar { border-left: 3px solid var(--groen); }
.cl-kaartje .tekst { flex: 1; min-width: 0; }
.cl-kaartje h4 { font-size: .92rem; font-weight: 700; }
.cl-kaartje p { font-size: .79rem; color: var(--zacht); margin-top: 2px; }

/* ── Tabellen ──────────────────────────────────────────────────────────── */

.tabelwrap { overflow-x: auto; }
table.lijst { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.lijst th {
  text-align: left;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--zacht);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rand);
  background: #fbfcfe;
  white-space: nowrap;
}
table.lijst td { padding: 12px 14px; border-bottom: 1px solid #eef3f8; vertical-align: middle; }
table.lijst tr:last-child td { border-bottom: none; }
table.lijst tbody tr:hover { background: #fafcfe; }
table.lijst td.acties { text-align: right; white-space: nowrap; }
table.lijst .hoofd { font-weight: 700; }
table.lijst .bij { color: var(--zacht); font-size: .8rem; }

/* ── Labels ────────────────────────────────────────────────────────────── */

.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.label.blauw  { background: var(--blauw-licht);  color: var(--blauw-donker); }
.label.groen  { background: var(--groen-licht);  color: #14663f; }
.label.oranje { background: var(--oranje-licht); color: var(--oranje-diep); }
.label.geel   { background: var(--geel-licht);   color: #7a5b06; }
.label.grijs  { background: #eef2f7;             color: var(--zacht); }
.label.rood   { background: var(--rood-licht);   color: #96271e; }

/* ── Leegstaat ─────────────────────────────────────────────────────────── */

.leeg { text-align: center; padding: 44px 20px; color: var(--zacht); }
.leeg .teken { font-size: 2.4rem; opacity: .55; margin-bottom: 10px; }
.leeg h3 { font-size: 1rem; color: var(--tekst); margin-bottom: 5px; font-weight: 700; }
.leeg p { font-size: .87rem; max-width: 380px; margin: 0 auto; }

/* ── Dagkiezer ─────────────────────────────────────────────────────────── */

.dagkiezer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 8px 10px;
  box-shadow: var(--schaduw);
  margin-bottom: 16px;
}
.dagkiezer .pijl {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  color: var(--blauw);
  font-size: 1rem;
  background: var(--wit);
}
.dagkiezer .pijl:hover { background: var(--blauw-licht); text-decoration: none; }
.dagkiezer .dag { flex: 1; text-align: center; }
.dagkiezer .dag b { display: block; font-size: .95rem; font-weight: 800; }
.dagkiezer .dag span { font-size: .76rem; color: var(--zacht); }

/* ── Bonkaarten (monteur) ──────────────────────────────────────────────── */

.bonkaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--blauw);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin-bottom: 14px;
  overflow: hidden;
}
.bonkaart.gereed { border-left-color: var(--groen); }
.bonkaart-kop { padding: 14px 16px 12px; }
.bonkaart-kop .boven {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.bonkaart-kop h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.bonkaart-adres { color: var(--zacht); font-size: .87rem; margin-top: 3px; }
.bonkaart-adres a { color: var(--blauw); font-weight: 600; }
.bonkaart-opdracht {
  margin: 10px 16px 0;
  padding: 10px 12px;
  background: var(--blauw-licht);
  border-radius: var(--radius-klein);
  font-size: .86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.bonkaart-voet {
  padding: 12px 16px;
  border-top: 1px solid #eef3f8;
  margin-top: 13px;
  display: flex;
  gap: 8px;
}

/* ── Stempelknoppen (4 knoppen) ────────────────────────────────────────── */

.stempels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 13px 16px 0;
}
.stempel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 8px;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-klein);
  background: var(--wit);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--tekst);
  cursor: pointer;
  min-height: 62px;
  transition: all .15s;
}
.stempel:hover:not(:disabled) { border-color: var(--blauw); background: var(--blauw-licht); }
.stempel .tijd { font-size: 1.15rem; font-weight: 800; color: var(--blauw); line-height: 1.1; }
.stempel .leeg-tijd { font-size: 1.05rem; color: var(--rand); font-weight: 800; }
.stempel.gezet { background: var(--groen-licht); border-color: #b7e3cc; }
.stempel.gezet .tijd { color: var(--groen); }
.stempel:disabled { opacity: .6; cursor: default; }

/* ── Onderbalk (monteur, mobiel) ───────────────────────────────────────── */

.onderbalk {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--wit);
  border-top: 1px solid var(--rand);
  display: flex;
  z-index: 45;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(20,50,90,.07);
}
.onderbalk a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 4px 7px;
  color: var(--zacht);
  font-size: .68rem;
  font-weight: 700;
  position: relative;
}
.onderbalk a:hover { text-decoration: none; }
.onderbalk a .teken { font-size: 1.2rem; line-height: 1; }
.onderbalk a.actief { color: var(--oranje-diep); }
.onderbalk a.actief::before {
  content: ''; position: absolute; top: 0; left: 22%; right: 22%;
  height: 3px; background: var(--oranje); border-radius: 0 0 3px 3px;
}
.onderbalk .telbadge {
  position: absolute; top: 5px; right: 50%; margin-right: -22px;
  background: var(--oranje); color: #fff;
  font-size: .62rem; font-weight: 800;
  padding: 1px 5px; border-radius: 99px;
}
body.heeft-onderbalk { padding-bottom: calc(var(--nav-hoogte) + 8px); }

/* ── Welkomstbanner met cabinefoto ─────────────────────────────────────── */

/* De foto ligt over een verloop heen. Ontbreekt het bestand, dan blijft het
   verloop staan en ziet niemand iets geks. */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--blauw-donker);
  background-image:
    linear-gradient(105deg, rgba(12,38,72,.92) 0%, rgba(18,63,122,.78) 45%, rgba(22,84,162,.42) 100%),
    var(--cabine, none);
  background-size: cover;
  background-position: center 62%;
  box-shadow: var(--schaduw);
}
.hero-binnen { padding: 20px 20px 18px; color: #fff; position: relative; }
.hero h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.hero .dag { font-size: .84rem; opacity: .78; margin-top: 3px; }
/* Alleen de eerste letter een hoofdletter; maandnamen blijven klein */
.hero .dag::first-letter { text-transform: uppercase; }
.hero .samenvatting {
  margin-top: 13px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 99px;
  font-size: .87rem; font-weight: 700;
  backdrop-filter: blur(3px);
}
.hero .samenvatting .stip {
  width: 9px; height: 9px; border-radius: 50%; background: var(--oranje);
  box-shadow: 0 0 0 3px rgba(242,101,50,.3);
}
.hero .samenvatting.rustig .stip { background: rgba(255,255,255,.55); box-shadow: none; }

@media (max-width: 480px) {
  .hero-binnen { padding: 17px 16px 15px; }
  .hero h1 { font-size: 1.18rem; }
}

/* ── Compacte bonregels (binnenkort / achterstallig) ───────────────────── */

.lijstkop { display: flex; align-items: center; gap: 9px; margin: 26px 2px 10px; }
.lijstkop h2 {
  font-size: .76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--zacht);
}

.regelbon {
  display: flex; align-items: center; gap: 13px;
  background: var(--wit); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 11px 14px;
  margin-bottom: 8px; box-shadow: var(--schaduw); color: var(--tekst);
}
.regelbon:hover { text-decoration: none; border-color: var(--blauw); background: #fbfcfe; }
.regelbon-datum {
  flex: 0 0 56px; text-align: center;
  border-right: 1px solid var(--rand); padding-right: 12px;
}
.regelbon-datum b { display: block; font-size: .9rem; font-weight: 800; color: var(--blauw); }
.regelbon-datum span { font-size: .64rem; color: var(--zacht); font-weight: 700; }
.regelbon.laat { border-left: 3px solid var(--oranje); }
.regelbon.laat .regelbon-datum b { color: var(--oranje); }
.regelbon-tekst { flex: 1; min-width: 0; }
.regelbon-tekst h3 { font-size: .93rem; font-weight: 700; }
.regelbon-tekst p { font-size: .79rem; color: var(--zacht); margin-top: 1px; }
.regelbon-pijl { color: #c3d2e0; font-size: 1.05rem; }

/* ── Werkbon ───────────────────────────────────────────────────────────── */

.wb-kop {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-top: 3px solid var(--oranje);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin-bottom: 16px;
  overflow: hidden;
}
.wb-kop-boven {
  padding: 15px 18px 14px;
  display: flex; align-items: flex-start; gap: 14px;
}
.wb-kop-boven .titel { flex: 1; min-width: 0; }
.wb-kop h1 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.wb-kop .adres { font-size: .84rem; color: var(--zacht); margin-top: 4px; line-height: 1.5; }
.wb-kop .adres a { color: var(--blauw); font-weight: 600; }
.wb-kop .bonnr { text-align: right; flex: 0 0 auto; }
.wb-kop .bonnr b {
  display: block; font-size: 1rem; font-weight: 800;
  color: var(--oranje-diep); white-space: nowrap;
}
.wb-kop .bonnr span { font-size: .7rem; color: var(--zacht); font-weight: 700; }

.wb-gegevens {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px; background: var(--rand); border-top: 1px solid var(--rand);
}
.wb-gegevens > div { background: #fbfcfe; padding: 9px 14px 10px; }
.wb-gegevens dt {
  font-size: .63rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--zacht); margin-bottom: 2px;
}
.wb-gegevens dd { font-size: .85rem; font-weight: 600; }

/* ── Bevestigingsvenster ───────────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; background: rgba(15,35,60,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 70;
}
.overlay[hidden] { display: none; }
.dialoog {
  background: var(--wit); border-radius: var(--radius);
  max-width: 430px; width: 100%; box-shadow: var(--schaduw-op); overflow: hidden;
}
.dialoog-kop { padding: 18px 20px 0; }
.dialoog-kop h3 { font-size: 1.05rem; font-weight: 800; }
.dialoog-body { padding: 10px 20px 6px; font-size: .89rem; line-height: 1.6; }
.dialoog-body ul { margin: 11px 0 0 17px; display: grid; gap: 5px; color: var(--zacht); }
.dialoog-voet { padding: 18px 20px; display: flex; gap: 9px; }
.dialoog-voet .knop { flex: 1; }

.materiaaltabel { width: 100%; border-collapse: collapse; font-size: .87rem; }
.materiaaltabel th {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  color: var(--zacht); text-align: left; padding: 6px 6px; letter-spacing: .03em;
}
.materiaaltabel td { padding: 3px 3px; }
.materiaaltabel input {
  width: 100%; border: 1.5px solid var(--rand); border-radius: 6px;
  padding: 8px 9px; font-size: .88rem; font-family: inherit; color: var(--tekst);
}
.materiaaltabel input:focus {
  outline: none; border-color: var(--blauw); box-shadow: 0 0 0 2px rgba(22,84,162,.1);
}
.materiaaltabel .weg {
  background: none; border: none; color: var(--zacht);
  font-size: 1.1rem; cursor: pointer; padding: 4px 7px; border-radius: 6px;
}
.materiaaltabel .weg:hover { background: var(--rood-licht); color: var(--rood); }

.tijdblok {
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  padding: 12px;
  margin-bottom: 11px;
  background: #fbfcfe;
}
.tijdblok .datum {
  font-weight: 800; font-size: .85rem; margin-bottom: 10px;
  color: var(--blauw-donker); display: flex; align-items: center; gap: 7px;
}
.tijdrooster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
@media (max-width: 560px) { .tijdrooster { grid-template-columns: repeat(2, 1fr); } }
.tijdrooster .cel label {
  display: block; font-size: .68rem; font-weight: 700; color: var(--zacht);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em;
}
.tijdrooster .cel input {
  width: 100%; border: 1.5px solid var(--rand); border-radius: 6px;
  padding: 8px; font-size: .9rem; font-family: inherit; text-align: center;
}
.tijdrooster .cel input:focus { outline: none; border-color: var(--blauw); }

#handtekeningvlak {
  width: 100%; height: 190px;
  border: 2px dashed var(--rand);
  border-radius: var(--radius-klein);
  background: var(--wit);
  touch-action: none;
  display: block;
}
#handtekeningvlak.getekend { border-style: solid; border-color: var(--groen); }

.fotorij { display: flex; flex-wrap: wrap; gap: 10px; }
.foto {
  position: relative; width: 104px; height: 104px;
  border-radius: var(--radius-klein); overflow: hidden;
  border: 1px solid var(--rand); background: #eef2f7;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto .weg {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff; border: none;
  font-size: .85rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.foto .weg:hover { background: var(--rood); }
.fotoknop {
  width: 104px; height: 104px;
  border: 2px dashed var(--rand); border-radius: var(--radius-klein);
  background: var(--wit); cursor: pointer; color: var(--zacht);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: .74rem; font-weight: 700; font-family: inherit;
}
.fotoknop:hover { border-color: var(--blauw); color: var(--blauw); background: var(--blauw-licht); }

.opslagmelder {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--tekst); color: #fff;
  padding: 9px 17px; border-radius: 99px;
  font-size: .82rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  z-index: 60; box-shadow: var(--schaduw-op);
}
.opslagmelder.zichtbaar { opacity: 1; }

.wb-acties {
  position: sticky; bottom: 0;
  background: var(--wit); border-top: 1px solid var(--rand);
  padding: 12px 16px; margin: 20px -16px -40px;
  display: flex; gap: 10px; align-items: stretch;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
}
/* Opslaan is de dagelijkse handeling: groot en opvallend.
   Gereedmelden is eenmalig en onomkeerbaar: bewust kleiner en ingetogen. */
.wb-acties .opslaan { flex: 2.4; padding: 15px; font-size: 1rem; }
.wb-acties .gereed {
  flex: 1; padding: 11px 10px; font-size: .8rem; line-height: 1.25;
  background: var(--wit); color: #14663f; border-color: #b7e3cc;
}
.wb-acties .gereed:hover { background: var(--groen-licht); color: #14663f; }
/* Afwerken/archiveren: de vervolgstap van de beheerder, duidelijk vindbaar */
.wb-acties .afwerken {
  flex: 1.5; padding: 14px 12px; font-size: .92rem;
  background: var(--oranje-diep); color: #fff; border-color: var(--oranje-diep);
}
.wb-acties .afwerken:hover { background: #a53c0b; color: #fff; }

/* ── Alleen-lezen weergave ─────────────────────────────────────────────── */

.lees-blok {
  white-space: pre-wrap;
  background: #fbfcfe;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.6;
  min-height: 46px;
}
.lees-blok.leeg-tekst { color: var(--zacht); font-style: italic; }

/* ── Inlogpagina ───────────────────────────────────────────────────────── */

.inlog-scherm {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 18px;
  /* Verloop over de cabinefoto. Ontbreekt de foto, dan blijft het verloop. */
  background-color: var(--blauw-donker);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(9,28,56,.30) 0%, rgba(8,24,48,.72) 80%),
    linear-gradient(165deg, rgba(13,44,86,.46) 0%, rgba(22,84,162,.34) 45%, rgba(9,28,56,.62) 100%),
    var(--cabine, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 820px) {
  /* vaste achtergrond hapert op telefoons */
  .inlog-scherm { background-attachment: scroll; }
}
.inlog-kop { text-align: center; margin-bottom: 24px; }
.inlog-kop img { height: 62px; width: auto; border-radius: 9px; margin-bottom: 13px; }
/* Schaduw houdt de tekst leesbaar over de lichte plekken van de foto */
.inlog-kop h1 {
  color: #fff; font-size: 1.35rem; font-weight: 800;
  text-shadow: 0 2px 10px rgba(4,16,34,.7);
}
.inlog-kop p {
  color: rgba(255,255,255,.82); font-size: .85rem; margin-top: 3px;
  text-shadow: 0 1px 8px rgba(4,16,34,.75);
}
.inlog-kop img { filter: drop-shadow(0 3px 12px rgba(4,16,34,.45)); }
.inlog-kaart {
  background: var(--wit);
  border-radius: 16px;
  border-top: 4px solid var(--oranje);
  padding: 26px 24px;
  width: 100%; max-width: 370px;
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
}
.inlog-voet { margin-top: 18px; width: 100%; max-width: 370px; text-align: center; }
.inlog-voet .tip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .8rem; line-height: 1.5;
  color: rgba(255,255,255,.9);
  text-align: left;
}
.pwa-knop {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,.16);
  color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius-klein);
  font-size: .9rem; font-weight: 800; cursor: pointer; font-family: inherit;
}
.pwa-knop:hover { background: rgba(255,255,255,.26); }

/* ── Diversen ──────────────────────────────────────────────────────────── */

.rijknoppen { display: flex; gap: 7px; flex-wrap: wrap; }
.scheider { height: 1px; background: var(--rand); margin: 18px 0; }
.stapel > * + * { margin-top: 12px; }
.zoekbalk { display: flex; gap: 8px; margin-bottom: 14px; }
.zoekbalk input { flex: 1; }

.statrij { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--wit); border: 1px solid var(--rand);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--schaduw);
}
.stat .getal { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--oranje-diep); }
.stat .naam { font-size: .76rem; color: var(--zacht); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blauw-licht); color: var(--blauw-donker);
  border: 1px solid #c3d9f0; border-radius: 99px;
  padding: 4px 6px 4px 11px; font-size: .8rem; font-weight: 700;
}
.chip button {
  background: none; border: none; color: var(--blauw-donker);
  cursor: pointer; font-size: .95rem; line-height: 1; padding: 2px 4px; border-radius: 50%;
}
.chip button:hover { background: rgba(22,84,162,.15); }
.chiprij { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; min-height: 30px; }

@media (max-width: 640px) {
  .pagina { padding: 16px 12px 34px; }
  .paginakop h1 { font-size: 1.2rem; }
  .kaart-body { padding: 14px; }
  .stempels { grid-template-columns: repeat(2, 1fr); }
}

/* ── Beweging en terugkoppeling ────────────────────────────────────────── */

/* Indrukken moet voelbaar zijn; op een telefoon is dat het enige signaal
   dat je iets geraakt hebt. */
.knop, .stempel, .cl-vink, .cl-s, .kiezer-knop, .regelbon, .bonkaart, .cl-kaartje {
  -webkit-tap-highlight-color: transparent;
}
.knop:active:not(:disabled),
.kiezer-knop:active,
.cl-vink:active:not(:disabled),
.cl-s:active:not(:disabled) { transform: scale(.96); }
.stempel:active:not(:disabled) { transform: scale(.975); }
.regelbon:active, .cl-kaartje:active { transform: scale(.99); }
.knop, .stempel, .cl-vink, .cl-s, .kiezer-knop, .regelbon, .cl-kaartje {
  transition: transform .09s ease, background .15s, border-color .15s, color .15s;
}

.bonkaart, .kaart, .regelbon, .cl-kaartje { animation: opkomen .28s ease both; }
@keyframes opkomen {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
/* Laat opeenvolgende kaarten iets na elkaar verschijnen */
.pagina > .kaart:nth-of-type(2),
.pagina > .bonkaart:nth-of-type(2) { animation-delay: .05s; }
.pagina > .kaart:nth-of-type(3),
.pagina > .bonkaart:nth-of-type(3) { animation-delay: .1s; }
.pagina > .kaart:nth-of-type(n+4),
.pagina > .bonkaart:nth-of-type(n+4) { animation-delay: .14s; }

/* Een stempel die zojuist gezet is even laten oplichten */
@keyframes gezet-puls {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,99,.45); }
  100% { box-shadow: 0 0 0 12px rgba(31,157,99,0); }
}
.stempel.zojuist { animation: gezet-puls .6s ease-out; }

/* Wie beweging liever kwijt is, krijgt het niet */
@media (prefers-reduced-motion: reduce) {
  .bonkaart, .kaart, .regelbon, .cl-kaartje { animation: none; }
  .knop, .stempel, .cl-vink, .cl-s, .kiezer-knop, .regelbon, .cl-kaartje {
    transition: none;
  }
  .knop:active, .stempel:active, .cl-vink:active, .cl-s:active { transform: none; }
}

@media print {
  .kopbalk, .hoofdnav, .onderbalk, .wb-acties, .knop, .opslagmelder { display: none !important; }
  body { background: #fff; }
  .kaart { box-shadow: none; break-inside: avoid; }
}
