/* MipIT Hub – ontwerpsysteem voor login en klantportal */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3fafc;
  --text: #14232b;
  --muted: #5b6b74;
  --line: #e0e7eb;
  --brand: #007f99;
  --brand-strong: #00647a;
  --brand-soft: #e5f5f9;
  --brand-ink: #ffffff;
  --ok: #067a55;       --ok-soft: #e0f6ed;
  --bad: #c0283f;      --bad-soft: #fdebee;
  --warn: #93610a;     --warn-soft: #fff3d8;
  --idle: #5b6b74;     --idle-soft: #eef6f8;
  --graph-out: color-mix(in srgb, var(--brand) 45%, var(--surface));
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 35, 43, .05), 0 8px 24px rgba(20, 35, 43, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0f171b;
  --surface: #172127;
  --surface-2: #1c2830;
  --text: #e8eff2;
  --muted: #9fb0b8;
  --line: #2a3941;
  --brand: #3fc6e0;
  --brand-strong: #6fd6ea;
  --brand-soft: #14323b;
  --brand-ink: #062229;
  --ok: #45dba7;   --ok-soft: #0d3a2f;
  --bad: #ff8a9a;  --bad-soft: #43202b;
  --warn: #f2c265; --warn-soft: #3a3020;
  --idle: #9fb0b8; --idle-soft: #22303a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Knoppen en formulieren */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.input {
  width: 100%; min-height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-error { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }

/* Statuslabels */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-online { color: var(--ok); background: var(--ok-soft); }
.pill-offline { color: var(--bad); background: var(--bad-soft); }
.pill-unknown, .pill-disabled { color: var(--idle); background: var(--idle-soft); }
.pill-online::before { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill-online::before { animation: none; } * { transition: none !important; } }

/* Inlogpagina */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(30, 169, 201, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(14, 90, 120, .45), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    #07161d;
}
.aside-logo { display: inline-block; width: fit-content; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(0, 0, 0, .35)); }
.aside-logo:hover { text-decoration: none; }
.auth-aside h2, .auth-aside p, .auth-points { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.auth-aside h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 15ch; }
.auth-aside p { color: rgba(255, 255, 255, .78); max-width: 42ch; margin-top: 14px; font-size: 16px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points svg { width: 18px; height: 18px; color: #3fc6e0; flex: none; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(100%, 400px); display: grid; gap: 22px; }
.auth-card h1 { font-size: 27px; }
.auth-card form { display: grid; gap: 16px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); }
.auth-mobile-logo { display: none; }
@media (max-width: 860px) {
  /* Op de telefoon: fotobanner bovenaan, het formulier als kaart eroverheen */
  .auth { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  .auth-aside { min-height: 290px; padding: 22px 22px 52px; gap: 14px; }
  .auth-aside .aside-logo .logo { height: 52px; width: auto; }
  .auth-aside .aside-copy p, .auth-aside .auth-points { display: none; }
  .auth-aside h2 { font-size: 24px; max-width: 16ch; }
  .auth-main { flex: 1; position: relative; margin-top: -26px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 28px 20px 40px; place-items: start center; box-shadow: 0 -10px 30px rgba(0, 0, 0, .12); z-index: 3; }
  /* de taal- en themaknop staan rechtsboven in de kaart: houd de kop ervan vrij */
  .auth-card h1 { padding-right: 112px; }
}

/* Merk en logo */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo { display: block; height: auto; }
.brand .logo { height: auto; width: auto; max-height: 44px; }
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-light { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 30px); }
.page-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cam { display: flex; flex-direction: column; color: inherit; transition: transform .15s, border-color .15s; }
.cam:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--idle-soft)); display: grid; place-items: center; color: var(--muted); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 34px; height: 34px; opacity: .55; }
.thumb .pill { position: absolute; top: 12px; left: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.cam-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.cam-body h3 { font-size: 16.5px; }
.cam-body p { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.cam-body p svg { width: 16px; height: 16px; flex: none; }
.btn svg, .icon-btn svg { flex: none; }
.cam-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

.empty { text-align: center; padding: 56px 24px; display: grid; gap: 8px; justify-items: center; }
.empty svg { width: 44px; height: 44px; color: var(--muted); }
.empty h2 { font-size: 20px; }

/* Cameradetail */
.detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.player { aspect-ratio: 16 / 9; background: #05090b; position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #b8c6cc; padding: 24px; }
.panel { padding: 20px; display: grid; gap: 14px; }
.panel h2 { font-size: 16px; }
.dl { display: grid; gap: 10px; margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl div:last-child { border: 0; padding: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; text-align: right; }
.code { width: 100%; min-height: 110px; padding: 12px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); resize: vertical; }
.toast { font-size: 13px; color: var(--ok); min-height: 1.2em; }


/* Tabellen en werkbalk */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.toolbar .search { position: relative; flex: 1 1 260px; max-width: 420px; }
.toolbar .search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.toolbar .search .input { padding-left: 40px; }
select.input { padding-right: 34px; width: auto; min-width: 170px; }
/* Eén pijltje voor alle keuzemenu’s in de hele Hub: even ver van de rand, in de kleur van het thema, ook bij donker */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 15px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select:not([multiple]):not([size]):disabled { cursor: not-allowed; opacity: .6; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.cell-main { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 600; }
.cell-main:hover { text-decoration: none; color: var(--brand); }
.mini-thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 7px; background: linear-gradient(135deg, var(--surface-2), var(--idle-soft)); display: grid; place-items: center; color: var(--muted); overflow: hidden; position: relative; flex: none; }
.mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-thumb svg { width: 20px; height: 20px; opacity: .6; }
.sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pill-active { color: var(--ok); background: var(--ok-soft); }
.pill-failed { color: var(--bad); background: var(--bad-soft); }
.pill-inactive { color: var(--idle); background: var(--idle-soft); }

/* Dashboard */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-head h2 { font-size: 16.5px; }
.list { list-style: none; margin: 0; padding: 8px 8px 12px; display: grid; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; }
.list li:hover { background: var(--surface-2); }
.list .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.list .ico svg { width: 18px; height: 18px; }
.ico-bad { background: var(--bad-soft); color: var(--bad); }
.ico-warn { background: var(--warn-soft); color: var(--warn); }
.ico-ok { background: var(--ok-soft); color: var(--ok); }
.list b { display: block; font-size: 14.5px; }
.list small { color: var(--muted); font-size: 13px; }
.checks { display: grid; gap: 0; padding: 8px 20px 18px; }
.checks div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks div:last-child { border: 0; }
.checks dt { color: var(--muted); }
.checks dd { margin: 0; }
.cards-tight { padding: 0; }
/* Formulieren */
.alert-success { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-error { font-weight: 500; }
.form-card { overflow: visible; }
.form-section { display: grid; gap: 20px; padding: 28px; border-bottom: 1px solid var(--line); }
.form-section > header h2 { font-size: 17px; }
.form-section > header p { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-section { padding: 20px; } }
.field .hint, .hint { color: var(--muted); font-size: 13px; }
textarea.input { min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
/* Opslagbalk: in de hele Hub blijft de balk met de knoppen onderaan beeld staan zolang het formulier zichtbaar is (zie ook .st-savebar) */
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; position: relative; margin: 8px 20px 20px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(10, 30, 40, .14); }
.form-actions.form-actions-inline { position: static; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.form-actions [data-dirty-note] { margin-right: auto; }
.card:has(.form-actions), .form-card { overflow: visible; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
fieldset.plain legend { font-weight: 700; font-size: 14.5px; padding: 0; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
/* Twee keuzes naast elkaar (particulier of bedrijf bij een contact) */
.choice-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 420px; margin-bottom: 16px; }
.choice-pair .choice { padding: 10px 14px; align-items: center; }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice input[type="checkbox"], .choice input[type="radio"] { flex: none; margin-top: 3px; width: 19px; height: 19px; accent-color: var(--brand); }
.choice b { display: block; font-size: 14.5px; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.choice small[hidden] { display: none; }
.choice[hidden] { display: none; }
[data-kind][hidden] { display: none !important; }
.warn-box { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.empty-inline { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.empty-inline[hidden] { display: none; }

/* Detailpagina's */
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0 20px 20px; }
.tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; align-content: start; gap: 4px; }
.tile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile b { font-size: 16px; }
.tile small { color: var(--muted); font-size: 12.5px; }
.preview { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--idle-soft)); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview svg { width: 44px; height: 44px; opacity: .5; }
.preview .player-off { color: var(--muted); }
.preview .player-off svg { display: block; margin: 0 auto 10px; }
.preview .pill { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.side-stack { display: grid; gap: 20px; }
.link-list { display: grid; gap: 4px; padding: 8px 12px 14px; }
.link-list a, .link-list button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 10px; color: var(--text); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.link-list a:hover, .link-list button:hover:not(:disabled) { background: var(--surface-2); text-decoration: none; }
.link-list button:disabled { color: var(--muted); cursor: not-allowed; font-weight: 500; }

/* Rijen met avatar (klanten, gebruikers, camera's) */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); color: inherit; }
.row:last-child { border: 0; }
.row:hover { background: var(--surface-2); text-decoration: none; }
.row[hidden] { display: none; }
.row-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); padding-top: 12px; padding-bottom: 12px; }
.row-head:hover { background: var(--surface-2); }
.row .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row .who b { display: block; font-size: 14.5px; }
.row .who small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; }
.row .num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 3ch; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr auto; } .row > :nth-child(n+3):not(:last-child) { display: none; } .row-head { display: none; } }
.avatar-lg { width: 44px; height: 44px; font-size: 16px; flex: none; }
.count-badge { padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }
.assigned { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.assigned a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; background: var(--surface); }
.assigned a:hover { border-color: var(--brand); text-decoration: none; }
.assigned b { font-size: 13px; color: var(--brand); }
.assigned span { font-weight: 600; font-size: 14.5px; }
.assigned small { color: var(--muted); font-size: 13px; }
.relation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 20px 20px; }
.relation div { text-align: center; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.relation b { display: block; font-size: 26px; }
.relation span { color: var(--muted); font-size: 13.5px; }
.customer-link { display: grid; gap: 2px; margin: 0 20px 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; background: var(--surface-2); }
.customer-link:hover { border-color: var(--brand); text-decoration: none; }
.customer-link span { color: var(--muted); font-size: 14px; }
.customer-link b { font-size: 16px; }
.customer-link small { color: var(--brand); font-weight: 600; }

/* Streamserver */
.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.server-card { padding: 22px; display: grid; gap: 18px; }
.server-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.server-card h2 { font-size: 17.5px; }
.server-card header p { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.mini-stats div { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.mini-stats dt { color: var(--muted); font-size: 12.5px; }
.mini-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.gauge { display: grid; gap: 10px; padding: 18px 20px; }
.gauge span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.gauge b { font-size: 25px; letter-spacing: -.02em; }
.gauge small { color: var(--muted); font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: var(--idle-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bar i.hot { background: var(--bad); }
.cam-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); color: inherit; }
.cam-row:last-child { border: 0; }
.cam-row:hover { background: var(--surface-2); text-decoration: none; }
.cam-row b { display: block; }
.cam-row small { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .cam-row { grid-template-columns: auto 1fr; } .cam-row .pill:nth-of-type(n+2) { display: none; } }
.error-page { display: grid; place-items: center; text-align: center; gap: 12px; padding: 72px 20px; }
.error-page strong { font-size: 64px; color: var(--brand); letter-spacing: -.03em; line-height: 1; }
.error-page h1 { font-size: 26px; max-width: 30ch; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar .count { margin-left: auto; color: var(--muted); font-size: 13.5px; }.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 44px; }
.form-grid { align-items: start; }

/* Themakeuze */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 6px; z-index: 50; display: grid; gap: 2px; }
.menu-title { margin: 0; padding: 8px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.menu-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button b { display: block; font-size: 14px; }
.menu-pop button small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.menu-pop button[aria-checked="true"] { background: var(--brand-soft); }
.menu-pop button[aria-checked="true"] b { color: var(--brand); }
.menu-pop button[aria-checked="true"]::after { content: ""; width: 16px; height: 16px; flex: none; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.theme-menu .ti { display: none; }
html[data-theme-pref="auto"] .theme-menu .ti-auto, html[data-theme-pref="light"] .theme-menu .ti-light, html[data-theme-pref="dark"] .theme-menu .ti-dark { display: grid; place-items: center; }
.auth-foot a { font-weight: 600; }
.auth-card form + .auth-foot { margin-top: -6px; }

/* Themamenu op de inlogpagina's */
.auth-main { position: relative; }
.auth-theme { position: absolute; top: 18px; right: 18px; z-index: 5; display: flex; gap: 8px; }
.lang-menu .lang-code { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lang-menu .menu-pop a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.auth-theme .menu-pop { right: 0; }

/* Aan/uit-schakelaar en platform toevoegen */
.switch-form { margin: 0; display: flex; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--idle-soft); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 1px; }
.add-output { margin: 8px 20px 0; }
.add-output > summary { list-style: none; cursor: pointer; width: fit-content; }
.add-output > summary::-webkit-details-marker { display: none; }
.add-output-form { display: grid; gap: 16px; padding: 16px 0 4px; }
/* Beschikbaarheid, account en grafiek */
.uptime { font-variant-numeric: tabular-nums; }
.uptime-online { color: var(--ok); }
.uptime-warn { color: var(--warn); }
.uptime-offline { color: var(--bad); }
button.choice { font: inherit; color: inherit; text-align: left; width: 100%; }
.choice[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart { padding: 8px 20px 16px; }
.chart svg { width: 100%; height: 150px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 4px; }
/* Camera-instellingen */
.logo-preview { width: 150px; height: 90px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; color: var(--muted); font-size: 13px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.switch-line { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 400; margin-top: 8px; cursor: pointer; }
.switch-line input { width: 17px; height: 17px; accent-color: var(--brand); }
/* Livestream-pop-up */
.preview-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: rgba(5, 9, 11, .18); cursor: pointer; }
.preview-play span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #10242c; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .15s; }
.preview-play:hover span { transform: scale(1.08); }
.preview-play svg { width: 30px; height: 30px; opacity: 1; }
/* Bediening (camera en YouTube) */
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn-danger:hover { background: var(--bad-soft); }
.ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.ctl-row:first-of-type { border-top: 0; }
.ctl-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ctl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ctl-form { margin: 0; }
.ctl-link { border-top: 1px solid var(--line); padding: 4px 20px; }
.ctl-link summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--brand); list-style: none; }
.ctl-link summary::-webkit-details-marker { display: none; }
.ctl-link summary svg { width: 18px; height: 18px; }
.ctl-link form { display: grid; gap: 12px; padding: 4px 0 16px; }
.ctl-link .muted { font-size: 13px; margin: 0; }
.ctl-link .btn { justify-self: start; }
button[disabled][data-busy] { opacity: .6; cursor: progress; }.preview-play { flex-direction: column; gap: 10px; align-content: center; justify-content: center; display: flex; align-items: center; }
.preview-play em { font-style: normal; font-weight: 600; font-size: 13px; color: #fff; background: rgba(5, 9, 11, .6); padding: 5px 12px; border-radius: 999px; }
/* Weer */
.weather-place { color: var(--muted); font-size: 13px; }
.weather-body { padding: 4px 20px 18px; display: grid; gap: 16px; }
.w-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.w-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); flex: none; }
.w-icon svg { width: 36px; height: 36px; }
.w-temp { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.w-desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.w-range { margin-left: auto; display: grid; gap: 3px; text-align: right; font-size: 13px; color: var(--muted); }
.w-range b { color: var(--text); font-weight: 600; }
.w-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.w-tiles > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.w-tiles dt { font-size: 12px; color: var(--muted); }
.w-tiles dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.w-tiles small { font-weight: 500; color: var(--muted); font-size: 12px; }
.w-hours { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; text-align: center; }
.w-hours li { display: grid; justify-items: center; gap: 4px; font-size: 12.5px; }
.w-hours span { color: var(--muted); }
.w-hours svg { width: 22px; height: 22px; color: var(--brand); }
.w-hours b { font-weight: 600; }
.w-hours small { color: var(--brand); font-size: 11px; min-height: 13px; }
.w-foot { margin: 0; font-size: 12px; color: var(--muted); }
.w-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.weather-empty { display: grid; gap: 12px; justify-items: start; padding-top: 6px; }
.weather-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.weather-skeleton { display: grid; gap: 10px; }
.weather-skeleton span { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: weather-shimmer 1.4s linear infinite; }
@keyframes weather-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .weather-skeleton span { animation: none; } }
.place-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); max-width: 460px; }
.place-current[hidden], .place-search[hidden] { display: none; }
.place-current span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.place-current svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.place-search { position: relative; max-width: 460px; }
.place-results { position: absolute; z-index: 5; inset: calc(100% + 6px) 0 auto 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.place-results[hidden] { display: none; }
.place-results button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.place-results button:hover, .place-results button:focus-visible { background: var(--brand-soft); outline: none; }
.place-results small { color: var(--muted); font-size: 12.5px; }
.place-none { padding: 10px; color: var(--muted); font-size: 14px; }
.weather-setup { display: grid; gap: 20px; }
/* Telefoon */
@media (max-width: 560px) {
  .weather-place { display: none; }
  .w-range { margin-left: 0; text-align: left; }
  .card-head { flex-wrap: wrap; gap: 8px; }
}

/* Tabellen worden op een telefoon lijstjes met kaartjes */
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; min-width: 0; }
  .table td:first-child { grid-column: 1 / -1; }
  .table td[data-label]:not(:first-child):not(:empty)::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .table tbody tr:hover td { background: none; }
}
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split-even { grid-template-columns: minmax(0, 1fr); } }
/* Statistieken */
.stat-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat-filters form { margin: 0; }
.stat-filters select.input { min-width: 190px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.seg a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.live-count { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.chart-body { padding: 14px 20px 18px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; border-bottom: 1px solid var(--line); }
.bar { position: relative; flex: 1; height: var(--h); min-height: 0; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 78%, var(--surface)); transition: background .15s; }
.bar:hover { background: var(--brand); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.share-list { list-style: none; margin: 0; padding: 12px 20px 22px; display: grid; gap: 14px; }
.share-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.share-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-num { font-weight: 600; text-align: right; }
.share-num small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.share-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; order: 3; }
.share-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--brand); }
.stat-note { font-size: 13px; padding: 4px 20px 16px; }
p.stat-note:not(.card *) { padding: 0; }
@media (max-width: 720px) { .stat-filters { width: 100%; } .stat-filters select.input { flex: 1; } .seg { width: 100%; } .seg a { flex: 1; text-align: center; padding: 9px 4px; } }
.bars { justify-content: space-around; }
.bar { max-width: 56px; }

