/* Monteurs: zelfde schil als de backoffice, zonder zijmenu. */

.mo-shell {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.mo-shell .topbar {
  position: sticky;
  top: 0;
}

.mo-shell .page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.mo-shell .wb-tabs {
  margin-top: 0;
  position: sticky;
  top: 56px;
  z-index: 15;
}
.wb-tabs-4 { grid-template-columns: repeat(4, 1fr); }

.mo-veldrij {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.mo-veldrij:last-child { border-bottom: 0; }
.mo-veldrij > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
}
.mo-vast {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.mo-hint {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.mo-veldrij .input-wrp textarea { min-height: 72px; }

.mo-keuze-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mo-keuze-rij.drie { grid-template-columns: 1fr 1fr 1fr; }
.mo-keuze-rij .mo-keuze-knop {
  border-bottom: 0;
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  text-align: center;
}
.mo-keuze-rij .mo-keuze-knop:last-child { border-right: 0; }
.mo-keuze-rij .mo-keuze-knop small { font-size: 11px; }

.mo-fotos-in { padding: 8px 0 0; }
.mo-select-in { width: 100%; margin: 10px 0 0; }

.mo-shell .page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mo-shell .page-head .kop-acties {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mo-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.mo-acties .btn-primary,
.mo-acties .btn-ghost {
  width: auto;
}

.mo-shell .card table td:first-child {
  width: 38%;
  color: var(--text-2);
}

.mo-shell .btn-tabel {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 0;
}

.mo-voet { margin-top: 4px; }
.mo-voet .btn-primary { width: auto; }

.mo-keuze { display: flex; flex-direction: column; }
.mo-keuze-knop {
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 12px 20px;
}
.mo-keuze-knop:last-child { border-bottom: 0; }
.mo-keuze-knop small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
}
.mo-keuze-knop.aan {
  background: color-mix(in srgb, var(--brand-accent) 8%, white);
  box-shadow: inset 3px 0 0 var(--brand-accent);
}

.mo-kaart-pad { padding: 16px 20px; }
.mo-kaart-pad .mo-fout { margin-top: 10px; }
.input-wrp.is-fout { border-color: #B91C1C; }

.mo-fout {
  margin: 8px 0 0;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 600;
}

.mo-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 20px 16px;
}
.mo-foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #FAFAFB;
  border: 1px solid var(--border);
}
.mo-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-foto-weg {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 99px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 14px;
}
.mo-foto-plus {
  border: 1px dashed var(--border-2);
  background: #FAFAFB;
  color: var(--brand-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mo-teken {
  position: relative;
  margin: 0 20px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.mo-teken canvas { width: 100%; height: 140px; display: block; touch-action: none; }
.mo-teken-wis {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.mo-vink {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.mo-vink:last-child { border-bottom: 0; }
.mo-vink input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-accent); }
.mo-vink strong { display: block; font-size: 14px; font-weight: 600; }
.mo-vink small { display: block; margin-top: 2px; color: var(--text-2); font-size: 12px; }
.mo-vink.is-fout { background: #FEF2F2; }

.mo-notitie { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.mo-notitie:last-child { border-bottom: 0; }
.mo-notitie b { font-size: 12px; color: var(--text-2); }
.mo-notitie p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }

.mo-select {
  width: calc(100% - 40px);
  min-height: 40px;
  margin: 12px 20px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

@media (max-width: 640px) {
  .mo-shell .topbar {
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    gap: 8px;
  }
  .mo-shell .topbar-brand img { height: 22px; }
  .mo-shell .topbar-breadcrumb { display: none; }
  .mo-shell .card table td:first-child { width: 34%; }
}

/* ══════════════════════════════════════════════════════════════
   WERKBON v2 — app-achtig, mobiel-first (monteur)
   ══════════════════════════════════════════════════════════════ */

.wb2 {
  -webkit-tap-highlight-color: transparent;
}
.mo-shell .page:has(.wb2),
.mo-shell .page.wb2 { padding: 12px 20px 32px; }
/* Ruimte onder de notities, anders verdwijnt die sectie achter de vaste balk. */
.mo-shell .page.wb2:not(.wb2-dag) {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 640px) {
  .mo-shell .page:has(.wb2),
  .mo-shell .page.wb2 { padding: 20px 40px 40px; }
  .mo-shell .page.wb2:not(.wb2-dag) {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
  .wb2-balk { padding-left: 40px; padding-right: 40px; }
}

.wb2-terug {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px 0 6px;
  margin: 0 0 8px -6px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.wb2-terug:active { background: rgba(0,0,0,.05); }

/* ── Kop ── */
.wb2-kop {
  position: relative;
  overflow: clip; /* geen scrollcontainer: focus op een knop rechts (Niet thuis) schoof de kaart 60px op door de glow (::before) buiten beeld */;
  border-radius: 20px;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-grad-from) 0%, var(--brand-grad-mid) 55%, var(--brand-grad-to) 100%);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--brand-accent) 70%, transparent);
}
.wb2-kop::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.wb2-kop-rij {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wb2-kop-rij-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.wb2-kop-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.wb2-kop-nr,
.wb2-kop-og {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wb2-kop-nr {
  align-items: center;
  text-align: center;
  padding-top: 1px;
}
.wb2-kop-og {
  align-items: flex-end;
  text-align: right;
}
.wb2-kop-nr small,
.wb2-kop-og small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  line-height: 1.2;
}
.wb2-kop-nr b,
.wb2-kop-og b {
  margin-top: 1px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: #fff;
  line-height: 1.2;
}
.wb2-kop .wb2-tijd,
.wb2-og {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  line-height: 1.3;
}
.wb2-kop .wb2-tijd {
  background: #fff;
  color: var(--brand-accent);
  white-space: nowrap;
}
.wb2-og { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.wb2-og-ok { background: rgba(22,163,74,.35); border-color: rgba(134,239,172,.5); }
.wb2-kop h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.15;
  color: #fff;
}
.wb2-kop p { margin-top: 5px; font-size: 14.5px; color: rgba(255,255,255,.78); }
.wb2-kop-info { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; position: relative; }
.wb2-kop-regel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  transition: background .15s;
}
a.wb2-kop-regel:active { background: rgba(255,255,255,.2); }
.wb2-kop-regel i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-accent);
}
.wb2-kop-regel span { font-size: 14.5px; line-height: 1.35; color: rgba(255,255,255,.85); min-width: 0; overflow-wrap: anywhere; }
.wb2-kop-regel b { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.1px; }
.wb2-kop-acties { display: flex; gap: 8px; margin-top: 16px; position: relative; }
.wb2-kop-acties a,
.wb2-kop-acties button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform .1s, background .15s;
}
.wb2-kop-acties a:active, .wb2-kop-acties button:active { transform: scale(.97); }
.wb2-kop-acties .prim { background: #fff; color: var(--brand-accent); }
.wb2-kop-acties .sec { background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.25); }
/* Klant niet thuis (27-9-2026): knop rechts in de kopkaart i.p.v. schakelaar onderaan */
.wb2-kop-acties button.sec { font: inherit; cursor: pointer; }
.wb2-kop-acties .wb2-nietthuis { flex: 0 0 auto; margin-left: auto; padding: 0 16px; }
.wb2-kop-acties .wb2-nietthuis.aan { background: #F97316; border-color: #F97316; color: #fff; }

/* ── Opdrachtdetails ── */
.wb2-details {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wb2-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.wb2-details summary::-webkit-details-marker { display: none; }
.wb2-details summary svg { color: var(--text-muted); transition: transform .2s; }
.wb2-details[open] summary svg { transform: rotate(180deg); }
.wb2-details[open] summary { border-bottom: 1px solid var(--border); }
.wb2-details dl {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 10px 12px;
  padding: 14px 16px;
  font-size: 14px;
}
.wb2-details dt { color: var(--text-2); }
.wb2-details dd { color: var(--text); overflow-wrap: anywhere; }
.wb2-details dd a { color: var(--brand-accent); font-weight: 700; }
.wb2-details-art { padding: 0 12px 12px; }
.wb2-details-art .art-banner { margin: 0; }

/* ── Secties (klacht / afronden / notities) ── */
.wb2-sectie {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 72px;
}
.wb2-sectie.is-klaar { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); }
.wb2-sectie-kop {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #FAFAFB;
  text-align: left;
}
.wb2-sectie-kop > div { min-width: 0; flex: 1; }
.wb2-sectie-kop h2 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; line-height: 1.2; }
.wb2-sectie-kop small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.wb2-sectie-nr {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.is-klaar .wb2-sectie-nr { background: var(--green); }
.wb2-sectie-nr-licht { background: color-mix(in srgb, var(--brand-accent) 10%, white); color: var(--brand-accent); }
.wb2-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}
.wb2-chip.ok { background: var(--green-bg); color: var(--green); }
.wb2-chip.todo { background: var(--yellow-bg); color: var(--yellow); }

/* ── Stappen ── */
.wb2-stap { padding: 14px 16px 16px; border-bottom: 1px solid var(--border); }
.wb2-stap:last-child { border-bottom: 0; }
.wb2-stap-kop { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wb2-stap-kop > div { flex: 1; min-width: 0; }
.wb2-stap-kop b { font-size: 14.5px; font-weight: 700; }
.wb2-stap-kop small { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.wb2-stap-nr {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  border: 1.5px solid var(--border-2);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-2);
  background: #fff;
  transition: background .15s, border-color .15s;
}
.wb2-stap.klaar .wb2-stap-nr,
.wb2-stap-nr.klaar { background: var(--green); border-color: var(--green); color: #fff; }
.wb2-stap.fout .wb2-stap-nr { border-color: #B91C1C; color: #B91C1C; background: #FEF2F2; }
.wb2-optioneel {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: #F0F0F2;
  padding: 2px 8px;
  border-radius: 99px;
}
.wb2-vast {
  background: #F5F6F9;
  border-left: 3px solid var(--brand-accent);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.5;
}
.wb2-hint { margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.wb2-klachtfotos {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FAFAFB;
  overflow: hidden;
  scroll-margin-top: 72px;
  scroll-margin-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}
.wb2-klachtfotos summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.wb2-klachtfotos summary::-webkit-details-marker { display: none; }
.wb2-klachtfotos summary svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand-accent);
}
.wb2-klachtfotos summary span { flex: 1; min-width: 0; }
.wb2-klachtfotos summary small {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.wb2-klachtfotos summary svg:last-child { color: var(--text-muted); transition: transform .2s; }
.wb2-klachtfotos[open] summary { border-bottom: 1px solid var(--border); }
.wb2-klachtfotos[open] summary svg:last-child { transform: rotate(180deg); }
.wb2-klachtfotos .wb2-fotos {
  padding: 10px;
  grid-template-columns: 1fr 1fr;
}
.wb2-klachtfotos .wb2-foto {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.wb2-klachtfotos .wb2-foto:active { transform: scale(.98); }

.wb2-foto-groot {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 14, 32, .92);
  display: grid;
  place-items: center;
  padding: 52px 16px 24px;
  padding-top: max(52px, env(safe-area-inset-top, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}
.wb2-foto-groot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}
.wb2-foto-groot img { cursor: zoom-out; }
.wb2-foto-groot-sluit {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.wb2-foto-groot-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: max(22px, env(safe-area-inset-top, 0px));
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  pointer-events: none;
}
.wb2-foto-groot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.wb2-foto-groot-nav.vorige { left: 10px; }
.wb2-foto-groot-nav.volgende { right: 10px; }
.wb2-foto-groot-nr {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 700;
}
.wb2-info { padding: 14px 16px; font-size: 14px; color: var(--text-2); }
.wb2-fout { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #B91C1C; }
.wb2-pad { padding: 0 16px 12px; margin: -4px 0 0; }
.wb2 .input-wrp { border-radius: 12px; }
.wb2 .input-wrp textarea { min-height: 84px; font-size: 15px; padding: 11px 14px; }
.wb2 .input-wrp.wb2-sub { margin-top: 8px; }
.wb2 .input-wrp.wb2-sub textarea { min-height: 60px; }

/* Keuzeknoppen */
.wb2-keuzes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb2-keuzes.drie { grid-template-columns: repeat(3, 1fr); }
.wb2-keuze {
  min-height: 56px;
  padding: 8px 6px;
  border: 1.5px solid var(--border-2);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background .12s, border-color .12s, transform .08s;
}
.wb2-keuze:active { transform: scale(.97); }
.wb2-keuze small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.wb2-keuze.aan {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand-accent) 80%, transparent);
}
.wb2-keuze.aan small { color: rgba(255,255,255,.75); }

.wb2-select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 40px 0 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.wb2-select.is-fout { border-color: #B91C1C; }

/* Foto's */
.wb2-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wb2-foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F5F6F9;
  border: 1px solid var(--border);
}
.wb2-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb2-foto-weg {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 99px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.wb2-foto-plus {
  border: 1.5px dashed color-mix(in srgb, var(--brand-accent) 40%, var(--border-2));
  background: color-mix(in srgb, var(--brand-accent) 4%, white);
  color: var(--brand-accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.wb2-foto-plus:active { background: color-mix(in srgb, var(--brand-accent) 10%, white); }

/* Extra klacht */
.wb2-toevoegen {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--border-2);
  border-radius: 16px;
  background: transparent;
  color: var(--brand-accent);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
}
.wb2-toevoegen:active { background: rgba(0,0,0,.04); }
.wb2-klacht-weg {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #B91C1C;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 2px;
}
.wb2-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 16, 38, .48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.wb2-popup {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 50px -16px rgba(10, 15, 40, .45);
}
.wb2-popup h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.wb2-popup p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.wb2-popup-acties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.wb2-popup-nee,
.wb2-popup-ja {
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}
.wb2-popup-nee {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
}
.wb2-popup-ja {
  border: 0;
  background: #B91C1C;
  color: #fff;
}

.wb2-mat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 0 14px;
}
.wb2-mat + .wb2-mat { border-top: 1px dashed var(--border); padding-top: 14px; }
.wb2-stap-body > .wb2-toevoegen { margin-top: 4px; }
.wb2-mat select {
  min-height: 48px;
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  padding: 0 10px;
}
/* − / + voor het aantal: zelfde grote knoppen (56px) als de kiezer voor extra tijd */
.wb2-aantal.wb2-tijd-kiezer { width: 100%; }
.wb2-aantal .wb2-tijd-knop { font-size: 26px; font-weight: 700; color: var(--brand-accent, #1F2A60); }
.wb2-aantal .wb2-tijd-stand b { font-size: 20px; }
.wb2-aantal .wb2-tijd-stand small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb2-mat-weg {
  justify-self: end;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #B91C1C;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.wb2-bedrag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
}
.wb2-bedrag.is-fout { border-color: #B91C1C; }
.wb2-bedrag b { color: var(--text-2); font-size: 15px; }
.wb2-bedrag input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0;
}
.wb2-tijd-kiezer {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: stretch;
}
.wb2-tijd-knop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1.5px solid var(--border-2);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.wb2-tijd-knop:disabled { opacity: .35; }
.wb2-tijd-knop:active:not(:disabled) { transform: scale(.97); }
.wb2-tijd-stand {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1.5px solid var(--border-2);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}
.wb2-tijd-stand b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.wb2-tijd-stand small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.wb2-tijd-stand.is-fout { border-color: #B91C1C; }
.wb2-sectie .wb-totalen > div { padding: 13px 16px; }

/* Schakelaars (afronden) */
.wb2-schakel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.wb2-schakel > span { flex: 1; min-width: 0; }
/* Taalkeuze rapport (27-9-2026): twee knoppen met vlag, Nederlands | English */
.taal-keuze { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #EEF0F3; }
.taal-keuze button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; border-radius: 10px; padding: 10px 16px;
  font: inherit; font-size: 14px; font-weight: 600; color: #6B6B70; cursor: pointer; white-space: nowrap;
}
.taal-keuze button:hover { color: #1F2A60; }
.taal-keuze button.aan { background: #fff; color: #1F2A60; box-shadow: 0 1px 3px rgba(0,0,0,.14), 0 0 0 1px rgba(31,42,96,.08); }
.taal-keuze .taal-vlag { font-size: 19px; line-height: 1; }
.wb2-schakel.wb2-taal { flex-direction: column; align-items: stretch; gap: 10px; cursor: default; }
.wb2-schakel.wb2-taal > span { flex: none; }
.wb2-taal .taal-keuze { display: flex; }
.wb2-taal .taal-keuze button { flex: 1; padding: 12px 10px; font-size: 15px; }
.wb2-schakel strong { display: block; font-size: 14.5px; font-weight: 700; }
.wb2-schakel small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.wb2-schakel input { position: absolute; opacity: 0; width: 0; height: 0; }
.wb2-schakel i {
  flex-shrink: 0;
  width: 50px;
  height: 30px;
  border-radius: 99px;
  background: #D9D9DE;
  position: relative;
  transition: background .18s;
}
.wb2-schakel i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s;
}
.wb2-schakel input:checked + i { background: var(--green); }
.wb2-schakel input:checked + i::after { transform: translateX(20px); }
.wb2-schakel input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--brand-accent) 30%, transparent); }
.wb2-schakel.is-fout { background: #FEF2F2; }

/* Handtekening */
.wb2-teken {
  position: relative;
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.wb2-teken.is-fout { border-color: #B91C1C; }
.wb2-teken canvas { width: 100%; height: 170px; display: block; touch-action: none; }
.wb2-teken-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.wb2-teken-lijn {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 34px;
  border-top: 1.5px dashed var(--border-2);
  pointer-events: none;
}
.wb2-teken-wis {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

/* Vaste actiebalk */
.wb2-balk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
}
.wb2-balk-in {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.wb2-balk-tekst { flex: 1; min-width: 0; }
.wb2-balk-tekst span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb2-balk-bar {
  height: 5px;
  border-radius: 99px;
  background: #E9E9EC;
  overflow: hidden;
  margin-bottom: 6px;
}
.wb2-balk-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-grad-to));
  transition: width .25s;
}
.wb2-knop {
  flex-shrink: 0;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand-accent) 90%, transparent);
  transition: transform .08s, background .15s;
}
.wb2-knop:active { transform: scale(.97); }
@media (max-width: 520px) {
  .wb2-balk { padding-left: 14px; padding-right: 14px; }
  .wb2-balk-in { flex-wrap: wrap; gap: 8px; }
  .wb2-balk-tekst { flex-basis: 100%; }
  .wb2-knop { flex: 1 1 100%; width: 100%; }
}
/* Nooit horizontaal scrollen op een telefoon: alles wat breder is dan het scherm wordt afgekapt i.p.v. de pagina te verschuiven. */
.mo-shell, .wb2 { max-width: 100vw; overflow-x: clip; }
html:has(.mo-shell) { overflow-x: hidden; }
.wb2-knop.oranje { background: #C2410C; }

/* Notities */
.wb2-klap { border: 0; background: #FAFAFB; cursor: pointer; font: inherit; color: var(--text); }
.wb2-notities:not(.open) .wb2-klap { border-bottom: 0; }
.wb2-klap-ico { color: var(--text-muted); display: inline-flex; transition: transform .2s; }
.wb2-notities.open .wb2-klap-ico { transform: rotate(180deg); }
.wb2-notitie { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.wb2-notitie b { font-size: 12px; color: var(--text-2); }
.wb2-notitie p { margin-top: 3px; font-size: 14px; line-height: 1.5; }
.wb2-notitie-form { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wb2-notitie-form .btn-primary { align-self: flex-end; width: auto; }

@media (min-width: 640px) {
  .wb2-kop { padding: 22px 24px 20px; }
  .wb2-kop h1 { font-size: 26px; }
  .wb2-kop-acties a { flex: 0 0 auto; padding: 0 22px; }
  .wb2-fotos { grid-template-columns: repeat(4, 1fr); }
}

/* ── Vandaag (opdrachtenlijst) ── */
.wb2-dag { padding-bottom: 32px; }
.wb2-dag-voortgang { margin-top: 16px; position: relative; }
.wb2-dag-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.wb2-dag-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; transition: width .3s; }
.wb2-dag-voortgang span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8); }

.wb2-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--green-bg);
  color: #15803D;
  font-size: 14px;
  font-weight: 600;
}
.wb2-leeg {
  margin-top: 14px;
  padding: 36px 20px;
  border: 1.5px dashed var(--border-2);
  border-radius: 18px;
  text-align: center;
  color: var(--text-muted);
}
.wb2-leeg b { display: block; margin-top: 8px; color: var(--text); font-size: 15px; }
.wb2-leeg span { display: block; margin-top: 2px; font-size: 13.5px; }

.wb2-route { list-style: none; margin: 6px 0 0; padding: 0; }
.wb2-stop { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.wb2-stop-tijd {
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  position: relative;
}
.wb2-stop-tijd b { font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.wb2-stop-tijd small { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.wb2-stop-dot {
  margin-top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid var(--border-2);
  color: var(--text-2);
  position: relative;
  z-index: 1;
}
/* verbindingslijn tussen stops */
.wb2-stop-tijd::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 72px;
  bottom: -14px;
  border-left: 2px dashed var(--border-2);
  transform: translateX(-1px);
}
.wb2-stop:last-child .wb2-stop-tijd::after { display: none; }
.wb2-stop.is-klaar .wb2-stop-dot { background: var(--green); border-color: var(--green); color: #fff; }
.wb2-stop.is-nietthuis .wb2-stop-dot { background: #FFEDD5; border-color: #FDBA74; color: #9A3412; }
.wb2-stop.is-bezig .wb2-stop-dot,
.wb2-stop.is-volgende .wb2-stop-dot { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.wb2-stop.is-bezig .wb2-stop-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 18%, transparent); }

.wb2-stop-kaart {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wb2-stop.is-volgende .wb2-stop-kaart { border-color: var(--brand-accent); box-shadow: 0 8px 22px -14px color-mix(in srgb, var(--brand-accent) 80%, transparent); }
.wb2-stop.is-klaar .wb2-stop-kaart,
.wb2-stop.is-nietthuis .wb2-stop-kaart { opacity: .82; }
.wb2-stop-kop {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 8px 16px;
}
.wb2-stop-kop > div { flex: 1; min-width: 0; }
.wb2-stop-kop h2 { font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; line-height: 1.2; }
.wb2-stop-kop p { margin-top: 3px; font-size: 13.5px; color: var(--text-2); }
.wb2-stop-nr {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.wb2-stop-kop svg { color: var(--text-muted); flex-shrink: 0; }
.wb2-stop-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 6px; }
.wb2-stop-og { font-size: 12px; font-weight: 600; color: var(--text-2); }
.wb2-chip.bezig { background: color-mix(in srgb, var(--brand-accent) 10%, white); color: var(--brand-accent); }
.wb2-chip.volgende { background: var(--brand-accent); color: #fff; }
.wb2-chip.gepland { background: #F0F0F2; color: var(--text-2); }
.wb2-chip.nietthuis { background: #FFEDD5; color: #9A3412; }
.wb2-stop-werk {
  margin: 4px 16px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb2-stop-acties { display: flex; gap: 8px; padding: 12px 14px 14px; }
.wb2-stop-form { margin: 0; display: contents; }
.wb2-stop-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .08s, background .12s;
}
.wb2-stop-knop:active { transform: scale(.97); }
.wb2-stop-knop.prim { flex: 1; background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.wb2-stop.is-klaar .wb2-stop-knop.prim,
.wb2-stop.is-nietthuis .wb2-stop-knop.prim { background: #fff; color: var(--brand-accent); border-color: var(--border-2); }
.wb2-stop-knop.ico { flex: 0 0 44px; padding: 0; color: var(--brand-accent); }

@media (max-width: 400px) {
  .wb2-stop { gap: 8px; }
  .wb2-stop-tijd { flex-basis: 44px; }
  .wb2-stop-knop { padding: 0 10px; font-size: 13.5px; }
}

/* ── Werkbon-kop v2.1: adres en telefoon als twee rustige regels, klacht prominent ── */
.wb2-kop-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  position: relative;
}
.wb2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  line-height: 1.3;
}
.wb2-meta i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.wb2-meta i svg { width: 15px; height: 15px; }
.wb2-meta > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}
.wb2-meta b { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.1px; }
.wb2-meta small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 1px;
}
.wb2-meta em { font-style: normal; margin: 0 6px; color: rgba(255,255,255,.45); }
a.wb2-meta:active > span,
a.wb2-meta:active b { color: rgba(255,255,255,.7); }

.wb2-klacht {
  margin: 0;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-accent) 6%, white);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
  border-left: 5px solid var(--brand-accent);
  box-shadow: 0 1px 2px rgba(26, 26, 27, .05);
}
/* tekst zelf: zelfde lettertype en grootte als het oude .wb2-vast */
.wb2-klacht p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-line;
}

/* ══════════════════════════════════════════════════════════════
   TABBALK onderin (Vandaag · Agenda) + AGENDA week/maand (monteur)
   ══════════════════════════════════════════════════════════════ */

.mo-tabbalk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mo-tab {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1px;
  color: var(--text-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mo-tab:active { background: rgba(0,0,0,.05); transform: scale(.97); }
.mo-tab.aan { color: var(--brand-accent); }
.mo-tab.aan svg { stroke-width: 2.4; }
/* Ruimte onder de dag- en agendapagina zodat de laatste kaart boven de tabbalk uitkomt. */
.mo-shell .page.wb2-dag,
.mo-shell .page.mo-agenda {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* ── Agenda ── */
.ag-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}
.ag-kop h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.ag-zicht {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: #E9E9EC;
}
.ag-zicht a {
  min-width: 72px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
}
.ag-zicht a.aan { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

.ag-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.ag-nav-knop {
  flex: 0 0 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--brand-accent);
}
.ag-nav-knop:active { background: rgba(0,0,0,.05); }
.ag-nav-knop.uit { color: var(--border-2); pointer-events: none; }
.ag-nav-titel { flex: 1; min-width: 0; text-align: center; }
.ag-nav-titel b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; text-transform: capitalize; }
.ag-nav-titel span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.ag-vandaag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 10px 0 0;
  padding: 0 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--brand-accent) 10%, white);
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
}

.ag-dag {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ag-dag.is-vandaag { border-color: var(--brand-accent); box-shadow: 0 8px 22px -14px color-mix(in srgb, var(--brand-accent) 80%, transparent); }
.ag-dag.is-verleden { opacity: .8; }
.ag-dag-kop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px 8px 16px;
  color: var(--text);
  text-decoration: none;
}
.ag-dag-kop:active { background: rgba(0,0,0,.03); }
.ag-dag-kop b { font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; text-transform: capitalize; }
.ag-dag.is-leeg .ag-dag-kop b { color: var(--text-2); font-weight: 700; }
.ag-dag-kop .ag-dag-tel { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ag-dag.is-leeg .ag-dag-tel { color: var(--text-muted); font-weight: 600; }
.ag-dag-kop svg { color: var(--text-muted); flex-shrink: 0; }
.ag-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}
.ag-stops { list-style: none; margin: 0; padding: 0 0 4px; border-top: 1px solid var(--border); }
.ag-stops li + li .ag-stop { border-top: 1px solid var(--border); }
.ag-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px 8px 16px;
  color: var(--text);
  text-decoration: none;
}
.ag-stop:active { background: rgba(0,0,0,.03); }
.ag-stop-tijd { flex: 0 0 46px; display: flex; flex-direction: column; }
.ag-stop-tijd b { font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.ag-stop-tijd small { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.ag-stop-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-stop-naam { font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-stop-sub { margin-top: 2px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-stop-dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ag-stop.is-klaar .ag-stop-dot { background: var(--green); border-color: var(--green); }
.ag-stop.is-klaar .ag-stop-naam { color: var(--text-2); }
.ag-stop.is-nietthuis .ag-stop-dot { background: #FFEDD5; border-color: #FDBA74; }
.ag-stop.is-bezig .ag-stop-dot { background: var(--brand-accent); border-color: var(--brand-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 18%, transparent); }

/* Maandraster */
.ag-maand {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding: 10px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.ag-maand-kop {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-bottom: 4px;
}
.ag-maand-kop:nth-child(6),
.ag-maand-kop:nth-child(7) { color: var(--border-2); }
.ag-cel {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding-top: 6px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: #F7F7F8;
}
a.ag-cel:active { background: #ECECEF; }
.ag-cel b { font-size: 14px; font-weight: 700; line-height: 1; }
.ag-cel.is-weekend { background: transparent; color: var(--text-muted); }
.ag-cel.is-weekend b { font-weight: 500; }
.ag-cel.is-buiten { background: transparent; color: var(--border-2); }
.ag-cel.is-verleden:not(.is-weekend) b { color: var(--text-2); font-weight: 600; }
.ag-cel.is-vandaag { background: color-mix(in srgb, var(--brand-accent) 10%, white); }
.ag-cel.is-vandaag b {
  width: 24px;
  height: 24px;
  margin-top: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
}
.ag-cel.heeft-ritten { background: #fff; border: 1px solid var(--border); }
.ag-cel.is-vandaag.heeft-ritten { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 8%, white); }
.ag-tel {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.ag-tel.ok { background: var(--green); }
.ag-hint { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--text-muted); }

@media (min-width: 640px) {
  .ag-cel { min-height: 60px; }
  .ag-cel b { font-size: 15px; }
}
.wb2-flash-fout { background: #FEF2F2; color: #B91C1C; }

/* ── Blokjes (= uren) per afspraak, zichtbaar voor de monteur ── */
.mo-blokjes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  background: #F0F0F2;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}
.mo-blokjes.is-groot { background: #FEF3C7; color: #92400E; }
.mo-blokjes-vak { display: inline-flex; gap: 2px; }
.mo-blokjes-vak i { display: block; width: 7px; height: 7px; border-radius: 2px; background: #9CA3AF; }
.mo-blokjes.is-groot .mo-blokjes-vak i { background: #D97706; }
.mo-blokjes.is-compact { height: 18px; padding: 0 6px; gap: 4px; font-size: 11px; }
.mo-blokjes.is-compact .mo-blokjes-vak i { width: 6px; height: 6px; }
/* op de navy kop van de werkbon */
.mo-blokjes.is-licht { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.mo-blokjes.is-licht .mo-blokjes-vak i { background: rgba(255,255,255,.7); }
.mo-blokjes.is-licht.is-groot { background: rgba(217,119,6,.35); border-color: rgba(252,211,77,.55); color: #fff; }
.mo-blokjes.is-licht.is-groot .mo-blokjes-vak i { background: #FCD34D; }
/* sub-regel in de agenda: tekst mag afkappen, het blokjes-chipje blijft altijd zichtbaar */
.ag-stop-sub { display: flex; align-items: center; gap: 6px; }
.ag-stop-sub-tekst { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-stop-sub .mo-blokjes { flex: 0 0 auto; }

/* ── Artikelen meenemen (monteurs-app) ── */
.mo-art {
  margin: 8px 14px 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #FCD34D;
  background: #FFFBEB;
}
.mo-art.is-binnen { background: #F0FDF4; border-color: #86EFAC; }
.mo-art.is-wacht { background: #FFF7ED; border-color: #FDBA74; }
.mo-art-kop { display: flex; align-items: flex-start; gap: 10px; }
.mo-art-kop b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.1px; }
.mo-art-kop small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-2); }
.mo-art-ico {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F59E0B;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mo-art.is-binnen .mo-art-ico { background: #16A34A; }
.mo-art.is-wacht .mo-art-ico { background: #EA580C; }
.mo-art-lijst { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mo-art-lijst li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.3; }
.mo-art-lijst li i {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCFCE7;
  color: #15803D;
}
.mo-art-lijst li.is-wacht i { background: #FEE2E2; color: #B91C1C; }
.mo-art-tekst { display: flex; flex-direction: column; min-width: 0; }
.mo-art-tekst strong { font-weight: 700; overflow-wrap: anywhere; }
.mo-art-tekst small { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.mo-art-lijst li.is-wacht .mo-art-tekst small { color: #B45309; font-weight: 600; }
.mo-art-aantal {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--brand-accent);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  vertical-align: 1px;
}
/* op de werkbon staat het blok los onder de kop */
.mo-art.is-los { margin: 12px 0 0; border-radius: 16px; }
/* chipje in lijsten (agenda-week, dagkaart-meta) */
.mo-art-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #FEF3C7;
  color: #92400E;
  flex: 0 0 auto;
}
.mo-art-chip.is-binnen { background: #DCFCE7; color: #15803D; }
.mo-art-chip.is-wacht { background: #FEE2E2; color: #B91C1C; }


/* ── INLOG MONTEURS-APP (/monteur/login, 18-9-2026) ─────────────────────── */
.mo-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, #0B102B 0%, #1A2352 55%, #31408F 100%); }
.mo-login-kaart { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.mo-login-logo { height: 34px; width: auto; align-self: flex-start; }
.mo-login-tag { align-self: flex-start; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1F2A60; background: #E8EBF7; border-radius: 99px; padding: 3px 10px; }
.mo-login h1 { margin: 14px 0 2px; font-size: 24px; }
.mo-login-sub { margin: 0 0 16px; font-size: 14px; color: #64748B; line-height: 1.5; }
.mo-login-fout { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.mo-login form { display: flex; flex-direction: column; gap: 6px; }
.mo-login label { font-size: 12.5px; font-weight: 700; color: #334155; margin-top: 6px; }
.mo-login input { height: 48px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 0 14px; font-size: 16px; font: inherit; }
.mo-login input:focus { outline: 2px solid rgba(31, 42, 96, .25); border-color: #1F2A60; }
.mo-login-knop { margin-top: 14px; height: 50px; border: 0; border-radius: 12px; background: #1F2A60; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.mo-login-knop:active { background: #16204C; }
.mo-login-hint { margin: 14px 0 0; font-size: 13px; color: #64748B; line-height: 1.5; }
.mo-login-hint a { color: #1F2A60; font-weight: 700; }
.mo-login-voet { margin: 18px 0 0; font-size: 11.5px; color: #94A3B8; text-align: center; }

/* ophaalopdracht in de dagplanning (18-9-2026) */
.wb2-stop.is-ophalen .wb2-stop-kaart { border-left: 4px solid #F59E0B; }
.wb2-stop-knop.is-klaar { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }

/* Indienen: spinner in de knop + overlay, zodat duidelijk is dat er iets gebeurt (foto's + PDF kunnen seconden duren) */
.wb2-knop.is-bezig { opacity: .85; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.wb2-knop:disabled { cursor: progress; transform: none; }
.wb2-spinner {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: wb2-draai .8s linear infinite;
}
.wb2-spinner.groot { width: 44px; height: 44px; border-width: 4px; border-color: #E5E7EB; border-top-color: var(--brand-accent, #1F2A60); }
@keyframes wb2-draai { to { transform: rotate(360deg); } }
.wb2-verzenden {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(245,245,246,.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.wb2-verzenden-kaart {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 24px; max-width: 340px; width: 100%;
  box-shadow: 0 20px 50px -20px rgba(10,15,40,.35);
}
.wb2-verzenden-kaart b { font-size: 17px; }
.wb2-verzenden-kaart small { font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* Video's van de klant op de werkbon (27-9-2026) */
.wb2-klachtvideos { display: grid; gap: 12px; margin-top: 12px; }
.wb2-klachtvideos figure { margin: 0; }
.wb2-klachtvideos video { display: block; width: 100%; max-height: 260px; border-radius: 12px; background: #111; }
.wb2-klachtvideos figcaption { margin-top: 4px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
