:root {
  --brand: rgb(220, 47, 59);
  --brand-dark: rgb(192, 38, 49);
  --brand-light: rgb(250, 227, 229);
  --brand-soft: rgb(236, 130, 138);
  --slate: rgb(95, 112, 128);
  --slate-dark: rgb(72, 86, 99);
  --slate-light: rgb(216, 222, 228);
  --navy: rgb(2, 27, 41);
  --navy-soft: #062d40;
  --navy-light: #0f4258;
  --ink: var(--navy);
  --hover: rgb(247, 249, 250);
  --selected: rgb(240, 244, 248);
  --chip-bg: var(--navy); --chip-fg: #fff;
  --float-bg: var(--navy);
  --text: var(--ink);
  --muted: var(--slate);
  --line: rgb(228, 232, 236);
  --bg: rgb(243, 245, 247);
  --panel: #ffffff;
  --green: #2e9e6b;
  --warn: #c8811a;
  --warn-dark: #8a5a0c;
  --focus: var(--navy-light);
  --radius: 12px;
  --radius-knop: 8px;
  --radius-veld: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: var(--navy-soft);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
.sidebar-nav {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.logo {
  display: flex; align-items: center;
  height: 56px; flex: 0 0 56px; padding: 0 20px;
  margin-bottom: 28px;
}
.logo img { height: 22px; width: auto; display: block; }


.nav-group { padding: 0; margin-bottom: 20px; }
.nav-title {
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
  padding: 0 20px 4px;
}
.nav-group a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 20px;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1px;
}
.nav-group a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-group a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-count {
  font-size: 11px; font-weight: 600; line-height: 18px;
  min-width: 18px; padding: 0 6px; text-align: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14); color: #fff;
}


.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 24px 0 0;
}
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; color: var(--slate-dark);
}
.icon-btn:hover { background: var(--bg); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex: 0 0 auto;
}


.banner {
  display: none;
  height: 34px;
  background: var(--navy-light);
  color: #fff;
  align-items: center; justify-content: center; gap: 12px;
  font-size: 12px;
}
.banner.is-visible { display: flex; }
.banner.is-alert { background: var(--brand); }
.banner .btn-outline {
  border: 1px solid #fff; border-radius: var(--radius-knop);
  padding: 3px 10px; font-size: 11px; font-weight: 600; color: #fff;
}
.banner .btn-outline:hover { background: rgba(255,255,255,.12); }

.content { counter-reset: selected; padding: 28px 30px; display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.card:not(:has(.row-actions)) { overflow: hidden; }
.card tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--radius) - 1px); }
.card tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--radius) - 1px); }

.promo {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 28px;
}
.promo-art { flex: 0 0 150px; height: 96px; }
.promo h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.promo p { color: var(--slate-dark); max-width: 520px; margin-bottom: 8px; }
.promo a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px;
}
.block-head h2 { font-size: 15px; font-weight: 600; white-space: nowrap; }

.toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px 16px;
}
.search {
  display: flex; align-items: center; gap: 8px;
  width: 220px; height: 30px;
  border: 1px solid var(--slate-light); border-radius: 4px;
  padding: 0 10px; color: var(--muted);
}
.search input {
  border: 0; outline: 0; width: 100%; min-width: 0; font: inherit; color: var(--text);
  background: transparent;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--slate); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.search-clear { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--slate); }
.search-clear:hover { background: var(--bg); color: var(--ink); }
.search-clear[hidden] { display: none; }
#domein-lijst.is-bezig, #domein-voet.is-bezig, .live-deel.is-bezig { opacity: .5; transition: opacity .15s; }
.btn-filter {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--slate-light); border-radius: var(--radius-knop); background: var(--panel);
}
.btn-filter:hover { background: var(--bg); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 auto;
  height: 30px; padding: 0 14px;
  background: var(--brand); color: #fff;
  font-weight: 600; border-radius: var(--radius-knop);
}
.btn-primary:hover { background: var(--brand-dark); }
.toolbar .btn-primary { margin-left: auto; }
.btn-swap { display: inline-grid; }
.btn-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-swap .btn-swap-done { animation: swap-verberg .01s linear 4s forwards; }
.btn-swap .btn-swap-label { visibility: hidden; animation: swap-toon .01s linear 4s forwards; }
.card:has(.form:focus-within) .btn-swap .btn-swap-done { visibility: hidden; animation: none; }
.card:has(.form:focus-within) .btn-swap .btn-swap-label { visibility: visible; animation: none; }
@keyframes swap-verberg { to { visibility: hidden; } }
@keyframes swap-toon { to { visibility: visible; } }
.card > .toolbar:first-child, .card > .table-form:first-child > .toolbar, .card > .table-form:first-child > .select-bar { padding-top: 20px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 24px; }
thead th {
  font-size: 12px; font-weight: 600; color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
tbody td { border-bottom: 1px solid var(--line); color: var(--slate-dark); }
tbody tr:hover td { background: var(--hover); }
td.actions, th.actions { width: 60px; text-align: right; }
td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--slate-dark); white-space: nowrap; }
.cell-link { color: var(--ink); white-space: nowrap; }
.cell-link:hover { text-decoration: underline; }
.row-menu { width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; color: var(--muted); }
.row-menu:hover { background: var(--bg); color: var(--text); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--slate-dark);
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.status.pending::before { background: var(--brand-soft); }
.status.off::before { background: var(--slate); }
.status.late { color: var(--brand); }
.status.late::before { background: var(--brand); }

.toggle {
  position: relative; display: inline-block;
  width: 32px; height: 18px;
  border-radius: 999px; background: var(--slate-light);
  vertical-align: middle; cursor: pointer;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform .15s;
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle:has(input:checked) { background: var(--navy-soft); }
.toggle:has(input:checked)::after { transform: translateX(14px); }
button.toggle { padding: 0; }
.toggle.is-on { background: var(--navy-soft); }
.toggle.is-on::after { transform: translateX(14px); }
.toggle-text { margin-left: 8px; vertical-align: middle; }

.table-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 12px 24px; font-size: 12px; color: var(--muted);
}
.table-foot form { display: flex; align-items: center; gap: 6px; }
.table-foot select {
  border: 0; background: transparent; font: inherit; color: var(--text);
  margin-left: 4px;
}
.pager { display: flex; gap: 10px; }
.pager button, .pager a { color: var(--slate-dark); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; }
.pager button:hover, .pager a:hover { background: var(--bg); }
.pager button:disabled { color: var(--slate-light); cursor: default; background: none; }

.icon-btn { position: relative; }
.badge {
  position: absolute; top: 3px; right: 3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--panel);
}
.pop {
  position: fixed; inset: auto;
  top: 52px; right: 30px;
  width: 380px; max-width: calc(100vw - 60px);
  margin: 0; padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(2, 27, 41, .12);
  color: var(--text);
  font-size: 13px;
}
.pop::backdrop { background: transparent; }

.pop-search { width: auto; height: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; padding: 12px 14px; }
.pop-search input { font-size: 13px; }
.pop-search kbd {
  font: inherit; font-size: 10px; color: var(--slate);
  border: 1px solid var(--slate-light); border-radius: 3px; padding: 1px 5px;
}
.pop-section { padding: 8px 6px; }
.pop-section + .pop-section { border-top: 1px solid var(--line); }
.pop-title {
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--slate); padding: 4px 8px 6px;
}
.result {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 4px;
}
.result:hover, .result:focus { background: var(--bg); outline: 0; }
.search-empty { padding: 10px 10px; font-size: 13px; color: var(--slate); }
.search-page-results { padding: 0 18px 16px; }
.result-icon {
  width: 28px; height: 28px; border-radius: 4px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--bg); color: var(--slate-dark);
}
.result-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.result-text strong { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-text small { font-size: 11px; color: var(--slate); }

.pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.pop-head strong { font-size: 14px; font-weight: 600; }
.pop-head a, .pop-foot a { font-size: 12px; color: var(--brand); font-weight: 500; }
.pop-head a:hover, .pop-foot a:hover { text-decoration: underline; }
.notif {
  display: flex; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.notif:hover { background: var(--bg); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: transparent; }
.notif.unread .notif-dot { background: var(--brand); }
.notif-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; min-width: 0; }
.notif-text strong { font-weight: 600; color: var(--ink); }
.notif.unread .notif-text strong { color: var(--ink); }
.pop-head .link-button { font-size: 12px; font-weight: 500; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; }
.pop-head .link-button:hover { text-decoration: underline; }
.notif-empty { padding: 12px 16px 16px; font-size: 13px; color: var(--slate); }
.notif-list { padding: 8px; }
.notif:not(.unread) .notif-text strong { font-weight: 500; color: var(--slate-dark); }
.notif-text small { font-size: 12px; color: var(--slate-dark); }
.notif-text time { font-size: 11px; color: var(--slate); }
.pop-foot { padding: 10px 16px; text-align: center; }

.avatar-btn { display: grid; place-items: center; border-radius: 50%; margin-right: 6px; }
.avatar-btn .avatar { width: 28px; height: 28px; }
.avatar-btn:hover .avatar { background: var(--brand-dark); }
.avatar-btn:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; }
.pop-account { width: 240px; }
.pop-account-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pop-account-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pop-account-meta strong { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-account-meta small { font-size: 11px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-account-menu { padding: 6px; }
.pop-account-menu a { display: flex; align-items: center; min-height: 32px; padding: 6px 8px; border-radius: 4px; color: var(--ink); }
.pop-account-menu a:hover, .pop-account-menu a[aria-current="page"] { background: var(--bg); }
.pop-account-menu .is-logout { color: var(--brand); }
.pop-account-sep { border-top: 1px solid var(--line); margin: 6px 0; }

.pop-help { width: 320px; }
.pop-intro {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line);
}
.pop-intro strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.pop-intro span { font-size: 12px; color: var(--slate); }
.help-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.help-item:last-child { border-bottom: 0; }
.help-item:hover { background: var(--bg); }
.help-item .result-icon { width: 32px; height: 32px; }
.help-item:hover .result-icon { background: var(--brand-light); color: var(--brand); }
.help-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.help-text strong { font-weight: 600; color: var(--ink); }
.help-text small { font-size: 11px; color: var(--slate); }
.help-text small.status { font-size: 11px; color: var(--slate); gap: 5px; }
.help-text small.status::before { width: 6px; height: 6px; }

.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: -8px;
}
.page-head h1 { font-size: 18px; font-weight: 600; color: var(--ink); }
.page-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); }
.page-meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--slate-dark); }

