/* RW-Customs mockup: beheer. Voorvoegsel ad- (beheer) en ed- (editor). Tokens 1-op-1 uit het Shopro-beheer (app.css). */
.is-beheer {
  --ad-bg: #f7f8fa; --ad-kaart: #ffffff; --ad-was: #f3f4f7; --ad-was2: #f9fafb;
  --ad-lijn: #e9eaef; --ad-as: #d9dbe3;
  --ad-inkt: #151821; --ad-sub: #5f6b7d; --ad-zacht: #7c8597;
  --ad-knop-bg: #16181f; --ad-knop-inkt: #ffffff;
  --ad-data: #2a78d6; --ad-data-was: #eaf2fc;
  --ad-hoek: 13px; --ad-hoek-klein: 8px;
  --ad-schaduw: 0 1px 2px rgba(16, 24, 40, .05);
  --ad-blauw-bg: #eef4fd; --ad-blauw: #1a5fb4; --ad-blauw-stip: #2a78d6;
  --ad-groen-bg: #e9f6ee; --ad-groen: #116329; --ad-groen-stip: #17984b;
  --ad-oranje-bg: #fdf4e7; --ad-oranje: #955104; --ad-oranje-stip: #e8a13c;
  --ad-grijs-bg: #f1f2f4; --ad-grijs: #52596b; --ad-grijs-stip: #98a1ad;
  --ad-rood-bg: #fdeeee; --ad-rood: #b42318; --ad-rood-stip: #d03b3b;
  --ad-balk-h: 60px;
  margin: 0; background: var(--ad-bg); color: var(--ad-inkt);
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.is-beheer *, .is-beheer *::before, .is-beheer *::after { box-sizing: border-box; }
.is-beheer :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.is-beheer :where(ul, ol) { padding: 0; list-style: none; }
.is-beheer :where(a) { color: inherit; text-decoration: none; }
.is-beheer :where(button, input, select, textarea) { font: inherit; color: inherit; }
.is-beheer img { display: block; max-width: 100%; }
.ad-ico { width: 18px; height: 18px; }
.ad-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ad-zacht { color: var(--ad-zacht); font-weight: 400; }
.ad-r { text-align: right; }
.ad-getal { font-variant-numeric: tabular-nums; }

/* ---------- balk en menu ---------- */
.ad-balk { position: sticky; top: 0; z-index: 30; height: var(--ad-balk-h); background: var(--ad-kaart); border-bottom: 1px solid var(--ad-lijn); }
.ad-balk-in { display: flex; align-items: center; gap: 24px; height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.ad-merk { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.ad-merk-teken { display: block; width: 92px; height: 25px; background: var(--ad-inkt); -webkit-mask: url(../beeld/logo-merk.png) left center / contain no-repeat; mask: url(../beeld/logo-merk.png) left center / contain no-repeat; }
.ad-merk-naam { font-weight: 600; font-size: 14px; padding-left: 12px; border-left: 1px solid var(--ad-lijn); color: var(--ad-sub); }
.ad-menu { display: flex; align-items: center; gap: 4px; }
.ad-menu-item { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--ad-hoek-klein); background: none; color: var(--ad-sub); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ad-menu-item:hover { background: var(--ad-was); color: var(--ad-inkt); }
.ad-menu-item.is-aan { background: var(--ad-was); color: var(--ad-inkt); }
.ad-menu-item .ad-ico { width: 14px; height: 14px; }
.ad-menu-groep { position: relative; }
.ad-menu-paneel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; display: none; width: 300px; padding: 6px; background: var(--ad-kaart); border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek); box-shadow: 0 16px 40px rgba(16, 24, 40, .14); }
.ad-menu-groep.is-open .ad-menu-paneel { display: grid; }
.ad-menu-link { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--ad-hoek-klein); }
.ad-menu-link:hover, .ad-menu-link.is-aan { background: var(--ad-was); }
.ad-menu-link-naam { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ad-menu-link-sub { font-size: 13px; color: var(--ad-zacht); }
.ad-teller { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ad-blauw-stip); color: #ffffff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-balk-rechts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ad-publiceer { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--ad-oranje-stip); border-radius: 999px; background: var(--ad-oranje-bg); color: var(--ad-oranje); font-weight: 500; white-space: nowrap; }
.ad-publiceer span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ad-knop-bg); color: #ffffff; font-size: 13px; }
.ad-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ad-inkt); color: #ffffff; font-weight: 600; flex: none; }
.ad-mknop { display: none; width: 40px; height: 40px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-kaart); place-items: center; cursor: pointer; }
.ad-mm { position: fixed; inset: var(--ad-balk-h) 0 0; z-index: 29; background: var(--ad-kaart); overflow-y: auto; }
.ad-mm-in { display: grid; padding: 12px 16px 32px; }
.ad-mm a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--ad-lijn); font-size: 16px; font-weight: 500; }
.ad-mm a.is-aan { color: var(--ad-data); }
.ad-mm-kop { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ad-zacht); }

/* ---------- hoofdvlak ---------- */
.ad-main { max-width: 1440px; margin: 0 auto; padding: 28px 24px 64px; }
.ad--vol .ad-main { max-width: none; padding: 0; }
.ad-kop { margin-bottom: 24px; }
.ad-terug { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-bottom: 6px; color: var(--ad-sub); font-weight: 500; }
.ad-terug .ad-ico { width: 16px; height: 16px; }
.ad-terug:hover { color: var(--ad-inkt); }
.ad-kop-rij { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ad-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.ad-sub { margin-top: 6px; color: var(--ad-sub); max-width: 760px; }
.ad-kop-acties { display: flex; align-items: center; gap: 10px; flex: none; }
.ad-voorbeeld { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ad-oranje-bg); color: var(--ad-oranje); font-size: 13px; font-weight: 500; }

