/* =========================================================
   Boekhouding — huisstijl Regge IT
   Kleuren, letters en rondingen volgen regge-it.com.
   Rustig, overzichtelijk, veel witruimte. Kleuren als tokens.
   Formuliervelden krijgen basisstijl via :where() (specificiteit 0),
   zodat elke class-regel ze altijd kan overschrijven.
   ========================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  /* Merkkleuren (vast) */
  --regge: #0e3a47;
  --stroom: #1c7c8c;
  --stroom-licht: #7fc4cf;
  --oker: #e2a23b;
  --zand: #e8dfcd;

  /* Rollen */
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #f6f3ed;
  --surface-sunken: #eae5db;
  --text: #0b1f26;
  --muted: #4a5e64;
  --faint: #5f7276;
  --border: #e2dccf;
  --border-strong: #8a9595;
  --primary: #0e3a47;
  --primary-hover: #164e5e;
  --primary-soft: #e3eef0;
  --primary-text: #ffffff;
  --accent-text: #176a78;
  --info: #1c7c8c;
  --success: #3f6e33;
  --success-soft: #e8f0e3;
  --warning: #8a5a12;
  --warning-soft: #fbf0db;
  --danger: #b23a26;
  --danger-soft: #f9e8e3;
  --info-soft: #eaf2f3;
  --focus: #1c7c8c;
  --shadow: 0 1px 2px rgba(11, 31, 38, .05);
  --shadow-pop: 0 1px 2px rgba(11, 31, 38, .06), 0 10px 28px rgba(11, 31, 38, .14);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --sidebar-w: 244px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1d23; --surface: #12303a; --surface-2: #173a45; --surface-sunken: #071419;
    --text: #eef3f2; --muted: #a9bcc0; --faint: #86a2a7;
    --border: #24434d; --border-strong: #5e8490;
    --primary: #7fc4cf; --primary-hover: #9bd3db; --primary-soft: #183f4a; --primary-text: #0a1d23; --accent-text: #7fc4cf;
    --info: #7fc4cf; --success: #9dbf89; --success-soft: #1a3226; --warning: #e9b65c; --warning-soft: #33291a;
    --danger: #f0907a; --danger-soft: #3a2220; --info-soft: #15363f; --focus: #7fc4cf;
    --shadow: 0 1px 2px rgba(0,0,0,.25); --shadow-pop: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1d23; --surface: #12303a; --surface-2: #173a45; --surface-sunken: #071419;
  --text: #eef3f2; --muted: #a9bcc0; --faint: #86a2a7;
  --border: #24434d; --border-strong: #5e8490;
  --primary: #7fc4cf; --primary-hover: #9bd3db; --primary-soft: #183f4a; --primary-text: #0a1d23; --accent-text: #7fc4cf;
  --info: #7fc4cf; --success: #9dbf89; --success-soft: #1a3226; --warning: #e9b65c; --warning-soft: #33291a;
  --danger: #f0907a; --danger-soft: #3a2220; --info-soft: #15363f; --focus: #7fc4cf;
  --shadow: 0 1px 2px rgba(0,0,0,.25); --shadow-pop: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-spacing: .04em; /* Plus Jakarta Sans heeft een smalle spatie; iets meer lucht leest prettiger in lange uitleg. */
}
a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 1.65rem; line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
code, kbd, samp, pre, .mono { font-family: var(--font-mono); }
code, kbd, samp { font-size: .88em; overflow-wrap: anywhere; }
pre { font-size: .85rem; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--stroom-licht) 45%, transparent); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Klein label boven een kop: hoofdletters met een okergeel streepje ervoor (zoals op regge-it.com). */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2);
  font-size: .72rem; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 4px; height: 14px; border-radius: 1.5px; background: var(--oker); flex: none; }

/* Logo Regge IT: licht en donker, ook als het thema handmatig is gekozen. */
.brand-logo { display: block; line-height: 0; }
.brand-logo__img { display: block; width: auto; height: 32px; max-width: none; }
.brand-logo__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo__img--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo__img--dark { display: block; }
}
:root[data-theme="dark"] .brand-logo__img--light { display: none; }
:root[data-theme="dark"] .brand-logo__img--dark { display: block; }

