/* BD Car Cleaning Portal – Stijl Multifix Limburg portal (portal.css) */
:root {
    --bg: #f5f5f4;
    --surface: #fff;
    --border: #e5e5e5;
    --text: #1c1b1a;
    --muted: #555;
    --accent: #b91a12;
    --accent-hover: #991b1b;
    --accent-active: #7f1d1d;
    --success: #16a34a;
    --error: #dc2626;
    --warning: #ca8a04;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-card: 0 4px 14px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(185,26,18,0.2); }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== LOGIN (licht) ========== */
body.login .install-banner { display: none !important; }

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: var(--bg);
}
.login-card {
    max-width: 420px;
    width: 100%;
    padding: 40px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.login-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 .25rem;
    text-align: center;
    color: var(--text);
}
.login-card .subtitle {
    font-size: .95rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    text-align: center;
}
.login-card label {
    display: block;
    font-size: .9rem;
    color: var(--text);
    margin: 0 0 .4rem;
}
.login-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    margin-bottom: .5rem;
}
.login-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(185,26,18,0.2);
}
.login-card button {
    width: 100%;
    margin-top: .75rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.login-card button:hover { background: var(--accent-hover); }

/* ========== TOPBAR (mobiel) ========== */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 0 16px;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.topbar-menu-btn {
    width: 44px;
    height: 44px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    background: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text);
}
.topbar-menu-btn:hover { background: rgba(0,0,0,0.06); }
.topbar-menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.topbar-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    padding: 0 8px;
}
.topbar-user {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ========== SIDEBAR OVERLAY (mobiel) ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 102;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

/* ========== SIDEBAR (licht) ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    max-width: 85vw;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    z-index: 103;
    box-shadow: 2px 0 10px rgba(0,0,0,0.04);
    transition: transform 0.25s ease;
}
.sidebar-brand {
    font-size: 1rem;
    font-weight: 600;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text);
}
.sidebar-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--accent);
    color: #fff;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--muted);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.sidebar-nav a:hover {
    background: rgba(185,26,18,0.08);
    color: var(--text);
    text-decoration: none;
}
.nav-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.nav-icon svg { display: block; }
body.dashboard .sidebar-nav a[href="dashboard.php"],
body.invoer .sidebar-nav a[href="invoer.php"],
body.facturatie .sidebar-nav a[href="facturatie.php"],
body.statistics .sidebar-nav a[href="statistics.php"],
body.facturen .sidebar-nav a[href="facturen.php"],
body.jaaropgave .sidebar-nav a[href="jaaropgave.php"],
body.instellingen .sidebar-nav a[href="instellingen.php"] {
    background: rgba(185,26,18,0.1);
    border-left-color: var(--accent);
    color: var(--accent);
}
.sidebar-user {
    margin-top: auto;
    padding: 16px 20px 0;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    color: var(--muted);
}
.sidebar-user a { display: block; margin-top: 6px; }

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    padding-bottom: 2rem;
}
body.statistics .main-content { background: #f5f7fa; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 .25rem;
    color: var(--text);
}
.page-header p { margin: 0; color: var(--muted); font-size: .9rem; }
.page-subtitle { font-size: 1rem; margin-top: 0.25rem; }
.dashboard-wrap { max-width: 1200px; margin: 0 auto; }
.dashboard-banner {
    background: #f1f5f9;
    color: var(--accent);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    border: 1px solid rgba(185,26,18,0.15);
}
.dashboard-banner a { color: var(--accent); font-weight: 500; }
.form-inline-dashboard { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.form-inline-dashboard label { margin-bottom: 0.35rem; }
.form-inline-dashboard input:not(.input-readonly) { padding: 0.5rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.input-readonly {
    width: 3rem;
    padding: 0.5rem .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}
.btn-add {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-add:hover { background: var(--accent-hover); }
.kpi-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .kpi-cards { grid-template-columns: repeat(2, 1fr); }
}
/* Eén stijl op dashboard: alle secties als witte kaart (geen card-style meer) */
body.dashboard .table-wrap {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
body.dashboard .table-wrap h2 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--text); }
body.dashboard .table-wrap .data-table { box-shadow: none; background: transparent; }
body.dashboard .dashboard-invoer-block .card,
body.dashboard .dashboard-invoer-block .form-card,
body.dashboard .dashboard-invoer-block .table-wrap { margin-bottom: 1rem; }
.dashboard-invoer-block { margin-bottom: 1.5rem; }