.viewers-now { display: flex; align-items: center; gap: 10px; padding: 8px 20px 20px; font-size: 14.5px; color: var(--muted); }
.viewers-now b { font-size: 30px; line-height: 1; color: var(--text); letter-spacing: -.02em; }

/* Maandrapport */
.report { padding: 28px; display: grid; gap: 22px; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--brand); }
.report-kicker { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.report-head h2 { font-size: 26px; margin: 4px 0 6px; }
.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.report-summary > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.report-summary span { display: block; font-size: 12px; color: var(--muted); }
.report-summary b { display: block; margin-top: 3px; font-size: 20px; }
.report-camera { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); break-inside: avoid; }
.report-camera h3 { font-size: 17px; }
.report-camera h3 small { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0; }
.report-grid dt { font-size: 12px; color: var(--muted); }
.report-grid dd { margin: 2px 0 0; font-weight: 650; font-size: 16px; }
.report-grid dd small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.report-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.report-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.report-foot { font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .report { padding: 18px; } .report-head { flex-direction: column-reverse; } .report-table { display: block; overflow-x: auto; } }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .sidebar, .app-header, .mobile-menu, .menu-toggle, .no-print { display: none !important; }
  .app { display: block; }
  .workspace { padding: 0 !important; max-width: none; }
  .card.report { border: 0; box-shadow: none; padding: 0; }
  .logo-on-dark { display: none !important; } .logo-on-light { display: block !important; }
  .report-summary > div { background: #fff; }
}
/* Snelzoeken */
.palette { width: min(600px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); overflow: hidden; }
.palette::backdrop { background: rgba(5, 9, 11, .55); }
.pal-bar { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-bar svg { width: 20px; height: 20px; flex: none; }
.pal-bar input { flex: 1; min-width: 0; padding: 16px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.pal-bar input::-webkit-search-cancel-button { display: none; }
.pal-bar kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; font: 12px inherit; color: var(--muted); }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.pal-list a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.pal-list a:hover { text-decoration: none; }
.pal-list a[aria-selected="true"] { background: var(--brand-soft); }
.pal-list a[aria-selected="true"] b { color: var(--brand); }
.pal-list b { font-size: 15px; }
.pal-list small { color: var(--muted); font-size: 13px; }
.pal-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.search-open { gap: 10px; }
.search-open kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; font: 11.5px inherit; color: var(--muted); }

/* Landenkaart */
.geo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 8px 24px; align-items: center; padding: 6px 20px 4px; }
.world { width: 100%; height: auto; }
.world path { fill: var(--surface-2); stroke: var(--surface); stroke-width: .35; }
.world path.has { fill: color-mix(in srgb, var(--brand) calc(var(--i) * 100%), var(--surface-2)); }
.world path.has:hover { stroke: var(--text); stroke-width: .8; }
.country-list { list-style: none; margin: 0; padding: 0; }
.cc { display: inline-grid; place-items: center; min-width: 28px; height: 20px; margin-right: 8px; padding: 0 4px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 900px) { .geo { grid-template-columns: minmax(0, 1fr); } }

