/* PinPortal thema — afgeleid van het ontwerp in test2.php.
   Eén bron voor de layout-shell (sidebar, topbar, content) en voor de
   manier waarop de bestaande Bootstrap-content in dat thema oogt.
   Ingeladen door navbar.php, dus elke pagina die de navbar includeert
   krijgt dit thema automatisch. */

/* ==========================================================================
   1. Basis, sidebar, topbar en dashboardonderdelen
   ========================================================================== */
:root {
    --sidebar-width: 270px;
    --background: #f5f7fb;
    --surface: #ffffff;
    --surface-hover: #f7f9fc;
    --border: #e6eaf0;
    --text: #172033;
    --text-secondary: #667085;
    --text-light: #98a2b3;
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --success: #16a34a;
    --success-light: #ecfdf3;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.03);
}
html, body { margin:0; padding:0; width:100%; min-height:100%; font-family:Inter,Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif; background:var(--background); color:var(--text); }
body { overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; }
.sidebar { position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-width); background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; z-index:1050; overflow-y:auto; overflow-x:hidden; }
.sidebar::-webkit-scrollbar { width:5px; } .sidebar::-webkit-scrollbar-thumb { background:#d7dce5; border-radius:10px; }
.sidebar-logo { height:76px; flex:0 0 76px; display:flex; align-items:center; padding:0 24px; border-bottom:1px solid var(--border); }
.logo-mark { width:36px; height:36px; border-radius:10px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:700; margin-right:11px; }
.logo-text { font-size:19px; font-weight:700; color:var(--text); letter-spacing:-.3px; }
.sidebar-logo a { display:flex; align-items:center; min-width:0; }
.sidebar-logo img { max-height:44px; max-width:200px; border-radius:6px; }
.sidebar-navigation { padding:18px 12px 20px; }
.navigation-section { margin-bottom:8px; }
.section-button { width:100%; border:0; background:transparent; display:flex; align-items:center; padding:10px 12px; border-radius:9px; color:var(--text); font-size:13px; font-weight:650; cursor:pointer; transition:background .15s ease; }
.section-button:hover { background:var(--surface-hover); }
.section-icon { width:24px; color:var(--text-secondary); font-size:14px; margin-right:8px; text-align:center; }
.section-title { flex:1; text-align:left; } .section-arrow { color:var(--text-light); font-size:11px; transition:transform .2s ease; }
.navigation-section.open .section-arrow { transform:rotate(180deg); }
.section-items { display:none; padding:3px 0 7px 24px; } .navigation-section.open .section-items { display:block; }
.nav-item { display:flex; align-items:center; min-height:36px; padding:8px 12px; border-radius:8px; color:var(--text-secondary); font-size:13px; transition:background .15s ease,color .15s ease; }
.nav-item:hover { background:var(--primary-light); color:var(--primary); } .nav-item.active { background:var(--primary-light); color:var(--primary); font-weight:600; }
.nav-item-icon { width:23px; margin-right:6px; font-size:12px; text-align:center; }
.sidebar-bottom { margin-top:auto; padding:12px; border-top:1px solid var(--border); }
.bottom-item { display:flex; align-items:center; padding:10px 12px; border-radius:9px; color:var(--text-secondary); font-size:13px; } .bottom-item:hover { background:var(--surface-hover); color:var(--text); } .bottom-item i { width:25px; font-size:14px; }
.main { margin-left:var(--sidebar-width); min-height:100vh; width:calc(100% - var(--sidebar-width)); }
.topbar { height:76px; background:rgba(255,255,255,.96); border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 30px; gap:20px; position:sticky; top:0; z-index:100; }
.mobile-menu { display:none; width:38px; height:38px; border:1px solid var(--border); background:#fff; border-radius:9px; cursor:pointer; color:var(--text); }
.search-container { flex:1; max-width:720px; position:relative; } .search-container i { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--text-light); font-size:14px; }
.search-input { width:100%; height:43px; border:1px solid var(--border); background:#f8fafc; border-radius:10px; outline:none; padding:0 16px 0 43px; font-size:13px; color:var(--text); transition:border .15s ease,background .15s ease; }
.search-input:focus { background:#fff; border-color:#b9cdfc; }
.topbar-actions { margin-left:auto; display:flex; align-items:center; gap:8px; } .topbar-button { width:39px; height:39px; border:1px solid transparent; background:transparent; border-radius:9px; display:flex; align-items:center; justify-content:center; color:var(--text-secondary); cursor:pointer; }
.topbar-button:hover { background:var(--surface-hover); border-color:var(--border); }
.profile { display:flex; align-items:center; margin-left:8px; padding-left:15px; border-left:1px solid var(--border); }
.profile-avatar { width:37px; height:37px; border-radius:50%; background:#e8eefc; color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.profile-info { margin-left:10px; } .profile-name { font-size:13px; font-weight:600; color:var(--text); } .profile-role { font-size:11px; color:var(--text-light); margin-top:2px; }
.profile-menu { position:relative; } .profile-menu summary { list-style:none; cursor:pointer; } .profile-menu summary::-webkit-details-marker { display:none; }
.profile-dropdown { position:absolute; right:0; top:48px; min-width:190px; background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 30px rgba(16,24,40,.12); padding:6px; z-index:1200; }
.profile-dropdown a { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:8px; font-size:13px; color:var(--text-secondary); } .profile-dropdown a:hover { background:var(--surface-hover); color:var(--text); }
.content { padding:30px; } .page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:25px; }
.page-title { margin:0; font-size:25px; letter-spacing:-.5px; font-weight:700; } .page-description { margin:6px 0 0; color:var(--text-secondary); font-size:13px; }
.header-actions { display:flex; gap:8px; } .header-action { border:1px solid var(--border); background:#fff; border-radius:9px; padding:9px 14px; font-size:12px; color:var(--text-secondary); cursor:pointer; }
.header-action:hover { color:var(--text); background:var(--surface-hover); }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.stat-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:21px; box-shadow:var(--shadow); }
.stat-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; } .stat-label { color:var(--text-secondary); font-size:12px; font-weight:500; }
.stat-icon { width:36px; height:36px; border-radius:9px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:14px; }
.stat-value { font-size:26px; font-weight:700; letter-spacing:-.5px; margin-bottom:8px; } .stat-footer { display:flex; align-items:center; gap:6px; font-size:11px; }
.stat-period { color:var(--text-light); } .stat-live { color:var(--success); font-weight:600; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,1fr); gap:20px; margin-bottom:20px; }
.dashboard-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.card-header { padding:20px 21px 10px; display:flex; align-items:center; justify-content:space-between; } .card-title { font-size:14px; font-weight:650; margin:0; } .card-subtitle { font-size:11px; color:var(--text-light); margin-top:4px; }
.card-action { font-size:11px; color:var(--primary); cursor:pointer; } .card-action:hover { text-decoration:underline; }
.chart-container { padding:5px 20px 18px; min-height:270px; display:flex; align-items:center; justify-content:center; }
.chart-placeholder { width:100%; height:230px; border:1px dashed var(--border); border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--text-light); gap:7px; background:#fbfcfe; }
.chart-placeholder i { font-size:22px; color:#b5bdca; } .chart-placeholder strong { font-size:12px; color:var(--text-secondary); } .chart-placeholder span { font-size:11px; }
.terminal-content { padding:15px 21px 22px; } .terminal-summary { display:flex; align-items:center; justify-content:center; margin:5px 0 22px; }
.terminal-circle { width:130px; height:130px; border-radius:50%; border:12px solid #edf0f4; border-top-color:var(--success); border-right-color:var(--success); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.terminal-number { font-size:26px; font-weight:700; } .terminal-label { font-size:10px; color:var(--text-light); margin-top:2px; }
.terminal-list { display:flex; flex-direction:column; gap:12px; } .terminal-row { display:flex; align-items:center; justify-content:space-between; } .terminal-name { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-secondary); }
.status-dot { width:7px; height:7px; border-radius:50%; } .status-online { background:var(--success); } .status-offline { background:var(--danger); } .status-maintenance { background:var(--warning); } .terminal-count { font-size:12px; font-weight:650; color:var(--text); } .terminal-link { color:inherit; } .terminal-link:hover { background:var(--surface-hover); border-radius:10px; }
.lower-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,1fr); gap:20px; }
.quick-actions { padding:10px 20px 20px; display:grid; grid-template-columns:1fr 1fr; gap:10px; } .quick-action { border:1px solid var(--border); background:#fff; border-radius:9px; padding:13px; display:flex; align-items:center; gap:10px; font-size:11px; color:var(--text-secondary); transition:all .15s ease; }
.quick-action:hover { background:var(--surface-hover); border-color:#d5dbe5; color:var(--text); } .quick-action-icon { width:30px; height:30px; border-radius:7px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Modern Klanten card - presentation only. The #example table, DataTables and Editor hooks remain unchanged. */
.customers-card { width:100%; }
.customers-card .card-header { padding:20px 22px 16px; border-bottom:1px solid var(--border); }
.customers-card .customer-card-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.customers-card .customer-card-icon { width:38px; height:38px; flex:0 0 38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--primary-light); color:var(--primary); font-size:15px; }
.customers-card .card-title { font-size:15px; line-height:1.25; }
.customers-card .card-subtitle { line-height:1.45; }
.customers-card .card-action { padding:7px 11px; border:1px solid var(--border); border-radius:8px; background:#fff; text-decoration:none; white-space:nowrap; }
.customers-card .card-action:hover { background:var(--primary-light); border-color:#cddbf9; text-decoration:none; }
.customers-card .card-body { padding:18px 22px 22px; }
.customers-card #example_wrapper { width:100%; }
.customers-card #example_wrapper .dt-buttons { display:flex !important; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 14px; padding:0 !important; }
.customers-card #example_wrapper .dt-buttons .dt-button,
.customers-card #example_wrapper .dt-buttons button { border:1px solid var(--border) !important; border-radius:8px !important; background:#fff !important; color:var(--text-secondary) !important; box-shadow:none !important; font-size:11px !important; padding:7px 10px !important; }
.customers-card #example_wrapper .dt-buttons .dt-button:hover,
.customers-card #example_wrapper .dt-buttons button:hover { background:var(--surface-hover) !important; color:var(--text) !important; border-color:#d5dbe5 !important; }
.customers-card #example_wrapper .dataTables_filter { margin:0 0 14px; }
.customers-card #example_wrapper .dataTables_filter label { display:flex; align-items:center; gap:8px; margin:0; color:var(--text-secondary); font-size:11px; }
.customers-card #example_wrapper .dataTables_filter input { height:36px; min-width:210px; margin-left:0 !important; border:1px solid var(--border) !important; border-radius:8px !important; background:#f8fafc !important; box-shadow:none !important; font-size:12px; }
.customers-card #example_wrapper .dataTables_filter input:focus { background:#fff !important; border-color:#b9cdfc !important; outline:none; }
.customers-card #example { margin-top:4px !important; border-collapse:separate !important; border-spacing:0; font-size:12px; }
.customers-card #example thead th { padding:12px 10px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:#f8fafc; color:var(--text-secondary); font-size:11px; font-weight:650; white-space:nowrap; }
.customers-card #example tbody td { padding:12px 10px; border-bottom:1px solid #edf0f4; color:var(--text); vertical-align:middle; }
.customers-card #example tbody tr:hover td { background:#f8fafc; }
.customers-card #example tbody tr.selected td { background:var(--primary-light) !important; color:var(--text) !important; }
.customers-card #example tfoot th { padding:10px; background:#fff; border-top:1px solid var(--border); color:var(--text-light); font-size:10px; }
.customers-card #example_wrapper .dataTables_info,
.customers-card #example_wrapper .dataTables_paginate,
.customers-card #example_wrapper .dataTables_length { font-size:11px; color:var(--text-secondary); }
.customers-card #example_wrapper .pagination .page-link { border-color:var(--border); color:var(--text-secondary); box-shadow:none; font-size:11px; }
.customers-card #example_wrapper .pagination .page-item.active .page-link { background:var(--primary); border-color:var(--primary); color:#fff; }
@media (max-width:700px) {
    .customers-card .card-header { align-items:flex-start; flex-direction:column; gap:12px; }
    .customers-card .card-action { width:100%; text-align:center; }
    .customers-card .card-body { padding:14px 12px 16px; }
    .customers-card #example_wrapper .dataTables_filter label { align-items:stretch; flex-direction:column; }
    .customers-card #example_wrapper .dataTables_filter input { min-width:0; width:100%; }
}
/* Klantentabel op het dashboard: volle breedte sinds Snelle acties eruit is. */
.customers-section { margin-bottom:20px; }
.table-card { margin-top:20px; } .table-card .card-body { padding:20px; } #example { width:100% !important; }
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:1040; }
@media (max-width:1200px){ .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:991px){ .sidebar{transform:translateX(-100%);transition:transform .25s ease;} .sidebar.mobile-open{transform:translateX(0);} .sidebar-overlay.mobile-open{display:block;} .main{margin-left:0;width:100%;} .mobile-menu{display:block;flex-shrink:0;} .dashboard-grid,.lower-grid{grid-template-columns:1fr;} }
@media (max-width:700px){ .topbar{padding:0 15px;gap:10px;} .profile-info{display:none;} .profile{padding-left:8px;margin-left:2px;border-left:none;} .content{padding:20px 15px;} .stats-grid{grid-template-columns:1fr;} .page-header{flex-direction:column;gap:12px;} .header-actions,.header-action{width:100%;} .quick-actions{grid-template-columns:1fr;} }

/* ==========================================================================
   2. SVG grafiek (dashboard) — hoorde bij het ontwerp maar ontbrak in test2.php
   ========================================================================== */
.chart-container { position:relative; }
.chart-svg { width:100%; height:270px; overflow:visible; }
.chart-grid-line { stroke:#eef1f6; stroke-width:1; }
.chart-label { fill:var(--text-light); font-size:11px; font-family:inherit; }
.chart-area { fill:url(#chartGradient); stroke:none; }
.chart-line { fill:none; stroke:var(--primary); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.chart-point { fill:#fff; stroke:var(--primary); stroke-width:2.5; transition:r .15s ease; }
.chart-point:hover { r:6; }

/* ==========================================================================
   3. Paginaromp
   ========================================================================== */
#wrapper, #content { display:block; width:auto; max-width:none; padding:0; margin:0; }
.content > .container, .content > .container-fluid { padding-left:0; padding-right:0; max-width:none; }
.page-footer { margin-top:28px; padding-top:18px; border-top:1px solid var(--border); color:var(--text-light); font-size:12px; text-align:center; }
.page-footer .version { color:#b3bac6; }

/* ==========================================================================
   4. Bootstrap/MDB-componenten in het nieuwe thema
   Bestaande paginacontent gebruikt .card/.table/.btn — die krijgen hier het
   uiterlijk van het thema, zonder dat de markup hoeft te veranderen.
   ========================================================================== */
.content .card,
.content .card.shadow {
    background:var(--surface);
    border:1px solid var(--border) !important;
    border-radius:var(--radius) !important;
    box-shadow:var(--shadow) !important;
    margin-bottom:20px;
}
.content .card > .card-header {
    background:var(--surface);
    border-bottom:1px solid var(--border);
    padding:18px 22px;
    border-radius:var(--radius) var(--radius) 0 0;
}
.content .card > .card-body { padding:20px 22px 22px; }
.content .card > .card-footer { background:var(--surface); border-top:1px solid var(--border); padding:14px 22px; }

/* De oude paginatitels stonden in display-6 in de kaartkop. De paginatitel
   staat nu bovenaan in .page-header, dus de kaartkop wordt bescheiden. */
.content .card-title { font-size:15px; font-weight:650; line-height:1.3; margin:0; letter-spacing:-.2px; }
.content .card-title.display-6 { font-size:15px !important; font-weight:650 !important; }
.content .card-subtitle { font-size:11px; color:var(--text-light); margin-top:4px; }

/* Tabellen */
.content table.table { font-size:12px; color:var(--text); border-color:var(--border); margin-bottom:0; }
/* Bootstrap zet een dikke scheiding tussen thead en tbody; die past niet bij dit thema. */
.content table.table > :not(:first-child) { border-top:0 !important; }
.content table.table > thead { border-bottom:0 !important; }
.content table.table > thead > tr > th {
    background:#f8fafc; color:var(--text-secondary); font-size:11px; font-weight:650;
    padding:12px 10px;
    border-top:1px solid var(--border) !important;
    border-bottom:1px solid var(--border) !important;
    box-shadow:none;
    white-space:nowrap; vertical-align:middle;
}
.content table.table > tbody > tr > td { padding:11px 10px; border-bottom:1px solid #edf0f4; vertical-align:middle; }
.content table.table > tbody > tr:hover > td { background:#f8fafc; }
.content table.table.table-striped > tbody > tr:nth-of-type(odd) > * { background-color:#fcfdfe; box-shadow:none; }
.content table.dataTable > tbody > tr.selected > td,
.content table.table > tbody > tr.selected > td { background:var(--primary-light) !important; color:var(--text) !important; box-shadow:none !important; }
.content table.table > tfoot > tr > th { background:var(--surface); border-top:1px solid var(--border); color:var(--text-light); font-size:10px; padding:10px; }

/* DataTables-bediening */
.content .dataTables_wrapper .dt-buttons { display:flex !important; flex-wrap:wrap; gap:7px; margin:0 0 14px; padding:0 !important; }
.content .dataTables_wrapper .dt-buttons .dt-button,
.content .dataTables_wrapper .dt-buttons button {
    border:1px solid var(--border) !important; border-radius:8px !important; background:#fff !important;
    color:var(--text-secondary) !important; box-shadow:none !important; font-size:11px !important; padding:7px 11px !important; margin:0 !important;
}
.content .dataTables_wrapper .dt-buttons .dt-button:hover,
.content .dataTables_wrapper .dt-buttons button:hover { background:var(--surface-hover) !important; color:var(--text) !important; border-color:#d5dbe5 !important; }
.content .dataTables_wrapper .dataTables_filter input,
.content .dataTables_wrapper .dataTables_length select {
    height:36px; border:1px solid var(--border) !important; border-radius:8px !important;
    background:#f8fafc !important; box-shadow:none !important; font-size:12px;
}
.content .dataTables_wrapper .dataTables_filter input:focus,
.content .dataTables_wrapper .dataTables_length select:focus { background:#fff !important; border-color:#b9cdfc !important; outline:none; }
.content .dataTables_wrapper .dataTables_info,
.content .dataTables_wrapper .dataTables_paginate,
.content .dataTables_wrapper .dataTables_length,
.content .dataTables_wrapper .dataTables_filter { font-size:11px; color:var(--text-secondary); }
.content .dataTables_wrapper .pagination .page-link { border-color:var(--border); color:var(--text-secondary); box-shadow:none; font-size:11px; }
.content .dataTables_wrapper .pagination .page-item.active .page-link { background:var(--primary); border-color:var(--primary); color:#fff; }

/* Knoppen */
.content .btn { border-radius:9px; font-size:12px; font-weight:600; padding:9px 15px; box-shadow:none !important; }
.content .btn-primary { background-color:var(--primary); border-color:var(--primary); }
.content .btn-primary:hover, .content .btn-primary:focus { background-color:#1d4fd7; border-color:#1d4fd7; }
.content .btn-outline-primary { color:var(--primary); border-color:#c7d7fb; }
.content .btn-outline-primary:hover { background-color:var(--primary); border-color:var(--primary); color:#fff; }
.content .btn-secondary { background-color:#eef1f6; border-color:#e2e7ef; color:var(--text); }
.content .btn-link { color:var(--primary); }

/* Formulieren */
.content .form-control, .content .form-select, .content .input-group-text {
    border-radius:9px; border-color:var(--border); font-size:13px; color:var(--text); background-color:#fff;
}
.content .form-control:focus, .content .form-select:focus { border-color:#b9cdfc; box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.content .input-group-text { background:#f8fafc; color:var(--text-secondary); }
.content label, .content .form-label { font-size:12px; color:var(--text-secondary); font-weight:500; }
.content .form-check-input:checked { background-color:var(--primary); border-color:var(--primary); }

/* Tabbladen */
.content .nav-tabs { border-bottom:1px solid var(--border); gap:2px; }
.content .nav-tabs .nav-link { border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--text-secondary); font-size:13px; font-weight:600; padding:11px 14px; }
.content .nav-tabs .nav-link:hover { color:var(--text); background:transparent; }
.content .nav-tabs .nav-link.active { color:var(--primary); background:transparent; border-bottom-color:var(--primary); }

/* Badges, alerts, lijsten */
.content .badge { border-radius:6px; font-weight:600; font-size:10px; padding:5px 8px; }
.content .alert { border-radius:10px; border:1px solid var(--border); font-size:12px; }
.content .list-group-item { border-color:var(--border); font-size:13px; }

/* Modals (dialogen leven buiten .content) */
.modal-content { border-radius:var(--radius); border:1px solid var(--border); }
.modal-header { border-bottom:1px solid var(--border); }
.modal-footer { border-top:1px solid var(--border); }
.DTE .modal-title, .modal-title { font-size:16px; font-weight:650; }

/* ==========================================================================
   5. Inlogpagina's — zelfde taal, zonder navigatie
   ========================================================================== */
body.auth-page { background:var(--background); display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px; }
.auth-shell { width:100%; max-width:430px; }
.auth-brand { display:flex; align-items:center; justify-content:center; gap:11px; margin-bottom:22px; }
.auth-brand .logo-mark { width:38px; height:38px; border-radius:10px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; }
.auth-brand .logo-text { font-size:20px; font-weight:700; letter-spacing:-.3px; }
.auth-brand img { max-height:44px; max-width:190px; }
.auth-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.06); padding:30px 28px; }
.auth-card h1, .auth-card h2, .auth-card h3 { font-size:19px; font-weight:700; letter-spacing:-.3px; margin:0 0 6px; }
.auth-subtitle { color:var(--text-secondary); font-size:13px; margin:0 0 22px; }
.auth-card .form-label, .auth-card label { font-size:12px; font-weight:500; color:var(--text-secondary); margin-bottom:5px; }
.auth-card .form-control { height:44px; border-radius:10px; border:1px solid var(--border); background:#f8fafc; font-size:14px; }
.auth-card .form-control:focus { background:#fff; border-color:#b9cdfc; box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.auth-card .btn { border-radius:10px; font-size:14px; font-weight:600; padding:11px 16px; box-shadow:none !important; }
.auth-card .btn-primary { background:var(--primary); border-color:var(--primary); }
.auth-card .btn-primary:hover { background:#1d4fd7; border-color:#1d4fd7; }
.auth-card .alert { border-radius:10px; font-size:13px; }
.auth-links { margin-top:18px; text-align:center; font-size:12px; color:var(--text-secondary); }
.auth-links a { color:var(--primary); }
.auth-links a:hover { text-decoration:underline; }
.auth-footer { margin-top:20px; text-align:center; font-size:11px; color:var(--text-light); }

/* ==========================================================================
   6. Print
   ========================================================================== */
@media print {
    .no-print, .sidebar, .topbar, .sidebar-overlay { display:none !important; }
    .main { margin-left:0 !important; width:100% !important; }
    .content { padding:0 !important; }
}

/* Bestaande Bootstrap-omhulsels op de inlogpagina's blijven staan; deze regels
   zorgen dat ze binnen de gecentreerde auth-layout niet in de weg zitten. */
body.auth-page > .container, body.auth-page > .container-fluid { width:100%; }
body.auth-page .vh-100 { min-height:0 !important; height:auto !important; }
body.auth-page .auth-card .card-body { padding:0; }
body.auth-page .auth-card > .card-body > .row { margin:0; }
body.auth-page .form-text { font-size:11px; color:var(--text-light); }
body.auth-page .invalid-feedback, body.auth-page .valid-feedback { font-size:12px; }
body.auth-page .locale-flags { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:20px; }
body.auth-page .locale-flags a { cursor:pointer; opacity:.75; transition:opacity .15s ease; display:inline-flex; }
body.auth-page .locale-flags a:hover { opacity:1; }
body.auth-page .locale-flags svg, body.auth-page .locale-flags img { height:20px !important; width:auto; border-radius:3px; }

/* Login met beeldpaneel */
body.auth-split { display:block; padding:0; }
.auth-split-wrap { display:flex; min-height:100vh; }
.auth-split-form { flex:0 0 480px; max-width:480px; background:var(--surface); display:flex; align-items:center; justify-content:center; padding:40px 36px; }
.auth-split-form .auth-shell { max-width:360px; }
.auth-split-form .auth-card { border:0; box-shadow:none; padding:0; background:transparent; }
.auth-split-visual { flex:1; background-size:cover; background-position:center; position:relative; }
.auth-split-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(37,99,235,.22), rgba(15,23,42,.28)); }
@media (max-width:900px) {
    .auth-split-form { flex:1 1 auto; max-width:none; width:100%; }
    .auth-split-visual { display:none; }
}

/* Op smalle schermen mag een brede tabel binnen de kaart schuiven; de pagina
   zelf schuift niet mee (body heeft overflow-x:hidden). */
@media (max-width:991px) {
    .content .card > .card-body { overflow-x:auto; }
    .content .dataTables_wrapper { overflow-x:auto; }
}
body.auth-page .auth-card label.form-label { display:block; }
body.auth-page .auth-card a { color:var(--primary); text-decoration:none; }
body.auth-page .auth-card a:hover { text-decoration:underline; }

/* ==========================================================================
   7. Klantpagina (/klant/{klantnummer})
   ========================================================================== */
.customer-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-bottom:20px; }
.customer-action {
    display:flex; align-items:center; gap:12px; text-align:left;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); padding:15px 16px; cursor:pointer; color:var(--text);
    transition:border-color .15s ease, background .15s ease;
}
.customer-action:hover { border-color:#c7d7fb; background:var(--surface-hover); }
.customer-action-icon { width:38px; height:38px; flex:0 0 38px; border-radius:10px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:15px; }
.customer-action strong { display:block; font-size:13px; font-weight:650; }
.customer-action small { display:block; font-size:11px; color:var(--text-light); margin-top:2px; }

.customer-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; align-items:start; }
.customer-summary .card { margin-bottom:0; }

.detail-list { margin:0; }
.detail-row { display:grid; grid-template-columns:minmax(110px,38%) 1fr; gap:10px; padding:7px 0; border-bottom:1px solid #f1f4f8; }
.detail-row:last-child { border-bottom:0; padding-bottom:0; }
.detail-row dt { font-size:12px; font-weight:500; color:var(--text-secondary); margin:0; }
.detail-row dd { font-size:13px; color:var(--text); margin:0; word-break:break-word; }
.detail-empty { color:var(--text-light); }

.customer-tabs { padding:0 10px; flex-wrap:wrap; }
.customer-tabs .nav-link { padding:11px 10px; }
.tab-hint { font-size:11px; color:var(--text-light); margin:0 0 14px; }

.secret { display:inline-flex; align-items:center; gap:6px; }
.secret code { font-size:11px; color:var(--text); background:#f3f6fa; border:1px solid var(--border); border-radius:6px; padding:3px 7px; white-space:nowrap; }
.secret .btn { padding:3px 7px; font-size:11px; border:1px solid var(--border); background:#fff; color:var(--text-secondary); border-radius:6px; }
.secret .btn:hover { background:var(--surface-hover); color:var(--text); }

a.klant-open { margin-left:6px; color:var(--text-light); font-size:11px; }
a.klant-open:hover { color:var(--primary); }
.tab-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