/* ========== CARDS (lichte kaarten, zachte schaduw) ========== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-card); }
.card h2 {
    margin: 0 0 .5rem;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.card .big { margin: 0; font-size: 26px; font-weight: 600; color: var(--text); }

/* ========== TABLES ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table th,
.data-table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.data-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
}
.data-table tbody tr:hover { background: rgba(185,26,18,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.table-wrap { margin-bottom: 1.5rem; }

/* ========== STATUS BADGES (match kleuren) ========== */
.status-badge {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
}
.status-gecontroleerd { background: var(--success); color: #fff; }
.status-pending { background: #e5e5e5; color: var(--muted); }
.status-afwijking { background: var(--error); color: #fff; }
.status-open { background: var(--warning); color: #000; }
.status-gefactureerd { background: var(--muted); color: #fff; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.status-dot-green { background: var(--success); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ========== FORMS ========== */
.form-card {
    background: var(--surface);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.form-card h2 { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.form-card label {
    display: block;
    margin: .75rem 0 .35rem;
    font-size: .9rem;
    color: var(--muted);
}
.form-card input,
.form-card select {
    width: 100%;
    max-width: 320px;
    padding: .65rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
}
.form-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(185,26,18,0.2);
}
.form-card button,
.btn {
    margin-top: 1rem;
    padding: .6rem 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.form-card button:hover,
.btn:hover { background: var(--accent-hover); }
.form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.form-inline.compact { display: inline-flex; margin: 0; gap: .5rem; }
.form-inline input { max-width: 120px; }
.form-inline label { margin-right: .5rem; }

/* ========== INVOER PAGINA – STYLING ========== */
body.invoer .page-header { margin-bottom: 1.25rem; }
body.invoer .form-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.invoer .invoer-datum-card .form-inline {
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}
body.invoer .invoer-datum-form label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
body.invoer .invoer-datum-form input[type="date"] {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    max-width: 160px;
}
body.invoer .invoer-datum-form .btn-primary {
    margin-top: 0;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(185,26,18,0.2);
}
body.invoer .table-wrap {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.invoer .table-wrap h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
body.invoer .table-wrap .muted.small { margin-bottom: 1rem; }
body.invoer .invoer-registraties-section .invoer-goedkeur-hint { margin: 0 0 0.75rem; }
body.invoer .invoer-registraties-section .actie-kolom { min-width: 200px; }
body.invoer .invoer-daily-section .data-table { margin-top: 1rem; }
body.invoer .invoer-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}
body.invoer .invoer-filter-bar label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
body.invoer .invoer-filter-bar input[type="date"],
body.invoer .invoer-filter-bar select {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: var(--surface);
    min-width: 140px;
}
body.invoer .invoer-filter-bar select { max-width: 220px; cursor: pointer; }
body.invoer .invoer-filter-bar input:focus,
body.invoer .invoer-filter-bar select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(185,26,18,0.12);
}
body.invoer .btn-filter {
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.invoer .btn-filter:hover {
    background: var(--bg);
    border-color: var(--muted);
}
body.invoer .form-card button:not(.btn-primary):not(.btn-approve):not(.btn-link),
body.invoer .table-wrap button:not(.btn-approve):not(.btn-link):not(.btn-filter) {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.invoer .form-card button:not(.btn-primary):not(.btn-approve):not(.btn-link):hover,
body.invoer .table-wrap button:not(.btn-approve):not(.btn-link):not(.btn-filter):hover {
    background: var(--bg);
    border-color: var(--muted);
}

/* ========== MESSAGES ========== */
.msg {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .95rem;
}
.msg-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.msg-ok { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.msg-warning { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .8rem; }

/* ========== CHARTS ========== */
.chart-section { margin-bottom: 1.5rem; }
.chart-section h2 { margin-bottom: .5rem; font-size: 1rem; color: var(--text); }
.chart-container { position: relative; max-width: 100%; }

/* Statistics: één stijl voor alle blokken (zoals referentie) */
body.statistics .statistics-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
body.statistics .statistics-block {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
body.statistics .statistics-block:last-child { margin-bottom: 0; }
body.statistics .statistics-block h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--text);
}
body.statistics .statistics-block .muted.small { margin: 0 0 0.75rem; }
body.statistics .statistics-block.table-wrap h2,
body.statistics .statistics-block.table-wrap .muted.small { margin-bottom: 0.5rem; }

/* Alleen chart-cards: vaste hoogte voor grafiekgebied */
body.statistics .statistics-block.chart-card {
    display: flex;
    flex-direction: column;
    height: 340px;
}
body.statistics .statistics-block.chart-card h2,
body.statistics .statistics-block.chart-card .muted.small { flex-shrink: 0; }
body.statistics .statistics-block.chart-card .chart-container {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    width: 100%;
}
body.statistics .statistics-block.chart-card .chart-container canvas { display: block; }
@media (max-width: 1024px) {
    body.statistics .statistics-block.chart-card { height: 280px; }
}
@media (max-width: 640px) {
    body.statistics .statistics-block.chart-card { height: 240px; padding: 1rem; }
    body.statistics .statistics-block.chart-card h2 { font-size: 0.95rem; }
}

/* KPI-grid: elke kaart dezelfde statistics-block stijl */
body.statistics .statistics-cards {
    margin-bottom: 1.5rem;
    gap: 1rem;
}
body.statistics .statistics-cards .statistics-block.card {
    margin-bottom: 0;
}

/* Filters + jaaropgave-knop */
body.statistics .statistics-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-top: 1rem;
}
body.statistics .statistics-filters label { font-size: .9rem; color: var(--muted); }
body.statistics .statistics-filters select {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
body.statistics .statistics-filters button {
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}
body.statistics .statistics-filters .btn-jaaropgave {
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
body.statistics .statistics-filters .btn-jaaropgave:hover { color: #fff; opacity: 0.95; }

/* ========== INSTALL BANNER (PWA, licht) ========== */
.install-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 98;
}
.install-banner p { margin: 0; flex: 1; font-size: .9rem; color: var(--text); }
.install-btn {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin: 0;
}
.install-dismiss {
    background: 0;
    border: 0;
    color: var(--muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
}
.install-banner[hidden] { display: none !important; }

/* ========== MODAL ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-content {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.modal-content h2 { margin: 0 0 .5rem; color: var(--text); }
.modal-content input { width: 100%; padding: .6rem; margin: .5rem 0; }
.modal-content button { margin-right: .5rem; }
.btn-cancel { background: var(--muted); color: #fff; }
.acties-cell { white-space: nowrap; }
.acties-cell a, .acties-cell .btn-link { margin-right: 0.5rem; }
.btn-link.btn-delete { color: var(--error); }
.btn-link.btn-delete:hover { text-decoration: underline; }
.btn-approve {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    background: var(--success);
    color: #fff;
    transition: opacity .15s;
}
.btn-approve:hover { opacity: 0.9; }
.btn-large { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ========== FACTUREN PAGINA – BUTTONS ========== */
body.facturen .factuur-pdf-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
body.facturen .btn-pdf-view {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: background .15s, border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.facturen .btn-pdf-view:hover {
    background: var(--bg);
    border-color: var(--muted);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
body.facturen .btn-pdf-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--accent);
    background: rgba(185, 26, 18, 0.08);
    border: 1px solid rgba(185, 26, 18, 0.2);
    transition: background .15s, border-color .15s, color .15s;
}
body.facturen .btn-pdf-link:hover {
    background: rgba(185, 26, 18, 0.12);
    border-color: var(--accent);
    color: var(--accent-hover);
    text-decoration: none;
}
body.facturen .btn-pdf-download {
    color: var(--muted);
    background: rgba(0,0,0,0.04);
    border-color: var(--border);
}
body.facturen .btn-pdf-download:hover {
    background: rgba(0,0,0,0.07);
    border-color: var(--muted);
    color: var(--text);
}
body.facturen .btn-bookkeeper {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(185, 26, 18, 0.25);
    transition: background .2s, transform .1s, box-shadow .2s;
}
body.facturen .btn-bookkeeper:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 10px rgba(185, 26, 18, 0.3);
}
body.facturen .btn-bookkeeper:active {
    transform: translateY(1px);
}
.btn-mail { font-size: .85rem; padding: .4rem .8rem; }

/* ========== CHECKBOX LABEL ========== */
.checkbox-label { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; cursor: pointer; }
.checkbox-label input { width: auto; max-width: none; margin: 0; }

@media (max-width: 768px) {
    .topbar { display: flex; }
    .sidebar-overlay { display: none; }
    body.sidebar-open .sidebar-overlay { display: block; pointer-events: auto; }
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .main-content {
        margin-left: 0;
        padding-top: 72px;
    }
    .cards { grid-template-columns: 1fr 1fr; }
    .card .big { font-size: 22px; }
}
