/* Autosoft Web · portaal en aanmeldpagina (ADR 0005). Tokens uit autosoft.css. */

.pt-body { margin: 0; background: var(--bg); }
.pt, .lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr); }

/* ---------- Linkerkant: merk van CPS ---------- */

.pt-hero {
  position: relative; overflow: hidden; color: #FFFFFF; padding: 44px 56px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 36px; justify-content: space-between;
  background:
    radial-gradient(700px 420px at 85% 15%, rgba(39, 145, 208, .35), transparent 60%),
    radial-gradient(520px 360px at 10% 90%, rgba(245, 165, 36, .16), transparent 60%),
    linear-gradient(160deg, #0C1B2E 0%, #10263F 55%, #0A1626 100%);
}
.pt-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.pt-hero > * { position: relative; z-index: 1; }
.pt-merk { display: flex; align-items: center; gap: 12px; }
.pt-merk-icoon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(39,145,208,.35); }
.pt-merk b { display: block; font-size: 17px; letter-spacing: -.01em; }
.pt-merk small { display: block; color: #9FB4CC; font-size: 12px; font-weight: 600; }
.pt-hero-tekst h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
.pt-hero-tekst h1 span { color: #8DCDF0; }
.pt-hero-tekst p { font-size: 17px; line-height: 1.55; color: #C9D6E5; max-width: 520px; margin: 0 0 22px; }
.pt-punten { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; color: #E3ECF6; }
.pt-punten li { display: flex; align-items: center; gap: 10px; }
.pt-punten span { width: 22px; height: 22px; border-radius: 50%; background: rgba(90, 208, 142, .18); color: #5AD08E; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }

.pt-preview {
  max-width: 440px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotate(-1.2deg); display: grid; gap: 10px;
}
.pt-preview-kop { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #C9D6E5; }
.pt-preview-kop .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.pt-preview-kop b { margin-left: 8px; color: #FFFFFF; }
.pt-preview-doel { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #1A6DA6, #0F4C7A); }
.pt-preview-doel small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #CFE6F6; font-weight: 700; }
.pt-preview-doel b { font-size: 15px; }
.pt-preview-rij { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13px; font-weight: 600; }
.pt-voet { font-size: 12px; color: #8FA3BC; }
.pt-voet a { color: #C9D6E5; }

/* ---------- Rechterkant: de kaart ---------- */

.pt-paneel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; box-sizing: border-box; }
.pt-kaart { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-sizing: border-box; box-shadow: 0 24px 60px rgba(15, 27, 45, .08); }
.pt-kaart h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 6px; }
.pt-intro { margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
.pt-stappen { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pt-stappen li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-stappen li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--border); color: var(--ink); flex: none; }
.pt-stappen li.actief { color: var(--brand-strong); border-color: var(--brand-soft); background: var(--brand-soft); }
.pt-stappen li.actief span { background: var(--brand-strong); color: #FFFFFF; }
.pt-stappen li.klaar span { background: var(--ok); color: #FFFFFF; }

.pt-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.pt-kaart input[type=text], .pt-kaart input:not([type]), .pt-kaart input[type=email], .pt-kaart input[type=password] {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font: 500 16px var(--font); outline: none; transition: border-color .12s, box-shadow .12s;
}
.pt-kaart input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.pt-knop { width: 100%; height: 50px; margin-top: 18px; font-size: 15px; position: relative; }
.pt-knop:disabled { opacity: .5; cursor: not-allowed; }
.pt-melding { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.pt-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }

.pt-demo { margin-top: 20px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-demo b { color: var(--ink); }
.pt-demo button { border: 1px solid var(--border); background: var(--surface2); border-radius: 8px; padding: 3px 8px; font: 700 12px var(--mono); color: var(--brand-strong); cursor: pointer; }

/* ---------- Aanmeldpagina in de huisstijl van de firma ---------- */

.lg-merk {
  position: relative; overflow: hidden; color: #FFFFFF; padding: 44px 56px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(155deg, var(--tenant-accent) 0%, color-mix(in srgb, var(--tenant-accent) 45%, #0C1B2E) 100%);
}
.lg-merk::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 20px 20px; opacity: .45; pointer-events: none; }
.lg-merk > * { position: relative; z-index: 1; }
.lg-merk-inhoud { margin: auto 0; }
/* Terug naar het portaal: wit en doorschijnend op het merkvlak (nooit de klantkleur als knopkleur). */
.lg-portaal {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px 8px 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(12,27,46,.55); color: #FFFFFF;
  font-size: 14px; font-weight: 700; text-decoration: none; backdrop-filter: blur(4px);
}
/* Wit in elke toestand: de algemene linkkleur (.as-body a, a:hover) is blauw en onleesbaar op het merkvlak. */
.as-body .lg-portaal, .as-body .lg-portaal:hover, .as-body .lg-portaal:visited, .as-body .lg-portaal:focus-visible { color: #FFFFFF; }
.lg-portaal:hover { background: rgba(12,27,46,.72); border-color: rgba(255,255,255,.85); }
.lg-portaal:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.lg-logo { width: 104px; height: 104px; border-radius: 26px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 40px rgba(0,0,0,.25); margin-bottom: 26px; }
.lg-logo img { width: 80px; height: 80px; object-fit: contain; }
.lg-logo span { font-size: 44px; font-weight: 800; color: var(--tenant-accent); }
.lg-merk h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; margin: 0; font-weight: 800; line-height: 1.05; }
.lg-plaats { font-size: 17px; opacity: .85; margin: 6px 0 0; font-weight: 600; }
.lg-welkom { font-size: 18px; line-height: 1.5; max-width: 460px; margin: 26px 0 0; padding-left: 16px; border-left: 3px solid rgba(255,255,255,.55); }
.lg-powered { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; opacity: .85; }
.as-powered-mark { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }

.lg-terug { display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.lg-wie-blok .pt-label { margin-top: 0; }
.lg-wie { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.lg-wie button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 8px 4px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; font: 600 12px var(--font); color: var(--ink); }
.lg-wie button:hover, .lg-wie button[aria-pressed="true"] { background: var(--surface2); border-color: var(--border); }
.lg-wie .as-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tenant-accent); }
.lg-wie .naam { max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lg-ww { position: relative; }
.lg-ww input { padding-right: 70px !important; }
.lg-toon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: var(--surface2); border-radius: 8px; padding: 6px 10px; font: 600 12px var(--font); color: var(--muted); cursor: pointer; }
.lg-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.lg-check input { width: 18px; height: 18px; accent-color: var(--brand-strong); }
.lg-hulp { font-size: 13px; text-align: center; margin: 14px 0 0; }
.lg-bezig { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; animation: as-draai .9s linear infinite; }
.pt-knop.bezig .lg-bezig { display: inline-block; }
.pt-demo code { font: 700 12px var(--mono); }

/* ---------- Beheerportaal van CPS (/cps): licenties van de klantfirma's ---------- */

.cps-aanmelden { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.cps-merk small { color: var(--muted); }
.cps-titel { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 6px; }
.cps-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; background: var(--side); color: var(--side-ink); }
.cps-kop .cps-merk small { color: var(--side-muted); }
.as-body a.cps-kop-merk, .as-body a.cps-kop-merk:hover { color: var(--side-ink); text-decoration: none; border-radius: var(--r-tile); }
.cps-kop-wie { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.cps-kop-wie form { margin: 0; }
.cps-inhoud { margin: 0 auto; }
.cps-card-titel { padding: 16px 18px 12px; }
.cps-leeg { margin: 0; padding: 0 18px 16px; font-size: 14px; }
.cps-uitleg { margin: 6px 0 0; font-size: 14px; line-height: 1.5; max-width: 760px; }
.cps-db-uitleg { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.cps-db-uitleg p { margin: 0 0 4px; }
.cps-zonder-toegang { margin: 8px 0; }
/* ADR 0033: CPS > Instellingen */
.cps-inline-form { display: inline; margin: 0; }
.cps-inst-vervang { margin-top: 8px; }
.cps-inst-vervang > summary { cursor: pointer; }
.cps-zonder-toegang details { margin-top: 6px; flex-basis: 100%; }
.cps-toegang-lijst { list-style: none; margin: 6px 0 0; padding: 0; }
.cps-toegang-lijst li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 0; }
.cps-zonder-toegang summary { cursor: pointer; }
.cps-script { margin: 6px 0; padding: 8px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; white-space: pre; overflow-x: auto; font-size: 12px; }
/* Plan 07: een bestaande Autosoft-database koppelen (Nieuw) */
.cps-bron { border: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.cps-bron-keuze { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cps-bron-keuze input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-strong); }
.cps-autosoft { display: grid; gap: 12px; margin-top: 12px; }
/* Plan 07: tabblad Autosoft-database van een firma */
.cps-feiten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; font-size: 14px; }
.cps-feiten dt { color: var(--muted); }
.cps-feiten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cps-geweigerd { margin: 6px 0 0; padding-left: 18px; }
section > .as-callout, section > .cps-formulier { margin-top: 12px; }
@media (max-width: 600px) { .cps-feiten { grid-template-columns: 1fr; } .cps-feiten dt { margin-top: 6px; } }
.cps-modules { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cps-module { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 14px; }
.cps-module input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand-strong); cursor: pointer; }
.cps-module > span > span { display: block; font-size: 13px; margin-top: 2px; }
.cps-module:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.cps-module:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cps-opmerking { margin-top: 18px; }
.cps-logboek td.tijd { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Accounts en firma's (ADR 0022): meldingen, firmakiezer, welkom ---------- */

.pt-info { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; line-height: 1.45; }
.pt-info-zacht { margin-top: 18px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); font-size: 13px; }
.pt-info-zacht b { color: var(--ink); }
.lg-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.lg-links a { text-decoration: none; }
.pt-knop-tweede { background: var(--surface); }
.pt-ok + .pt-demo { margin-top: 12px; }

.pt-dicht { display: grid; justify-items: start; gap: 6px; margin-bottom: 8px; }
.pt-dicht h2 { margin: 6px 0 0; }
.pt-dicht p { margin: 0; font-size: 14px; line-height: 1.5; }
.pt-dicht-icoon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--warn-soft); color: var(--warn); }
.pt-dicht-slot .pt-dicht-icoon { background: var(--bad-soft); color: var(--bad); }
.pt-dicht .pt-knop { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.pt-keuzes { display: grid; gap: 10px; margin-top: 4px; }
.pt-keuzes.groot { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pt-keuze {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px;
  transition: transform .14s ease, border-color .14s, box-shadow .14s;
}
.pt-keuze::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--firma, var(--brand)); }
.as-body a.pt-keuze, .as-body a.pt-keuze:hover { color: var(--ink); text-decoration: none; }
a.pt-keuze:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--firma) 55%, var(--border)); box-shadow: 0 12px 28px rgba(15, 27, 45, .10); }
a.pt-keuze:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pt-keuzes.groot .pt-keuze { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px 18px; min-height: 150px; }
.pt-keuzes.groot .pt-keuze::before { left: 0; right: 0; bottom: auto; width: auto; height: 5px; }
.pt-logo { width: 44px; height: 44px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.pt-logo img { width: 36px; height: 36px; object-fit: contain; }
.pt-logo span { font-size: 20px; font-weight: 800; }
.pt-keuzes.groot .pt-logo { width: 56px; height: 56px; border-radius: 16px; }
.pt-keuzes.groot .pt-logo img { width: 46px; height: 46px; }
.pt-keuze-tekst { display: grid; gap: 2px; min-width: 0; }
.pt-keuze-tekst b { font-size: 15px; letter-spacing: -.01em; }
.pt-keuzes.groot .pt-keuze-tekst b { font-size: 17px; }
.pt-keuze-tekst small { color: var(--muted); font-size: 13px; }
.pt-keuze-laatst { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; }
.pt-keuze-laatst::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-strong); }
.pt-keuze-toets { position: absolute; top: 14px; right: 14px; }
.pt-keuze.laatst { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.pt-keuze.dicht { opacity: .7; background: var(--surface2); }
.pt-keuze.dicht .pt-keuze-tekst small { color: var(--bad); font-weight: 600; }

.pt-kies-body { background: radial-gradient(900px 500px at 85% -10%, rgba(39, 145, 208, .14), transparent 60%), var(--bg); }
.pt-kies { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pt-kies-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; }
.pt-merk-donker { color: var(--ink); }
.pt-merk-donker small { color: var(--muted); }
.pt-kies-kop form { margin: 0; }
.pt-afmelden { min-height: 46px; padding: 10px 20px 10px 16px; font-size: 15px; font-weight: 700; border-width: 2px; border-color: var(--muted); border-radius: 12px; }
.pt-kies-inhoud { width: min(980px, 100%); margin: 0 auto; padding: 4vh 24px 48px; box-sizing: border-box; }
.pt-kies-inhoud h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; font-weight: 800; }
.pt-kies-inhoud > p { margin: 0 0 22px; font-size: 15px; }
.pt-kies-groep { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.pt-kies-tip { margin-top: 26px; font-size: 13px; }

.wk-login { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--border); margin: 6px 0 4px; }
.wk-login .pt-label { margin: 0; font-size: 12px; color: var(--muted); }
.wk-login b { font: 700 17px var(--mono); word-break: break-all; }
.wk-login small { font-size: 12px; }
.wk-meter { display: flex; gap: 4px; margin-top: 8px; }
.wk-meter i { flex: 1; height: 5px; border-radius: 999px; background: var(--border); transition: background .15s; }
.wk-meter i.aan.s1, .wk-meter i.aan.s0 { background: var(--bad); }
.wk-meter i.aan.s2 { background: var(--accent); }
.wk-meter i.aan.s3, .wk-meter i.aan.s4 { background: var(--ok); }
.wk-meter-tekst { display: block; font-size: 12px; margin-top: 4px; }

/* ---------- Beheerportaal van CPS: klantbeheer (ADR 0022) ---------- */

.cps-body { background: radial-gradient(900px 420px at 100% -10%, rgba(39, 145, 208, .10), transparent 60%), var(--bg); }
.cps-kop { position: sticky; top: 0; z-index: 30; }
.cps-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 18px; }
.cps-nav a { color: var(--side-muted); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.as-body .cps-nav a { color: var(--side-muted); }
.as-body .cps-nav a:hover { color: #FFFFFF; background: var(--side-hover); text-decoration: none; }
.as-body .cps-nav a[aria-current="page"] { color: #FFFFFF; background: var(--side-active); }
.cps-inhoud { max-width: 1320px; width: 100%; box-sizing: border-box; }
.cps-smal { max-width: 900px; }
.cps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cps-titelrij { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cps-titelrij .as-pill { font-size: 13px; }
.cps-acties { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.cps-acties form { margin: 0; }
.cps-klein { font-size: 13px; }

.cps-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cps-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; display: grid; gap: 4px; }
.cps-kpi small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cps-kpi b { font-size: 30px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cps-kpi > span { font-size: 13px; color: var(--muted); }
.cps-kpi.let { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.cps-kpi.let small, .cps-kpi.let > span { color: var(--warn); }
.cps-kpi.dicht { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.cps-kpi.dicht small, .cps-kpi.dicht > span { color: var(--bad); }
.cps-plus { color: var(--ok); font-weight: 800; }
.cps-min { color: var(--bad); font-weight: 800; }

.cps-twee { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.cps-zijkant { display: grid; gap: 18px; }
.cps-card-kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.cps-card-kop-plat { padding: 0 0 12px; }
.cps-meer { font-size: 13px; font-weight: 700; text-decoration: none; }
.cps-zoek { max-width: 260px; }

.cps-rij { display: grid; grid-template-columns: minmax(0, 2.2fr) 84px 124px 84px minmax(0, 1.5fr); align-items: center; gap: 12px; padding: 12px 18px; }
.cps-rij-kop { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-top: 8px; padding-bottom: 8px; }
.cps-klant { border-bottom: 1px solid var(--border); }
.cps-klant:last-of-type { border-bottom: none; }
.cps-klant > summary { list-style: none; cursor: pointer; }
.cps-klant > summary::-webkit-details-marker { display: none; }
.cps-klant > summary:hover { background: var(--surface2); }
.cps-pijl { color: var(--muted); transition: transform .15s; flex: none; }
.cps-klant[open] .cps-pijl { transform: rotate(90deg); }
.cps-wie { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cps-wie > span:last-child { display: grid; min-width: 0; }
.cps-wie b, .cps-klantnaam { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-body a.cps-klantnaam { color: var(--ink); text-decoration: none; }
.as-body a.cps-klantnaam:hover { color: var(--brand-strong); text-decoration: underline; }
.cps-wie small { font-size: 12px; color: var(--muted); }
.cps-wie .pt-logo { width: 34px; height: 34px; border-radius: 10px; }
.cps-wie .pt-logo img { width: 28px; height: 28px; }
.cps-wie-groot .pt-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: inset 0 -4px 0 var(--firma); }
.cps-wie-groot .pt-logo img { width: 52px; height: 52px; }
.cps-groot { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cps-rij .num, .cps-tellingtabel .num { text-align: right; }
.cps-delta { font-size: 14px; }
.cps-pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cps-pills .as-pill, .cps-rij .as-pill { white-space: normal; text-align: left; line-height: 1.3; }
.cps-firmarij { padding-left: 46px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--surface2) 60%, var(--surface)); border-top: 1px dashed var(--border); position: relative; }
.cps-firmarij::before { content: ""; position: absolute; left: 30px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--firma); }
.as-body a.cps-firmarij, .as-body a.cps-firmarij:hover { color: var(--ink); text-decoration: none; }
a.cps-firmarij:hover { background: var(--brand-soft); }
.cps-firmarij .cps-wie b { font-size: 14px; font-weight: 700; }
.cps-spark { display: block; }

.cps-signalen { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; gap: 6px; }
.cps-signalen a { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.as-body .cps-signalen a { color: var(--ink); }
.cps-signalen a:hover { background: var(--warn-soft); }
.cps-signalen b { display: block; font-size: 14px; }
.cps-signalen small { display: block; font-size: 12px; color: var(--muted); }
.cps-signaal-uitleg { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cps-bijwerken-uitleg { margin: 0; padding: 0 18px 8px; font-size: 13px; }
.cps-bijwerken-acties { padding: 0 18px 10px; }
.cps-controle-uitkomst { display: block; margin-top: 4px; }
.cps-controle-uitkomst:empty { display: none; }
.cps-db-details { margin-top: 12px; }
.cps-db-details > summary { cursor: pointer; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cps-signaal-icoon { width: 26px; height: 26px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.cps-log-kort { list-style: none; margin: 0; padding: 0 18px 14px; display: grid; gap: 10px; font-size: 13px; }
.cps-log-kort li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.cps-log-kort small { display: block; color: var(--muted); font-size: 12px; }
.cps-log-punt { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.cps-log-punt.aan { background: var(--ok); }
.cps-log-punt.af { background: var(--bad); }

.cps-bevestig { position: relative; }
.cps-bevestig > summary { list-style: none; }
.cps-bevestig > summary::-webkit-details-marker { display: none; }
.cps-bevestig-paneel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(360px, calc(100vw - 32px)); display: grid; gap: 8px; box-shadow: var(--shadow-float); }
.cps-bevestig-paneel p { margin: 0; font-size: 13px; line-height: 1.5; }

.cps-firmakaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cps-firmakaart { position: relative; display: grid; gap: 12px; padding: 16px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .14s, box-shadow .14s; }
.cps-firmakaart::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--reeks, var(--brand)); }
.as-body a.cps-firmakaart, .as-body a.cps-firmakaart:hover { color: var(--ink); text-decoration: none; }
a.cps-firmakaart:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 27, 45, .10); }
.cps-firmakaart-cijfer { position: absolute; right: 16px; top: 16px; text-align: right; }
.cps-firmakaart-cijfer b { display: block; font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.cps-firmakaart-cijfer small { font-size: 12px; color: var(--muted); }
.cps-firmakaart-voet { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.cps-firmakaart-nieuw { border: 2px dashed var(--border); border-radius: var(--r-card); place-content: center; justify-items: center; text-align: center; min-height: 150px; background: transparent; }
.cps-firmakaart-nieuw::before { display: none; }
a.cps-firmakaart-nieuw:hover { border-color: var(--brand); background: var(--brand-soft); }
.cps-plus-icoon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }

.cps-signalenblok { border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }
.cps-signaal { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 380px); gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--warn-soft) 45%, var(--surface)); }
.cps-signaal p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cps-afvinken { display: flex; gap: 8px; margin: 0; }
.cps-afvinken .as-input { flex: 1 1 auto; min-width: 0; }

.cps-matrix th.c, .cps-matrix td.c { text-align: center; }
.cps-matrix-firma { display: inline-block; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; border-bottom: 3px solid var(--firma); padding-bottom: 2px; }
.cps-matrix-wie { display: inline-grid; margin-right: 6px; vertical-align: middle; }
.cps-matrix-wie small { font-size: 12px; color: var(--muted); }
.cps-matrix tfoot th, .cps-matrix tfoot td { border-top: 2px solid var(--border); background: var(--surface2); }
.cps-bol { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--reeks, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--reeks, var(--brand)) 18%, transparent); }
.cps-bol.uit { background: transparent; border: 3px solid var(--reeks, var(--brand)); box-sizing: border-box; }
.cps-bol.leeg { width: 12px; height: 12px; background: transparent; border: 2px dashed var(--border); box-shadow: none; }
.cps-gegevens { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; font-size: 14px; }
.cps-gegevens dt { color: var(--muted); font-weight: 600; }
.cps-gegevens dd { margin: 0; font-weight: 600; word-break: break-word; }
.cps-wijzig > summary { list-style: none; display: inline-flex; }
.cps-wijzig > summary::-webkit-details-marker { display: none; }
.cps-formulier { display: grid; gap: 6px; margin-top: 10px; }
.cps-formulier .as-btn { justify-self: start; margin-top: 6px; }

.cps-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cps-legende span { display: inline-flex; align-items: center; gap: 6px; }
.cps-legende i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.cps-legende i.weg { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.cps-legende i.peil { width: 14px; border-top: 2px dashed var(--warn); height: 0; }
.cps-trap { width: 100%; height: auto; display: block; }
.cps-trap .raster { stroke: var(--border); stroke-width: 1; }
.cps-trap .peil { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.cps-trap .as { font: 600 11px var(--font); fill: var(--muted); }
.cps-trap .weg { fill: var(--bad); stroke: var(--surface); stroke-width: 2; }

.cps-glog { list-style: none; margin: 0; padding: 0 0 6px; }
.cps-glog li { display: grid; grid-template-columns: 92px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 14px; }
.cps-glog li.signaal { background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.cps-glog time { font: 600 12px var(--mono); color: var(--muted); display: grid; }
.cps-glog time small { font-size: 11px; }
.cps-glog-actie { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--ok-soft); color: var(--ok); }
.cps-glog-actie.ingetrokken { background: var(--bad-soft); color: var(--bad); }
.cps-glog-actie.rolgewijzigd { background: var(--surface2); color: var(--muted); }
.cps-glog-wat small { display: block; font-size: 12px; color: var(--muted); }

.cps-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.cps-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.as-body .cps-tabs a { color: var(--muted); }
.as-body .cps-tabs a[aria-current="page"] { color: var(--brand-strong); border-bottom-color: var(--brand-strong); }
.cps-telling { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 15px; margin-left: 6px; }
tr.cps-weg td { color: var(--muted); }
.cps-zoekbalk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cps-zoekbalk .as-input { max-width: 420px; flex: 1 1 260px; }
.cps-zoekbalk .as-label { margin: 0; }
/* Herstellink voor CPS (de mail is gesimuleerd): volledig selecteerbaar om door te geven. */
.cps-herstellink { display: block; width: 100%; margin-top: 8px; font-size: 13px; }
/* Instellingen > Wachtwoord. */
.cps-wachtwoord { display: grid; gap: 12px; max-width: 420px; }
.cps-account { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.cps-account:first-child { border-top: none; }
.cps-accountgroep + .cps-accountgroep { margin-top: 16px; }
.cps-groepkop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.cps-groepaantal { font-size: 13px; font-weight: 600; }
.cps-leeg-los { padding-top: 16px; }
.cps-account-wie { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cps-account-wie b { margin-right: 6px; }
.cps-account-wie small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cps-account-firmas { display: flex; flex-wrap: wrap; gap: 6px; }
.cps-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.as-body a.cps-chip { color: var(--brand-strong); }
.cps-chip.weg { background: var(--surface2); color: var(--muted); text-decoration: line-through; }
.cps-account-acties { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cps-account-acties form { margin: 0; }
.cps-subtotaal th, .cps-subtotaal td { background: var(--surface2); }

.cps-nieuw { display: grid; gap: 16px; }
/* Bezig met koppelen en bijwerken: de velden zichtbaar vergrendeld (inert), de knop met "bezig" blijft duidelijk. */
.cps-nieuw[aria-busy="true"] { cursor: progress; }
.cps-nieuw[aria-busy="true"] > section { opacity: .55; transition: opacity .15s; }
.cps-stapnr { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-strong); color: var(--on-brand); font-size: 13px; margin-right: 10px; vertical-align: 2px; }
.cps-velden { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.cps-velden .breed { grid-column: 1 / -1; }
/* ADR 0036: Instellingen > Dataopruiming, één termijn per rij. */
.cps-opruim-veld { margin-top: 16px; }
.cps-opruim-veld p { margin: 4px 0 0; }
.cps-opruim-dagen { display: flex; align-items: center; gap: 8px; }
.cps-opruim-dagen .as-input { width: 120px; }
.cps-code { display: flex; align-items: center; gap: 8px; }
.cps-code .as-input { flex: 1 1 auto; }
.cps-modules-klein { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 10px; }
.cps-maak { width: auto; margin-top: 0; padding: 0 22px; }
.cps-klaar { display: grid; justify-items: start; gap: 10px; }
.cps-klaar h2 { margin: 4px 0 0; font-size: 22px; }
.cps-klaar p { margin: 0; }

@media (max-width: 1100px) {
  .cps-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cps-twee { grid-template-columns: minmax(0, 1fr); }
  .cps-signaal { grid-template-columns: auto minmax(0, 1fr); }
  .cps-afvinken { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cps-nav { order: 3; width: 100%; margin: 6px 0 0; overflow-x: auto; }
  .cps-kop { flex-wrap: wrap; }
  .cps-rij { grid-template-columns: minmax(0, 1fr) auto; }
  .cps-rij > :nth-child(3), .cps-rij > :nth-child(4), .cps-rij-kop { display: none; }
  .cps-rij > :nth-child(5) { grid-column: 1 / -1; }
  .cps-account { grid-template-columns: minmax(0, 1fr); }
  .cps-account-acties { justify-content: flex-start; }
  .cps-velden { grid-template-columns: 1fr; }
  .cps-glog li { grid-template-columns: 72px auto minmax(0, 1fr); }
  .cps-glog li .as-pill { grid-column: 3; justify-self: start; }
}

/* ---------- Tablet en telefoon ---------- */

@media (max-width: 960px) {
  .pt, .lg { grid-template-columns: 1fr; }
  .pt-hero, .lg-merk { padding: 24px 20px; gap: 14px; }
  .pt-preview, .pt-punten, .pt-voet, .pt-hero-tekst p { display: none; }
  .pt-hero-tekst h1 { font-size: 28px; margin: 0; }
  .lg-merk-inhoud { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; margin: 0; }
  .lg-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0; grid-row: span 2; }
  .lg-logo img { width: 48px; height: 48px; }
  .lg-merk h1 { font-size: 26px; }
  .lg-plaats { margin: 0; font-size: 14px; }
  .lg-welkom, .lg-powered { display: none; }
  .pt-paneel { padding: 20px 16px 32px; align-items: flex-start; }
  .pt-kaart { padding: 22px; border-radius: 18px; }
  .cps-kop { padding: 10px 16px; }
}
