/* Klantportaal: inloggen, dashboard en het email campaign request-formulier. Bouwt voort op main.css. */
.cr-wrap { max-width: calc(820px + var(--gutter) * 2); }
.gate__help { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.gate__help a { color: var(--blue); }
.gate__email { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.gate__tips { display: grid; gap: 10px; margin: 0 auto 4px; max-width: 380px; padding: 0; list-style: none; text-align: left; font-size: .92rem; color: var(--text-2); }
.gate__tips li { display: flex; align-items: flex-start; gap: 10px; }
.gate__tips .icon { flex: none; margin-top: 3px; color: var(--blue); }
.gate > p > .btn { justify-content: center; }
.crf-client { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 28px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); font-size: .9rem; color: var(--text-2); }
.crf-client span { display: inline-flex; align-items: center; gap: 8px; }
.crf-client .icon { color: var(--blue); }
.crf-client .crf-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.crf-client .crf-back:hover { color: var(--text); }
.crf-client .crf-back .icon { color: var(--blue); }

/* ---------- Dashboard ---------- */
.portal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.portal-bar p { display: flex; align-items: center; gap: 14px; }
.portal-bar strong { display: block; font-weight: 600; }
.portal-bar small { display: block; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.portal-bar__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--bg); font-weight: 700; }
.portal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface) border-box; color: var(--text); transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
a.portal-card:hover { border-color: rgba(69, 206, 252, .55); transform: translateY(-4px); box-shadow: var(--shadow); }
a.portal-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.portal-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 15px; background: var(--grad); color: var(--bg); }
.portal-card__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.portal-card__text { color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.portal-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--blue); font-weight: 500; }
a.portal-card:hover .portal-card__go .icon { transform: translateX(4px); }
.portal-card__go .icon { transition: transform .3s var(--ease); }
.portal-card__links { display: grid; gap: 6px; margin-top: auto; padding-top: 18px; }
.portal-card__links a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(253, 254, 255, .03); color: var(--text); font-size: .94rem; font-weight: 500; transition: border-color .25s, background-color .25s; }
.portal-card__links a span { flex: 1; }
.portal-card__links a .icon:first-child { color: var(--blue); }
.portal-card__links a .icon:last-child { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.portal-card__links a:hover { border-color: rgba(69, 206, 252, .55); background: rgba(69, 206, 252, .06); }
.portal-card__links a:hover .icon:last-child { transform: translateX(3px); color: var(--blue); }
.portal-card.is-soon { background: rgba(28, 31, 34, .45); cursor: default; }
.portal-card.is-soon .portal-card__icon { background: var(--surface-2); color: var(--muted); }
.portal-card.is-soon .portal-card__title, .portal-card.is-soon .portal-card__text { color: var(--muted); }
.portal-card__badge { position: absolute; top: 22px; right: 22px; padding: 6px 11px; border-radius: var(--pill); border: 1px solid rgba(255, 156, 26, .35); background: rgba(255, 156, 26, .1); color: #ffc477; font: 500 11.5px/1 var(--font-ui); letter-spacing: .04em; }
.portal-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--teal-band) border-box; border: 1px solid var(--line); }
.portal-help p { color: var(--text-2); margin-top: 6px; }
@media (max-width: 900px) { .portal-cards { grid-template-columns: minmax(0, 1fr); } .portal-card { padding: 22px; } }
@media (max-width: 560px) { .portal-help .btn-row { width: 100%; } .portal-help .btn { width: 100%; justify-content: center; } .portal-bar form, .portal-bar .btn { width: 100%; } .portal-bar .btn { justify-content: center; } }

