/* InnoHOSTPANEL — één stylesheet, geen externe bronnen. Contrast ≥ 4.5:1,
   zichtbare focus, werkt zonder JavaScript, van 320 px tot breedbeeld. */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1a1d21; --muted: #52606d;
  --line: #d5dae0; --brand: #0b4f8a; --brand-dark: #083a66; --ok: #1b6e3a;
  --warn: #8a5a00; --err: #a1211c; --err-bg: #fbeae9; --ok-bg: #e7f4ec; --focus: #ff9d00; --danger: #a1211c;
  --c1: #0b4f8a; --c2: #d9480f; --c3: #1b6e3a; --c4: #7b2cbf; --c5: #b7791f; --c6: #c2185b; --c7: #00838f; --c8: #5d4037;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181c; --panel: #1e2328; --text: #e8ebee; --muted: #a3adb8; --line: #3a424b;
    --brand: #6fb1e8; --brand-dark: #9ccaf0; --ok: #6fcf97; --warn: #f0c060; --err: #ff8a80;
    --err-bg: #3a1f1d; --ok-bg: #1d3326; --danger: #b3261e;
    --c1: #6fb1e8; --c2: #ff9f6e; --c3: #6fcf97; --c4: #c89cf5; --c5: #f0c060; --c6: #f48fb1; --c7: #4dd0e1; --c8: #bcaaa4; }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
