/* Offertemaker — huisstijl afgeleid van Bij de dienst (licht thema: warm papier, koper-oranje accent). */
:root {
  --bg: #f4efe6;
  --papier: #fffcf6;
  --vlak: #efe8dc;
  --vlak-2: #e8dfcf;
  --inkt: #2b2521;
  --inkt-2: #6a5f55;
  --inkt-3: #8f8378;
  --lijn: #e6dccb;
  --lijn-2: #d9ccb6;
  --merk: #b45f2a;
  --merk-donker: #96491b;
  --merk-zacht: #f7e6d6;
  --live: #b0782a;
  --blauw: #34568f;
  --blauw-zacht: #e4eaf4;
  --groen: #4a7536;
  --groen-zacht: #e3eed9;
  --rood: #b0392b;
  --rood-zacht: #f7e0db;
  --schaduw: 0 1px 2px rgba(70, 45, 20, 0.05), 0 18px 40px -18px rgba(70, 45, 20, 0.22);
  --schaduw-klein: 0 1px 2px rgba(70, 45, 20, 0.05), 0 8px 20px -12px rgba(70, 45, 20, 0.25);
  --schaduw-groot: 0 2px 6px rgba(70, 45, 20, 0.08), 0 30px 70px -20px rgba(70, 45, 20, 0.35);
  --rond: 18px;
  --rond-klein: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --lees: "Literata", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  font-size: 16px;
}
:root[data-tekst="groot"] { font-size: 17.5px; }
:root[data-tekst="extra"] { font-size: 19px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { height: 100%; }
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--inkt);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--merk); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--merk) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--merk-zacht); }
.icoon { width: 1.25em; height: 1.25em; flex-shrink: 0; display: inline-block; vertical-align: -0.25em; }
[data-icoon] { display: inline-flex; }