.block-head .link-more { font-size: 12px; font-weight: 500; color: var(--brand); }
.block-head .link-more:hover { text-decoration: underline; }

.attn { list-style: none; }
.attn-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; border-top: 1px solid var(--line);
}
.attn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.attn-title { color: var(--ink); }
.attn-title strong { font-weight: 600; }
.attn-text small { font-size: 12px; color: var(--slate-dark); }
.attn-empty {
  display: none; align-items: center; gap: 12px;
  padding: 16px 24px; border-top: 1px solid var(--line);
  color: var(--ink);
}
.attn-empty svg { color: var(--green); flex: 0 0 auto; }
.attn-empty small { font-size: 12px; color: var(--slate-dark); margin-left: 4px; }
.attn:not(:has(.attn-item)) + .attn-empty { display: flex; }
.btn-secondary {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--slate-light); border-radius: var(--radius-knop);
  font-weight: 500; color: var(--ink); background: var(--panel);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--slate); background: var(--bg); }

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 24px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat:hover { background: var(--hover); }
.stat strong { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.stat span { font-size: 12px; color: var(--slate); }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.grid-2 > * { min-width: 0; }

.activity { list-style: none; border-top: 1px solid var(--line); }
.activity li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px; border-bottom: 1px solid var(--line);
  color: var(--slate-dark);
}
.activity li:last-child { border-bottom: 0; }
.act-icon { color: var(--slate); flex: 0 0 auto; display: grid; place-items: center; }
.act-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-text strong { font-weight: 600; color: var(--ink); }
.activity time { font-size: 12px; color: var(--slate); white-space: nowrap; }

.recent { border-top: 1px solid var(--line); }
.recent-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 10px 24px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: var(--hover); }
.recent-row svg { color: var(--slate); }

@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .page-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stats { grid-auto-flow: row; grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .attn-item { flex-wrap: wrap; }
  .attn-text { flex-basis: 100%; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--slate-light); border-radius: 13px;
  font-size: 12px; color: var(--slate-dark); background: var(--panel);
}
.chip span { color: var(--slate); }
.chip:hover { background: var(--bg); }
.chip.active { background: var(--chip-bg); border-color: var(--chip-bg); color: var(--chip-fg); }
.chip.active span { color: rgba(255, 255, 255, .7); }