/* ---------- Stappen ---------- */
.crf { position: relative; }
.crf-alert { margin-bottom: 20px; }
.js .crf-step { display: none; }
.js .crf-step.is-current { display: block; animation: crf-in .5s var(--ease) both; }
html:not(.js) .crf-step { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
html:not(.js) [data-next], html:not(.js) [data-prev], html:not(.js) .crf-review, html:not(.js) .crf-quick { display: none; }
@keyframes crf-in { from { opacity: 0; transform: translateY(12px); } }

.crf-title { margin-bottom: 26px; font-size: clamp(1.5rem, 2.6vw, 2rem); outline: none; }
.crf-title span { display: block; margin-bottom: 8px; font: 500 12.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.crf-intro h1 { outline: none; margin-bottom: 18px; }
.crf-intro > p { color: var(--text-2); margin-bottom: 14px; max-width: 64ch; }
.crf-intro .lead { color: var(--text); margin-bottom: 8px; }
.crf-ready { margin: 26px 0 8px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(19, 20, 21, .55); }
.crf-ready ul { display: grid; gap: 10px; margin-top: 12px; }
.crf-ready li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.crf-ready .icon { flex: none; margin-top: 4px; color: var(--ok); }

/* Voortgang */
.crf-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 34px; counter-reset: s; }
.crf-progress button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 12px 0 0; border-top: 3px solid var(--line-2); background: none; color: var(--muted); font: 500 13px/1.2 var(--font-ui); text-align: left; cursor: default; transition: color .3s, border-color .3s; }
.crf-progress__n { display: none; }
.crf-progress li.is-done button { border-color: var(--blue); color: var(--text-2); cursor: pointer; }
.crf-progress li.is-done button:hover { color: var(--text); }
.crf-progress li.is-current button { border-image: var(--grad) 1; color: var(--text); }