/* ---------- knoppen ---------- */
.ad-knop { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--ad-knop-bg); border-radius: var(--ad-hoek-klein); background: var(--ad-knop-bg); color: var(--ad-knop-inkt); font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; }
.ad-knop:hover { background: #2b2e38; }
.ad-knop:disabled { opacity: .45; cursor: default; }
.ad-knop--licht { background: var(--ad-kaart); border-color: var(--ad-lijn); color: var(--ad-inkt); }
.ad-knop--licht:hover { background: var(--ad-was); border-color: var(--ad-as); }
.ad-knop--klein { height: 32px; padding: 0 12px; font-size: 13px; }
.ad-knop--klein .ad-ico { width: 16px; height: 16px; }
.ad-knop--gevaar { background: var(--ad-kaart); border-color: #f2c6c3; color: var(--ad-rood); }
.ad-knop--gevaar:hover { background: var(--ad-rood-bg); border-color: var(--ad-rood-stip); }
.ad-knop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-ikoon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--ad-hoek-klein); background: none; color: var(--ad-sub); cursor: pointer; }
.ad-ikoon:hover { background: var(--ad-was); color: var(--ad-inkt); }
.ad-ikoon:disabled { opacity: .35; cursor: default; background: none; }
.ad-knoppen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ad-knoppen--links { justify-content: flex-start; }
.ad-link { color: var(--ad-data); font-weight: 500; }
.ad-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chips ---------- */
.ad-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ad-chip-stip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ad-chip--blauw { background: var(--ad-blauw-bg); color: var(--ad-blauw); }
.ad-chip--blauw .ad-chip-stip { background: var(--ad-blauw-stip); }
.ad-chip--groen { background: var(--ad-groen-bg); color: var(--ad-groen); }
.ad-chip--groen .ad-chip-stip { background: var(--ad-groen-stip); }
.ad-chip--oranje { background: var(--ad-oranje-bg); color: var(--ad-oranje); }
.ad-chip--oranje .ad-chip-stip { background: var(--ad-oranje-stip); }
.ad-chip--grijs { background: var(--ad-grijs-bg); color: var(--ad-grijs); }
.ad-chip--grijs .ad-chip-stip { background: var(--ad-grijs-stip); }
.ad-chip--rood { background: var(--ad-rood-bg); color: var(--ad-rood); }
.ad-chip--rood .ad-chip-stip { background: var(--ad-rood-stip); }
.ad-titel .ad-chip { font-size: 13px; letter-spacing: 0; }

/* ---------- kaarten en raster ---------- */
.ad-kaart { background: var(--ad-kaart); border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek); box-shadow: var(--ad-schaduw); }
.ad-kaart + .ad-kaart { margin-top: 16px; }
.ad-kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.ad-kaart-titel { font-size: 15px; font-weight: 600; }
.ad-kaart-romp { padding: 16px 20px 20px; }
.ad-kaart--lijst .ad-kaart-romp, .ad-kaart--media .ad-kaart-romp { padding: 8px; }
.ad-kaart--zacht { background: var(--ad-was2); box-shadow: none; }
.ad-raster { display: grid; gap: 16px; align-items: start; }
.ad-raster--dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ad-raster--detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ad-kolom { min-width: 0; }

/* kerncijfers */
.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 16px; }
.ad-kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; padding: 18px 20px; background: var(--ad-kaart); border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek); box-shadow: var(--ad-schaduw); transition: border-color 120ms; }
.ad-kpi:hover { border-color: var(--ad-as); }
.ad-kpi-label { color: var(--ad-sub); font-weight: 500; }
.ad-kpi-getal { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ad-kpi-sub { font-size: 13px; color: var(--ad-zacht); }

/* lijsten met regels */
.ad-lijst { display: grid; }
.ad-lijst > li + li { border-top: 1px solid var(--ad-lijn); }
.ad-regel { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-radius: var(--ad-hoek-klein); }
a.ad-regel:hover { background: var(--ad-was2); }
.ad-regel--cel { padding: 4px 0; min-height: 0; }
.ad-thumb { position: relative; display: block; width: 72px; height: 54px; flex: none; overflow: hidden; border-radius: 6px; background: var(--ad-was); }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb--leeg, .ad-thumb--soort { display: grid; place-items: center; color: var(--ad-sub); }
.ad-thumb--groot { width: 120px; height: 90px; }
.ad-regel-tekst { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ad-regel-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.ad-regel-soort { font-size: 13px; font-weight: 500; color: var(--ad-zacht); }
.ad-regel-sub { color: var(--ad-sub); overflow-wrap: anywhere; }
.ad-regel-rechts { display: flex; align-items: center; gap: 12px; flex: none; }
.ad-regel-tijd { font-size: 13px; color: var(--ad-zacht); white-space: nowrap; }
.ad-regel-bedrag { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-regel.is-ongelezen .ad-regel-titel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ad-blauw-stip); }
.ad-lijst--groot .ad-regel { min-height: 76px; }
.ad-leeg { color: var(--ad-zacht); }
.ad-leeg-groot { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; text-align: center; color: var(--ad-sub); }
.ad-leeg-titel { font-size: 16px; font-weight: 600; color: var(--ad-inkt); }

/* te doen, snel, stappen */
.ad-todo { display: grid; }
.ad-todo li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; }
.ad-todo li + li { border-top: 1px solid var(--ad-lijn); }
.ad-todo li > span { flex: 1; }
.ad-todo .ad-ico { color: var(--ad-sub); }
.ad-snel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ad-snel-knop { display: grid; justify-items: start; gap: 8px; padding: 14px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); font-weight: 500; }
.ad-snel-knop:hover { background: var(--ad-was2); border-color: var(--ad-as); }
.ad-snel-knop .ad-ico { color: var(--ad-data); }
.ad-stappen { display: grid; gap: 8px; padding-left: 20px !important; list-style: decimal !important; color: var(--ad-sub); }

/* tabs en filters */
.ad-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--ad-lijn); overflow-x: auto; scrollbar-width: none; }
.ad-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ad-sub); font-weight: 500; white-space: nowrap; cursor: pointer; margin-bottom: -1px; }
.ad-tab:hover { color: var(--ad-inkt); }
.ad-tab.is-aan { color: var(--ad-inkt); border-bottom-color: var(--ad-inkt); }
.ad-tab-tel { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ad-was); color: var(--ad-sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.ad-filterrij { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ad-filterchip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--ad-lijn); border-radius: 999px; background: var(--ad-kaart); color: var(--ad-sub); font-weight: 500; font-size: 13px; }
.ad-filterchip.is-aan { background: var(--ad-inkt); border-color: var(--ad-inkt); color: #ffffff; }
.ad-zoek { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); height: 38px; padding: 0 12px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-kaart); color: var(--ad-sub); }
.ad-zoek input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ad-inkt); font-size: 14px; }

/* tabellen */
.ad-tabel { width: 100%; border-collapse: collapse; }
.ad-tabel th { padding: 10px 12px; border-bottom: 1px solid var(--ad-lijn); text-align: left; font-size: 13px; font-weight: 500; color: var(--ad-zacht); white-space: nowrap; }
.ad-tabel td { padding: 8px 12px; border-bottom: 1px solid var(--ad-lijn); vertical-align: middle; }
.ad-tabel tr:last-child td { border-bottom: 0; }
.ad-tabel .ad-r { text-align: right; }
.ad-tabel--autos tbody tr:hover { background: var(--ad-was2); }
.ad-regels td { padding: 6px 8px 6px 0; }
.ad-regels th { padding: 6px 8px 6px 0; }
.ad-regels-aantal { width: 84px; }
.ad-regels-bedrag { width: 140px; }
.ad-regels-weg { width: 40px; }
.ad-regels tfoot th, .ad-regels tfoot td { padding-top: 14px; border-top: 1px solid var(--ad-lijn); font-size: 16px; font-weight: 600; color: var(--ad-inkt); font-variant-numeric: tabular-nums; }

