/* ===========================================================================
   GBS MFZ portal - modern light SaaS theme
   Strong override layer on top of Bootstrap + paper-dashboard. Restyles the
   shell, cards, forms, tables and login into a clean, modern light look.
   =========================================================================== */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fbfcfd;
    --border: #e6e8ee;
    --border-strong: #d6dae2;
    --line: #eef0f4;
    --row-alt: #f6f8fa;
    --text: #1b2430;
    --muted: #6a7585;
    --muted-2: #8a93a1;
    --accent: #0e8f9e;
    --accent-strong: #0b7280;
    --accent-soft: rgba(14, 143, 158, 0.10);
    --accent-soft-2: rgba(14, 143, 158, 0.16);
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.12);
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 6px rgba(16, 24, 40, 0.05);
    --ring: 0 0 0 3px rgba(14, 143, 158, 0.22);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: var(--bg) !important;
    color: var(--text);
    font-family: var(--font) !important;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-strong); }

/* ---------------------------------------------------------------- Sidebar */
.wrapper { background: var(--bg); }

.sidebar {
    background: var(--surface) !important;
    border-right: 1px solid var(--border);
    box-shadow: none !important;
    width: 248px;
    overflow-x: hidden;
}
.sidebar:before, .sidebar:after { display: none !important; }

/* Inklap-knop in het logo-vak. */
.sidebar .logo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-toggle-btn { background: none; border: 0; color: var(--muted); padding: 4px 6px; cursor: pointer; border-radius: 6px; line-height: 1; flex: 0 0 auto; }
.sidebar-toggle-btn:hover { color: var(--accent); background: var(--accent-soft); }
.sidebar-toggle-btn i { font-size: 16px; display: block; }

/* Inklapbare sidebar: alleen icoontjes. Geen hover-uitklap van de hele balk,
   labels verschijnen als klein flyout-balkje naast het icoon. */
.sidebar, .main-panel { transition: width .18s ease; }
body.sidebar-collapsed .sidebar { width: 66px; overflow: visible; }
body.sidebar-collapsed .sidebar .sidebar-wrapper { overflow: visible; }
body.sidebar-collapsed .main-panel { width: calc(100% - 66px); }
body.sidebar-collapsed .sidebar .nav { padding: 0 8px; }
body.sidebar-collapsed .sidebar .nav li > a { position: relative; display: flex; align-items: center; justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .sidebar .nav li > a i { margin: 0; }
body.sidebar-collapsed .sidebar .logo { justify-content: center; padding-left: 0; padding-right: 0; cursor: pointer; }
body.sidebar-collapsed .sidebar .logo .logo-text { display: none; }
body.sidebar-collapsed .sidebar .sidebar-toggle-btn { display: none; }
body.sidebar-collapsed .sidebar .sidebar-footer { display: none; }

/* Flyout-label naast het icoon (alleen ingeklapt, bij hover). */
body.sidebar-collapsed .sidebar .nav li > a p {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 7px 11px;
    background: var(--text);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 60;
}
body.sidebar-collapsed .sidebar .nav li > a p:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--text);
}
body.sidebar-collapsed .sidebar .nav li > a:hover p { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    body.sidebar-collapsed .sidebar { width: 248px; }
    body.sidebar-collapsed .main-panel { width: 100%; }
}

.sidebar .sidebar-wrapper { background: transparent !important; display: flex; flex-direction: column; height: 100%; width: 100%; overflow: hidden; }
/* Logo/hamburger-vak blijft vast, alleen de menu-items scrollen. */
.sidebar .logo { flex: 0 0 auto; }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
body.sidebar-collapsed .sidebar .nav { overflow: visible; }
.sidebar-footer { margin-top: auto; flex: 0 0 auto; padding: 12px 18px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); white-space: nowrap; }

