/* Sitemaker — klantenportaal en HQ (rustig, taakgericht) */
:root {
  --paars: #1C0747; --paars-2: #2A1263; --paars-zacht: #F1EEF9;
  --koraal: #FF5757; --koraal-donker: #E64545;
  --cyaan: #0CC0DF; --cyaan-donker: #067A90;
  --ijs: #E7F4FF; --wit: #FFFFFF; --achter: #F6F8FC;
  --grijs: #5B5577; --grijs-licht: #8A84A3; --lijn: #DFE4EF;
  --ok: #0B7A55; --ok-zacht: #E3F5EE; --let: #9A5B00; --let-zacht: #FFF3DC; --fout: #C0262D; --fout-zacht: #FDECEC;
  --r: 14px; --r-klein: 10px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--achter); color: var(--paars); font: 400 16px/1.55 var(--font); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-variation-settings: "wdth" 115; }
h2 { font-size: 21px; font-variation-settings: "wdth" 110; }
h3 { font-size: 17px; font-variation-settings: "wdth" 105; }
p { margin: 0 0 .8em; }
a { color: var(--paars); }
:focus-visible { outline: 3px solid var(--cyaan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dempen { color: var(--grijs); }
.klein { font-size: 14px; }
.nummers { font-variant-numeric: tabular-nums; }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-klein); border: 0; font: 700 15px/1 var(--font); font-variation-settings: "wdth" 105; cursor: pointer; text-decoration: none; background: var(--paars); color: var(--wit); }
.knop:hover { background: var(--paars-2); }
.knop:disabled, .knop[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.knop-actie { background: #D93636; color: var(--wit); box-shadow: 0 4px 0 #A82424; }
.knop-actie:hover { background: #C82E2E; }
.knop-licht { background: var(--wit); color: var(--paars); box-shadow: inset 0 0 0 1.5px var(--lijn); }
.knop-licht:hover { background: var(--achter); }
.knop-tekst { background: none; color: var(--paars); padding: 0 6px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.knop-tekst:hover { background: none; color: var(--paars-2); }
.knop-gevaar { background: var(--wit); color: var(--fout); box-shadow: inset 0 0 0 1.5px #F2B8BB; }
.knop-klein { min-height: 34px; padding: 0 12px; font-size: 14px; }
.knop svg { width: 18px; height: 18px; }
.knoppen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Velden */
.veld { margin-bottom: 16px; }
.veld > label, .veld > .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.veld .opt { font-weight: 400; color: var(--grijs); }
.veld .hulp { font-size: 14px; color: var(--grijs); margin-top: 6px; }
.veld .fout { color: var(--fout); font-size: 14px; font-weight: 600; margin-top: 6px; }
.veld .fout:empty { display: none; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--paars); background: var(--wit); border: 1.5px solid #C6CDDE; border-radius: var(--r-klein); padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--paars); box-shadow: 0 0 0 4px rgba(12, 192, 223, .3); }
[aria-invalid="true"] { border-color: var(--fout) !important; }
.vinkje { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.vinkje input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--paars); flex: none; }
.rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rij3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .rij2, .rij3 { grid-template-columns: 1fr; } }

/* Meldingen */
.melding { border-radius: var(--r-klein); padding: 12px 14px; margin-bottom: 16px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.melding svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.melding-ok { background: var(--ok-zacht); color: var(--ok); }
.melding-fout { background: var(--fout-zacht); color: var(--fout); }
.melding-let { background: var(--let-zacht); color: var(--let); }
.melding-info { background: var(--ijs); color: var(--paars); }
.melding p:last-child { margin: 0; }
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--paars); color: var(--wit); border-radius: var(--r-klein); padding: 12px 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(20, 0, 60, .25); animation: in .2s ease-out; }
.toast-fout { background: var(--fout); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* Labels/status */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--paars-zacht); color: var(--paars); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-ok { background: var(--ok-zacht); color: var(--ok); }
.s-let { background: var(--let-zacht); color: var(--let); }
.s-fout { background: var(--fout-zacht); color: var(--fout); }
.s-info { background: var(--ijs); color: var(--cyaan-donker); }
.s-grijs { background: #EEF0F5; color: var(--grijs); }

/* Panelen */
.paneel { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 22px; }
.paneel + .paneel { margin-top: 16px; }
.paneel-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.leeg { text-align: center; padding: 34px 16px; color: var(--grijs); }
.leeg h3 { color: var(--paars); margin-bottom: 6px; }

/* Lijsten en tabellen */
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst > li { padding: 14px 0; border-top: 1px solid var(--lijn); }
.lijst > li:first-child { border-top: 0; padding-top: 0; }
.lijst > li:last-child { padding-bottom: 0; }
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th { text-align: left; font-size: 13px; color: var(--grijs); font-weight: 700; padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--paars); white-space: nowrap; }
.tabel td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tr.klikbaar { cursor: pointer; }
.tabel tr.klikbaar:hover td { background: var(--achter); }
.tabel .acties { white-space: nowrap; text-align: right; }

/* Dialoog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(620px, calc(100% - 24px)); max-height: calc(100% - 32px); color: var(--paars); box-shadow: 0 30px 80px rgba(10, 0, 40, .35); }
dialog.breed { width: min(860px, calc(100% - 24px)); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; }
fieldset .vinkje { margin-bottom: 6px; }
code { background: var(--achter); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.paneel h3 { margin: 18px 0 10px; }
dialog::backdrop { background: rgba(28, 7, 71, .5); }
dialog .d-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 0; }
dialog .d-inhoud { padding: 16px 22px 22px; }
dialog .sluit { background: none; border: 0; padding: 8px; margin: -8px; cursor: pointer; color: var(--paars); }
dialog .sluit svg { width: 22px; height: 22px; }

/* Inloggen */
.inlog { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.inlog-merk { background: var(--paars); color: var(--wit); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.inlog-merk img.logo { width: 220px; height: auto; }
.inlog-merk .blok { position: absolute; right: -80px; bottom: -60px; width: 420px; opacity: .1; }
.inlog-merk h1 { font-size: clamp(30px, 3.6vw, 44px); font-variation-settings: "wdth" 120; max-width: 12em; position: relative; }
.inlog-merk p { color: #E3DDF5; max-width: 26em; position: relative; }
.inlog-vak { display: grid; place-items: center; padding: 32px 20px; }
.inlog-vak form { width: min(400px, 100%); }
.inlog-vak h2 { font-size: 26px; margin-bottom: 8px; }
.inlog-vak .knop { width: 100%; min-height: 50px; margin-top: 4px; }
.code-invoer { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700 !important; }
@media (max-width: 820px) {
  .inlog { grid-template-columns: 1fr; }
  .inlog-merk { padding: 28px 20px; min-height: 0; }
  .inlog-merk img.logo { width: 170px; }
  .inlog-merk h1, .inlog-merk p, .inlog-merk .blok { display: none; }
}

/* ======================= Klantenportaal ======================= */
.p-kop { background: var(--paars); color: var(--wit); }
.p-kop .binnen { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.p-kop img { height: 26px; width: auto; }
.p-kop .wie { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #E3DDF5; min-width: 0; }
.p-kop .wie span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-kop .knop-tekst { color: var(--wit); font-size: 14px; }
.p-tabs { background: var(--wit); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 20; }
.p-tabs .binnen { max-width: 980px; margin: 0 auto; padding: 0 8px; display: flex; gap: 4px; overflow-x: auto; }
.p-tabs a { display: block; padding: 15px 12px 13px; text-decoration: none; font-weight: 700; color: var(--grijs); border-bottom: 3px solid transparent; white-space: nowrap; }
.p-tabs a[aria-current="page"] { color: var(--paars); border-bottom-color: var(--koraal); }
.p-main { max-width: 980px; margin: 0 auto; padding: 26px 16px 64px; }
.p-groet { margin-bottom: 20px; }
.p-groet p { margin: 6px 0 0; color: var(--grijs); }
.p-raster { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.p-raster .paneel + .paneel { margin-top: 0; }
.p-raster > div { display: grid; gap: 16px; }
@media (max-width: 820px) { .p-raster { grid-template-columns: 1fr; } }

/* De teller: vier blokjes */
.teller { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.teller span { height: 46px; border-radius: 10px; background: var(--ijs); border: 2px dashed #B9CBE5; position: relative; }
.teller span.gebruikt { background: var(--paars); border: 2px solid var(--paars); }
.teller span.gebruikt::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 9px; border-left: 3px solid var(--cyaan); border-bottom: 3px solid var(--cyaan); transform: translateY(-2px) rotate(-45deg); }
.teller-tekst { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1.1; }
.teller-tekst small { display: block; font-size: 15px; font-weight: 500; color: var(--grijs); font-variation-settings: "wdth" 100; margin-top: 4px; }

.wijziging-kop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.wijziging-tekst { white-space: pre-wrap; word-break: break-word; margin: 8px 0 6px; }
.wijziging-meta { font-size: 14px; color: var(--grijs); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.notitie { background: var(--ijs); border-radius: var(--r-klein); padding: 10px 12px; margin-top: 10px; font-size: 15px; }

.bestand-vak { border: 2px dashed #B9CBE5; border-radius: var(--r); padding: 18px; text-align: center; background: var(--achter); cursor: pointer; position: relative; }
.bestand-vak.actief { border-color: var(--paars); background: var(--ijs); }
.bestand-vak input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bestand-vak .naam { font-weight: 700; word-break: break-all; }

.bevestiging { text-align: left; }
.bevestiging .vink { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-zacht); color: var(--ok); display: grid; place-items: center; margin-bottom: 14px; }
.bevestiging .vink svg { width: 30px; height: 30px; }

.factuur-rij { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.factuur-rij .bedrag { font-weight: 800; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.factuur-rij .acties { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

/* ======================= HQ ======================= */
.hq { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.hq-zij { background: var(--paars); color: var(--wit); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.hq-zij .logo { padding: 6px 10px 18px; display: flex; align-items: center; gap: 10px; }
.hq-zij .logo img { width: 150px; height: auto; }
.hq-zij .logo b { font-size: 12px; color: var(--cyaan); font-weight: 700; margin-top: 4px; }
.hq-nav { display: grid; gap: 2px; }
.hq-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #DCD5F0; text-decoration: none; font-weight: 600; font-size: 15px; }
.hq-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--wit); }
.hq-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--wit); box-shadow: inset 3px 0 0 var(--koraal); }
.hq-nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.hq-nav .tel { margin-left: auto; background: #D93636; color: var(--wit); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.hq-nav .tussen { font-size: 12px; color: #9F96C2; padding: 16px 12px 6px; font-weight: 700; }
.hq-zij .onder { margin-top: auto; padding: 16px 10px 4px; font-size: 13px; color: #B9B0D8; border-top: 1px solid rgba(255,255,255,.1); }
.hq-zij .onder .knop-tekst { color: var(--wit); padding: 0; font-size: 13px; }
.hq-main { padding: 26px 30px 64px; min-width: 0; }
.hq-kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hq-kop p { margin: 4px 0 0; color: var(--grijs); }
.hq-mobiel { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--paars); display: block; }
a.kpi:hover { border-color: #BFC7DB; }
.kpi .waarde { font-size: 28px; font-weight: 800; font-variation-settings: "wdth" 115; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .naam { font-size: 14px; color: var(--grijs); margin-top: 4px; }
.kpi.alarm { border-color: #F2B8BB; background: var(--fout-zacht); }
.kpi.alarm .waarde { color: var(--fout); }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.twee > .paneel + .paneel { margin-top: 0; }
.checklijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklijst li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.checklijst .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.checklijst .ic.ja { background: var(--ok-zacht); color: var(--ok); }
.checklijst .ic.nee { background: var(--let-zacht); color: var(--let); }
.checklijst small { display: block; color: var(--grijs); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters button { border: 1.5px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: 6px 12px; font: 600 14px var(--font); color: var(--grijs); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--paars); color: var(--wit); border-color: var(--paars); }
.filters .n { opacity: .7; margin-left: 4px; }
.zoek { max-width: 320px; }
.klant-kop { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.klant-kop .terug { font-size: 14px; display: inline-block; margin-bottom: 8px; }
.klant-raster { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.klant-raster > div { display: grid; gap: 16px; }
.klant-raster .paneel + .paneel { margin-top: 0; }
.gegevens { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.gegevens dt { color: var(--grijs); }
.gegevens dd { margin: 0; word-break: break-word; }
.log { font-size: 14px; }
.log li { padding: 8px 0 !important; }
.preview { white-space: pre-wrap; background: var(--achter); border-radius: var(--r-klein); padding: 14px; font-size: 14px; max-height: 360px; overflow: auto; border: 1px solid var(--lijn); }
.selecteer { width: 18px; height: 18px; accent-color: var(--paars); }
.balk-acties { position: sticky; bottom: 12px; background: var(--paars); color: var(--wit); border-radius: var(--r); padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; box-shadow: 0 10px 30px rgba(20,0,60,.25); }
.balk-acties .knop-licht { box-shadow: none; }
.sjabloon textarea { min-height: 260px; font-size: 15px; }
.mini-site { display: flex; align-items: center; gap: 8px; }
.punt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #C5CAD8; }
.punt.ok { background: var(--ok); } .punt.fout { background: var(--fout); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .twee, .klant-raster { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .hq { grid-template-columns: 1fr; }
  .hq-zij { position: fixed; inset: 0 25% 0 0; z-index: 90; transform: translateX(-105%); transition: transform .2s ease; height: 100%; }
  .hq-zij.open { transform: none; box-shadow: 0 0 0 100vmax rgba(28, 7, 71, .45); }
  .hq-mobiel { display: flex; align-items: center; justify-content: space-between; background: var(--paars); color: var(--wit); padding: 0 12px 0 16px; height: 58px; position: sticky; top: 0; z-index: 60; }
  .hq-mobiel img { height: 24px; width: auto; }
  .hq-mobiel button { background: none; border: 0; color: var(--wit); padding: 10px; cursor: pointer; }
  .hq-mobiel svg { width: 26px; height: 26px; }
  .hq-main { padding: 18px 14px 64px; }
  .gegevens { grid-template-columns: 1fr; gap: 0; }
  .gegevens dd { margin-bottom: 8px; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi { padding: 12px; } .kpi .waarde { font-size: 22px; } }

/* Verfijningen na visuele controle */
.wijziging-meta svg, .lijst a svg { width: 16px; height: 16px; vertical-align: -3px; }
.wijziging-meta a { display: inline-flex; gap: 4px; align-items: center; }
.tabel select { min-width: 150px; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.paneel > h2 + :not(.paneel-kop) { margin-top: 12px; }
.paneel > h2 + p.klein { margin-top: 4px; }
.wijziging-form { margin-top: 12px; background: var(--achter); border-radius: var(--r-klein); padding: 12px 12px 4px; }
.wijziging-form .rij3 { grid-template-columns: 1fr 2fr auto; align-items: end; }
.wijziging-form .veld { margin-bottom: 10px; }
.wijziging-form .knoppen { margin-bottom: 8px; }
.wijziging-form .vinkje { min-height: 46px; align-items: center; }
@media (max-width: 640px) { .wijziging-form .rij3 { grid-template-columns: 1fr; } .wijziging-form .vinkje { min-height: 0; } }
.melding .knop { margin-top: 8px; }
dialog h3 { margin: 20px 0 8px; }

.open-balk { background: var(--let-zacht); color: var(--let); font-weight: 600; font-size: 14px; padding: 10px 16px; text-align: center; }
.open-balk .knop-tekst { color: var(--let); font-size: 14px; min-height: 0; }
.hq-rechts { min-width: 0; }
.kies-klant { width: min(400px, 100%); } .kies-klant .lijst li { padding: 6px 0; border: 0; } .kies-klant .knop { width: 100%; justify-content: flex-start; }

/* Portaal-overzicht, opgeruimd */
.p-titel { margin-bottom: 18px; }
.p-melding { align-items: center; }
.p-melding p { flex: 1; margin: 0; }
.p-melding .knop { margin: 0; }
.site-kaart { display: flex; align-items: center; gap: 14px; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.site-icoon { width: 44px; height: 44px; border-radius: 12px; background: var(--paars); display: grid; place-items: center; flex: none; }
.site-icoon img { width: 26px; height: auto; }
.site-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.site-info b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teller-rij { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.teller-rij .teller-tekst { margin: 0; }
.sub-kop { font-size: 14px; color: var(--grijs); margin: 22px 0 6px; font-weight: 700; }
.meer { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; }
.paneel.compact h2 { font-size: 18px; margin-bottom: 10px; }
.regel { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--lijn); font-size: 15px; }
.regel > span:first-child { color: var(--grijs); }
.w-kort .wijziging-kop b { font-size: 15px; }
.w-stappen { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.w-stappen li { position: relative; padding-top: 12px; font-size: 12px; font-weight: 700; color: #A9A3BF; }
.w-stappen li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: #E7E9F1; }
.w-stappen li.klaar { color: var(--ok); } .w-stappen li.klaar::before { background: var(--ok); }
.w-stappen li.nu { color: var(--paars); } .w-stappen li.nu::before { background: linear-gradient(90deg, var(--cyaan), #6C4CF1); }
@media (max-width: 820px) { .teller-rij .knop { width: 100%; } }
.wijziging-kop .klein { white-space: nowrap; flex: none; }

/* Voorstel van Claude bij een wijziging */
.ai-blok { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-klein); background: var(--paars-zacht); }
.ai-blok.ai-leeg { background: none; padding: 0; }
.ai-blok.ai-voorstel { background: var(--ijs); box-shadow: inset 3px 0 0 #0CC0DF; }
.ai-blok.ai-fout { background: #FDECEC; }
.ai-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-samenvatting { margin: 4px 0 10px; font-weight: 600; }
.ai-diff { font-size: 14px; background: var(--wit); }
.ai-diff td { vertical-align: top; overflow-wrap: anywhere; }
.ai-diff .oud { color: #6B6485; text-decoration: line-through; text-decoration-color: rgba(107, 100, 133, .5); }
.ai-diff .nieuw { font-weight: 600; }
.ai-blok .knoppen { margin-top: 10px; }
.ai-blok code { font-size: 13px; }

/* Start in het portaal */
.p-intro { margin: -6px 0 18px; color: var(--grijs); font-size: 17px; }
.start-stappen { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.start-stappen li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-klein); background: var(--wit); border: 1px solid var(--lijn); color: var(--grijs); font-weight: 600; font-size: 15px; line-height: 1.25; }
.start-stappen .nr { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--achter); font-weight: 800; color: var(--paars); }
.start-stappen .nr svg { width: 16px; height: 16px; }
.start-stappen li.klaar { color: var(--paars); }
.start-stappen li.klaar .nr { background: var(--paars); color: var(--wit); }
.start-stappen li.nu { color: var(--paars); border-color: var(--paars); box-shadow: inset 0 -3px 0 var(--koraal); }
.start-stappen li.nu .nr { background: var(--koraal); color: var(--wit); }
@media (max-width: 720px) {
  .start-stappen { grid-template-columns: 1fr; gap: 6px; }
  .start-stappen li:not(.nu) { padding: 8px 12px; font-size: 14px; }
  .start-stappen li:not(.nu) .nr { width: 24px; height: 24px; font-size: 13px; }
}
.start-paneel h2 { margin-top: 0; }
.start-paneel fieldset { border-top: 1px solid var(--lijn); padding-top: 18px; margin-top: 8px; }
.start-paneel fieldset legend { font-weight: 800; font-size: 18px; padding-top: 18px; float: left; width: 100%; margin-bottom: 10px; }
.start-paneel fieldset legend + * { clear: both; }
.veld .hulp.boven { margin: -2px 0 8px; }
.prijs-blok { background: var(--ijs); border-radius: var(--r-klein); padding: 6px 16px; margin: 6px 0 14px; }
.prijs-blok .regel { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; }
.prijs-blok .regel + .regel { border-top: 1px solid rgba(28, 7, 71, .12); }
.prijs-blok .regel > span { font-weight: 600; }
.prijs-blok small { display: block; font-weight: 400; color: var(--grijs); font-size: 14px; margin-top: 2px; }
.prijs-blok b { font-size: 20px; text-align: right; white-space: nowrap; }
.prijs-blok b small { display: block; font-size: 13px; }
.stijl-keuze { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 6px; }
.stijl-optie { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1.5px solid var(--lijn); border-radius: var(--r-klein); cursor: pointer; font-weight: 600; font-size: 15px; background: var(--wit); }
.stijl-optie input { accent-color: var(--paars); width: 18px; height: 18px; margin: 0; flex: none; }
.stijl-optie:has(input:checked) { border-color: var(--paars); background: var(--paars-zacht); }
.stijl-optie:has(input:focus-visible) { outline: 3px solid #0CC0DF; outline-offset: 2px; }
.upload-rij { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.upload-knop { position: relative; }
.upload-knop:has(input:focus-visible) { outline: 3px solid #0CC0DF; outline-offset: 2px; }
.bestanden > li.bestand { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.bestand .naam { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bestand.bezig { opacity: .6; }
.start-bouwen { background: var(--ijs); border-color: transparent; margin-bottom: 16px; }
.start-bouwen h2 { margin-top: 0; }
.start-klant .regel { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.start-klant dl.intake dt { font-weight: 700; margin-top: 10px; }
.start-klant dl.intake dd { margin: 2px 0 0; white-space: pre-wrap; }
.vinkje small.hulp { display: block; font-weight: 400; margin-top: 2px; }
.checklijst small { display: block; color: var(--grijs); font-size: 13px; }
.checklijst .ic svg { width: 13px; height: 13px; }
.nieuwe-klanten { margin-bottom: 16px; border-color: var(--paars); }
.start-klant details { margin-top: 14px; }
.start-klant summary { cursor: pointer; }
.prijs-blok .regel:first-child { border-top: 0; }

/* Agenda */
.afspraak-tijd { display: inline-block; min-width: 52px; font-variant-numeric: tabular-nums; }
.wijziging-meta a svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.slot-legenda { display: flex; gap: 8px; margin: -4px 0 14px; }
.slot-legenda .slot { pointer-events: none; min-height: 28px; padding: 4px 10px; }
.slot-dagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.slot-dag { border: 1px solid var(--lijn); border-radius: var(--r-klein); padding: 12px; }
.slot-dag.leeg { background: var(--achter); }
.slot-dagkop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.slot-dagkop .knop-tekst { min-height: 30px; font-size: 13px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; min-height: 36px; padding: 4px 8px; border-radius: 8px; font: 700 14px/1.1 var(--font); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; font-variant-numeric: tabular-nums; }
.slot.vrij { background: var(--ok-zacht); color: var(--ok); border-color: rgba(10, 125, 70, .25); }
.slot.dicht { background: var(--wit); color: var(--grijs-licht); border: 1.5px dashed #C6CDDE; text-decoration: line-through; }
.slot.geboekt { background: var(--paars); color: var(--wit); cursor: pointer; }
.slot.geboekt small { font-weight: 500; font-size: 11px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.slot.voorbij { background: var(--achter); color: var(--grijs-licht); cursor: default; }
.slot:not(:disabled):not(.geboekt):hover { border-color: var(--paars); }
.dagen-tijden { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 14px; }
#ag-form h2 { margin: 18px 0 4px; font-size: 20px; }

/* Concept-websites */
.concept-blok { border: 1px solid var(--lijn); border-radius: var(--r-klein); padding: 12px 14px; margin: 12px 0 16px; }
.concept-blok h3 { margin: 0; font-size: 17px; }
.concept-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.concept-kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.concept-beeld { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; background: var(--c-achter); }
.concept-beeld img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; }
.concept-mini { position: absolute; left: 0; top: 0; bottom: 0; width: 52%; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: var(--c-achter); color: var(--c-tekst); }
.concept-mini .concept-naam { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--c-accent); }
.concept-mini b { font-family: var(--c-kop); font-size: 17px; line-height: 1.15; }
.concept-mini::after { content: ""; display: block; width: 64px; height: 18px; border-radius: 999px; background: var(--c-knop); margin-top: 4px; }
.concept-gezien { position: absolute; right: 10px; top: 10px; background: var(--koraal); color: var(--wit); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.concept-info { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.concept-info .knoppen { margin-top: auto; padding-top: 6px; }
.concept-info p { margin: 2px 0; }
.thema-natuur { --c-achter: #F6F1E7; --c-tekst: #24402B; --c-accent: #7FA36B; --c-knop: #2F5A37; --c-kop: Georgia, serif; }
.thema-elegant { --c-achter: #141015; --c-tekst: #F2EBE2; --c-accent: #D9B77C; --c-knop: #D9B77C; --c-kop: Georgia, serif; }
.thema-stoer { --c-achter: #F4F4F0; --c-tekst: #111111; --c-accent: #8A7200; --c-knop: #FFD400; --c-kop: "Arial Black", Arial, sans-serif; }
.thema-zacht { --c-achter: #F7F5FF; --c-tekst: #251A57; --c-accent: #6C4CF1; --c-knop: #6C4CF1; --c-kop: system-ui, sans-serif; }

/* Bedrijf: 3D-kantoor (gebaseerd op TrueSafe HQ) */
.office { position: relative; border-radius: var(--r); overflow: hidden; }
.office.o3d { padding: 0; height: min(64vh, 560px); min-height: 380px; background: #E9E7E1; cursor: grab; touch-action: pan-y; }
.office.o3d:active { cursor: grabbing; }
.stage3d, .stage3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.ov3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plate3d, .tag3d, .bubble3d { position: absolute; left: 0; top: 0; will-change: transform; }
.plate3d { display: flex; flex-direction: column; gap: 1px; padding: 4px 9px 5px; border-radius: 8px; background: rgba(28, 7, 71, .9); color: #fff; font-size: 10.5px; line-height: 1.25; max-width: 170px; margin-top: -30px; box-shadow: 0 6px 18px rgba(28, 7, 71, .25); }
.plate3d b { font-weight: 700; font-size: 11.5px; }
.plate3d i { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #9AA6B6; }
.tag3d { margin-top: -10px; translate: -50% 0; font-size: 10.5px; font-weight: 700; color: var(--paars); background: #fff; border-radius: 999px; padding: 1px 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); white-space: nowrap; }
.bubble3d { translate: -50% -100%; width: max-content; max-width: 230px; background: #fff; color: #111; border-radius: 12px; padding: 7px 10px; font-size: 12px; line-height: 1.35; box-shadow: 0 8px 24px rgba(28, 7, 71, .22); border: 1px solid rgba(28, 7, 71, .12); }
.bubble3d::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); border-right: 1px solid rgba(28, 7, 71, .12); border-bottom: 1px solid rgba(28, 7, 71, .12); }
.bubble3d.pop { animation: pop3 .25s ease-out; }
@keyframes pop3 { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.hint3d { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--paars); background: rgba(255, 255, 255, .85); padding: 3px 9px; border-radius: 999px; transition: opacity .6s; pointer-events: none; }
.building3d .floor3d { position: absolute; left: 0; top: 0; will-change: transform; translate: 0 -50%; max-width: 52%; overflow: hidden; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .95); color: var(--paars); font: inherit; font-size: 11.5px; line-height: 1.2; cursor: pointer; box-shadow: 0 4px 14px rgba(28, 7, 71, .16); white-space: nowrap; text-align: left; pointer-events: auto; }
.building3d .floor3d .fn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fc); color: #fff; font-weight: 800; font-size: 11px; }
.building3d .floor3d b { font-weight: 700; }
.building3d .floor3d em { font-style: normal; color: var(--grijs); font-size: 10.5px; }
.building3d .floor3d.live em { color: var(--ok); }
.building3d .floor3d.hot, .building3d .floor3d:hover { box-shadow: 0 0 0 2px var(--fc), 0 6px 18px rgba(28, 7, 71, .22); }
.gebouw-paneel, .vloer-paneel { padding: 0; overflow: hidden; }
.gebouw-paneel .office.o3d { height: min(74vh, 680px); min-height: 520px; border-radius: 0; }
.vloer-paneel .office.o3d { height: min(56vh, 440px); min-height: 320px; border-radius: 0; }
@media (max-width: 700px) { .plate3d { display: none; } .gebouw-paneel .office.o3d { height: 58vh; min-height: 420px; } .building3d .floor3d em { display: none; } }

.bedrijf-raster { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 1000px) { .bedrijf-raster { grid-template-columns: 1fr; } }
.afd-lijst { display: grid; gap: 10px; }
.afd-kaart { --fc: var(--paars); display: flex; align-items: center; gap: 12px; background: var(--wit); border: 1px solid var(--lijn); border-left: 5px solid var(--fc); border-radius: var(--r-klein); padding: 12px 14px; text-decoration: none; color: var(--paars); }
.afd-kaart:hover { box-shadow: 0 6px 18px rgba(28, 7, 71, .1); }
.afd-verdieping { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fc); color: #fff; font-weight: 800; flex: none; }
.afd-tekst { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.afd-kaart .tel { background: var(--koraal); color: var(--wit); border-radius: 999px; padding: 1px 8px; font-weight: 800; font-size: 13px; }
.afd-kaart[data-kleur="directie"] { --fc: #1C0747; } .afd-kaart[data-kleur="marketing"] { --fc: #FF5757; } .afd-kaart[data-kleur="b2b"] { --fc: #6C4CF1; }
.afd-kaart[data-kleur="projecten"] { --fc: #0CC0DF; } .afd-kaart[data-kleur="klantenservice"] { --fc: #22C3B5; } .afd-kaart[data-kleur="incidenten"] { --fc: #F5A623; } .afd-kaart[data-kleur="finance"] { --fc: #2F8A5B; }

.portret { width: 44px; height: 44px; border-radius: 50%; background: var(--ijs); flex: none; object-fit: cover; }
.portret.groot { width: 56px; height: 56px; }
.portret.klein { width: 30px; height: 30px; }
.briefing-directie { margin-bottom: 16px; border-color: var(--paars); }
.briefing-kop { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.briefing-kop h2 { margin: 0; }
.briefing-tekst p { margin: 0 0 6px; }
.briefing-tekst ul { margin: 4px 0 8px; padding-left: 20px; }
.beslis { margin: 0; padding-left: 20px; }
.beslis li { margin: 4px 0; font-weight: 600; }
.logboek { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.logboek li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--lijn); font-size: 15px; }
.logboek li:first-child { border-top: 0; }
.logboek li div { display: flex; flex-direction: column; }
.team-lijst { list-style: none; margin: 0; padding: 0; }
.team-lijst > li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--lijn); }
.team-lijst > li:first-child { border-top: 0; }
.team-naam { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.team-nu { margin: 4px 0; font-weight: 600; }
.team-lijst ul { margin: 2px 0 0; padding-left: 18px; }
.vraag-form { margin-top: 14px; border-top: 1px solid var(--lijn); padding-top: 12px; }
.qa { list-style: none; margin: 12px 0 0; padding: 0; }
.qa li { padding: 10px 0; border-top: 1px solid var(--lijn); }
.vraag-tekst { font-weight: 700; margin: 0 0 4px; }
.antwoord { background: var(--ijs); border-radius: var(--r-klein); padding: 10px 12px; margin-bottom: 4px; }
.antwoord.fout { background: var(--fout-zacht); }
.antwoord p { margin: 0 0 6px; }
.vloer-paneel { margin-bottom: 16px; }
.logboek li div { display: block; }
.logboek li div .klein { display: block; }
.afd-kaart[data-kleur="domeinen"] { --fc: #D94F8A; }

/* ---------- Account (portaal): domein, hulp, review, opzeggen ---------- */
.domein-naam { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 112; margin: 0 0 10px; word-break: break-all; }
.tabel-scroll { overflow-x: auto; margin: 0 0 10px; }
.dns-tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.dns-tabel th, .dns-tabel td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.dns-tabel th { font-size: 13px; color: var(--grijs); font-weight: 600; }
.dns-tabel code, .tabel code { background: var(--paars-zacht); padding: 2px 6px; border-radius: 6px; font-size: 14px; word-break: break-all; }
details.anders { margin-top: 14px; border-top: 1px solid var(--lijn); padding-top: 12px; }
details.anders > summary { cursor: pointer; font-weight: 600; color: var(--grijs); }
details.anders[open] > summary { margin-bottom: 12px; }
.keuze-kaarten, .keuze-lijst { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.keuze-kaart { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--lijn); border-radius: var(--r-klein); cursor: pointer; background: var(--wit); }
.keuze-kaart input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--paars); flex: none; }
.keuze-kaart span { display: grid; gap: 2px; }
.keuze-kaart small { color: var(--grijs); font-size: 14px; line-height: 1.45; }
.keuze-kaart:has(input:checked) { border-color: var(--paars); background: var(--paars-zacht); }
.keuze-kaart.klein { padding: 11px 14px; align-items: center; }
.keuze-kaart.klein input { margin: 0; }
.vragen details > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.vragen details > summary::-webkit-details-marker { display: none; }
.vraag-kop { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.gesprek { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.gesprek li { padding: 10px 14px; border-radius: 12px; max-width: 92%; }
.gesprek li p { margin: 2px 0 0; white-space: pre-wrap; }
.gesprek .van-klant { background: var(--achter); border: 1px solid var(--lijn); }
.gesprek .van-ons { background: var(--paars-zacht); justify-self: end; }
.reageer { display: flex; gap: 8px; align-items: flex-end; }
.reageer textarea { flex: 1; min-height: 46px; }
.sterren { font-size: 22px; color: #F2A900; letter-spacing: 2px; margin: 0 0 8px; }
.sterren .leeg { color: var(--lijn); }
.sterren-kies { border: 0; padding: 0; margin: 0 0 4px; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sterren-kies legend { font-weight: 600; margin-bottom: 4px; width: 100%; }
.sterren-kies input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sterren-kies label { font-size: 34px; line-height: 1; color: var(--lijn); cursor: pointer; padding: 2px; }
.sterren-kies label:hover, .sterren-kies label:hover ~ label, .sterren-kies input:checked ~ label { color: #F2A900; }
.sterren-kies input:focus-visible + label { outline: 3px solid var(--cyaan); border-radius: 6px; }
.paneel.smal { max-width: 640px; }
.behoud { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.knoppen.tussen { justify-content: space-between; margin-top: 18px; }
.gevolgen { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- HQ: klantvragen, domeinen, kosten ---------- */
.segment { display: flex; gap: 6px; flex-wrap: wrap; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticket .paneel-kop h2 { font-size: 18px; }
.ticket .paneel-kop p { margin: 4px 0 0; }
.antwoord textarea { min-height: 140px; }
.opzeg-paneel { border-color: #F2B8BB; }
.legenda { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--grijs); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.omzet, .staaf.omzet { background: var(--paars); }
.sw.kosten, .staaf.kosten { background: var(--koraal); }
.staven { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; margin: 6px 0 16px; }
.staaf-groep { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.staaf-paar { display: flex; gap: 2px; align-items: flex-end; justify-content: center; height: 100%; }
.staaf { width: min(14px, 40%); height: var(--h, 0%); min-height: 2px; border-radius: 4px 4px 0 0; }
.staaf-groep .klein { font-size: 11px; white-space: nowrap; overflow: hidden; }
.min { color: var(--fout); }
.rij-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rij-form .veld { margin: 0; }
@media (max-width: 520px) { .staven { gap: 2px; } .staaf-groep .klein { font-size: 9px; } .reageer { flex-direction: column; align-items: stretch; } }
.hq-kop .terug { font-size: 14px; display: inline-block; margin-bottom: 8px; }
.tabel th.rechts { text-align: right; }
@media (max-width: 420px) { .p-tabs .binnen { gap: 0; padding: 0 4px; } .p-tabs a { padding: 15px 8px 13px; font-size: 15px; } }

/* ---------- B2B-overzicht en teambalk ---------- */
.sub-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--lijn); margin: -6px 0 18px; overflow-x: auto; }
.sub-tabs a { padding: 10px 14px 9px; text-decoration: none; font-weight: 700; color: var(--grijs); border-bottom: 3px solid transparent; white-space: nowrap; }
.sub-tabs a[aria-current="page"] { color: var(--paars); border-bottom-color: var(--koraal); }
.sub-tabs .n { font-size: 12px; background: var(--paars-zacht); border-radius: 99px; padding: 1px 7px; margin-left: 2px; }
.kpis.kpis-6 { grid-template-columns: repeat(5, 1fr); }
.kpi .naam .klein { font-size: 13px; color: var(--grijs-licht); }
.kpi.goed { border-color: #A8DCC6; background: var(--ok-zacht); }
.kpi.goed .waarde { color: var(--ok); }
.voortgang { height: 12px; background: var(--paars-zacht); border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.voortgang span { display: block; height: 100%; width: var(--w, 0%); background: var(--paars); border-radius: 99px; }
.gegevens.vandaag { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { background: var(--paars); color: var(--wit); border-radius: 99px; padding: 4px 11px; font-size: 14px; font-weight: 600; }
.chip.licht { background: var(--paars-zacht); color: var(--paars); }
.lijst.plan li, .lijst.zoekopdrachten li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sw.gevonden, .staaf.gevonden { background: var(--cyaan); }
.sw.reactie, .staaf.reactie { background: var(--ok); }
.staven.veertien { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.team-balk { padding: 0; overflow: hidden; margin-bottom: 16px; border-top: 4px solid var(--paars); }
.team-balk[data-kleur="b2b"] { border-top-color: #6C4CF1; } .team-balk[data-kleur="projecten"] { border-top-color: #0CC0DF; }
.team-balk[data-kleur="domeinen"] { border-top-color: #D94F8A; } .team-balk[data-kleur="klantenservice"] { border-top-color: #22C3B5; }
.team-balk[data-kleur="incidenten"] { border-top-color: #F5A623; } .team-balk[data-kleur="finance"] { border-top-color: #2F8A5B; }
.balk-kop { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.balk-kop a { text-decoration: none; }
.balk-kop button { margin-left: auto; }
.balk-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-top: 1px solid var(--lijn); }
.team-balk .office.o3d.balk-vloer { height: 260px; min-height: 260px; border-radius: 0; }
.balk-team { list-style: none; margin: 0; padding: 12px 18px; display: grid; gap: 10px; align-content: start; max-height: 260px; overflow-y: auto; }
.balk-team li { display: flex; gap: 10px; align-items: flex-start; }
.balk-team li p { margin: 2px 0 0; }
.balk-team .portret { width: 40px; height: 40px; flex: none; }
@media (max-width: 1100px) { .kpis.kpis-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .balk-body { grid-template-columns: 1fr; } .team-balk .balk-vloer { display: none; } .balk-team { max-height: none; } }
@media (max-width: 520px) { .kpis.kpis-6 { grid-template-columns: 1fr 1fr; } .staven.veertien .klein { display: none; } }
.site-kies { max-width: 260px; background: var(--paars-2); color: var(--wit); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 8px; font: 600 14px var(--font); }
.sites-lijst li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sites-lijst li > div:last-child { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sites-lijst li.actief b { color: var(--paars); }
@media (max-width: 520px) { .site-kies { max-width: 170px; } }
@media (max-width: 520px) { .p-kop .binnen { gap: 8px; } .p-kop a > img { width: 118px; height: auto; } .p-kop .wie { flex: 1; min-width: 0; justify-content: flex-end; gap: 8px; } .site-kies { max-width: none; flex: 1; min-width: 0; } }

.kpis.kpis-8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .kpis.kpis-8 { grid-template-columns: 1fr 1fr; } }

/* Opdrachten */
.opdracht-raster{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-bottom:20px}
.opdracht{background:#fff;border:1px solid var(--lijn,#e2e0ee);border-radius:14px;padding:18px;display:grid;gap:8px;align-content:start}
.opdracht.krap{border-color:#FF5757}
.opdracht .aftel{margin:0;font-size:15px}.opdracht .aftel.rood b{color:#C62828}
.opdracht .knoppen{margin-top:4px}

/* Netlify-credits */
.credit-balk { background: var(--let-zacht); color: var(--let); font-weight: 600; font-size: 14px; padding: 10px 16px; text-align: center; }
.credit-balk.rood { background: var(--fout-zacht); color: var(--fout); }
.credit-balk a { color: inherit; }
.credit-groot { font-size: 28px; }
.credit-meter { position: relative; height: 12px; border-radius: 6px; background: #E6E9F2; overflow: hidden; margin: 6px 0 12px; }
.credit-meter span { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--ok); border-radius: 6px; }
.credit-meter.oranje span { background: #D98200; }
.credit-meter.rood span { background: var(--fout); }
.credit-meter i { position: absolute; top: 0; bottom: 0; left: var(--w, 75%); width: 2px; background: #1C0747; opacity: .5; }