/* gegevens */
.ad-dl { display: grid; }
.ad-dl > div { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--ad-lijn); }
.ad-dl > div:first-child { border-top: 0; padding-top: 0; }
.ad-dl dt { color: var(--ad-zacht); }
.ad-dl dd { overflow-wrap: anywhere; }
.ad-dl--smal > div { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); }
.ad-bericht { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--ad-as); border-radius: 0 var(--ad-hoek-klein) var(--ad-hoek-klein) 0; background: var(--ad-was2); color: var(--ad-inkt); white-space: pre-line; }
.ad-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ad-foto-knop { padding: 0; border: 0; background: none; cursor: zoom-in; }
.ad-klant-naam { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.ad-auto { display: flex; align-items: center; gap: 16px; padding: 8px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); }
.ad-auto:hover { border-color: var(--ad-as); }
.ad-auto img { width: 132px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; flex: none; }
.ad-waarschuwing { display: flex; gap: 10px; margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--ad-hoek-klein); background: var(--ad-oranje-bg); color: var(--ad-oranje); }
.ad-waarschuwing .ad-ico { flex: none; margin-top: 1px; }
.ad-opbouw-lijst { display: grid; gap: 12px; justify-items: start; }
.ad-opbouw-rij { display: grid; gap: 10px; justify-items: start; width: 100%; padding: 14px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-was2); }
.ad-opbouw-rij .ad-velden { width: 100%; }
.ad-herhaal-rij--drie { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.6fr) auto; }
.ad-schakel--ruim { margin-bottom: 14px; }
.ad-auto-tekst { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ad-auto-prijs { font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-auto + .ad-knop { margin-top: 14px; }
.ad-notitie { display: grid; gap: 8px; justify-items: start; }
.ad-notities { display: grid; margin-top: 14px; }
.ad-notities li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--ad-lijn); }
.ad-notities span { font-size: 13px; color: var(--ad-zacht); }
.ad-tijdlijn { position: relative; display: grid; gap: 14px; padding-left: 18px; }
.ad-tijdlijn::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--ad-lijn); }
.ad-tijdlijn li { position: relative; display: grid; gap: 1px; }
.ad-tijdlijn li::before { content: ''; position: absolute; left: -18px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ad-kaart); border: 2px solid var(--ad-as); }
.ad-tijdlijn li:first-child::before { border-color: var(--ad-blauw-stip); }
.ad-tijdlijn-tijd { font-size: 13px; color: var(--ad-zacht); }
.ad-melding { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--ad-hoek-klein); }
.ad-melding--goed { background: var(--ad-groen-bg); color: var(--ad-groen); }
.ad-melding:not(.ad-melding--goed) { background: var(--ad-blauw-bg); color: var(--ad-blauw); }
.ad-melding .ad-ico { flex: none; }
.ad-akkoord { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 16px 20px; border: 1px solid #b7e2c6; border-radius: var(--ad-hoek); background: var(--ad-groen-bg); color: var(--ad-groen); }
.ad-akkoord > .ad-ico { width: 22px; height: 22px; flex: none; }
.ad-akkoord-tekst { flex: 1; min-width: 0; }
.ad-akkoord-titel { font-weight: 600; color: var(--ad-inkt); }
.ad-akkoord-sub { font-size: 13px; }
.ad-akkoord-knoppen { display: flex; gap: 8px; flex: none; }
.ad-afvink { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-was2); }
.ad-afvink ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-top: 8px; }
.ad-afvink li { display: flex; align-items: center; gap: 8px; color: var(--ad-oranje); }
.ad-afvink li.is-klaar { color: var(--ad-groen); }
.ad-afvink .ad-ico { width: 16px; height: 16px; }
.ad-min { margin-right: 6px; color: var(--ad-sub); font-weight: 600; }
.ad-regel-r.is-inruil td:nth-child(3) { white-space: nowrap; }
.ad-regel-r.is-inruil .ad-veld--getal { display: inline-block; width: calc(100% - 16px); }
.ad-mbalk { display: none; }
.ed-wijz { display: grid; gap: 4px; margin: 4px 0 12px; padding-left: 18px !important; list-style: disc !important; }
.ed-doos-zoek { padding: 0 24px 12px; }
.ed-doos-zoek .ad-zoek { width: 100%; }
.ed-mtabs { display: none; }

/* ---------- velden ---------- */
.ad-velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.ad-velden > .ad-veldvak:not(.ad-veldvak--half) { grid-column: 1 / -1; }
.ad-veldvak { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }

.ad-kaart-romp > :last-child, .ad-kaart-romp > .ad-velden:last-child > .ad-veldvak:last-child, .ad-kaart-romp > .ad-velden:last-child > .ad-veldvak--half:nth-last-child(2):not(:only-child) { margin-bottom: 0; }
.ad-veldnaam { font-weight: 500; font-size: 13px; color: var(--ad-sub); }
.ad-veldnaam--klein { font-size: 13px; }
.ad-veld { width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-kaart); color: var(--ad-inkt); font-size: 14px; line-height: 1.45; transition: border-color 120ms; -webkit-appearance: none; appearance: none; }
.ad-veld:hover { border-color: var(--ad-as); }
.ad-veld:focus { outline: none; border-color: var(--ad-data); }
.ad-veld:disabled { background: var(--ad-was2); color: var(--ad-sub); }
textarea.ad-veld { resize: vertical; }
.ad-veld--getal { text-align: right; font-variant-numeric: tabular-nums; }
.ad-kiezer { position: relative; display: block; }
.ad-kiezer select { width: 100%; height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-kaart); font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ad-kiezer > .ad-ico { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--ad-sub); }
.ad-kiezer--status { width: 190px; }
.ad-hulp { margin-top: 6px; font-size: 13px; color: var(--ad-zacht); }
.ad-hulp--boven { margin: 0 0 12px; }
.ad-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ad-was); }
.ad-seg--vol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.ad-seg-knop { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ad-sub); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ad-seg-knop.is-aan { background: var(--ad-kaart); color: var(--ad-inkt); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.ad-schakels { display: grid; gap: 10px; margin-top: 4px; }
.ad-schakel { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ad-schakel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-schakel-baan { position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; background: var(--ad-as); transition: background 120ms; }
.ad-schakel-baan::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform 120ms; }
.ad-schakel input:checked + .ad-schakel-baan { background: var(--ad-groen-stip); }
.ad-schakel input:checked + .ad-schakel-baan::after { transform: translateX(16px); }
.ad-schakel input:focus-visible + .ad-schakel-baan { box-shadow: 0 0 0 3px var(--ad-data-was); }
.ad-adresveld { display: flex; align-items: center; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-was2); }
.ad-adresveld > span { padding: 0 4px 0 11px; color: var(--ad-zacht); }
.ad-adresveld .ad-veld { border: 0; border-radius: 0 var(--ad-hoek-klein) var(--ad-hoek-klein) 0; }
.ad-kopieer { display: flex; gap: 8px; }
.ad-vink { width: 20px; height: 20px; border-color: var(--ad-as); }