/* Velden */
.cr .field { margin-bottom: 22px; }
.cr .field input, .cr .field textarea, .cr .field select { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 16px/1.5 var(--font); transition: border-color .25s, box-shadow .25s; }
.cr .field input:focus, .cr .field textarea:focus, .cr .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(69, 206, 252, .15); }
.cr .field [aria-invalid="true"] { border-color: #ff6b6b; }
.cr .field input::placeholder { color: #6b7076; }
.cr input[type="date"] { color-scheme: dark; min-height: 54px; }
.cr legend, .crf-label { display: block; margin-bottom: 10px; font: 500 14px/1.3 var(--font-ui); color: var(--text); padding: 0; }
.cr abbr { text-decoration: none; color: var(--orange); }
.crf-label small { color: var(--muted); font-weight: 400; }
.crf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.crf-help { margin-top: 8px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.crf-help--row { display: flex; justify-content: space-between; gap: 12px; }
.crf-count { flex: none; font-variant-numeric: tabular-nums; }
.crf-count.is-over { color: var(--orange); }
.crf-error { margin-top: 8px; font-size: .9rem; color: #ff9b9b; }
.crf-error::before { content: "! "; font-weight: 700; }
.crf-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 156, 26, .1); border: 1px solid rgba(255, 156, 26, .3); color: #ffd29a; font-size: .9rem; }
.crf-warn .icon { flex: none; margin-top: 3px; }
.crf-welcome { margin: -10px 0 22px; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(69, 206, 252, .08); border: 1px solid rgba(69, 206, 252, .25); color: var(--text-2); font-size: .92rem; }
.crf-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.crf-note { display: flex; align-items: center; gap: 10px; margin: -6px 0 22px; color: var(--text-2); }
.crf-note .icon { color: var(--ok); }
.crf-sub { margin: -6px 0 22px; padding: 20px 20px 0; border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .45); }

.crf-select { position: relative; }
.crf-select select { appearance: none; padding-right: 44px; cursor: pointer; }
.crf-select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* Keuzekaarten en chips (radio's) */
.crf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.crf-card, .crf-chip, .crf-pkg { position: relative; cursor: pointer; }
.crf-card input, .crf-chip input, .crf-pkg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.crf-card > span { display: block; height: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(19, 20, 21, .5); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.crf-card strong { display: block; font-weight: 600; }
.crf-card small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.crf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crf-chip span { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(19, 20, 21, .5); font: 500 14.5px/1 var(--font-ui); transition: border-color .2s, background-color .2s, color .2s; }
.crf-card:hover > span, .crf-chip:hover span, .crf-pkg:hover .crf-pkg__body { border-color: rgba(69, 206, 252, .55); }
.crf-card input:checked + span, .crf-chip input:checked + span, .crf-pkg input:checked + .crf-pkg__body { border-color: var(--blue); background: rgba(69, 206, 252, .1); box-shadow: inset 0 0 0 1px var(--blue); }
.crf-chip input:checked + span { color: var(--text); }
.crf-card input:focus-visible + span, .crf-chip input:focus-visible + span, .crf-pkg input:focus-visible + .crf-pkg__body { outline: 2px solid var(--blue); outline-offset: 3px; }
fieldset.field[aria-invalid="true"] .crf-card > span, fieldset.field[aria-invalid="true"] .crf-chip span, fieldset.field[aria-invalid="true"] .crf-pkg__body { border-color: rgba(255, 107, 107, .6); }

/* Overschrijf de algemene .field label/input-regels uit main.css voor kaarten, chips en uploads. */
.cr .field label.crf-card, .cr .field label.crf-chip, .cr .field label.crf-pkg, .cr .field label.crf-file { display: block; margin: 0; padding: 0; font: 400 15px/1.45 var(--font); color: var(--text); }
.cr .field .crf-card input, .cr .field .crf-chip input, .cr .field .crf-pkg input { width: 1px; height: 1px; padding: 0; border: 0; box-shadow: none; }
.cr .field .crf-file input { width: 100%; height: 100%; padding: 0; border: 0; }

/* Pakketten met prijs */
.crf-packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.crf-pkg__body { display: flex; flex-direction: column; height: 100%; padding: 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(19, 20, 21, .5); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.crf-pkg strong { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.crf-pkg__price { margin: 6px 0 12px; font-size: 1.45rem; font-weight: 650; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crf-pkg ul { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.crf-pkg li { position: relative; padding-left: 16px; font-size: .84rem; line-height: 1.4; color: var(--text-2); }
.crf-pkg li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Datum */
.crf-date { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crf-date input { flex: 0 1 240px; }
.crf-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.crf-pill { padding: 9px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 13px/1 var(--font-ui); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.crf-pill:hover, .crf-pill.is-on { border-color: var(--blue); color: var(--text); background: rgba(69, 206, 252, .08); }

/* Checkbox */
.crf-check { display: inline-flex !important; align-items: center; gap: 12px; margin: 0 !important; font: 400 15px/1.4 var(--font) !important; color: var(--text-2) !important; cursor: pointer; }
.crf-check input { width: 20px !important; height: 20px; padding: 0 !important; accent-color: var(--blue); flex: none; }

/* Uploads */
.crf-file { position: relative; display: block; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: rgba(19, 20, 21, .45); cursor: pointer; transition: border-color .2s, background-color .2s; }
.crf-file:hover, .crf-file.is-drag { border-color: var(--blue); background: rgba(69, 206, 252, .06); }
.crf-file.has-file { border-style: solid; border-color: rgba(74, 222, 128, .5); }
.crf-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crf-file.has-file input { pointer-events: none; }
.crf-file input:focus-visible ~ .crf-file__empty { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r); }
.crf-file__empty, .crf-file__chosen { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; text-align: center; }
.crf-file__empty .icon { width: 26px; height: 26px; margin-bottom: 6px; color: var(--blue); }
.crf-file__chosen .icon { width: 24px; height: 24px; margin-bottom: 4px; color: var(--ok); }
.crf-file__chosen strong { word-break: break-all; font-size: .95rem; }
.crf-file small { color: var(--muted); font-size: .84rem; }
.crf-file__chosen .crf-link { position: relative; z-index: 1; margin-top: 6px; font-size: .88rem; }
.crf-file[aria-invalid="true"], .field:has(> .crf-file input[aria-invalid="true"]) .crf-file { border-color: rgba(255, 107, 107, .6); }

/* Overzicht */
.crf-review { display: grid; gap: 12px; }
.crf-review__group { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.crf-review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crf-review__head h3 { font: 500 12.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crf-review dl { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); gap: 8px 16px; font-size: .95rem; }
.crf-review dt { color: var(--muted); }
.crf-review dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.crf-review__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid var(--line-2); }
.crf-review__price strong { font-size: 1.35rem; }
.crf-submitnote { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Navigatie */
.crf-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.crf-nav .btn--primary { margin-left: auto; }
.crf-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
[data-submit].is-busy { pointer-events: none; opacity: .7; }
[data-submit].is-busy span::after { content: "…"; }

/* Bevestiging */
.crf-done { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--teal-band) border-box; outline: none; }
.crf-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: var(--grad); color: var(--bg); }
.crf-done__icon .icon { width: 30px; height: 30px; }
.crf-done h2 { margin-bottom: 14px; }
.crf-done p { max-width: 52ch; margin: 0 auto 12px; color: var(--text-2); }
.crf-done .btn { margin-top: 14px; }
.cr .gate h2 { margin-bottom: 10px; }

@media (max-width: 760px) {
  .crf-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .crf-grid { grid-template-columns: minmax(0, 1fr); }
  .crf-cards { grid-template-columns: minmax(0, 1fr); }
  .crf-progress { gap: 4px; margin-bottom: 26px; }
  .crf-progress__label { display: none; }
  .crf-progress__n { display: block; font-variant-numeric: tabular-nums; }
  .crf-packages { grid-template-columns: minmax(0, 1fr); }
  .crf-pkg__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; }
  .crf-pkg__price { margin: 0; font-size: 1.2rem; }
  .crf-pkg ul { grid-column: 1 / -1; margin-top: 10px; }
  .crf-date input { flex-basis: 100%; }
  .crf-review dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .crf-review dd { margin-bottom: 8px; }
  .crf-nav .btn { flex: 1 1 auto; justify-content: center; }
  .crf-nav .crf-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .crf-step.is-current { animation: none; } }

/* ---------- Support en wijzigingsverzoeken ---------- */
.sp-sent { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding: 18px 22px; border-radius: var(--r); border: 1px solid rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); text-align: left; }
.sp-sent .form-success__icon { flex: none; width: 46px; height: 46px; margin: 0; }
.sp-sent .form-success__icon .icon { width: 22px; height: 22px; }
.sp-sent p { margin-top: 4px; color: var(--text-2); font-size: .94rem; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sp-form { padding: clamp(22px, 4vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.sp-form > h2 { margin-bottom: 22px; }
.sp-form .form-alert { margin-bottom: 18px; }
.sp-opt { color: var(--muted); font-weight: 400; }
.sp-prios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sp-prio > span { padding: 12px 14px; }
.sp-prio strong { font-size: .95rem; }
.sp-prio small { font-size: .78rem; }
.sp-prio--urgent input:checked + span { border-color: var(--orange); background: rgba(255, 156, 26, .1); box-shadow: inset 0 0 0 1px var(--orange); }
.crf-file--compact .crf-file__empty, .crf-file--compact .crf-file__chosen { padding: 16px; }
.sp-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.sp-tip { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.sp-tip h3 { font-size: 1.05rem; margin-bottom: 12px; }
.sp-tip ol { display: grid; gap: 10px; padding-left: 20px; list-style: decimal; color: var(--text-2); font-size: .92rem; }
.sp-tip ol li::marker { color: var(--blue); font-weight: 600; }
.sp-tip p { color: var(--text-2); font-size: .92rem; margin-bottom: 14px; }
.sp-tip--urgent { background: var(--teal-band) border-box; }
.sp-list { margin-top: clamp(36px, 6vw, 56px); }
.sp-list > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sp-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--pill); background: var(--surface-2); font: 600 13px/1 var(--font-ui); color: var(--text-2); }
.sp-empty { padding: 26px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.sp-list ul { display: grid; gap: 8px; }
.sp-item { border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); transition: border-color .25s; }
.sp-item[open] { border-color: var(--line-2); }
.sp-item summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.sp-item summary::-webkit-details-marker { display: none; }
.sp-item__ref { font: 500 13px/1 var(--font-ui); color: var(--blue); letter-spacing: .02em; }
.sp-item__subject { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item__meta { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.sp-item__chev { color: var(--muted); transition: transform .3s var(--ease); }
.sp-item[open] .sp-item__chev { transform: rotate(180deg); }
.sp-status { padding: 6px 11px; border-radius: var(--pill); font: 500 12px/1 var(--font-ui); white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-2); }
.sp-status--open { border-color: rgba(69, 206, 252, .4); color: #9be3fd; background: rgba(69, 206, 252, .08); }
.sp-status--in_progress { border-color: rgba(255, 156, 26, .4); color: #ffc477; background: rgba(255, 156, 26, .08); }
.sp-status--waiting { border-color: rgba(255, 107, 107, .4); color: #ffb3b3; background: rgba(255, 107, 107, .08); }
.sp-status--done { border-color: rgba(74, 222, 128, .4); color: #9ff0bd; background: rgba(74, 222, 128, .08); }
.sp-item__body { padding: 0 20px 20px; }
.sp-item__body dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.sp-item__body dt { color: var(--muted); }
.sp-item__body dd { margin: 0; overflow-wrap: anywhere; }
.sp-item__desc { padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--text-2); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.sp-update { margin-top: 10px; padding: 14px 18px; border-left: 3px solid var(--blue); background: rgba(69, 206, 252, .05); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.sp-update small { color: var(--muted); }
.sp-update p { margin-top: 4px; color: var(--text-2); font-size: .94rem; }
@media (max-width: 1024px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .sp-prios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-aside { grid-template-columns: minmax(0, 1fr); }
  .sp-item summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
  .sp-item__ref { grid-column: 1; }
  .sp-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .sp-item__subject { grid-column: 1 / -1; white-space: normal; }
  .sp-item__meta { grid-column: 1; }
  .sp-item__chev { grid-column: 2; grid-row: 3; justify-self: end; }
  .sp-item__body { padding: 0 16px 16px; }
  .sp-item__body dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sp-item__body dd { margin-bottom: 8px; }
}

/* ---------- Status ---------- */
.st-wrap { max-width: calc(860px + var(--gutter) * 2); }
.st-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--st, var(--muted)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st, var(--muted)) 20%, transparent); }
.st--ok { --st: #4ade80; }
.st--maintenance { --st: #45cefc; }
.st--degraded { --st: #facc15; }
.st--partial { --st: #ff9c1a; }
.st--outage, .st--security { --st: #ff6b6b; }
.st--unknown { --st: #8d9196; }
.st--ok .st-dot { animation: st-pulse 2.4s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--st) 0%, transparent); } }
.st-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 20px 24px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--st) 40%, transparent); background: color-mix(in srgb, var(--st) 9%, transparent); }
.st-banner .st-dot { width: 14px; height: 14px; }
.st-banner strong { display: block; font-size: 1.15rem; }
.st-banner small { color: var(--muted); font-size: .88rem; }
.st-list { border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.st-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; }
.st-list li + li { border-top: 1px solid var(--line); }
.st-list__name { font-weight: 550; }
.st-pill { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .92rem; text-align: right; }
.st-pill .st-dot { width: 8px; height: 8px; }
.st-h { margin: 34px 0 12px; font: 500 12.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-note { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; padding: 16px 20px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--st) 35%, transparent); background: color-mix(in srgb, var(--st) 6%, transparent); }
.st-note .st-dot { margin-top: 7px; }
.st-note p { margin-top: 4px; color: var(--text-2); font-size: .94rem; }
.st-note small { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.st-foot { margin-top: 26px; color: var(--muted); font-size: .92rem; }
.st-foot a { color: var(--blue); }
.portal-card__state { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--text-2); }
.portal-card__state .st-dot { width: 8px; height: 8px; }
@media (prefers-reduced-motion: reduce) { .st--ok .st-dot { animation: none; } }

/* ---------- Actieve diensten ---------- */
.psv-wrap { max-width: calc(980px + var(--gutter) * 2); }
.psv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.psv-sum { color: var(--text-2); }
.psv-sum strong { color: var(--text); font-weight: 600; }
.psv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.psv-tools[hidden] { display: none; }
.psv-search { display: flex; align-items: center; gap: 8px; min-width: 260px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); color: var(--muted); }
.psv-search:focus-within { border-color: rgba(69, 206, 252, .6); }
.psv-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text); font: inherit; font-size: .94rem; outline: none; }
.psv-empty { padding: 18px 0; color: var(--muted); }
.psv-sites { display: grid; gap: 8px; }
.psv-site { border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.psv-site[open] { border-color: rgba(69, 206, 252, .3); }
.psv-site summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.psv-site summary::-webkit-details-marker { display: none; }
.psv-site summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r); }
.psv-site__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: rgba(69, 206, 252, .1); color: var(--blue); }
.psv-site__name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.psv-site__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; color: var(--muted); font-size: .86rem; }
.psv-site__attn { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.psv-site__attn .st-dot { width: 7px; height: 7px; }
.psv-site__chev { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.psv-site[open] .psv-site__chev { transform: rotate(90deg); }
.psv-rows { border-top: 1px solid var(--line); }
.psv-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 190px 130px; gap: 6px 16px; align-items: center; padding: 11px 18px 11px 62px; font-size: .92rem; }
.psv-row + .psv-row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.psv-row__type { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.psv-row__name { font-weight: 550; overflow-wrap: anywhere; }
.psv-row__date, .psv-row__price { color: var(--text-2); }
.psv-row__date small { color: var(--muted); font-size: .8rem; }
.psv-row .st-pill { justify-content: flex-end; font-size: .86rem; }
@media (max-width: 900px) {
  .psv-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .psv-row__type { grid-column: 1 / -1; }
  .psv-row__name { grid-column: 1; }
  .psv-row .st-pill { grid-column: 2; grid-row: 2; }
  .psv-row__date, .psv-row__price { grid-column: 1 / -1; font-size: .86rem; }
  .psv-row__price:empty, .psv-row__date:empty { display: none; }
  .psv-site summary { flex-wrap: wrap; padding: 14px 16px; }
  .psv-site__meta { order: 3; flex-basis: 100%; justify-content: flex-start; padding-left: 44px; }
  .psv-search { min-width: 0; flex: 1; }
  .psv-tools { flex: 1 1 100%; }
}
.psv-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.psv-note + script + .st-foot, .psv-note ~ .st-foot { margin-top: 8px; }

/* ---------- Facturen ---------- */
.pinv-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pinv-sum > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.pinv-sum small { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pinv-sum strong { font-size: 1.5rem; font-weight: 600; }
.pinv-sum span { color: var(--text-2); font-size: .9rem; }
.pinv-months { display: grid; gap: 10px; }
.pinv-month { border-radius: var(--r); border: 1px solid var(--line); background: rgba(19, 20, 21, .5); }
.pinv-month__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pinv-month__head strong { font-weight: 600; text-transform: capitalize; }
.pinv-month__head span { color: var(--muted); font-size: .9rem; }
.pinv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px 120px 14px; gap: 6px 16px; align-items: center; padding: 11px 18px; font-size: .92rem; }
/* Vaste kolom voor het pijltje (leeg bij gewone regels), zodat alle bedragen onder elkaar staan. */
.pinv-row::after { content: ""; }
.pinv-group summary.pinv-row::after { justify-self: center; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.pinv-group details[open] > summary.pinv-row::after { transform: rotate(45deg); }
.pinv-rows > li + li, .pinv-sub > li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pinv-group summary { cursor: pointer; list-style: none; }
.pinv-group summary::-webkit-details-marker { display: none; }
.pinv-group summary:hover .pinv-group__name { color: var(--blue); }
.pinv-group summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pinv-group__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; transition: color .2s; }
.pinv-group__name .icon { color: var(--blue); }
.pinv-group details[open] > summary { background: rgba(69, 206, 252, .04); }
.pinv-sub { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); background: rgba(0, 0, 0, .15); }
.pinv-sub .pinv-row { padding-top: 9px; padding-bottom: 9px; font-size: .88rem; }
.pinv-sub .pinv-row__desc { padding-left: 24px; color: var(--text-2); }
.pinv-sub .pinv-row__amount { font-weight: 450; color: var(--text-2); }
.pinv-row__date { color: var(--muted); }
.pinv-row__desc { overflow-wrap: anywhere; }
.pinv-row__src { justify-self: start; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--text-2); font-size: .76rem; }
.pinv-src--work { background: rgba(69, 206, 252, .12); color: var(--blue); }
.pinv-src--project { background: rgba(250, 204, 21, .12); color: #facc15; }
.pinv-row__amount { text-align: right; font-weight: 550; white-space: nowrap; }
@media (max-width: 700px) {
  .pinv-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .pinv-row__desc { grid-column: 1 / -1; grid-row: 1; font-weight: 550; }
  .pinv-row__date { grid-column: 1; font-size: .86rem; }
  .pinv-row__src { grid-column: 1; }
  .pinv-row__amount { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .pinv-row::after { display: none; }
  .pinv-group summary.pinv-row { position: relative; padding-right: 36px; }
  .pinv-group summary.pinv-row::after { display: block; position: absolute; right: 16px; top: 50%; margin-top: -5px; }
}
.pinv-note { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; line-height: 1.5; white-space: pre-line; }
details.pinv-note summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); cursor: pointer; white-space: normal; list-style: none; }
details.pinv-note summary::-webkit-details-marker { display: none; }
details.pinv-note summary::after { content: "+"; font-weight: 600; }
details.pinv-note[open] summary::after { content: "–"; }
details.pinv-note > span { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.pinv-progress { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px dashed rgba(69, 206, 252, .5); color: var(--blue); font-size: .78rem; font-weight: 500; }
.psv-kind { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--text-2); font-size: .72rem; font-weight: 500; vertical-align: middle; }
.psv-domains { display: grid; gap: 6px; padding: 12px 18px 12px 62px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }
.psv-domains p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.psv-domains p > span { margin-right: 4px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.psv-chip { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-style: normal; }
.psv-none { padding: 12px 18px 14px 62px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.psv-none + .psv-rows { display: none; }
@media (max-width: 900px) { .psv-domains, .psv-none { padding-left: 18px; } }

/* "Log in as" vanuit HQ: vaste balk onderin, zodat altijd duidelijk is dat dit niet je eigen sessie is. */
.as-bar { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px; max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 12px 12px 20px; border-radius: var(--r); background: var(--orange); color: var(--bg); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .7); font-size: .95rem; line-height: 1.45; }
.as-bar p { display: flex; align-items: center; gap: 12px; }
.as-bar .icon { flex: none; }
.as-bar strong { font-weight: 700; }
.as-bar button { min-height: 40px; padding: 8px 22px; border: 0; border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.as-bar button:hover { background: #000; }
.as-bar button:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }
body.is-as { padding-bottom: 120px; }
body.is-as .to-top { bottom: 120px; }
@media (max-width: 560px) { .as-bar form, .as-bar button { width: 100%; } body.is-as { padding-bottom: 170px; } body.is-as .to-top { bottom: 170px; } }