header.top { background: var(--brand); color: #fff; }
header.top .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; }
header.top .brand { font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; }
header.top nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
header.top nav a { color: #fff; text-decoration: none; padding: .35rem .25rem; border-bottom: 2px solid transparent; }
header.top nav a[aria-current="page"], header.top nav a:hover { border-bottom-color: #fff; }
header.top .who { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
header.top .who form { margin: 0; }
header.top .who .muted { color: rgba(255,255,255,.85); }
header.top .who button.secondary { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
header.top .who button.secondary:hover { background: rgba(255,255,255,.15); }
@media (prefers-color-scheme: dark) {
  header.top { background: #0b4f8a; }
  header.top .brand, header.top nav a { color: #fff; }
}
main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.6rem; margin: .25rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.cards .card { margin-bottom: 0; }
.stat { font-size: 2rem; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.flash { border-left: 4px solid var(--ok); background: var(--ok-bg); padding: .75rem 1rem; margin-bottom: 1rem; border-radius: 4px; }
.flash.error, .error { border-left-color: var(--err); background: var(--err-bg); }
.error { padding: .75rem 1rem; border-left: 4px solid var(--err); border-radius: 4px; margin-bottom: 1rem; }
.field-error { color: var(--err); font-weight: 600; margin: .25rem 0 0; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
caption { text-align: left; font-weight: 600; padding: .5rem 0; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.err { color: var(--err); }
form.stack { display: grid; gap: 1rem; max-width: 34rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; display: block; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem 1rem; }
textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
input[type=text], input[type=password], input[type=email], select {
  width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); }
input[aria-invalid=true] { border-color: var(--err); }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; }
button, .button { font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.secondary, .button.secondary { background: transparent; color: var(--brand); }
button.danger, .button.danger, summary.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
form.actions select, form.actions input[type=text] { width: auto; min-width: 8rem; }
form.actions label { margin: 0; }
.inline { display: inline; }
dl.props { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
dl.props dt { font-weight: 600; }
dl.props dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; overflow-wrap: anywhere; }
pre { background: var(--bg); border: 1px solid var(--line); padding: .75rem; overflow-x: auto; border-radius: 6px; }
footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 1rem; }
.login { max-width: 24rem; margin: 3rem auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.impersonation { background: var(--warn); color: #1a1d21; padding: .5rem 1rem; text-align: center; font-weight: 600; }
.impersonation a { color: inherit; }
/* Smalle schermen: tabellen als gestapelde kaarten. */
@media (max-width: 40rem) {
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border: 1px solid var(--line); border-radius: 6px; margin-bottom: .75rem; padding: .25rem .5rem; }
  table.responsive td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; border: 0; padding: .35rem .25rem; overflow-wrap: anywhere; }
  .dns td:first-child code, .dns td:nth-child(2) { white-space: normal; }
  table.responsive td[data-label="Acties"] { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  table.responsive td[data-label="Acties"]::before { flex: 0 0 7.5rem; }
  table.responsive td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
  dl.props { grid-template-columns: 1fr; }
  dl.props dt { margin-top: .5rem; }
  header.top .who { margin-left: 0; width: 100%; justify-content: space-between; }
  .cards { grid-template-columns: 1fr; gap: .75rem; }
  .cards.stats { grid-template-columns: repeat(2, 1fr); }
  .cards.stats .card { padding: .75rem; }
  .stat { font-size: 1.6rem; }
  main { padding: 1rem .75rem 2rem; }
}

/* Tweestapsverificatie */
.qr { max-width: 14rem; margin: .5rem 0 1rem; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { columns: 2; list-style: none; padding: 0; margin: 1rem 0; max-width: 24rem; }
.codes li { padding: .25rem 0; }
.codes code { font-size: 1.1em; letter-spacing: .05em; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; min-height: 0; }
button.link:hover { color: var(--brand-dark); }
details summary { cursor: pointer; color: var(--brand); }

button, .button { white-space: nowrap; }

/* E-mail */
.cards.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr)); }
.dns td:first-child code, .dns td:nth-child(2) { overflow-wrap: normal; white-space: nowrap; }
.suffixed { display: flex; align-items: center; gap: .35rem; }
.suffixed input { flex: 1 1 auto; min-width: 0; }
.suffixed span { white-space: nowrap; color: var(--muted); }
code.wrap { white-space: pre-wrap; word-break: break-all; }
.card h3 { font-size: 1rem; margin: 1rem 0 .5rem; }

/* Back-ups */
.inline-details { display: inline-block; vertical-align: middle; }
.inline-details summary { list-style: none; display: inline-block; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: block; margin: .5rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.inline-details[open] summary { margin-bottom: .5rem; }

/* Bestandsbeheer */
.crumbs { margin: .5rem 0 1rem; color: var(--muted); }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; width: 100%; min-height: 24rem; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.files td[data-label="Naam"] { overflow-wrap: anywhere; }

/* Sessies */
table.sessions td:nth-child(3) code { white-space: nowrap; }
table.sessions td:nth-child(4) { max-width: 28rem; overflow-wrap: anywhere; }


.nowrap { white-space: nowrap; }
code.break { overflow-wrap: anywhere; }
/* Statistieken: grafieken (SVG, serverside), periodekeuze, kengetallen. */
.period-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.period-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.period-row .period-nav ul { margin: 0; }
.period-nav a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--panel); }
.period-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.period-nav a:hover { border-color: var(--brand); }
.cards.kpis .card .stat { font-size: 1.6rem; overflow-wrap: anywhere; }
.cards.kpis .hint { display: block; }
.cards.kpis meter { width: 100%; height: .8rem; }
figure.chart { margin: .5rem 0 0; }
.chart-svg { width: 100%; height: auto; display: block; max-height: 18rem; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: system-ui, sans-serif; }
.chart .donut-total { fill: var(--text); font-size: 16px; font-weight: 700; }
.chart.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.chart.donut .donut-svg { width: 10rem; max-width: 100%; flex: 0 0 auto; }
.chart.empty { padding: .5rem 0; }
.chart.empty figcaption { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .5rem 0 0; padding: 0; font-size: .95rem; }
.legend .swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; vertical-align: -.1rem; margin-right: .35rem; background: var(--muted); }
.swatch.c1 { background: var(--c1); } .swatch.c2 { background: var(--c2); } .swatch.c3 { background: var(--c3); } .swatch.c4 { background: var(--c4); }
.swatch.c5 { background: var(--c5); } .swatch.c6 { background: var(--c6); } .swatch.c7 { background: var(--c7); } .swatch.c8 { background: var(--c8); }
.donut-legend { flex-direction: column; gap: .25rem; }
.chart-table { margin-top: .5rem; font-size: .9rem; }
.chart-table summary { cursor: pointer; color: var(--brand); }
.chart-table table { margin-top: .5rem; max-height: 16rem; display: block; overflow: auto; }
@media (max-width: 40rem) {
  .chart text { font-size: 17px; }
  .chart .donut-total { font-size: 18px; }
}
.report-frame { width: 100%; height: 80vh; min-height: 32rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.actions.wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
