/* ==========================================================================
   Vaatwasser bij de pomp (js/vaatwassers.js): kaart op de toestelpagina,
   tijdlijn "Waar zat deze pomp?", lijst per locatie en de vensters. Bouwt op
   .pk (productkennis.css). Geen gekleurde rand: status = pil + tekst.
   ========================================================================== */
.vb .vb-boven { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; align-items: start; }
.vb .vb-foto { margin: 0; }
.vb .vb-foto a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--alp-surface-muted); }
.vb .vb-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb .vb-foto figcaption { margin-top: 6px; color: var(--alp-text-secondary); font-size: 0.75rem; }
.vb .vb-feiten td:first-child { width: 46%; color: var(--alp-text-secondary); }
.vb .vb-feiten td:last-child { text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.vb .vb-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.vb .vb-knoppen .pk-knop { min-height: 36px; }
.vb .vb-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vb .vb-tl-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--alp-outline) 60%, transparent); }
.vb .vb-tl-item:last-child { border-bottom: 0; }
.vb .vb-tl-ik { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--alp-surface-muted); color: var(--alp-text-primary); font-size: 0.9rem; }
.vb .vb-tl-item.is-weggehaald .vb-tl-ik, .vb .vb-tl-item.is-vervangen .vb-tl-ik { background: var(--alp-status-aandacht-bg); color: var(--alp-status-aandacht-tekst); }
.vb .vb-tl-item.is-geplaatst .vb-tl-ik, .vb .vb-tl-item.is-overgezet .vb-tl-ik { background: var(--alp-status-klaar-bg); color: var(--alp-status-klaar-tekst); }
.vb .vb-tl-kop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.vb .vb-tl-kop strong { color: var(--alp-text-primary); font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }
.vb .vb-tl-kop time { flex: 0 0 auto; color: var(--alp-text-secondary); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.vb .vb-tl-opm { margin: 4px 0 0; color: var(--alp-text-primary); font-size: 0.8125rem; font-style: italic; }
.vb .vb-tl-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vb .vb-tl-fotos a { display: block; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--alp-surface-muted); }
.vb .vb-tl-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb .vb-nr { font-variant-numeric: tabular-nums; }
.vb table.vb-lijst td { vertical-align: top; }
.vb-ap { margin-top: 16px; }
/* Vensters */
.pk-dlg .vb-form { margin-bottom: 8px; }
.pk-dlg fieldset.vb-keuze { display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0 0 10px; padding: 0; border: 0; }
.pk-dlg fieldset.vb-keuze legend { margin: 0 0 4px; padding: 0; color: var(--alp-text-primary); font-size: 0.875rem; font-weight: 600; }
.pk-dlg .vb-keuze label { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--alp-outline) 60%, transparent); font-size: 0.875rem; font-weight: 400; cursor: pointer; }
.pk-dlg .vb-keuze label:last-child { border-bottom: 0; }
.pk-dlg .vb-keuze input[type=radio] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--alp-brand-primary); }
.pk-dlg .vb-keuze label span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-dlg .vb-keuze label strong { font-size: 0.9rem; font-weight: 600; }
.pk-dlg .vb-keuze small { color: var(--alp-text-secondary); font-size: 0.78rem; }
.pk-dlg .vb-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 0; border: 0; }
.pk-dlg .vb-fotos legend { width: 100%; margin-bottom: 4px; font-weight: 600; font-size: 0.875rem; }
.pk-dlg .vb-foto-kies { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; padding: 10px 12px; border: 1px dashed var(--alp-outline); border-radius: 10px; font-size: 0.8125rem; }
.pk-dlg .vb-foto-kies span { order: -1; font-weight: 600; }
.pk-dlg .vb-foto-kies input { width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--alp-text-secondary); font-size: 0.8125rem; }
.pk-dlg .vb-foto-kies input::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-sm); background: var(--alp-surface); color: var(--alp-text-primary); font: inherit; font-weight: 600; cursor: pointer; }
.pk-dlg .vb-fotos .pk-zacht { width: 100%; }
.pk-dlg .vb-fout { flex: 1; margin: 0; color: var(--alp-status-blokkade-tekst); align-self: center; }
.pk-dlg .vb-groot { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; }
/* Eigendom van de pomp: regel in de kaart en de lijst van de dealer (js/eigendom.js) */
.vb .vb-eigendom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--alp-surface-muted); }
.vb .vb-eg-tekst { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.vb .vb-eg-tekst .pk-onder { flex-basis: 100%; }
.pk-dlg .vb-keuze small.vb-gevolg { color: var(--alp-text-primary); font-weight: 500; }
.eg { margin-top: 16px; }
.eg .eg-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 0.7fr); gap: 8px; margin-bottom: 12px; }
.eg .eg-tegel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--alp-outline); border-radius: 12px; background: var(--alp-surface); color: var(--alp-text-primary); font: inherit; text-align: left; cursor: pointer; }
.eg .eg-tegel small { color: var(--alp-text-secondary); font-size: 0.75rem; }
.eg .eg-tegel b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.eg .eg-tegel em { font-style: normal; font-size: 0.72rem; color: var(--alp-status-aandacht-tekst); }
.eg .eg-tegel.is-aandacht { background: var(--alp-status-aandacht-bg); border-color: transparent; }
.eg .eg-tegel.is-gekozen { border-color: var(--alp-brand-primary); box-shadow: 0 0 0 1px var(--alp-brand-primary) inset; }
.eg .eg-klant { margin-bottom: 10px; }
.eg .eg-klant select, .eg .eg-bulk select, .eg .eg-tabel select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-sm); background: var(--alp-surface); color: var(--alp-text-primary); font: inherit; font-size: 0.8125rem; max-width: 100%; }
.eg .eg-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--alp-surface-muted); font-size: 0.875rem; }
.eg .eg-bulk label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.eg table.eg-tabel td, .eg table.eg-tabel th { vertical-align: middle; }
.eg .eg-k-vink { width: 28px; }
/* ruimte binnen de kaart: vinkje en laatste kolom niet tegen de rand */
@media (min-width: 701px) {
    .eg table.eg-tabel th:first-child, .eg table.eg-tabel td:first-child { padding-left: 16px !important; }
    .eg table.eg-tabel th:last-child, .eg table.eg-tabel td:last-child { padding-right: 16px !important; }
}
.eg table.eg-tabel tbody tr:last-child td { border-bottom: 0; }
.eg .eg-k-vink input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--alp-brand-primary); }
.eg .eg-voorstel { color: var(--alp-status-aandacht-tekst); }
.eg #eg-meer { margin-top: 10px; }
@media (max-width: 700px) {
    .eg .eg-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eg .eg-tegel.is-klein { grid-column: span 2; flex-direction: row; align-items: baseline; gap: 8px; }
    .eg .eg-tabel thead { display: none; }
    .eg .eg-tabel, .eg .eg-tabel tbody { display: block; }
    .eg .eg-tabel tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--alp-outline) 60%, transparent); }
    .eg .eg-tabel td { display: block; padding: 0 !important; border: 0; }
    .eg .eg-tabel tbody tr:last-child { border-bottom: 0; }
    .eg .eg-tabel td.eg-k-vink { grid-row: span 3; }
    .eg .eg-tabel td.eg-k-pomp, .eg .eg-tabel td.eg-k-klant, .eg .eg-tabel td.eg-k-vw { grid-column: 2 / 4; }
    .eg .eg-tabel td.eg-k-vw { color: var(--alp-text-secondary); font-size: 0.8125rem; }
    .eg .eg-tabel td.eg-k-soort { grid-column: 2; }
    .eg .eg-tabel td.eg-k-van { grid-column: 3; }
    .eg .eg-tabel td select { width: 100%; }
}
@media (max-width: 700px) {
    .vb .vb-boven { grid-template-columns: 1fr; }
    .vb .vb-foto { max-width: 360px; }
    .vb table.vb-lijst th:nth-child(2), .vb table.vb-lijst td:nth-child(2) { display: none; }
}