/* auto: kenteken en foto's */
.ad-rdw { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rw-plaat--beheer { width: 220px; height: 48px; }
.rw-plaat--beheer input { font-size: 22px; }
.ad-fotogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ad-fotovak { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ad-hoek-klein); background: var(--ad-was); cursor: grab; }
.ad-fotovak img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ad-fotovak.is-sleep { opacity: .4; }
.ad-fotovak.is-doel { outline: 2px solid var(--ad-data); outline-offset: 2px; }
.ad-fotovak-label { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(21, 24, 33, .8); color: #ffffff; font-size: 13px; font-weight: 600; }
.ad-fotovak-weg { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(21, 24, 33, .72); color: #ffffff; cursor: pointer; opacity: 0; transition: opacity 120ms; }
.ad-fotovak-weg .ad-ico { width: 14px; height: 14px; }
.ad-fotovak:hover .ad-fotovak-weg, .ad-fotovak:focus-within .ad-fotovak-weg { opacity: 1; }
.ad-fotovak-greep { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--ad-inkt); opacity: 0; }
.ad-fotovak-greep .ad-ico { width: 14px; height: 14px; }
.ad-fotovak:hover .ad-fotovak-greep { opacity: 1; }
.ad-fotovak--nieuw { display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--ad-as); background: var(--ad-was2); color: var(--ad-sub); font-weight: 500; font-size: 13px; cursor: pointer; text-align: center; }
.ad-fotovak--nieuw:hover { border-color: var(--ad-data); color: var(--ad-data); }
.ad-fotovak--nieuw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-herhaal { display: grid; gap: 8px; justify-items: start; }
.ad-herhaal-rij { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; width: 100%; }