/* Timelapse */
.tl-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-lengths { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tl-limit { margin-right: auto; font-size: 13px; }
.tl-list { display: grid; gap: 14px; padding: 14px 20px 20px; }
.tl-job { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tl-head b { display: block; font-size: 15px; }
.tl-head .muted { font-size: 13px; }
.tl-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tl-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s ease; }
.tl-msg { margin: 0; font-size: 13.5px; }
.tl-video { width: 100%; max-height: 460px; border-radius: 10px; background: #05090b; }
.tl-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.tl-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
@media (max-width: 720px) { .tl-limit { width: 100%; } }
/* Tweestapsverificatie */
.mfa-body { display: grid; gap: 14px; padding: 14px 20px 20px; }
.mfa-body p { margin: 0; }
.code-input { font-size: 20px; letter-spacing: .18em; text-align: center; max-width: 260px; font-variant-numeric: tabular-nums; }
.auth-card .code-input { max-width: none; }
.recovery-list { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font: 600 15px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.mfa-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 22px; }
.mfa-steps li { counter-increment: step; position: relative; display: grid; gap: 8px; padding-left: 44px; justify-items: start; }
.mfa-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.secret-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.secret-box code { font: 600 17px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; word-break: break-all; }
.mfa-confirm { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media print { body:has(.recovery-list) .card:not([aria-label="Herstelcodes"]) { display: none !important; } }
.qr-box { width: 208px; max-width: 100%; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
/* Passkeys */
.passkey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.passkey-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.passkey-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.passkey-list b { display: block; font-size: 14.5px; }
.passkey-list small { display: block; color: var(--muted); font-size: 12.5px; }
.passkey-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.passkey-icon svg { width: 19px; height: 19px; }
.passkey-add { display: flex; gap: 10px; flex-wrap: wrap; }
.passkey-add .input { flex: 1; min-width: 200px; }
.passkey-add[hidden], .passkey-button[hidden] { display: none; }
.passkey-login { display: grid; gap: 14px; }
.passkey-button { padding: 14px; font-size: 16px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mfa-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: 16px 20px 20px; }
.mfa-choice { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mfa-choice p { margin: 0; font-size: 14px; }
.mfa-choice-head { display: flex; align-items: center; gap: 12px; }
.mfa-choice-head b { display: block; font-size: 16px; }
/* Logboek */
.audit-filters { display: grid; gap: 12px; padding: 16px 20px 6px; }
.audit-search { display: flex; gap: 10px; align-items: center; }
.search-wrap { position: relative; flex: 1; max-width: 420px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 40px; width: 100%; }
.seg-wrap { flex-wrap: wrap; justify-self: start; }
.audit-table td { vertical-align: top; }
.audit-time, .audit-who { display: grid; gap: 1px; line-height: 1.3; }
.audit-time small, .audit-who small { color: var(--muted); font-size: 12.5px; }
.audit-what { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; }
.audit-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--idle); }
.audit-dot.audit-inloggen { background: var(--brand); } .audit-dot.audit-beveiliging { background: var(--bad); } .audit-dot.audit-camera { background: var(--ok); }
.audit-dot.audit-streamen { background: var(--warn); } .audit-dot.audit-beheer { background: #7c5cd6; }
.audit-target { color: var(--muted); overflow-wrap: anywhere; }
.audit-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px 18px; font-size: 13.5px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .audit-search { flex-wrap: wrap; } .search-wrap { max-width: none; } }
/* Opmaak-controle: rustiger en gelijkmatiger */
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card-head { padding: 18px 20px 6px; }


/* Tabellen: kolommen naast de naam blijven op één regel */
.table td:first-child { min-width: 200px; }
.table td:not(:first-child) { white-space: nowrap; }
.audit-table td { white-space: normal; }
.audit-table td:first-child { min-width: 0; }

/* Bediening: naam en status bovenaan, knoppen eronder, in elke rij hetzelfde */
.ctl-row { display: grid; justify-content: stretch; gap: 10px; }
.ctl-row .ctl-actions { justify-content: flex-start; }
.ctl-row .ctl-actions:empty { display: none; }

/* Bestandskeuze in dezelfde stijl als de knoppen */
input[type="file"].input { padding: 7px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* Uitleg onder velden mag de volle breedte gebruiken */
.field .hint { max-width: none; }
.viewers-now b:empty::before { content: '–'; }
/* Tabellen: compacter, zodat namen niet in drieën breken */
.table th, .table td { padding-left: 12px; padding-right: 12px; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table td:first-child { min-width: 0; }
.cell-main > span:last-child { min-width: 120px; }
.mini-thumb { width: 56px; }
@media (max-width: 1240px) { .table .col-server { display: none; } }
/* Lijsten (klanten, gebruikers): vaste kolombreedtes, zodat kop en rijen precies onder elkaar staan (alleen op brede schermen) */
@media (min-width: 861px) { .row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 130px 130px 90px; } .row-customers { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 130px 100px; } }
.row-head span:nth-child(n+3):not(.num) { justify-self: start; }
.stat-tiles { padding: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-tiles .tile { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-tiles .tile b { font-size: 24px; letter-spacing: -.02em; }
.stat-tiles .tile b { font-size: 20px; white-space: nowrap; }
.cam-viewers[hidden] { display: none; }
.tile b span:not(.stat-of):not(.pill), .stat b span:not(.stat-of):not(.pill) { font-size: inherit; color: inherit; font-weight: inherit; }
.report-summary b { font-size: 18px; white-space: nowrap; }
/* Detailpagina's en lijsten op kleine schermen: alles onder elkaar, niets over elkaar heen */
.row-users { grid-template-columns: minmax(0, 2fr) auto auto; }
.row-output { grid-template-columns: auto minmax(0, 2fr) auto auto; }
.split-detail { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
@media (max-width: 960px) { .split-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .row-users { grid-template-columns: minmax(0, 1fr) auto; }
  .row-output { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .row-output > * { display: revert; }
  .row-output > :nth-child(2) { flex: 1 1 150px; min-width: 0; }
}
.field, .form-grid > *, .split > *, .detail > *, .page > *, .workspace > *, .st-form > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
img, video, svg { max-width: 100%; }
.choice-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tl-lengths { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.assigned { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
/* Lijsten op een telefoon: alleen de naam en het laatste getal, nooit meer kolommen dan er ruimte is */
@media (max-width: 860px) {
  .row:not(.row-users):not(.row-output) { grid-template-columns: minmax(0, 1fr) auto; }
  .row:not(.row-users):not(.row-output) > :nth-child(n+2):not(:last-child) { display: none; }
}
/* Kleine schermen: kaarten nooit breder dan het scherm, meldingen mogen afbreken */
.server-cards { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
@media (min-width: 1000px) { .server-cards > .server-card:only-child { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 28px; } .server-cards > .server-card:only-child header { flex-direction: column; gap: 8px; } }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.list li { flex-wrap: wrap; }
.list li > div { flex: 1 1 200px; min-width: 0; }
/* Timelapses als kleine kaartjes, meerdere naast elkaar */
.tl-list { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); align-items: start; }
.tl-video { aspect-ratio: 16 / 9; max-height: none; object-fit: contain; }
.tl-head { flex-wrap: wrap; }
.tl-head > div { min-width: 0; flex: 1 1 150px; }
.tl-actions .head-actions { margin-left: auto; }
.tl-modes { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
[data-tl-to-field][hidden] { display: none; }

/* Streamen: platformen per camera en het overzicht van alle camera's */
.pf-intro { padding: 6px 20px 0; margin: 0; font-size: 14px; }
.pf-note { padding: 12px 20px 0; }
.pf-list { display: grid; margin-top: 14px; }
.pf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.pf-meta { display: flex; align-items: center; gap: 14px; }
.pf-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-name > span:last-child { display: grid; min-width: 0; }
.pf-name b { font-size: 15px; }
.pf-name small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.pf-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pf-mark svg { width: 20px; height: 20px; }
.pf-mark.pf-youtube { color: #d92d20; background: color-mix(in srgb, #d92d20 10%, var(--surface)); border-color: color-mix(in srgb, #d92d20 22%, var(--line)); }
.pf-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pf-actions form { margin: 0; }
.pf-form { display: grid; gap: 12px; padding: 16px 20px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.pf-form[hidden] { display: none; }
.pf-list + .add-output, .pf-list + .pf-note { margin: 16px 20px 20px; padding: 0; }
.pf-list + .pf-note { margin-top: 16px; }
/* Op een smalle kaart (telefoon of naast het beeld): naam bovenaan, status en knop eronder */
.pf-list { container-type: inline-size; }
@container (max-width: 560px) {
  .pf-name { grid-column: 2 / -1; }
  .pf-meta { grid-column: 2 / -1; flex-wrap: wrap; justify-content: space-between; }
}

.sv-list { display: grid; }
.sv-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; align-items: center; gap: 12px 20px; padding: 16px 20px; border-top: 1px solid var(--line); color: inherit; }
.sv-item:first-child { border-top: 0; }
.sv-item:hover { background: var(--surface-2); text-decoration: none; }
.sv-cam { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sv-title { display: grid; min-width: 0; }
.sv-title b { font-size: 15px; }
.sv-title small { color: var(--muted); font-size: 13px; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-side { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.chip-live { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip-live i { background: var(--ok); }
.chip-fail { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.chip-fail i { background: var(--bad); }
@media (max-width: 1180px) {
  .sv-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cam side" "chips chips"; }
  .sv-cam { grid-area: cam; }
  .sv-chips { grid-area: chips; }
  .sv-side { grid-area: side; }
}
@media (max-width: 560px) {
  .sv-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cam" "chips" "side"; }
  .sv-side { justify-content: space-between; }
}
.add-output { container-type: inline-size; }
@container (max-width: 520px) { .add-output-form .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Menu met extra mogelijkheden per platform */
.card:has(.pf-menu) { overflow: visible; }
.pf-menu { position: relative; }
.pf-menu > summary { list-style: none; cursor: pointer; }
.pf-menu > summary::-webkit-details-marker { display: none; }
.pf-more { width: 38px; padding: 0; justify-content: center; }
.pf-more svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.pf-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px rgba(15, 23, 42, .16); display: grid; gap: 2px; }
.pf-pop form { margin: 0; }
.pf-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.pf-item svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.pf-item:hover, .pf-item:focus-visible { background: var(--surface-2); text-decoration: none; }
.pf-danger, .pf-danger svg { color: var(--bad); }
.pf-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.pf-name small.pf-bad { color: var(--bad); }
.pf-actions .btn svg { width: 16px; height: 16px; }
.pf-cardactions { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 20px 20px; }
.pf-cardactions .btn svg { width: 16px; height: 16px; }

/* YouTube-log */
.yt-logs { display: grid; }
.yt-log { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.yt-log-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yt-log-head > div { display: grid; gap: 2px; min-width: 0; }
.yt-log-head .muted { font-size: 13px; }
.yt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yt-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.yt-steps small { display: block; color: var(--bad); font-size: 12.5px; overflow-wrap: anywhere; }
.yt-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.yt-steps .bad .yt-dot { background: var(--bad); }
/* Klanten en teams: tabbladen, niveaus en camerakeuze */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab-count { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.level-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); align-items: stretch; }
.level-choice > span { display: grid; gap: 6px; }
.level-can { margin: 4px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 12.5px; display: grid; gap: 2px; }
.level-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; padding: 14px 20px 20px; }
.level-legend p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
[data-member-cameras][hidden] { display: none; }
.sv-item .sv-side form { margin: 0; }
/* Klantenlijst op middelbrede schermen: de kolom "Bijgewerkt" vervalt, zodat niets over elkaar loopt */
@media (min-width: 861px) and (max-width: 1240px) {
  .row-customers { grid-template-columns: minmax(0, 2fr) 120px 90px; }
  .row-customers > :nth-child(2) { display: none; }
}
.tabs { overflow-y: hidden; }
/* Acties in lijsten mogen op smalle schermen naar een volgende regel */
.sv-side { flex-wrap: wrap; }
.sv-side .btn { white-space: nowrap; }
@media (max-width: 560px) { .sv-side { justify-content: flex-start; } }

/* Beheeroverzicht: laatste activiteit, camera's nu en weergaven per dag */
.stat-of { font-size: 16px; font-weight: 600; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 6px 20px 14px; display: grid; }
.feed li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed li > div { flex: 1; min-width: 0; display: grid; }
.feed b { font-size: 14px; }
.feed small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.feed time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.feed .audit-dot { margin-top: 6px; flex: none; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; padding: 16px 20px 20px; }
.cam-card { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; align-content: start; }
.cam-card:hover { background: var(--surface-2); text-decoration: none; }
.cam-card.cam-off { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.cam-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--idle-soft)); display: grid; place-items: center; color: var(--muted); }
.cam-thumb > svg { width: 28px; height: 28px; opacity: .5; }
.cam-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-off .cam-thumb img { filter: grayscale(1); opacity: .55; }
.cam-viewers { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 27, .72); color: #fff; font-size: 12.5px; font-weight: 700; }
.cam-viewers svg { width: 14px; height: 14px; }
.cam-info { display: grid; padding: 0 2px; }
.cam-info b { font-size: 15px; }
.cam-info small { color: var(--muted); font-size: 13px; }
.cam-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 2px; }
.bars { padding: 8px 20px 18px; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }

/* Camerapagina: precies dezelfde speler als op de website van de klant (rand, afronding en schaduw van de speler zelf).
   De kaart eromheen tekent niets. De speler houdt in zijn vak 2,4% marge vrij voor de schaduw; het vak is daarom
   iets breder (100% / 0,952) en schuift die marge naar buiten, zodat de speler zelf gelijk valt met de andere kaarten. */
.card:has(> .preview-embed) { background: none; border: 0; box-shadow: none; overflow: visible; }
.preview-embed { line-height: 0; }
/* De speler is een lichte pagina; zonder dit tekent de browser in de donkere Hub een witte achtergrond achter het iframe. */
iframe[data-hub-player] { color-scheme: light; background: transparent; }
.workspace:has(.preview-embed) { overflow-x: clip; } /* de lege schaduwmarge mag op smalle schermen niet tot een schuifbalk leiden */
.preview-embed iframe { display: block; width: calc(100% / .952); max-width: none; margin: calc(-2.4% / .952); aspect-ratio: 16 / 11; border: 0; }

/* ===== Platformschil: één opbouw voor beheerders en klanten (zijbalk, bovenbalk, menu op telefoon) ===== */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: visible; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar .brand { flex-direction: column; align-items: flex-start; gap: 4px; padding: 2px 8px 18px; }
.sidebar .brand span { font-size: 12.5px; color: var(--muted); font-weight: 600; padding-left: 2px; }
.sidebar .brand .logo { max-height: 46px; }
.brand span { white-space: nowrap; }
.brand-compact, .menu-toggle, .mobile-menu { display: none; }

.nav-groups { display: grid; gap: 18px; }
.nav-group { display: grid; gap: 2px; }
.nav-caption { margin: 0; padding: 4px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-groups a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav-groups a svg { width: 19px; height: 19px; flex: none; }
.nav-groups a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-groups a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px clamp(14px, 3vw, 40px); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.profile-btn { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 4px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: var(--text); }
.profile-btn:hover, .profile[open] > .profile-btn { background: var(--surface-2); border-color: var(--line); }
.user-text { min-width: 0; max-width: 200px; line-height: 1.25; }
.user-text b, .user-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text b { font-size: 14px; }
.user-text span { font-size: 12.5px; color: var(--muted); }
.menu-who { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-who b, .menu-who small { display: block; overflow: hidden; text-overflow: ellipsis; }
.menu-who small { font-size: 12.5px; color: var(--muted); }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.menu-pop a:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop a svg, .menu-pop form button svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.menu-pop form { margin: 0; }
.menu-pop form button { justify-content: flex-start; }

.workspace { min-width: 0; width: 100%; max-width: 2400px; padding: 32px clamp(14px, 3vw, 56px) 64px; display: grid; gap: 28px; align-content: start; }

.menu-toggle { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); place-items: center; cursor: pointer; flex: none; }
.menu-toggle:hover { background: var(--surface-2); }
.mt-bars { position: relative; display: block; width: 18px; height: 12px; }
.mt-bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease, top .2s ease; }
.mt-bars i:nth-child(1) { top: 0; } .mt-bars i:nth-child(2) { top: 5px; } .mt-bars i:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; padding: 10px 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .18); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu:not([hidden]) { animation: mm-in .18s ease-out; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mobile-menu:not([hidden]) { animation: none; } .mt-bars i { transition: none; } }
.mobile-menu .nav-groups a { padding: 12px; font-size: 16px; gap: 14px; }
.mobile-menu .nav-groups a svg { width: 21px; height: 21px; }
.mobile-menu .nav-groups a { color: var(--text); }
.mobile-menu .nav-groups a svg { color: var(--muted); }
.mobile-menu .nav-groups a[aria-current="page"], .mobile-menu .nav-groups a[aria-current="page"] svg { color: var(--brand); }

@media (max-width: 1100px) { .user-text { display: none; } .profile-btn { padding-right: 4px; } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .menu-toggle { display: grid; }
  .brand-compact { display: flex; }
  .brand-compact .logo { max-height: 32px; }
  .mobile-menu:not([hidden]) { display: block; }
  .workspace { padding: 20px 14px 48px; gap: 20px; }
}
@media (max-width: 560px) { .app-header .menu-pop { max-width: calc(100vw - 28px); } }

/* Hoofdonderdelen in de bovenbalk */
.nav-section { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.nav-section svg { width: 16px; height: 16px; }
.nav-section:first-child { margin-top: 4px; }
.sidebar .brand { padding-bottom: 14px; }

/* Dienstenoverzicht en dienstpagina's */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.svc-tile { display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.svc-tile:hover { text-decoration: none; border-color: var(--brand); }
.svc-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.svc-icon svg { width: 22px; height: 22px; }
.svc-tile b { font-size: 17px; }
.svc-text { color: var(--muted); font-size: 14px; line-height: 1.5; }
.svc-tile > .btn, .svc-tile > .pill { margin-top: 12px; align-self: end; }.svc-tile > .pill { justify-self: start; }
.svc-pages { margin-top: 6px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.alert-info { background: var(--brand-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.vb-customer { margin-bottom: 10px; }
.vb-customer > summary { display: grid; grid-template-columns: minmax(220px, 1.6fr) 150px minmax(120px, 1fr) 110px 110px 110px; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.vb-customer > summary::-webkit-details-marker { display: none; }
.vb-customer > summary::before { content: "›"; position: absolute; margin-left: -12px; color: var(--muted, #6b7280); transition: transform .15s; }
.vb-customer[open] > summary::before { transform: rotate(90deg); }
.vb-customer[open] > summary { border-bottom: 1px solid var(--line, #e5e7eb); }
.vb-body { padding: 16px 18px 18px; display: grid; gap: 16px; }
.vb-body > *, .vb-customer > summary > * { min-width: 0; }
@media (max-width: 1250px) { .vb-customer > summary { grid-template-columns: 1fr 1fr; } }
.pill-warn { color: var(--warn, #b45309); background: var(--warn-soft, #fef3c7); }
.stat small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.service-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.service-pick > div { grid-column: 1 / -1; }
.service-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.service-check svg { width: 18px; height: 18px; color: var(--muted); }
.service-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

@media (min-width: 1800px) { .app { grid-template-columns: 272px minmax(0, 1fr); } .workspace { font-size: 15.5px; } }
.nav-groups { gap: 14px; }
.nav-collapsed { margin-top: -10px; }
.side-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 12px 12px; font-size: 16px; font-weight: 700; }
.side-title svg { width: 20px; height: 20px; color: var(--brand); }
.nav-groups { gap: 0; }
/* Bedrijfsgegevens */
.company-form { display: grid; gap: 20px; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 16px 20px 20px; align-items: start; }
.incasso { margin: 0 20px 4px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.incasso h3 { font-size: 15px; margin: 0 0 4px; }
.incasso .cf-grid { padding: 12px 0; }
.incasso[hidden] { display: none; }
.mandate-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.5; cursor: pointer; }
.mandate-check input { margin-top: 4px; }
.mandate.ok { margin: 4px 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; }


/* Dashboard, tickets en mededelingen */
.badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 11.5px/18px inherit; font-style: normal; text-align: center; }
.badge-dot { margin-left: 2px; min-width: 0; width: 8px; height: 8px; padding: 0; background: var(--warn); }
.pill-info { color: var(--brand); background: var(--brand-soft); }
/* Meldingen (.notice): rustig vlak met een ronde icoonknop, zonder gekleurde rand; de knop staat rechts */
.notice { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.notice > div { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; }
.notice > div > * { grid-column: 1; }
.notice > div > .btn { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
.notice b { display: block; font-size: 15.5px; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.notice small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.notice-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; }
.notice-icon svg { width: 19px; height: 19px; }
.notice-maintenance { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.notice-maintenance .notice-icon { background: var(--warn); color: #fff; }
.notice-incident { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.notice-incident .notice-icon { background: var(--bad); color: #fff; }
@media (max-width: 720px) { .notice > div { grid-template-columns: minmax(0, 1fr); } .notice > div > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; } }.stat small { color: var(--muted); }
.stat small a { color: var(--brand); font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.svc-status, .dash-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.svc-status a, .dash-list a, .dash-list li > span:only-child { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--text); }
.svc-status a:hover, .dash-list a:hover { background: var(--surface-2); text-decoration: none; }
.svc-status .svc-icon { width: 38px; height: 38px; margin: 0; flex: none; }
.svc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.svc-name small, .dash-list small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.dash-list li > a > span:first-child, .dash-list li > span:first-child { flex: 1; min-width: 0; }
.dash-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-amount { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.alert-demo { padding: 0 20px; font-size: 12.5px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 12px 20px 20px; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.quick-links a:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-soft); }
.quick-links svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.dist { list-style: none; margin: 0; padding: 8px 20px 18px; display: grid; gap: 12px; }
.dist li { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 32px; gap: 12px; align-items: center; font-size: 14px; }
.dist-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.dist-label svg { width: 16px; height: 16px; }
.dist-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.dist b { text-align: right; }
.tickets-filter { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tickets-filter .input[type=search] { flex: 1 1 220px; max-width: 360px; }
.ticket-form { padding: 20px; display: grid; gap: 16px; max-width: 900px; }
.ticket-form .cf-grid { padding: 0; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ticket-thread { display: grid; gap: 14px; }
.ticket-side { display: grid; gap: 16px; }
.ticket-admin { display: grid; gap: 12px; padding: 16px 20px 20px; }
.ticket-admin label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.msg { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.msg-staff { border-left: 4px solid var(--brand); }
.msg-internal { background: var(--warn-soft); border-color: transparent; border-left: 4px solid var(--warn); }
.msg header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; font-size: 14px; }
.msg header time { margin-left: auto; font-size: 12.5px; }
.msg .avatar { width: 30px; height: 30px; font-size: 12px; }
.msg-body { line-height: 1.6; overflow-wrap: anywhere; }
.reply-form { padding: 16px; display: grid; gap: 12px; }
.reply-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.inline-check { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 13.5px; color: var(--muted); }
.announce-row { display: flex; gap: 12px; align-items: center; }
.announce-form { display: grid; gap: 16px; padding: 16px 20px 20px; }
@media (max-width: 1000px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } .dist li { grid-template-columns: 1fr 32px; } .dist .dist-bar { grid-column: 1 / -1; order: 3; } }
.table td a b { white-space: nowrap; }
/* Hoofdonderdelen in de bovenbalk */
.top-tabs { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: 8px; }
.top-tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.top-tabs a svg { width: 18px; height: 18px; flex: none; }
.top-tabs a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.top-tabs a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.top-tabs .badge { margin-left: 2px; }
.side-back { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.side-back:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.side-back svg { width: 14px; height: 14px; transform: rotate(90deg); }
.mobile-top { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .top-tabs { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 1100px) { .top-tabs a { padding: 10px 11px; } .top-tabs a svg { display: none; } }
/* Hostingbeheer */
.host-form { align-items: end; }
.host-submit { align-self: end; }
.addr { display: flex; align-items: center; gap: 8px; }
.addr .input { min-width: 0; }
.pw-field { display: flex; gap: 6px; align-items: stretch; }
.pw-field .btn { min-height: 0; }
.pw-field .input { flex: 1; min-width: 150px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form .pw-field .input { min-width: 130px; padding-top: 6px; padding-bottom: 6px; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn-danger:hover { background: var(--bad-soft); }
td.wrap { overflow-wrap: anywhere; max-width: 420px; }
/* Hostingbeheer: tabellen, formulieren en meldingen */
.domain-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.domain-picker label { color: var(--muted); font-weight: 600; }
.domain-picker .input { width: auto; min-width: 240px; max-width: 100%; }
.host-table td, .host-table th { vertical-align: middle; }
.host-table td.wrap { overflow-wrap: anywhere; word-break: break-word; }
.host-table .col-actions { text-align: right; white-space: nowrap; width: 1%; }
.btn-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.card-note { margin: 0; padding: 0 20px 16px; font-size: 13.5px; line-height: 1.5; }
.chip-list { list-style: none; margin: 0; padding: 0 20px 8px; display: grid; gap: 8px; }
.chip-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.chip-list .btn { padding: 2px 10px; line-height: 1.4; }
.add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 20px 20px; }
.add-row .input, .add-row .addr { flex: 1 1 200px; min-width: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 20px 20px; }
.danger-row p { margin: 0; flex: 1 1 260px; }
.row-edit { text-align: left; }
.row-edit > summary { list-style: none; cursor: pointer; display: inline-flex; }
.row-edit > summary::-webkit-details-marker { display: none; }
.row-edit[open] > summary { background: var(--surface-2); }
.row-edit-body { display: grid; gap: 14px; margin-top: 10px; padding: 14px; min-width: min(360px, 78vw); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); white-space: normal; }
.row-edit-body form { display: grid; gap: 8px; margin: 0; }
.row-edit-body label { font-size: 13px; font-weight: 600; color: var(--muted); }
.host-form .field { min-width: 0; }
.pw-field { flex-wrap: wrap; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 13px; }
/* Formulieren in kaarten: vaste kolombreedte, veldlabels op één lijn, geen afbrekende knoppen */
.cf-grid, .host-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: end; gap: 16px 20px; }
.cf-grid .field, .host-form .field { display: grid; gap: 6px; align-content: end; min-width: 0; margin: 0; }
.cf-grid .field label, .host-form .field label { margin: 0; line-height: 1.3; }
.pw-field { flex-wrap: nowrap; }
.pw-field .btn { flex: none; white-space: nowrap; }
.addr { flex-wrap: nowrap; }
.addr > .input:first-child { flex: 1 1 40%; min-width: 80px; }
.addr > select.input { flex: 1 1 60%; min-width: 0; }
.addr > span { flex: none; color: var(--muted); }
.host-submit .btn { width: 100%; justify-content: center; }
@media (min-width: 900px) { .host-submit .btn { width: auto; } }
/* Tabellen: lange waarden breken af in plaats van over de buurkolom te lopen (ook op een telefoon) */
.table td.wrap, .host-table td.wrap { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 720px) {
  .table td, .table td:not(:first-child) { white-space: normal; overflow-wrap: anywhere; }
  .table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table td.wrap, .table td.col-actions, .table td:first-child { grid-column: 1 / -1; }
  .host-table .col-actions { text-align: left; width: auto; }
  .btn-row { justify-content: flex-start; }
  .row-edit-body { min-width: 0; }
}
/* Kleine schermen: niets mag buiten zijn vak lopen */
.addr > .input:first-child { min-width: 0; }
.table td .pill { max-width: 100%; white-space: normal; text-align: left; }
.table select.input, .table .input { max-width: 100%; min-width: 0; }
@media (max-width: 560px) {
  .pw-field { flex-wrap: wrap; }
  .pw-field .input { flex: 1 1 100%; min-width: 0; }
  .row-edit-body { width: 100%; padding: 12px; }
  .alert-row, .notice { flex-wrap: wrap; }
}
.list li > div { min-width: 0; overflow-wrap: anywhere; }
.list li b { overflow-wrap: anywhere; }
/* Bestandsbeheer */
.path-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; overflow-wrap: anywhere; }
.path-bar span { color: var(--muted); }
.file-tools { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.file-tools .add-row { flex: 1 1 300px; max-width: 460px; }
.upload-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; flex: 1 1 340px; }
.upload-box.drag { border-color: var(--brand); background: var(--brand-soft); }
.upload-progress { flex-basis: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.editor-form { display: grid; gap: 14px; padding: 4px 20px 20px; }
textarea.editor { min-height: 480px; font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; white-space: pre; overflow: auto; }
/* Bestandsbeheer: iconen in de kleuren van de Hub */
.file-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.file-name a, .file-name > span:last-child { overflow-wrap: anywhere; }
.fi { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.fi svg { width: 18px; height: 18px; }
.fi-dir { background: var(--brand-soft); color: var(--brand); }
.fi-code { background: var(--warn-soft); color: var(--warn); }
.fi-img { background: var(--ok-soft); color: var(--ok); }
.fi-zip { background: var(--bad-soft); color: var(--bad); }
.fi-sm { width: 26px; height: 26px; border-radius: 8px; }
.fi-sm svg { width: 15px; height: 15px; }
.path-bar a { color: var(--brand); }
.path-bar a:last-of-type { color: var(--text); }
@media (min-width: 1100px) { .host-table .btn-row { flex-wrap: nowrap; } }

/* Bestandsbeheer: selectie en bulkacties */
.col-check { width: 36px; padding-right: 0 !important; }
.col-check input { width: 16px; height: 16px; accent-color: var(--brand, #2563eb); cursor: pointer; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: var(--brand-soft, #eff6ff); border-bottom: 1px solid var(--line, #e5e7eb); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .input { width: auto; min-width: 180px; max-width: 100%; }
.bulk-bar strong { margin-right: auto; }
tr.row-selected td { background: var(--brand-soft, #eff6ff); }

/* Gebruik van het hostingpakket */
.usage { list-style: none; margin: 0; padding: 8px 20px 18px; display: grid; gap: 16px; }
.usage li { display: grid; gap: 6px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.usage-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.usage-bar.is-warn i { background: #d97706; }
.usage-bar.is-danger i { background: #dc2626; }
.usage-bar[data-unlimited] i { opacity: .35; }

/* Inlogpagina: foto van Midtown Manhattan bij zonsondergang (Jan Folwarczny, Unsplash, vrij te gebruiken; zie documentation/HUB-INDELING.md).
   De foto is recht gezet (0,4 graden); onderaan ligt een donkere laag achter de tekst. */
.auth-aside::after { content: ""; position: absolute; inset: 0; background: url(/assets/images/login-skyline.jpg?v=2) 50% 0% / cover no-repeat; pointer-events: none; }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 18, 30, .9) 0%, rgba(6, 18, 30, .72) 32%, rgba(6, 18, 30, 0) 62%), linear-gradient(180deg, rgba(6, 18, 30, .5) 0%, rgba(6, 18, 30, 0) 20%); }
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside { justify-content: flex-start; gap: 18px; }
.auth-aside .aside-copy { margin-top: auto; }
@media (max-width: 900px) { .auth-aside .aside-copy { margin-top: 0; } .auth-aside::before { background: linear-gradient(180deg, rgba(6, 18, 30, .7), rgba(6, 18, 30, .1)); } }

/* Meldingen (toasts) voor de hele Hub */
.alert.is-toasted { display: none !important; }
/* een melding die een toast wordt, is niet eerst even zichtbaar bovenaan de pagina (toast.js maakt er een toast van zodra de pagina geladen is) */
.alert[data-toast]:not(.is-toasted) { visibility: hidden; position: absolute; height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: grid; gap: 8px; width: min(344px, calc(100vw - 32px)); pointer-events: none; }
.toast { --tone: var(--brand); position: relative; overflow: hidden; pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 10px 13px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 30, 40, .14); animation: toast-in .24s cubic-bezier(.2, .8, .2, 1); }
.toast-success { --tone: var(--ok); }
.toast-error { --tone: var(--bad); }
.toast-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); color: var(--surface); }
.toast-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast-body { min-width: 0; }
.toast-body b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.3; letter-spacing: .005em; }
.toast-body p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.toast-close { appearance: none; border: 0; background: transparent; color: var(--muted); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; opacity: .7; }
.toast-close:hover { background: var(--surface-2); color: var(--text); opacity: 1; }
.toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tone); opacity: .6; transform-origin: left; animation: toast-bar linear forwards; }
.toast.is-paused .toast-bar { animation-play-state: paused; }
.toast.is-leaving { animation: toast-out .22s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toast-region { right: 12px; left: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-leaving { animation: none; } .toast-bar { animation: none; display: none; } }

/* Bevestigingsvenster */
.confirm-dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); width: 420px; overflow: visible; }
.confirm-dialog::backdrop { background: rgba(7, 22, 29, .45); backdrop-filter: blur(3px); }
.confirm-dialog[open] { animation: confirm-in .18s cubic-bezier(.2, .8, .2, 1); }
.confirm-box { --tone: var(--brand); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 24px 24px 20px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(10, 30, 40, .28); }
.confirm-dialog.is-danger .confirm-box { --tone: var(--bad); }
.confirm-icon { grid-row: span 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.confirm-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-text h2 { margin: 2px 0 6px; font-size: 17px; letter-spacing: -.01em; }
.confirm-text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .confirm-box { grid-template-columns: 1fr; padding: 20px; } .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }

/* Klant toevoegen */
.req { color: var(--bad); }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; padding: 12px 20px 20px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.pick:hover { background: var(--surface-2); }
.pick[hidden] { display: none; }
.pick input { accent-color: var(--brand); }
section.card[hidden] { display: none; }

/* Pagina's zonder zijmenu (een onderdeel met maar één pagina, zoals het dashboard) gebruiken de volle breedte */
.app.app-sideless { grid-template-columns: minmax(0, 1fr); }
.app-sideless .sidebar { display: none; }
.app-sideless .brand-compact { display: flex; }
.app-sideless .brand-compact .logo { max-height: 36px; }
.app-sideless .workspace { max-width: 1480px; width: 100%; margin-inline: auto; }
.dash-grid { align-items: stretch; }
.dash-grid > .card { display: flex; flex-direction: column; }
.dash-list li + li, .svc-status li + li { border-top: 1px solid var(--line); }
/* Facturen op het dashboard: bovenin nummer en bedrag, eronder de datum en rechts de status met de betaalknop */
.dash-invoices li { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title amount' 'date actions'; gap: 4px 16px; align-items: center; padding: 14px 20px; }
.dash-invoices li + li { border-top: 1px solid var(--line); }
.dash-invoices .inv-title { grid-area: title; display: block; padding: 0; text-align: left; justify-self: start; font-weight: 700; color: var(--text); }
.dash-invoices .inv-title:hover { background: none; color: var(--brand); text-decoration: none; }
.dash-invoices .inv-amount { grid-area: amount; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-invoices .inv-date { grid-area: date; margin: 0; }
.dash-invoices .inv-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 8px; }
.dash-invoices .inv-actions .btn { display: inline-flex; padding: 0 14px; }
.dash-list a.btn-primary, .dash-list a.btn-primary:hover { color: #fff; text-decoration: none; }
.dash-list a.btn-primary:hover { background: var(--brand-strong); }

/* Zijmenu en hoofdmenu: rustiger en strakker */
.app:not(.app-sideless) { grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { padding: 20px 14px 24px; gap: 4px; }
.sidebar .brand { padding: 2px 10px 16px; }
.side-back { margin: 0 0 2px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; }
.side-title { margin: 0 0 6px; padding: 6px 10px 14px; gap: 10px; font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side-title svg { box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.nav-groups { gap: 2px; }
.nav-group { gap: 1px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-caption { padding: 4px 12px 5px; font-size: 10.5px; font-weight: 650; letter-spacing: .09em; color: var(--muted); opacity: .85; }
.sidebar .nav-groups a { gap: 11px; padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 9px; color: color-mix(in srgb, var(--text) 72%, var(--muted)); }
.sidebar .nav-groups a svg { width: 18px; height: 18px; opacity: .8; }
.sidebar .nav-groups a:hover { background: var(--surface-2); color: var(--text); }
.sidebar .nav-groups a[aria-current="page"] { position: relative; background: var(--brand-soft); color: var(--brand-strong, var(--brand)); font-weight: 650; }
.sidebar .nav-groups a[aria-current="page"] svg { opacity: 1; color: var(--brand); }
.sidebar .nav-groups a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }

.app-header { padding-block: 0; min-height: 62px; border-bottom: 1px solid var(--line); }
.top-tabs { gap: 2px; align-self: stretch; }
.top-tabs a { position: relative; align-self: center; padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 550; color: var(--muted); }
.top-tabs a:hover { background: var(--surface-2); color: var(--text); }
.top-tabs a[aria-current="page"] { background: transparent; color: var(--text); }
.top-tabs a[aria-current="page"] svg { color: var(--brand); }
.top-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.sidebar { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (max-width: 900px) { .app:not(.app-sideless) { grid-template-columns: minmax(0, 1fr); } }

/* Support: remote hulp en kennisbank */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 4px 20px 20px; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.steps li span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.faq-list { padding: 4px 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; max-width: 70ch; }

/* Kop over de volle breedte met het logo links; daaronder zijmenu en pagina. Het logo is overal gelijk. */
:root { --header-h: 64px; }
.app { grid-template-rows: auto auto 1fr; }
.app-main { display: contents; }
.app-header { grid-column: 1 / -1; grid-row: 1; padding-left: 20px; min-height: var(--header-h); }
.viewas-bar { grid-column: 1 / -1; grid-row: 2; }
.workspace { grid-row: 3; grid-column: 2; min-width: 0; }
.app.app-sideless .workspace { grid-column: 1; }
.sidebar { grid-row: 3; grid-column: 1; top: var(--header-h); height: calc(100vh - var(--header-h)); padding-top: 16px; }
.sidebar .brand { display: none; }
.app-header .brand-compact { display: flex; flex: none; align-items: center; width: 206px; }
.app-header .brand-compact .logo { height: 40px; width: auto; max-height: none; }
@media (max-width: 900px) {
  .app-header { padding-left: 14px; }
  .app-header .brand-compact { width: auto; }
  .app-header .brand-compact .logo { height: 34px; }
  .workspace, .app.app-sideless .workspace { grid-column: 1; }
}

/* Zijmenu inklappen: standaard open; ingeklapt blijven alleen de iconen over (de keuze wordt onthouden) */
/* De knop blijft onderaan in beeld, ook als het menu langer is dan het scherm (dan loopt het menu met de pagina mee). */
.side-toggle { position: sticky; bottom: 0; z-index: 1; margin-top: auto; flex: none; box-shadow: 0 -10px 10px -6px var(--surface); background: var(--surface); display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 12px; border: 0; border-radius: 9px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.side-toggle:hover { background: var(--surface-2); color: var(--text); }
/* Naam bij een icoon van het ingeklapte menu (portal.js zet hem naast het icoon) */
.side-tip { position: fixed; z-index: 400; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgba(10, 30, 40, .2); }
.side-tip[hidden] { display: none; }
.side-toggle svg { width: 18px; height: 18px; flex: none; transform: rotate(90deg); }
html[data-side="rail"] .app:not(.app-sideless) { grid-template-columns: 72px minmax(0, 1fr); }
html[data-side="rail"] .sidebar { padding: 16px 12px; align-items: center; overflow: visible; }
html[data-side="rail"] .side-title > span, html[data-side="rail"] .side-back > span, html[data-side="rail"] .nav-caption, html[data-side="rail"] .nav-groups a > span, html[data-side="rail"] .side-toggle > span { display: none; }
html[data-side="rail"] .side-title { padding: 4px 0 12px; justify-content: center; width: 100%; }
html[data-side="rail"] .nav-groups { width: 100%; justify-items: center; }
html[data-side="rail"] .nav-group { width: 100%; justify-items: center; gap: 4px; }
html[data-side="rail"] .nav-group + .nav-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
html[data-side="rail"] .nav-groups a, html[data-side="rail"] .side-back, html[data-side="rail"] .side-toggle { position: relative; justify-content: center; width: 46px; height: 42px; padding: 0; }
html[data-side="rail"] .side-toggle svg { transform: rotate(-90deg); }
html[data-side="rail"] .nav-groups a svg { width: 20px; height: 20px; }
html[data-side="rail"] .sidebar .nav-groups a[aria-current="page"]::before { left: -12px; }
html[data-side="rail"] .nav-groups .badge { position: absolute; top: 2px; right: 0; margin: 0; min-width: 17px; height: 17px; font-size: 10.5px; }
html[data-side="rail"] .side-toggle { position: sticky; flex: none; }
@media (max-width: 900px) { .side-toggle { display: none; } html[data-side="rail"] .app:not(.app-sideless) { grid-template-columns: minmax(0, 1fr); } }
/* Muziek kiezen en beluisteren (camera-instellingen) */
.music-list { display: grid; gap: 8px; }
.music-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.music-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.music-pick { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; font-weight: 600; }
.music-play { white-space: nowrap; }
.music-play[data-playing] { background: var(--brand); color: #fff; border-color: var(--brand); }
.music-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.music-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s linear; }
.music-pick small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.music-pick b { font-weight: 650; }
.music-volumes { display: flex; gap: 8px; flex-wrap: wrap; }
.music-volume { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; }
.music-volume:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
[data-music-volume-field].is-off { opacity: .45; pointer-events: none; }

/* Camera-instellingen: onderdelen als kaarten, met een vaste navigatie links en een opslagbalk onderaan */
.st-layout { display: block; }
.st-main { display: grid; gap: 20px; min-width: 0; }
.st-form { display: grid; gap: 20px; }
.st-card { scroll-margin-top: 88px; }
.st-head { padding: 22px 28px 0; }
.st-head h2 { font-size: 17px; }
.st-head p { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.st-body { display: grid; gap: 20px; padding: 18px 28px 28px; }
.st-body .weather-setup { display: grid; gap: 20px; }
.st-logos { display: flex; gap: 14px; flex-wrap: wrap; }
.st-logo-box { margin: 0; display: grid; gap: 8px; width: 200px; }
.st-logo-img { width: 200px; height: 96px; padding: 12px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.st-logo-img img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.st-logo-box.is-light .st-logo-img { background: #fff; }
.st-logo-box.is-dark .st-logo-img { background: #0b1520; border-color: #0b1520; }
.st-logo-box figcaption { font-size: 12.5px; color: var(--muted); }
.st-logo-empty { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.st-dirty { color: var(--warn); font-size: 14px; font-weight: 600; }
.form-actions.is-page-bar { margin: 0 0 0 auto; width: fit-content; max-width: 100%; justify-content: flex-end; }
.form-actions.is-page-bar .btn-primary { order: 2; }
.doc-layout > .ticket-form { max-width: none; align-self: start; }
.aside-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.aside-steps li { position: relative; padding-left: 34px; line-height: 1.5; color: var(--text); counter-increment: s; }
.aside-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
.form-actions.is-page-bar [data-dirty-note] { margin-right: 12px; }
@media (max-width: 640px) { .form-actions.is-page-bar { width: 100%; } }
.st-actions { display: flex; gap: 10px; margin-left: auto; }
.st-inline { display: grid; gap: 14px; justify-items: start; }
.st-inline .choice { width: 100%; }
.st-sub { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.st-sub h3 { font-size: 15px; }
.st-sub p { margin: 0; font-size: 14px; }
.st-recipients { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-recipients li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.st-recipients form { margin: 0; }
.st-add { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.st-add .field { flex: 1; min-width: 220px; }
@media (max-width: 720px) { .st-head { padding: 18px 20px 0; } .st-body { padding: 16px 20px 22px; } .st-actions { width: 100%; } .st-actions .btn { flex: 1; } }

/* Getalveld met eenheid (bewaking) */
.m-unit { display: flex; align-items: center; gap: 10px; }
.m-unit .input { width: 120px; flex: none; }
.m-unit span { color: var(--muted); font-size: 14px; }

.st-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.6; font-size: 14.5px; }
.st-steps code { font-size: 12.5px; word-break: break-all; }

/* Lange lijst met aan te vinken regels (bijvoorbeeld klanten uit WeFact) */
.st-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.st-pick li[hidden] { display: none; }
.st-pick .choice { padding: 10px 14px; }

/* Documenten ondertekenen */
.sign-doc { padding: 24px 28px; }
.sign-text { font-size: 14.5px; line-height: 1.7; max-width: 78ch; }
/* Machtiging als formulier: strak, met de kleuren van de Hub */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
/* Zonder zijkolom (de uitleg staat in de FAQ) neemt de werkkolom de hele breedte. */
.doc-layout:not(:has(> .doc-aside)) { grid-template-columns: minmax(0, 1fr); }
.order-note { margin: 0; font-size: 13.5px; }
.doc-main { display: flex; flex-direction: column; min-width: 0; }
.sign-steps { margin-top: 20px; }
.doc-main > .mandate-sheet { flex: 1; display: flex; flex-direction: column; }
.doc-main .ms-text { flex: 1; }
.doc-main .ms-status { margin-top: auto; }
.doc-aside { display: grid; gap: 16px; align-content: start; align-self: start; position: sticky; top: 88px; }
.doc-aside .st-head { padding: 18px 22px 0; }
.doc-aside .st-body { padding: 14px 22px 22px; gap: 14px; }
.doc-aside .form-grid { grid-template-columns: 1fr; gap: 14px; }
.doc-aside .dl div { flex-direction: column; gap: 2px; }
.doc-aside .dl dd { text-align: left; word-break: break-word; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-aside { position: static; } }
.mandate-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm, none); overflow: hidden; }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 36px; border-bottom: 1px solid var(--line); }
.ms-logo { display: block; height: auto; }
.ms-ref { text-align: right; }
.ms-ref small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.ms-ref b { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ms-title { padding: 26px 36px 4px; }
.ms-title h2 { font-size: 24px; letter-spacing: -.01em; margin: 0; }
.ms-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; padding: 22px 36px 6px; }
.ms-block h3, .ms-text h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.ms-block dl { margin: 0; }
.ms-block dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ms-block dt { color: var(--muted); font-size: 13px; }
.ms-block dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; min-width: 0; word-break: break-word; }
.ms-mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.ms-block dd.ms-iban { color: var(--brand); letter-spacing: .03em; }
.ms-text { padding: 20px 36px 6px; }
.ms-text h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ms-chip { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; letter-spacing: .04em; }
.ms-text p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: var(--text); max-width: 78ch; }
.ms-status { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 36px; background: var(--surface-2); border-top: 1px solid var(--line); }
.ms-status b { display: block; font-size: 14px; }
.ms-status small { color: var(--muted); font-size: 12.5px; }
.ms-tick { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 15px; font-weight: 700; }
.ms-tick.is-wait { background: var(--idle-soft, #e5e7eb); color: var(--muted); }
.ms-status.is-signed { background: var(--ok-soft); }
.ms-status.is-signed b { color: var(--ok); }
@media (max-width: 720px) {
  .ms-head, .ms-title, .ms-grid, .ms-text, .ms-status { padding-left: 20px; padding-right: 20px; }
  .ms-grid { grid-template-columns: 1fr; gap: 14px; }
  .ms-title h2 { font-size: 21px; }
  .ms-block dl > div { grid-template-columns: 96px 1fr; }
}
/* Vinkjes en keuzerondjes: in de hele Hub hetzelfde (zero-specificity, zodat eigen maten van schakelaars en lijsten blijven gelden) */
:where(input[type="checkbox"], input[type="radio"]) {
  -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center; width: 19px; height: 19px; margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--muted) 55%, transparent); background-color: var(--surface); background-repeat: no-repeat; background-position: center; background-size: 12px;
  cursor: pointer; transition: background-color .12s, border-color .12s, box-shadow .12s;
}
:where(input[type="checkbox"]) { border-radius: 6px; }
:where(input[type="radio"]) { border-radius: 50%; }
:where(input[type="checkbox"]:hover, input[type="radio"]:hover) { border-color: var(--brand); }
:where(input[type="checkbox"]:checked) { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
:where(input[type="radio"]:checked) { border-color: var(--brand); background-color: var(--surface); box-shadow: inset 0 0 0 4.5px var(--brand); }
:where(input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible) { outline: none; box-shadow: 0 0 0 2px var(--brand); }
:where(input[type="radio"]:checked:focus-visible) { box-shadow: inset 0 0 0 4.5px var(--brand), 0 0 0 2px var(--brand); }
:where(input[type="checkbox"]:disabled, input[type="radio"]:disabled) { opacity: .5; cursor: not-allowed; }
.mandate-check { align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 12px; transition: border-color .12s, background-color .12s; }
.mandate-check:hover { border-color: var(--brand); }
.mandate-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mandate-check input { margin-top: 2px; }
.st-head p { margin-top: 6px; }
.st-eyebrow { display: block; margin-bottom: 4px; color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.doc-aside .st-head p { margin-top: 8px; line-height: 1.55; }
.doc-aside .st-body { gap: 16px; }
.doc-aside .field label { margin-bottom: 2px; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td .btn-sm { min-height: 30px; padding: 0 12px; }
/* Factuur in de Hub: meteen de pdf van WeFact */
.pdf-viewer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pdf-toolbar { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pdf-toolbar .btn { min-width: 38px; justify-content: center; }
.pdf-pages { display: grid; gap: 18px; justify-items: center; padding: 24px; background: var(--surface-2); min-height: 320px; }
.pdf-page { background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .12), 0 0 0 1px rgba(16, 24, 40, .06); }
.pdf-page canvas { display: block; }
.pdf-loading { align-self: center; padding: 60px 0; color: var(--muted); }
.pdf-viewer.is-ready .pdf-loading, .pdf-viewer.is-failed .pdf-pages { display: none; }
.pdf-status { margin: 0; padding: 40px 20px; text-align: center; }
@media (max-width: 720px) { .pdf-pages { padding: 12px; } }
/* Statistieken: het aantal staat altijd (rechtop) bij elke balk, de datum recht eronder */
.bars.is-grid { padding-left: 0; padding-right: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 14px; align-items: end; }
.bars.is-grid .bar { align-self: end; justify-self: center; width: min(100%, 64px); max-width: none; flex: none; overflow: visible; }
.bars.has-values { padding-top: 30px; height: 200px; box-sizing: border-box; }
.bar-val { position: absolute; bottom: 100%; left: 50%; translate: -50% 0; padding-bottom: 4px; font-style: normal; font-size: 13px; font-weight: 700; line-height: 1; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.bars.is-grid.bars-dense { gap: 0 3px; }
.bars-dense.bars .bar { width: 100%; border-radius: 3px 3px 0 0; }
.bars-dense .bar-val { font-size: 11px; }
.bars-axis.is-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 14px; justify-content: initial; margin-top: 8px; }
.bars-axis.is-grid.bars-dense { gap: 0 3px; }
.bars-axis.is-grid span { text-align: center; white-space: nowrap; overflow: visible; display: flex; justify-content: center; }
.bars-axis.is-grid:not(.bars-dense) span { white-space: normal; }
.chart-body { container-type: inline-size; }
/* Past een getal niet meer boven zijn balk, dan blijft de tabel eronder over */
@container (max-width: 620px) { .bars-dense .bar-val { display: none; } .bars.has-values.bars-dense { padding-top: 8px; } }
@container (max-width: 780px) { .bars-many .bar-val { display: none; } .bars.has-values.bars-many { padding-top: 8px; } }
@media (max-width: 720px) { .bars-axis.is-grid span { font-size: 11px; } }
.highlights { list-style: none; margin: 0; padding: 4px 20px 16px; display: grid; }
.highlights li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.highlights li:last-child { border-bottom: 0; }
.highlights span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.highlights b { font-size: 16px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlights small { grid-column: 1 / -1; text-align: right; color: var(--muted); font-size: 12.5px; margin-top: 1px; }.bars-table { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.bars-table summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand); }
.bars-table ul { list-style: none; margin: 10px 0 0; padding: 0; columns: 4 160px; column-gap: 28px; font-size: 13.5px; }
.bars-table li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.bars-table li span { color: var(--muted); }
/* Cameraoverzicht: speler bepaalt zijn eigen hoogte; code voor de eigen website in dezelfde stijl als de rest */
.detail-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.embed-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 16px; }
.embed-options select.input { width: 100%; }
.embed-options .field { display: grid; gap: 6px; margin: 0; }
.embed-options .field label { margin: 0; }
.embed-autoplay { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.panel > p.muted { font-size: 14px; line-height: 1.55; margin: 0; }
.embed-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.embed-help { font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.embed-help summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.embed-help ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; display: grid; gap: 6px; }
/* Logboek: filters en wat er gewijzigd is */
.audit-search { flex-wrap: wrap; }
.audit-search .search-wrap { flex: 1 1 320px; max-width: none; }
.audit-who-select { width: auto; min-width: 170px; }
.audit-search .dp { width: 170px; flex: none; }
.audit-table tr.is-link { cursor: pointer; }
.audit-table tr.is-link:hover td { background: var(--surface-2); }
.audit-link { color: inherit; text-decoration: none; }
.audit-link:hover { color: var(--brand); text-decoration: underline; }
.audit-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.audit-changes-wide li { font-size: 14.5px; padding: 9px 12px; }
.audit-revert { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.audit-related { list-style: none; margin: 0; padding: 4px 22px 18px; display: grid; }
.audit-related li { border-bottom: 1px solid var(--line); }
.audit-related li:last-child { border-bottom: 0; }
.audit-related a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; flex-wrap: wrap; }
.audit-related a:hover b { color: var(--brand); }
.audit-related .audit-dot { margin-top: 0; }
.audit-related small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.audit-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.audit-device { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.audit-changes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-weight: 400; }
.audit-changes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13.5px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.audit-changes b { font-weight: 700; margin-right: 2px; }
.audit-old { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 55%, transparent); overflow-wrap: anywhere; }
.audit-new { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.audit-arrow { color: var(--muted); }
.audit-changes i { color: var(--muted); font-style: italic; }
.audit-dot.audit-administratie { background: #0f9d8a; } .audit-dot.audit-support { background: #d9822b; } .audit-dot.audit-hosting { background: #3b82c4; }
/* Statuspagina: samenvatting, externe diensten met balkjes van 30 dagen, en het beheer ervan */
.stx-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 20px; }
.stx-banner b { display: block; font-size: 16px; }
.stx-banner small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.stx-banner-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.stx-banner-icon svg { width: 22px; height: 22px; }
.stx-banner-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.stx-banner-ok .stx-banner-icon { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.stx-banner-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.stx-banner-warn .stx-banner-icon { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.stx-banner-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.stx-banner-bad .stx-banner-icon { background: color-mix(in srgb, var(--bad) 16%, var(--surface)); color: var(--bad); }
.stx-card { margin-top: 20px; }
.stx-monitor { padding: 4px 20px 6px; border-top: 1px solid var(--line); }
.stx-monitor:first-of-type { border-top: 0; }
.stx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 4px; }
.stx-title { display: grid; gap: 2px; }
.stx-title small, .stx-name small { color: var(--muted); font-size: 12.5px; }
.stx-warn { color: var(--warn); font-weight: 600; }
.stx-list { list-style: none; margin: 0; padding: 0; }
.stx-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(160px, 1.4fr) 64px 118px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.stx-head + .stx-list li:first-child, .stx-single li:first-child { border-top: 0; }
.stx-name { display: grid; gap: 2px; min-width: 0; }
.stx-name b { overflow-wrap: anywhere; }
.stx-bars { display: flex; gap: 2px; height: 26px; align-items: stretch; }
.stx-bars i { flex: 1; border-radius: 3px; background: var(--ok); min-width: 2px; }
.stx-bars i.stx-warn, .stx-bars i.stx-warn { background: var(--warn); }
.stx-bars i.stx-bad { background: var(--bad); }
.stx-bars i.stx-none { background: var(--idle-soft, var(--surface-2)); }
.stx-up { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.stx-list .pill { justify-self: end; }
.stx-empty { margin: 10px 0 14px; font-size: 14px; }
.stx-incidents { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.stx-incidents li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.stx-incidents small { display: block; color: var(--muted); font-size: 12.5px; }
@media (max-width: 800px) {
  .stx-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .stx-bars { grid-column: 1 / -1; order: 3; }
  .stx-up { order: 2; text-align: right; }
  .stx-list li .pill { order: 1; }
  .stx-single li { grid-template-columns: minmax(0, 1fr) auto; }
}
.stx-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.stx-preset { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; }
.stx-preset:hover { border-color: var(--brand); background: var(--brand-soft); }
.stx-preset small { color: var(--muted); font-size: 12.5px; }
.stx-customers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; padding: 2px; }
.stx-mini { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.stx-mini li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
[data-provider-fields][hidden], [data-visibility-customers][hidden] { display: none; }
.st-form { display: grid; gap: 20px; align-content: start; min-width: 0; }
/* Demo: demo-camera's met voorbeeld, presentatie, nagemaakte website en voorbeeldstatistieken */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.demo-card { overflow: hidden; display: grid; }
.demo-preview { position: relative; aspect-ratio: 16 / 11; background: #0b1218; }
.demo-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.demo-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-title b { display: block; font-size: 17px; }
.demo-title small { color: var(--muted); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Bestellen: domein zoeken, pakketten kiezen, bevestigen en de voortgang van een bestelling */
.order-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.order-search { display: flex; gap: 10px; }
.order-search .input { flex: 1; }
.order-results { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.order-results li { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.6fr); gap: 12px 18px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.order-results li:first-child { border-top: 0; }
.order-results li.is-wanted { background: var(--brand-soft); }
.order-domain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.order-price { font-weight: 700; white-space: nowrap; }
.order-price small { font-weight: 400; color: var(--muted); }
.order-pick { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.order-pick .input { min-width: 170px; max-width: 260px; }
.order-tlds { margin: 4px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.order-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.order-package { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); display: grid; gap: 6px; align-content: start; }
.order-package h3 { margin: 0; font-size: 17px; }
.order-package p { margin: 0; }
.order-package-price b { font-size: 20px; }
.order-package-price small { color: var(--muted); }
.order-package ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.order-own { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: end; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-lines li:last-child { border-bottom: 0; }
.order-lines small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.order-amount { text-align: right; white-space: nowrap; }
.order-steps { list-style: none; margin: 0; padding: 4px 22px 18px; display: grid; }
.order-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-steps li:last-child { border-bottom: 0; }
.order-steps small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.order-step-icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.order-step-icon svg { width: 15px; height: 15px; }
.order-steps li.is-done .order-step-icon { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.order-steps li.is-failed .order-step-icon { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); color: var(--bad); }
.order-table .input-sm { min-height: 34px; padding: 4px 10px; width: 100%; min-width: 80px; }
.order-table td { vertical-align: middle; }
@media (max-width: 800px) {
  .order-results li { grid-template-columns: minmax(0, 1fr); }
  .order-pick { justify-content: flex-start; }
  .order-own { grid-template-columns: minmax(0, 1fr); }
  .order-search { flex-wrap: wrap; }
}
/* Datumkiezer (public/assets/js/datepicker.js): in de hele Hub dezelfde grote kalender */
.dp { position: relative; display: block; width: 100%; }
.dp .dp-input { padding-right: 48px; width: 100%; }
.dp-toggle { position: absolute; right: 7px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.dp-toggle:hover, .dp.is-open .dp-toggle { background: var(--brand-soft); color: var(--brand); }
.dp-pop { position: absolute; z-index: 200; top: 0; left: 0; width: 330px; max-width: calc(100vw - 16px); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 44px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08); }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.dp-nav { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.dp-nav:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.dp-select { flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; }
.dp-select:last-of-type { flex: 0 0 88px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 2px; }
.dp-dow { padding: 6px 0 8px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dp-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .1s, color .1s; }
.dp-day:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.dp-day.is-other { color: var(--muted); opacity: .6; }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand); }
.dp-day.is-selected { background: var(--brand); color: #fff; font-weight: 700; opacity: 1; }
.dp-day:disabled { opacity: .3; cursor: not-allowed; }
.dp-day:focus-visible, .dp-nav:focus-visible, .dp-select:focus-visible, .dp-link:focus-visible, .dp-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-link { border: 0; background: none; padding: 8px 10px; border-radius: 8px; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.dp-link:hover:not(:disabled) { background: var(--brand-soft); }
.dp-link:disabled { color: var(--muted); cursor: not-allowed; }
.dp-link[hidden] { display: none; }
.dp-foot .dp-link:only-of-type { margin-left: auto; }
/* Dagen met beeld (camera): een stipje onder het cijfer, met een uitleg onder de kalender */
.dp-day { position: relative; }
.dp-day.has-media::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand); }
.dp-day.has-media.is-selected::after { background: #fff; }
.dp-legend { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.dp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
@media (max-width: 420px) { .dp-pop { padding: 12px; } .dp-day { min-height: 36px; } }
/* Afdrukken en opslaan als pdf: in de hele Hub hetzelfde. Alleen de inhoud, zonder menu en knoppen, zonder kaders, op wit papier. */
@page { size: A4; margin: 16mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; color: #111 !important; }
  .app { display: block !important; }
  .sidebar, .app-header, .mobile-menu, .menu-toggle, nav, .no-print, .crumbs, .head-actions, .form-actions, .alert, [data-toast], .toast-region, .doc-aside, .impersonation, .view-as-bar, .palette { display: none !important; }
  .app-main, .workspace { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .card, .st-card, .panel { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; }
  .card-head { border-bottom: 1px solid #ddd; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  tr, .card, .mandate-sheet, .report-summary > div { break-inside: avoid; page-break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  .logo-on-dark { display: none !important; } .logo-on-light { display: block !important; }
  body:has(.mandate-sheet) .page-head { display: none !important; }
  .doc-layout { display: block; }
  /* machtiging: geen kaders, alleen een dun lijntje tussen de gegevens */
  .mandate-sheet { border: 0 !important; border-radius: 0; box-shadow: none; background: none; }
  .ms-head { padding: 0 0 14px; border: 0; } .ms-title { padding: 6px 0 2px; } .ms-title h2 { font-size: 21px; }
  .ms-grid { padding: 14px 0 4px; grid-template-columns: 1fr; gap: 22px 0; } .ms-text { margin-top: 8px; } .ms-text { padding: 12px 0 4px; } .ms-text p { font-size: 12px; line-height: 1.55; max-width: none; }
  .ms-text h3 { border-bottom: 0; }
  .ms-block dl > div { padding: 6px 0; border-bottom: 1px solid #e6e6e6; } .ms-block dd { font-size: 13px; }
  .ms-block dd.ms-iban { color: #007f99 !important; }
  .ms-chip { background: none !important; padding: 0; color: #111 !important; }
  .ms-status, .ms-status.is-signed { background: none !important; padding: 14px 0 0; margin-top: 12px; border: 0; }
}

/* Dashboard: blokken met een invoerveld of knoppen (bestellen, hulp) */
.dash-block { display: grid; gap: 14px; padding: 4px 20px 20px; }
.dash-block-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Bestellen: domeincheck en hostingpakketten */
.dc { display: grid; gap: 20px; }
.dc-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.dc-hero.is-free { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.dc-hero.is-taken { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.dc-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dc-hero-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.dc-hero.is-free .dc-hero-icon { color: var(--ok); }
.dc-hero.is-taken .dc-hero-icon { color: var(--bad); }
/* Een domein dat de klant al bij ons heeft ("Van jou") */
.dc-hero.is-own { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.dc-hero.is-own .dc-hero-icon { color: var(--brand); }
.dc-hero-icon svg { width: 22px; height: 22px; }
.dc-hero-name { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dc-hero-state { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.dc-hero-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dc-price { line-height: 1.25; text-align: right; }
.dc-price b { font-size: 17px; }
.dc-price small { display: block; color: var(--muted); font-size: 12.5px; }
.dc-subhead { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.dc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 150px 112px; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.dc-row:first-child { border-top: 0; }
.dc-row:hover { background: var(--surface-2); }
.dc-name { font-weight: 600; overflow-wrap: anywhere; }
.dc-action { justify-self: end; }
.dc-row.is-taken .dc-name { color: var(--muted); font-weight: 500; }
.dc-row.is-taken .dc-price { color: var(--muted); }
.dc-row.is-taken .dc-price b { font-weight: 600; }

.pkg-group { margin: 22px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pkg-group:first-child { margin-top: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pkg { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pkg:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
label.pkg { cursor: pointer; }
.pkg input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
label.pkg:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.pkg:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 3%, var(--surface)); }
/* Gekozen: een rustig vinkje rechtsboven (in de hele Hub hetzelfde) */
.pkg:has(input:checked)::after { content: ""; position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center / 14px no-repeat; }
.pkg:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pkg-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.pkg-icon svg { width: 22px; height: 22px; }
.pkg h3 { margin: 4px 0 0; font-size: 18px; }
.pkg-price { margin: 0; }
.pkg-price b { font-size: 28px; letter-spacing: -.02em; }
.pkg-price small { color: var(--muted); font-size: 13px; }
.pkg-desc { margin: 0; color: var(--muted); font-size: 14px; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.pkg li { display: flex; align-items: flex-start; gap: 8px; }
.pkg li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pkg .btn { margin-top: 6px; justify-content: center; }
.pkg-choose { margin-top: 6px; padding: 9px 14px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--brand-strong); background: var(--surface-2); }
.pkg:has(input:checked) .pkg-choose { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-strong); }
.order-own { margin-top: 22px; grid-template-columns: minmax(0, 1fr) auto; }
.order-own-transfer { margin-top: 4px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.order-code { max-width: 420px; }
/* Een veld dat niet klopt: rode rand en de melding eronder (bestelformulier) */
.input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-soft); }
.input[aria-invalid="true"]:focus { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field-error { color: var(--bad); font-size: 13px; font-weight: 500; }

@media (max-width: 720px) {
  .dc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dc-row .dc-price { grid-column: 1; text-align: left; }
  .dc-row .dc-status { justify-self: end; grid-row: 1; grid-column: 2; }
  .dc-row .dc-action { grid-column: 1 / -1; justify-self: stretch; }
  .dc-row .dc-action .btn { width: 100%; justify-content: center; }
  .dc-hero-side { width: 100%; justify-content: space-between; }
  .order-own, .order-own-transfer { grid-template-columns: minmax(0, 1fr); }
}

/* Keuzelijst met zoekvenster (select[data-search], bijvoorbeeld een lijst met klanten) */
.ss { position: relative; width: 100%; min-width: 170px; }
.ss > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ss-btn { display: flex; align-items: center; justify-content: flex-start; text-align: left; cursor: pointer; width: 100%; padding-right: 40px; overflow: hidden;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 15px) calc(50% + 1px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.ss-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-label.is-placeholder { color: var(--muted); }
.ss.is-open .ss-btn { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.ss-pop { position: absolute; z-index: 200; top: 0; left: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 44px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08); display: grid; gap: 8px; }
.ss-search { width: 100%; min-height: 40px; }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 2px; }
.ss-item { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.ss-item.is-active { background: var(--brand-soft); }
.ss-item.is-selected { color: var(--brand-strong); font-weight: 600; }
.ss-item.is-disabled { opacity: .5; cursor: not-allowed; }
.ss-none { padding: 12px 10px; color: var(--muted); font-size: 14px; }

/* Wachtscherm: een draaiend rondje met een korte uitleg terwijl iets wordt verwerkt (zie mipWait in portal.js) */
.wait-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; }
/* De waas met het wazige beeld ligt op een eigen laag onder het kader: het draaiende rondje hoeft de waas dan niet steeds opnieuw te berekenen en blijft soepel draaien */
.wait-overlay::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* De pagina erachter blijft op dezelfde plek staan en kan niet scrollen (de scrollpositie wordt bewaard, zie portal.js), zodat het wazige beeld niet verspringt */
html:has(.wait-overlay) { overflow: hidden; scrollbar-gutter: stable; }
.wait-box { position: relative; width: min(100%, 380px); display: grid; justify-items: center; gap: 10px; padding: 30px 28px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 44px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08); }
.wait-box h2 { font-size: 18px; margin: 4px 0 0; }
.wait-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.wait-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: wait-spin .8s linear infinite; will-change: transform; }
@keyframes wait-spin { to { transform: rotate(360deg); } }
@keyframes wait-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wait-spinner { animation-duration: 2.4s; } }
/* Testomgeving: balk bovenaan */
.env-banner { position: sticky; top: 0; z-index: 60; box-sizing: border-box; height: 32px; line-height: 20px; padding: 6px 16px; background: #b45309; color: #fff; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-env-banner .app-header { top: 32px; }
.has-env-banner .sidebar { top: 32px; height: calc(100vh - 32px); }
.has-env-banner .doc-aside { top: 120px; }
.env-banner b { letter-spacing: .04em; text-transform: uppercase; }
/* Eenvoudige lijst in een kaart (domeinen, nummers): geen opsommingstekens, dunne scheiding tussen de regels */
.plain-list { list-style: none; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
/* Staat er maar één kaart in een tweedeling, dan neemt die de volle breedte */
.split > .card:only-child { grid-column: 1 / -1; }

/* Inklapbare onderdelen in een kaart (beheerpagina's) en opslaanbalk die niet meeschuift */
details.disclosure { margin-top: 20px; }
details.disclosure > summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary h2 { margin: 0 auto 0 0; font-size: 16px; }
details.disclosure > summary::after { content: ''; width: 8px; height: 8px; margin: -3px 2px 0 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
details.disclosure[open] > summary { border-bottom: 1px solid var(--line); }
details.disclosure[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
details.disclosure > p.muted { padding-top: 14px; }
.form-actions.is-static { position: static; z-index: auto; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
/* Gebruik per domein: compacte tabel met een balk per kolom */
.usage-table td { vertical-align: middle; }
.usage-table .usage-bar { width: 100%; max-width: 220px; margin-bottom: 4px; }
.usage-table .usage-num { font-variant-numeric: tabular-nums; }

.usage-loading { display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: var(--muted); font-size: 14px; }
.usage-spinner { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: usage-spin .8s linear infinite; }
@keyframes usage-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .usage-spinner { animation-duration: 2.4s; } }

.usage-loading-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

/* Verbruik per domein: de tabel is wazig met één laadrondje in het midden tot alle cijfers binnen zijn */
[data-lazy-src] { position: relative; }
[data-lazy-src].usage-busy .table-wrap { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; transition: filter .2s ease, opacity .2s ease; }
.usage-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text); font-size: 15px; font-weight: 600; text-align: center; }
.usage-spinner-big { width: 32px; height: 32px; border-width: 3px; }
.usage-ph { display: inline-block; width: 120px; max-width: 100%; height: 12px; border-radius: 6px; background: var(--surface-2); }
.lazy-cell { display: inline-flex; align-items: center; min-height: 28px; color: var(--muted); }

/* Klantweergave: rustige balk met een label, de tekst en de knop; op een telefoon staat de knop onder de tekst over de volle breedte */
.viewas-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(14px, 3vw, 40px); background: #fffbeb; color: #78350f; border-bottom: 1px solid #fcd34d; box-shadow: inset 4px 0 0 #f59e0b; font-size: 14px; }
.viewas-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.viewas-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fef3c7; color: #b45309; }
.viewas-icon svg { width: 18px; height: 18px; }
.viewas-text { min-width: 0; line-height: 1.4; }
.viewas-text strong { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #b45309; }
.viewas-text p { margin: 0; overflow-wrap: anywhere; }
.viewas-bar form { margin: 0; flex: none; }
:root[data-theme="dark"] .viewas-bar { background: #2b2008; color: #fde68a; border-color: #92400e; box-shadow: inset 4px 0 0 #d97706; }
:root[data-theme="dark"] .viewas-icon { background: #3b2a08; color: #fbbf24; }
:root[data-theme="dark"] .viewas-text strong { color: #fbbf24; }
@media (max-width: 720px) {
  .viewas-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .viewas-bar form, .viewas-bar .btn { width: 100%; }
  .viewas-bar .btn { justify-content: center; }
}

/* Cijfers en bedragen breken nooit af (een "€" los van het bedrag) en passen zich aan de breedte aan */
.stat b, .tile b { white-space: nowrap; font-size: clamp(20px, 5.6vw, 30px); }
.stat-tiles .tile b { font-size: clamp(18px, 5vw, 24px); }
.stat { min-width: 0; }

/* Snelknoppen: op een smal scherm onder elkaar in plaats van een tekst die uit de knop loopt */
.quick-links { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.quick-links a { min-width: 0; }
.quick-links a span { min-width: 0; overflow-wrap: anywhere; }

/* Lijsten op het dashboard: een lange titel loopt door op een tweede regel in plaats van afgekapt te worden */
.dash-list b { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Velden naast elkaar blijven binnen hun kaart */
.field-row > * { min-width: 0; }
.field-row .input, .field-row select { width: 100%; max-width: 100%; }

/* Filters op het logboek blijven binnen het scherm */
.audit-filters, .audit-search, .audit-filters > * { min-width: 0; max-width: 100%; }
.seg-wrap a { white-space: normal; }
@media (max-width: 720px) {
  .audit-who-select, .audit-search .dp, .audit-search .search-wrap { width: 100%; min-width: 0; flex: 1 1 100%; }
}
/* Velden: dunne, rustige focusrand in plaats van een dikke gloed (ook voor select en tekstvakken zonder .input) */
input:not([type="checkbox"]):not([type="radio"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* Gegevenskluis */
.vault-dev { margin-bottom: 16px; }
.vault-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.vault-search { display: flex; flex: 1 1 280px; gap: 8px; margin: 0; max-width: 520px; }
.vault-search .input { min-height: 34px; }
.vault-lock { margin: 0 0 0 auto; }
.vault-chips { list-style: none; margin: 0; padding: 14px 20px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.vault-activity { list-style: none; margin: 0; padding: 4px 20px 12px; display: grid; }
.vault-activity li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vault-activity li:last-child { border-bottom: 0; }
.vault-activity small { color: var(--muted); }
.vault-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vault-mask { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); letter-spacing: .08em; overflow-wrap: anywhere; max-width: 100%; }
.vault-mask.is-open { letter-spacing: 0; background: var(--brand-soft); color: var(--text); }
.recovery-key { font: 600 18px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; user-select: all; }
.vault-repeat { display: grid; gap: 12px; margin-bottom: 12px; }
.vault-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vault-pw { display: flex; gap: 6px; }
.vault-pw .input { min-width: 0; flex: 1; }
.vault-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.vault-person { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.vault-person-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.vault-person-head small { display: block; }
.vault-grants { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vault-grants li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vault-grants form { margin-left: auto; }
.vault-inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; padding-top: 10px; }

/* Gegevenskluis: formulierrijen en tabellen die niet verspringen */
.vault-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 12px 16px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vault-row-secret { grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr) minmax(0, 1.8fr) auto; }
.vault-row .vault-remove { padding-top: 22px; }
.vault-row .vault-remove .btn { min-height: 44px; }
.vault-pw { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.vault-pw .btn { min-width: 88px; min-height: 44px; }
.vault-strength { display: block; min-height: 20px; }
.vault-table { table-layout: fixed; }
.vault-table th:nth-child(1) { width: 24%; }
.vault-table th:nth-child(2) { width: 28%; }
.vault-table td { overflow-wrap: anywhere; }
.vault-secret .btn { min-width: 92px; }
.vault-mask { display: inline-block; min-width: 14ch; max-width: 100%; }
.vault-open-row { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 10px; align-items: center; }
@media (max-width: 960px) { .vault-row, .vault-row-secret { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vault-row .vault-remove { padding-top: 0; } }
@media (max-width: 600px) { .vault-row, .vault-row-secret, .vault-open-row { grid-template-columns: minmax(0, 1fr); } .vault-pw { grid-template-columns: minmax(0, 1fr) auto auto; } }
/* Gegevenskluis: rijen met accounts en geheimen; het wachtwoordveld krijgt de volle breedte, alleen op een heel breed scherm staat alles op één regel */
.vault-row, .vault-row-secret { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vault-row > .field:nth-of-type(3) { grid-column: 1 / -1; }
.vault-row > .vault-remove { grid-column: 1 / -1; justify-self: end; padding-top: 0; }
.vault-row > .vault-remove .btn { min-height: 36px; }
@media (min-width: 1500px) {
  .vault-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; }
  .vault-row-secret { grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr) minmax(0, 1.8fr) auto; }
  .vault-row > .field:nth-of-type(3) { grid-column: auto; }
  .vault-row > .vault-remove { grid-column: auto; justify-self: stretch; padding-top: 22px; }
  .vault-row > .vault-remove .btn { min-height: 44px; }
}
@media (max-width: 600px) { .vault-row, .vault-row-secret { grid-template-columns: minmax(0, 1fr); } }

/* Narrowcasting: rijen van afspeellijst en rooster, en de mediabibliotheek */
.nc-rows { display: grid; gap: 14px; }
.nc-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); display: grid; gap: 12px; }
.nc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nc-row-actions { display: inline-flex; gap: 6px; }
.nc-row [hidden] { display: none !important; }
.nc-days { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.nc-days .choice { padding: 6px 10px; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.nc-media { overflow: hidden; display: grid; }
.nc-media .thumb { aspect-ratio: 16 / 9; }
.nc-media .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-media-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.nc-media-body b { overflow-wrap: anywhere; }
.nc-media-body small { color: var(--muted); }
.nc-media-body form { margin-top: 6px; }
.field[hidden], .nc-row .field[hidden] { display: none !important; }
/* Narrowcasting: aan de slag, voorbeeld en wat speelt wanneer */
.nc-step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nc-step-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.nc-step-list li.current { border-color: var(--brand); background: var(--brand-soft); }
.nc-step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; flex: none; }
.nc-step-n svg { width: 16px; height: 16px; }
.nc-step-list li.done .nc-step-n { background: var(--ok-soft); color: var(--ok); }
.nc-step-text { flex: 1 1 auto; display: grid; gap: 2px; }
.nc-step-text small { color: var(--muted); }
.nc-preview { width: 100%; max-width: 760px; max-height: 60vh; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.nc-preview iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.nc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.nc-thumb { display: block; width: 160px; max-width: 100%; margin-top: 8px; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.nc-thumb img, .nc-thumb video { display: block; width: 100%; height: auto; max-height: 120px; object-fit: contain; }
.nc-when { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nc-when li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.nc-when li.rest { background: var(--surface-2); }
.nc-days-mini { display: inline-flex; gap: 3px; }
.nc-days-mini i { font-style: normal; font-size: 12px; min-width: 26px; text-align: center; padding: 2px 0; border-radius: 6px; color: var(--muted); background: var(--surface-2); }
.nc-days-mini i.on { color: #fff; background: var(--brand); }
.nc-thumb[hidden] { display: none; }

/* Narrowcasting: ontwerper */
.nc-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
/* Nieuw scherm: waar gebruik je het? (twee bij twee, op de telefoon onder elkaar) */
.nc-purposes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nc-template { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.nc-template:has(input:checked) { border-color: #22c3e0; box-shadow: 0 0 0 3px rgba(34, 195, 224, .22); }
.nc-template input { position: absolute; opacity: 0; pointer-events: none; }
.nc-template-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.nc-template-pic i { position: absolute; background: #5b6b78; border-radius: 2px; }
.nc-template-pic i:nth-child(1) { background: #22c3e0; }
.nc-template-text { display: flex; flex-direction: column; gap: 2px; }
.nc-template-text small { color: var(--muted); font-size: 12.5px; }
.nc-t-blank i { display: none; }
.nc-t-welcome i:nth-child(1) { left: 0; top: 0; width: 100%; height: 5%; }
.nc-t-welcome i:nth-child(2) { left: 20%; top: 32%; width: 60%; height: 24%; background: #e8eef2; }
.nc-t-welcome i:nth-child(3) { left: 70%; top: 80%; width: 25%; height: 12%; }
.nc-t-clock i:nth-child(1) { display: none; }
.nc-t-clock i:nth-child(2) { left: 15%; top: 25%; width: 70%; height: 40%; background: #e8eef2; }
.nc-t-clock i:nth-child(3) { left: 30%; top: 72%; width: 40%; height: 8%; }
.nc-t-news i:nth-child(1) { left: 5%; top: 12%; width: 58%; height: 76%; background: #34414c; }
.nc-t-news i:nth-child(2) { left: 68%; top: 12%; width: 27%; height: 34%; background: #e8eef2; }
.nc-t-news i:nth-child(3) { left: 68%; top: 54%; width: 27%; height: 34%; }
.nc-t-offer i:nth-child(1) { left: 0; top: 0; width: 48%; height: 100%; background: #34414c; }
.nc-t-offer i:nth-child(2) { left: 54%; top: 18%; width: 40%; height: 20%; background: #e8eef2; }
.nc-t-offer i:nth-child(3) { left: 54%; top: 48%; width: 28%; height: 18%; }
.nc-t-webcam i:nth-child(1) { left: 0; top: 0; width: 100%; height: 80%; background: #34414c; }
.nc-t-webcam i:nth-child(2) { left: 4%; top: 86%; width: 40%; height: 8%; background: #e8eef2; }
.nc-t-webcam i:nth-child(3) { left: 76%; top: 86%; width: 20%; height: 8%; }
.dz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .dz { grid-template-columns: minmax(0, 1fr); } }
/* Menukaarten: titel en vier vakken (dagmenu: drie regels onder elkaar) in de kleuren van het sjabloon */
.nc-t-menu, .nc-t-snackbar, .nc-t-drinks, .nc-t-daymenu { background: #1d1712; }
.nc-t-snackbar { background: #b3121f; }
.nc-t-drinks { background: #10263b; }
.nc-t-daymenu { background: #f6efe4; }
.nc-t-menu i, .nc-t-snackbar i, .nc-t-drinks i { background: rgba(255, 255, 255, .75) !important; }
.nc-t-menu i:nth-child(1), .nc-t-snackbar i:nth-child(1), .nc-t-drinks i:nth-child(1) { left: 30%; top: 8%; width: 40%; height: 10%; background: #e0a84a !important; }
.nc-t-snackbar i:nth-child(1) { background: #ffd200 !important; }
.nc-t-drinks i:nth-child(1) { background: #8fd3ff !important; }
.nc-t-menu i:nth-child(2), .nc-t-snackbar i:nth-child(2), .nc-t-drinks i:nth-child(2) { left: 6%; top: 28%; width: 40%; height: 58%; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .75) 0 10%, transparent 10% 22%) !important; }
.nc-t-menu i:nth-child(3), .nc-t-snackbar i:nth-child(3), .nc-t-drinks i:nth-child(3) { left: 54%; top: 28%; width: 40%; height: 58%; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .75) 0 10%, transparent 10% 22%) !important; }
.nc-t-daymenu i { background: #8a5a2b !important; }
.nc-t-daymenu i:nth-child(1) { left: 32%; top: 8%; width: 36%; height: 11%; }
.nc-t-daymenu i:nth-child(2) { left: 20%; top: 30%; width: 60%; height: 34%; background: repeating-linear-gradient(to bottom, #2b211a 0 14%, transparent 14% 36%) !important; }
.nc-t-daymenu i:nth-child(3) { left: 38%; top: 76%; width: 24%; height: 12%; }
.dz-main { display: grid; gap: 10px; min-width: 0; }
.dz-side { display: grid; gap: 12px; min-width: 0; }
.dz-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dz-toolbar-label { color: var(--muted); font-size: 13.5px; margin-right: 4px; }
.dz-canvas { position: relative; width: 100%; max-height: 70vh; container-type: size; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #000; outline: none; user-select: none; touch-action: none; }
.dz-canvas:focus-visible { box-shadow: 0 0 0 3px rgba(34, 195, 224, .35); }
.dz-el { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: visible; cursor: move; outline: 1px dashed rgba(255, 255, 255, .35); line-height: 1.15; font-weight: 600; }
.dz-el.sel { outline: 2px solid #22c3e0; z-index: 5; }
.dz-body { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
.dz-text .dz-body { align-items: center; }
.dz-clock .dz-body { flex-direction: column; font-size: 1em; font-weight: 700; }
.dz-clock small { font-size: .35em; font-weight: 500; }
.dz-media .dz-body, .dz-webcam .dz-body { font-size: 13px; color: #cbd5dc; background: rgba(255, 255, 255, .07); }
.dz-body img, .dz-body video { width: 100%; height: 100%; display: block; }
.dz-handle { display: none; position: absolute; width: 12px; height: 12px; background: #22c3e0; border: 2px solid #fff; border-radius: 3px; z-index: 6; }
.dz-el.sel .dz-handle { display: block; }
.dz-nw { left: -7px; top: -7px; cursor: nwse-resize; } .dz-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.dz-sw { left: -7px; bottom: -7px; cursor: nesw-resize; } .dz-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.dz-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dz-layer { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.dz-layer.on { border-color: #22c3e0; background: rgba(34, 195, 224, .1); }
.dz-layer small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-geo { grid-template-columns: 1fr 1fr; }

/* Sprongmenu boven lange formulieren (camera toevoegen en bewerken, camera-instellingen) */
.st-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.st-jump a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.st-jump a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 720px) { .st-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 8px; scrollbar-width: none; } .st-jump::-webkit-scrollbar { display: none; } .st-jump a { flex: none; } }
/* Opslagbalk op de telefoon: de knoppen naast elkaar, de melding over de volle breedte erboven */
@media (max-width: 640px) {
  .form-actions { margin: 8px 0 12px; padding: 10px; gap: 8px; }
  .form-actions .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }
  .form-actions .btn-primary { flex: 1.6 1 0; }
  .form-actions [data-dirty-note] { flex: 1 0 100%; margin: 0; font-size: 13px; }
}

/* Platformonderdelen: een rustig label per onderdeel in plaats van grote cijfers */
.tile-status { gap: 8px; }
.tile-status b { font-size: 15px; font-weight: 650; white-space: normal; line-height: 1.3; }
.tile-status b .pill { font-size: 13px; padding: 4px 12px; }
.tile-status small { line-height: 1.4; }

/* Advieskaart "Instellen op de camera zelf" (in te klappen) */
.cam-advice { margin: 0 0 20px; }
.cam-advice > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; cursor: pointer; list-style: none; }
.cam-advice > summary::-webkit-details-marker { display: none; }
.cam-advice > summary b { display: block; font-size: 17px; }
.cam-advice > summary small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.cam-advice > summary::after { content: "›"; font-size: 22px; color: var(--muted); transition: transform .15s; }
.cam-advice[open] > summary::after { transform: rotate(90deg); }
.cam-advice .st-body { padding-top: 0; }
.cam-advice-list { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cam-advice-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.cam-advice-list > div:first-child { border-top: 0; }
.cam-advice-list dt { font-weight: 650; }
.cam-advice-list dd { margin: 0; }
@media (max-width: 720px) { .cam-advice > summary { padding: 16px 20px; } .cam-advice-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Controlelijst van een camera: status links, daarnaast de naam en uitleg */
.checklist { list-style: none; margin: 0; padding: 0 20px 8px; display: grid; }
.checklist li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .pill { justify-content: center; width: 100%; box-sizing: border-box; }
.checklist b { display: block; font-size: 14.5px; line-height: 1.35; padding-top: 3px; }
.checklist small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 520px) { .checklist li { grid-template-columns: 1fr; gap: 6px; } .checklist .pill { width: fit-content; padding-inline: 12px; } }

/* Ingeklapt zijmenu: geen losse lijnen, alleen een korte scheiding tussen de groepen */
html[data-side="rail"] .side-title { border-bottom: 0; }
html[data-side="rail"] .nav-group + .nav-group { position: relative; margin-top: 14px; padding-top: 14px; border-top: 0; }
html[data-side="rail"] .nav-group + .nav-group::before { content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 1px; transform: translateX(-50%); background: var(--line); }

/* ===== Compacter: de Hub iets kleiner en strakker (laatste blok, wint van eerdere maten) ===== */
body { font-size: 14px; }
/* Alleen met zijmenu (pc): onder 901 px is het menu verborgen en vult de pagina de volle breedte (zie de regels hierboven) */
@media (min-width: 901px) {
  .workspace { padding: 24px clamp(14px, 2.6vw, 44px) 48px; gap: 20px; }
  .app:not(.app-sideless) { grid-template-columns: 224px minmax(0, 1fr); }
}
@media (min-width: 1800px) { .app:not(.app-sideless) { grid-template-columns: 240px minmax(0, 1fr); } .workspace { font-size: 14.5px; } }
.sidebar .nav-groups a { padding: 7px 11px; font-size: 13.5px; }
.page-head h1 { font-size: clamp(21px, 2.1vw, 26px); }
.page-head p { margin-top: 4px; font-size: 14px; }
.btn { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13.5px; }
.input { min-height: 40px; }
.card-head { padding: 15px 18px 0; }
.card-head h2 { font-size: 15.5px; }
.stats { gap: 14px; }
.stat { padding: 14px 16px; }
.stat span { font-size: 13px; }
.stat b { margin-top: 2px; }
.stat b, .tile b { font-size: clamp(18px, 4.6vw, 24px); }
.stat-tiles .tile b { font-size: clamp(17px, 4.4vw, 22px); }
.stat-of { display: inline; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile { padding: 13px 15px; }
.tile-status b { font-size: 15px; }
.panel { padding: 16px; gap: 12px; }
.list li { padding: 10px; }
.table th { padding-top: 10px; padding-bottom: 10px; }
.table td { padding-top: 11px; padding-bottom: 11px; }
.cam-grid { gap: 14px; padding: 14px 18px 18px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.st-head { padding: 18px 22px 0; }
.st-body { padding: 14px 22px 22px; gap: 16px; }

/* Kleine camerabeelden in lijsten iets groter */
.mini-thumb { width: 96px; border-radius: 8px; }
@media (max-width: 720px) { .mini-thumb { width: 76px; } }

/* Zijkaarten naast een camera: geen uitgerekte lege ruimte */
.detail { align-items: start; }
.side-stack { align-content: start; }

/* Controlelijst met vinkjes en kruisjes */
.si { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.si svg { width: 14px; height: 14px; }
.si-ok { background: var(--ok-soft); color: var(--ok); }
.si-bad { background: var(--bad-soft); color: var(--bad); }
.si-warn { background: var(--warn-soft); color: var(--warn); }
.si-none { background: var(--idle-soft); color: var(--idle); }
.checklist li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.checklist b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 2px; font-size: 14px; }
.check-tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--idle-soft); color: var(--idle); }
@media (max-width: 520px) { .checklist li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; } }

/* Advieskaart onderaan het camera-formulier: pijl omlaag als hij dicht is, omhoog als hij open is */
.cam-advice > summary { padding: 14px 20px; }
.cam-advice > summary b { font-size: 15px; }
.cam-advice > summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; font-size: 0; }
.cam-advice[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.cam-advice-list > div { padding: 9px 14px; grid-template-columns: 200px 1fr; }
@media (max-width: 720px) { .cam-advice-list > div { grid-template-columns: 1fr; } }

/* Aanvinkregel op de hoogte van een invoerveld (bijvoorbeeld Terugspoelen naast Privacy) */
.choice-compact { align-items: center; min-height: 40px; padding: 0 14px; }
.choice-compact b { font-size: 14px; }

/* Kaartkop: titel en teller krijgen lucht tot de inhoud eronder */
.card-head { padding: 16px 20px 12px; }
.card-head + .cam-grid { padding-top: 4px; }
.card-head + .tiles { padding-top: 4px; }
.card-head + .list { padding-top: 0; }

/* Records kiezen en in één keer wijzigen (DNS) */
.col-check { width: 40px; padding-right: 0 !important; }
.col-check input { width: 17px; height: 17px; accent-color: var(--brand); vertical-align: middle; }
.host-table tr.is-selected td { background: var(--brand-soft); }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.bulk-count { margin-right: auto; color: var(--muted); font-size: 13.5px; }
.bulk-bar.is-active .bulk-count { color: var(--text); }
.bulk-value { flex: 1 1 240px; max-width: 420px; min-height: 34px; }
@media (max-width: 720px) { .bulk-count { flex: 1 0 100%; } .bulk-value { max-width: none; } .bulk-bar .btn { flex: 1 1 0; } }

/* Melding dat een functie voor dit domein niet beschikbaar is */
.na-note { display: grid; gap: 2px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.na-note b { color: var(--text); font-size: 14px; }
.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain-fieldset[disabled] { opacity: .65; }
.code-mail { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* DNS-records zoals in Plesk: host, type, waarde; klik op een record om het te wijzigen */
.dns-table tr.is-clickable { cursor: pointer; }
.dns-table tr.is-clickable:hover td, .dns-table tr.is-clickable:focus-visible td { background: var(--surface-2); }
.dns-table tr.is-clickable:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dns-table tr.is-system td { color: var(--muted); }
.dns-type { display: inline-block; min-width: 52px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; text-align: center; color: var(--text); }
.dns-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(10, 30, 40, .25); }
.dns-dialog::backdrop { background: rgba(10, 20, 26, .45); }
.dns-dialog form { display: grid; gap: 14px; padding: 20px 22px; }
.dns-dialog header { display: flex; align-items: center; gap: 10px; }
.dns-dialog h2 { font-size: 16px; }
.dns-dialog .form-actions { justify-content: flex-end; }
.dns-host { display: flex; align-items: center; gap: 6px; }
.dns-host .input { flex: 1; min-width: 0; }
.dns-host span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.dns-add { display: grid; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.dns-add h3 { font-size: 15px; }
@media (max-width: 520px) { .dns-host { flex-wrap: wrap; } .dns-host span { flex: 1 0 100%; } }
.dns-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.bulk-bar-hide:not(.is-active) { display: none; }
.lock-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--muted); }

/* Gastenwifi: locaties, bonnen, balie en gasten */
.gw-picker { display: flex; align-items: center; gap: 8px; }
.gw-picker label { font-size: 13px; color: var(--muted); }
.gw-picker .input { min-width: 200px; }
.gw-locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.gw-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-code, .gw-mono { font-family: "Consolas", "DejaVu Sans Mono", ui-monospace, monospace; letter-spacing: .04em; }
.gw-code { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 700; }
.gw-desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.gw-desk form { margin: 0; }
.gw-desk .btn { width: 100%; justify-content: center; padding: 22px 12px; font-size: 20px; }
.gw-desk-code .st-body { align-items: center; text-align: center; }
.gw-desk-code small { color: var(--muted); font-size: 14px; }
.gw-desk-code b { font: 700 clamp(34px, 7vw, 64px)/1.1 "Consolas", "DejaVu Sans Mono", ui-monospace, monospace; letter-spacing: .06em; }
.gw-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 18px; }
.gw-bar { position: relative; flex: 1; min-width: 6px; background: var(--brand); border-radius: 3px 3px 0 0; }
.gw-bar i { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); }
.gw-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gw-link .input { min-width: 180px; max-width: 260px; }
@media (max-width: 720px) { .gw-locations { grid-template-columns: minmax(0, 1fr); } .gw-picker { width: 100%; } .gw-picker .input { flex: 1; min-width: 0; } }
.gw-qr { width: 180px; height: 180px; margin: 6px auto; }
.gw-qr svg { width: 100%; height: 100%; display: block; }
.gw-logo { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gw-logo img { max-height: 48px; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; background: #fff; }
.gw-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.gw-month b { font-size: 18px; }
/* ===== Camera-instellingen in tabbladen (portal/camera_settings, portal/_camera_display) ===== */
.set-tabs { margin-top: 18px; }
.set-layout { margin-top: 20px; }
.has-tabs .set-panel:not(.is-on), .has-tabs .doc-aside > [data-set-panel]:not(.is-on) { display: none; }
.form-actions.is-hidden { display: none; }
.set-layout .st-main { align-content: start; }
.preview-frame { width: 100%; aspect-ratio: 16 / 11; border: 0; border-radius: 10px; background: transparent; display: block; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.help-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.help-list b { color: var(--text); font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.row-between > div { min-width: 0; flex: 1 1 320px; }
.pair { display: flex; gap: 8px; align-items: center; }
.pair .input { max-width: 110px; }
.pair span { color: var(--muted); font-size: 14px; }

/* Gesegmenteerde keuze (soort plek, wisseltijd, taal van het voorbeeld) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); width: fit-content; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(20, 35, 43, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.seg svg { width: 18px; height: 18px; }
.seg-sm span { padding: 4px 9px; font-size: 12.5px; }

/* Soorten (Informatie in beeld) en berichten: één regel per onderdeel, met greep, schakelaar en uitklapbare details */
.so-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.so { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.so[hidden] { display: none; }
.so.is-off { background: var(--surface-2); }
.so.is-off .so-ico, .so.is-off .so-title b { opacity: .55; }
.so.dragging { opacity: .5; box-shadow: 0 8px 24px rgba(20, 35, 43, .16); }
.so.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.so.drop-after { box-shadow: 0 3px 0 var(--brand); }
.so-row { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; }
.so-grip { cursor: grab; color: var(--muted); display: grid; place-items: center; border: 0; background: none; padding: 4px 0; border-radius: 6px; touch-action: none; }
.so-grip:focus-visible { outline: 2px solid var(--brand); }
.so-grip svg { width: 18px; height: 18px; }
.so-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.so-ico svg { width: 24px; height: 24px; }
.so-title { min-width: 0; }
.so-title b { display: block; font-size: 14.5px; }
.so-title small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-more { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.so-more:hover { background: var(--brand-soft); text-decoration: none; }
.so-more svg { width: 16px; height: 16px; transition: transform .15s; }
.so.is-open > .so-row .so-more svg { transform: rotate(180deg); }
a.so-more svg { transform: rotate(-90deg); }
.so-detail { display: none; padding: 2px 14px 16px 86px; gap: 14px; }
.so.is-open > .so-detail { display: grid; }
.so-badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-left: 6px; vertical-align: 1px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mini-check { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 400; cursor: pointer; background: var(--surface); }
.mini-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mini-check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; flex: none; }
.mini-check small { color: var(--muted); margin-left: auto; font-size: 12px; }
@media (max-width: 720px) {
  .so-row { grid-template-columns: 18px 34px minmax(0, 1fr) auto; gap: 10px; }
  .so-row > .so-more, .so-row > span:empty { grid-column: 3 / 4; grid-row: 2; justify-self: start; margin-left: -8px; }
  .so-row > .switch { grid-column: 4; grid-row: 1; }
  .so-detail { padding-left: 14px; }
}

/* Evenementen en tekstberichten */
.msg-list { display: grid; gap: 10px; }
.msg-empty { margin: 0; font-size: 14px; }
.msg-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.msg-sum { min-width: 0; }
.msg-sum b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-sum small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.msg-chevron { color: var(--muted); display: grid; }
.msg-chevron svg { width: 18px; height: 18px; transition: transform .15s; }
.msg.is-open { border-color: var(--brand); }
.msg.is-open .msg-chevron svg { transform: rotate(180deg); }
.msg-edit { display: none; border-top: 1px solid var(--line); padding: 16px 14px 18px; gap: 16px; }
.msg.is-open .msg-edit { display: grid; }
.msg-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.st-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.st-pill[hidden] { display: none; }
.st-pill.is-live { color: var(--ok); background: var(--ok-soft); }
.st-pill.is-plan { color: var(--brand); background: var(--brand-soft); }
.st-pill.is-over { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.lang-flags { display: inline-flex; gap: 3px; }
.lang-flags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.lang-flags i.has { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.lang-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
/* Velden van de talen die niet gekozen zijn (form-grid en field zetten zelf display, dus hier expliciet verbergen) */
[data-lang-field][hidden], .lang-empty[hidden], [data-fallback][hidden] { display: none !important; }
.lang-tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.lang-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.lang-empty { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.counter { font-size: 12px; color: var(--muted); justify-self: end; }
.counter.is-near { color: var(--warn); font-weight: 600; }
.qr-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: center; }
.qr-box { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; display: grid; place-items: center; }
.qr-box:empty { background: var(--surface-2); }
.qr-box svg { width: 100%; height: 100%; }
@media (max-width: 720px) { .msg-row { grid-template-columns: 18px minmax(0, 1fr) 18px; } .msg-meta { grid-column: 2; grid-row: 2; justify-content: flex-start; } .qr-row { grid-template-columns: 1fr; } }

/* Iconen in kleur (zelfde kleuren als in de speler) */
.ci svg { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ci .i-sun { fill: #ffc94a; stroke: #f2a516; }
.ci .i-ray { stroke: #f2a516; }
.ci .i-cloud { fill: #fff; stroke: #8193a0; }
.ci .i-rain { stroke: #2b8de6; stroke-width: 1.8; }
.ci .i-snow { stroke: #64b4ec; stroke-width: 2.2; }
.ci .i-wave { stroke: #2b8de6; }
.ci .i-mountain { fill: rgba(34, 140, 110, .12); stroke: #228c6e; }
.ci .i-peak { fill: #fff; stroke: #228c6e; }
.ci .i-pin { fill: rgba(0, 127, 153, .12); stroke: #007f99; }
.ci .i-pin-dot { fill: #fff; stroke: #007f99; }
.ci .i-cal, .ci .i-bubble-line { stroke: #007f99; }
.ci .i-cal-top { fill: #007f99; stroke: #007f99; }
.ci .i-bubble { fill: rgba(0, 127, 153, .12); stroke: #007f99; }
.ci .i-eye, .ci .i-clock { stroke: #6b7780; }
.ci .i-hand { stroke: #007f99; stroke-width: 1.8; }
.ci .i-live { fill: #e5484d; stroke: #fff; }
[data-theme="dark"] .ci .i-cloud { fill: #2b3a43; stroke: #a9b9c3; }
[data-theme="dark"] .ci .i-peak, [data-theme="dark"] .ci .i-pin-dot { fill: #172127; }
[data-theme="dark"] .ci .i-mountain { fill: rgba(76, 201, 160, .14); stroke: #4cc9a0; }
[data-theme="dark"] .ci .i-peak { stroke: #4cc9a0; }
[data-theme="dark"] .ci .i-pin, [data-theme="dark"] .ci .i-pin-dot, [data-theme="dark"] .ci .i-cal, [data-theme="dark"] .ci .i-cal-top, [data-theme="dark"] .ci .i-hand, [data-theme="dark"] .ci .i-bubble, [data-theme="dark"] .ci .i-bubble-line { stroke: #3fc6e0; }
[data-theme="dark"] .ci .i-cal-top { fill: #3fc6e0; }
[data-theme="dark"] .ci .i-pin, [data-theme="dark"] .ci .i-bubble { fill: rgba(63, 198, 224, .14); }
[data-theme="dark"] .ci .i-eye, [data-theme="dark"] .ci .i-clock { stroke: #a3b0b8; }

/* ===== Webcamdienst: menu van een camera in de zijbalk, overzichtspagina's ===== */
/* Onder "Camera’s": de geopende camera met Overzicht, Instellingen (met de onderdelen) en Streamen */
.nav-groups a.is-parent { color: var(--text); }
.nav-sub { display: grid; gap: 1px; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-sub-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 4px 10px 2px; font-size: 12.5px; font-weight: 700; color: var(--text); min-width: 0; }
.nav-sub-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.nav-dot.is-online { background: var(--ok); }
.nav-dot.is-offline, .nav-dot.is-error { background: var(--bad); }
.nav-dot.is-warn, .nav-dot.is-degraded { background: var(--warn); }
.sidebar .nav-sub a { padding: 7px 10px; font-size: 13.5px; }
.sidebar .nav-sub a svg { width: 16px; height: 16px; }
.nav-sub a.is-open { color: var(--text); font-weight: 600; }
.nav-sub-sections { display: grid; gap: 1px; margin: 0 0 4px 18px; padding-left: 8px; border-left: 1px solid var(--line); }
.sidebar .nav-sub-sections a { padding: 6px 10px; font-size: 13px; }
.nav-sub-sections a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mobile-menu .nav-sub { margin-left: 24px; }
.mobile-menu .nav-sub a, .mobile-menu .nav-sub-sections a { padding: 10px 12px; font-size: 15px; }
html[data-side="rail"] .nav-sub { margin: 2px 0 6px; padding: 0; border: 0; justify-items: center; }
html[data-side="rail"] .nav-sub-title, html[data-side="rail"] .nav-sub-sections { display: none; }
/* Op een pc staan de onderdelen van de instellingen in het menu; de tabbladen alleen op telefoon en tablet */
@media (min-width: 901px) { .set-layout { margin-top: 4px; } }
.set-title-section { color: var(--muted); font-weight: 600; }
/* Groot voorbeeld van de speler bovenaan de instellingen */
.st-main > .preview-card .st-body { padding-top: 10px; }
.st-main > .preview-card .preview-frame { aspect-ratio: 16 / 11; width: 100%; border-radius: 12px; }
/* Overzicht van de webcamdienst en van een camera */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; }
.section-head.is-next { margin-top: 28px; }
.cam-figures { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cam-figures > span { display: inline-flex; align-items: center; gap: 5px; }
.cam-figures svg { width: 15px; height: 15px; }
.cam-figures b { color: var(--text); font-variant-numeric: tabular-nums; }
.stat b.stat-text { font-size: 20px; line-height: 1.3; margin-top: 8px; }
.camera-side { display: grid; gap: 20px; align-content: start; }
.camera-overview .link-list a > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.camera-overview .link-list svg { width: 17px; height: 17px; color: var(--brand); }
.dash-list li > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: inherit; }
.dash-list li > a:hover { text-decoration: none; }
.dash-list small { display: block; color: var(--muted); font-size: 13px; }

/* ===== Opslagbalk (laatste blok, wint van eerdere regels) =====
   Aan het einde van het stuk waar je werkt (de kolom met het formulier), precies even breed als de kaarten daarin, in de
   huisstijl: licht vlak, dunne rand, ronde hoeken. Hij staat vast als laatste blok onder het formulier en zweeft niet mee
   als je scrolt.
   Na een wijziging staat links "Niet-opgeslagen wijzigingen" en komt "Ongedaan maken" in plaats van Annuleren. Wil je de
   pagina verlaten zonder op te slaan, dan scrolt de pagina naar de balk en schudt hij even. Ctrl+S / Cmd+S slaat op. */
.form-actions.is-page-bar {
  position: relative;
  width: 100%; max-width: none; margin: 0; padding: 14px 18px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.form-actions.is-page-bar.is-dirty { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
/* Links de melding; na een wijziging Ongedaan maken in plaats van Annuleren. */
.form-actions.is-page-bar [data-dirty-note] { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.form-actions.is-page-bar [data-dirty-note]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); flex: none; }
.form-actions.is-page-bar [data-dirty-note][hidden] { display: none; }
.form-actions.is-page-bar [data-reset] { display: none; }
.form-actions.is-page-bar.is-dirty [data-reset] { display: inline-flex; }
.form-actions.is-page-bar.is-dirty > a.btn:not(.btn-primary) { display: none; }
.form-actions.is-page-bar.is-shake { animation: st-shake .55s ease; border-color: var(--bad); }
.form-actions.is-page-bar.is-shake [data-dirty-note]::before { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
@keyframes st-shake { 15%, 55% { transform: translateX(-8px); } 35%, 75% { transform: translateX(8px); } 100% { transform: none; } }
.form-actions .btn.is-busy { opacity: .85; cursor: progress; }
.form-actions .btn.is-busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: st-spin .7s linear infinite; flex: none; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-actions.is-page-bar.is-shake, .form-actions .btn.is-busy::before { animation: none; } }
@media (max-width: 640px) {
  .form-actions.is-page-bar { padding: 12px; gap: 8px; }
  .form-actions.is-page-bar [data-dirty-note] { flex: 1 0 100%; justify-content: center; margin: 0 0 4px; }
  .form-actions.is-page-bar .btn { flex: 1 1 0; justify-content: center; }
  .form-actions.is-page-bar .btn-primary { flex: 1.6 1 0; }
}
@media print { .form-actions.is-page-bar { display: none !important; } }

/* Veelgestelde vragen (Support): zoeken, onderwerpen en de vragen per onderwerp. */
.faq-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.faq-search { position: relative; display: block; max-width: 520px; }
.faq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search .input { padding-left: 42px; width: 100%; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13.5px; text-decoration: none; }
.faq-topics a:hover { border-color: var(--brand); color: var(--brand); }
.faq-topics svg { width: 16px; height: 16px; }
.faq-group { scroll-margin-top: 90px; }
.faq-group + .faq-group { margin-top: 16px; }
.faq-group .card-head h2 { display: flex; align-items: center; gap: 8px; }
.faq-group .card-head h2 svg { width: 20px; height: 20px; color: var(--brand); }
.faq-none { margin: 0 0 16px; }
.faq mark { background: rgba(255, 196, 0, .35); color: inherit; border-radius: 3px; }

/* Opslagbalk direct in een .doc-layout (onder een formulier dat zelf de kaart is): altijd in de werkkolom, niet naast de zijkolom. */
.doc-layout > .form-actions.is-page-bar { grid-column: 1; }

/* ===== Beeld in de Hub: één maat =====
   Camerabeeld, de speler, terugkijken en timelapse-filmpjes worden nooit breder dan --media-max, zodat het op een groot
   scherm niet het hele venster vult en overal even groot is. In een kaart staat het beeld in het midden. */
:root { --media-max: 880px; }
.media-col { width: 100%; max-width: calc(var(--media-max) + 40px); margin-inline: auto; box-sizing: border-box; }
.st-main > .preview-card .preview-frame { max-width: var(--media-max); margin-inline: auto; }
.tl-video { max-width: var(--media-max); display: block; margin-inline: auto; }
/* Camera-overzicht (klant en beheer): de speler links op de vaste maat, de kaarten rechts vullen de rest. */
.detail:has(> :first-child .preview-embed) { grid-template-columns: minmax(0, var(--media-max)) minmax(300px, 1fr); }
@media (max-width: 960px) { .detail:has(> :first-child .preview-embed) { grid-template-columns: minmax(0, 1fr); } }
/* Veelgestelde vragen: een antwoord met alinea's, stappen, een opsomming, tips en een knop naar de pagina. */
.faq-answer { display: grid; gap: 12px; padding: 0 20px 20px; max-width: 76ch; color: var(--text); line-height: 1.65; font-size: 14.5px; }
.faq-answer p { margin: 0; padding: 0; color: inherit; max-width: none; }
.faq-steps, .faq-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.faq-steps { counter-reset: faq-step; }
.faq-steps li { counter-increment: faq-step; position: relative; padding-left: 36px; min-height: 24px; }
.faq-steps li::before { content: counter(faq-step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.faq-points li { position: relative; padding-left: 20px; }
.faq-points li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.faq-callout { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px !important; border-radius: var(--radius-sm); }
.faq-callout b { flex: none; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.faq-callout.is-tip { background: var(--brand-soft); }
.faq-callout.is-tip b { color: var(--brand-strong); }
.faq-callout.is-note { background: var(--warn-soft); }
.faq-callout.is-note b { color: var(--warn); }
.faq-link { padding-top: 2px; }
[data-theme="dark"] .faq-steps li::before { color: var(--brand); }

/* Terugkijken: een schuif met de gekozen tijd boven de knop, de uren eronder en knoppen per 5 minuten. */
.lb-scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding-top: 30px; }
.lb-step { white-space: nowrap; margin-top: -4px; }
.lb-track { position: relative; padding-bottom: 22px; }
.lb-track input[type="range"] { width: 100%; margin: 0; accent-color: var(--brand); }
.lb-bubble { position: absolute; bottom: calc(100% + 2px); transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.lb-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--brand); }
.lb-hours { position: absolute; left: 10px; right: 10px; bottom: 0; height: 18px; font-size: 12px; color: var(--muted); }
.lb-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lb-hours span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: var(--line); }
@media (max-width: 640px) { .lb-scrub { grid-template-columns: 1fr 1fr; } .lb-track { grid-column: 1 / -1; grid-row: 1; } .lb-hours span:nth-child(even) { display: none; } }

/* Informatie in beeld: evenementen en tekstberichten klappen open in hun eigen rij (geen apart onderdeel Berichten meer). */
.so-msgs { display: grid; gap: 12px; width: 100%; }
.so-msgs > .row-between { align-items: flex-start; gap: 12px; }
.so-msgs > .row-between .btn { flex: none; }
@media (max-width: 640px) { .so-msgs > .row-between { flex-direction: column; } }

/* Tekstbericht: een vak van drie regels (net zo breed als de andere velden, niet groter te slepen). */
.msg-textarea { resize: none; min-height: 0; line-height: 1.45; }

/* Zijmenu zonder eigen scrollbalk. Past het menu op het scherm, dan blijft het staan terwijl de pagina scrolt; is het
   langer dan het scherm (portal.js zet dan side-tall), dan loopt het met de pagina mee en is de pagina minstens zo lang
   als het menu. De knop om in en uit te klappen blijft onderaan in beeld. */
html.side-tall .sidebar { position: relative; top: auto; height: auto; min-height: calc(100vh - var(--header-h, 62px)); }

/* Console van een virtuele server (vps-console.js): zwevend venster zoals het wachtscherm, te minimaliseren tot een balkje rechtsonder; ook als losse pagina (layouts/console) */
.console-overlay { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; padding: 24px; }
.console-overlay[hidden] { display: none; }
.console-overlay::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html:has(.console-overlay:not([hidden]):not(.is-min):not(.is-full)) { overflow: hidden; scrollbar-gutter: stable; }
.console-box { position: relative; width: min(100%, 1320px); height: min(100%, 920px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 56px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .08); }
.console-bar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); }
.console-title { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.console-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.console-icon svg { width: 18px; height: 18px; }
.console-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.console-name b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--idle, #9ca3af); }
.console-state.is-ok { color: var(--ok); }
.console-state.is-ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.console-state.is-bad { color: var(--bad); }
.console-state.is-bad::before { background: var(--bad); }
.console-tools, .console-win { display: flex; align-items: center; gap: 6px; flex: none; }
.console-win { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); height: 34px; }
.console-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s; }
.console-btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--line) 60%, var(--text)); }
.console-btn svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.console-btn:disabled { opacity: .5; cursor: default; }
.console-icon-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.console-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.console-icon-btn svg { width: 18px; height: 18px; }
.console-restore { display: none; }
.console-btn:focus-visible, .console-icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.console-paste { display: grid; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.console-paste[hidden] { display: none; }
.console-paste textarea { min-height: 64px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.console-paste-actions { display: flex; gap: 8px; }
.console-screen { position: relative; flex: 1; min-height: 0; background: #000; }
.console-screen > div { position: absolute; inset: 0; }
/* Smalle schermen: alleen de pictogrammen */
@media (max-width: 980px) { .console-tools .console-btn span { display: none; } .console-tools .console-btn { padding: 0 9px; } .console-tools [data-console-cad] span { display: inline; } }
@media (max-width: 560px) { .console-overlay { padding: 8px; } .console-tools [data-console-window], .console-tools [data-console-full] { display: none; } }
/* Geminimaliseerd: alleen de kopbalk rechtsonder, zonder waas. Het beeld blijft buiten beeld op ware grootte, zodat het na Openen meteen klopt */
.console-overlay.is-min { inset: auto 20px 20px auto; padding: 0; display: block; }
.console-overlay.is-min::before { display: none; }
.console-overlay.is-min .console-box { width: min(calc(100vw - 40px), 400px); height: auto; border-radius: 14px; }
.console-overlay.is-min .console-bar { border-bottom: 0; min-height: 56px; }
.console-overlay.is-min .console-tools, .console-overlay.is-min .console-paste, .console-overlay.is-min [data-console-min] { display: none; }
.console-overlay.is-min .console-restore { display: inline-flex; }
.console-overlay.is-min .console-title { cursor: pointer; }
.console-overlay.is-min .console-screen { position: fixed; left: -10000px; top: 0; width: 1280px; height: 800px; visibility: hidden; pointer-events: none; }
/* Op de serverpagina: een kaart met meteen het live beeld, zo hoog als past bij de breedte */
.console-inline { overflow: hidden; padding: 0; }
/* Het beeld krijgt de toetsenbordfocus: zonder de algemene focusafronding (:focus-visible bovenaan), anders afgeronde hoekjes in het beeld */
[data-console-screen] canvas:focus, [data-console-screen] canvas:focus-visible { border-radius: 0; outline: none; }
.console-inline .console-box { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.console-inline .console-screen { flex: none; width: 100%; aspect-ratio: 16 / 10; max-height: 75vh; }
.console-idle { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; background: rgba(0, 0, 0, .72); color: #fff; text-align: center; }
.console-idle[hidden] { display: none; }
.console-idle .btn svg { width: 18px; height: 18px; }
/* Bediening in de zijkolom naast de console: knoppen onder elkaar, even breed; staat de server uit, dan naast elkaar */
.vps-actions { display: grid; gap: 8px; }
.vps-actions form, .vps-actions .btn { width: 100%; }
.console-tools[inert] { opacity: .45; }
/* Verbruik van een virtuele server: rondjes voor nu, grafieken van het afgelopen uur (vps-usage.js) */
.vps-usage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vps-usage-meta { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.vps-usage-meta > span:not(.pill) { display: inline-flex; align-items: center; gap: 6px; }
.vps-usage-meta svg { width: 16px; height: 16px; }
.vps-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.vps-ring, .vps-uptime { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.vps-ring svg { flex: none; width: 84px; height: 84px; }
.vps-ring-track, .vps-ring-bar { fill: none; stroke-width: 9; }
.vps-ring-track { stroke: var(--surface-2); }
.vps-ring-bar { stroke: var(--brand); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.vps-ring.is-warn .vps-ring-bar { stroke: var(--warn); }
.vps-ring.is-bad .vps-ring-bar { stroke: var(--bad); }
.vps-ring text { fill: var(--text); font-size: 19px; font-weight: 600; }
.vps-ring > div, .vps-uptime { min-width: 0; }
.vps-ring b { display: block; font-size: 15px; font-weight: 600; }
.vps-ring span, .vps-uptime small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.vps-uptime { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.vps-uptime > span { font-size: 13px; color: var(--muted); }
.vps-uptime b { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.vps-graphs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.vps-graphs-head h3 { margin: 0; font-size: 15px; }
.vps-graphs-head .muted { font-size: 13px; }
.vps-graphs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.vps-graph { display: grid; gap: 8px; grid-template-rows: auto 1fr auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.vps-graph-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.vps-graph-top b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.vps-graph svg { width: 100%; height: 70px; display: block; overflow: visible; align-self: end; }
.vps-graph-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.vps-graph-area { fill: color-mix(in srgb, var(--brand) 12%, transparent); stroke: none; }
/* Netwerk: ingaand (merkkleur met vlak) en uitgaand (lichtere lijn in dezelfde kleur); de waarden met een gekleurd streepje ervoor */
.vps-graph-line.is-out { stroke: var(--graph-out); }
.vps-graph-legend { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.vps-graph-legend > span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.vps-graph-legend > span::before { content: ""; align-self: center; width: 10px; height: 3px; border-radius: 2px; background: var(--brand); }
.vps-graph-legend > .is-out::before { background: var(--graph-out); }
.vps-graph-legend b { font-size: 15px; color: var(--text); }
.vps-graph-cursor { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; visibility: hidden; }
.vps-graph.is-hover .vps-graph-cursor { visibility: visible; }
.vps-graph small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Gegevens in de zijkolom naast de console: label en waarde naast elkaar, zodat de kolom ongeveer zo hoog is als de console */
.vps-layout .doc-aside .dl div { flex-direction: row; gap: 12px; }
.vps-layout .doc-aside .dl dd { text-align: right; }
/* In de kaart geen zwarte achtergrond onder het beeld (die schijnt in de afgeronde hoeken door als donker randje, zoals bij de speler);
   vult het beeld de ruimte niet helemaal, dan maakt een zwarte schaduw rond het beeld de rest zwart */
.console-inline:not(.is-full) .console-screen:has(canvas) { background: transparent; }
.console-screen [data-console-screen].has-bars > div > canvas { box-shadow: 0 0 0 100vmax #000; }
/* De console is precies zo hoog als het beeld (geen zwarte balken boven en onder een breed beeld, zoals Full HD bij Windows), ook als de zijkolom hoger is */
.console-idle p { margin: 0; font-size: 14.5px; }
/* Losse pagina in een eigen venster: alleen de console */
.console-page { height: 100vh; margin: 0; overflow: hidden; background: var(--surface); }
.console-page-wrap { height: 100%; }
.console-page .console-box { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
/* Volledig scherm (de hele pagina, zodat de muiswijzer zichtbaar blijft): de console vult het scherm, zonder ruimte voor een schuifbalk.
   De kopbalk verbergt zich en komt terug als de muis bij de bovenrand komt (vps-console.js zet .show-bar) */
html:has(.console-overlay.is-full), html:has(.console-page-wrap.is-full), html:has(.console-inline.is-full) { overflow: hidden; scrollbar-gutter: auto; }
.console-overlay.is-full { padding: 0; }
.console-inline.is-full { position: fixed; inset: 0; z-index: 480; margin: 0; border: 0; border-radius: 0; }
.console-inline.is-full .console-screen { flex: 1; aspect-ratio: auto !important; max-height: none; border-radius: 0; }
.console-overlay.is-full::before { display: none; }
.console-overlay.is-full .console-box, .console-page-wrap.is-full .console-box, .console-inline.is-full .console-box { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; box-shadow: none; background: #000; }
.is-full .console-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: translateY(-100%); transition: transform .18s ease; }
.is-full.show-bar .console-bar { transform: none; }
.is-full .console-paste { position: absolute; left: 0; right: 0; top: 60px; z-index: 3; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .is-full .console-bar { transition: none; } }
/* Pakket en opzeggen onderaan de serverpagina: naast elkaar, op een smal scherm onder elkaar */
/* Beide kaarten even hoog; de knoppen staan onderaan op dezelfde hoogte */
.vps-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: stretch; }
.vps-plan > .card { display: flex; flex-direction: column; margin: 0; }
.vps-plan .st-body, .vps-plan form { display: flex; flex-direction: column; gap: 14px; flex: 1; margin: 0; }
.vps-plan .form-actions-inline { margin-top: auto; }
/* Upgraden: het huidige pakket staat erbij maar is niet te kiezen; per pakket wat het nu kost */
.pkg.is-current { opacity: .65; cursor: default; background: var(--surface-2); }
.pkg-now { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13.5px; }
.pkg-now small { display: block; margin-top: 2px; color: var(--muted); }
/* Virtuele servers: kaarten op het overzicht en de tabel onder Servers (resources/views/vps/_list.php) */
.vps-list { display: grid; gap: 14px; }
.vps-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vps-list-head h2 { margin: 0; font-size: 17px; }
.vps-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.vps-card { display: grid; gap: 16px; padding: 18px 20px; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
/* Zoals de diensttegels: de hele kaart is de link; aanwijzen kleurt de rand, niets wordt onderstreept */
.vps-card:hover { text-decoration: none; border-color: var(--brand); }
.vps-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vps-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vps-card-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.vps-card-icon svg { width: 19px; height: 19px; }
.vps-card-title { display: grid; gap: 2px; flex: 1; min-width: 0; }
.vps-card-title b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vps-card-title small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vps-card-facts { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vps-card-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.vps-card-facts dt { color: var(--muted); }
.vps-card-facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.vps-card-load { display: grid; gap: 10px; }
.vps-card-load > div { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.vps-card-load > div > span:first-child { color: var(--muted); }
.vps-meter { display: block; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vps-meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.vps-meter.is-warn i { background: var(--warn); }
.vps-meter.is-bad i { background: var(--bad); }
/* Geen meting (server uit): alleen het lege spoor, geen volle balk */
.vps-meter.is-empty i { display: none; }
.vps-meter-num { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.vps-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.vps-card-open { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }
.vps-card-open svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.vps-table td { vertical-align: middle; }
.vps-table .nowrap { white-space: nowrap; }
.vps-table-name { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.vps-table-name .vps-card-icon { width: 34px; height: 34px; }
.vps-table-name .vps-card-icon svg { width: 17px; height: 17px; }
.vps-table-name b { display: block; color: var(--brand); font-weight: 600; }
.vps-table-name small { display: block; font-size: 12.5px; color: var(--muted); }
.vps-table-name:hover b { text-decoration: underline; }
.vps-meter-cell { display: grid; grid-template-columns: 52px 34px; align-items: center; gap: 6px; }
.vps-table th, .vps-table td { padding-left: 12px; padding-right: 12px; }