/* ---------- App-indeling ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
}
.sidebar__brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: var(--space-6) var(--space-5) var(--space-3); color: var(--text);
}
.sidebar__brand:hover { text-decoration: none; }
.sidebar__brand .brand-logo__img { height: 32px; }
/* Naam van deze tool, uitgelijnd onder het woord "regge it" in het logo. */
.sidebar__app { padding-left: 42px; font-size: .8rem; line-height: 1.2; font-weight: 700; letter-spacing: .01em; color: var(--accent-text); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; }
.brand-mark img { width: 100%; height: 100%; }
.sidebar__company { padding: var(--space-2) var(--space-5) var(--space-3); color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: var(--space-1) var(--space-3) var(--space-3); padding: 3px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ws-switch__opt { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: 9px;
  color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: none; }
.ws-switch__opt .icon { width: 16px; height: 16px; }
.ws-switch__opt:hover { color: var(--text); text-decoration: none; }
.ws-switch__opt.is-active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.sidebar > * { flex-shrink: 0; }
.nav { padding: 0 var(--space-3) var(--space-4); flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nav__label { flex: 1; min-width: 0; }
.nav__count { margin-left: auto; font-size: .76rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.nav__dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }
/* Vast onderaan: Instellingen, Help en Beheer blijven in beeld, ook als het menu erboven scrolt. */
.sidebar__pinned { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); }
/* Menu van een onderdeel (Instellingen, Beheer) in de zijbalk. */
.side-ctx { padding: 0 var(--space-3) var(--space-2); }
.side-ctx__back { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--space-3); color: var(--muted); font-size: .86rem; border-radius: var(--radius-sm); }
.side-ctx__back:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.side-ctx__back .icon { width: 16px; height: 16px; }
.side-ctx__title { display: flex; align-items: center; gap: var(--space-2); padding: 4px var(--space-3) 0; font-size: 1.05rem; font-weight: 750; }
.side-ctx__title .icon { color: var(--oker); }
/* Zoeken bovenaan het menu */
.side-search { position: relative; margin: 0 var(--space-3) var(--space-2); }
.side-search > .icon { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }
.side-search input { width: 100%; min-height: 36px; padding: 6px 54px 6px 34px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; }
.side-search input::-webkit-search-cancel-button { display: none; }
.side-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: inherit; font-size: .7rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; background: var(--surface); pointer-events: none; }
.side-search input:focus + kbd { display: none; }
.side-search__list { position: fixed; z-index: 80; width: 360px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; }
.side-search__group { padding: 8px 10px 2px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.side-search__item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; }
.side-search__item .icon { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.side-search__item > span { min-width: 0; overflow: hidden; }
.side-search__item small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-search__item:hover, .side-search__item.is-active { background: var(--primary-soft); text-decoration: none; }
.side-search__all { display: block; padding: 8px 10px; font-size: .86rem; border-top: 1px solid var(--border); margin-top: 4px; }
.search-page__row { display: flex; gap: var(--space-3); }
.search-page__row input { flex: 1; }
.search-list { list-style: none; margin: 0; padding: var(--space-2); }
.search-list a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: 10px var(--space-3); border-radius: var(--radius-sm); color: var(--text); }
.search-list a:hover { background: var(--surface-2); text-decoration: none; }
.search-list .icon { width: 16px; height: 16px; color: var(--muted); }
.search-list a > span { display: flex; flex-direction: column; min-width: 0; }
.page-tabs { margin: calc(-1 * var(--space-2)) 0 var(--space-6); }
/* Lijst met links naar onderdelen (naam, uitleg, status, pijl), bijvoorbeeld Alle koppelingen. */
.link-list { list-style: none; margin: 0; padding: var(--space-2); }
.link-list a { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-sm); color: var(--text); }
.link-list a:hover { background: var(--surface-2); text-decoration: none; }
.link-list a > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-list .cell-main { font-weight: 550; }
.link-list .cell-sub { color: var(--muted); font-size: .86rem; }
.link-list a > .icon:last-child { color: var(--faint); flex: none; }
.nav__section { margin: var(--space-3) 0 2px; padding: 0 var(--space-3); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 7px var(--space-3); border-radius: var(--radius-sm);
  color: var(--text); font-size: .93rem; font-weight: 500;
}
.nav__link .icon { color: var(--muted); }
.nav__link:hover { background: var(--surface-2); text-decoration: none; }
.nav__link.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.nav__link.is-active .icon { color: var(--primary); }
.nav__link.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 16px; margin-top: -8px; border-radius: 0 2px 2px 0; background: var(--oker); }
.sidebar__foot { padding: var(--space-3); border-top: 1px solid var(--border); }
.sidebar__user { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); font-size: .88rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--muted); flex: none; }
.sidebar__user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
/* Jouw menu (naam linksonder): Account, Pakket, Logboek, Gegevens, thema en uitloggen. */
.user-menu > summary { list-style: none; cursor: pointer; border-radius: var(--radius-sm); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--surface-2); }
.user-menu__chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.user-menu[open] > summary .user-menu__chev { transform: rotate(180deg); }
.user-menu__panel { padding: var(--space-1) 0 0; }
.user-menu__panel form { margin: 0; }
.user-menu__btn { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: var(--space-8) var(--space-10) var(--space-12); width: 100%; }
.content--narrow { max-width: 760px; }
.footer { margin-top: auto; padding: var(--space-6) var(--space-10); color: var(--faint); font-size: .8rem; display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer a { color: var(--faint); }
.built-by { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .78rem; text-decoration: none; }
.built-by img { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.built-by:hover { color: var(--muted); }
.footer .built-by { margin-left: auto; }

/* ---------- Paginakop met uitleg ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.page-head__text { min-width: 0; flex: 1 1 320px; }
.page-head__intro { color: var(--muted); margin-top: var(--space-2); max-width: 70ch; }
.page-head__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: var(--space-2); }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 16px; height: 16px; }

.help-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-md);
}
.help-toggle:hover { color: var(--primary); background: var(--surface-2); }
.help-toggle[aria-expanded="true"] { color: var(--primary); }
.help-panel {
  background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 16%, var(--border)); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); margin: calc(var(--space-2) * -1) 0 var(--space-6);
  font-size: .92rem; max-width: 900px;
}
.help-panel h3 { font-size: .95rem; margin-bottom: var(--space-2); }
.help-panel ul, .help-panel ol { margin: 0 0 var(--space-3); padding-left: 1.2rem; }
.help-panel li { margin-bottom: var(--space-1); }
.help-panel > :last-child { margin-bottom: 0; }

/* ---------- Kaarten & secties ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__body { padding: var(--space-5) var(--space-6); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card__head h2 { font-size: 1.02rem; font-weight: 700; }
.card__head .muted { font-size: .88rem; }
.card + .card, .card + .section, .section + .section, .section + .card { margin-top: var(--space-6); }
.section-title { font-size: 1.02rem; font-weight: 700; margin-bottom: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.layout-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--space-6); align-items: start; }
.align-start { align-self: start; }
.layout-side > .card + .card, .grid-2 > .card + .card, .stats-grid > .card + .card, .layout-side > .card + .section, .layout-side > .section + .card { margin-top: 0; }
.stack > * + * { margin-top: var(--space-4); }

/* ---------- Kerncijfers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow); min-width: 0; }
.stat__label { color: var(--muted); font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat__value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.stat__value.is-negative { color: var(--danger); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-top: var(--space-2); }
.progress__bar { height: 100%; background: var(--stroom); border-radius: 3px; }
.progress--warning .progress__bar { background: var(--oker); }
.progress--danger .progress__bar { background: var(--danger); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
/* Tabel direct aan de rand van een kaart: de hoeken meeronden, anders steekt de kop- of hover-achtergrond buiten de ronde hoek uit. */
.card > .table-wrap:first-child { border-top-left-radius: calc(var(--radius) - 1px); border-top-right-radius: calc(var(--radius) - 1px); }
.card > .table-wrap:last-child { border-bottom-left-radius: calc(var(--radius) - 1px); border-bottom-right-radius: calc(var(--radius) - 1px); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th {
  text-align: left; font-weight: 700; color: var(--muted); font-size: .78rem; letter-spacing: .01em; padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
.table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table th:first-child, .table td:first-child { padding-left: var(--space-6); }
.table th:last-child, .table td:last-child { padding-right: var(--space-6); }
.table tr.is-link { cursor: pointer; }
.table tr.is-muted td { color: var(--muted); }
.row-actions { display: inline-flex; gap: var(--space-2); align-items: center; justify-content: flex-end; }
.card__body--divided { border-top: 1px solid var(--border); }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .cell-sub { color: var(--muted); font-size: .84rem; }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.table th.num, .table td.num { text-align: right; }
.table .col-actions { width: 1%; white-space: nowrap; text-align: right; }

/* Status als tekst met stip (geen pillen) */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status--concept::before { background: var(--faint); }
.status--open::before { background: var(--info); }
.status--late { color: var(--danger); }
.status--late::before { background: var(--danger); }
.status--paid::before, .status--accepted::before { background: var(--success); }
.status--partial::before { background: var(--oker); }
.status--rejected::before { background: var(--danger); }

/* ---------- Lege staat ---------- */
.empty { text-align: center; padding: var(--space-12) var(--space-6); color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: var(--faint); margin-bottom: var(--space-3); }
.empty .btn .icon { width: 17px; height: 17px; color: inherit; margin: 0; }
.empty h3 { color: var(--text); margin-bottom: var(--space-2); }
.empty p { max-width: 46ch; margin: 0 auto var(--space-4); }

/* ---------- Knoppen ---------- */
/* Zoals op regge-it.com: vet, ronding 12, primair in Regge-blauw; secundair met omlijning. Iets compacter voor de app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--primary);
  background: var(--primary); color: var(--primary-text); font: inherit; font-size: .9rem; font-weight: 700; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; }
.btn .icon { width: 17px; height: 17px; vertical-align: 0; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface); border-color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--border-strong); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: .85rem; gap: 6px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn { max-width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.actions--end { justify-content: flex-end; }
.actions--spread { justify-content: space-between; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }


.form-actions--plain { border-top: 0; padding-top: 0; margin-top: var(--space-4); }
.inline-form { display: contents; }

/* ---------- Formulieren ---------- */
:where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"],
       input[type="search"], input[type="tel"], input[type="url"], input:not([type]), select, textarea) {
  width: 100%; padding: 9px 12px; border: 1px solid var(--field-edge, var(--border-strong)); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; line-height: 1.35;
  transition: border-color .15s ease;
}
:where(input, select, textarea):hover { border-color: var(--muted); }
:where(input, select, textarea)::placeholder { color: var(--muted); opacity: .8; }
:where(input, select, textarea):focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
:where(textarea) { min-height: 90px; resize: vertical; }
:where(input[type="checkbox"], input[type="radio"]) { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; flex: none; }
:where(input[type="file"]) { font: inherit; font-size: .9rem; max-width: 100%; }
:where(input[readonly]) { background: var(--surface-2); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field__label { font-weight: 700; font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.field--narrow { max-width: 320px; }
.mt-2 { margin-top: var(--space-2); }
/* Keuze uit twee of drie opties als segmenten (bijv. Betaald / Nog te betalen) */
.seg { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg__opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.seg--sm .seg__opt span { padding: 4px 10px; font-size: .8rem; }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.price-head label { margin: 0; }
/* Een link of code om te kopiëren: veld over de volle breedte, knoppen eronder */
.copy-field { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-4); }
.copy-field input { width: 100%; font-family: var(--font-mono); font-size: .84rem; }
.copy-field--row { flex-direction: row; align-items: center; margin-bottom: var(--space-2); }
.copy-field--row input { flex: 1; min-width: 0; }
.copy-field--row .btn { flex: none; }
.notice p { margin: 0 0 var(--space-2); }
.notice p:last-child { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.field__optional { color: var(--faint); font-weight: 400; }
/* Verplichte velden krijgen een stip achter het label; alles zonder stip mag leeg blijven. */
.field > label:has(~ input[required], ~ select[required], ~ textarea[required], ~ .input-group input[required], ~ .op-sub input[required])::after,
label.is-required::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 2px; border-radius: 50%; background: var(--oker); }
.field__help { color: var(--muted); font-size: .83rem; line-height: 1.45; }
.field__help--ok { display: flex; align-items: center; gap: var(--space-2); color: var(--success); font-weight: 600; }
.field__help--ok svg { width: 16px; height: 16px; flex: none; }
.code-apply { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.code-apply .field { margin: 0; }
.input-code { max-width: 16rem; text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.input-code::placeholder { text-transform: none; letter-spacing: normal; }
.field__error { color: var(--danger); font-size: .85rem; }
.field.has-error :where(input, select, textarea) { border-color: var(--danger); }
.field > label.check { font-weight: 400; font-size: .93rem; align-items: flex-start; }
.check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: .93rem; }
.check input { margin-top: 3px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
@media (max-width: 640px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check__text small { display: block; color: var(--muted); }
.input-group { display: flex; align-items: stretch; }
.input-group__addon { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.input-group__addon:first-child { border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group__addon:last-child { border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group input:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group input:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
input.input-amount { text-align: right; font-variant-numeric: tabular-nums; }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); }
.fieldset__title { font-weight: 700; font-size: 1.02rem; margin-bottom: var(--space-1); padding: 0; }
.fieldset__intro { color: var(--muted); font-size: .9rem; margin-bottom: var(--space-4); }

/* Filterbalk boven lijsten */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); }
.filters input[type="search"] { max-width: 280px; }
.filters select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: .9rem; font-weight: 500; }
.tab:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tab.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tab__count { color: var(--faint); margin-left: 4px; }

/* ---------- Tooltip (uitleg bij een begrip) ---------- */
.tip { position: relative; display: inline-flex; color: var(--faint); cursor: help; vertical-align: middle; }
.tip .icon { width: 15px; height: 15px; }
.tip:hover, .tip:focus { color: var(--primary); }
.tip:focus:not(:focus-visible) { outline: none; }
.tip__bubble {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 280px; background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 400;
  line-height: 1.45; padding: 8px 11px; border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 50; pointer-events: none; text-transform: none; letter-spacing: 0;
}
.tip__bubble { display: none; }
.tip:hover .tip__bubble, .tip:focus .tip__bubble { display: block; opacity: 1; visibility: visible; }
.tip--edge-right .tip__bubble { left: auto; right: -6px; transform: none; }
.tip--edge-left .tip__bubble { left: -6px; transform: none; }
/* Altijd gewoon afbreken (ook in een tabelkop met nowrap) en zwevend boven de pagina, zodat een tabel of kaart hem niet afknipt of breder maakt. */
.tip__bubble { white-space: normal; text-align: left; overflow-wrap: break-word; }
.tip--float .tip__bubble { position: fixed; left: var(--tip-x, 0); top: var(--tip-y, 0); bottom: auto; right: auto; transform: none; z-index: 300; }

/* ---------- Meldingen ---------- */
.flash { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4); border: 1px solid transparent; font-size: .93rem; }
.viewer-bar, .impersonate-bar { align-items: center; }
.viewer-bar .flash__body, .impersonate-bar .flash__body { flex: 1; }
.viewer-bar form, .impersonate-bar form { margin: 0; flex: none; }
.flash .icon { margin-top: 2px; }
.flash--success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.flash--error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.flash--info { background: var(--info-soft); color: var(--text); border-color: color-mix(in srgb, var(--info) 16%, var(--border)); }
.flash--warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--oker) 45%, transparent); }
.flash__body { flex: 1; }
.flash__body a { color: inherit; font-weight: 700; text-decoration: underline; }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; color: var(--muted); }

/* ---------- Menu (⋮) ---------- */
.menu { position: relative; display: inline-block; }
.menu__list {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); padding: var(--space-1); z-index: 40;
}
.menu__item {
  display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: 8px 10px; border: 0; background: none;
  font: inherit; font-size: .9rem; color: var(--text); text-align: left; border-radius: var(--radius-xs); cursor: pointer; white-space: nowrap;
}
.menu__item:hover { background: var(--surface-2); text-decoration: none; }
.menu__item .icon { color: var(--muted); width: 16px; height: 16px; }
.menu__item--danger, .menu__item--danger .icon { color: var(--danger); }
.menu__sep { height: 1px; background: var(--border); margin: var(--space-1) 0; }
.menu form { margin: 0; }
.menu__list--float { position: fixed; right: auto; z-index: 300; max-height: calc(100vh - 16px); overflow-y: auto; }