/* ---------- dialoog ---------- */
.ad-dlg-achter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15, 17, 22, .45); font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: #151821; }
.ad-dlg { display: flex; flex-direction: column; width: min(560px, 100%); max-height: calc(100vh - 48px); background: #ffffff; border-radius: 16px; box-shadow: 0 30px 80px rgba(15, 17, 22, .3); overflow: hidden; }
.ad-dlg--breed { width: min(1080px, 100%); }
.ad-dlg-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; }
.ad-dlg-titel { font-size: 18px; font-weight: 600; }
.ad-dlg-romp { padding: 4px 24px 20px; overflow-y: auto; }
.ad-dlg-romp p + p { margin-top: 10px; }
.ad-dlg-voet { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid #e9eaef; }
.ad-mail { margin-top: 16px; padding: 16px; border: 1px solid #e9eaef; border-radius: 10px; background: #f9fafb; }
.ad-mail p + p { margin-top: 10px; }
.ad-mail-knop { display: inline-block; padding: 8px 14px; border-radius: 6px; background: #16181f; color: #ffffff; font-weight: 500; }
.ad-mail-klein { font-size: 13px; color: #7c8597; overflow-wrap: anywhere; }
.ad-noot { margin-top: 14px; font-size: 13px; color: #7c8597; }

/* ---------- editor ---------- */
.ed { display: flex; flex-direction: column; height: calc(100vh - var(--ad-balk-h)); height: calc(100dvh - var(--ad-balk-h)); }
.ed-balk { display: flex; align-items: center; gap: 16px; height: 56px; flex: none; padding: 0 16px 0 20px; background: var(--ad-kaart); border-bottom: 1px solid var(--ad-lijn); }
.ad-terug--balk { margin: 0; }
.ed-balk-titel { display: grid; min-width: 0; padding-left: 16px; border-left: 1px solid var(--ad-lijn); }
.ed-balk-naam { font-weight: 600; white-space: nowrap; }
.ed-balk-pad { font-size: 13px; color: var(--ad-zacht); white-space: nowrap; }
.ed-apparaten { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 10px; background: var(--ad-was); }
.ed-app { display: grid; place-items: center; width: 36px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ad-sub); cursor: pointer; }
.ed-app.is-aan { background: var(--ad-kaart); color: var(--ad-inkt); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.ed-balk-rechts { display: flex; align-items: center; gap: 8px; }
.ed-status { font-size: 13px; color: var(--ad-zacht); white-space: nowrap; }
.ed-romp { display: grid; grid-template-columns: 380px minmax(0, 1fr); flex: 1; min-height: 0; }
.ed-paneel { display: flex; flex-direction: column; min-height: 0; background: var(--ad-kaart); border-right: 1px solid var(--ad-lijn); }
.ed-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--ad-lijn); flex: none; }
.ed-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ad-sub); font-weight: 500; cursor: pointer; margin-bottom: -1px; }
.ed-tab.is-aan { color: var(--ad-inkt); border-bottom-color: var(--ad-inkt); }
.ed-paneel-romp { flex: 1; overflow-y: auto; padding: 12px; }
.ed-blok { border: 1px solid var(--ad-lijn); border-radius: 10px; background: var(--ad-kaart); transition: border-color 120ms, box-shadow 120ms; }
.ed-blok:hover { border-color: var(--ad-as); }
.ed-blok.is-open { border-color: var(--ad-data); box-shadow: 0 0 0 3px var(--ad-data-was); }
.ed-blok.is-verborgen .ed-blok-naam { opacity: .5; }
.ed-blok.is-sleep { opacity: .4; }
.ed-blok.is-doel { box-shadow: 0 -3px 0 var(--ad-data); }
.ed-blok-kop { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 4px; }
.ed-greep { display: grid; place-items: center; width: 22px; height: 32px; color: var(--ad-zacht); cursor: grab; flex: none; }
.ed-greep .ad-ico { width: 16px; height: 16px; }
.ed-blok-naam { display: grid; gap: 1px; flex: 1; min-width: 0; padding: 4px 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 6px; }
.ed-blok-soort { font-weight: 600; font-size: 14px; }
.ed-blok-sub { font-size: 13px; color: var(--ad-zacht); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ed-blok-acties { position: relative; display: flex; align-items: center; flex: none; }
.ed-meer-menu { position: absolute; top: 36px; right: 0; z-index: 10; display: grid; width: 180px; padding: 4px; background: var(--ad-kaart); border: 1px solid var(--ad-lijn); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.ed-meer-menu[hidden] { display: none; }
.ed-meer-menu button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.ed-meer-menu button:hover { background: var(--ad-was); }
.ed-meer-menu button:disabled { opacity: .4; cursor: default; background: none; }
.ed-meer-menu .ad-ico { width: 16px; height: 16px; color: var(--ad-sub); }
.ed-meer-menu .is-gevaar { color: var(--ad-rood); }
.ed-meer-menu .is-gevaar .ad-ico { color: var(--ad-rood); }
.ed-velden { padding: 4px 14px 16px; border-top: 1px solid var(--ad-lijn); }
.ed-uitleg { margin: 10px 0 14px; }
.ed-uitleg span { display: block; margin-top: 2px; }
.ed-tussen { display: flex; align-items: center; justify-content: center; width: 100%; height: 14px; padding: 0; border: 0; background: none; color: var(--ad-data); cursor: pointer; opacity: 0; transition: opacity 120ms, height 120ms; }
.ed-tussen span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--ad-data-was); font-size: 13px; font-weight: 500; }
.ed-tussen .ad-ico, .ed-tussen .rw-ico { width: 14px; height: 14px; }
.ed-tussen:hover, .ed-tussen:focus-visible { opacity: 1; height: 28px; }
.ed-nieuw { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 12px; border: 1px dashed var(--ad-as); border-radius: 10px; background: var(--ad-was2); color: var(--ad-inkt); font-weight: 500; cursor: pointer; }
.ed-nieuw:hover { border-color: var(--ad-data); color: var(--ad-data); background: var(--ad-data-was); }
.ed-weggooien { margin-top: 12px; }
.ed-schakel { margin-bottom: 14px; }
.ed-knopveld { gap: 6px; }
.ed-fotoveld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ed-foto { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-was); cursor: pointer; }
.ed-foto img { width: 100%; height: 100%; object-fit: cover; }
.ed-foto span { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(21, 24, 33, .78); color: #ffffff; font-size: 13px; font-weight: 500; }
.ed-foto--leeg { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--ad-sub); }
.ed-foto--leeg span { position: static; background: none; color: inherit; }
.ed-uitsnede { display: grid; gap: 6px; }
.ed-uitsnede-raster { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px; }
.ed-uitsnede-raster button { width: 20px; height: 20px; padding: 0; border: 1px solid var(--ad-as); border-radius: 4px; background: var(--ad-kaart); cursor: pointer; }
.ed-uitsnede-raster button.is-aan { background: var(--ad-data); border-color: var(--ad-data); }
.ed-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-fotos-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ad-was); }
.ed-fotos-item img { width: 100%; height: 100%; object-fit: cover; }
.ed-fotos-weg { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(21, 24, 33, .72); color: #ffffff; cursor: pointer; }
.ed-fotos-weg .ad-ico { width: 12px; height: 12px; }
.ed-fotos-plus { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 4 / 3; border: 1px dashed var(--ad-as); border-radius: 6px; background: var(--ad-was2); color: var(--ad-sub); font-size: 13px; cursor: pointer; }
.ed-lijst { gap: 6px; }
.ed-item { border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); }
.ed-item-kop { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 2px; }
.ed-item-naam { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 34px; padding: 0 6px; border: 0; background: none; text-align: left; font-weight: 500; cursor: pointer; }
.ed-item-naam span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-item-naam .ad-ico { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform 120ms; color: var(--ad-zacht); }
.ed-item.is-open .ed-item-naam .ad-ico { transform: none; }
.ed-item-velden { padding: 6px 10px 10px; border-top: 1px solid var(--ad-lijn); }
.ed-google { margin: 4px 0 16px; padding: 14px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); }
.ed-google-pad { font-size: 13px; color: #4d5156; }
.ed-google-titel { margin-top: 2px; font-size: 18px; line-height: 1.3; color: #1a0dab; }
.ed-google-tekst { margin-top: 4px; font-size: 13px; color: #4d5156; }
.ed-voorbeeld { position: relative; display: grid; place-items: start center; padding: 24px; background: #e9ebf0; overflow: hidden; }
.ed-raam { position: relative; overflow: hidden; border-radius: 10px; background: #0b0b0c; box-shadow: 0 24px 60px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .08); }
.ed-raam iframe { display: block; border: 0; transform-origin: 0 0; background: #0b0b0c; }
.ed-raam--telefoon { border-radius: 28px; box-shadow: 0 24px 60px rgba(16, 24, 40, .22), 0 0 0 8px #15161a; }

/* blokkendoos */
.ed-doos { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; flex: 1; border-top: 1px solid #e9eaef; overflow: hidden; }
.ed-doos-rubrieken { display: grid; align-content: start; gap: 2px; padding: 12px; border-right: 1px solid #e9eaef; overflow-y: auto; }
.ed-doos-rubrieken button { display: grid; gap: 1px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 500; cursor: pointer; }
.ed-doos-rubrieken button:hover { background: #f3f4f7; }
.ed-doos-rubrieken button.is-aan { background: #16181f; color: #ffffff; }
.ed-doos-rubriek-sub { font-size: 13px; font-weight: 400; opacity: .7; }
.ed-doos-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-content: start; padding: 16px; overflow-y: auto; max-height: calc(100vh - 220px); }
.ed-doos-blok { display: grid; gap: 4px; padding: 10px; border: 1px solid #e9eaef; border-radius: 12px; background: #ffffff; text-align: left; cursor: pointer; transition: border-color 120ms, box-shadow 120ms; }
.ed-doos-blok:hover { border-color: #2a78d6; box-shadow: 0 0 0 3px #eaf2fc; }
.ed-doos-naam { margin-top: 6px; font-weight: 600; }
.ed-doos-uitleg { font-size: 13px; color: #5f6b7d; }
.ed-schets { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; background: #f3f4f7; overflow: hidden; }
.ed-schets > span { position: absolute; border-radius: 3px; }
.ed-schets-beeld { background: linear-gradient(135deg, #2a2d35, #4a4f5c); }
.ed-schets-kop { background: #151821; }
.ed-schets-tekst { background: #c5cad6; }
.ed-schets-knop { background: #16181f; }
.ed-schets-rand { border: 1.5px solid #9aa2b3; }
.ed-schets-accent { background: #caa76c; }
.ed-schets-vlak { background: #e2e5ec; }
.ed-schets-plaat { background: #f6c700; border: 1.5px solid #151821; }
.ed-schets-kaart { background: repeating-linear-gradient(45deg, #dfe3ea 0 6px, #e9ecf1 6px 12px); }
.ed-schets-goud { background: linear-gradient(135deg, #8a6a27, #e6c56b); }
.ed-schets-rood { background: linear-gradient(135deg, #5a0f16, #b0303b); }
.ed-schets-chroom { background: linear-gradient(120deg, #7d838a, #f4f6f8, #7d838a); }

/* foto kiezen en mediabibliotheek */
.ed-kies-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid #e9eaef; }
.ed-kies-romp { min-height: 320px; padding-top: 16px; }
.ed-kies-auto { max-width: 420px; margin-bottom: 12px; }
.ed-media-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ed-media-raster--groot { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding: 8px; }
.ed-media-item { position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #f3f4f7; cursor: pointer; }
.ed-media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.ed-media-item:hover img { transform: scale(1.04); }
.ed-media-item.is-aan { outline: 3px solid #2a78d6; outline-offset: -3px; }
.ed-media-vink { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2a78d6; color: #ffffff; }
.ed-media-vink .ad-ico { width: 14px; height: 14px; stroke-width: 2.4; }
.ed-media-label { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(21, 24, 33, .78); color: #ffffff; font-size: 13px; font-weight: 600; }
.ed-media-upload { display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed #d9dbe3; background: #f9fafb; color: #5f6b7d; font-weight: 500; font-size: 13px; }
.ed-media-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ed-media-groep { padding: 12px; }
.ed-media-groep + .ed-media-groep { border-top: 1px solid var(--ad-lijn); }
.ed-media-groepkop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ed-media-strook { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ed-media-info img { width: 100%; border-radius: 10px; margin-bottom: 16px; }

/* uiterlijk */
.ed-groepkop { margin: 18px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ad-zacht); }
.ed-groepkop:first-child { margin-top: 4px; }
.ed-stijlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-stijlen--drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-stijl { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--ad-lijn); border-radius: 10px; background: var(--ad-kaart); text-align: left; cursor: pointer; }
.ed-stijl:hover { border-color: var(--ad-as); }
.ed-stijl.is-aan { border-color: var(--ad-data); box-shadow: 0 0 0 3px var(--ad-data-was); }
.ed-stijl-naam { margin-top: 4px; font-weight: 600; }
.ed-stijl-sub { font-size: 13px; color: var(--ad-zacht); }
.ed-mini { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.ed-mini--nacht { background: #0b0b0c; }
.ed-mini--galerie { background: #f4f3ef; }
.ed-mini-kop { position: absolute; left: 8%; right: 8%; top: 8%; height: 6%; border-radius: 2px; background: currentColor; }
.ed-mini--nacht .ed-mini-kop { color: #3a3a3e; }
.ed-mini--galerie .ed-mini-kop { color: #d6d3cb; }
.ed-mini-beeld { position: absolute; left: 8%; right: 8%; top: 20%; height: 40%; border-radius: 2px; background: linear-gradient(135deg, #2a2d35, #5a4030); }
.ed-mini-r { position: absolute; left: 8%; right: 8%; top: 66%; bottom: 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.ed-mini-r span { border-radius: 2px; background: #4a4f5c; }
.ed-mini--galerie .ed-mini-r span { background: #b8b4aa; }
.ed-kleur { display: block; height: 32px; border-radius: 6px; }
.ed-kleur--champagne { background: #caa76c; }
.ed-kleur--rood { background: #e0313f; }
.ed-kleur--wit { background: linear-gradient(90deg, #0b0b0c 50%, #f2f0eb 50%); box-shadow: inset 0 0 0 1px var(--ad-lijn); }
.ed-hoek { display: block; height: 32px; border: 2px solid var(--ad-inkt); }
.ed-hoek--strak { border-radius: 2px; }
.ed-hoek--zacht { border-radius: 12px; }

/* publiceren */
.ed-pub-regel { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; cursor: pointer; }
.ed-pub-regel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-gesch { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; }

/* ---------- breedtes ---------- */
@media (max-width: 1240px) {
  .ad-merk-naam { display: none; }
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-kpi { margin-bottom: 16px; }
  .ed-romp { grid-template-columns: 340px minmax(0, 1fr); }
  .ed-status { display: none; }
}
@media (max-width: 1024px) {
  .ad-menu, .ad-balk-site { display: none; }
  .ad-mknop { display: grid; }
  .ad-raster--dash, .ad-raster--detail { grid-template-columns: minmax(0, 1fr); }
  .ad-kolom + .ad-kolom { margin-top: 0; }
  .ed-romp { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 46vh; }
  .ed-paneel { border-right: 0; border-bottom: 1px solid var(--ad-lijn); order: 1; }
  .ed-voorbeeld { order: 2; padding: 12px; }
  .ed-apparaten { display: none; }
}
@media (max-width: 700px) {
  .ad-balk-in { padding: 0 16px; gap: 12px; }
  .ad-publiceer { display: none; }
  .ad-main { padding: 20px 16px 48px; }
  .ad-kop-rij { flex-direction: column; align-items: stretch; }
  .ad-kop-acties { flex-wrap: wrap; }
  .ad-kop-acties > * { flex: 1 1 auto; }
  .ad-kiezer--status { width: 100%; }
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .ad-kpi { padding: 14px; margin-bottom: 10px; }
  .ad-kop-acties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-kop-acties > :only-child { grid-column: 1 / -1; }
  .ad-kpi-getal { font-size: 26px; }
  .ad-knoppen > .ad-knop { flex: 1 1 100%; height: 48px; }
  .ad-kop-acties > .ad-knop { height: 48px; }
  .ad-kop-acties .ad-kiezer select { height: 48px; }
  .ad-todo .ad-link { display: inline-flex; align-items: center; min-height: 44px; }
  .ad-herhaal-rij--drie { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .ad-akkoord { flex-wrap: wrap; }
  .ad-akkoord-knoppen { width: 100%; }
  .ad-akkoord-knoppen > * { flex: 1; height: 44px; }
  .ad-afvink ul { grid-template-columns: minmax(0, 1fr); }
  .ad-mbalk { position: fixed; inset: auto 0 0; z-index: 25; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ad-kaart); border-top: 1px solid var(--ad-lijn); }
  .ad-mbalk .ad-knop { height: 48px; padding: 0 8px; }
  .ad-main:has(.ad-mbalk) { padding-bottom: 96px; }
  .ad-auto { flex-wrap: wrap; }
  .ad-auto img { width: 100%; }
  .ad-link { display: inline-flex; align-items: center; min-height: 44px; }
  .ad-regels thead { display: none; }
  .ad-regels, .ad-regels tbody, .ad-regels tfoot { display: block; }
  .ad-regels tr.ad-regel-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--ad-lijn); }
  .ad-regels tr.ad-regel-r td { display: block; padding: 0; border: 0; text-align: left; }
  .ad-regels tr.ad-regel-r td:first-child { grid-column: 1 / -1; }
  .ad-regels tr.ad-regel-r td[data-kol]::before { content: attr(data-kol); display: block; margin-bottom: 4px; font-size: 13px; color: var(--ad-zacht); }
  .ad-regels tr.ad-regel-r td:first-child::before { display: none; }
  .ad-regels tr.ad-regel-r td:last-child { align-self: end; }
  .ad-regels tfoot tr { display: flex; justify-content: space-between; padding-top: 12px; }
  .ad-regels tfoot td:empty { display: none; }
  .ad-ikoon { width: 44px; height: 44px; }
  .ed-mtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px 12px; background: var(--ad-kaart); border-bottom: 1px solid var(--ad-lijn); }
  .ed-mtab { height: 40px; border: 0; border-radius: 8px; background: var(--ad-was); color: var(--ad-sub); font-weight: 600; }
  .ed-mtab.is-aan { background: var(--ad-inkt); color: #ffffff; }
  .ed--blokken .ed-voorbeeld { display: none; }
  .ed--voorbeeld .ed-paneel { display: none; }
  .ed-romp { grid-template-rows: minmax(0, 1fr) !important; }
  .ed-voorbeeld { padding: 0; place-items: start center; }
  .ed-raam { border-radius: 0; box-shadow: none; }
  .ed-tussen { height: 28px; opacity: 1; }
  .ed-tussen span { height: 26px; }
  .ed-balk .ad-knop--klein { height: 40px; }
  .ad-herhaal-rij--drie input:nth-child(3) { grid-column: 1 / 3; }
  .ad-regel { flex-wrap: wrap; }
  .ad-regel-rechts { width: 100%; justify-content: space-between; padding-left: 86px; }
  .ad-snel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-kaart-romp { padding: 14px 14px 16px; }
  .ad-kaart--lijst .ad-kaart-romp { padding: 4px; }
  .ad-regel { padding: 10px 8px; gap: 12px; }
  .ad-thumb { width: 64px; height: 48px; }
  .ad-regel-rechts { padding-left: 76px; }
  .ad-velden { grid-template-columns: minmax(0, 1fr); }
  .ad-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ad-tabel--autos th:nth-child(4), .ad-tabel--autos td:nth-child(4) { display: none; }
  .ad-tabel--paginas th:nth-child(2), .ad-tabel--paginas td:nth-child(2) { display: none; }
  .ad-tabel--autos th:nth-child(3), .ad-tabel--autos td:nth-child(3) { display: none; }
  .ad-tabel--autos td, .ad-tabel--autos th { padding-left: 8px; padding-right: 8px; }
  .ad-tabel--paginas .ad-knop span { display: none; }
  .ad-tabel--paginas td, .ad-tabel--paginas th { padding-left: 8px; padding-right: 8px; }
  .ad-herhaal-rij { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-herhaal-rij input:nth-child(2) { grid-column: 1; }
  .ad-dlg-achter { padding: 0; align-items: end; }
  .ad-dlg { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .ed-doos { grid-template-columns: minmax(0, 1fr); }
  .ed-doos-rubrieken { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e9eaef; }
  .ed-doos-rubrieken button { flex: none; }
  .ed-doos-rubriek-sub { display: none; }
  .ed-balk { gap: 8px; padding: 0 12px; }
  .ed-balk-titel { display: none; }
  .ed-balk-rechts { margin-left: auto; }
}

/* ---------- uitbreiding: snelzoeken, agenda, klanten, zoekopdrachten, statistieken ---------- */
.ad-zoekknop { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border: 1px solid var(--ad-lijn); border-radius: var(--ad-hoek-klein); background: var(--ad-was2); color: var(--ad-zacht); font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s; }
.ad-zoekknop:hover { border-color: var(--ad-as); color: var(--ad-inkt); }
.ad-zoekknop kbd, .ck-veld kbd { padding: 0 6px; border: 1px solid var(--ad-lijn); border-radius: 5px; background: var(--ad-kaart); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--ad-zacht); }
.ad-zoekknop-tekst { min-width: 64px; text-align: left; }
.ad-dlg.ad-dlg--zoek { width: min(640px, 100%); }
.ck-veld { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--ad-lijn); color: var(--ad-zacht); }
.ck-veld input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ad-inkt); font-size: 16px; }
.ck-lijst { max-height: min(60vh, 480px); overflow-y: auto; padding: 6px 8px 10px; }
.ck-groep { padding: 12px 12px 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ad-zacht); }
.ck-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--ad-hoek-klein); }
.ck-item .ad-ico { color: var(--ad-zacht); }
.ck-item.is-aan, .ck-item:hover { background: var(--ad-was); }
.ck-item.is-aan .ad-ico { color: var(--ad-inkt); }
.ck-tekst { display: grid; min-width: 0; }
.ck-titel { font-weight: 500; }
.ck-sub { font-size: 13px; color: var(--ad-zacht); }
.ck-leeg { padding: 20px 12px; }

.ag-nav { display: flex; gap: 8px; }
.ag-nav .ad-knop { min-width: 40px; justify-content: center; }
.ag-nav .ad-knop.is-aan { border-color: var(--ad-as); }
.ad-kaart.ag { display: grid; grid-template-columns: 56px minmax(0, 1fr); overflow: hidden; }
.ag-uren { padding-top: 60px; border-right: 1px solid var(--ad-lijn); background: var(--ad-was2); }
.ag-uren span { display: block; height: 60px; padding: 4px 8px 0 0; text-align: right; font-size: 13px; color: var(--ad-zacht); font-variant-numeric: tabular-nums; }
.ag-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ag-kolom { min-width: 0; }
.ag-kolom + .ag-kolom { border-left: 1px solid var(--ad-lijn); }
.ag-dagkop { display: grid; align-content: center; height: 60px; padding: 0 12px; border-bottom: 1px solid var(--ad-lijn); }
.ag-dagnaam { font-size: 13px; color: var(--ad-zacht); }
.ag-daggetal { font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-kolom.is-vandaag .ag-dagkop { box-shadow: inset 0 -2px 0 var(--ad-data); }
.ag-kolom.is-vandaag .ag-daggetal, .ag-kolom.is-vandaag .ag-dagnaam { color: var(--ad-data); }
.ag-dagvak { position: relative; }
.ag-uurlijn { display: block; height: 60px; border-bottom: 1px solid var(--ad-lijn); }
.ag-uurlijn:last-of-type { border-bottom: 0; }
.ag-item { position: absolute; left: 4px; right: 4px; z-index: 1; display: grid; align-content: start; gap: 1px; min-height: 56px; margin-top: 2px; padding: 6px 8px 6px 5px; border-left: 3px solid; border-radius: 6px; font-size: 13px; line-height: 1.3; transition: box-shadow .15s; }
.ag-item:hover, .ag-item:focus-visible { z-index: 2; box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.ag-item--open { background: var(--ad-oranje-bg); border-color: var(--ad-oranje-stip); color: var(--ad-oranje); }
.ag-item--bevestigd { background: var(--ad-groen-bg); border-color: var(--ad-groen-stip); color: var(--ad-groen); }
.ag-item--aflevering { background: var(--ad-blauw-bg); border-color: var(--ad-blauw-stip); color: var(--ad-blauw); }
.ag-item.is-klaar { background: var(--ad-grijs-bg); border-color: var(--ad-grijs-stip); color: var(--ad-grijs); }
.ag-tijd { font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-naam { font-weight: 600; color: var(--ad-inkt); }
.ag-lijst { display: none; }
.ag-lijstdag + .ag-lijstdag { margin-top: 6px; border-top: 1px solid var(--ad-lijn); }
.ag-lijstkop { padding: 12px 12px 2px; font-size: 13px; font-weight: 600; color: var(--ad-sub); }
.ag-lijstkop::first-letter { text-transform: uppercase; }
.ag-lijsttijd { flex: none; width: 48px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-tijden .ad-veldvak { margin-bottom: 0; }

.ad-afspraak { display: flex; align-items: center; gap: 14px; }
.ad-afspraak-datum { display: grid; justify-items: center; width: 58px; padding: 6px 0; border: 1px solid var(--ad-lijn); border-radius: 10px; font-size: 13px; line-height: 1.3; color: var(--ad-zacht); flex: none; }
.ad-afspraak-datum strong { font-size: 20px; font-weight: 600; color: var(--ad-inkt); font-variant-numeric: tabular-nums; }
.ad-afspraak-tijd { font-weight: 600; }
.ad-afspraak-tijd::first-letter { text-transform: uppercase; }

.ad-avatar--klant { width: 36px; height: 36px; background: var(--ad-was); color: var(--ad-sub); }
.ad-tabel--klanten td { padding-top: 10px; padding-bottom: 10px; }
.ad-klant-contact { font-size: 13px; }

.zo-regel { display: grid; }
.zo-pas { display: grid; gap: 8px; padding: 0 12px 14px 98px; }
.zo-auto { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--ad-lijn); border-radius: 10px; background: var(--ad-was2); }
.zo-auto .ad-regel-tekst { flex: 1; min-width: 0; }
.zo-auto .ad-thumb { width: 60px; height: 45px; }
.zo-kaart .ad-lijst > li + li { border-top: 0; margin-top: 8px; }

.st-staven { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 220px; padding-top: 4px; border-bottom: 1px solid var(--ad-as); }
.st-staaf { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) 0; justify-items: center; height: 100%; border-radius: 6px 6px 0 0; outline: 0; cursor: default; }
.st-getal { min-height: 18px; font-size: 13px; font-weight: 600; color: var(--ad-inkt); font-variant-numeric: tabular-nums; }
.st-balk { align-self: end; width: min(24px, 70%); border-radius: 4px 4px 0 0; background: var(--ad-data); transition: background .15s; }
.st-staaf:hover .st-balk, .st-staaf:focus-visible .st-balk { background: #1a5fb4; }
.st-staaf:hover, .st-staaf:focus-visible { background: var(--ad-data-was); }
.st-dag { position: absolute; top: calc(100% + 6px); font-size: 13px; color: var(--ad-zacht); font-variant-numeric: tabular-nums; }
.st-staaf.is-vandaag .st-dag { color: var(--ad-inkt); font-weight: 600; }
.st-staaf:hover::after, .st-staaf:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 14px); left: 50%; z-index: 3; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--ad-inkt); color: #ffffff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.st-staaf:first-child:hover::after, .st-staaf:first-child:focus-visible::after, .st-staaf:nth-child(2):hover::after, .st-staaf:nth-child(2):focus-visible::after { left: 0; transform: none; }
.st-staaf:last-child:hover::after, .st-staaf:last-child:focus-visible::after, .st-staaf:nth-last-child(2):hover::after, .st-staaf:nth-last-child(2):focus-visible::after { left: auto; right: 0; transform: none; }
.st-tabel { margin-top: 34px; }
.st-tabel summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ad-sub); font-weight: 500; cursor: pointer; }
.st-tabel table { margin-top: 6px; }
.st-pagina { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; }

.ad-meldregel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ad-lijn); }
.ad-meldregel-titel { font-weight: 500; }
.ad-meldregel .ad-hulp { margin-top: 2px; }
.ad-knoprij { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ad-prijsregel { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }

@media (max-width: 1023px) {
  .ad-kaart.ag { display: none; }
  .ag-lijst { display: block; }
}
@media (max-width: 1024px) {
  .ad-zoekknop kbd { display: none; }
}
@media (max-width: 700px) {
  .ad-zoekknop { width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; background: none; color: var(--ad-inkt); }
  .ad-zoekknop-tekst { display: none; }
  .ad-dlg.ad-dlg--zoek { max-height: 86vh; }
  .ag-nav { width: 100%; }
  .ag-nav .ad-knop { height: 48px; }
  .ag-nav .ad-knop:nth-child(2) { flex: 1; }
  .ad-tabel--klanten th:nth-child(2), .ad-tabel--klanten td:nth-child(2), .ad-tabel--klanten th:nth-child(4), .ad-tabel--klanten td:nth-child(4) { display: none; }
  .ad-tabel--klanten td, .ad-tabel--klanten th { padding-left: 8px; padding-right: 8px; }
  .zo-pas { padding: 0 8px 12px; }
  .zo-auto { flex-wrap: wrap; }
  .zo-auto .ad-knop { flex: 1 1 100%; height: 48px; }
  .ad-rdw .ad-knop, .ad-notitie .ad-knop { height: 48px; }
  .ad-kop-acties > :last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
  .ad-meldregel { flex-wrap: wrap; }
  .ad-meldregel .ad-knop { flex: 1 1 100%; height: 48px; }
  .st-staven { height: 180px; }
}

/* ---------- kentekencheck (RDW) ---------- */
.ad-rdwr-lijst { display: grid; }
.ad-rdwr-punt { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--ad-lijn); }
.ad-rdwr-punt:first-child { border-top: 0; padding-top: 0; }
.ad-rdwr-punt .ad-chip { justify-self: start; }
.ad-rdwr-titel { font-weight: 600; }
.ad-rdwr-tekst { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ad-sub); }
.ad-rdwr-deel { border-top: 1px solid var(--ad-lijn); }
.ad-rdwr-deel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.ad-rdwr-deel summary::-webkit-details-marker { display: none; }
.ad-rdwr-deel summary .ad-ico { color: var(--ad-zacht); transition: transform .15s; }
.ad-rdwr-deel[open] summary .ad-ico { transform: rotate(180deg); }
.ad-rdwr-in { padding: 0 0 14px; }
.ad-rdwr-keur { display: grid; gap: 12px; }
.ad-rdwr-gebreken { display: grid; gap: 2px; margin-top: 4px; padding-left: 16px; list-style: disc; font-size: 13px; color: var(--ad-sub); }
.ad-rdwr-actie + .ad-rdwr-actie { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ad-lijn); }
.ad-rdwr-actie .ad-rdwr-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ad-rdwr-groep { margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: var(--ad-zacht); }
.ad-rdwr-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ad-rdwr-dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--ad-lijn); }
.ad-rdwr-dl dt { color: var(--ad-zacht); }
.ad-rdwr-dl dd, .ad-rdwr-tekst, .ad-rdwr-gebreken li { min-width: 0; overflow-wrap: anywhere; }
.ad-rdwr-schakels { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ad-lijn); }
.ad-rdwr-bron { margin-top: 12px; }
@media (max-width: 700px) {
  .ad-rdwr-punt { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ad-rdwr-dl { grid-template-columns: minmax(0, 1fr); }
}
