/* WP Beheer: licht en donker thema via design tokens */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --sidebar: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-active: #1e293b;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #4338ca;
  --green: #059669; --green-soft: #ecfdf5;
  --amber: #b45309; --amber-soft: #fffbeb; --amber-dot: #f59e0b;
  --red: #dc2626; --red-soft: #fef2f2;
  --violet: #7c3aed; --violet-soft: #f5f3ff;
  --blue: #2563eb; --blue-soft: #eff6ff;
  --gray-dot: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px -10px rgba(15, 23, 42, .25);
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 0 0 0 3px rgba(79, 70, 229, .25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #111827; --surface-2: #0f172a; --sidebar: #070b16; --sidebar-active: #172033;
    --text: #e5e7eb; --text-2: #cbd5e1; --muted: #8b95a7; --border: #1f2937; --border-strong: #334155;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #1e1b4b; --accent-text: #a5b4fc;
    --green: #34d399; --green-soft: #052e22; --amber: #fbbf24; --amber-soft: #2d2006; --amber-dot: #f59e0b;
    --red: #f87171; --red-soft: #2d0f12; --violet: #c4b5fd; --violet-soft: #241a3d; --blue: #93c5fd; --blue-soft: #0f1d3a;
    --gray-dot: #475569; --focus: 0 0 0 3px rgba(129, 140, 248, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 0 0 .75rem; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; justify-content: center; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -4px; }

/* ---------- App-shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); color: var(--sidebar-text); padding: 1.1rem .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.05rem; padding: .25rem .5rem 1.25rem; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 4px 12px -2px rgba(99, 102, 241, .5); }
.logo .icon { width: 18px; height: 18px; }
.mainnav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navlabel { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #64748b; padding: 1rem .75rem .4rem; }
.navlabel:first-child { padding-top: 0; }
.mainnav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; transition: background .15s, color .15s; }
.mainnav a:hover { background: var(--sidebar-active); color: #e2e8f0; text-decoration: none; }
.mainnav a.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }
.userbox { display: flex; align-items: center; gap: .25rem; border-top: 1px solid #1e293b; padding-top: .9rem; margin-top: .75rem; }
.userlink { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; padding: .4rem .5rem; border-radius: 8px; color: #e2e8f0; }
.userlink:hover, .userlink.active { background: var(--sidebar-active); text-decoration: none; }
.userlink span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.userlink strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userlink small { color: #64748b; font-size: .75rem; }
.sidebar .iconbtn { color: var(--sidebar-text); }
.sidebar .iconbtn:hover { background: var(--sidebar-active); color: #fff; }
.content { min-width: 0; display: flex; flex-direction: column; }
.mobilebar { display: none; }
.pagehead { padding: 1.75rem 2rem 0; max-width: 1440px; width: 100%; margin: 0 auto; }
.pagehead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.pagehead-title { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.pagehead .sub { color: var(--muted); margin: .3rem 0 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--muted); }
.page { padding: 1.5rem 2rem 3rem; max-width: 1440px; width: 100%; margin: 0 auto; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 .95rem; font: inherit; font-weight: 600; font-size: .875rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .iconbtn:focus-visible, input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0b1120; } }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-text, .danger-text { color: var(--red); }
.btn.small { height: 30px; padding: 0 .65rem; font-size: .8rem; }
.btn.small .icon { width: 15px; height: 15px; }
.btn.block { width: 100%; height: 42px; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Formulieren ---------- */
label { display: block; font-weight: 550; font-size: .85rem; color: var(--text-2); }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: .3rem; font-size: .8rem; }
.req { color: var(--red); }
input, select, textarea { display: block; width: 100%; margin-top: .35rem; padding: .55rem .75rem; font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 16px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.fields .span2 { grid-column: span 2; }
label.inline { display: inline-flex; gap: .5rem; align-items: center; margin: 0; font-weight: 500; color: var(--muted); white-space: nowrap; }
label.inline input { margin: 0; width: auto; }
form.inline { display: flex; gap: .4rem; align-items: center; flex-wrap: nowrap; }
.rowbtns { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
form.inline select { width: auto; margin: 0; padding-top: .35rem; padding-bottom: .35rem; font-size: .85rem; }
.formpage { display: flex; flex-direction: column; gap: 1.25rem; max-width: 980px; }
.formsection { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; margin: 0; }
.formsection .fs-head h2 { margin-bottom: .35rem; }
.split .formsection, .servergrid + .formsection { grid-template-columns: 1fr; gap: 1rem; }
.formbar { display: flex; justify-content: flex-end; gap: .5rem; position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, var(--bg) 35%); }
.formbar.inline { position: static; background: none; padding: 1rem 0 0; }
.otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding: .7rem; font-family: ui-monospace, monospace; }
fieldset.roles { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
fieldset.roles legend { font-weight: 550; font-size: .85rem; color: var(--text-2); margin-bottom: .35rem; }
label.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
label.radio input { width: auto; margin: .2rem 0 0; accent-color: var(--accent); }
label.radio span { display: flex; flex-direction: column; }
label.radio strong { color: var(--text); }
label.radio small { margin: 0; }
label.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.75rem 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 28px; height: 28px; color: var(--accent); }
.dropzone strong { color: var(--text); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- Kaarten & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card.flush { padding: 0; overflow: hidden; }
.cardbody { padding: 1.4rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.25rem; }
.grid2 > .card { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.split > .card { margin: 0; }

/* ---------- Statistieken ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.stat strong { display: block; font-size: 1.65rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .of { font-size: 1rem; color: var(--muted); font-weight: 500; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; flex: none; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat.blue .stat-icon { background: var(--blue-soft); color: var(--blue); }
.stat.green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat.amber .stat-icon { background: var(--amber-soft); color: var(--amber); }

/* ---------- Toolbar, tabs, zoeken ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); }
form.toolbar { justify-content: flex-start; }
form.toolbar select, .searchform select { width: auto; margin: 0; }
.searchform { display: flex; gap: .5rem; align-items: center; flex: 1; justify-content: flex-end; min-width: 280px; }
.search { position: relative; flex: 1; max-width: 420px; margin: 0; }
.search .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { margin: 0; padding-left: 2.4rem; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); padding: 3px; border-radius: 10px; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: .85rem; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs .count { font-size: .8rem; background: var(--border); color: var(--text-2); padding: 0 .4rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.tabs a.active .count { background: var(--accent-soft); color: var(--accent-text); }
.tabs.underline { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: 1.5rem; margin-bottom: 1.25rem; }
.tabs.underline a { padding: .65rem 0; border-radius: 0; box-shadow: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs.underline a.active { border-bottom-color: var(--accent); color: var(--text); }
.filterinfo { padding: .55rem 1.1rem; font-size: .85rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; gap: .75rem; }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.list th { text-align: left; padding: .7rem 1.1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.list td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.list tbody tr { transition: background .1s; }
table.list tbody tr:hover { background: var(--surface-2); }
table.list tr:last-child td { border-bottom: 0; }
table.list tr[data-href] { cursor: pointer; }
table.list tr.inactive { opacity: .55; }
table.list td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sort { color: inherit; display: inline-flex; align-items: center; gap: .25rem; }
.sort:hover { color: var(--text); text-decoration: none; }
.sort.asc::after { content: "↑"; color: var(--accent-text); }
.sort.desc::after { content: "↓"; color: var(--accent-text); }
.sitecell { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.sitecell > div { min-width: 0; }
.sitename { display: block; font-weight: 600; color: var(--text); }
.siteurl { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }

/* ---------- Avatars, pills, versies, status ---------- */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .78rem; font-weight: 700; color: #fff; flex: none; letter-spacing: .02em; }
.avatar.sq { border-radius: 9px; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.05rem; border-radius: 14px; }
.avatar.h0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .avatar.h1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.avatar.h2 { background: linear-gradient(135deg, #10b981, #059669); } .avatar.h3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.avatar.h4 { background: linear-gradient(135deg, #ec4899, #db2777); } .avatar.h5 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.avatar.h6 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } .avatar.h7 { background: linear-gradient(135deg, #64748b, #334155); }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; line-height: 1.5; }
.pill .icon { width: 13px; height: 13px; vertical-align: -2px; }
.pill.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.pill.bad { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pill.dev { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.ver { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ver.ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.ver.warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.ver.bad { background: var(--red-soft); border-color: transparent; color: var(--red); }
.status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .85rem; color: var(--text-2); }
.status .block { display: block; font-size: .82rem; margin-top: .1rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gray-dot); }
.dot.green { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.dot.amber { background: var(--amber-dot); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }

/* ---------- Detailpagina ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.tile { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.tile > div { min-width: 0; }
.tile small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile strong { display: block; font-size: 1.15rem; font-weight: 700; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-note { display: block; font-size: .82rem; color: var(--text-2); margin-top: .15rem; }
.tile-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.healthtiles { grid-template-columns: repeat(3, 1fr); margin-top: -.25rem; }
@media (max-width: 860px) { .healthtiles { grid-template-columns: 1fr; } }
.healthtiles .tile > div { flex: 1; }
.spark { display: flex; gap: 2px; align-items: flex-end; height: 30px; margin-top: .45rem; }
.spark i { flex: 1; min-width: 2px; height: 100%; background: #10b981; opacity: .55; border-radius: 2px; }
.spark i.down { background: var(--red); opacity: 1; }
.spark i.d1 { height: 75%; } .spark i.d2 { height: 50%; } .spark i.d3 { height: 25%; }
.tile.warn { border-color: rgba(245, 158, 11, .45); }
.tile.warn .tile-icon { background: var(--amber-soft); color: var(--amber); }
.tile.warn .tile-note { color: var(--amber); font-weight: 600; }
.tile.bad { border-color: rgba(220, 38, 38, .4); }
.tile.bad .tile-icon { background: var(--red-soft); color: var(--red); }
.tile.bad .tile-note { color: var(--red); font-weight: 600; }
.tile.nowp { grid-column: span 2; }
.tile.nowp .tile-icon { background: var(--blue-soft); color: var(--blue); }
.pill.nowp { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.dot.blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.tabpanel { scroll-margin-top: 1rem; }
.js .tabpanel:not(.active) { display: none; }
dl.props { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: .65rem 1.5rem; margin: 0; }
dl.props dt { color: var(--muted); font-size: .85rem; }
dl.props dd { margin: 0; word-break: break-word; }
dl.props.wide { grid-template-columns: 200px 1fr; }
dl.props.compact { gap: .3rem 1rem; font-size: .85rem; }
.pre { white-space: pre-wrap; }
.dangerzone { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid rgba(220, 38, 38, .3); border-radius: var(--radius-sm); background: var(--red-soft); }
.dangerzone p { margin: .15rem 0 0; }
.connect { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.connect > div:first-child { flex: 1; min-width: 280px; }
.profile { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.profile h2 { margin: 0; }
.profile p { margin: 0; }

/* ---------- Tijdlijn ---------- */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; }
.tl-date { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.tl-day ul { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-day ul::before { content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: flex; gap: .85rem; padding: .45rem 0; position: relative; }
.tl-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--surface-2); color: var(--muted); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); position: relative; }
.tl-icon .icon { width: 16px; height: 16px; }
.tl-icon.c-wordpress { background: var(--blue-soft); color: var(--blue); }
.tl-icon.c-php { background: var(--violet-soft); color: var(--violet); }
.tl-icon.c-theme { background: var(--amber-soft); color: var(--amber); }
.tl-icon.c-plugin { background: var(--green-soft); color: var(--green); }
.tl-icon.c-database { background: var(--accent-soft); color: var(--accent-text); }
.tl-body { padding-top: .3rem; min-width: 0; }
.tl-main { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tl-change { display: inline-flex; align-items: center; gap: .35rem; }
.tl-site { font-weight: 600; }
.arrow { color: var(--muted); }
.tl-meta { font-size: .85rem; color: var(--text-2); margin-top: .1rem; }
.tl-icon.c-wijziging { background: var(--accent-soft); color: var(--accent-text); }
.tl-entry { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; max-width: 72ch; }
.tl-title { color: var(--text); overflow-wrap: anywhere; }
.tl-detail { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: .875rem; line-height: 1.5; }
.tl-detail.clamp:not(.open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.tl-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05rem .35rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tl-more { font-size: .8rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.tl-more:hover { text-decoration: underline; }
.tl-by { display: inline-flex; align-items: center; gap: .3rem; }
.tl-by .icon { width: 13px; height: 13px; }
.tl-by strong { color: var(--text-2); font-weight: 600; }
.tl-meta form.inline { display: inline-flex; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.changeform { display: flex; align-items: flex-start; gap: .75rem; flex-wrap: wrap; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.changeform label { margin: 0; font-weight: 600; font-size: .85rem; }
.changeform .cf-head { flex: 1 1 100%; font-size: .95rem; margin: 0; }
.changeform .cf-title { flex: 1 1 320px; }
.changeform .cf-who { flex: 0 0 190px; }
.changeform .cf-text { flex: 1 1 100%; }
.changeform .cf-text .muted { font-weight: 400; }
.changeform .cf-text textarea { min-height: 72px; }
.changeform .cf-date { flex: 0 0 170px; }
.changeform > .btn { align-self: flex-end; }
@media (max-width: 520px) { .changeform .cf-date, .changeform .cf-who { flex: 1 1 100%; } .changeform .btn { width: 100%; justify-content: center; } }

/* ---------- Servers ---------- */
.servergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.servercard { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.servercard.editing { border-color: var(--accent); box-shadow: var(--focus); }
.sc-head { display: flex; gap: .75rem; align-items: center; }
.sc-head > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.sc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.sc-icon.dev { background: var(--violet-soft); color: var(--violet); }
.sc-foot { display: flex; gap: .45rem; align-items: center; padding-top: .75rem; border-top: 1px solid var(--border); font-weight: 600; font-size: .85rem; }

/* ---------- Meldingen ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert > .icon { margin-top: 1px; }
.alert.ok { background: var(--green-soft); color: var(--green); border-color: rgba(5, 150, 105, .25); }
.alert.error { background: var(--red-soft); color: var(--red); border-color: rgba(220, 38, 38, .25); }
.alert.block > div { color: var(--text); flex: 1; min-width: 0; }
.codebox { position: relative; margin-top: .75rem; }
.codebox pre { margin: 0; white-space: pre-wrap; word-break: break-all; background: var(--surface); padding: .9rem 7rem .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text); }
.codebox .btn { position: absolute; top: .55rem; right: .55rem; }
.toast { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 50; display: flex; gap: .6rem; align-items: center; max-width: 420px; padding: .8rem 1.1rem; border-radius: 10px; background: var(--sidebar); color: #f1f5f9; box-shadow: var(--shadow-lg); font-weight: 500; animation: toast-in .25s ease-out; }
.toast.ok .icon { color: #34d399; }
.toast.error .icon { color: #f87171; }
.toast-undo { margin: 0 0 0 .4rem; }
.toast-btn { background: none; border: 1px solid rgba(241,245,249,.35); color: #f1f5f9; font: inherit; font-weight: 600; padding: .35rem .7rem; border-radius: 6px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.toast-btn:hover, .toast-btn:focus-visible { background: rgba(241,245,249,.12); }
.toast-x { background: none; border: 0; color: #cbd5e1; font-size: 1.3rem; line-height: 1; padding: .2rem .45rem; margin-right: -.4rem; border-radius: 6px; cursor: pointer; min-width: 32px; min-height: 32px; }
.toast-x:hover, .toast-x:focus-visible { color: #fff; background: rgba(241,245,249,.12); }
.cf-err { display: block; color: var(--red); font-size: .85rem; font-weight: 500; margin-top: .3rem; }
.changeform [aria-invalid="true"] { border-color: var(--red); }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Lege staten ---------- */
.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.empty > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: .75rem; box-sizing: content-box; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.empty p { margin-bottom: 1rem; }
.empty.small { padding: 2rem 1rem; }
.empty .actions { justify-content: center; }

/* ---------- Inlogschermen ---------- */
.auth-body { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .18), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(139, 92, 246, .14), transparent 60%), var(--bg); }
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; gap: 1.5rem; }
.auth-brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.2rem; }
.aim-logo { width: 44px; height: 44px; flex: none; }
.brand .aim-logo { width: 32px; height: 32px; }
.mobilebar .brand .aim-logo { width: 28px; height: 28px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { font-size: 1.35rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card form.center { display: flex; margin-top: .75rem; }
.auth-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 1rem; }
.auth-icon .icon { width: 24px; height: 24px; }
.auth-foot { color: var(--muted); font-size: .8rem; display: flex; gap: .4rem; align-items: center; margin: 0; }
.auth-foot .icon { width: 14px; height: 14px; }
.auth-main > .toast { position: static; animation: none; }
.steps { padding-left: 1.2rem; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.steps li::marker { color: var(--accent-text); font-weight: 700; }
.steps li > strong:first-child { display: block; color: var(--text); margin-bottom: .2rem; }
.steps .stack { margin-top: .75rem; }
.qrwrap { display: flex; gap: 1.1rem; align-items: center; margin-top: .85rem; }
.qr { background: #fff; padding: .5rem; border-radius: 10px; width: 168px; flex: none; border: 1px solid var(--border); }
.qr svg { display: block; width: 100%; height: auto; }
.secret { display: inline-block; margin-top: .35rem; font-size: .85rem; letter-spacing: .04em; user-select: all; word-break: break-all; }

/* ---------- Responsief ---------- */
@media (max-width: 1500px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .formsection { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: none; }
  .nav-open .content::before { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 30; }
  .mobilebar { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; background: var(--sidebar); position: sticky; top: 0; z-index: 20; }
  .mobilebar .iconbtn { color: #e2e8f0; }
  .mobilebar .brand { padding: 0; font-size: 1rem; }
  .mobilebar .logo { width: 28px; height: 28px; }
  .pagehead { padding: 1.25rem 1rem 0; }
  .page { padding: 1.1rem 1rem 2.5rem; }
  .pagehead-row { align-items: flex-start; flex-direction: column; }
  .pagehead .actions .btn span { display: none; }
  .pagehead .actions .btn.primary span { display: inline; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .fields .span2 { grid-column: auto; }
  .searchform { min-width: 0; width: 100%; }
  .search { max-width: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .tabs.underline { gap: 1.1rem; }
  dl.props.wide { grid-template-columns: 1fr; gap: .15rem; }
  dl.props.wide dd { margin-bottom: .6rem; }
  .qrwrap { flex-direction: column; align-items: flex-start; }
  .toast { left: 1rem; right: 1rem; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: .6rem; } .stat { padding: .85rem; gap: .65rem; } .stat-icon { width: 36px; height: 36px; } .stat strong { font-size: 1.3rem; } .tiles { grid-template-columns: 1fr 1fr; gap: .6rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Verfijningen ---------- */
input, select, textarea { font-weight: 400; }
table.list.sites td { white-space: nowrap; }
table.list.sites th, table.list.sites td { padding-left: .9rem; padding-right: .9rem; }
table.list.sites .sitecell { min-width: 0; white-space: normal; }
table.list.sites .siteurl { max-width: 190px; }
@media (max-width: 860px) {
  .searchform { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .searchform select { flex: 1; }
  table.list.sites th:nth-child(2), table.list.sites td:nth-child(2),
  table.list.sites th:nth-child(3), table.list.sites td:nth-child(3),
  table.list.sites th:nth-child(6), table.list.sites td:nth-child(6),
  table.list.sites th:nth-child(7), table.list.sites td:nth-child(7) { display: none; }
  table.list.sites .siteurl { max-width: 160px; }
}
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: .7rem 1.1rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- Servers filteren & archief ---------- */
.navcount { margin-left: auto; font-size: .72rem; color: var(--sidebar-text); background: var(--sidebar-active); padding: 0 .45rem; border-radius: 99px; }
.navcount:empty { display: none; }
.mainnav a > span { display: flex; flex: 1; align-items: center; gap: .5rem; }
/* Serverfilter: eigen strook met gekleurde chips (groen = live, paars = ontwikkel) */
.srvstrip { display: flex; align-items: flex-start; gap: .6rem 1rem; padding: .9rem 1.1rem; background: linear-gradient(0deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border); }
.srvstrip .lbl { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; color: var(--text); padding-top: .5rem; white-space: nowrap; }
.srvstrip .lbl .icon { width: 17px; height: 17px; color: var(--accent); }
.srvstrip .chips { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1; }
.srvstrip .viewswitch { margin-left: auto; flex: none; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .85rem; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--border-strong); transition: border-color .15s; }
.chip:hover { text-decoration: none; border-color: var(--muted); }
.chip .icon { width: 15px; height: 15px; }
.chip.live { background: var(--green-soft); border-color: rgba(16, 185, 129, .35); }
.chip.live .icon { color: var(--green); }
.chip.live:hover { border-color: #10b981; }
.chip.dev { background: var(--violet-soft); border-color: rgba(124, 58, 237, .3); }
.chip.dev .icon { color: var(--violet); }
.chip.dev:hover { border-color: var(--violet); }
.chip.all { background: var(--accent-soft); border-color: rgba(79, 70, 229, .3); }
.chip.all:hover { border-color: var(--accent); }
.chip .n { min-width: 1.7rem; text-align: center; padding: .05rem .45rem; border-radius: 99px; background: var(--surface); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip.active .icon { color: var(--surface); }
.chip.active .n { background: rgba(255, 255, 255, .18); color: var(--surface); }
@media (prefers-color-scheme: dark) { .chip.active .n { background: rgba(0, 0, 0, .15); } }
.chip:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 860px) {
  .srvstrip { display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding: .85rem; }
  .srvstrip .lbl { padding-top: 0; align-self: center; font-size: .9rem; }
  .srvstrip .viewswitch { grid-column: 2; grid-row: 1; }
  .srvstrip .chips { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .chip { padding: .55rem .5rem .55rem .75rem; font-size: .88rem; min-height: 44px; min-width: 0; }
  .chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chip .n { margin-left: auto; flex: none; }
  .chip.all { grid-column: 1 / -1; }
}
.viewswitch a { padding: .35rem .65rem; }
.viewswitch .icon { width: 16px; height: 16px; }
.toolbar.searchbar { justify-content: flex-start; background: var(--surface); }
.toolbar.searchbar select { width: auto; margin: 0; }
.serverinfo { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: var(--green-soft); border-bottom: 1px solid var(--border); border-left: 4px solid #10b981; }
.serverinfo.dev { background: var(--violet-soft); border-left-color: var(--violet); }
.serverinfo .si-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm); }
.serverinfo.dev .si-icon { color: var(--violet); }
.serverinfo .si-icon .icon { width: 22px; height: 22px; }
.serverinfo .si-main { min-width: 0; }
.serverinfo .si-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.serverinfo .si-title strong { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; line-height: 1.25; }
.serverinfo .si-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.serverinfo .si-meta .mono { font-size: .8rem; padding: .1rem .5rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.serverinfo .si-count { margin-left: auto; text-align: right; color: var(--text-2); font-size: .85rem; white-space: nowrap; }
.serverinfo .si-count strong { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .serverinfo { gap: .7rem; padding: .85rem; } .serverinfo .si-icon { width: 36px; height: 36px; } .serverinfo .si-title strong { font-size: 1.1rem; } }
.group + .group { border-top: 6px solid var(--bg); }
.groupbar { display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.groupbar .grouplink { margin-left: auto; font-size: .85rem; font-weight: 600; }
.groupempty { padding: .9rem 1.1rem; margin: 0; }
.sc-icon.small { width: 30px; height: 30px; border-radius: 8px; }
.sc-icon.small .icon { width: 16px; height: 16px; }
.sc-icon.none { background: var(--surface-2); color: var(--muted); }
.sc-foot { justify-content: space-between; }
.sc-foot a { display: inline-flex; gap: .45rem; align-items: center; }
.banner { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid var(--border-strong); background: var(--surface-2); }
.banner > .icon { width: 22px; height: 22px; color: var(--muted); }
.banner > div { flex: 1; }
.archivezone { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.archivezone p { margin: .15rem 0 .8rem; }
.archiveform { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.archiveform label:first-of-type { flex: 1; min-width: 220px; }
.archiveform input { background: var(--surface); }
table.list td.wrap { white-space: normal; min-width: 200px; }
@media (max-width: 860px) {
  table.list.sites.noserver td, table.list.sites.noserver th { display: table-cell !important; }
  table.list.sites.noserver th:nth-child(2), table.list.sites.noserver td:nth-child(2),
  table.list.sites.noserver th:nth-child(5), table.list.sites.noserver td:nth-child(5),
  table.list.sites.noserver th:nth-child(6), table.list.sites.noserver td:nth-child(6) { display: none !important; }
  table.list.sites.archive td, table.list.sites.archive th { display: table-cell !important; }
  table.list.sites.archive th:nth-child(n+4), table.list.sites.archive td:nth-child(n+4) { display: none !important; }
  .viewswitch span { display: none; }
  .groupbar .grouplink { margin-left: 0; }
}

/* ---------- Aan/uit-schakelaar ---------- */
.switch { display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; color: var(--text-2); }
.switch .knob { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--border-strong); transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on .knob { background: #10b981; }
.switch.on .knob::after { transform: translateX(14px); }
.switch:hover .knob { filter: brightness(.95); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .knob { box-shadow: var(--focus); }

/* ---------- Bewaking en storingen ---------- */
.stat.red .stat-icon { background: var(--red-soft); color: var(--red); }
.stat.red { border-color: rgba(220, 38, 38, .4); }
.alert.warn { background: var(--amber-soft); color: var(--amber); border-color: rgba(245, 158, 11, .3); }
.alert.warn > span { color: var(--text); }
.tile.ok .tile-icon { background: var(--green-soft); color: var(--green); }
.banner.down { align-items: flex-start; background: var(--red-soft); border-color: rgba(220, 38, 38, .35); }
.banner.down > .icon { color: var(--red); margin-top: 2px; }
.banner.down strong { color: var(--red); }
.downlist { margin: .35rem 0 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .9rem; }
.downlist a { font-weight: 600; }
table.list tr.isdown td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.sitecell .pill.bad { font-size: .7rem; padding: .05rem .4rem; vertical-align: 1px; }
.sitecell .pill.bad .icon { width: 12px; height: 12px; }
.tabs .count.bad { background: var(--red); color: #fff; }
.bad-text { color: var(--red); }
.incidents { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.incident { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.incident > div { min-width: 0; flex: 1; }
.incident .pre { white-space: pre-wrap; word-break: break-word; margin: .15rem 0; }
.inc-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--red-soft); color: var(--red); }
.incident.php .inc-icon { background: var(--amber-soft); color: var(--amber); }
.incident.open { border-color: rgba(220, 38, 38, .45); background: var(--red-soft); }
.incident .small .icon { width: 13px; height: 13px; vertical-align: -2px; }
.notifyform { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; flex-wrap: wrap; }
#meldingen h2 { display: flex; align-items: center; gap: .5rem; }
.alert.updateinfo { margin-bottom: 1.25rem; }
.alert.updateinfo .pre { white-space: pre-wrap; margin-top: .2rem; }
h3.propgroup { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.5rem 0 .7rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
h3.propgroup:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
dl.propfoot { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }

/* ---------- Screenshots ---------- */
.thumb { display: block; width: 64px; height: 40px; flex: none; border-radius: 6px; object-fit: cover; object-position: top; background: var(--surface-2); border: 1px solid var(--border); }
.thumb.ph { display: grid; place-items: center; border: 0; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.thumb.ph.h0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .thumb.ph.h1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.thumb.ph.h2 { background: linear-gradient(135deg, #10b981, #059669); } .thumb.ph.h3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.thumb.ph.h4 { background: linear-gradient(135deg, #ec4899, #db2777); } .thumb.ph.h5 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.thumb.ph.h6 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } .thumb.ph.h7 { background: linear-gradient(135deg, #64748b, #334155); }
.overview { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 1rem; margin-bottom: 1.5rem; align-items: start; }
.overview .tiles { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.shotcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.shot.ph .icon { width: 28px; height: 28px; opacity: .6; }
.shotfoot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .35rem .85rem; flex-wrap: wrap; }
.shotfoot .btn { height: 30px; padding: 0 .55rem; font-size: .8rem; }
.btn[disabled] { opacity: .55; cursor: default; }
@media (max-width: 1100px) { .overview { grid-template-columns: 1fr; } .overview .shotcard { max-width: 420px; } }
@media (max-width: 860px) { .overview .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .thumb { width: 48px; height: 30px; } .thumb.ph { font-size: .7rem; } }

/* ---------- Onthoud mij ---------- */
label.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-weight: 550; color: var(--text); }
label.check input { width: auto; margin: .2rem 0 0; accent-color: var(--accent); flex: none; }
label.check small { margin-top: .1rem; }
/* Lange themanamen mogen afbreken, zodat de tabel op een laptopscherm past. */
table.list.sites td.theme { white-space: normal; min-width: 110px; max-width: 170px; }
/* Gebruikerstabel heeft de volle breedte nodig; het uitnodigformulier komt eronder op een laptopscherm. */
@media (max-width: 1400px) { .split.users { grid-template-columns: 1fr; } .split.users > .formsection { max-width: 640px; } }
/* In de uitleg bij importeren staat vetgedrukte tekst midden in een zin; niet op een eigen regel zetten. */
.steps.small li > strong:first-child { display: inline; margin: 0; }
.steps.small { gap: .6rem; }

/* ---------- Aandacht nodig (werklijst op het overzicht) ---------- */
.attn { margin-bottom: 1.25rem; }
.attn-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--border); }
.attn-head h2 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.attn-head h2 .icon { color: var(--amber); }
.attn-list { list-style: none; margin: 0; padding: 0; }
.attn-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .75rem 1.2rem; border-bottom: 1px solid var(--border); }
.attn-list:last-child .attn-item:last-child { border-bottom: 0; }
.attn-item > div { min-width: 0; }
.sev { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.sev .icon { width: 18px; height: 18px; }
.sev.crit { background: var(--red-soft); color: var(--red); }
.sev.high { background: var(--amber-soft); color: var(--amber); }
.sev.low { background: var(--blue-soft); color: var(--blue); }
.sevlabel { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sevlabel.crit { color: var(--red); } .sevlabel.high { color: var(--amber); } .sevlabel.low { color: var(--blue); }
.attn-title { display: block; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.attn-item .sub { display: block; font-size: .85rem; color: var(--text-2); overflow-wrap: anywhere; }
.attn-item .btn { white-space: nowrap; }
.attn-more summary { padding: .7rem 1.2rem; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent-text); border-top: 1px solid var(--border); }
@media (max-width: 860px) {
  .attn-item { grid-template-columns: auto 1fr; padding: .75rem .9rem; }
  .attn-item .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Snel zoeken (Ctrl+K) ---------- */
.navsearch { display: flex; align-items: center; gap: .55rem; width: calc(100% - 1.5rem); margin: 0 .75rem .75rem; padding: .5rem .7rem; border-radius: 9px; border: 1px solid rgba(148, 163, 184, .25); background: rgba(148, 163, 184, .08); color: var(--sidebar-text); font: inherit; font-size: .88rem; cursor: pointer; }
.navsearch:hover { color: #fff; border-color: rgba(148, 163, 184, .45); }
.navsearch .icon { width: 16px; height: 16px; }
.navsearch .kbd { margin-left: auto; }
.navsearch kbd { background: transparent; color: inherit; border-color: rgba(148, 163, 184, .35); }
.kbd { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; color: var(--text-2); }
.kbd kbd { font: inherit; font-size: .72rem; padding: .05rem .4rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
.mobsearch { margin-left: auto; color: #fff; }
dialog.palette { width: min(620px, calc(100vw - 2rem)); max-height: min(560px, calc(100vh - 4rem)); margin: 8vh auto auto; padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; display: none; flex-direction: column; }
dialog.palette[open] { display: flex; }
dialog.palette::backdrop { background: rgba(15, 23, 42, .5); }
.palette-in { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); }
.palette-in .icon { color: var(--muted); }
.palette-in input { margin: 0; border: 0; padding: .2rem 0; font-size: 1.05rem; background: none; box-shadow: none; }
.palette-in input:focus { outline: none; box-shadow: none; }
.palette-res { overflow-y: auto; padding: .35rem; flex: 1; }
.pal-group small { display: block; padding: .5rem .6rem .25rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pal-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.pal-row:hover { text-decoration: none; }
.pal-row.sel { background: var(--accent-soft); }
.pal-row .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); flex: none; }
.pal-row .ic .icon { width: 16px; height: 16px; }
.pal-text { display: flex; flex-direction: column; min-width: 0; }
.pal-text b { font-weight: 600; }
.pal-text .muted { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-empty { padding: 1rem; color: var(--muted); margin: 0; }
.palette-foot { display: flex; gap: 1rem; padding: .55rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 860px) { .palette-foot { display: none; } dialog.palette { margin-top: 1rem; } }

/* ---------- Filters in de versiegeschiedenis ---------- */
.hfilters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.1rem; }
.fchip { font: inherit; font-size: .85rem; font-weight: 600; padding: .35rem .75rem; min-height: 36px; border-radius: 99px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.fchip:hover { border-color: var(--muted); }
.fchip.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.fchip .n { font-weight: 700; margin-left: .3rem; opacity: .7; }
.fchip:focus-visible { outline: none; box-shadow: var(--focus); }
.hfilters select { width: auto; margin: 0 0 0 auto; }
.tl-day[hidden], .tl-item[hidden] { display: none; }
@media (max-width: 520px) { .hfilters select { margin-left: 0; width: 100%; } }

/* Onderhoudsrapport (per maand, afdrukbaar) */
.report-body { background: var(--bg); color: var(--text); margin: 0; }
.rp-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; max-width: 900px; margin: 0 auto; padding: 1rem 1.25rem; }
.rp-toolbar .rp-month { margin: 0 0 0 auto; }
.rp-toolbar .rp-month label { display: flex; gap: .5rem; align-items: center; margin: 0; font-weight: 500; }
.rp-toolbar .rp-month select { width: auto; margin: 0; }
.report { max-width: 900px; margin: 0 auto 3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.25rem 2.5rem; }
.rp-head { display: flex; gap: 1.25rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 2px solid var(--text); }
.rp-brand .aim-logo { width: 56px; height: 56px; }
.rp-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.rp-sub { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 600; }
.rp-head p { margin: .15rem 0 0; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.5rem 0 .5rem; }
.rp-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.rp-kpi small { display: block; color: var(--text-2); font-size: .8rem; font-weight: 500; }
.rp-kpi strong { display: block; font-size: 1.45rem; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.rp-kpi span { display: block; color: var(--text-2); font-size: .8rem; margin-top: .1rem; }
.rp-sec { margin-top: 1.75rem; break-inside: avoid-page; }
.rp-sec h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rp-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); border-bottom: 1px solid var(--border-strong); padding: .4rem .5rem; }
.rp-table td { border-bottom: 1px solid var(--border); padding: .5rem; vertical-align: top; }
.rp-table tr { break-inside: avoid; }
.rp-table .nowrap { white-space: nowrap; }
.rp-detail { color: var(--text-2); white-space: pre-wrap; margin-top: .2rem; font-size: .85rem; }
.rp-detail .tl-code { display: block; white-space: pre-wrap; }
.rp-foot { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--border); }
@media (max-width: 700px) {
  .report { padding: 1.25rem; border-radius: 0; border-left: 0; border-right: 0; }
  .rp-kpis { grid-template-columns: repeat(2, 1fr); }
  .rp-toolbar .rp-month { margin-left: 0; }
  .rp-table { font-size: .82rem; }
}
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  .report-body { background: #fff; color: #111; }
  .rp-toolbar { display: none; }
  .report { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  .rp-kpi, .rp-table td, .rp-table th, .rp-foot { border-color: #ccc; }
  .rp-head { border-bottom-color: #111; }
  .rp-kpi small, .rp-kpi span, .rp-table th, .rp-detail, .report .muted { color: #444; }
  .ver { border: 1px solid #bbb; background: none; color: #111; }
}
