/* Opname-app Epconsult. Werkscherm voor de iPad op locatie en de laptop thuis:
   grote raakvlakken, rustige kaarten, kleur alleen waar het iets betekent. */
:root {
  --bg: #f3f5f4;
  --vlak: #ffffff;
  --tekst: #17201e;
  --stil: #56635f;
  --lijn: #d3dad7;
  --merk: #16413d;
  --merk-licht: #e3eeec;
  --accent: #0f766e;
  --voor: #d9480f;
  --ok: #15803d;
  --let-op: #b45309;
  --fout: #b91c1c;
  --buur: #e6e9e8;
  --pand: #dcebe8;
  --radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) {
    --bg: #111716; --vlak: #19211f; --tekst: #e7ecea; --stil: #9aa8a3; --lijn: #2f3a37;
    --merk: #9fd3cb; --merk-licht: #1f2d2a; --accent: #5ec4b6; --voor: #ff8a4c;
    --ok: #4ade80; --let-op: #fbbf24; --fout: #f87171; --buur: #252e2c; --pand: #24403b;
    color-scheme: dark;
  }
}
:root[data-thema="donker"] {
    --bg: #111716; --vlak: #19211f; --tekst: #e7ecea; --stil: #9aa8a3; --lijn: #2f3a37;
    --merk: #9fd3cb; --merk-licht: #1f2d2a; --accent: #5ec4b6; --voor: #ff8a4c;
    --ok: #4ade80; --let-op: #fbbf24; --fout: #f87171; --buur: #252e2c; --pand: #24403b;
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--tekst); font: 16px/1.5 var(--sans);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--accent); }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0; text-wrap: balance; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.balk {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--merk); color: #fff;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) .balk { background: #0c2522; }
}
:root[data-thema="donker"] .balk { background: #0c2522; }
.merk { color: #fff; text-decoration: none; font-weight: 650; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.balk .chip { background: rgba(255,255,255,.14); color: #fff; }
.balk .chip-let-op { background: #b45309; }
/* Soort project op het beginscherm (0.53.19, wens adviseur): utiliteit en woning in één oogopslag uit elkaar. */
.chip.chip-soort { font-size: .85rem; }
.chip.chip-utiliteit { background: color-mix(in srgb, #2563eb 15%, transparent); color: #1d4ed8; }
.chip.chip-woning { background: color-mix(in srgb, #7c3aed 14%, transparent); color: #6d28d9; }
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) .chip.chip-utiliteit { color: #93c5fd; }
:root:not([data-thema="licht"]) .chip.chip-woning { color: #c4b5fd; }
}
:root[data-thema="donker"] .chip.chip-utiliteit { color: #93c5fd; }
:root[data-thema="donker"] .chip.chip-woning { color: #c4b5fd; }

main { outline: none; }
.pagina {
  max-width: 980px; margin: 0 auto; display: grid; gap: 16px;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
}
.laden { padding: 24px; color: var(--stil); }
.paginakop { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.paginakop > div:first-child { display: grid; gap: 4px; min-width: 0; }
.terug { text-decoration: none; font-size: .95rem; }
.acties { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sectiekop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: .4rem; }
.sectiekop h2 { margin: 0; }

.kaart { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 16px; min-width: 0; }
.kaart.rustig { background: transparent; }
.stil { color: var(--stil); font-size: .93rem; margin: .4rem 0 0; }
.voet { color: var(--stil); font-size: .9rem; text-align: center; margin-top: 12px; }

.knop {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 9px; border: 1px solid var(--lijn); background: var(--vlak); color: var(--tekst);
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.knop:hover { border-color: var(--accent); }
.knop:disabled { opacity: .55; cursor: default; }
.knop.primair { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) .knop.primair { color: #08201d; }
}
:root[data-thema="donker"] .knop.primair { color: #08201d; }
.knop.klein { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.knop.gevaar { color: var(--fout); border-color: var(--fout); background: transparent; }

.chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--merk-licht); color: var(--tekst); width: fit-content; }
.themaknop { border: 0; font: inherit; font-size: 1rem; line-height: 1; padding: 6px 10px; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; }
.balk-rechts { display: flex; align-items: center; gap: 8px; }
.chip-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.chip-let-op { background: color-mix(in srgb, var(--let-op) 16%, transparent); color: var(--let-op); }

.melding { margin: 0; padding: 12px 14px; border-radius: var(--radius); }
.melding.waarschuwing { background: color-mix(in srgb, var(--let-op) 12%, var(--vlak)); border: 1px solid color-mix(in srgb, var(--let-op) 40%, transparent); }
.melding.ok { background: color-mix(in srgb, var(--ok) 12%, var(--vlak)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.meldingen { margin: 12px 0 0; padding-left: 20px; color: var(--let-op); display: grid; gap: 4px; }

.leeg { text-align: center; padding: 40px 16px; border: 2px dashed var(--lijn); border-radius: var(--radius); }
.leeg p { margin: 0; }

.projectlijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.projectkaart { display: grid; gap: 4px; padding: 14px 16px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--radius); color: var(--tekst); text-decoration: none; }
.projectkaart:hover { border-color: var(--accent); }
.pk-adres { font-weight: 650; font-size: 1.05rem; }
.pk-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--stil); font-size: .9rem; }

.veldlabel { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.veld { font: 1rem var(--sans); padding: 10px 12px; min-height: 44px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--bg); color: var(--tekst); width: 100%; }
.veld.groot { font-size: 1.15rem; min-height: 52px; }
textarea.veld { resize: vertical; }
/* WebKit (Safari en Firefox op iPad) geeft datum- en keuzevelden een eigen minimale breedte en
   hoogte; zonder dit schuiven ze over het volgende veld heen. */
input.veld[type="date"] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%;
  height: 44px; line-height: 22px; text-align: left;
}
input.veld[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
select.veld { min-width: 0; max-width: 100%; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 12px 0; }
.raster > * { min-width: 0; }
.keuzegroep { border: 1px solid var(--lijn); border-radius: 8px; padding: 8px 12px; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.keuzegroep legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.radio input { width: 22px; height: 22px; accent-color: var(--accent); }

.resultaten { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.resultaat { width: 100%; text-align: left; padding: 12px 14px; min-height: 48px; border-radius: 8px; border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); font: 1rem var(--sans); cursor: pointer; }
.resultaat:hover { border-color: var(--accent); }
.handmatig { margin-top: 14px; }
.handmatig summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 40px; display: flex; align-items: center; }

.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.gegevens dt { color: var(--stil); }
.gegevens dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.tekening { margin: 12px 0; border: 1px solid var(--lijn); border-radius: 8px; background: var(--bg); overflow: hidden; touch-action: manipulation; }
.contour { display: block; width: 100%; height: auto; }
.contour .buur { fill: var(--buur); stroke: var(--lijn); stroke-width: 1; }
.contour .pand { fill: var(--pand); stroke: none; }
.contour.met-luchtfoto .buur { fill: transparent; stroke: #fff; stroke-opacity: .7; }
.contour.met-luchtfoto .pand { fill: rgba(255, 255, 255, .12); }
.contour.met-luchtfoto .strookdeel { fill-opacity: .25; }
.contour.met-luchtfoto .zijde-lijn { stroke: #fff; }
.contour.met-luchtfoto .zijde-voor .zijde-lijn { stroke: var(--voor); }
.contour .arcering { stroke: var(--stil); stroke-width: 1; }
.contour .straatpunt { fill: var(--stil); opacity: .5; }
.contour .zijde { cursor: pointer; outline: none; }
.contour .zijde-lijn { stroke: var(--tekst); stroke-width: 3; stroke-linecap: round; }
.contour .zijde-gedeeld .zijde-lijn { stroke: var(--stil); stroke-dasharray: 2 5; stroke-width: 3; }
.contour .zijde-deels .zijde-lijn { stroke: var(--stil); stroke-dasharray: 8 4; }
.contour .zijde-voor .zijde-lijn { stroke: var(--voor); stroke-width: 6; stroke-dasharray: none; }
.contour .zijde-raak { stroke: transparent; stroke-width: 26; stroke-linecap: round; }
.contour .zijde:hover .zijde-lijn, .contour .zijde:focus-visible .zijde-lijn { stroke: var(--accent); }
.contour .zijde-label circle { fill: var(--vlak); stroke: var(--tekst); stroke-width: 1.2; }
.contour .zijde-label text { font: 700 12px var(--sans); fill: var(--tekst); }
.contour .zijde-label.is-voor circle { fill: var(--voor); stroke: var(--voor); }
.contour .zijde-label.is-voor text { fill: #fff; }
.contour .noord path { fill: var(--tekst); }
.contour .noord text, .contour .schaal text { font: 600 12px var(--sans); fill: var(--tekst); }
.contour .schaal line { stroke: var(--tekst); stroke-width: 1.5; }

.legenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--stil); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--tekst); }
.lg-voor { border-top: 5px solid var(--voor); }
.lg-gedeeld { border-top: 3px dotted var(--stil); }
.lg-buur { height: 12px; border: 1px solid var(--lijn); background: var(--buur); }

.tabelhouder { overflow-x: auto; margin-top: 12px; }
.tabel { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabel th, .tabel td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
.tabel th { color: var(--stil); font-weight: 600; font-size: .85rem; }
.tabel .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabel tr.is-voor td { color: var(--voor); font-weight: 650; }

.diaglijst { list-style: none; margin: 0; padding: 0; display: grid; }
.diaglijst li { display: grid; grid-template-columns: 24px minmax(140px, 220px) 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--lijn); align-items: baseline; }
.diaglijst li.ok .diag-icoon { color: var(--ok); }
.diaglijst li.fout .diag-icoon { color: var(--fout); }
.diaglijst li.info .diag-icoon { color: var(--stil); }
.diag-naam { font-weight: 600; }
.diag-detail { color: var(--stil); overflow-wrap: anywhere; font-size: .93rem; }
@media (max-width: 560px) { .diaglijst li { grid-template-columns: 24px 1fr; } .diag-detail { grid-column: 2; } }
.penvlak { display: block; width: 100%; height: 220px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--bg); touch-action: none; margin-bottom: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--tekst); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 20;
}
.toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }
.toast-fout { background: var(--fout); color: #fff; }
.toast-ok { background: var(--ok); color: #fff; }
.updatebalk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--merk); color: #fff; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ───────────── Plattegrond-editor ───────────── */
body.modus-editor { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
body.modus-editor main { flex: 1; min-height: 0; display: flex; }
.editor { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.ed-kop {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--lijn); background: var(--vlak);
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
}
.ed-kop h1 { font-size: 1.15rem; }
.ed-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; }
.ed-tab { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); font: 600 .95rem var(--sans); white-space: nowrap; cursor: pointer; }
.ed-tab.actief { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) .ed-tab.actief { color: #08201d; }
}
:root[data-thema="donker"] .ed-tab.actief { color: #08201d; }
.ed-tab-plus { border-style: dashed; color: var(--accent); }

.ed-werk { flex: 1; min-height: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr) 14px var(--paneel-b, 340px); }
/* Greep tussen tekening en paneel (slepen) */
.ed-greep { display: flex; align-items: center; justify-content: center; background: var(--vlak); border-left: 1px solid var(--lijn); cursor: col-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ed-greep-streep { width: 4px; height: 44px; border-radius: 2px; background: var(--lijn); }
.ed-greep.sleept .ed-greep-streep, .ed-greep:hover .ed-greep-streep { background: var(--accent); }
.ed-greep-knop { display: none; }
.ed-greep { width: 14px; }
.ed-greep-streep { transition: background .15s; }
/* Kaarten in kolommen zodra het paneel breed genoeg is (breed scherm, paneel opengeschoven) */
.ed-paneel { container-type: inline-size; }
.kaartlijst { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container (min-width: 880px) { .kaartlijst { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); } }
.ed-gereedschap { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-right: 1px solid var(--lijn); background: var(--vlak); overflow-y: auto; }
.ed-tool {
  display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 60px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--tekst); font: 600 .74rem var(--sans); cursor: pointer; touch-action: manipulation;
}
.ed-tool-icoon { font-size: 1.45rem; line-height: 1; }
.ed-tool.actief { background: var(--merk-licht); border-color: var(--accent); color: var(--accent); }
.ed-tool:disabled { opacity: .35; cursor: default; }
.ed-scheiding { height: 1px; background: var(--lijn); margin: 4px 6px; }

.ed-vlak { position: relative; min-width: 0; min-height: 0; background: var(--bg); overflow: hidden; }
.ed-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.ed-hint { position: absolute; left: 10px; top: 10px; right: 120px; font-size: .85rem; color: var(--stil); pointer-events: none; text-wrap: balance; }
.ed-hint.kort { right: auto; }
.ed-hint-knop { pointer-events: auto; font: inherit; font-size: .8rem; color: var(--stil); background: var(--vlak); border: 1px solid var(--lijn); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.ed-hint-knop.dicht { margin-left: 6px; padding: 0 7px; }
.ed-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.ed-zoom .knop { background: var(--vlak); min-width: 40px; }

.ed-svg .ed-raster line { stroke: var(--lijn); stroke-width: .6; }
.ed-svg .ed-raster line.grof { stroke-width: 1.2; }
.ed-svg .ed-bag { fill: none; stroke: var(--stil); stroke-width: 1.5; stroke-dasharray: 7 5; opacity: .8; }
.ed-svg .ed-onder { fill: none; stroke: var(--stil); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.ed-svg .ed-vulling { fill: var(--pand); opacity: .75; }
.ed-svg .onverwarmd .ed-vulling { fill: var(--buur); }
.ed-svg .gekozen .ed-vulling { fill: color-mix(in srgb, var(--accent) 22%, var(--vlak)); opacity: 1; }
.ed-svg .ed-wand { stroke-linecap: round; }
.ed-svg .ed-wand.buiten { stroke: var(--tekst); stroke-width: 3; }
.ed-svg .ed-wand.intern { stroke: var(--stil); stroke-width: 1.5; }
.ed-svg .ed-wand.geschat { stroke: var(--let-op); stroke-dasharray: 7 5; }
.ed-svg .ed-wand.gekozen { stroke: var(--voor); stroke-width: 6; stroke-dasharray: none; }
.ed-svg text { font-family: var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.ed-svg .ed-maat { font-size: 11.5px; font-weight: 600; fill: var(--tekst); font-variant-numeric: tabular-nums; }
.ed-svg .ed-maat.geschat { fill: var(--let-op); }
.ed-svg .ed-naam { font-size: 13px; font-weight: 700; fill: var(--tekst); }
.ed-svg .ed-opp { font-size: 12px; fill: var(--stil); }
.ed-svg .ed-hoekpunt { fill: var(--vlak); stroke: var(--accent); stroke-width: 2; }
.ed-svg .ed-hoekpunt.greep { fill: #fff; stroke-width: 3; cursor: grab; }
.ed-svg .ed-wandgreep { fill: #fff; stroke: var(--accent, #2f6f68); stroke-width: 3; cursor: grab; }
.ed-svg .ed-wandgreep-as { stroke: var(--accent, #2f6f68); stroke-width: 3; stroke-linecap: round; }
.ed-svg .ed-wandinfo { font-size: 13px; font-weight: 600; fill: var(--tekst, #1b2b2a); paint-order: stroke; stroke: var(--bg, #fff); stroke-width: 4px; }
.kz-kop.klikbaar { cursor: pointer; }
.ed-svg .ed-schets { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ed-svg .ed-keten { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.ed-svg .ed-start { fill: var(--accent); }
.ed-svg .ed-pijl { stroke: var(--accent); stroke-width: 2; }
.ed-svg .ed-pijlkop { fill: var(--accent); }
.ed-svg .ed-noord { stroke: var(--tekst); stroke-width: 2; }
.ed-svg .ed-noord-n { font-size: 13px; font-weight: 700; fill: var(--tekst); }
.ed-svg .ed-straat { font-size: 12px; fill: var(--stil); }
.ed-svg .ed-schaal line { stroke: var(--tekst); stroke-width: 2; }
.ed-svg .ed-schaal text { font-size: 12px; font-weight: 600; fill: var(--tekst); }

.ed-paneel { background: var(--vlak); overflow-y: auto; min-height: 0; }
.ed-paneel-inhoud { display: grid; gap: 12px; padding: 14px 16px 24px; }
.ed-paneel-inhoud h2 { margin: 0; }
.ed-sub { font-size: .95rem; margin: 4px 0 0; }
.ed-veld { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ed-veld-label { font-weight: 600; font-size: .92rem; }
.ed-maatknop { min-width: 110px; font-variant-numeric: tabular-nums; }
.ed-gegevens { font-size: .93rem; }
.ed-gegevens dd.let-op { color: var(--let-op); font-weight: 600; }
.ed-zijden { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ed-zijde {
  width: 100%; display: grid; grid-template-columns: 28px auto 1fr; gap: 10px; align-items: center; text-align: left; min-height: 44px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); font: .95rem var(--sans); cursor: pointer;
}
.ed-zijde.gekozen { border-color: var(--voor); box-shadow: inset 4px 0 0 var(--voor); }
.ed-zijde-nr { font-weight: 700; color: var(--stil); }
.ed-zijde-lengte { font-weight: 650; font-variant-numeric: tabular-nums; }
.ed-zijde-lengte.geschat { color: var(--let-op); }
.ed-zijde-soort { color: var(--stil); font-size: .85rem; text-align: right; }
.ed-knoppen { display: grid; gap: 8px; }
.ed-instellingen { border-top: 1px solid var(--lijn); padding-top: 8px; }
.ed-instellingen summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; color: var(--accent); }
.ed-instellingen[open] { display: grid; gap: 10px; }

@media (max-width: 1000px) {
  .ed-werk { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) 52px var(--paneel-h, 38%); }
  .ed-greep { border-left: none; border-top: 1px solid var(--lijn); cursor: row-resize; position: relative; }
  .ed-greep-streep { width: 56px; height: 5px; }
  .ed-greep-knop { display: inline-flex; align-items: center; white-space: nowrap; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); min-height: 40px; height: 40px; padding: 0 16px; font-size: .95rem; font-weight: 700; background: var(--accent); border-color: var(--accent); color: var(--bg); }
  .ed-greep-streep { width: 72px; height: 6px; }
  .ed-gereedschap { flex-direction: row; border-right: none; border-bottom: 1px solid var(--lijn); overflow-x: auto; padding: 6px 8px; }
  .ed-tool { min-width: 76px; min-height: 54px; }
  .ed-scheiding { width: 1px; height: auto; margin: 6px 4px; }
  .ed-paneel { border-left: none; }
}

/* ───────────── Cijferblok en keuzeblad ───────────── */
.kp-laag { position: fixed; inset: 0; z-index: 30; background: rgba(10, 20, 18, .38); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 700px) { .kp-laag { align-items: center; justify-content: flex-end; padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.kp { background: var(--vlak); color: var(--tekst); border-radius: 16px; padding: 16px; width: min(380px, 100%); display: grid; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.kp-titel { font-weight: 700; font-size: 1.05rem; }
.kp-uitleg { color: var(--stil); font-size: .9rem; }
.kp-scherm { font: 600 2.2rem var(--mono); text-align: right; padding: 8px 12px; border: 2px solid var(--accent); border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; min-height: 64px; }
.kp-scherm.kp-vers { color: var(--stil); }
.kp-fout { color: var(--fout); font-size: .9rem; min-height: 1em; }
.kp-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp-toets { min-height: 62px; border-radius: 10px; border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); font: 600 1.6rem var(--sans); cursor: pointer; touch-action: manipulation; }
.kp-toets:active { background: var(--merk-licht); }
.kp-wis { color: var(--stil); }
.kp-acties { display: flex; gap: 8px; }
.kp-acties .knop { flex: 1; min-height: 52px; }
.kp-opties { display: grid; gap: 8px; }
.kp-opties .knop { min-height: 54px; justify-content: flex-start; font-size: 1.05rem; }

/* ───────────── Stappen omtrek / begrenzing / indeling ───────────── */
:root { --avr: #2f6fb0; --aor: #c26a00; --aos: #7a4fb5; --f-verblijf: #dcefd9; --f-nat: #d6e8f7; --f-verkeer: #e7e7e3; --f-berging: #f1e6d2; --f-overig: #ece3f3; --f-leeg: #f6f7f6; }
@media (prefers-color-scheme: dark) {
:root:not([data-thema="licht"]) { --avr: #7fb2ea; --aor: #f0a94a; --aos: #b99be6; --f-verblijf: #23402a; --f-nat: #1f3547; --f-verkeer: #2b302e; --f-berging: #3d3424; --f-overig: #372d41; --f-leeg: #1c2321; }
}
:root[data-thema="donker"] { --avr: #7fb2ea; --aor: #f0a94a; --aos: #b99be6; --f-verblijf: #23402a; --f-nat: #1f3547; --f-verkeer: #2b302e; --f-berging: #3d3424; --f-overig: #372d41; --f-leeg: #1c2321; }
.ed-stappen { display: flex; gap: 6px; overflow-x: auto; background: var(--vlak); border-bottom: 1px solid var(--lijn);
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
.ed-stap { display: grid; text-align: left; gap: 0; min-height: 48px; padding: 4px 14px; border-radius: 9px; border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); cursor: pointer; white-space: nowrap; }
.ed-stap-naam { font-weight: 700; font-size: .95rem; }
.ed-stap-info { font-size: .78rem; color: var(--stil); font-variant-numeric: tabular-nums; }
.ed-stap.actief { border-color: var(--accent); background: var(--merk-licht); box-shadow: inset 0 -3px 0 var(--accent); }

.ed-svg .ed-deel .ed-vulling { fill: var(--pand); opacity: .55; }
.ed-svg .ed-deel.gekozen .ed-vulling { fill: color-mix(in srgb, var(--accent) 24%, var(--vlak)); opacity: 1; }
.ed-svg .ed-deelrand { stroke: var(--stil); stroke-width: 1.4; stroke-dasharray: 4 3; }
.ed-svg .ed-deelrand.geschat { stroke: var(--let-op); stroke-dasharray: 7 5; stroke-width: 2; }
.ed-svg .ed-deelrand.gekozen { stroke: var(--voor); stroke-width: 6; stroke-dasharray: none; }
.ed-svg .ed-omtrek { fill: none; stroke: var(--tekst); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.ed-svg .ed-go { font-size: 14px; font-weight: 700; fill: var(--tekst); }
.ed-svg .ed-omtrekvlak { fill: var(--pand); opacity: .45; }
.ed-svg .ed-rand-lijn { stroke-width: 7; stroke-linecap: round; cursor: pointer; }
.ed-svg .b-avr .ed-rand-lijn { stroke: var(--avr); stroke-width: 4; stroke-dasharray: 2 7; }
.ed-svg .b-buiten .ed-rand-lijn { stroke: var(--tekst); }
.ed-svg .b-aor .ed-rand-lijn { stroke: var(--aor); stroke-dasharray: 12 6; }
.ed-svg .b-aos .ed-rand-lijn { stroke: var(--aos); stroke-dasharray: 3 4 12 4; }
.ed-svg .ed-rand-dun { stroke-width: 3; stroke-linecap: round; }
.ed-svg .ed-rand-dun.b-avr { stroke: var(--avr); stroke-width: 2; stroke-dasharray: 2 5; }
.ed-svg .ed-rand-dun.b-buiten { stroke: var(--tekst); }
.ed-svg .ed-rand-dun.b-aor { stroke: var(--aor); stroke-dasharray: 9 5; }
.ed-svg .ed-rand-dun.b-aos { stroke: var(--aos); stroke-dasharray: 3 3 9 3; }
.ed-svg .ed-kamer-vlak { stroke: var(--stil); stroke-width: 1.5; }
.ed-svg .f-verblijf .ed-kamer-vlak { fill: var(--f-verblijf); }
.ed-svg .f-nat .ed-kamer-vlak { fill: var(--f-nat); }
.ed-svg .f-verkeer .ed-kamer-vlak { fill: var(--f-verkeer); }
.ed-svg .f-berging .ed-kamer-vlak { fill: var(--f-berging); }
.ed-svg .f-overig .ed-kamer-vlak, .ed-svg [class*="f-u"] .ed-kamer-vlak { fill: var(--f-overig); }
.ed-svg .f-u1 .ed-kamer-vlak { fill: var(--f-verblijf); } .ed-svg .f-u2 .ed-kamer-vlak { fill: var(--f-nat); }
.ed-svg .f-u3 .ed-kamer-vlak { fill: var(--f-berging); } .ed-svg .f-u4 .ed-kamer-vlak { fill: var(--f-overig); }
.ed-svg .f-leeg .ed-kamer-vlak { fill: var(--f-leeg); }
.ed-svg .ed-kamer.gekozen .ed-kamer-vlak { stroke: var(--voor); stroke-width: 3.5; }
.ed-svg .ed-kamer.onverwarmd .ed-kamer-vlak { fill-opacity: .55; }
.ed-svg .ed-naam.leeg { fill: var(--stil); font-style: italic; font-weight: 500; }

.lg-avr { border-top: 3px dotted var(--avr); }
.lg-buiten { border-top: 4px solid var(--tekst); }
.lg-aor { border-top: 4px dashed var(--aor); }
.lg-aos { border-top: 4px dashed var(--aos); }
.ed-randrij { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--bg); }
.ed-randkop { display: grid; grid-template-columns: 28px auto 1fr; gap: 10px; align-items: center; }
.ed-segment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ed-seg { min-height: 40px; border-radius: 7px; border: 1px solid var(--lijn); background: var(--vlak); color: var(--tekst); font: 600 .88rem var(--sans); cursor: pointer; }
.ed-seg.actief { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ed-seg.actief.b-avr { background: var(--avr); border-color: var(--avr); color: #fff; }
.ed-seg.actief.b-buiten { background: var(--tekst); border-color: var(--tekst); color: var(--bg); }
.ed-seg.actief.b-aor { background: var(--aor); border-color: var(--aor); color: #fff; }
.ed-seg.actief.b-aos { background: var(--aos); border-color: var(--aos); color: #fff; }
.ed-segment.kol-2 { grid-template-columns: repeat(2, 1fr); } .ed-segment.kol-3 { grid-template-columns: repeat(3, 1fr); }
.ed-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-gegevens dd.groot { font-size: 1.15rem; font-weight: 700; }
.tabel tr.klikbaar { cursor: pointer; }
.tabel tr.klikbaar:hover td { background: var(--merk-licht); }
.tabel tfoot th { border-top: 2px solid var(--lijn); color: var(--tekst); }
/* Lange keuzelijsten (functies) passen altijd op het scherm. */
.kp { max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.kp-keuze { width: min(520px, 100%); }
.kp-opties { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Woningstrook in de geveltekening */
.contour .strookdeel { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: none; }
.contour .snijlijn { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 8 5; }
.contour .woningpunt circle { fill: var(--voor); stroke: var(--vlak); stroke-width: 2; }
.contour .woningpunt text { font: 600 12px var(--sans); fill: var(--tekst); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.contour .buiten-strook { opacity: .3; }
.lg-snijlijn { border-top: 3px dashed var(--accent); }
.strookblok { display: grid; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--merk-licht); margin: 6px 0; }
.strookblok p { margin: 0; }
.veldlabel.inline { display: inline-flex; align-items: center; gap: 8px; }

/* Uitsparing, voorzetwand, geveldelen */
.ed-svg .ed-deel.aftrek .ed-vulling { fill: var(--bg); opacity: 1; }
.ed-svg .ed-deel.aftrek .ed-deelrand { stroke: var(--aor); stroke-dasharray: 6 4; stroke-width: 2; }
.ed-svg .ed-deel.aftrek.gekozen .ed-vulling { fill: color-mix(in srgb, var(--aor) 15%, var(--bg)); }
.ed-svg .ed-voorzet { font: 700 20px var(--sans); fill: var(--tekst); pointer-events: none; }
.radio.klein { min-height: 32px; font-size: .9rem; }
.radio.klein input { width: 18px; height: 18px; }
.ed-gevels { display: grid; gap: 8px; border-top: 1px solid var(--lijn); padding-top: 10px; }
.ed-gevels .tabel th, .ed-gevels .tabel td { padding: 6px 6px; font-size: .88rem; }

/* Kozijnen */
.ed-svg .ed-rand-dun.kiesbaar { stroke-width: 5; cursor: pointer; }
.ed-svg .ed-rand-dun.gevel-gekozen { stroke: var(--voor); stroke-width: 8; stroke-dasharray: none; }
.ed-svg .ed-kz-badge { fill: var(--accent); stroke: var(--vlak); stroke-width: 2; }
.ed-svg .ed-kz-badge-t { font: 700 12px var(--sans); fill: #fff; stroke: none; }
.kz-kaart { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--bg); }
.kz-kop { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.kz-kop strong { font-size: 1rem; white-space: nowrap; }
.kz-totaal { color: var(--stil); font-variant-numeric: tabular-nums; margin-right: auto; }
.kz-totaal.kort { white-space: nowrap; }
.kz-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--lijn); }
.kz-soort { font-weight: 700; min-width: 52px; }
/* Raam, deur en paneel elk een eigen achtergrond (0.53.23, wens adviseur): sneller zien wat wat is. */
.kz-rij.kz-raam, .kz-rij.kz-deur, .kz-rij.kz-paneel { border-top: 0; margin-top: 6px; padding: 6px 8px; border-radius: 8px; border-left: 4px solid; }
.kz-rij.kz-raam { background: #e6f1fb; border-left-color: #3b82c4; }
.kz-rij.kz-deur { background: #fbefe2; border-left-color: #b8742a; }
.kz-rij.kz-paneel { background: #eceee9; border-left-color: #7d8a74; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) .kz-rij.kz-raam { background: #17283a; }
  :root:not([data-thema="licht"]) .kz-rij.kz-deur { background: #33261a; }
  :root:not([data-thema="licht"]) .kz-rij.kz-paneel { background: #252a23; }
}
:root[data-thema="donker"] .kz-rij.kz-raam { background: #17283a; }
:root[data-thema="donker"] .kz-rij.kz-deur { background: #33261a; }
:root[data-thema="donker"] .kz-rij.kz-paneel { background: #252a23; }
.kz-glas { width: auto; min-width: 0; flex: 1 1 120px; min-height: 36px; padding: 4px 8px; }
.kz-klein { width: auto; min-height: 36px; padding: 4px 8px; }
.kz-opp { display: inline-flex; gap: 4px; }
.kz-weg { color: var(--fout); margin-left: auto; }
.kz-extra { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 58px; color: var(--stil); font-size: .9rem; }
.ed-svg .ed-kz-badge.open { fill: var(--let-op); }
.nog-kiezen { border-color: var(--let-op) !important; color: var(--let-op); }
.kz-kaart.heeft-open { border-color: var(--let-op); }
.kz-open { color: var(--let-op); font-weight: 600; }
.kz-openlijst { margin: 0; color: var(--let-op); font-size: .85rem; }
.kz-detail { font-size: .82rem; }
.ed-svg .ed-gevelnr { fill: var(--vlak); stroke: currentColor; stroke-width: 2.5; }
.ed-svg .ed-gevelnr[data-gevelnr] { cursor: grab; }
.ed-svg .ed-gevelnr.b-buiten { stroke: var(--tekst); } .ed-svg .ed-gevelnr.b-aor { stroke: var(--aor); } .ed-svg .ed-gevelnr.b-aos { stroke: var(--aos); }
.ed-svg .ed-gevelnr.gekozen { fill: var(--accent); stroke: var(--accent); }
.ed-svg .ed-gevelnr-t { font: 700 14px var(--sans); fill: var(--tekst); stroke: none; pointer-events: none; }
.ed-svg .ed-gevelnr.gekozen + .ed-gevelnr-t { fill: #fff; }
.ed-gevelnr-chip { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--lijn); font-weight: 700; font-size: .85rem; }
.ed-svg .ed-gevelnr.schil-klaar { fill: color-mix(in srgb, var(--ok) 30%, var(--vlak)); }
.ed-svg .ed-gevelnr.schil-open { fill: color-mix(in srgb, var(--let-op) 30%, var(--vlak)); }
.schil-kaart.gekozen { outline: 3px solid var(--accent); outline-offset: 1px; }
.schil-uitkomst { margin: 0; font-weight: 600; }
.schil-uitkomst.let-op { color: var(--let-op); }
.schil-iso { flex: 1 1 220px; }
.kz-matrij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kz-matrij select { flex: 1 1 160px; width: auto; }
.kz-over { align-self: center; white-space: nowrap; font-size: .75rem; color: var(--stil); border: 1px dashed var(--lijn); border-radius: 6px; padding: 1px 6px; }
.kp-extra { flex: 1.2; }
.kz-detail.aan { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.kz-aandeel { font-weight: 600; }
.kz-aandeel.let-op { color: var(--let-op); }
.kz-toevoegen { display: flex; gap: 6px; flex-wrap: wrap; }
.kz-bewijs { margin: 0; font-size: .82rem; }

/* Controle vóór export */
.controlelijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.controlelijst li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.controlelijst li.verplicht { border-left: 4px solid var(--let-op); }
.controlelijst li.aanbevolen { border-left: 4px solid var(--lijn); }
.controle-ernst { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--stil); min-width: 86px; }
.controlelijst li.verplicht .controle-ernst { color: var(--let-op); }
.ed-rij-acties { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lijn); }
.knop.knop-stil { background: transparent; border-style: dashed; color: var(--stil); font-weight: 400; }
.ed-svg .ed-deel.aftrek .ed-vulling { fill: url(#ed-arcering); }
.ed-svg .ed-afgesneden-t { font: 600 12px var(--sans); fill: var(--aor); pointer-events: none; }
.ed-svg .ed-voorbeeld-af { fill: color-mix(in srgb, var(--aor) 30%, transparent); stroke: var(--aor); stroke-width: 2; stroke-dasharray: 6 4; }
.ed-svg .ed-arcering-bg { fill: var(--bg); }
.ed-svg .ed-arcering-lijn { stroke: color-mix(in srgb, var(--aor) 45%, transparent); stroke-width: 2; }
.ed-svg .ed-afgesneden { fill: url(#ed-arcering); stroke: var(--aor); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
/* Onderlegger */
.verborgen { display: none !important; }
.ed-sectie { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--lijn); display: grid; gap: 8px; }
.ed-sectie h3 { margin: 0; }
.ed-svg .ed-onderlegger { pointer-events: none; }
.ed-svg .ed-olpunt { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.ed-svg .ed-oltekst { font: 600 13px var(--sans); fill: var(--accent); paint-order: stroke; stroke: var(--bg); stroke-width: 3; }
/* Vloerdelen en ruimtes buiten het GO */
.ed-svg .ed-vloerdeel { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ed-svg .ed-vloerdeel.g-kelder, .ed-svg .ed-vloerdeel.g-aor { fill: color-mix(in srgb, var(--aor) 14%, transparent); }
.ed-svg .ed-vloerdeel.g-grond { fill: color-mix(in srgb, #8a6d3b 14%, transparent); }
.ed-svg .ed-vloerdeel.gekozen { stroke-width: 3; stroke-dasharray: none; }
.ed-svg .ed-vloerdeel-t { font: 600 12px var(--sans); fill: var(--stil); pointer-events: none; }
.tabel tr.buiten-go td { color: var(--stil); font-style: italic; }
.ed-svg .ed-dakdeel { fill: color-mix(in srgb, var(--voor) 10%, transparent); stroke: var(--voor); stroke-width: 1.5; stroke-dasharray: 2 4; pointer-events: none; }
.ed-svg .ed-dakdeel.gekozen { fill: color-mix(in srgb, var(--voor) 22%, transparent); }
/* 3D-controle */
.knoppenrij { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ed-tab-3d { font-weight: 700; }
.drie { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); }
.drie-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: 1px solid var(--lijn); background: var(--vlak); }
.drie-kop strong { margin-right: auto; }
.drie-legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--stil); }
.drie-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }
.drie-vlak { position: relative; min-height: 0; touch-action: none; }
.drie-vlak canvas { display: block; width: 100%; height: 100%; }
.drie-info { display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lijn); background: var(--vlak); font-weight: 600; min-height: 1.4em; }
.drie-info-tekst { flex: 1; min-width: 0; }
.drie-sluit { flex: none; }
/* Met onderlegger: vlakken doorzichtig zodat de tekening eronder leesbaar blijft */
.ed-svg.met-onderlegger .ed-kamer-vlak, .ed-svg.met-onderlegger .ed-deel .ed-vulling, .ed-svg.met-onderlegger .ed-vloerdeel { fill-opacity: .22; }
.ed-svg.met-onderlegger .ed-omtrekvlak { opacity: .15; }
.kz-netto { font-size: .8rem; color: var(--stil); white-space: nowrap; }
.kz-netto.let-op { color: var(--let-op); font-weight: 600; }
.veld-alleen-lezen { display: flex; align-items: center; gap: 8px; background: var(--bg); color: var(--tekst); min-height: 44px; }
.classificatie { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lijn); }
.classificatie h3 { margin: 0 0 8px; }
.ed-svg .ed-snijpunt { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
/* Hellend dak */
.ed-svg .ed-dakvlak { fill: rgba(192, 87, 62, 0.10); stroke: #c0573e; stroke-width: 1.5; stroke-dasharray: 6 4; }
.ed-svg .ed-dakvlak.gekozen { fill: rgba(192, 87, 62, 0.20); }
.ed-svg .ed-dakvlak-t { font-size: 13px; font-weight: 600; fill: #c0573e; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.ed-svg .ed-nok { stroke: #2e9d4f; stroke-width: 4; stroke-linecap: round; }
.ed-svg .ed-lijn15 { fill: none; stroke: #2e9d4f; stroke-width: 1.5; stroke-dasharray: 2 4; }
.dakvorm { display: grid; gap: 8px; margin-top: 8px; }
.dakvorm h3 { margin: 6px 0 0; font-size: 15px; }
.dak-zijden { display: grid; gap: 6px; }
.dak-zijde { display: grid; grid-template-columns: 1fr minmax(170px, 55%); gap: 8px; align-items: center; }
.dak-vlakken .knop.let-op { border-color: var(--waarschuwing, #b35c00); color: var(--waarschuwing, #b35c00); }
.ed-svg .ed-nok.genegeerd { stroke: #9aa0a6; stroke-dasharray: 6 6; stroke-width: 3; }
.ed-svg .ed-nok-t { font-size: 15px; font-weight: 700; fill: #2e9d4f; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.dak-noks { display: grid; gap: 8px; }
.dak-nok { border: 1px solid var(--rand, #d0d4d8); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.dak-nok.genegeerd { opacity: 0.6; }
.dak-nok-kop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dak-nok-kop strong { color: #2e9d4f; font-size: 17px; }
.dak-einde { flex: 1; }
.ed-svg .ed-rand-dun.b-dak, .ed-svg .b-dak .ed-rand-lijn { stroke: #c0573e; stroke-dasharray: 2 5; stroke-width: 2; }
/* Begrenzing grond (keldermuur) */
:root { --grond: #8a6d3b; }
.ed-segment.kol-5 { grid-template-columns: repeat(5, 1fr); }
.ed-svg .b-grond .ed-rand-lijn { stroke: var(--grond); stroke-dasharray: 2 3; stroke-width: 6; }
.ed-svg .ed-rand-dun.b-grond { stroke: var(--grond); stroke-dasharray: 2 3; }
.lg-grond { border-top: 4px dotted var(--grond); }
.ed-seg.actief.b-grond { background: var(--grond); border-color: var(--grond); color: #fff; }
.ed-svg .ed-gevelnr.b-grond { stroke: var(--grond); }
.ed-svg .ed-kapel { fill: rgba(192, 87, 62, 0.28); stroke: #8e3b28; stroke-width: 1.5; }
.ed-svg .ed-kapel.terras { fill: rgba(90, 140, 200, 0.25); stroke: #2f6fb0; }
.ed-svg .ed-kapel-voor { stroke: #8e3b28; stroke-width: 4; stroke-linecap: round; }
.kaartlink { font-size: .95rem; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid var(--lijn); border-radius: 99px; padding: 2px 10px; vertical-align: middle; white-space: nowrap; }

/* Paneel op iPad-breedte: niets mag uit het paneel lopen. Kolommen krimpen mee, tabellen schuiven binnen hun eigen
   houder, knoppen en keuzelijsten breken af in plaats van weg te vallen. */
@media (min-width: 1001px) { .ed-werk { grid-template-columns: 88px minmax(0, 1fr) 14px var(--paneel-b, clamp(340px, 33vw, 480px)); } }
.ed-paneel { overflow-x: hidden; }
.ed-paneel-inhoud { grid-template-columns: minmax(0, 1fr); }
.ed-paneel-inhoud > *, .kaartlijst > * { min-width: 0; }
.ed-paneel table { width: 100%; }
.ed-paneel .tabelhouder, .ed-paneel .kz-tabel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ed-paneel th, .ed-paneel td { overflow-wrap: anywhere; }
.ed-paneel select, .ed-paneel input { max-width: 100%; min-width: 0; }
.ed-segment > *, .ed-rij > *, .ed-knoppen > * { min-width: 0; }
.ed-seg { padding: 0 4px; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
.ed-knoppen { flex-wrap: wrap; }
.ed-veld { flex-wrap: wrap; }
.ed-paneel td.num, .ed-paneel th.num { white-space: nowrap; overflow-wrap: normal; }
.ed-paneel .tabel th:not(.num), .ed-paneel .tabel td:not(.num) { white-space: normal; overflow-wrap: break-word; }
.ed-paneel .tabel th, .ed-paneel .tabel td { padding: 7px 6px; }

/* Bewijsfoto's */
.foto-strook { display: grid; gap: 6px; margin-top: 6px; }
.foto-strook .stil { margin: 0; }
.foto-rij { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foto-mini { width: 64px; height: 64px; padding: 0; border: 1px solid var(--lijn, #d6dcdc); border-radius: 8px; overflow: hidden; background: var(--vlak-2, #eef1f0); cursor: pointer; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-knop { min-height: 44px; }
.foto-laag { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 22, 25, 0.82); display: grid; place-items: center; padding: 16px; }
.foto-vak { background: var(--vlak, #fff); color: var(--tekst, #1f2a30); border-radius: 14px; max-width: min(1100px, 100%); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.foto-beeld { min-height: 0; display: grid; place-items: center; background: #111; }
.foto-beeld img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; display: block; }
.foto-onder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.foto-onder .veld { flex: 1 1 240px; min-width: 0; }
.ed-svg .ed-dakdeel-vak.g-buiten { fill: color-mix(in srgb, #c0573e 16%, transparent); stroke: #c0573e; }
.ed-svg .ed-dakdeel-vak.g-hellend { fill: color-mix(in srgb, #2f7a72 14%, transparent); stroke: #2f7a72; }
.ed-svg .ed-dakdeel-vak.g-avr, .ed-svg .ed-dakdeel-vak.g-intern { fill: color-mix(in srgb, #9aa3a8 12%, transparent); }

/* Installaties */
.inst-kaart { padding: 0; overflow: hidden; }
.inst-kop { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 48px; }
.inst-kop > span:first-of-type { flex: 1 1 160px; color: var(--stil); }
.inst-inhoud { padding: 0 14px 14px; display: grid; gap: 10px; }
.inst-zones { border: 1px solid var(--lijn, #d6dcdc); border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.veld.veld-open { border-color: var(--let-op, #c97a2b); }
li.verplicht { color: var(--fout, #b4432c); }
.projectlijst li.pk-rij { display: flex; gap: 8px; align-items: stretch; }
.projectlijst li.pk-rij > .projectkaart { flex: 1 1 auto; min-width: 0; }
.pk-weg { flex: 0 0 auto; width: 64px; align-self: center; white-space: nowrap; }
.pk-gekozen > .projectkaart { outline: 2px solid var(--fout); opacity: 0.75; }
.pk-voortgang { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pk-balk { flex: 1 1 auto; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--stil, #66737a) 18%, transparent); overflow: hidden; max-width: 320px; }
.pk-balk > span { display: block; height: 100%; background: var(--accent, #0f6b62); border-radius: 3px; }
.pk-balk > span.vol { background: var(--ok, #2f8a5b); }
.pk-pct { font-size: 0.85em; color: var(--stil, #66737a); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Verlichting: lampen tellen */
.lampen { gap: 6px; grid-column: 1 / -1; }
.lamp-lijst { display: grid; gap: 6px; }
.lamp-rij { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto; gap: 6px; align-items: center; }
.lamp-rij.met-laag { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr) auto; }
@media (max-width: 700px) { .lamp-rij { grid-template-columns: 1fr 1fr; } }
.rz-functies { margin: 4px 0; }
.lamp-kop span { font-size: 0.8rem; font-weight: 400; }
.lamp-foto { grid-column: 1 / -1; }
.foto-strook.klein { margin-top: 0; }
.foto-strook.klein .foto-mini { width: 40px; height: 40px; }
.inst-ruimtes { grid-column: 1 / -1; border: 1px solid var(--lijn, #d6dcdc); border-radius: 8px; padding: 8px 12px; min-width: 0; }
.inst-ruimtegroep { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 4px 0; }
.inst-ruimtegroep > .stil { flex-basis: 100%; font-size: 0.85rem; }
.inst-voorstel ul { margin: 6px 0; padding-left: 0; list-style: none; }
.inst-ocr { white-space: pre-wrap; font-size: 0.75rem; max-height: 200px; overflow: auto; }
.uit-foto { margin-left: 6px; font-size: 0.7rem; }
.kop-knoppen { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bouwwijze { margin: 8px 0; }
.bouwwijze .raster { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.bouwwijze select { min-width: 0; width: 100%; }

/* Verlichting: zones, stappen, dekking */
.vl-uitleg { margin: 4px 0 10px; padding-left: 20px; }
.vl-dekking { border: 1px solid var(--lijn); border-radius: 8px; padding: 8px 10px; margin: 6px 0; display: grid; gap: 6px; }
.vl-dekking.let-op { border-color: var(--let-op, #c98a2b); }
.vl-balk { height: 8px; border-radius: 4px; background: var(--lijn); overflow: hidden; }
.vl-balk > span { display: block; height: 100%; background: var(--accent); }
.vl-dekking.let-op .vl-balk > span { background: var(--let-op, #c98a2b); }
.vl-stap { border-top: 1px solid var(--lijn); padding-top: 8px; margin-top: 4px; display: grid; gap: 8px; }
.vl-stap > h3 { margin: 0; font-size: .95rem; }
.vl-totaal { font-weight: 600; color: var(--tekst); }
.vl-leeg { display: grid; gap: 8px; justify-items: start; padding: 8px 0; }
.linkknop { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.vl-zone .inst-kop .stil { font-size: .85rem; }
.adviseurgegevens { margin: 12px 0; }
.adviseurgegevens summary { cursor: pointer; font-weight: 600; }
/* Tapwater (EPW): toestel en tappunten */
.ed-svg .ed-tap-lijn { stroke: #2b7bb9; stroke-width: 2; stroke-dasharray: 6 4; fill: none; }
.ed-svg .ed-tap-lijn.elders { opacity: .6; }
.ed-svg .ed-tap:not(.actief) { opacity: .55; }
.ed-svg .ed-tap-punt { stroke: #fff; stroke-width: 2; fill: #2b7bb9; }
.ed-svg .ed-tap-punt.toestel { fill: #c0392b; }
.ed-svg .ed-tap-punt.keuken { fill: #2e8b57; }
.ed-svg .ed-tap-punt.tappunt { fill: #7d4aa8; }
.ed-svg .ed-tap-punt.elders { opacity: .5; }
.ed-svg .ed-tap-punt.gekozen { stroke: var(--accent); stroke-width: 4; }
.ed-svg .ed-tap-letter { fill: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.ed-svg .ed-tap-maat { fill: var(--tekst, #222); font-size: 13px; font-weight: 600; paint-order: stroke; stroke: var(--bg, #fff); stroke-width: 3px; pointer-events: none; }

/* Opnameformulier (afdrukbaar, A4; opzet voorbeeld 9-11-2026) */
.formulier { padding: 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.f-balk { display: flex; align-items: center; gap: 16px; max-width: 210mm; margin: 0 auto 8px; }
.f-balk .terug { white-space: nowrap; }
.f-balk .f-titel { font-weight: 700; font-size: 1.1rem; flex: 1; }
.f-balk .knop { white-space: nowrap; }
.formulier > p.stil { max-width: 210mm; margin: 0 auto 12px; }
.formulier-bladen { --inkt: #1f2a30; --fstil: #66737a; --flijn: #d6dcdc; --faccent: #0f6b62; --frood: #b4432c; --zacht: #f3f6f5;
  font: 9pt/1.4 system-ui, -apple-system, 'Inter', sans-serif; color: var(--inkt); }
.formulier-bladen .fblad { background: #fff; width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto 16px; padding: 14mm; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.formulier-bladen * { box-sizing: border-box; }
.formulier-bladen .pkop { display: flex; justify-content: space-between; gap: 4mm; font-size: 7.5pt; color: var(--fstil); border-bottom: 0.4mm solid var(--faccent); padding-bottom: 1.5mm; margin-bottom: 4mm; }
.formulier-bladen .merk { color: var(--faccent); font-weight: 700; letter-spacing: 0.02em; }
.formulier-bladen h1 { font-size: 16pt; margin: 0 0 4mm; letter-spacing: -0.01em; color: var(--inkt); }
.formulier-bladen h2 { font-size: 10pt; margin: 5mm 0 2mm; color: var(--faccent); text-transform: uppercase; letter-spacing: 0.06em; }
.formulier-bladen .twee { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
.formulier-bladen table { border-collapse: collapse; width: 100%; }
.formulier-bladen .t th, .formulier-bladen .t td { text-align: left; padding: 1.1mm 1.6mm; border-bottom: 0.2mm solid var(--flijn); vertical-align: top; }
.formulier-bladen .t thead th { font-size: 7.5pt; color: var(--fstil); font-weight: 600; border-bottom: 0.35mm solid var(--inkt); }
.formulier-bladen .t tfoot td { border-top: 0.35mm solid var(--inkt); border-bottom: 0; font-weight: 700; }
.formulier-bladen .t.klein { font-size: 8pt; }
.formulier-bladen .t tr.vervolg td { border-top: 0; }
.formulier-bladen .t tr.mis td { background: #fbefeb; }
.formulier-bladen .n { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.formulier-bladen .kv th { text-align: left; font-weight: 500; color: var(--fstil); padding: 1.2mm 2mm 1.2mm 0; width: 26%; vertical-align: top; }
.formulier-bladen .kv td { padding: 1.2mm 4mm 1.2mm 0; }
.formulier-bladen .kv.klein th { width: 35%; }
.formulier-bladen .stil { color: var(--fstil); font-size: 7.5pt; }
.formulier-bladen .tag { display: inline-block; font-size: 6.5pt; padding: 0.2mm 1.4mm; border-radius: 2mm; background: var(--zacht); color: var(--faccent); font-weight: 600; }
.formulier-bladen .tag.rood { background: #fbe3dc; color: var(--frood); }
.formulier-bladen .let { background: #fdf3e7; border-left: 0.8mm solid #d98a2b; padding: 2mm 3mm; font-size: 8pt; }
.formulier-bladen .voorblad { display: flex; flex-direction: column; }
.formulier-bladen .vb-merk { font-size: 10pt; font-weight: 700; color: var(--faccent); border-bottom: 0.6mm solid var(--faccent); padding-bottom: 3mm; }
.formulier-bladen .vb-merk small { font-weight: 500; color: var(--fstil); }
.formulier-bladen .vb-adres { font-size: 26pt; margin: 14mm 0 8mm; line-height: 1.1; }
.formulier-bladen .vb-adres span { font-size: 15pt; color: var(--fstil); font-weight: 500; }
.formulier-bladen .vb-foto { height: 78mm; border: 0.3mm dashed var(--flijn); background: var(--zacht); display: grid; place-content: center; text-align: center; color: var(--fstil); margin-bottom: 8mm; }
.formulier-bladen .vb-foto.heeft { border: 0; background: none; height: auto; display: block; }
.formulier-bladen .vb-foto img { display: block; max-width: 100%; max-height: 95mm; margin: 0 auto; border-radius: 1mm; }
.formulier-bladen .voorblad .kv th { width: 20%; } .formulier-bladen .voorblad .kv td { width: 30%; }
.formulier-bladen .voorblad .kv tr { border-bottom: 0.2mm solid var(--flijn); }
.formulier-bladen .vb-status { margin-top: 8mm; padding: 3mm 4mm; font-weight: 600; border-radius: 1.5mm; }
.formulier-bladen .vb-status.open { background: #fbe3dc; color: var(--frood); }
.formulier-bladen .vb-status.ok { background: #e2f1ec; color: var(--faccent); }
.formulier-bladen .vb-voet { margin-top: auto; padding-top: 10mm; font-size: 7.5pt; color: var(--fstil); }
.formulier-bladen .planvak { display: flex; justify-content: center; border: 0.2mm solid var(--flijn); padding: 2mm; }
.formulier-bladen .planvak svg { max-width: 100%; height: auto; }
.formulier-bladen .plan text { font-family: system-ui, -apple-system, 'Inter', sans-serif; text-anchor: middle; fill: var(--inkt); }
.formulier-bladen .plan .rl { font-size: 2.6px; font-weight: 600; }
.formulier-bladen .plan .rm { font-size: 2.2px; fill: var(--fstil); }
.formulier-bladen .plan .maat { font-size: 2.1px; fill: #37464d; }
.formulier-bladen .plan .gn { font-size: 2.4px; font-weight: 700; }
.formulier-bladen .plan .tapl { font-size: 2.4px; font-weight: 700; fill: #fff; }
.formulier-bladen .plan .leidingmaat { font-size: 2.6px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 0.8px; }
.formulier-bladen .legenda { display: flex; flex-wrap: wrap; gap: 2mm 5mm; font-size: 7.5pt; color: var(--fstil); margin: 2mm 0 0; }
.formulier-bladen .legenda i { display: inline-block; width: 6mm; height: 1mm; margin-right: 1.5mm; vertical-align: middle; }
.formulier-bladen .legenda i.streep { background: repeating-linear-gradient(90deg, #c0573e 0 1.2mm, transparent 1.2mm 2mm); }
.formulier-bladen .legenda .bol { display: inline-block; width: 4mm; height: 4mm; line-height: 4mm; border-radius: 50%; color: #fff; text-align: center; font-size: 6.5pt; margin-right: 1.5mm; }
.formulier-bladen .ovraster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; color: #222; }
.formulier-bladen .ovraster figure { margin: 0; break-inside: avoid; }
.formulier-bladen .ovraster svg { width: 100%; height: auto; display: block; }
.formulier-bladen .ovraster figcaption { font-size: 7pt; color: var(--fstil); }
.formulier-bladen .fotoraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.formulier-bladen .fotoraster figure { margin: 0; break-inside: avoid; }
.formulier-bladen .fotoraster img { width: 100%; height: 52mm; object-fit: cover; border-radius: 1mm; display: block; background: var(--zacht); }
.formulier-bladen .fotoraster figcaption { font-size: 7pt; color: var(--fstil); margin-top: 1mm; }
.formulier-bladen .contr li.v { color: var(--frood); }
.formulier-bladen .notitie { white-space: pre-wrap; border-left: 0.6mm solid var(--flijn); padding-left: 3mm; }
.formulier-bladen .tekenen { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 6mm; }
.formulier-bladen .tekenen > div { border-top: 0.3mm solid var(--inkt); padding-top: 2mm; min-height: 28mm; font-size: 8pt; color: var(--fstil); }
.formulier-bladen .tekenen b { color: var(--inkt); }
/* Verlichting (0.53.0, wens adviseur: beter onderscheid): zone als witte kaart met gekleurde rand, stappen als eigen blokken. */
.vl-sectie .kaartlijst { gap: 14px; }
.vl-zone { background: var(--vlak); border: 1px solid var(--lijn); border-left: 6px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.vl-zone:nth-child(4n+2) { border-left-color: #c0573e; }
.vl-zone:nth-child(4n+3) { border-left-color: #2f6fb0; }
.vl-zone:nth-child(4n+4) { border-left-color: #8a6d3b; }
.vl-zone.gekozen { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.vl-zone .inst-kop { background: var(--merk-licht); }
.vl-zone.gekozen .inst-kop { border-bottom: 1px solid var(--lijn); }
.vl-zone .inst-inhoud { padding-top: 12px; }
.vl-stap { border-top: none; margin-top: 0; padding: 10px 12px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--lijn); }
.vl-stap > h3 { color: var(--accent); font-size: 1rem; }
.vl-fotos { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--vlak)); }
.vl-totaal { padding: 6px 10px; border-radius: 8px; background: var(--vlak); border: 1px solid var(--lijn); }

/* Snelkoppelingen op de projectpagina */
.snelkoppelingen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
/* Alle zeven op één rij in liggend (0.53.18, wens adviseur: BAG-viewer viel op een tweede rij); staand vullen ze de rijen. */
.snelkoppelingen .knop { flex: 1 1 auto; min-height: 44px; padding: 0 10px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* Staand (iPad): alle zeven stappen in beeld, in twee rijen (4 + 3), niet half buiten het scherm. */
@media (max-width: 1000px) {
  .ed-stappen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-x: visible; }
  .ed-stap { min-width: 0; overflow: hidden; }
  .ed-stap-naam, .ed-stap-info { overflow: hidden; text-overflow: ellipsis; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  header.balk, .geen-afdruk, .toast, #toast { display: none !important; }
  .formulier { padding: 0; }
  .formulier-bladen .fblad { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; break-after: page; }
  .formulier-bladen .fblad:last-child { break-after: auto; }
  .formulier-bladen .voorblad { min-height: 265mm; }
  .formulier-bladen .planvak, .formulier-bladen .t tr, .formulier-bladen h2 { break-inside: avoid; }
  .formulier-bladen h2 { break-after: avoid; }
}
/* Airco: binnen- en buitendelen (stap 3) */
.ed-svg .ed-ac:not(.actief) { opacity: .6; }
.ed-svg .ed-ac-deel { fill: #0e8fb5; stroke: #fff; stroke-width: 2; }
.ed-svg .ed-ac-deel.buiten { fill: #5b6670; }
.ed-svg .ed-ac-deel.gekozen { stroke: var(--accent); stroke-width: 4; }
.ed-svg .ed-ac-letter { fill: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.formulier-bladen .legenda .bol.vierkant { border-radius: 0.8mm; }
.ed-svg .ed-ac-vlok { stroke: #fff; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.formulier-bladen .aanzicht { margin: 0 0 4mm; break-inside: avoid; }
.formulier-bladen .aanzicht img { width: 100%; max-height: 112mm; object-fit: contain; display: block; border: 0.2mm solid var(--flijn); }
@media print {
  /* Afgeronde hoeken laten WebKit de foto bijknippen en opnieuw rasteren: in de PDF recht (kleiner bestand). */
  .formulier-bladen .fotoraster img, .formulier-bladen .vb-foto img { border-radius: 0; }
}
.formulier-bladen .aanzicht figcaption { font-size: 7.5pt; color: var(--fstil); margin-top: 1mm; }
.ed-svg .ed-dakvlak.kz { fill: rgba(192, 87, 62, 0.05); stroke-width: 1; }
.ed-svg .ed-dakvlak.kz.gekozen { fill: rgba(192, 87, 62, 0.25); stroke-width: 2.5; stroke-dasharray: none; }
.formulier-bladen .plan .dakl { font-size: 3px; font-weight: 700; fill: #c0573e; }

.controlelijst .linkknop { text-align: left; }
/* 3D-controle: bouwlagen aan/uit (0.53.28) */
.drie-lagen { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: .9rem; max-height: calc(100% - 20px); overflow: auto; }
.drie-lagen label { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.drie-lagen input { width: 20px; height: 20px; }
.drie-lagen .linkknop { text-align: left; font-size: .85rem; }

/* Inklapbare uitleg in het paneel (0.53.31) */
.paneel-uitleg { margin: 4px 0 8px; }
.paneel-uitleg > summary { cursor: pointer; color: var(--stil); font-size: .85rem; list-style: none; display: inline-block; padding: 2px 10px; border: 1px solid var(--lijn); border-radius: 999px; }
.paneel-uitleg > summary::-webkit-details-marker { display: none; }
.paneel-uitleg[open] > summary { margin-bottom: 4px; }
.paneel-uitleg > p { margin: 0; }

/* Functies in serie (stap 3, 0.53.31) */
.functie-keuzes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.functie-keuze { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.functie-keuze.actief { outline: 3px solid var(--voor); outline-offset: 0; font-weight: 600; }
.fk-kleur { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--stil); background: var(--f-overig); flex: none; }
.fk-kleur.f-verblijf, .fk-kleur.f-u1 { background: var(--f-verblijf); } .fk-kleur.f-nat, .fk-kleur.f-u2 { background: var(--f-nat); }
.fk-kleur.f-verkeer { background: var(--f-verkeer); } .fk-kleur.f-berging, .fk-kleur.f-u3 { background: var(--f-berging); }
.fk-tel { font-size: .75rem; color: var(--stil); font-variant-numeric: tabular-nums; }

/* Gevelnummer aanwijzen (stap 2, 0.53.32) */
button.ed-gevelnr-chip { background: var(--vlak); color: inherit; font-family: inherit; cursor: pointer; padding: 0 6px; }
.ed-gevelnr-chip.gekozen { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed-randrij.gemarkeerd, tr.gemarkeerd > td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ed-svg .ed-rand.gemarkeerd .ed-rand-lijn { stroke-width: 9; }
.ed-svg .ed-deelnr { cursor: pointer; }

/* Hele pand (projectpagina, 0.53.44) */
.pand-blok { margin-top: 14px; border-top: 1px solid var(--lijn); padding-top: 10px; }
.pand-blok h3 { margin: 0; }
.pand-blok tr.eigen > td { font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pand-blok tr.stil > td { color: var(--stil); }
.pand-blok .chip { margin-left: 6px; }
.pand-lijst > summary { cursor: pointer; margin: 6px 0; }

/* Energielabels (EP-Online, 0.53.46) */
.labels-blok { margin-top: 12px; }
.labels-tabel td, .labels-tabel th { white-space: nowrap; font-size: .85rem; }
.labels-tabel td.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: .78rem; }
.labelchip { display: inline-block; min-width: 2.6em; text-align: center; font-weight: 700; padding: 1px 6px; border-radius: 3px; color: #fff; background: #888; }
.label-Appppp, .label-Apppp, .label-Appp { background: #00843d; } .label-App { background: #22a14a; } .label-Ap { background: #4cb748; }
.label-A { background: #79c142; } .label-B { background: #b8d334; color: #222; } .label-C { background: #ffd500; color: #222; }
.label-D { background: #f7a600; color: #222; } .label-E { background: #ef6a2f; } .label-F { background: #e4321c; } .label-G { background: #c00000; }
.ep-velden pre { font-size: .75rem; white-space: pre-wrap; max-height: 260px; overflow: auto; }
/* Zonnestroom per dakvlak (0.53.52) */
.pv-velden { margin-top: 12px; }
.pv-velden h3 { margin: 4px 0 8px; font-size: 1rem; }
.pv-velden .kz-kaart { margin-bottom: 8px; }
.pv-tabel td:first-child { white-space: normal; }
