/* ==================== VARIABLES ==================== */
:root {
    --primary: #0e6eb8;
    --primary-dark: #0a5490;
    --primary-light: #dbeafe;
    --accent: #2db84b;
    --accent-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --sidebar-bg: #0a1628;
    --sidebar-text: #94c5e8;
    --sidebar-active: #0e6eb8;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --transition: 150ms ease;
    --sidebar-width: 260px;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ==================== LOGIN ==================== */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #071428 0%, #0e3a6b 60%, #0a5e2a 100%);
    padding: 20px;
}
.login-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo .logo-icon {
    font-size: 48px;
    color: var(--primary);
}
.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}
.login-logo p {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 4px;
}
.login-form .form-group { margin-bottom: 16px; }
.login-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-error {
    background: var(--error-light);
    color: var(--error);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-top: 12px;
}

/* ==================== APP SHELL ==================== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 12px;
}
.sidebar-header .logo-icon {
    font-size: 28px;
    color: var(--primary);
}
.sidebar-title {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.admin-selector {
    padding: 0 16px 12px;
}
.admin-selector label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}
.admin-selector select {
    width: 100%;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
}
.admin-selector select option { color: var(--text); background: var(--bg-white); }

.sidebar-nav {
    flex: 1;
    padding: 4px 8px;
}
.nav-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 12px 4px;
    font-weight: 600;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 400;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 500;
}
.nav-item .material-icons-outlined { font-size: 20px; }
.nav-item.nav-sub { padding-left: 44px; font-size: 13px; }
.nav-item.nav-sub .material-icons-outlined { font-size: 16px; }

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sidebar-text);
    min-width: 0;
}
.user-info span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== MOBILE HEADER ==================== */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 52px;
}
.mobile-title { font-weight: 600; font-size: 16px; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: 100vh;
}
.content-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.content-loading .material-icons-outlined { font-size: 36px; color: var(--primary); margin-bottom: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}
.subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}
.page-actions {
    display: flex;
    gap: 8px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.btn .material-icons-outlined { font-size: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #047857; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg); }
.btn-full { width: 100%; justify-content: center; padding: 10px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-sm .material-icons-outlined { font-size: 16px; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg); color: var(--text); }
.sidebar-footer .btn-icon { color: var(--sidebar-text); }
.sidebar-footer .btn-icon:hover { color: #fff; background: rgba(255,255,255,0.1); }
.mobile-header .btn-icon { color: #fff; }
.btn-danger-icon:hover { color: var(--error); }

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--border);
}
.stat-card.primary { border-left-color: var(--primary); }
.stat-card.accent { border-left-color: var(--accent); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.error { border-left-color: var(--error); }
.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}
.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== CHARTS ==================== */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.bar-chart {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 180px;
    padding: 8px 0;
}
.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.bar-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}
.bar {
    border-radius: 3px 3px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}
.bar.omzet { background: var(--primary); }
.bar.kosten { background: var(--error); }
.chart-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ==================== TABLES ==================== */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--primary-light); }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 16px !important;
    font-style: italic;
}
.table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.amount { font-variant-numeric: tabular-nums; }
.negative { color: var(--error); }
.positive { color: var(--accent); }

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar select,
.filter-bar input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    background: var(--bg-white);
}
.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-default { background: #f1f5f9; color: #475569; }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-success { background: var(--accent-light); color: var(--accent); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-error { background: var(--error-light); color: var(--error); }

/* ==================== FORMS ==================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 60px; }
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.form-actions.full { grid-column: 1 / -1; }

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal {
    background: var(--bg-white);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.modal.modal-wide { max-width: 780px; }
.modal.modal-pdf { max-width: 1100px; width: 95vw; }
.modal.modal-fullscreen {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header h2 {
    font-size: 17px;
    font-weight: 600;
}
.modal-close { color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ==================== TABS ==================== */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
}
.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== DETAIL GRID ==================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 13px;
}
.detail-grid strong { color: var(--text-light); font-weight: 500; }
.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ==================== FACTUUR REGEL EDITOR ==================== */
.factuur-regels-header {
    display: grid;
    grid-template-columns: 130px 1fr 60px 80px 60px 120px 130px 90px 36px;
    gap: 5px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
}
.factuur-regel-row {
    display: grid;
    grid-template-columns: 130px 1fr 60px 80px 60px 120px 130px 90px 36px;
    gap: 6px;
    padding: 6px 0;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.factuur-regel-row select,
.factuur-regel-row input {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    width: 100%;
}
.factuur-regel-row select:focus,
.factuur-regel-row input:focus {
    outline: none;
    border-color: var(--primary);
}
.fr-subtotaal {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==================== FACTUUR TOTALEN ==================== */
.factuur-totalen {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.totaal-row {
    display: flex;
    gap: 40px;
    font-size: 13px;
    min-width: 240px;
    justify-content: space-between;
}
.totaal-row span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.totaal-groot {
    font-weight: 700 !important;
    font-size: 15px;
    border-top: 2px solid var(--text);
    padding-top: 6px;
    margin-top: 4px;
}
.totaal-groot span:last-child { font-weight: 700; }

/* ==================== NOTITIES ==================== */
.notitie-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.notitie-item:last-child { border-bottom: none; }
.notitie-item p { margin-bottom: 4px; font-size: 13px; }

/* ==================== BTW TABLE ==================== */
.btw-table { width: 100%; }
.btw-table td { padding: 10px 16px; }
.btw-row-header td {
    font-weight: 700;
    background: var(--bg);
    font-size: 13px;
}
.btw-row-total td {
    font-weight: 700;
    font-size: 15px;
    border-top: 2px solid var(--text);
    background: #f8fafc;
}

/* ==================== TOASTS ==================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .material-icons-outlined { font-size: 20px; }
.toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.toast-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.toast-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-header { display: flex; }
    .main-content {
        margin-left: 0;
        padding: 68px 12px 20px;
    }
    .page-header { flex-direction: column; }
    .page-header h1 { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-value { font-size: 18px; }
    .chart-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .modal { border-radius: 8px; }
    .modal.modal-fullscreen { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; border-radius: 0; }
    .factuur-regels-header { display: none; }
    .factuur-regel-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .factuur-regel-row select:first-child,
    .factuur-regel-row .fr-omschrijving { grid-column: 1 / -1; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar input[type="text"] { max-width: none !important; }
    .toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { max-width: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
}

/* ==================== JAARREKENING ==================== */
.jc-page { max-width: 800px; }
.jc-cover { text-align: center; padding: 60px 20px; }
.jc-cover h1 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.jc-cover h2 { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 24px; }
.jc-cover-details { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.jc-toc { text-align: left; margin-top: 40px; background: var(--bg-light); border-radius: 8px; padding: 24px 32px; display: inline-block; }
.jc-toc h3 { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.jc-toc ul { list-style: none; padding: 0; margin: 0; }
.jc-toc li { padding: 6px 0; color: var(--text-light); font-size: 14px; border-bottom: 1px dotted var(--border); }
.jc-toc li:last-child { border-bottom: none; }
.jc-section-title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.jc-subtitle { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.jc-group-title { font-size: 15px; font-weight: 600; color: var(--primary); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.jc-table { width: 100%; }
.jc-table th, .jc-table td { padding: 6px 12px; font-size: 13px; }
.jc-table th { font-weight: 600; border-bottom: 2px solid var(--border); }
.jc-table td:nth-child(2), .jc-table td:nth-child(3),
.jc-table th:nth-child(2), .jc-table th:nth-child(3) { width: 140px; }
.jc-cat-header td { padding-top: 14px !important; background: transparent !important; }
tr.jc-line td { padding: 0; border-bottom: 1px solid var(--border); height: 1px; }
.jc-text-page h4 { font-size: 14px; font-weight: 600; margin: 20px 0 6px; color: var(--text); }
.jc-text-page h4:first-child { margin-top: 0; }
.jc-text-page p { font-size: 13px; line-height: 1.7; color: var(--text-light); margin-bottom: 8px; }

/* ==================== PRINT ==================== */
@media print {
    .sidebar, .mobile-header, .sidebar-overlay, .modal-overlay, .toast-container,
    .page-actions, .filter-bar, .btn, .table-actions, .form-actions, .detail-tabs { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .stat-card { box-shadow: none; border: 1px solid #ddd; }
    body { background: #fff; }
    .jc-page { break-after: page; }
}

/* Template variable buttons */
.tpl-var { padding:3px 6px; margin:1px 0; border-radius:4px; cursor:pointer; font-family:monospace; font-size:11px; color:var(--primary); transition:background .1s; }
.tpl-var:hover { background:var(--primary-light); }

/* Huisstijl overview list items */
.huisstijl-list-item { padding:10px 16px; border-bottom:1px solid var(--border); cursor:pointer; font-size:14px; color:var(--primary); transition:background .1s; }
.huisstijl-list-item:last-child { border-bottom:none; }
.huisstijl-list-item:hover { background:var(--primary-light); }