/* ---------- Definitielijst (details) ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Totalenblok ---------- */
.totals { margin-left: auto; width: 100%; max-width: 340px; font-size: .95rem; }
.totals__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 5px 0; font-variant-numeric: tabular-nums; }
.totals__row--grand { border-top: 1px solid var(--border-strong); margin-top: var(--space-2); padding-top: var(--space-3); font-weight: 700; font-size: 1.05rem; }

/* ---------- PDF Pro-promotie en tekenverzoeken ---------- */
.promo { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow); }
.promo__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.promo__body { min-width: 0; }
.promo__body h3 { font-size: 1rem; margin-bottom: var(--space-1); }
.promo__body p { color: var(--muted); font-size: .9rem; margin-bottom: var(--space-3); }
.sig-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }

/* ---------- Pager ---------- */
.pager { display: flex; gap: var(--space-3); align-items: center; justify-content: center; padding: var(--space-4); border-top: 1px solid var(--border); }
.pager__info { color: var(--muted); font-size: .88rem; }

/* ---------- Inlog-/registratiepagina's: volle breedte, zoals regge-it.com ---------- */
/* Links (of op mobiel: alles) het formulier op de zandkleurige achtergrond; rechts een vlak met het stroompatroon van de Regge. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.auth__main { display: flex; flex-direction: column; min-width: 0; padding: var(--space-6) clamp(16px, 5vw, 64px) var(--space-6); }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.auth__brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.auth__brand .brand-logo__img { height: 36px; width: auto; }
.auth__app { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: var(--space-2); padding-left: var(--space-3); border-left: 1px solid var(--border); }
.auth__app::before { content: ""; width: 4px; height: 14px; border-radius: 1.5px; background: var(--oker); }
.auth__top-link { font-size: .9rem; color: var(--muted); }
.auth__top-link a { font-weight: 700; }
.auth__content { flex: 1; display: flex; align-items: center; padding: var(--space-12) 0; }
.auth__box { width: 100%; max-width: 440px; margin: 0 auto; }
.auth__box--wide { max-width: 640px; }
.auth__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; color: var(--faint); font-size: .8rem; }
.auth__foot .built-by { margin: 0; }
/* Formulier zonder kaart: rustig en ruim, zoals de website. */
.auth__box > .card { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.auth__box > .card > .card__body { padding: 0; }
.auth .eyebrow { margin-bottom: var(--space-3); }
.auth h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--space-3); }
.auth .lead { color: var(--muted); font-size: 1.02rem; margin-bottom: var(--space-8); }
.auth form .field + .field { margin-top: var(--space-5); }
.auth input:not([type="checkbox"]):not([type="radio"]) { min-height: 48px; }
.auth .btn--block { min-height: 50px; font-size: 1rem; }
.auth__alt { margin-top: var(--space-6); color: var(--muted); font-size: .92rem; }
.auth .form-actions { border: 0; padding-top: 0; margin-top: var(--space-6); }
.auth .flash { margin-bottom: var(--space-6); }

