/* ============================================================
   Klantwensen september 2026 — stijlen (kern + dossier)
   ============================================================ */

/* ---------- Gebruiker en meldingen in de zijbalk ---------- */
.wk-chip { cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.wk-chip:hover, .wk-chip:focus-visible { background: var(--card); border-color: var(--accent); outline: none; }
.user-avatar { color: #fff; }
button.notif-pill { font: inherit; color: inherit; cursor: pointer; width: 100%; text-align: left; position: relative; }
.wk-teller { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wk-bel-m { display: none; }
@media (max-width: 980px) and (min-width: 761px) {
  button.notif-pill { width: 48px; }
  button.notif-pill .wk-teller { position: absolute; top: 2px; right: 2px; font-size: 10.5px; }
}
@media (max-width: 760px) {
  .wk-bel-m { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line-soft); border-radius: 10px; background: var(--card); font-size: 18px; cursor: pointer; margin-right: 8px; }
  .wk-bel-m .wk-teller { position: absolute; top: -6px; right: -6px; }
  .sidebar-foot { display: flex; align-items: center; }
}

/* ---------- Avatars ---------- */
.mp-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.02em; }

/* ---------- Pop-upmeldingen ---------- */
.melding-stack { position: fixed; top: 18px; right: 18px; z-index: 400; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.melding-pop { pointer-events: auto; position: relative; display: flex; gap: 12px; padding: 14px 40px 14px 14px; background: var(--card); border: 1.5px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: 0 14px 34px rgba(24, 54, 74, 0.22); animation: mpIn 0.42s cubic-bezier(.2, .9, .3, 1.2) both; }
.melding-pop.weg { animation: mpUit 0.5s ease forwards; }
@keyframes mpIn { from { opacity: 0; transform: translateX(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mpUit { to { opacity: 0; transform: translateX(40px); } }
.mp-body { min-width: 0; flex: 1; }
.mp-kop { font-size: 14px; line-height: 1.3; }
.mp-kop span { color: var(--ink-soft); }
.mp-tekst { margin-top: 3px; font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.mp-acties { display: flex; gap: 8px; margin-top: 10px; }
.mp-acties .btn { min-height: 44px; }
.mp-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--ink-faint); cursor: pointer; border-radius: 6px; }
.mp-close:hover { background: var(--blue-pale); color: var(--ink); }
@media (max-width: 760px) { .melding-stack { top: auto; bottom: 86px; right: 12px; left: 12px; width: auto; } }

.melding-lijst { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.melding-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.4; }
.melding-item:hover { background: var(--blue-pale); }
.melding-item.ongelezen { background: var(--accent-bg); }
.melding-item small { display: block; color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.melding-item .mp-avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 12px; }

/* ---------- Welkom terug ---------- */
.welkom-banner { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 410; display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 14px; width: min(520px, calc(100vw - 24px)); background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(24, 54, 74, 0.35); animation: wbIn 0.45s cubic-bezier(.2, .9, .3, 1.15) both; }
.welkom-banner.weg { animation: wbUit 0.55s ease forwards; }
@keyframes wbIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wbUit { to { opacity: 0; transform: translate(-50%, -16px); } }
.welkom-banner strong { display: block; font-size: 15px; }
.welkom-banner span { font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.welkom-banner button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- Wisselen van medewerker ---------- */
.wissel-lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wissel-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; min-height: 60px; border: 1.5px solid var(--line-soft); border-radius: 10px; background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.wissel-item:hover { border-color: var(--accent); }
.wissel-item.actief { border-color: var(--accent); background: var(--accent-bg); }
.wissel-item small { display: block; color: var(--ink-faint); font-size: 12px; }

/* ---------- Geen toegang ---------- */
.geen-toegang { max-width: 520px; margin: 40px auto; text-align: center; padding: 34px 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gt-ico { font-size: 34px; }
.geen-toegang p { color: var(--ink-soft); }

/* ---------- Rapportenlijst ---------- */
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.wd-chip { min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--line-soft); border-radius: 20px; background: var(--card); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.wd-chip span { margin-left: 4px; color: var(--ink-faint); font-weight: 500; }
.wd-chip.actief { border-color: var(--ink); background: var(--ink); color: #fff; }
.wd-chip.actief span { color: rgba(255, 255, 255, 0.75); }
.wd-mijn { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; min-height: 44px; cursor: pointer; }
.wd-mijn input { accent-color: var(--accent); width: 18px; height: 18px; }
.wd-vin { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.02em; }
.wd-mw { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wd-moment { white-space: nowrap; font-size: 13px; }
.wd-rapporten .badge { margin-top: 4px; }

/* ---------- Rapport bewerken ---------- */
.wd-vin-chip { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 6px; background: var(--ink); color: #fff; overflow-wrap: anywhere; }
.wd-momenten { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); align-items: center; }
.wd-momenten b { color: var(--ink); font-weight: 600; }
.save-status b { color: var(--amber); }
.wd-balk { position: sticky; bottom: 12px; z-index: 30; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 10px 26px rgba(24, 54, 74, 0.16); font-size: 13.5px; }
.wd-balk b { color: var(--amber); }
.wd-balk .btn { min-height: 44px; }
@media (max-width: 760px) { .wd-balk { bottom: 78px; } }

/* Voertuig + scan */
.wd-scanbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: linear-gradient(120deg, var(--card), var(--accent-bg)); }
.wd-scan-tekst { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.wd-scan-tekst span { color: var(--ink-soft); font-size: 13.5px; }
.wd-scan-acties { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-land { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 10px; font: inherit; font-size: 14px; max-width: 100%; }
.wd-scan-acties .btn { min-height: 44px; }
.wd-scan-stempel { flex-basis: 100%; font-size: 12.5px; color: #1d7a41; }
.wd-velden { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.wd-code { display: inline-block; min-width: 26px; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 10.5px; letter-spacing: 0.02em; text-align: center; text-transform: none; }
.field label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.wd-ai-gevuld { animation: wdGevuld 2.4s ease; }
@keyframes wdGevuld { 0%, 35% { background: #fff3e6; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.18); } 100% { background: #fff; } }
@media (max-width: 520px) { .wd-velden { grid-template-columns: minmax(0, 1fr) !important; } }

.wd-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--blue-pale); cursor: pointer; transition: border-color 0.15s, background 0.15s; min-height: 120px; }
.wd-dropzone:hover, .wd-dropzone.over { border-color: var(--accent); background: var(--accent-bg); }
.wd-dropzone strong { font-size: 15px; }
.wd-dropzone span { color: var(--ink-soft); font-size: 13px; max-width: 420px; }
.wd-dz-ico { font-size: 26px !important; color: var(--accent) !important; line-height: 1; }
.wd-voorbeeld-btn { width: 100%; margin-top: 10px; min-height: 44px; }
.wd-scan-stage { position: relative; border-radius: 12px; overflow: hidden; background: #1b2630; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.wd-scan-stage img { width: 100%; height: 100%; object-fit: contain; }
.wd-scan-dummy { width: 78%; aspect-ratio: 1.55; background: linear-gradient(135deg, #f4ecd8, #e8dcc0); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.wd-scan-dummy span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #3a5a3a; }
.wd-scan-dummy i { height: 8px; border-radius: 4px; background: rgba(24, 54, 74, 0.25); }
.wd-scan-dummy i:nth-child(odd) { width: 70%; }
.wd-scan-lijn { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 18px 4px rgba(255, 119, 0, 0.7); animation: wdScan 1.4s ease-in-out infinite alternate; }
@keyframes wdScan { from { top: 6%; } to { top: 92%; } }
.wd-scan-status { margin-top: 12px; text-align: center; font-weight: 600; color: var(--ink-soft); }
.wd-res-kop { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.wd-res-kop span { color: var(--ink-soft); font-size: 13px; }
.wd-res-lijst { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; border: 1.5px solid var(--line-soft); border-radius: 10px; }
.wd-res-rij { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px; min-height: 44px; animation: wdRij 0.35s ease both; }
.wd-res-rij:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms); }
.wd-res-rij:last-child { border-bottom: 0; }
.wd-res-rij input { accent-color: var(--accent); width: 18px; height: 18px; }
.wd-res-rij.gelijk { color: var(--ink-faint); }
.wd-res-label { color: var(--ink-soft); }
.wd-res-waarde { font-weight: 600; overflow-wrap: anywhere; }
.wd-res-ok { font-size: 11.5px; color: #1d7a41; }
@keyframes wdRij { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wd-res-noot { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
@media (max-width: 520px) {
  .wd-res-rij { grid-template-columns: 22px 44px minmax(0, 1fr); }
  .wd-res-waarde { grid-column: 3; }
  .wd-res-ok { grid-column: 3; }
}

/* Foto's */
.wd-upload { margin-bottom: 14px; }
.wd-voortgang { position: relative; height: 26px; border-radius: 13px; background: var(--blue-pale); overflow: hidden; margin-bottom: 14px; }
.wd-voortgang i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.2s; }
.wd-voortgang span { position: relative; display: block; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 26px; }
.wd-foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wd-foto { margin: 0; border: 1.5px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.wd-foto-img { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 4 / 3; background: #1b2630; cursor: zoom-in; width: 100%; }
.wd-foto-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-foto-nr { position: absolute; left: 8px; bottom: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: rgba(24, 54, 74, 0.85); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wd-foto-tag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 5px; }
.wd-foto figcaption { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.wd-besch { width: 100%; min-height: 58px; resize: vertical; border: 1.5px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.35; background: #fff; }
.wd-besch:focus { outline: none; border-color: var(--accent); }
.wd-besch:placeholder-shown { background: #fffaf3; border-color: #f3c9a3; }
.wd-foto-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wd-foto-rij select { min-height: 44px; border: 1.5px solid var(--line-soft); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; flex: 1 1 110px; min-width: 0; }
.wd-in-rapport { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-height: 44px; cursor: pointer; }
.wd-in-rapport input { accent-color: var(--accent); width: 18px; height: 18px; }
.wd-foto-weg { min-height: 44px; min-width: 44px; border: 0; background: transparent; color: var(--red); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 6px; margin-left: auto; }
@media (max-width: 520px) { .wd-foto-grid { grid-template-columns: minmax(0, 1fr); } }

/* Opname-checklist */
.wd-uitleg { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }
.wd-check-lijst { display: flex; flex-direction: column; }
.wd-check-rij { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 6px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.wd-check-rij:last-child { border-bottom: 0; }
.wd-check-naam { font-size: 14px; font-weight: 500; }
.wd-check-rij select { min-height: 44px; border: 1.5px solid var(--line-soft); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13.5px; background: #fff; width: 100%; }
.wd-check-rij.staat-schade select { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.wd-check-rij.staat-gebruikssporen select { border-color: #e5d3a0; background: var(--amber-bg); color: #7d5f08; font-weight: 600; }
.wd-check-rij.staat-nvt { opacity: 0.6; }
.wd-check-opm { grid-column: 1 / -1; min-height: 44px; border: 1.5px solid var(--line-soft); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; }
.wd-check-rij .btn { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.wd-alles-goed { margin-top: 10px; min-height: 44px; }
@media (max-width: 420px) { .wd-check-rij { grid-template-columns: minmax(0, 1fr) 130px; } }

/* Vrije notitie */
.wd-vrij { width: 100%; min-height: 140px; resize: vertical; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; background: #fff; }
.wd-vrij:focus { outline: none; border-color: var(--accent); }
.wd-vrij-optie { margin-top: 8px; }

/* Afronden */
.wd-controle { padding: 12px 14px; border-radius: 10px; background: var(--amber-bg); border: 1.5px solid #e5d3a0; font-size: 14px; }
.wd-controle ul { margin: 6px 0 6px 18px; }
.wd-controle span { color: var(--ink-soft); font-size: 13px; }
.wd-controle.ok { background: var(--green-bg); border-color: #b6dfc6; display: flex; flex-direction: column; gap: 2px; }
.wd-afrond-feiten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.wd-afrond-feiten dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; }
.wd-afrond-feiten dd { font-weight: 600; }
@media (max-width: 520px) { .wd-afrond-feiten { grid-template-columns: minmax(0, 1fr); } }

/* Nieuw rapport */
.wd-nieuw .modal-body { display: flex; flex-direction: column; gap: 6px; }
.wd-groep { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.wd-groep:last-of-type { border-bottom: 0; }
.wd-groep h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.wd-zoekveld { position: relative; margin-bottom: 12px; }
.wd-zoek-lijst { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 5; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(24, 54, 74, 0.18); max-height: 280px; overflow: auto; }
.wd-zoek-optie { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 10px 12px; min-height: 48px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; font: inherit; color: inherit; cursor: pointer; }
.wd-zoek-optie:hover, .wd-zoek-optie:focus { background: var(--accent-bg); outline: none; }
.wd-zoek-optie span { font-size: 12.5px; color: var(--ink-faint); }
.wd-prijs-hint { font-size: 13px; color: var(--ink-soft); margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wd-concept-melding { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); border: 1.5px solid #e5d3a0; font-size: 13.5px; }
.wd-tip { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.wd-nieuw textarea { width: 100%; resize: vertical; }

/* ---------- Rapport (A4) ---------- */
.rp-vin { display: inline-flex; flex-direction: column; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 10px; border: 1.5px solid var(--rp-ink); border-radius: 4px; line-height: 1.2; }
.rp-vin em { font-family: var(--sans); font-style: normal; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8b97a0; font-weight: 700; }
.rp-code { display: inline-block; min-width: 22px; margin-right: 5px; padding: 0 3px; border-radius: 3px; background: #eef5fa; color: var(--rp-ink); font-size: 8.5px; font-weight: 700; text-align: center; }
.rp-bron { margin: -2px 0 6px; }
.rp-concept { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-family: var(--display); font-weight: 700; font-size: 110px; letter-spacing: 0.14em; color: rgba(255, 119, 0, 0.09); pointer-events: none; z-index: 0; }
.rp-opname { margin-bottom: 6px; }
.rp-staat { display: inline-block; padding: 1px 7px; border-radius: 4px; font-weight: 700; font-size: 10px; }
.rp-staat-schade { background: #fdeee0; color: #c25500; }
.rp-staat-sporen { background: #fbf2d9; color: #7d5f08; }
.rp-opmerking { font-size: 11.5px; line-height: 1.55; white-space: normal; }
.rp-fotogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-foto { margin: 0; break-inside: avoid; border: 1px solid var(--rp-line); border-radius: 4px; overflow: hidden; background: #fff; }
.rp-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #1b2630; }
.rp-foto figcaption { padding: 5px 7px 6px; font-size: 9.5px; line-height: 1.35; }
.rp-foto figcaption b { color: var(--rp-accent); }
.rp-foto figcaption span { display: block; color: #8b97a0; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }
.rp-fotosectie { break-inside: auto; }
@media (max-width: 640px) { .rp-fotogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .rp-fotogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wd-balk, .melding-stack, .welkom-banner { display: none !important; } }

/* Aanraakvlak minimaal 44px voor nieuwe bediening */
.wd-besch { min-height: 64px; }
.wd-scan-acties .btn-ai, .wd-voorbeeld-btn { min-height: 44px; }