.sidebar .logo {
    border-bottom: 1px solid var(--border) !important;
    height: 56px;
    box-sizing: border-box;
    padding: 0 14px 0 30px;
    margin: 0;
}
.sidebar .logo:after { display: none !important; }
.sidebar .logo .simple-text {
    color: var(--text) !important;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.2px;
    text-transform: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.sidebar .logo .logo-mark { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
/* Geen kader bij muisklik op het logo, wel een nette focusring bij toetsenbord. */
.sidebar .logo .simple-text { outline: none; }
.sidebar .logo .simple-text:focus { outline: none; }
.sidebar .logo .simple-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sidebar .nav { margin-top: 12px; padding: 0 12px; }
.sidebar .nav li > a {
    color: var(--muted) !important;
    margin: 2px 0;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    opacity: 1;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar .nav li > a:before, .sidebar .nav li > a:after { display: none !important; }
.sidebar .nav li > a p { text-transform: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sidebar .nav li > a i {
    color: var(--muted-2) !important;
    font-size: 17px;
    transition: color 0.15s ease;
}
.sidebar .nav li > a:hover {
    background: var(--accent-soft) !important;
    color: var(--accent-strong) !important;
}
.sidebar .nav li > a:hover i { color: var(--accent-strong) !important; }
/* De flyout-label houdt zijn eigen kleur, niet die van de hover-tekst. */
body.sidebar-collapsed .sidebar .nav li > a:hover p { color: #fff !important; }

.sidebar .nav li.active > a {
    background: var(--accent-soft) !important;
    color: var(--accent-strong) !important;
    box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar .nav li.active > a i { color: var(--accent) !important; }

/* ---------------------------------------------------------------- Top bar */
.main-panel { background: var(--bg) !important; }

.main-panel > .navbar,
.navbar-default {
    background: var(--surface) !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    min-height: 56px;
    margin-bottom: 0;
}
/* De topbalk toont de titel van de huidige pagina links en de primaire actie rechts. */
.main-panel > .navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    min-height: 56px;
}
.main-panel > .navbar .navbar-header {
    display: flex;
    align-items: center;
    float: none;
    margin: 0;
    min-width: 0;
}
.navbar .navbar-brand.page-title {
    color: var(--text) !important;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.2px;
    padding: 0;
    margin: 0;
    height: auto;
    line-height: 56px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar .navbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.navbar .navbar-actions form { margin: 0; }
.navbar .navbar-actions .form-control { height: 38px; }
.navbar .navbar-actions .btn { padding: 8px 16px; }
.navbar .navbar-toggle .icon-bar { background: var(--muted) !important; }

/* ---------------------------------------------------------------- Content */
.main-panel > .content { padding: 18px 24px 30px; min-height: calc(100vh - 56px); }

/* Slanke omschrijvingsregel onder de topbalk. De paginatitel staat nu in de topbalk,
   deze regel geeft alleen de korte context eronder. */
.page-desc { margin: 0 2px 14px; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 980px; }
.page-desc code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--accent-strong); font-size: 12px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- Cards */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 22px;
    animation: portalFade 0.4s ease both;
}
.card .header { padding: 18px 22px 0; }
.card .header .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.card .content { padding: 20px 22px 22px; }

@keyframes portalFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- Forms */
label, .control-label { color: var(--text); font-weight: 600; font-size: 13px; margin-bottom: 6px; }

.form-control {
    height: 42px;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    padding: 8px 13px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: var(--ring) !important;
}
select.form-control { padding-right: 30px; }
.form-control::placeholder { color: var(--muted-2); }
/* Kleine variant: portal maakt .form-control 42px hoog, input-sm knijpt anders de tekst af. */
.form-control.input-sm { height: 34px; padding: 5px 11px; font-size: 13px; line-height: 1.4; }
select.form-control.input-sm { padding-right: 28px; }

.form-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.text-danger { color: var(--danger) !important; font-size: 12.5px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 13.5px;
    padding: 9px 18px;
    border: 1px solid transparent;
    transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    opacity: 1 !important;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-success, .btn-fill, .btn-info {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.btn-success:hover, .btn-fill:hover, .btn-info:hover,
.btn-success:focus, .btn-fill:focus, .btn-info:focus {
    background: var(--accent-strong) !important;
    border-color: var(--accent-strong) !important;
    color: #fff !important;
}

.btn-default {
    background: var(--surface) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}
.btn-default:hover, .btn-default:focus {
    background: var(--surface-2) !important;
    border-color: var(--muted-2) !important;
    color: var(--text) !important;
}
.btn-xs { padding: 5px 12px; font-size: 12px; }
.btn-wd { min-width: 120px; }

/* ---------------------------------------------------------------- Tables (datagrid) */
.table { color: var(--text); margin-bottom: 0; }
.table > thead > tr > th {
    border-bottom: 1px solid var(--border) !important;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 10px 14px;
    white-space: nowrap;
}
.table > tbody > tr > td {
    border-top: 1px solid var(--line) !important;
    padding: 10px 14px;
    vertical-align: middle;
}
/* Getallen strak uitgelijnd: tabular-nums maakt cijfers even breed. */
.table > thead > tr > th,
.table > tbody > tr > td { font-variant-numeric: tabular-nums; }
.table .text-right { text-align: right; }

/* Rustige, neutrale zebra in plaats van de warme streping uit paper-dashboard.
   Beide selector-vormen zijn nodig om de basisstijl te overschrijven. */
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped tbody > tr:nth-of-type(2n+1) { background: var(--surface); }
.table-striped > tbody > tr:nth-of-type(even),
.table-striped tbody > tr:nth-of-type(2n) { background: var(--row-alt); }
/* Hover staat bewust na de zebra zodat die bij gelijke gewichten wint. */
.table-hover > tbody > tr:hover,
.table-striped.table-hover > tbody > tr:hover { background: var(--accent-soft); }
.table code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    color: var(--accent-strong);
    font-size: 12.5px;
}

/* ---------------------------------------------------------------- Labels / alerts */
.label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}
.label-success { background: var(--success-soft); color: var(--success); }
.label-default { background: #eceef2; color: var(--muted); }

.alert {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
}
.alert-success { background: var(--success-soft); border-color: rgba(22, 163, 74, 0.25); color: #15803d; }

/* ---------------------------------------------------------------- Password reveal toggle */
.input-group .js-toggle-password {
    min-width: 44px;
    min-height: 42px;
    border: 1px solid var(--border-strong);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.input-group .js-toggle-password:hover { background: #f0f2f5; color: var(--accent); }
.input-group .js-toggle-password:focus-visible { outline: none; box-shadow: var(--ring); z-index: 3; }
/* Zichtbaar wachtwoord: streep door het oog-icoon (themify heeft geen eye-slash). */
.js-toggle-password i { position: relative; display: inline-block; }
.js-toggle-password.is-revealed i::after {
    content: ""; position: absolute; left: -2px; right: -2px; top: 50%;
    border-top: 2px solid currentColor; transform: rotate(-45deg);
}
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }

/* ---------------------------------------------------------------- Footer */
.footer {
    background: transparent !important;
    border-top: 1px solid var(--border) !important;
    color: var(--muted-2);
    font-size: 12.5px;
}
.footer .heart { color: var(--accent); }

/* ===========================================================================
   Login
   =========================================================================== */
.login-page-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(14, 143, 158, 0.10), transparent 60%),
        radial-gradient(900px 520px at 100% 110%, rgba(37, 194, 179, 0.12), transparent 55%),
        var(--bg);
    font-family: var(--font);
}
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 410px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: portalFade 0.45s ease both;
}
.login-card__head { padding: 30px 30px 6px; }
.login-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--accent-strong);
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.login-card__brand i { color: var(--accent); }
.login-card__head h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 12px 0 2px;
    color: var(--text);
}
.login-card__head p { color: var(--muted); margin: 0; font-size: 13.5px; }
.login-card__body { padding: 18px 30px 26px; }
.login-card__body .form-group { margin-bottom: 16px; }
.btn-login {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #19a89c);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
.btn-login:hover { filter: brightness(1.05); box-shadow: 0 6px 16px rgba(14, 143, 158, 0.3); }
.btn-login:active { transform: translateY(1px); }
.btn-login:focus-visible { outline: none; box-shadow: var(--ring); }
.login-card__foot {
    padding: 14px 30px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}
.login-card__links { margin: 14px 0 0; text-align: center; }
.login-card__note { font-size: 13px; }
.login-card__resend { margin-top: 12px; }

/* ===========================================================================
   Responsive (mobile / tablet)
   =========================================================================== */
@media (max-width: 991px) {
    .main-panel > .content { padding: 18px 16px 28px; }
    .main-panel > .navbar .container-fluid { padding: 0 16px; gap: 10px; }
    .navbar .navbar-actions { gap: 8px; }
}

@media (max-width: 600px) {
    .login-card__head, .login-card__body, .login-card__foot { padding-left: 22px; padding-right: 22px; }
    .navbar .navbar-brand.page-title { font-size: 16px; }
    .btn-wd { min-width: 0; }
    .form-actions .btn { flex: 1 1 auto; }
}

/* Impersonation banner */
.impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 600;
}
.impersonation-bar i { margin-right: 4px; }

/* Access log page: sticky summary/filters, scrollable table, soft labels */
.log-summary > summary { cursor: pointer; outline: none; padding: 4px 0; }
.log-summary > summary::-webkit-details-marker { color: var(--muted); }

.log-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.log-toolbar .log-filter .form-group { margin-right: 8px; margin-bottom: 6px; }
.log-toolbar .log-filter label { font-size: 12px; color: var(--muted); margin-right: 3px; }
.log-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.log-actions .log-count { margin-right: auto; font-size: 13px; color: var(--muted); }

/* Table gets its own scroll area so the summary and toolbar stay reachable */
.log-scroll {
    max-height: calc(100vh - 380px);
    min-height: 220px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.log-scroll table { margin-bottom: 0; }
.log-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface-2);
    box-shadow: inset 0 -1px 0 var(--border);
}
.log-truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Soft label variants: dark text on a light tint, readable in both themes and AA-compliant */
.label-soft-danger  { background: #f7d9d9; color: #8a1c1c; }
.label-soft-warning { background: #fbeccb; color: #7a5200; }
.label-soft-info    { background: #d6e9f5; color: #1b5570; }
.label-soft-success { background: #d8ecd8; color: #256029; }
.label-soft-default { background: #e6e6e6; color: #444; }
.key-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #f4f6f8; padding: 2px 6px; border-radius: 6px; }
.manage-heading { font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; color: #63726f; margin: 0 0 8px; }
.manage-heading--danger { color: #8a1c1c; }

/* Laag 1: app-shell. Sidebar en topbalk blijven staan, alleen de content scrollt (portaal-breed).
   Gescoped op body.portal-body zodat login- en landingpagina's gewoon blijven scrollen. */
html { height: 100%; }
.portal-body { height: 100%; overflow: hidden; }
.wrapper { height: 100vh; overflow: hidden; }
.main-panel { height: 100vh; max-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.main-panel > .impersonation-bar { flex: 0 0 auto; }
.main-panel > .navbar, .main-panel > .navbar-default { flex: 0 0 auto; position: relative; z-index: 5; }
.main-panel > .content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }

/* Laag 2: master-detail. De content vult de hoogte, master en detail scrollen elk apart.
   Aangestuurd via de class .content-fill (server-side gezet), niet via :has, voor brede browserdekking.
   Tussen .content en .page-fill zit een .container-fluid, die geeft de hoogte door. */
.main-panel > .content.content-fill { overflow: hidden; display: flex; flex-direction: column; }
.main-panel > .content.content-fill > .container-fluid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-left: 0; margin-right: 0; width: 100%; }
.content-fill .table-responsive { overflow: visible; }
.page-fill { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.page-fill > .page-desc { flex: 0 0 auto; margin-bottom: 14px; }
.page-fill > .alert { flex: 0 0 auto; }
.page-fill > .md-row { flex: 1 1 auto; min-height: 0; display: flex; gap: 22px; }
.md-row > .md-master { flex: 0 0 300px; min-height: 0; display: flex; }
.md-row > .md-detail { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; }
.md-row > .md-master > .card, .md-row > .md-detail > .card { flex: 1 1 auto; width: 100%; margin: 0; min-height: 0; display: flex; flex-direction: column; }
.md-row .card > .header { flex: 0 0 auto; }
.md-row .card > .content { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* Strakke kaartkoppen: master en detail op gelijke hoogte, verticaal gecentreerd. */
.md-row .card > .header { min-height: 58px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; }

/* Detail-paneel met een tabel: tabel vult de kaart, sticky kop, geen dubbele inspringing. */
.md-detail .card > .content { padding: 0; }
.md-detail .card > .content > .alert { margin: 14px 22px 0; }
.md-detail .card > .content > p { margin: 16px 22px; }
.md-detail .table-responsive { margin: 0; }
.md-detail table.table { margin-bottom: 0; }
.md-detail table.table > thead > tr > th:first-child,
.md-detail table.table > tbody > tr > td:first-child { padding-left: 22px; }
.md-detail table.table > thead > tr > th:last-child,
.md-detail table.table > tbody > tr > td:last-child { padding-right: 22px; }
.md-detail table.table > thead > tr > th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }

/* Master-lijst (bedrijven) in het gebruikersbeheer. */
.co-head { display: flex; align-items: center; justify-content: space-between; }
.co-list { list-style: none; margin: 0; padding: 0; }
.co-list > li { margin: 0; }
.co-item { display: flex; align-items: center; border-left: 3px solid transparent; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.co-item:hover { background: var(--surface-2); }
.co-item.active { background: var(--accent-soft); border-left-color: var(--accent); }
.co-item .co-main { flex: 1 1 auto; color: var(--text); text-decoration: none; font-weight: 500; }
.co-item:hover .co-main, .co-item.active .co-main { color: var(--accent-strong); }
.co-item .co-count { flex: 0 0 auto; background: #e6e9ec; color: var(--muted); border-radius: 10px; padding: 1px 9px; font-size: 11px; margin-left: 8px; }
.co-item.active .co-count { background: var(--accent); color: #fff; }
.co-item .co-edit { flex: 0 0 auto; color: var(--muted-2); text-decoration: none; padding: 0 2px 0 8px; }
.co-item .co-edit:hover { color: var(--accent-strong); }
.co-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); padding: 10px 12px 3px; }
/* Het thema verbergt native vinkjes in .checkbox/.radio (display:none, verwacht een JS-icoonplugin die we
   niet laden). Daardoor waren o.a. de key-toewijzing en de toegangsvinkjes onzichtbaar. Native vinkje terug. */
.checkbox label, .radio label { position: relative; padding-left: 26px; color: var(--text); }
.checkbox input[type=checkbox], .radio input[type=radio] {
    display: inline-block; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    margin: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer;
}
.co-sub-toggle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.co-toggle { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.co-toggle:hover { color: var(--accent); text-decoration: underline; }

/* Toegangslog: samenvatting en toolbar vast, alleen de regeltabel scrollt (voorkomt dubbele scroll). */
.page-fill > .log-summary-card { flex: 0 0 auto; margin-bottom: 18px; }
.page-fill > .log-main { flex: 1 1 auto; min-height: 0; display: flex; }
.page-fill > .log-main > .card { flex: 1 1 auto; margin: 0; min-height: 0; display: flex; flex-direction: column; }
.page-fill > .log-main > .card > .content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.page-fill .log-toolbar { flex: 0 0 auto; }
.page-fill .log-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
.page-fill .danger-zone { flex: 0 0 auto; }
@media (max-width: 991px) {
    .page-fill > .log-main { display: block; }
    .page-fill > .log-main > .card > .content { overflow: visible; display: block; }
    .page-fill .log-scroll { max-height: calc(100vh - 200px); }
}

@media (max-width: 991px) {
    .portal-body { overflow: auto; height: auto; }
    .wrapper { height: auto; overflow: visible; }
    .main-panel { height: auto; max-height: none; overflow: visible; display: block; }
    .main-panel > .content { overflow: visible; }
    .main-panel > .content.content-fill { overflow: visible; display: block; }
    .main-panel > .content.content-fill > .container-fluid { display: block; }
    .page-fill { display: block; }
    .page-fill > .md-row { display: block; }
    .md-row > .md-master, .md-row > .md-detail { display: block; }
    .md-row > .md-master { margin-bottom: 18px; }
    .md-row .card > .content { overflow: visible; }
}

/* Outline danger for the two bulk-delete buttons, so only "Clear all" is solid red */
.btn-outline-danger {
    color: #c9302c;
    background: transparent;
    border: 1px solid #c9302c;
}
.btn-outline-danger:hover, .btn-outline-danger:focus { color: #fff; background: #c9302c; }

.danger-zone {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e0b4b4;
    border-radius: 6px;
    background: rgba(201,48,44,0.05);
}

/* ---------------------------------------------------------------- DataTables */
/* Sorteer- en filterlaag over de bestaande overzichtstabellen, in het portaalthema. */
.md-detail .dataTables_wrapper { padding: 14px 22px 18px; }
.md-detail .dataTables_wrapper table.dataTable { width: 100% !important; }
.dt-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dt-toolbar-left { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.dt-toolbar-right { margin-left: auto; }
.dt-colfilters { display: flex; gap: 8px; flex-wrap: wrap; }
/* Eigen maatvoering voor de filter-, zoek- en aantalselects: input-sm en de 42px
   .form-control botsen anders en snijden de tekst af. */
.dataTables_wrapper .dt-toolbar select,
.dataTables_wrapper .dt-toolbar input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input,
.dt-colfilters select {
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
}
.dataTables_wrapper .dt-toolbar select.form-control,
.dt-colfilters select { padding-right: 28px; }
.dt-colfilters select { min-width: 150px; }
.dataTables_wrapper .dataTables_filter input { margin-left: 8px; }
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label { font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.dataTables_wrapper .dataTables_length select { min-width: 80px; }
/* De kop blijft staan tijdens het scrollen binnen het kaart-content-vlak. */
.md-detail table.dataTable thead > tr > th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.dataTables_wrapper .dataTables_info { color: var(--muted); padding-top: 0; }
/* Paginering in het accentthema. */
.dataTables_wrapper .pagination { margin: 0; }
.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span { color: var(--accent); border-color: var(--border); }
.dataTables_wrapper .pagination > li.active > a,
.dataTables_wrapper .pagination > li.active > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.dataTables_wrapper .pagination > li > a:hover { background: var(--accent-soft); }
/* De sorteerpijltjes subtiel. */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc { cursor: pointer; }

/* ------------------------------------------------- Toegangslog (herzien) */
/* Filter staat nu in een gewone kaart, niet meer onder .log-toolbar. */
.log-filter .form-group { margin-right: 10px; margin-bottom: 6px; }
.log-filter label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.log-actions-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.log-row { cursor: pointer; }
/* Detailvenster: nette twee-koloms lijst. */
.dl-detail { display: grid; grid-template-columns: 180px 1fr; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.dl-detail dt, .dl-detail dd { padding: 9px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.dl-detail dt { font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); display: flex; align-items: center; }
.dl-detail dd { margin: 0; color: var(--text); font-size: 13.5px; word-break: break-word; }
.dl-detail dd.dl-break { word-break: break-all; font-size: 12.5px; line-height: 1.5; }
.dl-detail dd.dd-empty { color: var(--muted-2); font-style: italic; }
.dl-detail > dt:last-of-type, .dl-detail > dd:last-of-type { border-bottom: none; }
.dl-detail code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: var(--text); }
@media (max-width: 600px) {
    .dl-detail { grid-template-columns: 1fr; }
    .dl-detail dt { border-bottom: none; padding-bottom: 2px; }
}

/* ---------------------------------------------- Toegangslog (grid vult scherm) */
.log-filterbar {
    flex: 0 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px 2px;
}
.page-fill > .log-grid-card { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; }
/* De kaart-content scrollt zelf. Geen DataTables-scrollY meer, dus geen vaste breedtes die
   misvormen bij een sidebar-toggle: de tabel reflowt gewoon mee. De kop plakt tijdens scrollen. */
.log-grid-card > .content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 6px 16px 10px; }

.log-actiongroup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.log-actiongroup.is-hidden { display: none; }
.log-selectall { font-weight: 600; color: var(--muted); font-size: 13px; margin: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.log-more .dropdown-menu { font-size: 13px; }
.log-rowactions { white-space: nowrap; }
.log-rowactions .btn-link { color: var(--muted-2); padding: 2px 6px; }
.log-rowactions .btn-link:hover { color: var(--accent); }
.log-rowactions .btn-link.text-danger:hover { color: var(--danger); }
/* Datatable-scrollkop in het thema. */
.log-grid-card table.dataTable thead > tr > th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }

/* ------------------------------------------------- Gebruikers: admin-achtige rij-acties */
.icon-actions { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }
.icon-actions form { display: inline; margin: 0; }
.icon-actions .icon-btn {
    color: var(--muted-2);
    background: none;
    border: 0;
    padding: 5px 8px;
    border-radius: 7px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.icon-actions .icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
.icon-actions .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.icon-actions .icon-btn i { font-size: 15px; display: block; }

/* Status als bolletje vóór de gebruikersnaam: groen actief, rood inactief. */
.user-cell { display: inline-flex; align-items: center; }
.udot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 9px; flex: 0 0 auto; }
.udot.is-on { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.udot.is-off { background: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }

/* Rol als icoon met tooltip. */
.role-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; }
.role-icon i { font-size: 16px; }
.role-super { color: var(--accent-strong); background: var(--accent-soft); }
.role-admin { color: #7a5200; background: #fbeccb; }
.role-user  { color: #5a6473; background: #eaedf2; }

/* Toegang als iconen, docs-versies als V1 V2 V3. */
.access-icons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.access-icons .acc-icon { display: inline-flex; align-items: center; color: var(--muted); }
.access-icons .acc-icon i { font-size: 16px; }
.ver-chip { font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-strong); padding: 1px 6px; border-radius: 5px; }

/* ------------------------------------------------- Dashboard: Chart.js weergaven */
.cjs-wrap { position: relative; height: 260px; }
.cjs-wrap canvas { max-width: 100%; }
.cjs-combined-wrap { position: relative; height: 440px; }
.dash-combined-card { display: none; }
body.dash-combined .dash-per { display: none; }
body.dash-combined .dash-combined-card { display: block; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chart-dl { display: inline-flex; align-items: center; gap: 5px; }

/* Toegangslog: houd het zoekveld binnen het paneel. */
.log-grid-card .dataTables_wrapper { max-width: 100%; }
.log-grid-card .dt-toolbar { max-width: 100%; }
.log-grid-card .dataTables_filter { margin: 0; }
.log-grid-card .dataTables_filter input { max-width: 200px; box-sizing: border-box; }

/* ------------------------------------------------- Documentatie-toegang keuze */
.docs-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: normal; margin: 0; }
.docs-choice input { margin-top: 4px; flex: 0 0 auto; }
.docs-choice .help-block { margin: 2px 0 0; }

/* ------------------------------------------------- Instellingen-overzicht (tegels) */
.settings-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.settings-tile { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.settings-tile:hover, .settings-tile:focus { border-color: var(--accent); box-shadow: var(--shadow-md); color: var(--text); text-decoration: none; }
.settings-tile .st-icon { width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
.settings-tile .st-icon i { font-size: 20px; }
.settings-tile .st-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.settings-tile .st-text strong { font-size: 15px; }
.settings-tile .st-text span { font-size: 13px; color: var(--muted); }
/* ------------------------------------------------- Links-naar-rechts-keuze (documentatiefuncties) */
.duallist { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px; }
.duallist-search { position: relative; margin-bottom: 10px; }
.duallist-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 13px; pointer-events: none; }
.duallist-search .form-control { padding-left: 32px; }
.duallist-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 767px) { .duallist-panes { grid-template-columns: 1fr; } }
.duallist-pane { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.duallist-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.duallist-count { font-weight: 600; color: var(--muted-2); }
.duallist .icon-btn { color: var(--muted-2); background: none; border: 0; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.duallist .icon-btn:hover { color: var(--accent-strong); background: var(--accent-soft); }
.duallist-list { height: 300px; overflow-y: auto; padding: 4px 0; }
.dl-chapter { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 2px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-strong); }
.dl-chapter-btn { padding: 2px 6px !important; }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px 6px 20px; font-size: 13px; color: var(--text); cursor: pointer; }
.dl-item:hover, .dl-item:focus { background: var(--accent-soft); outline: none; }
.dl-item-main { display: flex; flex-direction: column; min-width: 0; }
.dl-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-item-api { font-family: Consolas, 'Courier New', monospace; font-size: 11px; color: var(--muted-2); }
.dl-item-meta { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dl-item-icon { color: var(--muted-2); font-size: 11px; margin-left: 4px; }
.dl-item:hover .dl-item-icon { color: var(--accent-strong); }
.dl-empty { padding: 16px 12px; font-size: 13px; color: var(--muted-2); }

/* ===========================================================================
   Neutralisatie oud thema (paper-dashboard.css)
   Het thema verwacht eigen scripts (off-canvas-menu, vinkje-iconen) die we niet laden. De regels
   hieronder zetten die afhankelijkheden uit. Het vinkje-herstel staat bij .co-sub-toggle hierboven.
   =========================================================================== */
@media (max-width: 991px) {
    /* Thema zet een transform op .wrapper: dan gedraagt position:fixed zich als absolute. */
    .wrapper { -webkit-transform: none !important; transform: none !important; transition: none !important; }
    /* Thema verbergt de sidebar op smalle schermen. Eigen off-canvas via body.nav-open (portal-ui.js). */
    .portal-body .sidebar {
        display: block; position: fixed; top: 0; bottom: 0; left: 0; height: 100%;
        width: 248px !important; z-index: 1040;
        transform: translateX(-100%); transition: transform .22s ease;
    }
    .portal-body.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-md) !important; }
    .portal-body .sidebar .sidebar-toggle-btn { display: none; }
    .portal-body .main-panel { width: 100% !important; float: none; }
    .portal-body .main-panel > .navbar .navbar-toggle { display: inline-block; float: none; margin: 0 6px 0 0; }
    .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 1039; }
    .portal-body.nav-open .sidebar-backdrop { display: block; }
}
@media (min-width: 992px) {
    .portal-body .main-panel > .navbar .navbar-toggle { display: none; }
    .sidebar-backdrop { display: none; }
}

/* ------------------------------------------------- Kleine hulpklassen (designreview 14-09) */
.num { font-variant-numeric: tabular-nums; }
.small-note { font-size: 12px; }
.plain-list { margin: 6px 0 0; padding-left: 18px; }
.plain-list li { margin: 3px 0; }
.icon-actions .icon-btn.is-danger:hover { color: var(--danger); background: rgba(220, 38, 38, 0.10); }
.btn-warning-soft { background: #fbeccb; border: 1px solid #f1d58f; color: #7a5200; }
.btn-warning-soft:hover, .btn-warning-soft:focus { background: #f8e2b0; color: #5c3d00; }
.badge-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.08); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.cell-truncate { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Sorteerpijlen van DataTables niet zoveel ruimte laten pakken in smalle detailpanelen. */
.md-detail table.dataTable thead > tr > th.sorting,
.md-detail table.dataTable thead > tr > th.sorting_asc,
.md-detail table.dataTable thead > tr > th.sorting_desc { padding-right: 20px; }
#usersTable > thead > tr > th, #usersTable > tbody > tr > td { padding-left: 6px; padding-right: 6px; }
#usersTable .icon-actions .icon-btn { padding: 5px 6px; }
#usersTable > thead > tr > th:first-child, #usersTable > tbody > tr > td:first-child { padding-left: 22px; }
#usersTable > thead > tr > th:last-child, #usersTable > tbody > tr > td:last-child { padding-right: 16px; }

/* ------------------------------------------------- Formulieren en detailpagina's (designreview 14-09) */
.access-sub { margin-left: 24px; }
.help-block.help-top { margin-top: 0; }
.card-intro, .card-intro small { margin-top: 0; color: var(--muted); }
.card > .header .title { margin: 0; }
.btn-below { margin-top: 8px; }
.form-actions-sticky { position: sticky; bottom: 0; z-index: 4; background: var(--surface); padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); }
.input-group-addon { background: var(--surface-2) !important; border: 1px solid var(--border-strong) !important; border-left: 0 !important; color: var(--muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; font-size: 13px; }
.year-form select { min-width: 150px; }
.btn-group .btn.is-active, .btn-group .btn.is-active:hover, .btn-group .btn.is-active:focus { background: var(--accent-soft-2) !important; border-color: var(--accent) !important; color: var(--accent-strong) !important; }
.card > .header .title .udot { vertical-align: middle; }
.card .page-sub { margin-top: 0; }
.delta { font-size: 11px; line-height: 1.3; }
.delta-up { color: #15803d; }
.delta-down { color: var(--danger); }
.delta-new { color: var(--muted); }
.total-row > td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border-strong) !important; }
.key-copy { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.key-copy code { word-break: break-all; }
.key-copy .icon-btn { color: var(--muted-2); background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.key-copy .icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
.copy-feedback { font-size: 12px; color: #15803d; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.manage-actions form { margin: 0; }
.manage-inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.manage-inline select { width: 200px; max-width: 100%; }
@media (max-width: 767px) { .manage-inline, .manage-inline select { width: 100%; } }
.assign-row label { display: inline-flex; align-items: center; gap: 2px; }
.role-icon.role-icon--sm { width: 22px; height: 22px; margin-left: 6px; }
.role-icon.role-icon--sm i { font-size: 12px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
/* DataTables zet position:relative op sorteerbare kolomkoppen (voor de pijltjes) en wordt na portal.css geladen.
   Daardoor was de vaste kop in de detailpanelen weg. Sticky werkt ook als containing block voor de pijltjes. */
.md-detail table.dataTable > thead > tr > th { position: sticky !important; top: 0; z-index: 5; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }

/* ------------------------------------------------- Vullende grids: alleen de regels scrollen
   Toolbar (zoeken, filters, aantal), kolomkoppen en paginering staan vast. De klassen zet
   portal-datatables.js (markFill). Op smalle schermen scrolt de pagina gewoon. */
@media (min-width: 992px) {
    .dt-fill-host { display: flex; flex-direction: column; min-height: 0; overflow: hidden !important; }
    .dt-fill-host > * { flex: 0 0 auto; }
    .dt-fill-host > .dt-fill-mid, .dt-fill-host > .dt-fill-wrapper { flex: 1 1 auto; min-height: 0; }
    .dt-fill-mid { display: flex; flex-direction: column; min-height: 0; overflow: hidden !important; }
    .dt-fill-mid > .dt-fill-wrapper { flex: 1 1 auto; min-height: 0; }
    .dt-fill-wrapper { display: flex; flex-direction: column; min-height: 0; }
    .dt-fill-wrapper > .dt-toolbar, .dt-fill-wrapper > .dt-foot, .dt-fill-wrapper > .dataTables_processing { flex: 0 0 auto; }
    .dt-fill-wrapper > .dt-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
    .dt-fill-wrapper > .dt-scroll > table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; }
    .dt-fill-wrapper > .dt-foot { padding-top: 10px; }
}
.dt-scroll table.dataTable > thead > tr > th { position: sticky !important; top: 0; z-index: 5; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }
.dt-scroll table.dataTable > tfoot > tr > td { position: sticky; bottom: 0; z-index: 4; }

/* ------------------------------------------------- Instellingen als master-detail */
.settings-nav-content { padding: 0 !important; }
.settings-nav .settings-nav-item { gap: 12px; text-decoration: none; color: var(--text); }
.settings-nav .settings-nav-item > i { font-size: 17px; color: var(--muted-2); width: 20px; text-align: center; flex: 0 0 auto; }
.settings-nav .settings-nav-item.active > i, .settings-nav .settings-nav-item:hover > i { color: var(--accent-strong); }
.settings-nav-text { display: flex; flex-direction: column; min-width: 0; }
.settings-nav-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-row > .md-detail.settings-detail { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.settings-detail > .alert { flex: 0 0 auto; }
.settings-detail > .row { margin-left: 0; margin-right: 0; }
.settings-detail > .row > [class*="col-"] { padding-left: 0; }
.settings-detail > .card-fill { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; flex-direction: column; }
.settings-detail > .card-fill > .content { flex: 1 1 auto; min-height: 0; overflow: auto; }
.settings-detail .card:not(.card-fill) > .content { padding: 15px 22px 20px; }
.settings-detail .card:not(.card-fill) > .content > p { margin: 0 0 10px; }
@media (max-width: 991px) { .md-row > .md-detail.settings-detail { overflow: visible; } }