/* ------------------------------------------------------------ kop */
.kop {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.5rem; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lijn);
}
.merk { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--inkt); }
.merk-icoon { width: 38px; height: 38px; }
.merk-blad { fill: var(--papier); stroke: var(--inkt); stroke-width: 2.2; }
.merk-lijn { stroke: var(--inkt-2); stroke-width: 2.2; stroke-linecap: round; }
.merk-stip { fill: var(--merk); }
.merk-vink { fill: none; stroke: var(--papier); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.merk-tekst { display: grid; line-height: 1; }
.merk-kicker { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--merk); }
.merk-naam { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; margin-top: 0.15rem; }
.kop-nav { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-knop {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.9rem; border-radius: 999px;
  color: var(--inkt-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-knop:hover { background: var(--vlak); color: var(--inkt); }
.nav-knop.actief { background: var(--papier); color: var(--inkt); box-shadow: inset 0 0 0 1px var(--lijn); }
.kop-nieuw { margin-left: 0.5rem; }
.limiet-meter { display: flex; flex-direction: column; gap: 0.15rem; margin-right: 0.5rem; padding: 0.3rem 0.6rem; border-radius: 10px;
  text-decoration: none; color: var(--inkt-2); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.limiet-meter:hover { background: var(--vlak); }
.limiet-meter[hidden] { display: none; }
.lm { display: grid; grid-template-columns: 3.1rem 4.2rem 2.4rem; align-items: center; gap: 0.35rem; }
.lm-pct { text-align: right; }
.lm-balk, .lk-balk { height: 6px; border-radius: 99px; background: var(--vlak-2); overflow: hidden; }
.lm-balk > span, .lk-balk > span { display: block; height: 100%; border-radius: 99px; background: var(--groen); }
.lm.oranje .lm-balk > span, .lk-rij.oranje .lk-balk > span { background: var(--live); }
.lm.rood .lm-balk > span, .lk-rij.rood .lk-balk > span { background: var(--rood); }
.lm.rood { color: var(--rood); }
.lk-rij { margin-top: 0.7rem; }
.lk-kop { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.3rem; }
.lk-pct { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.lk-balk { height: 9px; margin-bottom: 0.25rem; }
.lk-rij.rood .lk-pct { color: var(--rood); }
.breed-smal { max-width: 62rem; }
.ab-kaart { padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.ab-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ab-kop h2 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.ab-oordeel { padding: 0.3rem 0.8rem; border-radius: 99px; font-weight: 700; font-size: 0.85rem; background: var(--vlak); }
.ab-oordeel.groen { background: var(--groen-zacht); color: var(--groen); }
.ab-oordeel.oranje { background: var(--merk-zacht); color: var(--merk-donker); }
.ab-oordeel.rood { background: var(--rood-zacht); color: var(--rood); }
.ab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.ab-label { font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--inkt-3); font-weight: 600; }
.ab-getal { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0.1rem 0 0.3rem; }
.ab-getal.neg { color: var(--rood); }
.ab-kaart .lk-balk { position: relative; overflow: visible; }
.ab-prog { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--inkt); border-radius: 1px; }
.ab-weken { display: flex; align-items: flex-end; gap: 0.3rem; margin-top: 0.8rem; height: 2.4rem; }
.ab-week { width: 1.1rem; height: 100%; background: var(--vlak); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.ab-week > span { width: 100%; background: var(--groen); }
.ab-week.oranje > span { background: var(--live); }
.ab-week.rood > span { background: var(--rood); }
@media (max-width: 760px) { .ab-grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------ knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.6rem 1.15rem;
  border-radius: 999px; border: 1px solid var(--lijn-2);
  background: var(--papier); color: var(--inkt);
  font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.knop:hover { background: var(--vlak); }
.knop:active { transform: translateY(1px); }
.knop:disabled { opacity: 0.5; cursor: not-allowed; }
.knop-merk { background: var(--merk); border-color: var(--merk); color: #fff; box-shadow: 0 6px 16px -8px rgba(150, 73, 27, 0.6); }
.knop-merk:hover { background: var(--merk-donker); border-color: var(--merk-donker); }
.knop-groen { background: var(--groen); border-color: var(--groen); color: #fff; }
.knop-groen:hover { background: #3c6229; }
.knop-rood { background: var(--rood); border-color: var(--rood); color: #fff; }
.knop-rood:hover { background: #962e22; }
.knop-stil { background: transparent; border-color: transparent; color: var(--inkt-2); }
.knop-stil:hover { background: var(--vlak); color: var(--inkt); }
.knop-groot { min-height: 3.4rem; padding: 0.85rem 1.6rem; font-size: 1.08rem; }
.knop-klein { min-height: 2.2rem; padding: 0.35rem 0.85rem; font-size: 0.88rem; }
.knop-blok { width: 100%; }
.link-knop { border: 0; background: none; padding: 0; color: var(--merk); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.link-knop .icoon { width: 1.05em; height: 1.05em; margin-right: 0.3em; vertical-align: -0.15em; }
.link-knop.zacht-link { color: var(--inkt-2); font-weight: 500; }
.pb-lijst { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; }
.pb-lijst li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; background: var(--bg); padding: 0.55rem 0.8rem; border-radius: 10px; }

/* ------------------------------------------------------------ algemeen */
.app { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem 2rem; outline: none; }
.kicker { margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--merk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
.zacht { color: var(--inkt-2); }
.klein { font-size: 0.86rem; }
.kaart { background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--rond); box-shadow: var(--schaduw-klein); }
.leeg {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--inkt-2);
  border: 1.5px dashed var(--lijn-2); border-radius: var(--rond); background: color-mix(in srgb, var(--papier) 60%, transparent);
}
.leeg h3 { color: var(--inkt); margin-bottom: 0.4rem; }
.laden { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 3rem; color: var(--inkt-2); }
.draaier {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid color-mix(in srgb, var(--merk) 25%, transparent); border-top-color: var(--merk);
  animation: draai 0.9s linear infinite;
}
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes adem { 50% { opacity: 0.35; } }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* status-pillen */
.pil {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.22rem 0.7rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; background: var(--vlak); color: var(--inkt-2);
}
.pil::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pil-wacht { background: var(--merk); color: #fff; }
.pil-wacht::before { background: #fff; animation: adem 2s ease-in-out infinite; }
.pil-bezig { background: #f5ead6; color: #8a5a17; }
.pil-bezig::before { animation: adem 1.2s ease-in-out infinite; }
.pil-voorstel { background: var(--blauw-zacht); color: var(--blauw); }
.pil-offerte { background: var(--groen-zacht); color: var(--groen); }
.pil-verstuurd { background: #dfece9; color: #2f6b5f; }
.pil-opdracht { background: var(--groen); color: #fff; }
.pil-opdracht::before { background: #fff; }
.pil-vervallen { background: var(--vlak); color: var(--inkt-3); }

/* formulieren */
.veld { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.veld > span, .veld-label { font-weight: 600; font-size: 0.95rem; }
.veld small { color: var(--inkt-2); font-size: 0.84rem; font-weight: 500; }
.invoer {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--lijn-2); border-radius: 14px;
  background: var(--papier); color: var(--inkt); font-size: 1.05rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.invoer:focus { border-color: var(--merk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--merk) 14%, transparent); }
.invoer::placeholder { color: var(--inkt-3); font-weight: 500; }
textarea.invoer { resize: vertical; min-height: 7rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid var(--lijn-2);
  background: var(--papier); cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--inkt);
  transition: background-color .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--merk); }
.chip.aan { background: var(--merk); border-color: var(--merk); color: #fff; }
.chip .chip-tip { font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.chip.voorstel:not(.aan) { border-color: var(--merk); border-style: dashed; }

/* ------------------------------------------------------------ meldingbalk en toasts */
.melding-balk {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 1.5rem; background: var(--merk-zacht); border-bottom: 1px solid #ecc9aa; color: var(--inkt);
  font-weight: 600;
}
.melding-balk.fout { background: var(--rood-zacht); border-color: #ebbcb3; }
.toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100; display: grid; gap: 0.5rem; justify-items: center; }
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--inkt); color: var(--papier); padding: 0.75rem 1.2rem; border-radius: 14px;
  box-shadow: var(--schaduw-groot); font-weight: 600; animation: in .2s ease-out; max-width: 90vw;
}
.toast.fout { background: var(--rood); }
.toast.goed { background: var(--groen); }

/* ------------------------------------------------------------ overzicht (home) */
.held { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; padding: 2.6rem 0 2rem; }
.held-tekst p:not(.kicker) { font-family: var(--lees); font-weight: 400; font-size: 1.08rem; line-height: 1.6; color: var(--inkt-2); margin: 1rem 0 0; max-width: 34rem; }
.held-acties { display: grid; gap: 0.9rem; }
.groot-blok {
  display: flex; align-items: center; gap: 1.1rem; text-align: left; width: 100%;
  padding: 1.25rem 1.4rem; border-radius: 22px; border: 1px solid var(--lijn); background: var(--papier);
  box-shadow: var(--schaduw); cursor: pointer; text-decoration: none; color: var(--inkt);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.groot-blok:hover { transform: translateY(-2px); border-color: var(--merk); }
.groot-blok .blok-icoon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; flex-shrink: 0;
  background: var(--vlak); color: var(--merk);
}
.groot-blok .blok-icoon .icoon { width: 1.7rem; height: 1.7rem; }
.groot-blok.hoofd { background: var(--merk); border-color: var(--merk); color: #fff; }
.groot-blok.hoofd .blok-icoon { background: rgba(255,255,255,.18); color: #fff; }
.groot-blok.hoofd:hover { background: var(--merk-donker); }
.blok-titel { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.blok-sub { display: block; font-size: 0.92rem; opacity: 0.85; margin-top: 0.2rem; }
.blok-pijl { margin-left: auto; opacity: .7; }

.sectie { margin-top: 2rem; }
.sectie-kop { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wacht-rij { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0.9rem; }
.wacht-kaart {
  display: grid; gap: 0.35rem; padding: 1.05rem 1.15rem; text-decoration: none; color: var(--inkt);
  border-radius: var(--rond); background: var(--papier); border: 1px solid var(--lijn); border-left: 4px solid var(--merk);
  box-shadow: var(--schaduw-klein); transition: transform .12s, border-color .12s;
}
.wacht-kaart:hover { transform: translateY(-2px); }
.wacht-kaart .wk-klant { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.wacht-kaart .wk-sub { font-size: 0.88rem; color: var(--inkt-2); }

.filterbalk { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.zoekveld {
  flex: 1 1 280px; display: flex; align-items: center; gap: 0.6rem;
  padding: 0 1rem; border: 1.5px solid var(--lijn-2); border-radius: 14px; background: var(--papier);
}
.zoekveld:focus-within { border-color: var(--merk); }
.zoekveld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0.8rem 0; font-size: 1rem; }
.zoekveld .icoon { color: var(--inkt-3); }

/* kolommen op de lijst zelf (subgrid), zodat status en bedrag in elke rij even breed zijn */
.lijst {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) max-content minmax(110px, max-content) 1.5rem;
  gap: 0; border: 1px solid var(--lijn); border-radius: var(--rond); overflow: hidden; background: var(--papier); box-shadow: var(--schaduw-klein);
}
.rij {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid;
  gap: 1rem; align-items: center; padding: 0.9rem 1.15rem; text-decoration: none; color: var(--inkt);
  border-top: 1px solid var(--lijn); transition: background-color .1s;
}
.rij:first-child { border-top: 0; }
.rij:hover { background: color-mix(in srgb, var(--vlak) 55%, var(--papier)); }
.rij-klant { display: block; font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rij-sub { font-size: 0.86rem; color: var(--inkt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rij-wie { font-size: 0.86rem; color: var(--inkt-2); }
.rij-verstuurd { display: block; margin-top: 0.25rem; padding-left: 0.7rem; font-size: 0.76rem; color: var(--inkt-3); white-space: nowrap; }
.rij-bedrag { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.rij-bedrag small { display: block; color: var(--inkt-3); font-size: 0.78rem; }
.rij .icoon.pijl { color: var(--inkt-3); }
.voorbeeld-label { font-size: 0.7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--inkt-3); border: 1px solid var(--lijn-2); border-radius: 6px; padding: 0 0.35rem; margin-left: 0.4rem; vertical-align: 2px; }

/* ------------------------------------------------------------ formulier-pagina's (nieuw, vervolg, instellingen) */
.smal { max-width: 46rem; margin: 0 auto; padding-top: 2.2rem; }
.smal .terug { margin-bottom: 1rem; }
.formulier { padding: 1.8rem; margin-top: 1.5rem; }
.formulier h2 { margin-bottom: 0.3rem; }
.stap-label { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.05rem; margin-bottom: 0.6rem; }
.stap-nr { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--vlak); color: var(--merk); font-size: 0.9rem; flex-shrink: 0; }
.autocomplete { position: relative; }
.ac-lijst {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 0.35rem;
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 16px; box-shadow: var(--schaduw-groot); max-height: 22rem; overflow: auto;
}
.ac-lijst button {
  display: grid; width: 100%; text-align: left; gap: 0.1rem; border: 0; background: transparent; padding: 0.65rem 0.8rem; border-radius: 11px; cursor: pointer;
}
.ac-lijst button:hover, .ac-lijst button.actief { background: var(--vlak); }
.ac-naam { font-weight: 600; }
.ac-sub { font-size: 0.82rem; color: var(--inkt-2); }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gevonden {
  display: grid; gap: 0.25rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--groen-zacht); border: 1px solid #c9dcb8; margin-bottom: 1.1rem;
}
.gevonden.niet { background: var(--rood-zacht); border-color: #ebbcb3; }
.tip {
  display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--vlak); color: var(--inkt-2); font-size: 0.92rem; line-height: 1.5;
}
.tip .icoon { color: var(--merk); margin-top: 0.1rem; }
.tip strong { color: var(--inkt); }

/* ------------------------------------------------------------ project */
.project { padding-top: 1.2rem; }
.project-balk { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1.2rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.project-kop { display: flex; align-items: center; gap: 0.8rem; min-width: 0; flex: 1 1 22rem; }
.terug-rond {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0;
  background: var(--papier); border: 1px solid var(--lijn-2); color: var(--inkt-2);
}
.terug-rond:hover { background: var(--vlak); color: var(--inkt); }
.pk-tekst { min-width: 0; }
.project-kop h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-sub { display: flex; align-items: center; gap: 0.6rem; color: var(--inkt-2); margin-top: 0.2rem; font-size: 0.88rem; min-width: 0; }
.project-sub > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-sub .pil { font-size: 0.74rem; padding: 0.12rem 0.55rem; }
.stappen {
  display: flex; align-items: center; gap: 0; padding: 0.45rem 0.9rem; flex: 0 1 auto;
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 999px; overflow-x: auto;
}
.stap { display: flex; align-items: center; gap: 0.4rem; color: var(--inkt-3); font-weight: 600; font-size: 0.84rem; white-space: nowrap; }
.stap-bol { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--lijn-2); font-size: 0.72rem; background: var(--papier); }
.stap.klaar { color: var(--inkt-2); }
.stap.klaar .stap-bol { background: var(--groen); border-color: var(--groen); color: #fff; }
.stap.nu { color: var(--inkt); }
.stap.nu .stap-bol { background: var(--merk); border-color: var(--merk); color: #fff; box-shadow: 0 0 0 3px var(--merk-zacht); }
.stap-lijn { flex: 0 0 1.4rem; height: 2px; background: var(--lijn-2); margin: 0 0.45rem; }
.stap-lijn.klaar { background: var(--groen); }
.waarschuwing {
  display: flex; gap: 0.7rem; align-items: center; padding: 0.8rem 1rem; border-radius: 14px; margin-bottom: 1rem;
  background: #fbefd9; border: 1px solid #ecd2a2; color: #6e4a12; font-weight: 600; font-size: 0.93rem;
}

.werkvlak { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.chat {
  display: flex; flex-direction: column; min-height: calc(100vh - 17rem);
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 22px; box-shadow: var(--schaduw-klein);
  position: relative;
}
.berichten { flex: 1; padding: 1.1rem 1.2rem 0.5rem; display: flex; flex-direction: column; gap: 1rem; }
.bericht { display: flex; gap: 0.75rem; animation: in .2s ease-out; max-width: 100%; }
.bericht.van-mij { justify-content: flex-end; }
.avatar {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--merk); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.ballon { min-width: 0; max-width: min(46rem, 100%); }
.ballon-kop { font-size: 0.78rem; color: var(--inkt-3); margin-bottom: 0.3rem; font-weight: 600; }
.van-mij .ballon-kop { text-align: right; }
.ballon-tekst {
  padding: 0.95rem 1.15rem; border-radius: 18px; background: var(--bg); border: 1px solid var(--lijn);
  font-family: var(--lees); font-weight: 400; font-size: 1.02rem; line-height: 1.6; overflow-wrap: anywhere;
}
.agent .ballon-tekst { border-top-left-radius: 6px; }
.van-mij .ballon-tekst { background: var(--merk-zacht); border-color: #efd2b8; border-top-right-radius: 6px; white-space: pre-wrap; }
.ballon-fotos { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; justify-content: flex-end; }
.ballon-fotos img { width: 4.6rem; height: 4.6rem; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--lijn); }
.systeem { justify-content: center; }
.systeem .sys-tekst { font-size: 0.85rem; color: var(--inkt-3); text-align: center; padding: 0.2rem 0.8rem; }
.fout-kaart {
  display: grid; gap: 0.6rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--rood-zacht); border: 1px solid #ebbcb3;
  max-width: 40rem; margin: 0 auto; font-size: 0.95rem;
}
.fout-kaart strong { color: var(--rood); }
.fout-kaart details { font-size: 0.8rem; color: var(--inkt-2); }
.fout-kaart pre { white-space: pre-wrap; font-size: 0.75rem; max-height: 10rem; overflow: auto; }

/* opmaak in agentberichten */
.ballon-tekst > :first-child { margin-top: 0; }
.ballon-tekst > :last-child { margin-bottom: 0; }
.ballon-tekst p { margin: 0.55rem 0; }
.ballon-tekst h1, .ballon-tekst h2, .ballon-tekst h3, .ballon-tekst h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 1rem 0 0.4rem; color: var(--inkt); }
.ballon-tekst h1, .ballon-tekst h2 { font-family: var(--serif); font-size: 1.4rem; }
.ballon-tekst ul, .ballon-tekst ol { margin: 0.45rem 0; padding-left: 1.35rem; }
.ballon-tekst li { margin: 0.2rem 0; }
.ballon-tekst li::marker { color: var(--merk); }
.ballon-tekst strong { font-weight: 600; }
.ballon-tekst code { font-family: Consolas, monospace; font-size: 0.85em; background: var(--vlak); padding: 0.05rem 0.35rem; border-radius: 5px; }
.ballon-tekst blockquote { margin: 0.6rem 0; padding-left: 0.9rem; border-left: 3px solid var(--lijn-2); color: var(--inkt-2); }
.ballon-tekst hr { border: 0; border-top: 1px solid var(--lijn); margin: 0.9rem 0; }
.md-code { background: var(--vlak); padding: 0.8rem; border-radius: 10px; overflow: auto; font-size: 0.82rem; }
.md-tabel { overflow-x: auto; margin: 0.7rem 0; border: 1px solid var(--lijn); border-radius: 12px; background: var(--papier); }
.md-tabel table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-weight: 500; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.md-tabel th { text-align: left; background: var(--vlak); font-weight: 600; padding: 0.5rem 0.7rem; white-space: nowrap; }
.md-tabel td { padding: 0.45rem 0.7rem; border-top: 1px solid var(--lijn); vertical-align: top; }
.md-tabel tr:last-child td { font-weight: inherit; }
.md-vink { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border: 1.5px solid var(--lijn-2); border-radius: 4px; margin-right: 0.4rem; font-size: 0.7rem; vertical-align: -2px; }
.md-vink.aan { background: var(--groen); border-color: var(--groen); color: #fff; }

/* vragen */
.vragen { margin-top: 0.8rem; display: grid; gap: 0.75rem; }
.vraag { padding: 1rem 1.1rem; border-radius: 16px; background: var(--papier); border: 1.5px solid var(--lijn-2); font-family: var(--sans); font-weight: 500; }
.vraag.beantwoord { border-color: color-mix(in srgb, var(--groen) 45%, var(--lijn)); }
.vraag-tekst { display: flex; gap: 0.6rem; font-weight: 600; font-size: 1rem; line-height: 1.4; margin-bottom: 0.3rem; }
.vraag-nr { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; flex-shrink: 0; border-radius: 50%; background: var(--merk); color: #fff; font-size: 0.82rem; }
.vraag.beantwoord .vraag-nr { background: var(--groen); }
.vraag-uitleg { font-size: 0.86rem; color: var(--inkt-2); margin: 0 0 0.6rem 2.25rem; }
.vraag .chips { margin-left: 2.25rem; margin-top: 0.5rem; }
.vraag .chip { padding: 0.45rem 0.85rem; font-size: 0.92rem; }
.vraag .anders { margin: 0.6rem 0 0 2.25rem; width: calc(100% - 2.25rem); padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.vragen-voet { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; justify-content: space-between; padding-top: 0.2rem; }
.vragen-voet .zacht { font-size: 0.86rem; font-family: var(--sans); }
.vragen-beantwoord { font-family: var(--sans); font-size: 0.88rem; color: var(--inkt-2); }
.vragen-beantwoord ol { margin: 0.3rem 0 0; padding-left: 1.3rem; }

/* actiebalk onder het voorstel */
.actiebalk {
  display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; padding: 0.9rem 1rem;
  border-radius: 16px; background: var(--groen-zacht); border: 1px solid #c9dcb8; font-family: var(--sans);
}
.actiebalk .ab-tekst { flex: 1 1 14rem; font-size: 0.92rem; color: #33521f; font-weight: 600; }

/* de offertemaker is bezig */
.bezig-kaart { display: grid; gap: 0.55rem; padding: 0.9rem 1.1rem; border-radius: 16px; background: #fbf4e7; border: 1px solid #efdcba; font-family: var(--sans); }
.bezig-regel { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.bezig-tijd { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--inkt-3); font-size: 0.86rem; }
.bezig-oud { display: grid; gap: 0.15rem; padding-left: 1.85rem; font-size: 0.84rem; color: var(--inkt-3); }
.bezig-oud span::before { content: "✓ "; color: var(--groen); }
.bezig-tip { font-size: 0.84rem; color: var(--inkt-2); padding-left: 1.85rem; }
.live-tekst { margin-bottom: 0.6rem; }
.wachtrij-label { font-size: 0.78rem; color: var(--live); font-weight: 600; text-align: right; margin-top: 0.25rem; }

/* invoer onderaan de chat */
.invoerbak {
  position: sticky; bottom: 0; padding: 0.7rem 0.9rem; border-top: 1px solid var(--lijn);
  background: color-mix(in srgb, var(--papier) 94%, transparent); backdrop-filter: blur(8px);
  border-bottom-left-radius: 22px; border-bottom-right-radius: 22px;
}
.wachtende-fotos { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.6rem; }
.wachtende-fotos:empty, .tussentekst:empty { display: none; }
.invoer-rij { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0.5rem; align-items: end; }
.invoer-rij.met-doc { grid-template-columns: auto auto auto minmax(0, 1fr) auto; }   /* aanvraag: ook de knop Document */
.invoer-rij .knop { min-height: 2.9rem; padding: 0.5rem 0.95rem; }
.invoer-rij .tekstvak { min-height: 2.9rem; padding: 0.68rem 0.95rem; }
#tussen { padding: 0 0.3rem 0.4rem; }
@media (max-width: 760px) {
  .invoer-rij { grid-template-columns: auto auto 1fr; }
  .invoer-rij.met-doc { grid-template-columns: auto auto auto 1fr; }
  .invoer-rij .ir-tekst { grid-column: 1 / -1; grid-row: 1; }
  .invoer-rij .ir-stuur { justify-self: end; }
}
.wf { position: relative; width: 4.4rem; height: 4.4rem; border-radius: 12px; overflow: hidden; background: var(--vlak); border: 1px solid var(--lijn); display: grid; place-items: center; }
.wf img { width: 100%; height: 100%; object-fit: cover; }
.wf .wf-nr { position: absolute; left: 4px; top: 4px; background: rgba(43,37,33,.75); color: #fff; font-size: 0.7rem; border-radius: 6px; padding: 0 0.3rem; }
.wf .wf-weg { position: absolute; right: 3px; top: 3px; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 0; background: rgba(43,37,33,.8); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.wf .wf-weg .icoon { width: 0.85rem; height: 0.85rem; }
.wf-bezig { font-size: 0.68rem; color: var(--inkt-2); text-align: center; padding: 0.2rem; display: grid; gap: 0.3rem; justify-items: center; }
.tekstvak {
  width: 100%; min-height: 3.4rem; max-height: 40vh; resize: none; padding: 0.85rem 1rem;
  border: 1.5px solid var(--lijn-2); border-radius: 16px; background: var(--papier); outline: none;
  font-family: var(--lees); font-weight: 400; font-size: 1.05rem; line-height: 1.55;
}
.tekstvak:focus { border-color: var(--merk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--merk) 12%, transparent); }
.tekstvak.opname { border-color: var(--rood); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rood) 14%, transparent); }
.tussentekst { font-family: var(--lees); font-style: italic; color: var(--inkt-3); font-size: 0.95rem; padding: 0.35rem 0.3rem 0; min-height: 1.2rem; }
.invoer-knoppen { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.invoer-knoppen .vul { flex: 1; }
.invoer-hint { font-size: 0.78rem; color: var(--inkt-3); margin-top: 0.5rem; }
.knop-mic.opnemen { background: var(--rood); border-color: var(--rood); color: #fff; }
.knop-mic.opnemen .icoon { animation: adem 1.2s ease-in-out infinite; }
.sleep-laag {
  position: absolute; inset: 0; z-index: 15; border-radius: 22px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--merk-zacht) 88%, transparent); border: 3px dashed var(--merk);
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--merk-donker); pointer-events: none;
}

/* zijkant */
.zijkant { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.zk { padding: 1.15rem 1.2rem; }
.zk-kop { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.zk-kop h3 { font-size: 1.3rem; }
.zk-knoppen { display: grid; gap: 0.5rem; margin-top: 0.85rem; }
.zk-knoppen .knop { justify-content: flex-start; }
.offerte-nr { font-weight: 600; font-size: 1.05rem; }
.bedragen { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; margin-top: 0.6rem; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.bedragen .groot { font-weight: 600; font-size: 1.15rem; }
.bedragen .bedrag-marge { border-top: 1px dashed var(--lijn-2); padding-top: 0.35rem; margin-top: 0.3rem; color: var(--inkt-2); font-size: 0.9rem; }
.bedragen .bedrag-marge small { color: var(--inkt-3); }
.marge { color: var(--groen); font-weight: 600; }
.marge.marge-laag { color: var(--rood); }
.versie-lijst { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.3rem; font-size: 0.88rem; }
.versie-lijst button { display: flex; width: 100%; justify-content: space-between; gap: 0.5rem; border: 0; background: var(--bg); padding: 0.45rem 0.7rem; border-radius: 10px; cursor: pointer; text-align: left; }
.versie-lijst button:hover { background: var(--vlak); }
.foto-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.foto-raster button { padding: 0; border: 0; background: var(--vlak); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; position: relative; }
.foto-raster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-raster .meer { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43,37,33,.55); color: #fff; font-weight: 600; font-size: 1.1rem; }
.status-knoppen { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.chip.chip-klein { padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.contract-blok .zk-knoppen { margin-top: 0.6rem; align-items: center; }
.brochure-lijst { list-style: none; padding: 0; margin: 0.55rem 0 0; display: grid; gap: 0.3rem; font-size: 0.88rem; }
.brochure-lijst li { display: flex; align-items: stretch; gap: 0.1rem; background: var(--bg); border-radius: 10px; }
.brochure-lijst li.uit .br-naam > span:first-child { color: var(--inkt-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.br-mee { display: grid; place-items: center; padding: 0 0.15rem 0 0.6rem; cursor: pointer; }
.br-mee input { width: 1.05rem; height: 1.05rem; accent-color: var(--merk); cursor: pointer; }
.br-naam { flex: 1; min-width: 0; display: grid; gap: 0.05rem; text-align: left; border: 0; background: none; padding: 0.45rem 0.7rem 0.45rem 0.4rem; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; }
.br-naam:hover { background: var(--vlak); }
.br-naam > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-oud { color: var(--merk-donker); }
.mail-regel { margin: 0.5rem 0 0; }
.mail-regel svg { width: 1em; height: 1em; margin-right: 0.35rem; vertical-align: -0.12em; }
.mail-fout { color: var(--rood, #b3261e); }
.dossier-status { font-size: 0.9rem; color: var(--inkt-2); line-height: 1.45; }

/* zijkant met tabbladen: vaste samenvatting + Offerte / Extra's / Mail / Dossier */
.zk-tabblok { display: grid; gap: 0.5rem; }
.zk-nr { font-weight: 600; font-size: 1.05rem; }
.zk-bedrag { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.zk-bedrag small { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--inkt-3); }
.zk-excl { font-size: 0.88rem; color: var(--inkt-2); font-variant-numeric: tabular-nums; }
.zk-volgende { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; margin-top: 0.85rem; padding: 0.6rem 0.8rem; border: 0; border-radius: var(--rond-klein); background: var(--merk-zacht); color: var(--merk-donker); font-weight: 600; font-size: 0.92rem; text-align: left; cursor: pointer; }
.zk-volgende:hover { background: color-mix(in srgb, var(--merk-zacht) 70%, var(--merk) 15%); }
.zk-volgende small { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.zk-tabs { display: flex; gap: 3px; background: var(--vlak); border-radius: 999px; padding: 3px; }
.zk-tab { flex: 1; position: relative; border: 1px solid transparent; background: none; border-radius: 999px; padding: 0.45rem 0.3rem; font-weight: 600; font-size: 0.88rem; color: var(--inkt-2); cursor: pointer; white-space: nowrap; }
.zk-tab:hover { color: var(--inkt); }
.zk-tab.aan { background: var(--papier); border-color: var(--lijn-2); color: var(--inkt); box-shadow: 0 1px 2px rgba(70, 45, 20, 0.08); }
.zk-tab .stip { position: absolute; top: 0.28rem; right: 0.5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--merk); }
.zk-tab .stip.rood { background: var(--rood); }
.zk-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--inkt-3); margin: 0 0 0.45rem; }
.zk-intern { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--lijn-2); }
.zk-intern-kop { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--inkt-3); margin-bottom: 0.15rem; }
.zk-rij { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.75rem; border: 0; border-radius: 10px; background: var(--bg); font: inherit; font-size: 0.9rem; color: inherit; text-align: left; }
.zk-rij > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-rij .icoon { width: 1.05em; height: 1.05em; color: var(--inkt-3); }
.zk-rij .link-knop { flex-shrink: 0; }
button.zk-rij { cursor: pointer; }
button.zk-rij:hover { background: var(--vlak); }

/* ------------------------------------------------------------ lagen (vensters over de pagina) */
.laag {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(43, 37, 33, 0.45); animation: in .15s ease-out;
}
.venster {
  width: min(44rem, 100%); max-height: calc(100vh - 3rem); overflow: auto; background: var(--papier);
  border-radius: 24px; box-shadow: var(--schaduw-groot); padding: 1.6rem 1.7rem; position: relative;
}
.venster.breed { width: min(78rem, 100%); }
.venster.vol { width: min(92rem, 100%); height: calc(100vh - 3rem); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.venster-kop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.venster.vol .venster-kop { padding: 0.9rem 1.2rem; margin: 0; border-bottom: 1px solid var(--lijn); flex-wrap: wrap; }
.venster-kop h2 { font-size: 1.6rem; }
.venster-knoppen { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.3rem; }
.sluit { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--vlak); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.sluit:hover { background: var(--vlak-2); }
.pdf-vak { flex: 1; border: 0; width: 100%; background: #5d5650; overflow: auto; padding: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pdf-pagina { width: min(100%, 900px); height: auto; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); border-radius: 2px; }
.zijkant { max-height: calc(100vh - 6.5rem); overflow-y: auto; scrollbar-width: thin; padding-bottom: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 13, 0.92); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lb-kop { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.2rem; gap: 1rem; }
.lb-beeld { display: grid; place-items: center; min-height: 0; padding: 0 4.5rem; }
.lb-beeld img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.lb-pijl { position: absolute; top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-pijl:hover { background: rgba(255,255,255,.25); }
.lb-pijl.links { left: 1rem; } .lb-pijl.rechts { right: 1rem; }
.lb-voet { text-align: center; padding: 0.8rem; font-size: 0.9rem; opacity: .85; }
.lightbox .sluit { background: rgba(255,255,255,.14); color: #fff; }

/* concept-offerte */
.concept-tabel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.93rem; }
.concept-tabel th { text-align: left; font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--inkt-3); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--lijn); }
.concept-tabel td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.concept-tabel .getal { text-align: right; white-space: nowrap; }
.concept-tabel .sectie-rij td { background: var(--vlak); font-weight: 600; font-family: var(--serif); font-size: 1.15rem; padding-top: 0.7rem; }
.concept-tabel .sub-rij td { font-weight: 600; background: color-mix(in srgb, var(--vlak) 35%, var(--papier)); }
.concept-tabel .optie td { color: var(--inkt-2); }
.concept-tabel .omschr { font-size: 0.82rem; color: var(--inkt-2); white-space: pre-line; margin-top: 0.2rem; max-height: 4.6em; overflow: hidden; }
.concept-tabel .nul { color: var(--inkt-3); }
/* alle regels: prijzen, inkoop en marge aanpassen */
.regels-tabel th.intern, .regels-tabel td.intern { background: color-mix(in srgb, var(--blauw-zacht) 45%, transparent); }
.regels-tabel .sectie-rij td, .regels-tabel .sub-rij td { background: var(--vlak); }
.regels-tabel td { vertical-align: middle; }
.regels-tabel td:first-child { min-width: 15rem; }
.rg-in {
  width: 6.6rem; padding: 0.3rem 0.45rem; border: 1.5px solid var(--lijn-2); border-radius: 8px; background: var(--papier);
  font: inherit; font-variant-numeric: tabular-nums; text-align: right; color: var(--inkt);
}
.rg-in:hover:not(:disabled) { border-color: var(--merk); }
.rg-in:focus { outline: none; border-color: var(--merk); box-shadow: 0 0 0 3px color-mix(in srgb, var(--merk) 16%, transparent); }
.rg-in:disabled { background: transparent; border-color: transparent; color: inherit; }
.rg-in.hand { background: var(--merk-zacht); border-color: color-mix(in srgb, var(--merk) 55%, var(--lijn-2)); }
.rg-in.eerder { border-style: dashed; }
.rg-in.fout { border-color: var(--rood); background: var(--rood-zacht); }
.rg-in.neg, .regels-tabel .neg { color: var(--rood); }
.rg-pct { width: 4.4rem; }
.rg-soort { width: auto; padding: 0.15rem 0.3rem; text-align: left; font-size: 0.9em; }
[data-t="haalbaar"] .icoon { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.sugg-lijst { display: grid; gap: 0.9rem; }
.sugg-groep { background: var(--papier); border: 1px solid var(--lijn); border-radius: 12px; padding: 0.8rem 1rem; }
.sugg-proj { display: inline-block; font-weight: 600; margin-bottom: 0.45rem; color: inherit; text-decoration: none; }
.sugg-proj:hover { color: var(--merk); }
.sugg-item { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.7rem; align-items: start; padding: 0.45rem 0; border-top: 1px solid var(--lijn); font-size: 0.9rem; }
.sugg-item .pil { margin-top: 0.1rem; }
.sugg-tekst { overflow-wrap: anywhere; }
.sugg-knoppen { grid-column: 2; font-size: 0.85rem; color: var(--inkt-2); }
.mailtekst-in { width: 100%; min-height: 16rem; resize: vertical; font: inherit; line-height: 1.45; }
.rg-groot { width: 8rem; font-weight: 600; }
.rg-inkoop { display: inline-flex; align-items: center; gap: 0.2rem; }
.rg-wis { border: 0; background: none; color: var(--inkt-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0.15rem; }
.rg-wis:hover { color: var(--rood); }
.rg-hint { font-size: 0.78rem; color: var(--inkt-3); margin-top: 0.15rem; }
.rg-hint:empty { display: none; }
.rg-gewijzigd { color: var(--merk); font-weight: 600; }
.zk-badge { display: inline-flex; align-items: center; gap: 0.15rem; min-width: 1.4rem; justify-content: center; padding: 0.05rem 0.35rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: help; }
.zk-A { background: var(--groen-zacht); color: var(--groen); }
.zk-B { background: #f5ecd0; color: #8a6a12; }
.zk-C { background: var(--rood-zacht); color: var(--rood); }
.zk-hand { color: var(--merk); font-weight: 700; }
.rg-onder { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-top: 1rem; }
.rg-blok { border: 1px solid var(--lijn); border-radius: 14px; padding: 0.9rem 1.1rem; background: var(--papier); }
#rg-marge { background: color-mix(in srgb, var(--blauw-zacht) 45%, var(--papier)); }
.rg-blok h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.rg-grid { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.2rem; align-items: center; font-variant-numeric: tabular-nums; }
.rg-grid > span:nth-child(even) { text-align: right; }
.rg-grid .sterk { font-weight: 600; }
.rg-doel { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 10px; background: var(--merk-zacht); }
.rg-doel-knoppen { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.rg-waarsch { margin-top: 0.4rem; color: var(--rood); }
.rg-opslaan { position: sticky; bottom: -1.6rem; margin: 1rem -1.7rem -1.6rem; padding: 0.9rem 1.7rem 1.1rem; background: var(--papier); border-top: 1px solid var(--lijn); }
.rg-opslaan .venster-knoppen { margin-top: 0; }
.rg-onthoud { display: grid; gap: 0.35rem; font-size: 0.9rem; }
.rg-onthoud label { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.rg-onthoud input { margin-top: 0.25rem; accent-color: var(--merk); }
.rg-tip { margin-bottom: 0.8rem; }
.rg-tip > span { display: block; }
.prijs-kaart { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 auto; max-width: 40rem; padding: 0.8rem 1rem; border-radius: 14px;
  background: var(--merk-zacht); border: 1px solid #ecc9aa; font-size: 0.9rem; }
.prijs-kaart > .icoon { color: var(--merk); margin-top: 0.15rem; flex-shrink: 0; }
.prijs-kaart p, .prijs-kaart ul { margin: 0 0 0.4rem; }
@media (max-width: 820px) {
  .rg-onder { grid-template-columns: 1fr; }
}
.totaal-blok { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 2rem; justify-content: end; margin: 1.2rem 0 0 auto; max-width: 22rem; font-variant-numeric: tabular-nums; }
.totaal-blok .groot { font-weight: 600; font-size: 1.2rem; border-top: 1px solid var(--lijn); padding-top: 0.4rem; }
.dossier-tekst { font-family: var(--lees); font-weight: 400; line-height: 1.6; }
.dossier-tekst h1 { font-size: 2rem; margin-bottom: 0.8rem; }
.dossier-tekst h2 { font-size: 1.45rem; margin: 1.4rem 0 0.4rem; }
.dossier-tekst p { margin: 0.5rem 0; }

/* welkom */
.welkom-stappen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.2rem 0 1.4rem; }
.welkom-stap { padding: 1rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--lijn); }
.welkom-stap .stap-nr { margin-bottom: 0.6rem; }
.welkom-stap strong { display: block; margin-bottom: 0.2rem; }
.welkom-stap span { font-size: 0.88rem; color: var(--inkt-2); }

/* ------------------------------------------------------------ handleiding */
.hulp { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding-top: 2rem; align-items: start; }
.hulp-inhoud { position: sticky; top: 5.5rem; display: grid; gap: 0.15rem; }
.hulp-inhoud a { padding: 0.5rem 0.8rem; border-radius: 10px; color: var(--inkt-2); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.hulp-inhoud a:hover { background: var(--vlak); color: var(--inkt); }
.hulp-inhoud a.actief { background: var(--papier); color: var(--merk); box-shadow: inset 0 0 0 1px var(--lijn); }
.hulp-tekst { max-width: 50rem; }
.hulp-blok { padding: 1.7rem 1.9rem; margin-bottom: 1.2rem; scroll-margin-top: 6rem; }
.hulp-blok h2 { margin-bottom: 0.7rem; font-size: 1.9rem; }
.hulp-blok h3 { margin: 1.3rem 0 0.4rem; font-size: 1.3rem; }
.hulp-blok p, .hulp-blok li { font-family: var(--lees); font-weight: 400; font-size: 1.03rem; line-height: 1.65; }
.hulp-blok p { margin: 0.55rem 0; }
.hulp-blok ol, .hulp-blok ul { padding-left: 1.4rem; margin: 0.5rem 0; }
.hulp-blok li { margin: 0.35rem 0; }
.hulp-blok li::marker { color: var(--merk); font-family: var(--sans); font-weight: 600; }
.hulp-blok strong { font-weight: 600; }
.knopje {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px;
  background: var(--papier); border: 1px solid var(--lijn-2); font-family: var(--sans); font-weight: 600; font-size: 0.86em; white-space: nowrap; vertical-align: 1px;
}
.knopje.merk { background: var(--merk); color: #fff; border-color: var(--merk); }
.knopje.groen { background: var(--groen); color: #fff; border-color: var(--groen); }
.toets { display: inline-block; padding: 0 0.4rem; border: 1px solid var(--lijn-2); border-bottom-width: 3px; border-radius: 6px; background: var(--papier); font-family: var(--sans); font-size: 0.85em; font-weight: 600; }
.stappenplan { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 0.7rem; }
.stappenplan > li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; align-items: start; margin: 0 !important; }
.stappenplan > li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--merk); color: #fff; font-family: var(--sans); font-weight: 600; }
.status-uitleg { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1rem; align-items: center; margin: 0.8rem 0; }
.status-uitleg span:nth-child(even) { font-family: var(--lees); font-weight: 400; }
.faq details { border-top: 1px solid var(--lijn); padding: 0.75rem 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; gap: 0.6rem; align-items: center; }
.faq summary::before { content: "+"; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--vlak); color: var(--merk); flex-shrink: 0; }
.faq details[open] summary::before { content: "–"; }
.faq details > div { padding: 0.4rem 0 0 2.1rem; }

/* instellingen / controle */
.controle-lijst { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.1rem; }
.controle-lijst li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--lijn); }
.controle-lijst li:first-child { border-top: 0; }
.cl-icoon { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.85rem; font-weight: 700; }
.cl-icoon.ok { background: var(--groen); }
.cl-icoon.fout { background: var(--rood); }
.cl-icoon.let_op { background: var(--live); }
.cl-naam { font-weight: 600; }
.cl-uitleg { font-size: 0.86rem; color: var(--inkt-2); overflow-wrap: anywhere; }
.cl-oplossing { font-size: 0.86rem; color: var(--rood); font-weight: 600; }
.keuze-rij { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ smallere vensters */
/* Projectpagina als chat-app: kop, klantnaam en stappen blijven staan; alleen het gesprek (en de zijkant) scrollt. */
@media (min-width: 1101px) {
  body.project-modus { height: 100vh; overflow: hidden; }
  body.project-modus .app { display: flex; flex-direction: column; min-height: 0; padding-bottom: 1rem; }
  body.project-modus .app { padding-bottom: 0.75rem; }
  body.project-modus .project { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 0.6rem; }
  body.project-modus .project-balk { flex-shrink: 0; margin-bottom: 0.6rem; }
  body.project-modus .kop { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  body.project-modus .merk-icoon { width: 30px; height: 30px; }
  body.project-modus .merk-naam { font-size: 1.35rem; }
  body.project-modus .nav-knop, body.project-modus .kop-nieuw { min-height: 2.3rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
  body.project-modus .werkvlak { flex: 1; min-height: 0; align-items: stretch; }
  body.project-modus .chat { min-height: 0; height: 100%; }
  body.project-modus .chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body.project-modus .invoerbak { position: static; }
  body.project-modus .zijkant { position: static; max-height: none; height: 100%; overflow-y: auto; align-content: start; }
  body.project-modus #p-waarschuwing:empty { display: none; }
}
.chat-scroll { display: flex; flex-direction: column; }

@media (max-width: 1060px) {
  .nav-knop span:last-child { display: none; }
  .lm { grid-template-columns: 2.6rem 2.4rem; }
  .lm-balk { display: none; }
  .nav-knop { padding: 0.55rem 0.7rem; }
}
@media (max-width: 1100px) {
  .werkvlak { grid-template-columns: 1fr; }
  .zijkant { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .zijkant.met-tabs { grid-template-columns: 1fr; }
  .held { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .kop { padding: 0.6rem 1rem; }
  .app { padding: 0 1rem 2rem; }
  .lijst { grid-template-columns: minmax(0, 1fr) max-content; }
  .rij .rij-wie, .rij .rij-bedrag, .rij .icoon.pijl { display: none; }
  .hulp { grid-template-columns: 1fr; }
  .hulp-inhoud { position: static; display: flex; flex-wrap: wrap; }
  .twee, .welkom-stappen { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tekstvak::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ Roy vertelt (verborgen: #/roy) */
.roy { padding-top: 1.6rem; }
.roy-held { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; padding: 1rem 0 2rem; }
.roy-lead { font-family: var(--lees); font-weight: 400; font-size: 1.12rem; color: var(--inkt-2); max-width: 34rem; margin: 0.8rem 0 0; }
.roy-stappen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; counter-reset: rs; }
.roy-stappen li { counter-increment: rs; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.1rem 0.8rem; padding: 0.9rem 1.1rem; background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--rond-klein); }
.roy-stappen li::before { content: counter(rs); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--merk-zacht); color: var(--merk); font-weight: 700; }
.roy-stappen span { color: var(--inkt-2); font-size: 0.92rem; }
.roy-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.roy-kaart { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.roy-kaart h3 { font-size: 1.5rem; }
.roy-kaart p { margin: 0; flex: 1; }
.roy-vrij { background: color-mix(in srgb, var(--papier) 60%, var(--bg)); border-style: dashed; }
.roy-meta { margin: 0; }
.roy-voortgang { height: 7px; border-radius: 99px; background: var(--vlak-2); overflow: hidden; margin-top: 0.3rem; }
.roy-voortgang span { display: block; height: 100%; background: var(--groen); border-radius: 99px; }
.roy-kaart-knoppen { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.roy-rij { grid-template-columns: minmax(0, 1fr) auto auto !important; }
.roy-tips { padding: 1.4rem 1.6rem; }
.roy-tips ul { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--inkt-2); }
.roy-tips strong { color: var(--inkt); }

.roy-gesprek { padding-top: 1.2rem; }
.roy-bewaard { color: var(--inkt-3); }
.roy-bewaard.fout { color: var(--rood); font-weight: 600; }
.roy-opname { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.roy-rec-stip { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--rood); animation: roy-puls 1.2s ease-in-out infinite; }
@keyframes roy-puls { 50% { opacity: 0.25; } }
.roy-rec-tijd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rood); min-width: 3.2rem; }
.roy-werk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.roy-nav { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding: 0.6rem; display: grid; gap: 0.1rem; }
.roy-nav-blok { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--inkt-3); padding: 0.8rem 0.6rem 0.25rem; }
.roy-nav-item { display: grid; grid-template-columns: 0.7rem 1.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.35rem; padding: 0.4rem 0.55rem; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font-size: 0.86rem; color: var(--inkt-2); }
.roy-nav-item:hover { background: var(--vlak); }
.roy-nav-item.aan { background: var(--merk-zacht); color: var(--inkt); font-weight: 600; }
.roy-nav-nr { font-variant-numeric: tabular-nums; color: var(--inkt-3); font-size: 0.78rem; text-align: right; }
.roy-nav-tekst { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roy-check-teken { font-size: 0.68rem; font-weight: 700; color: var(--blauw); }
.roy-stip { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid var(--lijn-2); }
.st-besproken .roy-stip { background: var(--groen); border-color: var(--groen); }
.st-later .roy-stip { background: var(--merk); border-color: var(--merk); }
.st-overgeslagen .roy-stip { background: var(--vlak-2); }
.st-overgeslagen .roy-nav-tekst { text-decoration: line-through; color: var(--inkt-3); }
.st-notitie .roy-stip { background: linear-gradient(90deg, var(--groen) 50%, transparent 50%); border-color: var(--groen); }
.roy-eigen { margin-top: 0.6rem; justify-self: start; }
.roy-vraag { padding: 1.8rem 2rem; min-height: 60vh; display: flex; flex-direction: column; }
.roy-vraagtekst { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.2; margin: 0.2rem 0 1.2rem; text-wrap: pretty; }
.roy-check { background: var(--blauw-zacht); border-radius: var(--rond-klein); padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.roy-check blockquote { margin: 0.3rem 0 0.8rem; font-family: var(--lees); font-weight: 400; font-size: 1.05rem; color: var(--inkt); }
.roy-check-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blauw); }
.roy-door { margin-bottom: 1rem; }
.roy-door .roy-check-label { color: var(--merk); }
.roy-door ul { margin: 0.35rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; font-family: var(--lees); font-weight: 400; font-size: 1.02rem; }
.roy-waarom { display: flex; gap: 0.45rem; margin: 0 0 1rem; }
.roy-bron { font-family: var(--sans); font-size: 0.78rem; padding: 0.05rem 0.4rem; border-radius: 6px; background: var(--vlak); color: var(--inkt-3); white-space: nowrap; }
.roy-notitie { margin-top: auto; margin-bottom: 0.8rem; }
.roy-notitie .tekstvak { min-height: 9rem; max-height: none; resize: vertical; }
.roy-voet { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.roy-voet-links, .roy-voet-rechts { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.knop.aan-later { border-color: var(--merk); color: var(--merk); }
.knop.aan-stil { text-decoration: line-through; }
.roy-opnames { margin-top: 0.4rem; margin-bottom: 1rem; display: grid; gap: 0.4rem; }
.roy-opname-rij { display: flex; align-items: center; gap: 0.7rem; }
.roy-opname-rij audio { height: 2.2rem; flex: 1; max-width: 28rem; }
@media (max-width: 900px) {
  .roy-held, .roy-werk { grid-template-columns: 1fr; }
  .roy-nav { position: static; max-height: 16rem; }
}

.roy-print { max-width: 48rem; margin: 0 auto; padding-top: 1.5rem; font-family: var(--lees); font-weight: 400; }
.roy-print h1 { margin-bottom: 0.4rem; }
.roy-print h2 { font-size: 1.4rem; margin: 1.6rem 0 0.6rem; }
.roy-print ol { padding-left: 1.6rem; display: grid; gap: 0.7rem; }
.roy-print li strong { font-weight: 600; }
.roy-print-lead { color: var(--inkt-2); }
.roy-print-knoppen { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; font-family: var(--sans); }
.pr-extra { font-size: 0.88rem; color: var(--inkt-2); margin-top: 0.2rem; }
.pr-check { font-style: italic; }
.roy-print.zonder-extra .pr-extra { display: none; }
@media print {
  .kop, .melding-balk, #update-balk, .toasts, .geen-print { display: none !important; }
  body, .app { background: #fff; }
  .roy-print { padding: 0; max-width: none; }
  .roy-print li { break-inside: avoid; }
}
.roy-rij > span:first-child { display: grid; min-width: 0; }
.roy-vraagtekst.roy-lang { font-size: clamp(1.45rem, 2.1vw, 1.85rem); }

/* ------------------------------------------------------------ Kennis delen (kennis.js) */
.nav-teller {
  display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem;
  border-radius: 999px; background: var(--merk); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.k-drop {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.3rem 1rem;
  border: 1.5px dashed var(--lijn-2); border-radius: var(--rond); color: var(--inkt-2); background: var(--vlak);
  transition: border-color .12s, background-color .12s;
}
.k-drop.over { border-color: var(--merk); background: color-mix(in srgb, var(--merk) 8%, var(--papier)); }
.k-drop .icoon { color: var(--merk); }
.bijlage-lijst { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.bijlage-lijst:empty { display: none; }
.bijlage-lijst li { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.92rem; }
.bijlage-lijst li > span:first-of-type, .bijlage-lijst li > .link-knop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bijlage-lijst li > .zacht { margin-left: auto; flex-shrink: 0; }
.bijlage-lijst .icoon { width: 1.05rem; height: 1.05rem; color: var(--inkt-3); flex-shrink: 0; }
.ballon-bijlagen { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; justify-content: flex-end; }
.bijlage-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%;
  padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--lijn); background: var(--papier);
  color: var(--inkt); font-size: 0.85rem; font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bijlage-chip .icoon { width: 1rem; height: 1rem; color: var(--merk); flex-shrink: 0; }
.bijlage-chip .link-knop .icoon { margin: 0; color: var(--inkt-3); }

/* ------------------------------------------------------------ telefoon (server-stand) */
body.server-stand .alleen-laptop { display: none !important; }
body.koppel-modus .kop-nav { display: none; }
.koppel { text-align: left; margin-top: 1.5rem; }
.koppel h1 { font-size: 2rem; margin: .1rem 0 .6rem; }
.koppel-code { font-size: 1.7rem; letter-spacing: .12em; text-align: center; font-variant-numeric: tabular-nums; padding: .7rem .5rem; }
.koppel-toon { display: block; font-size: 2rem; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--merk-donker); margin: .2rem 0; }
.koppel-adres { display: block; font-size: 1.05rem; word-break: break-all; color: var(--merk-donker); margin-top: .2rem; }
.apparaat-lijst li { flex-wrap: wrap; padding: .35rem 0; border-top: 1px solid var(--lijn); }
.apparaat-lijst li > span:first-of-type { white-space: normal; flex: 1 1 12rem; }

/* ------------------------------------------------------------ telefoonbreedte */
/* Eén kolom mag nooit breder worden dan het scherm (lange regels in het gesprek rekten hem anders op). */
@media (max-width: 1100px) {
  .werkvlak { grid-template-columns: minmax(0, 1fr); }
  .chat, .zijkant { min-width: 0; }
  .zijkant { max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
  /* kop: één regel (logo, menu-iconen, plus) */
  .kop { padding: 0.4rem 0.7rem; gap: 0.3rem; flex-wrap: nowrap; }
  .merk { gap: 0.4rem; min-width: 0; }
  .merk-icoon { width: 28px; height: 28px; flex-shrink: 0; }
  .merk-kicker { display: none; }
  .merk-naam { font-size: 1.2rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kop-nav { flex-wrap: nowrap; gap: 0; flex-shrink: 0; }
  .nav-knop { padding: 0.5rem 0.42rem; }
  .limiet-meter { display: none; }
  .kop-nieuw { margin-left: 0.25rem; padding: 0.5rem 0.6rem; min-height: 0; }
  .kop-nieuw span:last-child { display: none; }
  .melding-balk { font-size: 0.88rem; }
  .app { padding: 0 0.7rem 1.5rem; }
  .smal { padding-top: 1.1rem; }
  h1 { font-size: 1.9rem; }
  .formulier { padding: 1.1rem 1rem; margin-top: 1rem; }
  .knop-groot { padding: 0.75rem 1.1rem; }
  .held { padding: 1.2rem 0 1rem; gap: 1rem; }
  /* overzicht: naam voluit, status eronder */
  .lijst { display: block; }
  .rij { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; padding: 0.75rem 0.9rem; }
  .rij > :first-child { flex: 1 1 100%; min-width: 0; }
  .rij-klant { white-space: normal; }
  .rij-verstuurd { display: inline; padding-left: 0.4rem; }
  /* aanvraag */
  .project { padding-top: 0.6rem; }
  .project-balk { margin-bottom: 0.6rem; gap: 0.5rem; }
  .project-kop { flex-basis: 100%; gap: 0.5rem; }
  .project-kop h1 { font-size: 1.3rem; white-space: normal; }
  .stappen { width: 100%; padding: 0.3rem 0.55rem; }
  .stap:not(.nu) .stap-naam { display: none; }
  .stap-lijn { flex: 1 1 0.5rem; margin: 0 0.25rem; min-width: 0.4rem; }
  .chat { border-radius: 16px; min-height: 55vh; }
  .berichten { padding: 0.8rem 0.65rem 0.4rem; gap: 0.8rem; }
  .bericht { gap: 0.45rem; }
  .avatar { width: 1.7rem; height: 1.7rem; font-size: 0.95rem; }
  .ballon-tekst { overflow-wrap: anywhere; }
  .ballon-tekst table { display: block; overflow-x: auto; max-width: 100%; }
  .invoerbak { padding: 0.5rem 0.55rem; border-radius: 0 0 16px 16px; }
  .invoer-rij .knop > span { display: none; }
  .invoer-rij .knop { padding: 0.5rem 0.8rem; }
  .invoer-rij .tekstvak { font-size: 16px; }          /* kleiner dan 16px laat de iPhone inzoomen bij het typen */
  .invoer, .tekstvak, input, textarea, select { font-size: 16px; }
  .zk { padding: 1rem; }
  /* vensters vullen het scherm, van onderaf */
  .laag { padding: 0; place-items: end center; }
  .venster { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 1.1rem 0.95rem 1.2rem; }
  .venster.vol, .venster.breed { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .venster.vol { padding: 0; }
  .venster.vol .venster-kop { padding: 0.6rem 0.7rem; gap: 0.5rem; }
  .venster-kop h2 { font-size: 1.3rem; }
  .pdf-vak { padding: 0.4rem; gap: 0.4rem; }
  .pdf-pagina { width: 100%; }
  .rg-opslaan { margin: 1rem -0.95rem -1.2rem; padding: 0.7rem 0.95rem 0.9rem; bottom: -1.2rem; }
  .toasts { left: 0.7rem; right: 0.7rem; transform: none; bottom: 1rem; }
  .hulp-blok { padding: 1.1rem 1rem; }
  .koppel h1 { font-size: 1.6rem; }
  .koppel-toon { font-size: 1.7rem; }
}