/* Rechterkant: het Regge-vlak met een korte belofte. */
.auth__visual { display: none; position: relative; overflow: hidden; color: #ffffff;
  background: url("../img/stroompatroon-regge.svg") var(--regge); background-size: 192px 96px; }
.auth__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 58, 71, .2) 0%, rgba(14, 58, 71, .92) 62%); }
.auth__visual-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-8); padding: clamp(32px, 5vw, 72px); }
.auth__visual .eyebrow { color: var(--stroom-licht); }
.auth__claim { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: #ffffff; max-width: 14ch; margin: 0; }
.auth__claim span { color: var(--oker); }
.auth__usp { list-style: none; margin: 0; padding: var(--space-6) 0 0; display: grid; gap: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .16); max-width: 460px; }
.auth__usp li { position: relative; padding-left: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.auth__usp li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 14px; border-radius: 1.5px; background: var(--oker); }
.auth__usp strong { font-size: 1rem; }
.auth__usp span { color: #c8d8db; font-size: .9rem; line-height: 1.45; }
.auth__chip { position: absolute; z-index: 1; top: clamp(24px, 5vw, 56px); right: clamp(24px, 4vw, 56px); display: inline-flex; align-items: center; gap: var(--space-3);
  background: #ffffff; color: #0b1f26; border-radius: var(--radius-md); padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .86rem; }
.auth__chip strong { display: block; font-size: .92rem; }
.auth__chip small { color: #4a5e64; }
.auth__chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #3f6e33; box-shadow: 0 0 0 4px rgba(63, 110, 51, .2); flex: none; }
@media (min-width: 1000px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth__visual { display: block; position: sticky; top: 0; height: 100vh; align-self: start; }
  .auth--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 999px) {
  /* Op kleinere schermen een smalle band met het stroompatroon bovenaan. */
  .auth__main::before { content: ""; display: block; height: 22px; margin: calc(-1 * var(--space-6)) calc(-1 * clamp(16px, 5vw, 64px)) var(--space-6);
    background: url("../img/stroompatroon-regge.svg") var(--regge); background-size: 88px 44px; background-position: 0 -11px; }
}
@media (max-width: 560px) {
  .auth__content { padding: var(--space-8) 0; align-items: flex-start; }
  .auth__app { display: none; }
}
/* Registratiewizard */
.wizard-steps { list-style: none; margin: 0 0 var(--space-10); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); counter-reset: none; font-size: .9rem; color: var(--muted); }
.wizard-steps li { display: inline-flex; align-items: center; }
.wizard-steps a, .wizard-steps li > span:only-child { display: inline-flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; }
.wizard-steps li { gap: var(--space-2); }
.wizard-steps__n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 1.5px solid var(--border-strong); font-weight: 700; font-size: .8rem; flex: none; }
.wizard-steps__n .icon { width: 14px; height: 14px; }
.wizard-steps .is-current { color: var(--text); font-weight: 700; }
.wizard-steps .is-current .wizard-steps__n { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.wizard-steps .is-done .wizard-steps__n { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.wizard-steps .is-done a:hover { color: var(--text); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.wizard-actions .btn:last-child { margin-left: auto; min-width: 180px; justify-content: center; }
.auth .fieldset { margin-bottom: var(--space-8); }

/* Pakket kiezen (wizard en Instellingen → Pakket) */
.plan-list { display: grid; gap: var(--space-3); }
.plan-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.plan-item--base { grid-template-columns: minmax(0, 1fr) auto; cursor: default; background: var(--surface-2); }
.plan-item input { margin-top: 4px; width: 18px; height: 18px; }
.plan-item:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.plan-item__text { display: flex; flex-direction: column; gap: 2px; }
.plan-item__text small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.plan-item__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.plan-sum span { font-weight: 700; }
.plan-sum strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-sum small { color: var(--muted); }
.plan-total { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Controleren (laatste stap) */
.review { margin: 0 0 var(--space-6); display: grid; gap: 0; border-top: 1px solid var(--border); }
.review > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.review dt { color: var(--muted); font-size: .9rem; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review dd:last-child { font-size: .9rem; }

/* Betaalpagina voor het account */
.account-invoices { display: grid; gap: var(--space-3); margin-bottom: var(--space-2); }
.account-invoice { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.account-invoice small { display: block; color: var(--muted); font-size: .86rem; }
.account-invoice__amount { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) {
  .review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .review dt { grid-column: 1 / -1; }
  .account-invoice { grid-template-columns: minmax(0, 1fr) auto; }
  .account-invoice .btn { grid-column: 1 / -1; justify-content: center; }
  /* Stappen: op een smal scherm alleen de cijfers, en de naam van de huidige stap. */
  .wizard-steps { gap: var(--space-2) var(--space-3); margin-bottom: var(--space-8); }
  .wizard-steps li:not(.is-current) { font-size: 0; }
}

.code-input { letter-spacing: .35em; font-size: 1.3rem !important; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Onboarding/stappen ---------- */
.steps { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); color: var(--muted); font-size: .88rem; flex-wrap: wrap; }

/* ---------- Instellingen en Beheer: subnavigatie ---------- */
.settings { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
/* Menu in de zijbalk: de pagina krijgt de volle breedte; op de telefoon blijft het uitklapmenu. */
.settings:has(> .subnav--ctx), .settings:not(:has(> .subnav)) { display: block; }
.subnav--ctx { display: none; }
.subnav__desktop {
  position: sticky; top: var(--space-6); padding: var(--space-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.subnav__group + .subnav__group { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.subnav__title { padding: var(--space-2) var(--space-3) var(--space-1); color: var(--faint); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.subnav__link {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 38px; padding: 7px var(--space-3);
  border-radius: var(--radius-sm); color: var(--text); font-size: .92rem; font-weight: 500; line-height: 1.3;
}
.subnav__link .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.subnav__label { flex: 1; min-width: 0; }
.subnav__link:hover { background: var(--surface-2); text-decoration: none; }
.subnav__link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.subnav__link.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.subnav__link.is-active .icon { color: var(--primary); }
.subnav__link.is-active::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-2) - 1px); top: 50%; width: 4px; height: 18px; margin-top: -9px;
  border-radius: 0 2px 2px 0; background: var(--oker);
}
.subnav__badge {
  min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--danger-soft); color: var(--danger);
  font-size: .74rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}
.subnav__mobile { display: none; }
/* Een los (onzichtbaar) formulier bovenaan mag de eerste kaart niet omlaag duwen. */
.settings__body > form:not(.card):first-child + .card { margin-top: 0; }

/* ---------- Mobiel ---------- */
.backdrop { display: none; }
@media (max-width: 1100px) {
  .content { padding: var(--space-6); }
  .footer { padding: var(--space-6); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .2s ease, visibility 0s linear .2s; box-shadow: var(--shadow-pop);
    visibility: hidden; /* dicht menu: niet bereikbaar met Tab of VoiceOver */
    /* Op iPhone is 100vh hoger dan wat je ziet: de onderkant viel onder de balk van Safari.
       100dvh is precies het zichtbare deel; extra ruimte onderin zodat het laatste item ruim boven de balk staat. */
    height: auto; height: 100dvh; -webkit-overflow-scrolling: touch;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-8));
    overflow-y: auto; overscroll-behavior: contain;
  }
  /* Op de telefoon scrolt het hele menu (ook Instellingen en Help onderaan), niet alleen het middelste deel. */
  .sidebar .nav { flex: 0 0 auto; overflow: visible; }
  /* Menu open: de pagina erachter scrolt niet mee, alleen het menu. */
  html:has(.app.nav-open), html:has(.app.nav-open) body { overflow: hidden; }
  .app.nav-open .sidebar { transform: none; visibility: visible; transition: transform .2s ease, visibility 0s; }
  .app.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
  .topbar {
    display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3);
    background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30;
  }
  .topbar__title { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: var(--space-5) var(--space-4) var(--space-8); }
  .footer { padding: var(--space-5) var(--space-4); }
  .grid-2, .grid-3, .form-grid, .form-grid--3, .layout-side { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .settings { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .subnav__desktop { display: none; }
  .subnav--ctx { display: block; margin-bottom: var(--space-4); }
  .subnav__mobile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
  .subnav__mobile > summary {
    display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none;
  }
  .subnav__mobile > summary::-webkit-details-marker { display: none; }
  .subnav__mobile > summary > .icon { flex: none; width: 20px; height: 20px; color: var(--primary); }
  .subnav__now { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
  .subnav__now small { color: var(--faint); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .subnav__more { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: .88rem; font-weight: 600; }
  .subnav__more .icon { width: 16px; height: 16px; transition: transform .15s; transform-origin: 50% 50%; transform-box: fill-box; }
  .subnav__mobile[open] .subnav__more .icon { transform: rotate(180deg); }
  .subnav__mobile[open] > summary { border-bottom: 1px solid var(--border); }
  .subnav__panel { padding: var(--space-2); }
  .subnav__panel .subnav__link { min-height: 44px; }
  .subnav__panel .subnav__link.is-active::before { left: calc(-1 * var(--space-2)); }
  .card__body { padding: var(--space-4); }
  .card__head { padding: var(--space-3) var(--space-4); }
  .filters { padding: var(--space-3) var(--space-4); }
  .filters input[type="search"], .filters select { max-width: none; flex: 1 1 140px; }
  .table th:first-child, .table td:first-child { padding-left: var(--space-4); }
  .table th:last-child, .table td:last-child { padding-right: var(--space-4); }
  .table .hide-sm { display: none; }
  .table td .show-sm { display: inline; }
  h1 { font-size: 1.3rem; }
  .stat__value { font-size: 1.25rem; }
  .page-head__actions { width: 100%; }
  /* Cijfers op de telefoon twee naast elkaar: scheelt veel scrollen. */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .stats .stat { padding: var(--space-3) var(--space-4); }
  .stats .stat__sub { font-size: .8rem; }
  /* Lange knopteksten mogen op een smal scherm teruglopen in plaats van buiten beeld te vallen. */
  .btn { white-space: normal; text-align: left; }
}

/* ---------- Animatie ---------- */
.flash { animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Moet de laatste regel van dit bestand blijven. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Passkey op de inlogpagina */
.auth-passkey { margin-top: var(--space-4); }
.auth-passkey .field__error { margin-top: var(--space-2); }
.auth-passkey__phone { margin-top: var(--space-3); }
.auth-passkey__phone .field__help { margin-top: var(--space-2); text-align: center; }
.auth-divider { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Passkeys onder Account */
.passkey-list { list-style: none; margin: 0; padding: 0; }
.passkey-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.passkey-list li:first-child { padding-top: 0; }
.passkey-list .icon { color: var(--muted); }
.passkey-list__main { flex: 1; min-width: 0; }
.btn.is-busy { opacity: .7; cursor: progress; }

/* Automatisch opslaan: korte melding onderin */
.autosave-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 9px 16px; border-radius: 12px; font-size: .88rem; font-weight: 600;
  background: var(--text); color: var(--surface); box-shadow: var(--shadow-pop);
}
.autosave-toast--ok::before { content: "✓"; font-weight: 800; color: #9dbf89; }
.autosave-toast--busy { opacity: .85; }
.autosave-toast--error { background: var(--danger); color: #fff; }
@media print { .autosave-toast { display: none !important; } }
.admin-subhead { font-size: .95rem; margin: var(--space-6) 0 var(--space-3); }

/* ---------- Privacyverklaring en voorwaarden ---------- */
.legal-links { display: inline-flex; gap: var(--space-4); }
.legal-links a { color: inherit; }
.doc-page { background: var(--bg); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  max-width: 820px; margin: 0 auto; padding: var(--space-6) var(--space-4) 0; }
.doc-top__back { font-weight: 700; font-size: .9rem; }
.doc { max-width: 820px; margin: 0 auto; padding: var(--space-8) var(--space-4) var(--space-10); line-height: 1.65; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.02em; margin: var(--space-2) 0 var(--space-3); }
.doc .lead { font-size: 1.08rem; color: var(--muted); margin-bottom: var(--space-6); }
.doc section { padding-top: var(--space-6); scroll-margin-top: var(--space-4); }
.doc h2 { font-size: 1.2rem; margin: 0 0 var(--space-3); }
.doc__n { color: var(--oker); margin-right: 2px; }
.doc p, .doc ul { margin: 0 0 var(--space-3); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: var(--space-2); }
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.doc-toc__title { margin: 0 0 var(--space-2); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.doc-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: var(--space-8); font-size: .92rem; }
.doc-toc li { break-inside: avoid; margin: 0 0 var(--space-1); }
.doc-foot { max-width: 820px; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-8); border-top: 1px solid var(--border);
  display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; color: var(--faint); font-size: .8rem; }
.doc-foot .built-by { margin-left: auto; }
@media (max-width: 600px) { .doc-toc ol { columns: 1; } .doc { padding-top: var(--space-6); } }
@media print { .doc-top, .doc-toc, .doc-foot { display: none; } .doc { padding: 0; } }

/* ---------- Registreren: privé of zakelijk ---------- */
.kind-pick { display: grid; gap: var(--space-3); }
.kind-pick__opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: start;
  padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.kind-pick__opt:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.kind-pick__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-pick__opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.kind-pick__opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.kind-pick__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.kind-pick__icon .icon { width: 22px; height: 22px; }
.kind-pick__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kind-pick__text strong { font-size: 1.05rem; }
.kind-pick__text > span { color: var(--primary); font-weight: 600; font-size: .88rem; }
.kind-pick__text small { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 4px; }
.kind-pick__price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kind-pick__price small { font-weight: 500; font-size: .74rem; color: var(--muted); }
@media (max-width: 560px) {
  .kind-pick__opt { grid-template-columns: auto minmax(0, 1fr); }
  .kind-pick__price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; }
}

/* ---------- Pakket: zakelijk en privé ---------- */
.ws-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ws-parts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center;
  padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); }
.ws-parts li.is-on { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.ws-parts__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-parts__text small { color: var(--muted); font-size: .86rem; }
.ws-parts li > .inline-form, .ws-parts li > .status { justify-self: end; }
.ws-parts li:has(.inline-form) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.ws-parts__form { grid-column: 2 / -1; display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.ws-parts__form .field { margin: 0; flex: 1 1 220px; }
.ws-parts__price { grid-column: 2 / -1; color: var(--muted); font-size: .84rem; }
@media (max-width: 560px) {
  .ws-parts li, .ws-parts li:has(.inline-form) { grid-template-columns: auto minmax(0, 1fr); }
  .ws-parts li > .inline-form, .ws-parts li > .status { grid-column: 2; justify-self: start; }
}

/* =========================================================
   Huisstijl "Stroom" in Boekie: ronde knoppen en menu-items,
   kopjes in monospace met een golfje, zachtere kaarten. Opbouw blijft gelijk.
   ========================================================= */
:root { --rivier: #3fa9b8; --golfje: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M2 6c3-4 6-4 10 0s7 4 10 0' fill='none' stroke='%233FA9B8' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.eyebrow { font-family: var(--font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .1em; }
.eyebrow::before { width: 20px; height: 8px; border-radius: 0; background: var(--golfje) no-repeat center / contain; }
.nav__section { font-family: var(--font-mono); font-weight: 600; letter-spacing: .1em; }

.btn { border-radius: 999px; }
.btn--sm { padding-left: 14px; padding-right: 14px; }

.nav__link { border-radius: 999px; padding-left: 14px; }
.nav__link.is-active::before { display: none; }
.nav__link.is-active { background: color-mix(in srgb, var(--rivier) 16%, var(--surface)); color: var(--text); }
.nav__link.is-active .icon { color: var(--stroom); }
:root[data-theme="dark"] .nav__link.is-active .icon { color: var(--rivier); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav__link.is-active .icon { color: var(--rivier); } }

.card { border-radius: 20px; border-color: color-mix(in srgb, var(--border) 55%, transparent);
  box-shadow: 0 1px 2px rgba(11,31,38,.04), 0 8px 26px rgba(11,31,38,.05); }
.card__head { border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); }
.tab.is-active, .subnav__link.is-active { background: color-mix(in srgb, var(--rivier) 16%, var(--surface)); }

/* Pakket: overstappen naar het pakket Facturen */
.plan-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.plan-switch > div { flex: 1 1 260px; min-width: 0; }
.plan-switch p { margin: 4px 0 0; }

/* "Gebouwd door": het woordmerk in de licht- of donkervariant */
.built-by__logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .built-by__logo--light { display: none; }
  :root:not([data-theme="light"]) .built-by__logo--dark { display: inline-block; }
}
:root[data-theme="dark"] .built-by__logo--light { display: none; }
:root[data-theme="dark"] .built-by__logo--dark { display: inline-block; }

/* Beheer → App-gebruik: fouten in het logboek */
.app-log-bad, .cell-main.app-log-bad { color: var(--danger); }

/* Transport ZZP (transport.php) */
.tr-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tr-sub { font-size: .95rem; margin: 1.4rem 0 .6rem; }
.tr-stops { display: grid; gap: .5rem; margin-bottom: .5rem; }
.tr-stop { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3.5rem 2.5rem; gap: .5rem; align-items: center; }
.tr-country { text-transform: uppercase; text-align: center; }
.tr-calc { margin-top: 1rem; max-width: 26rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.tr-calc div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-calc__total { color: var(--text) !important; font-weight: 700; border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .5rem !important; }
.tr-rate + .tr-rate { border-top: 1px solid var(--border); margin-top: 1.2rem; padding-top: 1.2rem; }
.tr-rate__name { font-size: 1rem; margin: 0 0 .6rem; }
.tr-rate__row + .tr-rate__row { border-top: 1px dashed var(--border); margin-top: 1rem; padding-top: 1rem; }
.tr-rate__more { margin-top: .9rem; }
.tr-rate__more > summary { list-style: none; display: inline-flex; }
.tr-rate__more > summary::-webkit-details-marker { display: none; }
.tr-rate__more[open] > summary { margin-bottom: .8rem; }
/* Instelhulp Transport ZZP */
.tr-setup { max-width: 760px; }
.tr-setup__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.tr-setup__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.tr-setup__done { display: grid; gap: .6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.tr-setup__done li { display: flex; gap: .6rem; align-items: center; }
.tr-setup__done .icon { color: var(--success); flex: none; }
@media (max-width: 560px) {
  .tr-stop { grid-template-columns: 6.2rem minmax(0, 1fr) 3rem 2.4rem; gap: .35rem; }
}
.tr-ok { color: var(--success, #2f7d4f); font-weight: 600; }
.tr-bad { color: var(--danger); font-weight: 600; }
.tr-warn { color: var(--warning, #b7791f); font-weight: 600; }
.tr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: .5rem; }
.tr-truck-stats { margin-bottom: .5rem; }
.tr-margin { padding: .5rem 0; }
.tr-margin + .tr-margin { border-top: 1px solid var(--border); }
.tr-margin__row { display: flex; justify-content: space-between; gap: 1rem; }
.tr-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: .4rem 0 .3rem; }
.tr-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent, #2a47e8); }
.tr-bar i.is-low { background: var(--danger); }
.tr-period { margin-bottom: 1rem; }

/* Alleen op de telefoon (bijv. de soort onder de naam in Manage, als de kolom verborgen is). */
.table .show-sm { display: none; }

/* Manage → Hosting: verhuiscode bij een domein dat naar ons verhuist. */
.ho-transfer { margin-top: 6px; font-size: .85rem; }
.ho-transfer summary { cursor: pointer; color: var(--accent, var(--primary)); width: max-content; }
.ho-transfer__code { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.12)); user-select: all; word-break: break-all; }
.ho-transfer__form { display: flex; gap: 8px; margin-top: 8px; max-width: 320px; }
.ho-transfer__form input { flex: 1; min-width: 0; }

/* Manage → Klantaccounts: gekoppelde klanten en koppelen */
.acc-klant { display: inline-flex; align-items: center; gap: 2px; margin: 0 8px 6px 0; }
.acc-koppel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.acc-koppel select { max-width: 220px; }
/* Wachtwoorden van een klantaccount (manage.php?v=kluis) */
.kluis__rij { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.kluis__rij .field { margin: 0; }
.kluis__weg { display: flex; justify-content: flex-end; margin: 6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e5e7eb); }
.kluis__nieuw { margin-top: 8px; }
.kluis__pw { display: flex; gap: 6px; align-items: center; }
.kluis__pw input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .kluis__rij { grid-template-columns: minmax(0, 1fr); } }

/* Manage → Hosting: bestaand pakket of domein toevoegen */
.imp > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: var(--space-3, 12px); flex-wrap: wrap; }
.imp > summary::-webkit-details-marker { display: none; }
.imp > summary h2::after { content: " +"; color: var(--muted, #7a8580); font-weight: 400; }
.imp[open] > summary h2::after { content: " −"; }
.imp__body { display: grid; gap: var(--space-6, 24px); }
.imp__form h3 { margin: 0; font-size: 15px; }
