/* Lespoirs Hosting – paneel. Kleuren afgestemd op lespoirs.nl. Lettertypes staan lokaal (geen Google Fonts, AVG-vriendelijk). */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --ink: #121820;
  --muted: #5c636b;
  --line: #e3e7eb;
  --ground: #f4f6f8;
  --card: #ffffff;
  --side: #121820;
  --side-text: #aeb6c0;
  --side-active: #1f2833;
  --side-line: #28323d;
  --brand: #65c3f5;
  --brand-hover: #4fb3ea;
  --accent: #1873a8;
  --accent-soft: #e3f4fd;
  --orange: #f57c00;
  --ok: #1a7a48; --ok-soft: #e4f4ea;
  --warn: #a85200; --warn-soft: #fff1e2;
  --err: #b3261e; --err-soft: #fdecea;
  --radius: 12px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--ground); }
a { color: var(--accent); }
a:hover { color: #0f5a86; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; left: -9999px; }

/* Indeling */
.app { display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--side) 248px, transparent 248px); }
.side { width: 248px; flex-shrink: 0; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; padding: 6px 6px 0; text-decoration: none; }
.logo img { display: block; height: 32px; width: auto; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--ink); }
.side-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--side-line); }
.plan-chip { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--orange); padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.side-domain { font-family: var(--mono); font-size: 14px; color: #fff; word-break: break-all; }
.side-label { padding: 0 14px; font-size: 12px; color: #9aa3ad; text-transform: uppercase; letter-spacing: 0.06em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 44px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--side-active); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav a.active svg { color: var(--brand); }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* Beheermenu: groepen die je in- en uitklapt (Verkoop, Diensten, Systeem) */
.nav-group { margin-top: 10px; }
.nav-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; min-height: 36px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #9aa3ad; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--side-active); color: #fff; }
.nav-group > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-group > summary svg { transition: transform 0.15s; }
.nav-group[open] > summary svg { transform: rotate(180deg); }
.nav-group-items { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.nav-group-items { margin-left: 21px; padding-left: 8px; border-left: 1px solid var(--side-line); }
.nav-group-items a { padding-left: 10px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--side-line); padding-top: 16px; }
.side-user { padding: 0 6px; display: flex; flex-direction: column; }
.side-user b { color: #fff; font-weight: 500; font-size: 14px; }
.side-user span { font-size: 13px; color: #9aa3ad; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 6px; min-height: 44px; color: var(--brand); font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.side-link:hover { color: #9ad8f9; }
/* Taalknop NL | EN in de zijbalk van het klantpaneel en op de inlogpagina's (niet voor medewerkers).
   De zijbalk en het merkvlak van het inloggen zijn altijd donker, in lichte én donkere modus: daarom vaste kleuren voor een donkere ondergrond. */
.side .lang-switch, .login-brand .lang-switch { display: inline-flex; flex-shrink: 0; align-self: flex-start; border: 1px solid var(--side-line); border-radius: 8px; overflow: hidden; }
.side .lang-switch a, .login-brand .lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 4px 10px;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 0.04em; color: var(--side-text); text-decoration: none; }
.side .lang-switch a + a, .login-brand .lang-switch a + a { border-left: 1px solid var(--side-line); }
.side .lang-switch a:hover, .login-brand .lang-switch a:hover { background: var(--side-active); color: #fff; }
.side .lang-switch a.on, .login-brand .lang-switch a.on { background: var(--brand); color: #0a1620; }
.side .lang-switch a:focus-visible, .login-brand .lang-switch a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.side-foot .lang-switch { margin: 0 6px 4px; }
/* Inhoud gebruikt de volle breedte naast het menu (alle 12 kolommen), op elk scherm. */
.main { flex: 1; min-width: 0; padding: 36px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* Blokken */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.card > h2, .card-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card-title svg { color: var(--accent); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.grid-main-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.stat-value { font-size: 26px; font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: #e6ebf0; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* Knoppen en formulieren */
.btn, .btn-2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn { background: var(--brand); color: var(--ink); border: 0; }
.btn:hover { background: var(--brand-hover); color: var(--ink); }
.btn-2 { background: #fff; color: var(--ink); border: 1px solid #cdd4db; font-weight: 500; }
.btn-2:hover { background: var(--ground); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: #fff; color: var(--err); border: 1px solid #f0c4c0; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--ground); }
.icon-btn.danger { color: var(--err); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=tel], input[type=url], input:not([type]), select, textarea {
  height: 44px; padding: 0 12px; border: 1px solid #cdd4db; border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; width: 100%; min-width: 0;
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
input[type=file] { font-family: inherit; font-size: 14px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid #cdd4db; border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
input.mono { font-family: var(--mono); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(101, 195, 245, 0.45); border-color: var(--accent); }
.form-row { display: grid; gap: 12px; align-items: end; }
.suffix { display: flex; align-items: center; border: 1px solid #cdd4db; border-radius: 8px; background: #fff; overflow: hidden; }
.suffix input { border: 0; border-radius: 0; }
.suffix span { padding: 0 12px; font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; }
.check input { width: 18px; height: 18px; }
.field-error { color: var(--err); font-size: 13px; font-weight: 500; }

/* Meldingen */
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--err-soft); color: var(--err); }
.flash.info { background: var(--accent-soft); color: var(--accent); }
.pw-box { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.pw-box code { font-family: var(--mono); font-size: 15px; background: #fff; padding: 2px 8px; border-radius: 6px; }

/* Tabellen en lijsten */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }
/* Kleine cijferblokjes (bijv. domeinprijzen) */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mini-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); }
.mini-stat span { font-size: 12.5px; color: var(--muted); }
.mini-stat b { font-size: 15px; font-weight: 600; }
/* Domeinprijzen in Beheer */
.tld-toolbar { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.tld-toolbar .tld-search { flex: 1 1 260px; max-width: 380px; }
.tld-toolbar .check { min-height: 0; }
.tld-scroll { max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tld-admin th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.tld-admin th, .tld-admin td { padding: 10px 12px; }
.tld-admin .tld-toggle { white-space: nowrap; }
.tld-admin .tld-toggle .link-btn { color: var(--muted); margin-left: 4px; }
.tld-admin .tld-own { margin-top: 3px; font-size: 12.5px; white-space: nowrap; }
.tld-admin .chip { font-size: 11.5px; }
.tld-admin td.tld-demo { color: var(--muted); font-style: italic; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 4px; }
.value-cell { font-family: var(--mono); max-width: 460px; overflow-wrap: anywhere; }
.type { display: inline-block; min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #fff; background: var(--muted); }
.type-A, .type-AAAA { background: #1873a8; }
.type-CNAME { background: #9a4d00; }
.type-MX { background: #1a7a48; }
.type-TXT { background: #5b4472; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
details.reveal summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; list-style: none; }
details.reveal summary::-webkit-details-marker { display: none; }
details.reveal[open] summary { margin-bottom: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.badge.muted { background: #eef1f4; color: var(--muted); }

/* Tegels */
.tile { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tile.round { border-radius: 50%; width: 40px; height: 40px; }
.action-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.action-card:hover { border-color: var(--brand); color: var(--ink); }
.action-card b { display: block; font-weight: 600; }
.action-card small { color: var(--muted); font-size: 14px; }

/* Betalen en facturen */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.choice input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); }
.choice b { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice .price { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.choice small { color: var(--muted); font-size: 13px; }
.save { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--orange); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.pay-form { display: flex; flex-direction: column; gap: 14px; }
.pay-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.notice b { color: inherit; }
.notice a { color: inherit; font-weight: 600; }
.sub-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-row .grow { flex: 1; min-width: 200px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pop { position: absolute; right: 0; z-index: 5; width: 320px; display: flex; flex-direction: column; gap: 10px; text-align: left; white-space: normal; }

/* Inloggen */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-brand { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: radial-gradient(720px 520px at 105% -5%, rgba(101, 195, 245, 0.26), transparent 60%),
              radial-gradient(620px 440px at -15% 110%, rgba(245, 124, 0, 0.16), transparent 60%),
              linear-gradient(160deg, #13354a 0%, #0d2231 45%, #0a1620 100%); }
.login-brand > * { position: relative; }
.login-brand .logo img { height: 36px; }
.login-net { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 75%); mask-image: linear-gradient(to left, #000 15%, transparent 75%); }
.login-net line { stroke: #87cefa; stroke-opacity: 0.16; stroke-width: 1; }
.login-net circle { fill: #87cefa; fill-opacity: 0.45; }
.login-net circle.pulse { fill: #f57c00; fill-opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: net-pulse 3.2s ease-in-out infinite; }
@keyframes net-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.9); opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .login-net circle.pulse { animation: none; } }
.login-hero { max-width: 560px; width: 100%; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.login-hero .login-feats { width: 100%; text-align: left; }
.login-eyebrow { margin: 0; color: #87cefa; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.login-brand h2 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; max-width: 480px; }
.login-brand h2 span { color: var(--brand); }
.login-lead { margin: 0; color: #b9c7d2; font-size: 16px; line-height: 1.6; max-width: 460px; }
.login-feats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-feats li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(135, 206, 250, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.login-feats b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.login-feats small { display: block; font-size: 13px; color: #9fb3c2; line-height: 1.45; margin-top: 2px; }
.lf-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(135, 206, 250, 0.14); color: #87cefa; }
.login-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: #9fb3c2; }
.login-foot span { display: inline-flex; align-items: center; gap: 8px; }
.login-foot svg { color: #4cc987; }
.login-form { display: grid; place-items: center; padding: 32px 16px; }
.login-form .card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.login-brand .lang-switch { align-self: center; border-color: rgba(135, 206, 250, 0.25); background: rgba(255, 255, 255, 0.045); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.login-brand .lang-switch a { color: #b9c7d2; }
.login-brand .lang-switch a + a { border-left-color: rgba(135, 206, 250, 0.25); }
.login-brand .lang-switch a:hover { background: rgba(135, 206, 250, 0.14); color: #fff; }
.login-brand .lang-switch a.on { background: var(--brand); color: #0a1620; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .app { flex-direction: column; background: none; }
  .side { width: auto; height: auto; position: static; padding: 16px; gap: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-admin { flex-direction: column; flex-wrap: nowrap; }   /* beheermenu op de telefoon: onder elkaar */
  .nav-group { margin-top: 4px; }
  .side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .side-foot .lang-switch { margin: 0; align-self: center; }
  .side .lang-switch a, .login-brand .lang-switch a { min-height: 36px; }
  .main { padding: 24px 16px 40px; }
  .page-head h1 { font-size: 28px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr) !important; }
  .login-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-brand { padding: 24px 16px; gap: 16px; }
  .login-brand .logo img { height: 30px; }
  .login-brand h2 { font-size: 26px; }
  .login-lead, .login-feats, .login-foot, .login-eyebrow { display: none; }
  .login-hero { align-items: flex-start; text-align: left; }
}

/* Tabellen als kaartjes op de telefoon */
@media (max-width: 700px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody { display: block; width: 100%; }
  .table.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { display: block; border: 0; padding: 0; min-width: 0 !important; }
  .table.stack td.wide { flex-basis: 100%; order: 3; }
  .table.stack td.num { margin-left: auto; }
  .table.stack td.actions { order: 4; }
}

/* Bestellen */
body.shop { background: var(--ground); }
.shop-top { background: #ffffff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; position: sticky; top: 0; z-index: 10; }
.shop-top .logo { padding: 0; }
.shop-top .logo img { height: 34px; }
.shop-nav { display: flex; align-items: center; gap: 18px; }
.shop-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.shop-nav a:hover { color: var(--ink); }
.shop-nav a.btn-2 { color: var(--ink); }
.shop-nav .lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shop-nav .lang-switch a { padding: 5px 9px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.shop-nav .lang-switch a + a { border-left: 1px solid var(--line); }
.shop-nav .lang-switch a:hover { background: var(--line); color: var(--ink); }
.shop-nav .lang-switch a.on { background: var(--ink); color: var(--card); }
.shop-main { width: 100%; padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 22px; }
.shop-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.shop-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }
.shop-foot a { color: var(--muted); }
.shop-foot button { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Cookiebalk op de bestelpagina's (zelfde als op de website). Google Analytics laadt pas na "Akkoord". */
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; }
.cookiebar-in { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; background: #13354a; color: #fff; border: 1px solid #2a4d63; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.cookiebar-text { flex: 1 1 380px; margin: 0; font-size: 14px; line-height: 1.55; }
.cookiebar-text a { color: #ff9a3c; }
.cookiebar-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { min-width: 140px; min-height: 44px; padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-yes { background: #f57c00; color: #241100; }
.cc-yes:hover { background: #e06f00; }
.cc-no { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cc-no:hover { border-color: #fff; }
.cc-btn:focus-visible { outline: 3px solid #87cefa; outline-offset: 2px; }
@media (max-width: 600px) {
  .cookiebar { left: 10px; right: 10px; bottom: 10px; }
  .cookiebar-in { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookiebar-text { flex: none; }
  .cc-btn { flex: 1 1 0; min-width: 0; }
}
@media (prefers-color-scheme: dark) { .cookiebar-in { background: #112a3a; border-color: #24435a; } }
@media print { .cookiebar { display: none; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); font-weight: 600; font-size: 13px; }
.steps li.now { color: var(--ink); font-weight: 600; border-color: var(--brand); }
.steps li.now span { background: var(--brand); color: var(--ink); }
.steps li.done span { background: var(--ok-soft); color: var(--ok); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.order-block { display: flex; flex-direction: column; gap: 12px; }
.order-block > h2 { margin: 0; }
.order-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice.slim { padding-top: 12px; padding-bottom: 12px; }
.plan-choices { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plan-choices .price { font-size: 20px; }
.plan-choices .price small { font-size: 13px; font-weight: 500; }
.notice.ok-notice { background: var(--ok-soft); color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Bestellen in donkere modus: volgt de instelling van Windows, macOS of de telefoon, net als de website. */
@media (prefers-color-scheme: dark) {
  body.shop {
    color-scheme: dark;
    --ink: #eef5fa; --muted: #93a6b4; --line: #1f3647; --ground: #0a1620; --card: #102230;
    --accent: #87cefa; --accent-soft: rgba(135, 206, 250, 0.12);
    --ok: #4cc987; --ok-soft: rgba(76, 201, 135, 0.13);
    --warn: #ffb35c; --warn-soft: rgba(255, 179, 92, 0.12);
    --err: #ff8a80; --err-soft: rgba(255, 138, 128, 0.12);
    --field: #0d1c28; --field-line: #2a4458;
  }
  body.shop a:hover { color: #b3e0fc; }
  body.shop .shop-top { background: #0a1620; border-bottom-color: #182d3c; }
  body.shop .btn, body.shop .btn:hover, body.shop .steps li.now span { color: #0a1620; }
  body.shop .btn-2, body.shop .shop-nav a.btn-2 { background: var(--card); color: var(--ink); border-color: var(--field-line); }
  body.shop .btn-2:hover { background: #16304a; color: var(--ink); }
  body.shop input:not([type=checkbox]):not([type=radio]):not([type=file]), body.shop select, body.shop textarea, body.shop .suffix {
    background: var(--field); border-color: var(--field-line); color: var(--ink);
  }
  body.shop .search { background: var(--field); }
  body.shop .search input { background: transparent; }
  body.shop .field.has-error input, body.shop .field.has-error select, body.shop .field.has-error textarea { background: var(--err-soft); border-color: var(--err); }
  body.shop .steps li, body.shop .choice, body.shop .alt-chip { background: var(--card); }
  body.shop .seg label:has(input:checked) { background: #1a3347; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
  body.shop .ticks li svg { color: #0a1620; }
  body.shop .sum-row .tip:hover::after, body.shop .sum-row .tip:focus::after { background: #eef5fa; color: #0a1620; }
  body.shop .card { box-shadow: none; }
  body.shop .pw-box code { background: var(--field); }
}
@media (max-width: 800px) {
  .shop-main { padding: 24px 16px 40px; }
  .order-grid, .form-row.two { grid-template-columns: 1fr; }
  .shop-top { padding: 12px 16px; }
  .shop-nav a:not(.btn-2) { display: none; }
  .shop-nav .lang-switch a { display: inline-block; padding: 5px 7px; font-size: 12px; }
}

/* Tickets */
.ticket-list { list-style: none; margin: 0; padding: 0; }
.ticket-list > li { border-top: 1px solid var(--line); }
.ticket-list a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.ticket-list a:hover { background: #f8fafb; color: var(--ink); }
.ticket-list .t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ticket-list .t-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-list .t-main small { color: var(--muted); font-size: 13px; }
.ticket-list .t-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ticket-list .wait { color: var(--warn); font-size: 12px; font-weight: 600; }
.compose { display: flex; flex-direction: column; gap: 12px; }
.file-field small { font-weight: 400; color: var(--muted); }
.status-card { display: flex; flex-direction: column; gap: 14px; }
.status-line { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.status-line .grow { flex: 1; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; }
.msg.staff { border-left: 4px solid var(--brand); background: #fbfdff; }
.msg.note { border: 1px dashed #e8b77f; border-left: 4px solid var(--orange); background: #fffaf3; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #eef1f4; color: var(--ink); flex-shrink: 0; }
.msg.staff .avatar { background: var(--brand); }
.msg.note .avatar { background: var(--warn-soft); color: var(--warn); }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-weight: 600; font-size: 14px; }
.who small { color: var(--muted); font-size: 12px; }
.msg-body { font-size: 15px; overflow-wrap: anywhere; }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); color: var(--ink); text-decoration: none; font-size: 13px; max-width: 100%; }
.files a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files a small { color: var(--muted); }
.files a:hover { border-color: var(--brand); }
.thread .event { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.thread .event.internal { color: var(--warn); }
a.card.stat { color: var(--ink); text-decoration: none; }
a.card.stat:hover { border-color: var(--brand); color: var(--ink); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.tabs a b { font-weight: 700; color: var(--muted); font-size: 13px; }
.tabs a.on { border-color: var(--brand); background: var(--accent-soft); }
.tabs a.on b { color: var(--accent); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.filter-bar form { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { width: auto; min-width: 150px; }
.table tr.link-row { cursor: pointer; }
.table tr.link-row:hover td { background: #f8fafb; }
.table td .sub { display: block; color: var(--muted); font-size: 13px; }
.side-stack { display: flex; flex-direction: column; gap: 20px; }
.check.note-check { min-height: 0; color: var(--warn); font-weight: 500; }
@media (max-width: 700px) {
  .ticket-list a { align-items: flex-start; }
  .ticket-list .t-main b { white-space: normal; }
  .msg { padding: 12px 14px; }
  .msg-head time { margin-left: 44px; width: 100%; }
  .filter-bar form, .filter-bar select, .filter-bar input { width: 100%; }
}

/* Medewerkers en rechten */
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef1f4; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.table tr.row-on td { background: var(--accent-soft); }
fieldset.role-pick, fieldset.perm-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
fieldset legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.perm input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.perm span { display: flex; flex-direction: column; }
.perm b { font-weight: 600; font-size: 14px; }
.perm small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.perm:has(input:checked) { border-color: var(--brand); background: #f5fbff; }
.perm.disabled { opacity: .5; cursor: not-allowed; }
.perm-pick.all .perm, .perm-pick.all .perm-opt { opacity: .45; pointer-events: none; }
/* Rechten per pagina, met daaronder de opties */
.perm-group { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.perm-group > .perm { border: 0; border-radius: 10px 10px 0 0; }
.perm-group:has(> .perm input:checked) { border-color: var(--brand); }
.perm-group:has(> .perm input:checked) > .perm { background: #f5fbff; }
.perm-opts { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px 10px 42px; border-top: 1px solid var(--line); }
.perm-group:not(:has(> .perm input:checked)) .perm-opts { opacity: .6; }
.perm-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; padding: 3px 0; cursor: pointer; }
.perm-opt input { width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.perm-opt small { color: var(--muted); }
.perm-opt.disabled { opacity: .5; cursor: not-allowed; }
.perm-all { font-weight: 400; margin-left: 8px; }
.perm-all .link-btn { font-size: 12.5px; }
.perm-help { margin: 0; grid-column: 1 / -1; }
.chip-n { color: var(--muted); font-weight: 400; margin-left: 2px; }
.perm-list li ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.perm-list li ul li { font-size: 12.5px; gap: 6px; align-items: center; }
.perm-list li ul li.no { opacity: .6; }
.perm-list li ul li svg { margin-top: 0 !important; }
.perm-list li ul li.no svg { color: var(--muted); }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; }
.perm-list li { display: flex; gap: 10px; align-items: flex-start; }
.perm-list li span { display: flex; flex-direction: column; }
.perm-list li small { color: var(--muted); font-size: 12.5px; }
.perm-list li.yes svg { color: var(--ok); margin-top: 3px; }
.perm-list li.no { opacity: .55; }
.perm-list li.no svg { margin-top: 3px; }
.side-link.on { color: #fff; font-weight: 600; }

/* Inlogcode */
.code-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.code-input { font-size: 24px !important; letter-spacing: .3em; text-align: center; height: 56px !important; }
.code-again { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.btn-2:disabled { opacity: .55; cursor: not-allowed; }

/* Popup (bijv. Nieuw hostingaccount). Sluit alleen met de knoppen, niet door ernaast te klikken. */
dialog.modal { border: 0; padding: 0; border-radius: 14px; width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(18, 24, 32, 0.35); overflow: hidden; }
dialog.modal:focus, dialog.modal:focus-visible { outline: none; }
dialog.modal::backdrop { background: rgba(18, 24, 32, 0.55); }
body:has(dialog.modal[open]) { overflow: hidden; }
.modal-form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 20px; font-weight: 700; margin: 0; }
.modal-body { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--ground); }
.modal-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.modal-group legend { padding: 0 6px; margin: 0; }
.modal-info { background: var(--ground); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); background: #fffafa; }
dialog.modal.small { width: min(560px, calc(100vw - 32px)); }
dialog.modal.wide { width: min(1040px, calc(100vw - 32px)); }
.modal-body h3 { font-size: 15px; margin: 4px 0 0; }
.modal-body .perm-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.modal-body .perm-pick > .field-error { grid-column: 1 / -1; }
.modal-body .role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.check.has-error { color: var(--err); }
.field.has-error .suffix { border-color: var(--err); }
.suffix input { min-width: 0; flex: 1; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) {
  dialog.modal, dialog.modal.small, dialog.modal.wide { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .modal-form { max-height: calc(100vh - 16px); }
  .modal-body { padding: 16px; }
  .modal-head { padding: 12px 8px 12px 16px; }
  .modal-foot { padding: 12px 16px; }
  .modal-body .form-row, .modal-body .perm-pick, .modal-body .role-pick { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Winkelwagen (bestellen): links de keuzes, rechts het overzicht dat meeloopt */
.cart { display: grid; grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); gap: 24px; align-items: start; }   /* 8 + 4 van de 12 kolommen */
.cart-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cart-card { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.cart-head { display: flex; align-items: center; gap: 14px; }
.cart-head .tile { background: var(--ground); color: var(--ink); width: 44px; height: 44px; }
.cart-head h2 { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.3; }
.cart-head .small { display: block; }
.cart-plan-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cart-selects { display: flex; gap: 12px; flex-wrap: wrap; flex: 1 1 420px; }
.cart-selects .field { flex: 1 1 200px; max-width: 360px; }
.cart-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.cart-price .now { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.cart-price .now small { font-size: 15px; font-weight: 500; }
.cart-price s { color: var(--muted); font-size: 14px; }
.save-badge { background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.cart-note { font-size: 13px; color: var(--muted); margin: 0; }
.cart-sep { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3; }
.ticks b { font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--brand); border-radius: 12px; background: #fff; padding: 0 6px 0 16px; }
.search > svg { color: var(--muted); flex-shrink: 0; }
.search input { border: 0; height: 54px; padding: 0; font-size: 17px; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(101, 195, 245, 0.28); }
.search .btn { min-height: 42px; flex-shrink: 0; }
#dom-result:empty { display: none; }
#dom-result { display: flex; flex-direction: column; gap: 10px; }
.dom-result { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; }
.dom-result > svg { flex-shrink: 0; }
.dom-result > span:first-of-type { flex: 1; }
.dom-result.ok { background: var(--ok-soft); color: var(--ok); }
.dom-result.err { background: var(--warn-soft); color: var(--warn); }
.dom-result.wait { background: var(--ground); color: var(--muted); }
.dom-result b { color: inherit; }
.dom-result .link-btn { color: inherit; font-weight: 600; }
.dom-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dom-price small { font-weight: 500; color: var(--muted); }
.dom-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.alt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.alt-chip:hover { border-color: var(--brand); background: var(--accent-soft); }
.alt-chip small { color: var(--muted); }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.cart-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.summary { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.summary h2 { font-size: 20px; font-weight: 600; margin: 0; }
.summary .sum-rows, .summary .amt { transition: opacity 0.15s; }
.summary.updating .sum-rows, .summary.updating .amt { opacity: 0.5; }
.sum-plan { font-weight: 600; font-size: 15.5px; }
.sum-rows { display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.sum-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sum-row .amt { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.sum-row s { color: var(--muted); font-size: 13px; margin-right: 4px; }
.sum-row .tip { display: inline-flex; vertical-align: -3px; color: var(--muted); cursor: help; margin-left: 4px; position: relative; }
.sum-row .tip:hover::after, .sum-row .tip:focus::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 260px; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; z-index: 5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.sum-total { font-size: 18px; font-weight: 700; align-items: center; }
.sum-total .amt { font-size: 24px; }
.sum-save { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; color: var(--ok); font-size: 13.5px; }
.sum-save svg { flex-shrink: 0; }
.summary .btn { width: 100%; min-height: 54px; font-size: 16px; }
.sum-back { text-align: center; font-size: 14px; }
.trust { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { color: var(--ok); flex-shrink: 0; }
.review { margin: 0; display: flex; flex-direction: column; }
.review > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.review > div:first-child { padding-top: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .cart { grid-template-columns: minmax(0, 1fr); }
  .cart-side { position: static; }
}
@media (max-width: 640px) {
  .cart-card { padding: 20px 16px; }
  .cart-price { align-items: flex-start; text-align: left; }
  .cart-selects .field { max-width: none; }
  .search { padding-left: 12px; }
  .search input { height: 50px; font-size: 16px; }
  .review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .review dt { grid-column: 1 / -1; }
  .sum-row .tip:hover::after, .sum-row .tip:focus::after { left: auto; right: -40px; transform: none; }
}
/* Beheer: nog te doen voordat je live gaat */
.todo { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--orange); }
.todo h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 0; }
.todo h2 svg { color: var(--orange); }
.todo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.todo li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--warn); }
.todo li.err::before { background: var(--err); }
.todo li > span { flex: 1; }
.todo li .btn-2 { flex-shrink: 0; }
/* Uitleg in stappen (bijv. geplande taak instellen) */
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.steps-list li::marker { font-weight: 700; color: var(--accent); }
code.copy { display: inline-block; font-family: var(--mono); font-size: 13.5px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; user-select: all; }
.modal-info code.copy { background: #fff; }
.msg-head .via { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
/* Handtekening onder een reactie op een ticket */
.check.sig-check { align-items: flex-start; min-height: 0; }
.sig-check input { margin-top: 4px; }
.sig-check > span { display: flex; flex-direction: column; gap: 4px; }
.sig-preview { display: block; font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
.compose:has(input[name=internal]:checked) .sig-check { opacity: 0.45; }

/* Beheer > Vragen en handleidingen */
.help-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.help-filter .field { max-width: 320px; flex: 1; }
.help-admin { margin-bottom: 16px; }
.help-admin .card-title .muted { font-weight: 400; margin-left: 4px; }
.help-admin .help-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.help-kind { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.help-row.kind-handleiding .help-kind { color: var(--accent); }
.help-kind svg { flex: none; }
.help-admin .help-title:hover { text-decoration: underline; }
.help-admin .help-snippet { margin: 2px 0 6px; }
.help-admin .help-url { display: inline-block; margin-top: 6px; }
.help-admin tr.is-hidden .help-title { color: var(--muted); }
.help-admin td.actions .icon-btn[disabled] { opacity: 0.3; cursor: default; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.page-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.page-checks .check { min-height: 36px; }
.slug-field { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.slug-field input { flex: 1; min-width: 0; }
.markup-help { font-size: 13px; color: var(--muted); margin-top: -6px; }
.markup-help summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.markup-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--ground); }
.markup-grid code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.cat-row { display: grid; grid-template-columns: 1fr 190px 100px auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-row .check { min-height: 40px; }
.cat-row .cat-desc, .cat-row .field-error { grid-column: 1 / -1; }
/* Engelse tekst bij een handleiding (voor de Engelse website) */
details.en-fields { padding: 10px 16px 14px; gap: 10px; }
details.en-fields > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.en-fields:not([open]) { padding-bottom: 10px; }
.chip.chip-en { background: #e3f4fd; color: #1873a8; }
.chip.chip-noen { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.icon-pick { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.icon-pick select { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .cat-row { grid-template-columns: 1fr 90px; }
  .cat-row .check { grid-column: 1 / -1; }
}

/* Servers en monitor */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.srv { display: flex; flex-direction: column; gap: 14px; }
.srv.is-off { opacity: .7; }
.srv-head { display: flex; align-items: flex-start; gap: 12px; }
.srv-head h2 { font-size: 18px; }
.srv-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 55%; }
.srv-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; background: #c2c9d0; }
.srv-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.srv-dot.err { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.meter-row { display: flex; flex-direction: column; gap: 6px; }
.meter-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.meter-label b { color: var(--ink); font-weight: 600; }
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--accent-soft); }
.meter .meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); min-width: 4px; }
.meter.sev-warn { background: var(--warn-soft); }
.meter.sev-warn .meter-fill { background: var(--warn); }
.meter.sev-err { background: var(--err-soft); }
.meter.sev-err .meter-fill { background: var(--err); }
.meter .meter-limit { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.srv-room { margin: -4px 0 0; }
.srv-error { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--err-soft); color: var(--err); }
.srv-error svg { flex: none; margin-top: 2px; }
.srv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.srv-facts div { min-width: 0; }
.srv-facts dt { font-size: 12px; color: var(--muted); }
.srv-facts dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.uptime { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 22px; }
.uptime span { border-radius: 3px; background: #e6ebf0; }
.uptime .up-ok { background: var(--ok); }
.uptime .up-bad { background: var(--err); }
.srv-uptime { display: flex; flex-direction: column; gap: 6px; }
.srv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.srv-actions form { margin: 0; }
.small-btn { padding: 7px 12px; font-size: 13px; }
.srv-how { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.srv-limit { display: flex; align-items: flex-end; gap: 10px; }
.srv-limit .field { max-width: 180px; }
.srv-pct { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.srv-pct input { width: 90px; }
.srv-plesk { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.srv-plesk legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn.danger { color: var(--err); }
@media (max-width: 720px) {
  .srv-grid { grid-template-columns: minmax(0, 1fr); }
  .srv-head { flex-wrap: wrap; }
  .srv-badges { max-width: none; justify-content: flex-start; width: 100%; }
  .srv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field .hint { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.srv-extra { display: flex; flex-direction: column; gap: 12px; }
.form-row.srv-top { align-items: start; }

/* Klantpagina */
.klant-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-bottom: 20px; align-items: start; }
@media (max-width: 900px) { .klant-grid { grid-template-columns: 1fr; } }
tr.row-blocked td { background: color-mix(in srgb, var(--err) 5%, transparent); }

/* Omzet */
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--err); font-weight: 600; }
.rv-card { display: flex; flex-direction: column; gap: 12px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.rv-legend span { display: inline-flex; align-items: center; }
.rv-key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.rv-legend .rv-key { width: 10px; height: 10px; border-radius: 3px; }
.rv-key.in, .rv-in { background: #1873a8; fill: #1873a8; }
.rv-key.back, .rv-back { background: #eb6834; fill: #eb6834; }
.rv-wrap { position: relative; }
.rv-plot { width: 100%; min-height: 240px; }
.rv-chart { display: block; overflow: visible; }
.rv-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.rv-grid.base { stroke: #b9c1c9; }
.rv-tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-hit { fill: transparent; outline: none; cursor: default; }
.rv-hit.on, .rv-hit:focus-visible { fill: rgba(24, 115, 168, 0.06); }
.rv-hit:focus-visible { stroke: var(--accent); stroke-width: 1; }
.rv-tip { position: absolute; z-index: 2; pointer-events: none; min-width: 180px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(18, 24, 32, 0.12); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.rv-tip[hidden] { display: none; }
.rv-tip b { font-weight: 600; margin-bottom: 2px; }
.rv-tip strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-table summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.rv-table .table-wrap { margin-top: 8px; }

/* Kopieerknop naast een tekst om over te nemen */
.copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; vertical-align: middle; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.confirm-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rv-empty { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Omzet: moderne periodekeuze (segmenten + kalender) */
.range-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: #e9edf1; border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a, .segmented .seg-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.segmented a:hover, .segmented .seg-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.segmented a.on, .segmented .seg-btn.on, .segmented .seg-btn[aria-expanded="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 24, 32, .08), 0 1px 6px rgba(18, 24, 32, .06); }
.segmented .seg-btn.on { color: var(--accent); }
.segmented .seg-btn svg:last-child { transition: transform .15s; }
.segmented .seg-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.segmented a:focus-visible, .segmented .seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.range-text { margin: 0; }
.range-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(18, 24, 32, .14); overflow: hidden; }
.range-pop[hidden] { display: none; }
.range-presets { list-style: none; margin: 0; padding: 6px; }
.range-presets a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; }
.range-presets a:hover { background: var(--ground); }
.range-presets a.on { font-weight: 600; }
.range-presets a small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.range-check { display: inline-flex; color: var(--accent); }
.range-check svg { stroke-width: 2.6; }
.range-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.range-custom .btn { grid-column: 1 / -1; justify-content: center; }
.range-custom.bad input { border-color: var(--err); }
.range-custom label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.range-custom input[type=date] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.range-custom input[type=date]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
@media (max-width: 600px) {
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .segmented a, .segmented .seg-btn { justify-content: center; padding: 8px 6px; }
  .segmented .seg-btn { grid-column: span 3; }
  .range-pop { width: 100%; }
  .range-custom { grid-template-columns: 1fr; }
}

/* Datumveld met snelkeuzes (pakket wijzigen) */
div.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
div.field > label { font: inherit; color: inherit; }
input[type=date] { cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.date-chips button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.date-chips button:hover { border-color: var(--accent); color: var(--accent); }

/* Particulier of bedrijf (bestellen, factuurgegevens, klanten) */
.who-pick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.who-pick legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.who { position: relative; cursor: pointer; }
.who input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.who span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 15px; transition: border-color .15s, background .15s; }
.who span svg { color: var(--muted); }
.who span b { font-weight: 600; }
.who:hover span { border-color: var(--accent); }
.who input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.who input:checked + span svg { color: var(--accent); }
.who input:focus-visible + span { outline: 3px solid rgba(101, 195, 245, 0.45); outline-offset: 1px; }
.biz-fields { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); animation: biz-open .18s ease-out; }
.biz-fields[hidden] { display: none; }
@keyframes biz-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .biz-fields { animation: none; } }

.perm small.m-on, .perm small.m-off { display: block; font-size: 12px; font-weight: 500; }
.perm small.m-on { color: var(--ok); }
.perm small.m-off { color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Beheer > Hulp en FAQ: knoppen boven de Engelse velden */
.en-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.en-tools .btn-2 { gap: 6px; }
.en-tools .en-status { flex: 1 1 220px; }
.en-tools .en-status.en-err { color: var(--err); }
.tr-bar { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; }
.tr-bar .tr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-bar .btn-2 { gap: 6px; }
.tr-bar .tr-status { flex: 1 1 260px; }
.tr-bar .tr-status.en-err { color: var(--err); }

/* Tickets samenvoegen (popup op de ticketpagina) */
.merge-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.merge-pick legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.check.merge-row { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; gap: 12px; cursor: pointer; background: var(--card); }
.check.merge-row:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); }
.check.merge-row input { flex: none; accent-color: var(--accent); }
.check.merge-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.check.merge-row b { font-weight: 600; overflow-wrap: anywhere; }
.check.merge-row small { font-size: 13px; }
.merge-pick.has-error .check.merge-row { border-color: var(--err); }