th.check, td.check { width: 40px; padding-right: 0; }
.check input { display: block; width: 15px; height: 15px; accent-color: var(--ink); cursor: pointer; }
tbody tr:has(.row-check:checked) td { background: var(--selected); }
.row-check:checked { counter-increment: selected; }
.table-form { display: flex; flex-direction: column; }
.select-bar { display: none; order: -1; align-items: center; gap: 8px; padding: 0 24px 16px; }
.content:has(.row-check:checked) .toolbar { display: none; }
.content:has(.row-check:checked) .select-bar { display: flex; animation: select-bar-oplichten .9s ease-out; }
@keyframes select-bar-oplichten { from { background: var(--brand-light); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .content:has(.row-check:checked) .select-bar { animation: none; } }
.select-clear { margin-left: -6px; }
.bulk-count { font-weight: 600; white-space: nowrap; color: var(--ink); }
.bulk-count::before { content: counter(selected) " geselecteerd"; }
.select-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.select-more summary { gap: 5px; }
.select-more .menu { min-width: 220px; }
.dialog-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.row-actions { position: relative; display: inline-block; }
.row-actions summary { list-style: none; cursor: pointer; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] summary { background: var(--bg); color: var(--text); }
.row-actions[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 25; cursor: default; }
.menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 26;
  min-width: 190px; padding: 6px 0; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(2, 27, 41, .12);
}
tbody tr:last-child .menu { top: auto; bottom: calc(100% + 4px); }
.menu a, .menu button { display: block; width: 100%; padding: 7px 14px; text-align: left; color: var(--ink); white-space: nowrap; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu .is-danger { color: var(--brand); }
.menu-sep { border-top: 1px solid var(--line); margin: 6px 0; }

.title-switch { display: block; width: fit-content; max-width: 100%; }
.title-switch summary {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: -8px; padding: 2px 6px 2px 8px; border-radius: var(--radius-knop);
}
.title-switch summary svg { flex: 0 0 auto; color: var(--slate); }
.title-switch summary:hover { background: color-mix(in srgb, var(--panel) 55%, transparent); }
.title-switch[open] summary { background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.title-switch .menu { left: 0; right: auto; width: 300px; max-width: calc(100vw - 48px); }
.title-switch .switch-search { padding: 4px 10px 8px; }
.title-switch .switch-list { position: relative; max-height: 320px; overflow-y: auto; }
.title-switch .switch-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.title-switch .switch-list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.title-switch .switch-list a small { flex: 0 0 auto; font-size: 12px; color: var(--slate); }
.title-switch .switch-list a.active { font-weight: 600; background: var(--selected); }
.title-switch .switch-list a:focus { outline: 0; background: var(--bg); box-shadow: inset 2px 0 0 var(--brand); }
.title-switch .switch-empty { display: none; padding: 8px 12px; font-size: 13px; color: var(--slate); }

.dialog {
  position: fixed; inset: 0; margin: auto;
  width: 440px; max-width: calc(100vw - 32px); height: fit-content;
  padding: 24px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text);
  box-shadow: 0 16px 48px rgba(2, 27, 41, .25);
}
.dialog::backdrop { background: rgba(2, 27, 41, .45); }
.dialog h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.dialog p { color: var(--slate-dark); margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-extra { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dialog-extra p { margin: 0 0 8px; }

.toast {
  position: fixed; inset: auto 24px 24px auto; margin: 0;
  align-items: center; gap: 10px;
  padding: 10px 8px 10px 14px; border: 0; border-radius: 6px;
  background: var(--float-bg); color: #fff;
  box-shadow: 0 8px 24px rgba(2, 27, 41, .25);
  font-size: 13px;
}
.toast:popover-open { display: flex; }
.toast > svg { color: #5fd39a; flex: 0 0 auto; }
.toast button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.toast button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.toast.is-shown { display: flex; z-index: 40; animation: toast-weg .4s ease 5s forwards; }
.toast.is-shown:has(.toast-close:checked) { display: none; }
.toast .toast-close { display: none; }
.toast label { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: rgba(255, 255, 255, .7); margin-left: 6px; cursor: pointer; }
.toast label:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@keyframes toast-weg { to { opacity: 0; visibility: hidden; } }

th .sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
th.num .sort { flex-direction: row-reverse; }
th .sort svg { opacity: 0; transition: opacity .1s; }
th .sort:hover svg { opacity: .45; }
th.is-sorted .sort svg { opacity: 1; }
th.is-desc .sort svg { transform: rotate(180deg); }

.table-empty {
  display: none; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 48px 24px 52px; border-top: 1px solid var(--line);
}
.table-empty p { font-weight: 500; color: var(--ink); }
.table-empty small { font-size: 12px; color: var(--slate-dark); margin-bottom: 14px; }
.content:not(:has(#leeg:target)) .when-empty,
.content:has(#leeg:target) .hide-when-empty, .content:has(#geen-toegang:target) .hide-when-empty,
.content:has(#leeg:target) .has-empty > :not(.table-empty), .content:has(#geen-toegang:target) .has-empty > :not(.table-empty) { display: none; }
.content:has(#leeg:target) .has-empty > .table-empty:not(.is-limited), .content:has(#geen-toegang:target) .has-empty > .table-empty.is-limited { display: flex; border-top: 0; }
.table-empty .btn-row { justify-content: center; }
.table-empty small:last-child { margin-bottom: 0; }
.recent-row > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.recent-row strong { font-weight: 600; color: var(--ink); }
.recent-row small { font-size: 12px; color: var(--slate-dark); }

.back-link { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 12px -3px; font-size: 13px; color: var(--slate-dark); }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.page-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--slate); margin-top: 4px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: -4px; }
.tabs input { display: none; }
.tabs label, .tabs a {
  padding: 6px 0 10px; font-weight: 500; color: var(--slate-dark);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tabs label:hover, .tabs a:hover { color: var(--ink); }
.tabs input:checked + label, .tabs a.active { color: var(--ink); border-color: var(--brand); }
.panel { display: none; flex-direction: column; gap: 20px; }
.content:has(#tab-overzicht:checked) .panel-overzicht,
.content:has(#tab-dns:checked) .panel-dns,
.content:has(#tab-nameservers:checked) .panel-nameservers,
.content:has(#tab-doorsturing:checked) .panel-doorsturing,
.content:has(#tab-contacten:checked) .panel-contacten,
.content:has(#tab-notities:checked) .panel-notities,
.content:has(#tab-historie:checked) .panel-historie,
.content:has(#tab-opzeggen:checked) .panel-opzeggen { display: flex; }

.kv > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center;
  padding: 11px 24px; border-top: 1px solid var(--line);
}
.kv dt { font-size: 12px; color: var(--slate); }
.kv dd { color: var(--ink); }

.card:has(> .kv.is-2col) { container-type: inline-size; }
.kv.is-2col > .wide { align-items: baseline; }
@container (min-width: 700px) {
  .kv.is-2col { display: grid; grid-template-columns: 1fr 1fr; }
  .kv.is-2col > div { grid-template-columns: 160px 1fr; }
  .kv.is-2col > .wide { grid-column: 1 / -1; }
}
.card-body { padding: 0 24px 20px; color: var(--slate-dark); }
.card-body p { max-width: 560px; margin-bottom: 14px; }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); }
.table-note { padding: 12px 24px; font-size: 12px; color: var(--slate); }
.btn-secondary.is-danger { color: var(--brand); }
.btn-secondary.is-danger:hover { border-color: var(--brand); background: rgba(220, 47, 59, .06); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 6px 24px 24px; }
.card:has(> .form) { max-width: 800px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink); }
.field small { font-size: 12px; color: var(--slate); }
.input, .select {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--slate-light); border-radius: var(--radius-veld);
  font: inherit; color: var(--text); background: var(--panel);
}
.input:focus, .select:focus { outline: 0; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(15, 66, 88, .15); }
.select {
  appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7080' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.field.is-invalid .input { border-color: var(--brand); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 3px rgba(220, 47, 59, .15); }
.field.is-invalid small { color: var(--brand); }

.summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.summary span { font-size: 12px; color: var(--slate); }
.summary strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.summary small { font-size: 12px; color: var(--slate-dark); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.actions-wide, td.actions-wide { width: 140px; }
.cell-actions { display: inline-flex; align-items: center; gap: 6px; }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }

.filter .btn-filter { position: relative; }
.filter-menu { left: 0; right: auto; width: 240px; padding: 12px 14px 14px; }
.filter-menu .pop-title { padding: 0 0 4px; }
.filter-group + .filter-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-opt { display: flex; align-items: center; gap: 8px; min-height: 28px; color: var(--ink); cursor: pointer; }
.filter-opt input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.filter-foot { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-menu button { display: inline-flex; width: auto; padding: 0 10px; text-align: center; }
.filter-menu .pop-title.has-action { display: flex; align-items: center; justify-content: space-between; }
.filter-menu .pop-title-link { display: inline; width: auto; padding: 0; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--slate-dark); text-decoration: underline; text-underline-offset: 2px; }
.filter-menu .pop-title-link:hover { color: var(--ink); background: none; }
.filter-menu .filter-foot a { display: inline-flex; align-items: center; width: auto; padding: 0 10px; text-align: center; }
.filter-menu .btn-primary { color: #fff; background: var(--brand); }
.filter-menu .btn-primary:hover { color: #fff; background: var(--brand-dark); }
.filter:has(.filter-opt input[type="checkbox"]:checked) .btn-filter::after,
.filter:has(.filter-opt input[type="radio"]:checked:not(.is-default)) .btn-filter::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--panel);
}


.status.busy::before { background: var(--navy-light); }
.kv dd small { font-size: 12px; color: var(--slate); margin-left: 4px; }
.kv dd small.kv-onder { display: block; margin-left: 0; margin-top: 2px; font-size: 11px; }
.kv > div:has(.kv-onder) { align-items: baseline; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 4px 24px 22px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 34px; }
.steps li::before { content: ""; position: absolute; top: 11px; left: 24px; right: -16px; height: 2px; background: var(--slate-light); }
.steps li:last-child::before { display: none; }
.step-dot {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--slate-light); background: var(--panel); color: #fff;
  display: grid; place-items: center;
}
.steps .is-done .step-dot { background: var(--green); border-color: var(--green); }
.steps .is-done::before { background: var(--green); }
.steps .is-current .step-dot { border-color: var(--ink); }
.steps .is-current .step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.steps strong { font-weight: 600; color: var(--ink); }
.steps small { font-size: 12px; color: var(--slate-dark); }
.steps time { font-size: 11px; color: var(--slate); }
.steps li:not(.is-done):not(.is-current) strong { font-weight: 500; color: var(--slate); }
.steps li:not(.is-done):not(.is-current) small { color: var(--slate); }
tfoot td { padding: 7px 24px; color: var(--slate-dark); }
tfoot tr:first-child td { padding-top: 14px; }
tfoot tr:last-child td { padding-bottom: 16px; }
tfoot .total td { font-weight: 600; color: var(--ink); }

.page-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 18px 24px; }
.facts > div { display: flex; flex-direction: column; gap: 2px; }
.facts span { font-size: 12px; color: var(--slate); }
.facts strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.facts small { font-size: 12px; color: var(--slate-dark); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.setting-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setting-row span { font-size: 12px; color: var(--slate); }
.setting-row strong { font-weight: 600; color: var(--ink); }
.setting-row small { font-size: 12px; color: var(--slate-dark); }

.notice-close { display: none; }
.notice { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 24px; }
.notice p { flex: 1; min-width: 0; color: var(--slate-dark); }
.notice strong { font-weight: 600; color: var(--ink); }
.content:has(.notice-close:checked) .notice { display: none; }
.kv .link-more { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--brand); }
.kv .link-more:hover { text-decoration: underline; }
.kv dd .btn-sm { margin: -3px 0 -3px 8px; vertical-align: middle; }

.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; padding: clamp(40px, 18vh, 180px) 16px clamp(64px, 12vh, 120px); }
.auth { height: auto; }
.auth-stage { display: none; width: 100%; max-width: 420px; }
.auth-foot { font-size: 12px; color: var(--slate); text-align: center; margin-top: -8px; }
.auth-brand { font-size: 16px; font-weight: 600; color: #fff; }
.auth-tagline { max-width: 420px; font-size: 15px; font-weight: 500; color: var(--ink); text-align: center; }
.logo .auth-brand { display: block; padding: 2px 0; }
.topbar-brand { font-size: 15px; font-weight: 600; color: var(--ink); }
.auth-foot a { color: var(--slate-dark); }
.auth-foot a:hover { color: var(--ink); text-decoration: underline; }
.auth-card { padding: 0; overflow: hidden; box-shadow: 0 12px 32px rgba(2, 27, 41, .10); }
.auth-head { display: flex; align-items: center; height: 64px; padding: 0 32px; background: var(--navy-soft); }
.auth-head img { height: 22px; display: block; }
.auth-body { display: flex; flex-direction: column; gap: 20px; padding: 28px 32px 32px; }
.auth-card .field { gap: 8px; }
.auth-card h1 { font-size: 18px; font-weight: 600; color: var(--ink); }
.auth-card h1 + .field, .auth-card h1 + .auth-text { margin-top: -4px; }
.auth-text { color: var(--slate-dark); }
.auth-text .link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.auth-card .input { height: 38px; }
.input-code { font-size: 18px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-head a { font-size: 12px; color: var(--slate-dark); }
.field-head a:hover { color: var(--ink); text-decoration: underline; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; }
.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.auth-card .btn-primary { justify-content: center; height: 38px; margin-top: 8px; }
.auth-card .back-link { margin: 2px 0 -6px -3px; align-self: flex-start; }
.auth-error { display: none; padding: 9px 12px; border-radius: var(--radius-veld); background: rgba(220, 47, 59, .08); color: var(--brand); font-size: 12px; }
.auth-error.is-zichtbaar { display: block; }
.auth:not(:has(.auth-stage:target, .auth-stage :target)) .auth-stage:first-of-type { display: block; }
.auth-stage:target, .auth-stage:has(:target) { display: block; }
.auth-stage:has(#fout:target) .auth-error { display: block; }
.auth-stage:has(#fout:target) .input { border-color: var(--brand); }
.auth-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-veld); background: var(--bg); color: var(--ink); font-weight: 500; }
.auth-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-account a { flex: none; font-size: 12px; color: var(--slate-dark); }
.auth-account a:hover { color: var(--ink); text-decoration: underline; }
.auth-options { display: flex; flex-direction: column; gap: 8px; }
.auth-option { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.auth-option:hover { background: var(--bg); border-color: var(--slate-light); }
.auth-option strong { display: block; font-weight: 600; }
.auth-option small { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }

.topbar-search {
  display: flex; align-items: center; gap: 8px;
  width: 420px; max-width: 40vw; height: 34px; margin-left: 30px; padding: 0 10px;
  border: 1px solid var(--slate-light); border-radius: 4px;
  background: var(--panel); color: var(--slate); text-align: left;
}
.topbar-search:hover { border-color: var(--slate); }
.topbar-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-search kbd { font: inherit; font-size: 10px; color: var(--slate); border: 1px solid var(--slate-light); border-radius: 3px; padding: 1px 5px; }
.search-btn { display: none; }
#search-pop { top: 6px; left: 250px; right: auto; width: 420px; }

.dns-table { table-layout: fixed; }
.dns-table th:nth-child(1) { width: 110px; }
.dns-table th:nth-child(2) { width: 220px; }
.dns-table th:nth-child(4) { width: 100px; }
#dns-records th:nth-child(1) { width: 40px; }
#dns-records th:nth-child(2) { width: 96px; }
#dns-records th:nth-child(3) { width: 220px; }
#dns-records th:nth-child(4) { width: auto; }
#dns-records th:nth-child(5) { width: 100px; }
.dns-table td.primary { font-weight: 500; color: var(--ink); }
.dns-table td code { white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
@media (min-width: 701px) {
  .dns-table th, .dns-table td { padding-top: 7px; padding-bottom: 7px; }
  .dns-table .row-menu { height: 22px; }
}

.narrow { display: flex; flex-direction: column; gap: 20px; max-width: 950px; }
.narrow .card:has(> .form) { max-width: none; }
.push-left { margin-right: auto; }
.input:disabled { background: var(--bg); color: var(--slate-dark); }
.dialog.wide { width: 520px; }
.dialog.extra-wide { width: 760px; max-width: calc(100vw - 32px); }
.dialog.extra-wide .diff { max-height: 260px; overflow-y: auto; }
.menu button { cursor: pointer; }

.push-right { margin-left: auto; }
.btn-secondary svg { margin-right: 6px; }
.log-table td.primary code, .log-table td code { color: var(--slate-dark); }
.setting-row > .setting-actions { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 0 0 auto; }
.setting-row > .seg { display: inline-flex; flex-direction: row; gap: 0; }
.setting-row > div > code, .kv code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 24px 9px 40px; border-top: 1px solid var(--line); background: var(--hover); }
.sub-row strong { font-weight: 500; color: var(--ink); }
.sub-row small { display: block; font-size: 12px; color: var(--slate); }

.seg { display: inline-flex; border: 1px solid var(--slate-light); border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; font-weight: 500; color: var(--slate-dark); cursor: pointer; }
.seg label ~ label { border-left: 1px solid var(--slate-light); }
.seg input:checked + label { background: var(--chip-bg); color: var(--chip-fg); }

.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user .avatar { width: 28px; height: 28px; font-size: 10px; background: var(--slate-light); color: var(--ink); }
.cell-user strong { display: block; font-weight: 500; color: var(--ink); }
.cell-user small { display: block; font-size: 12px; color: var(--slate); }
td small.sub { display: block; font-size: 12px; color: var(--slate); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks label, .check-line { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); cursor: pointer; }
.checks input, .check-line input { width: 15px; height: 15px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.check-line small { display: block; font-size: 12px; color: var(--slate); }
.field-label { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

.copy-field { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.copy-field code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.copy-field button { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: var(--slate-dark); }
.copy-field button:hover { background: var(--panel); color: var(--ink); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink); margin-bottom: 20px; }
.codes .is-used { color: var(--slate); text-decoration: line-through; }
.qr { width: 148px; height: 148px; margin: 0 auto 16px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #021b29; }
.qr svg { width: 100%; height: 100%; }

.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 4px 24px 22px; }
.meters.two { grid-template-columns: repeat(2, 1fr); }
.meter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--slate); }
.meter-head strong { font-weight: 500; color: var(--ink); white-space: nowrap; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--slate-light); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 3px; background: var(--navy-light); }
.meter.is-high .meter-bar span { background: var(--brand); }

.meter-total { padding: 4px 24px 18px; }
.meter-total .meter-head { font-size: 13px; }
.meter-total .meter-head strong { font-weight: 600; }
.meter-total .meter-bar { height: 10px; border-radius: 5px; }
.meter-bar.is-stacked { display: flex; }
.meter-bar.is-stacked span { flex: none; border-radius: 0; }
.meter-bar.is-stacked span + span { box-shadow: -1px 0 0 var(--panel); }
.meter-bar span.is-web,  .meter-dot.is-web  { background: var(--navy-light); }
.meter-bar span.is-mail, .meter-dot.is-mail { background: #3f8fbf; }
.meter-bar span.is-db,   .meter-dot.is-db   { background: #9cc7df; }
.meter-bar span.is-rest, .meter-dot.is-rest { background: var(--slate); }
.meter.is-high .meter-bar span.is-mail { background: var(--brand); }
.meter.is-high .meter-bar.is-stacked span { background: var(--brand); }
.meter-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: baseline; }
.meter-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--slate); }
.meter-foot span:last-child:not(:first-child) { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content:has(#t1:checked) .p1, .content:has(#t2:checked) .p2, .content:has(#t3:checked) .p3, .content:has(#t4:checked) .p4, .content:has(#t5:checked) .p5, .content:has(#t6:checked) .p6, .content:has(#t7:checked) .p7, .content:has(#t8:checked) .p8, .content:has(#t9:checked) .p9, .content:has(#t10:checked) .p10, .content:has(#t11:checked) .p11 { display: flex; }
thead th { white-space: nowrap; }
.dialog-fields.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.dialog-fields.two .wide { grid-column: 1 / -1; }
.textarea { width: 100%; min-height: 96px; padding: 8px 10px; border: 1px solid var(--slate-light); border-radius: var(--radius-veld); font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text); background: var(--panel); resize: vertical; }
.textarea:focus { outline: 0; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(15, 66, 88, .15); }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type="color"] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--slate-light); border-radius: 4px; background: var(--panel); cursor: pointer; }
.color-row .input { width: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.range { width: 100%; accent-color: var(--ink); }
.brand-preview { display: flex; height: 150px; margin: 0 24px 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg); }
.bp-side { flex: 0 0 34%; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; background: var(--navy-soft); color: #fff; font-size: 10px; font-weight: 600; }
.bp-side i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.bp-side i:nth-of-type(1) { margin-top: 8px; width: 70%; } .bp-side i:nth-of-type(2) { width: 55%; } .bp-side i:nth-of-type(3) { width: 62%; }
.bp-main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.bp-main i { display: block; height: 30px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); }
.bp-main i:first-child { height: 12px; width: 40%; border: 0; background: var(--slate-light); }
.bp-main b { display: block; width: 46px; height: 14px; margin-left: auto; border-radius: 3px; background: var(--brand); }

.check-line.wide { grid-column: 1 / -1; }
.card-body .page-sub { margin-top: -6px; }
.page-sub code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--slate-dark); }
.order-main .card:has(> .form) { max-width: none; }
.wizard { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--slate); }
.wizard li { display: inline-flex; align-items: center; gap: 8px; }
.wizard li + li::before { content: ""; width: 24px; height: 1px; background: var(--slate-light); margin-right: 2px; }
.wizard .n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--slate-light); font-size: 11px; font-weight: 600; }
.wizard .is-current { color: var(--ink); font-weight: 600; }
.wizard .is-current .n { background: var(--chip-bg); border-color: var(--chip-bg); color: var(--chip-fg); }
.wizard .is-done { color: var(--slate-dark); }
.wizard .is-done .n { background: var(--green); border-color: var(--green); color: #fff; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.order-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.order-side { position: sticky; top: 20px; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 24px; color: var(--slate-dark); }
.sum-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-row small { display: block; font-size: 12px; color: var(--slate); }
.sum-title { padding: 10px 24px 2px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.sum-row.total { margin-top: 8px; padding-top: 12px; padding-bottom: 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; min-width: 0; }
.add-row .btn-primary, .add-row .btn-secondary { height: 34px; }
/* Verhuiscode doorgeven op bestelling-detail.php */
.verhuiscode-veld { max-width: 560px; }
.verhuiscode-veld small a { text-decoration: underline; }
.inline-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 24px 16px; padding: 9px 12px; border-radius: 4px; background: var(--bg); color: var(--slate-dark); }
.inline-note strong { font-weight: 600; color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border: 1px solid var(--slate-light); border-radius: 14px; color: var(--ink); }
.pick small { font-size: 11px; color: var(--slate); }
.pick button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--slate); }
.pick button:hover { background: var(--bg); color: var(--ink); }
.pick form { display: contents; }
.card-foot form:has(> .push-left) { margin-right: auto; }
.inline-note form { flex: none; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border: 1px solid var(--slate-light); border-radius: 3px; font-size: 11px; font-weight: 500; color: var(--slate-dark); vertical-align: 1px; }

.pick-row label { display: flex; align-items: center; min-width: 0; }
.wizard .n svg { width: 11px; height: 11px; }
.page-head .wizard { flex: 0 0 auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 24px 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.plan input { position: absolute; top: 16px; right: 16px; width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.plan:hover, .choice:hover { border-color: var(--slate-light); }
.plan:has(input:checked), .choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.plan p { font-size: 12px; color: var(--slate); min-height: 34px; }
.plan .price { font-size: 18px; font-weight: 600; color: var(--ink); }
.plan .price small { font-size: 12px; font-weight: 400; color: var(--slate); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--slate-dark); }
.plan.is-current { background: var(--hover); cursor: default; }
.choices { display: flex; flex-direction: column; gap: 8px; padding: 0 24px 16px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.choice input { width: 15px; height: 15px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.choice strong { display: block; font-weight: 600; color: var(--ink); }
.choice small { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }
.choice.is-disabled { cursor: not-allowed; opacity: .55; }
.choice.is-disabled:hover { border-color: var(--line); }
.card > .tabs, .card > form > .tabs { margin: 0 24px 16px; }
.content.is-detail { max-width: 1188px; }
.content.is-detail.is-wide { max-width: none; }
.tab-layout { display: flex; flex-direction: column; gap: 20px; }

/* Zelfde kolommen als .grid-2 (2 delen links, 1 deel rechts): zo is de zijkaart op hosting-detail.php
   net zo breed als de blokken rechts op domein-detail.php. */
.with-aside { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.with-aside > * { min-width: 0; }
/* De kolom links van de zijkaart (hosting-detail.php). Zelfde opbouw als .narrow, maar zonder
   maximale breedte: hij vult de ruimte die naast de zijkaart overblijft. */
.aside-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* De zijkaart "Dit pakket". Hij staat in een kolom met meer blokken (.stack) en schuift
   gewoon mee met de pagina, net als de blokken rechts op domein-detail.php. */
.aside-card .aside-meter { padding: 0 24px 18px; }
.aside-card .kv > div { grid-template-columns: 104px 1fr; }
@media (max-width: 1000px) {
  .with-aside { grid-template-columns: minmax(0, 1fr); }
}
.plans-mail, .content:has(#pk-mail:checked) .plans-web { display: none; }
.content:has(#pk-mail:checked) .plans-mail { display: grid; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; border-top: 1px solid var(--line); }
.pick-row strong { font-weight: 500; color: var(--ink); }
.pick-row .select { width: 260px; flex: 0 0 auto; }

.public { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.public-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 56px; height: 56px; padding: 0 24px; background: var(--navy-soft); color: rgba(255, 255, 255, .8); font-size: 12px; }
.public-head img { height: 22px; display: block; }
.public-main { width: 100%; max-width: 808px; margin: 0 auto; padding: 32px 24px 48px; }
.public-stage { display: none; flex-direction: column; gap: 20px; }
.public:not(:has(.public-stage:target)) .public-stage:first-of-type, .public-stage:target { display: flex; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 24px; text-align: center; color: var(--slate-dark); }
.empty-state strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.auth-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--slate-dark); }
.auth-list li::before { content: "–"; margin-right: 8px; color: var(--slate); }
.auth-account.is-person { height: auto; padding: 9px 12px; flex-direction: column; align-items: flex-start; gap: 0; }
.auth-account.is-person small { font-size: 12px; font-weight: 400; color: var(--slate); }

.status.warn::before { background: var(--warn); }
.toast.is-warn > svg { color: #f0c27a; }
.toast.is-error > svg { color: #ff9aa1; }
.notice.is-warn { border-color: transparent; background: rgba(200, 129, 26, .12); }
.notice.is-warn p, .notice.is-warn strong { color: var(--warn-dark); }
.notice.is-error { border-color: transparent; background: rgba(220, 47, 59, .08); }
.notice.is-error p, .notice.is-error strong { color: var(--brand); }
.inline-note.is-warn { background: rgba(200, 129, 26, .12); color: var(--warn-dark); }
.inline-note.is-warn strong { color: var(--warn-dark); }
.inline-note.is-error { background: rgba(220, 47, 59, .08); color: var(--brand); }
.inline-note.is-error strong { color: var(--brand); }
.banner.is-warn { background: var(--warn); }

.btn-primary:disabled, .btn-secondary:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.is-loading { pointer-events: none; }
.is-loading::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::before { margin-right: 8px; border-color: var(--slate-light); border-top-color: var(--slate-dark); }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { display: inline-block; height: 10px; border-radius: 5px; background: var(--slate-light); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .is-loading::before, .skel { animation: none; } }

a:focus-visible, button:focus-visible, summary:focus-visible, .chip:focus-visible, .is-focus-ring { outline: 2px solid var(--focus); outline-offset: 2px; }
.sidebar a:focus-visible { outline-color: #fff; outline-offset: -2px; }
.input.is-focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(15, 66, 88, .15); }

.sg-nav { padding: 0; }
[id^="sg-"] { scroll-margin-top: 16px; }
.sg-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); }
.sg-label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; color: var(--ink); }
.sg-label code, .swatch code, .sg-sub code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 400; color: var(--slate); }
.sg-items { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.sg-items.is-stack { flex-direction: column; align-items: stretch; }
.sg-items .field, .sg-items .meter, .sg-items > .search, .sg-items > .select, .sg-items > .textarea { width: 260px; }
.sg-items .inline-note { margin: 0; }
.sg-items .choice { flex: 1 1 220px; }
.sg-sub { display: flex; align-items: baseline; gap: 8px; padding: 12px 24px 8px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink); }
.sg-dark { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 4px; background: var(--navy-soft); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 4px 24px 22px; }
.swatch { display: flex; flex-direction: column; gap: 1px; }
.swatch i { display: block; height: 48px; margin-bottom: 6px; border-radius: 4px; border: 1px solid var(--line); }
.swatch strong { font-weight: 500; color: var(--ink); }
.swatch small { font-size: 12px; color: var(--slate); }
.sw-brand { background: var(--brand); } .sw-brand-dark { background: var(--brand-dark); } .sw-navy { background: var(--navy-soft); } .sw-navy-light { background: var(--navy-light); }
.sw-ink { background: var(--ink); } .sw-slate-dark { background: var(--slate-dark); } .sw-slate { background: var(--slate); } .sw-slate-light { background: var(--slate-light); }
.sw-line { background: var(--line); } .sw-bg { background: var(--bg); } .sw-panel { background: var(--panel); } .sw-green { background: var(--green); } .sw-warn { background: var(--warn); }
.t-h1 { font-size: 18px; font-weight: 600; color: var(--ink); }
.t-h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.t-body { color: var(--slate-dark); }
.t-small { font-size: 12px; color: var(--slate); }
.t-label { font-size: 12px; font-weight: 500; color: var(--ink); }
.t-caps { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.t-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink); }
.tour-card.is-static { position: static; box-shadow: none; }
.table-empty.is-static { display: flex; }
.sg-switch { width: 280px; border: 1px solid var(--line); }
.toast.is-static { position: static; display: flex; width: fit-content; box-shadow: none; }
.menu.is-static { position: static; display: inline-block; }
.banner.is-static { padding: 0 16px; border-radius: 4px; }

.content:has(#tab-gezondheid:checked) .panel-gezondheid { display: flex; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
label.recent-row { cursor: pointer; }
.head-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.toolbar .push-right ~ .btn-primary { margin-left: 0; }

.subnav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.panel-dns .toolbar { flex-wrap: wrap; row-gap: 10px; }
.toolbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.seg label span { margin-left: 6px; font-weight: 400; opacity: .7; }
.field .seg { align-self: flex-start; }
.dv { display: none; flex-direction: column; }
.panel-dns:has(#dv-records:checked) .dv-records, .panel-dns:has(#dv-history:checked) .dv-history, .panel-dns:has(#dv-planned:checked) .dv-planned { display: flex; }

.change { display: flex; flex-direction: column; gap: 10px; padding: 14px 24px 16px; border-top: 1px solid var(--line); }
.change-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.change-head strong { font-weight: 600; color: var(--ink); }
.change-head small { display: block; margin-top: 2px; font-size: 12px; color: var(--slate); }
.diff { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.diff div { display: flex; gap: 10px; padding: 6px 12px; overflow-wrap: anywhere; }
.diff div::before { flex: none; width: 10px; font-weight: 600; }
.diff-del { background: rgba(220, 47, 59, .07); color: var(--brand); }
.diff-del::before { content: "\2212"; }
.diff-add { background: rgba(46, 158, 107, .10); color: #1f7a52; }
.diff-add::before { content: "+"; }
.dialog .diff { margin-bottom: 20px; }

.check-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--line); }
.check-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.check-item.is-warn::before { background: var(--warn); }
.check-item.is-error::before { background: var(--brand); }
.check-item strong { display: block; font-weight: 600; color: var(--ink); }
.check-item small { display: block; margin-top: 2px; font-size: 12px; color: var(--slate-dark); }
.check-ok { font-size: 12px; color: var(--slate); white-space: nowrap; }
.check-form { padding-top: 20px; }
.public-head a { color: inherit; }

.draft { display: none; }
label.btn-primary, label.btn-secondary { cursor: pointer; }
.tool-menu summary { gap: 5px; }
.tool-menu .menu { min-width: 220px; }
.textarea.is-text { min-height: 132px; font-family: inherit; font-size: 13px; line-height: 1.45; }
.draft-bar, .draft-done { display: none; }
.content:has(#draft-assist:checked) .bar-assist, .content:has(#draft-preset:checked) .bar-preset, .content:has(#draft-copy:checked) .bar-copy { display: flex; }
.content:has(#dns-saved:checked) .draft-bar { display: none; }
.content:has(.draft:not(#dns-saved):checked):has(#dns-saved:checked) .draft-done { display: flex; }
.content:not(:has(#draft-assist:checked)) .d-assist, .content:not(:has(#draft-preset:checked)) .d-preset, .content:not(:has(#draft-copy:checked)) .d-copy { display: none; }
.content:not(:has(#dns-saved:checked)) tr.is-new td { background: rgba(46, 158, 107, .08); }
.content:not(:has(#dns-saved:checked)) tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.content:has(#draft-preset:checked):not(:has(#dns-saved:checked)) tr.rm-preset td { background: rgba(220, 47, 59, .05); text-decoration: line-through; }
.content:has(#draft-preset:checked):not(:has(#dns-saved:checked)) tr.rm-preset td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.content:has(#draft-preset:checked):has(#dns-saved:checked) tr.rm-preset { display: none; }
.content:has(.draft:checked) dialog.is-tool { display: none; }
.content:not(:has(#medewerker:target)) .as-employee, .content:has(#medewerker:target) .as-approver { display: none !important; }
.content:has(#medewerker:target):has(#dns-saved:checked) tr.is-new { display: none; }
.content:has(#medewerker:target):has(#draft-preset:checked):has(#dns-saved:checked) tr.rm-preset { display: table-row; }
.dialog .textarea.is-text { min-height: 84px; }
.tag.is-warn { border-color: transparent; background: rgba(200, 129, 26, .14); color: var(--warn-dark); }
.tag.is-error { border-color: transparent; background: rgba(220, 47, 59, .1); color: var(--brand); }
.change-why { font-size: 12px; color: var(--warn-dark); }

.flag { display: none; }
.content:not(:has(#dom-cancelled:checked)) .when-cancelled,
.content:has(#dom-cancelled:checked) .unless-cancelled,
.content:has(#dom-cancelled:checked) #dialog-cancel { display: none; }
.dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.content:has(#fwd-off:checked) .when-fwd,
.content:not(:has(#fwd-off:checked)) .unless-fwd,
.content:has(#fwd-off:checked) #confirm-fwd { display: none; }
.content:has(#fwd-off:checked):has(#tab-doorsturing:checked) .panel-doorsturing { display: none; }
.content:has(#fwd-off:checked):has(#tab-doorsturing:checked) .panel-overzicht { display: flex; }
.content:has(#fwd-off:checked) .tabs:has(#tab-doorsturing:checked) label[for="tab-overzicht"] { color: var(--ink); border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.suffix { align-self: center; color: var(--slate-dark); white-space: nowrap; }
.note-empty { padding: 16px 24px; border-top: 1px solid var(--line); color: var(--slate); }
.notice small { margin-left: 6px; font-size: 12px; color: var(--slate); white-space: nowrap; }
.note-add { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 0 24px 18px; }
.note-add .textarea { min-height: 72px; }
.note-add + .table-note { padding-top: 0; }
.note { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.note.is-editing { background: var(--selected); }
.note p { color: var(--ink); }
.note small { display: block; margin-top: 4px; font-size: 12px; color: var(--slate); }
.table-note a { color: var(--slate-dark); text-decoration: underline; }
.table-note a:hover { color: var(--ink); }
.cell-sub { margin-left: 6px; font-size: 12px; color: var(--slate); }

.sel-count::before { content: counter(selected); }
.filter-opt span { margin-left: auto; font-size: 12px; color: var(--slate); }
.filter-foot:has(> :nth-child(2)) { justify-content: space-between; }
.filter-menu:has(.filter-group:nth-of-type(3)) { width: 260px; }
.group-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.group-row { display: flex; align-items: center; gap: 10px; }
.group-row .input { flex: 1; min-width: 0; }
.group-row span { flex: 0 0 112px; font-size: 12px; color: var(--slate); white-space: nowrap; }
.group-list .add-row { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.dialog .field-label + .diff { margin-top: 0; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.num-list { display: flex; flex-direction: column; gap: 4px; margin: -8px 0 16px; padding-left: 18px; color: var(--slate-dark); }
.dialog .check-line { margin-bottom: 14px; align-items: flex-start; }
.dialog .dialog-note { font-size: 12px; color: var(--slate); }
.dialog:has(.flag:checked) .step-a, .dialog:not(:has(.flag:checked)) .step-b { display: none; }
.dialog .copy-field { margin-bottom: 20px; }
.tool-menu .pop-title { padding: 6px 14px 4px; }

.only-from { display: none; }
.dialog:has(#tpl-from:checked) .only-from { display: flex; }
.setting-row.is-first { border-top: 0; }
.table-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--slate-dark); }
.dialog .field-head a { text-decoration: underline; }
.grid-2 .dns-table th:nth-child(2) { width: 150px; }

.pop-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 6px 8px; border-radius: 4px; color: var(--ink); cursor: pointer; }
.pop-switch:hover { background: var(--bg); }
.pop-push { padding: 10px 16px; border-top: 1px solid var(--line); border-radius: 0; font-size: 12px; color: var(--slate-dark); }

.tour { display: none; position: fixed; inset: 0; z-index: 200; }
.tour:target { display: block; }
.tour.is-center { background: rgba(2, 27, 41, .55); }
body:has(.tour:target) [popover] { display: none; }
.tour-hole { position: fixed; border-radius: 8px; box-shadow: 0 0 0 200vmax rgba(2, 27, 41, .55); }
.tour-card { position: fixed; width: 300px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 16px 48px rgba(2, 27, 41, .25); }
.tour-card small { display: block; font-size: 12px; color: var(--slate); }
.tour-card strong { display: block; margin: 2px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tour-card p { color: var(--slate-dark); }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-skip { margin-right: auto; font-size: 12px; color: var(--slate-dark); }
a.tour-skip:hover { color: var(--ink); text-decoration: underline; }
.tour.is-center .tour-card { inset: 0; margin: auto; height: fit-content; width: 340px; }
.tour-nav .tour-hole { left: 8px; top: 76px; width: 204px; height: 412px; }
.tour-nav .tour-card { left: 232px; top: 84px; }
.tour-search .tour-hole { left: 244px; top: 5px; width: 432px; height: 46px; }
.tour-search .tour-card { left: 250px; top: 64px; }
.tour-notif .tour-hole { right: 70px; top: 8px; width: 40px; height: 40px; border-radius: 50%; }
.tour-menu .tour-hole { right: 24px; top: 8px; width: 40px; height: 40px; border-radius: 50%; }
.tour-notif .tour-card, .tour-menu .tour-card { right: 24px; top: 62px; }
@media (max-width: 900px) {
  .tour { background: rgba(2, 27, 41, .55); }
  .tour-hole { display: none; }
  .tour .tour-card, .tour.is-center .tour-card { inset: auto 16px 16px 16px; margin: 0; width: auto; }
}

.nav-open, .nav-backdrop, .nav-toggle, .nav-close, .topbar-logo { display: none; }

.split { display: flex; flex: none; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow: hidden; }
.list-hide { display: none; }
.list-pane {
  width: 250px; flex: 0 0 250px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
}
.list-head { display: flex; align-items: center; gap: 8px; padding: 13px 12px 13px 16px; border-bottom: 1px solid var(--line); }
.list-head .search { width: auto; flex: 1; }
.list-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0; }
.list-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 16px; color: var(--ink);
}
.list-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item:hover { background: var(--hover); }
.list-item.active { background: var(--selected); font-weight: 600; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot.pending { background: var(--brand-soft); }
.dot.off { background: var(--slate); }
.list-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--slate);
}
.list-select { color: var(--slate-dark); font-weight: 500; }
.list-select:hover { text-decoration: underline; }
.btn-icon { width: 30px; padding: 0; justify-content: center; margin-left: auto; }

.detail { flex: 1; min-width: 0; overflow-y: auto; container-type: inline-size; container-name: detail; }
.page-head-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.list-show { display: none; margin: -1px 0 0 -4px; }
.split .back-link { display: none; }
.split:has(.list-hide:checked) .list-pane { display: none; }
.split:has(.list-hide:checked) .list-show { display: grid; }
@container detail (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 1200px) {
  .split .list-pane { flex: 1; width: auto; border-right: 0; }
  .split .detail { display: none; }
  .split:has(.detail:target) .list-pane { display: none; }
  .split:has(.detail:target) .detail { display: flex; }
  .list-collapse, .split:has(.list-hide:checked) .list-show { display: none; }
  .split .back-link { display: inline-flex; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; z-index: 40;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .app:has(.nav-open:checked) .sidebar { transform: none; box-shadow: 0 0 40px rgba(2, 27, 41, .35); }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 30;
    background: rgba(2, 27, 41, .45);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .app:has(.nav-open:checked) .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-close {
    display: grid; place-items: center; position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 4px; color: rgba(255, 255, 255, .75); cursor: pointer;
  }
  .nav-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-nav { gap: 12px; }
  .topbar-search { display: none; }
  .search-btn { display: grid; }
  #search-pop { top: 52px; left: auto; right: 16px; width: 380px; }
  .avatar-btn { margin-right: 0; }
  .nav-toggle {
    display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px;
    border-radius: 4px; color: var(--ink); cursor: pointer;
  }
  .nav-toggle:hover { background: var(--bg); }
  .topbar-logo { display: block; }
  .topbar-logo img { height: 22px; width: auto; display: block; }
  .content { padding: 20px 16px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .banner { font-size: 11px; padding: 0 12px; text-align: center; }
  th, td { padding: 12px 16px; }
}

@media (max-width: 700px) {
  thead { display: none; }
  table, tbody, tbody tr, tbody td { display: block; }
  tbody tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:has(td.check) { padding-left: 44px; }
  tbody tr:last-child { border-bottom: 0; }
  tbody tr:hover td, tbody tr:has(.row-check:checked) td { background: transparent; }
  tbody tr:has(.row-check:checked) { background: var(--selected); }
  tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; border: 0; }
  tbody td::before { content: attr(data-label); flex: 0 0 auto; font-size: 12px; color: var(--slate); }
  tbody td.primary { display: block; padding: 0 36px 4px 0; font-weight: 500; color: var(--ink); }
  tbody td.primary::before { content: none; }
  tbody td.check { position: absolute; left: 16px; top: 14px; width: auto; padding: 0; }
  tbody td.check::before { content: none; }
  tbody td.actions { position: absolute; right: 8px; top: 8px; width: auto; padding: 0; }
  tbody td.actions::before { content: none; }
  tbody td.actions-wide { right: 12px; }
  tbody tr:has(td.actions-wide) td.primary { padding-right: 130px; }
  .table-foot { justify-content: space-between; gap: 10px; }
  .form { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .summary { flex-wrap: wrap; }
  .tabs { gap: 18px; overflow-x: auto; }
  .toast { inset: auto 16px 16px 16px; }
  .dialog { padding: 20px; }
}

@media (max-width: 1000px) { .order { grid-template-columns: minmax(0, 1fr); } .order-side { position: static; } }

@media (max-width: 700px) {
  .block-head, .toolbar, .chips, .select-bar, .attn-item, .attn-empty, .stat, .activity li, .recent-row,
  .kv > div, .card-body, .card-foot, .table-note, .table-foot, .form, .summary, .table-empty { padding-left: 16px; padding-right: 16px; }
  .toolbar .search { flex: 1 1 0; width: auto; min-width: 0; }
  .sub-row, .sum-row, .sum-title, .pick-row, .plans, .choices, .meters, .meter-total { padding-left: 16px; padding-right: 16px; }
  .inline-note, .card > .tabs, .card > form > .tabs { margin-left: 16px; margin-right: 16px; }
  .meters, .meters.two, .plans, .checks { grid-template-columns: 1fr; }
  .meters { gap: 14px; }
  .pick-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pick-row .select { width: 100%; }
  .setting-row { flex-wrap: wrap; }
  .public-main { padding: 20px 16px 40px; }
  .change, .check-item { padding-left: 16px; padding-right: 16px; }
  .change-head { flex-wrap: wrap; }
  .block-head, .head-actions { flex-wrap: wrap; row-gap: 6px; }
  .panel-dns .toolbar-right { margin-left: 0; }
  .draft-bar { flex-direction: column; align-items: flex-start; }
  .block-head .head-actions { flex: 1 1 100%; }
  .check-item { grid-template-columns: 8px minmax(0, 1fr); }
  .check-item > :nth-child(2) { grid-column: 2; justify-self: start; }
  .sg-row { grid-template-columns: 1fr; gap: 8px; padding-left: 16px; padding-right: 16px; }
  .swatches, .sg-sub { padding-left: 16px; padding-right: 16px; }
  .sg-items .field, .sg-items .meter, .sg-items > .search, .sg-items > .select, .sg-items > .textarea { width: 100%; }
  .notice { padding-left: 16px; }
  .select-bar { flex-wrap: wrap; row-gap: 10px; }
  .select-actions { margin-left: 0; flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; gap: 20px; padding: 4px 16px 20px; }
  .facts { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .setting-row { padding: 14px 16px; }
  .steps li { padding: 0 0 0 36px; }
  .steps li::before { top: 26px; bottom: -22px; left: 11px; right: auto; width: 2px; height: auto; }
  tfoot, tfoot tr, tfoot td { display: block; }
  tfoot tr { display: flex; justify-content: space-between; padding: 4px 16px; }
  tfoot tr:first-child { padding-top: 12px; }
  tfoot tr:last-child { padding-bottom: 14px; }
  tfoot td { padding: 0; }
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-flip:checked)) {
    color-scheme: dark;
    --warn: #e0a84a; --warn-dark: #f0c27a; --focus: #4f88a8;
    --bg: #0b1a24;
    --panel: #10232f;
    --line: #1f3340;
    --ink: #e6edf3;
    --slate: #8aa0b2;
    --slate-dark: #b7c6d2;
    --slate-light: #2c4150;
    --navy-soft: #071722;
    --hover: rgba(255, 255, 255, .03);
    --selected: rgba(255, 255, 255, .07);
    --chip-bg: #e6edf3; --chip-fg: #0b1a24;
    --float-bg: #223846;
    --green: #3fbf84;
    .topbar-logo img { filter: brightness(0) invert(1); }
    .promo-art circle[fill="rgb(2,27,41)"] { fill: #1b3b4f; }
    .dialog::backdrop, .nav-backdrop { background: rgba(0, 0, 0, .55); }
    .status.busy::before { background: #4f88a8; }
    .toggle:has(input:checked), .toggle.is-on { background: #4f88a8; }
    .inline-note.is-error, .inline-note.is-error strong, .notice.is-error p, .notice.is-error strong, .auth-error, .diff-del, .dialog .dialog-note.is-fout, .tag.is-error { color: #ff9aa1; }
    .diff-add { color: #5fd39a; }
    .input:focus, .select:focus { border-color: #4f88a8; box-shadow: 0 0 0 3px rgba(79, 136, 168, .25); }
  }
  .theme-switch .toggle { background: #4f88a8; }
  .theme-switch .toggle::after { transform: translateX(14px); }
  .theme-switch .toggle:has(input:checked) { background: var(--slate-light); }
  .theme-switch .toggle:has(input:checked)::after { transform: none; }
}
@media (prefers-color-scheme: light) {
  :root:has(#theme-flip:checked) {
    color-scheme: dark;
    --warn: #e0a84a; --warn-dark: #f0c27a; --focus: #4f88a8;
    --bg: #0b1a24;
    --panel: #10232f;
    --line: #1f3340;
    --ink: #e6edf3;
    --slate: #8aa0b2;
    --slate-dark: #b7c6d2;
    --slate-light: #2c4150;
    --navy-soft: #071722;
    --hover: rgba(255, 255, 255, .03);
    --selected: rgba(255, 255, 255, .07);
    --chip-bg: #e6edf3; --chip-fg: #0b1a24;
    --float-bg: #223846;
    --green: #3fbf84;
    .topbar-logo img { filter: brightness(0) invert(1); }
    .promo-art circle[fill="rgb(2,27,41)"] { fill: #1b3b4f; }
    .dialog::backdrop, .nav-backdrop { background: rgba(0, 0, 0, .55); }
    .status.busy::before { background: #4f88a8; }
    .toggle:has(input:checked), .toggle.is-on { background: #4f88a8; }
    .inline-note.is-error, .inline-note.is-error strong, .notice.is-error p, .notice.is-error strong, .auth-error, .diff-del, .dialog .dialog-note.is-fout, .tag.is-error { color: #ff9aa1; }
    .diff-add { color: #5fd39a; }
    .input:focus, .select:focus { border-color: #4f88a8; box-shadow: 0 0 0 3px rgba(79, 136, 168, .25); }
  }
}

.picker-list { max-height: 220px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-veld); padding: 4px 0; }
.picker-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.picker-item { position: relative; display: block; padding: 7px 12px; cursor: pointer; overflow-wrap: anywhere; }
.picker-item input { position: absolute; opacity: 0; pointer-events: none; }
.picker-item:hover { background: var(--bg); }
.picker-item:has(input:checked) { background: var(--selected); font-weight: 600; }
.picker-item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.picker-empty { display: none; padding: 8px 12px; color: var(--slate); }

[hidden] { display: none !important; }

.toggle:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.toggle:has(input:focus-visible) { outline: 2px solid var(--navy-soft); outline-offset: 2px; }
.btn-primary.is-danger { background: var(--brand); border-color: var(--brand); }
.toggle.is-locked { opacity: .55; cursor: not-allowed; }
.muted { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dialog .groep-nieuw { display: none; }
.dialog:has(option[value="nieuw"]:checked) .groep-nieuw { display: flex; }

#dns-records th.actions-wide, #dns-records td.actions-wide { width: 184px; padding-right: 24px; white-space: nowrap; }
.dns-knoppen { display: inline-flex; gap: 6px; justify-content: flex-end; }
.dns-bewerk-rij td, tbody tr.dns-bewerk-rij:hover td { background: var(--hover); padding: 12px 24px; }
.dns-form { display: grid; grid-template-columns: 96px 190px minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; }
.dns-form-knoppen { display: inline-flex; gap: 6px; }
.dns-form small { grid-column: 1 / -1; font-size: 12px; color: var(--slate); }
.dns-form small.dns-form-fout { color: var(--brand); font-weight: 500; }
@keyframes dns-nieuw { from { background: rgba(46, 158, 107, .18); } to { background: transparent; } }
tr.dns-rij.is-nieuw td { animation: dns-nieuw 2.5s ease-out; }
#dns-fout { margin: 0 24px 12px; }
#dns-voorstel .diff { max-height: 360px; overflow-y: auto; margin-bottom: 12px; }
@media (max-width: 900px) {
  .dns-form { grid-template-columns: 96px minmax(0, 1fr); }
  .dns-form input[name="waarde"], .dns-form-knoppen { grid-column: 1 / -1; }
}
.panel-dns { display: flex; flex-direction: column; }
.panel-dns > .select-bar { padding-top: 20px; }
.dns-historie { table-layout: fixed; }
.dns-historie th:nth-child(1) { width: 150px; }
.dns-historie th:nth-child(2) { width: 150px; }
.dns-historie th:nth-child(4) { width: 180px; }
.dns-historie td { vertical-align: top; }
.dns-historie td.primary { white-space: nowrap; font-weight: 400; }
.dns-historie td code { white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.dns-meer summary { cursor: pointer; color: var(--ink); }
.dns-meer .diff { margin-top: 8px; max-height: 300px; overflow-y: auto; }
.dns-versie { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dns-versie > span { display: flex; flex-direction: column; margin-right: auto; }
.dns-versie > span small { font-size: 12px; color: var(--slate); }
#dns-versie-inhoud { margin-bottom: 0; min-height: 80px; }
#dns-versie-inhoud .diff { max-height: 220px; overflow-y: auto; margin-bottom: 0; }
#dns-versie-inhoud .dns-versie-datum { margin: 0; }
#dns-versie-inhoud.is-bezig { opacity: .5; }
.dns-nieuw-rij { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px; gap: 12px; align-items: start; }
#dn-waarde { min-height: 34px; height: 34px; padding: 8px 10px; resize: none; overflow: hidden; white-space: nowrap; }
#dn-waarde.is-groot { height: 120px; resize: vertical; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
p.dns-form-fout { margin: 0; color: var(--brand); font-weight: 500; font-size: 13px; }
@media (max-width: 600px) { .dns-nieuw-rij { grid-template-columns: 1fr; } }
#dns-records tr.dns-rij:has(.dns-bewerk) td:not(.check):not(.actions) { cursor: pointer; }
@media (max-width: 700px) {
  #dns-records tbody td.actions-wide { position: static; width: auto; padding: 6px 0 0; text-align: left; }
  #dns-records tbody tr:has(td.actions-wide) td.primary { padding-right: 0; }
}

.mail-verbruik { padding: 4px 24px 20px; }
.mail-verbruik summary { list-style: none; cursor: pointer; display: inline-flex; }
.mail-verbruik summary::-webkit-details-marker { display: none; }
.mail-verbruik[open] summary { margin-bottom: 14px; }
.mail-verbruik-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.mail-verbruik-adres { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--ink); }
@media (max-width: 700px) {
  .mail-verbruik { padding-left: 16px; padding-right: 16px; }
  .mail-verbruik-lijst { grid-template-columns: 1fr; }
}
.mail-verbruik .als-open { display: none; }
.mail-verbruik[open] .als-open { display: inline; }
.mail-verbruik[open] .als-dicht { display: none; }

.toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-filters .select { height: 30px; width: auto; }
.toolbar:has(.toolbar-filters) { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rechten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; }
.rechten-groep { display: flex; flex-direction: column; gap: 8px; }
.rechten-groep > strong { font-size: 12px; font-weight: 600; color: var(--ink); }
.dialog .rechten .check-line { margin-bottom: 0; font-size: 13px; }
@media (max-width: 600px) { .rechten { grid-template-columns: 1fr; } }
.tag.is-nieuw { border-color: transparent; background: rgba(46, 158, 107, .14); color: #1f7a52; }
.tag.is-weg { border-color: transparent; background: rgba(220, 47, 59, .10); color: var(--brand); }
tr.dns-rij.is-klaar-nieuw td { background: rgba(46, 158, 107, .06); }
tr.dns-rij.is-klaar-weg td { background: rgba(220, 47, 59, .04); }
tr.dns-rij.is-klaar-weg td code { text-decoration: line-through; color: var(--slate); }
#dns-records tr.dns-rij.is-klaar-weg td:not(.check):not(.actions) { cursor: default; }
.dns-plan-weg { margin-top: 6px; }
.dv-planned .empty-state form { margin-top: 12px; }
#dns-records[data-verzamelen] th:nth-child(2) { width: 150px; }
#dns-records td.primary { white-space: nowrap; }
.link-label { text-decoration: underline; cursor: pointer; color: inherit; }
.grid-2.is-gelijk { grid-template-columns: 1fr 1fr; }
.grid-2 .kolom { display: flex; flex-direction: column; gap: 20px; }
.grid-2 .card:has(> .form) { max-width: none; }
@media (max-width: 1000px) { .grid-2.is-gelijk { grid-template-columns: 1fr; } }
@container detail (max-width: 800px) { .grid-2.is-gelijk { grid-template-columns: 1fr; } }
.ns-keuze .dialog-fields { margin-bottom: 14px; }
.ns-keuze .choice:has(input:checked) { border-color: var(--navy-soft); background: var(--hover); }
.ns-blok { margin-bottom: 14px; }
.ns-keuze:has(#ns-onze:checked) .ns-blok-eigen { display: none; }
.ns-velden { display: flex; flex-direction: column; gap: 8px; }
.ns-veld { display: flex; align-items: center; gap: 10px; }
.ns-veld label { flex: none; width: 16px; text-align: right; font-size: 12px; font-weight: 500; color: var(--slate); }
.ns-veld .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ns-meer { display: flex; flex-direction: column; }
.ns-meer summary { cursor: pointer; font-size: 12px; color: var(--slate-dark); margin: 2px 0 0 26px; }
.ns-meer[open] summary { margin-bottom: 8px; }
.ns-meer .ns-veld + .ns-veld { margin-top: 8px; }
.ns-let-op { margin: 12px 0 0; padding: 9px 12px; border-radius: 4px; background: rgba(200, 129, 26, .12); font-size: 12px; color: var(--ink); }

.dialog.is-bezig :is(h2, p, .dialog-fields, .ns-blok, .field) { opacity: .4; pointer-events: none; transition: opacity .2s; }

.contact-keuze .dialog-fields { margin-bottom: 14px; }
.contact-kop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.contact-kop h2 { margin: 0; }
.contact-keuze .bron-keuze { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-left: auto; }
.contact-blok { margin-bottom: 14px; }
.contact-keuze:has(input[name="bron"][value="houder"]:checked) .contact-blok-nieuw,
.contact-keuze:has(input[name="bron"][value="adresboek"]:checked) .contact-blok-nieuw,
.contact-keuze:has(input[name="bron"][value="domein"]:checked) .contact-blok-nieuw { display: none; }
.contact-keuze .contact-blok-houder,
.contact-keuze .contact-blok-adresboek,
.contact-keuze .contact-blok-domein { display: none; }
.contact-keuze:has(input[name="bron"][value="houder"]:checked) .contact-blok-houder,
.contact-keuze:has(input[name="bron"][value="adresboek"]:checked) .contact-blok-adresboek,
.contact-keuze:has(input[name="bron"][value="domein"]:checked) .contact-blok-domein { display: block; }
.contact-blok-nieuw:has(input[name="soort"][value="particulier"]:checked) .veld-bedrijf { display: none; }
.contact-blok-nieuw .alleen-particulier { display: none; }
.contact-blok-nieuw:has(input[name="soort"][value="particulier"]:checked) .alleen-particulier { display: inline; }
.contact-blok-nieuw:has(input[name="soort"][value="particulier"]:checked) .alleen-zakelijk { display: none; }
.contact-blok-nieuw label small { font-weight: 400; color: var(--slate); }
.contact-keuze:has(input[name="bron"][value="domein"]:checked) .dialog-actions .btn-primary { display: none; }
.contact-blok-domein .btn-secondary { margin-top: 10px; }
.contact-blok-domein .picker-list { max-height: 200px; }
.contact-blok-domein:not(:has(input[name="ander_domein"]:checked)) .btn-secondary { opacity: .5; pointer-events: none; }
.contact-blok-nieuw .dialog-note { margin: 0 0 12px; }
.dialog.is-bezig .contact-blok { opacity: .4; pointer-events: none; transition: opacity .2s; }

.voortgang { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.voortgang span { display: block; height: 100%; background: var(--navy-soft); transition: width .4s; }
.voortgang-tekst { margin: 10px 0 0; color: var(--slate); }
.voortgang-tekst strong { color: var(--ink); }
.registry-overgeslagen { padding-top: 16px; }
.registry-overgeslagen summary { cursor: pointer; color: var(--slate); }
.registry-overgeslagen ul { margin: 8px 0 0; padding-left: 18px; }

.dnssec-waarde { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 11px; word-break: break-all; }
.dnssec-invoer { width: 100%; min-height: 84px; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; resize: vertical; }

.group-row:has(input[name="verwijder[]"]:checked) .input { text-decoration: line-through; opacity: .5; }
.group-row:has(input[name="verwijder[]"]:checked) span { color: var(--brand); }
.group-row label.icon-btn { cursor: pointer; }
.group-row label.icon-btn:has(input:checked) { background: rgba(200, 40, 40, .12); color: var(--brand); }

.dns-bulk-regels summary { cursor: pointer; }
.dns-bulk-regels ul { margin: 6px 0 0; padding: 0; list-style: none; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 11px; }
.dns-bulk-regels li { padding: 1px 0; word-break: break-all; }
.dns-bulk-regels li.is-erbij { color: #1f7a3d; }
.dns-bulk-regels li.is-weg { color: var(--brand); }
.dns-bulk-domein { width: 32%; }
.dns-bulk-regels summary { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.dns-bulk-regels summary::-webkit-details-marker { display: none; }
.dns-bulk-regels summary::before { content: "▸"; color: var(--slate); }
.dns-bulk-regels[open] summary::before { content: "▾"; }
.dns-bulk-regels summary .is-erbij { color: #1f7a3d; font-weight: 600; }
.dns-bulk-regels summary .is-weg { color: var(--brand); font-weight: 600; }
.dns-bulk-regels summary .is-over { color: var(--slate); }
.dns-bulk-rust { list-style: none; padding-left: 0; color: var(--slate); font-size: 12px; }
.dns-bulk-rust li { padding: 2px 0; }
@media (max-width: 720px) { .dns-bulk-domein { width: auto; } }

.notice.push-uit { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notice.push-uit p { margin: 0; }
@media (max-width: 720px) { .notice.push-uit { flex-direction: column; align-items: flex-start; } }
.push-domeinen { margin: 0 0 14px; padding-left: 18px; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; }
.field-optional { color: var(--slate); font-weight: 400; }
.toegang-rij:hover { background: none; }

.toegang-rij { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 14px 24px; }
.toegang-rij > span:first-child { gap: 2px; }
.toegang-rij strong,
.toegang-rij small { overflow-wrap: anywhere; }
.toegang-rij .status { display: flex; align-items: flex-start; margin-top: 2px; }
.toegang-rij .status::before { flex: none; margin-top: calc((1lh - 7px) / 2); }
@media (max-width: 700px) { .toegang-rij { padding-left: 16px; padding-right: 16px; } }

.card-foot.is-stack { flex-direction: column; align-items: stretch; }
.card-foot.is-stack > .btn-secondary,
.card-foot.is-stack > .btn-primary { justify-content: center; }
.card > .recent:first-child { border-top: 0; }
.toegang-rij > .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.card-foot.is-start { justify-content: flex-start; flex-wrap: wrap; }

.dialog .dialog-note.is-fout { color: var(--brand); }

.auth-card .btn-primary[hidden] { display: none; }
.auth-card .btn-secondary { justify-content: center; height: 38px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.plan.is-disabled { cursor: not-allowed; opacity: .6; }
.plan.is-disabled:hover, .plan.is-current:hover { border-color: var(--line); }
.plan-tag { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--slate-dark); }
.plan-tag.is-warn { color: var(--warn-dark); }
.change { display: flex; align-items: stretch; gap: 12px; padding: 0 24px 16px; }
.change-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.change-side:last-child { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.change-side span { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.change-side strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.change-side small { font-size: 12px; color: var(--slate-dark); }
.change-arrow { flex: none; align-self: center; color: var(--slate); }
.order-main .kv + form .choices, .order-main .kv + .choices { padding-top: 16px; }
.done-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--slate-dark); }
.done-state > span:not(.done-icon) { max-width: 520px; }
.done-state strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.done-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--green); color: #fff; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
@media (max-width: 700px) {
  .change { flex-direction: column; }
  .change-arrow { transform: rotate(90deg); }
}

.cell-meter { display: flex; flex-direction: column; gap: 4px; width: 180px; max-width: 100%; }
.cell-meter .meter-bar { height: 4px; }
.cell-meter.is-warn .meter-bar span, .meter.is-warn .meter-bar span { background: var(--warn); }
.cell-meter.is-high .meter-bar span { background: var(--brand); }

/* Reselling: overzicht van een gebruiker (reselling-gebruiker.php).
   Een rij met namen als labels, in plaats van nog een lijst. */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .tag { margin-left: 0; height: 24px; padding: 0 9px; font-size: 12px; }
.tag-list a.tag:hover { border-color: var(--slate); color: var(--ink); }
.tag-list .tag.is-more { border-style: dashed; color: var(--slate); }
/* De gebruiker in de lijst is een link naar zijn overzicht */
a.cell-user:hover strong { text-decoration: underline; }

/* Draaiend rondje bij iets dat nog loopt op de server, bijvoorbeeld
   "Wordt bijgewerkt" bij een hostingpakket (reselling-hostingpakketten.php).
   Het gewone bolletje van .status laten we dan weg. */
.loader { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--slate-light); border-top-color: var(--slate-dark); animation: spin .7s linear infinite; }
.tag .loader { margin-right: 5px; }
.status:has(.loader)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 2s; } }

/* Blokken die js/hostingpakketten-live.js bijwerkt. Deze drie zijn alleen een
   omhulsel: de inhoud moet zich gedragen alsof het omhulsel er niet staat. */
#rs-mislukt, #rs-knop, #rs-vensters { display: contents; }
