/* ==================================================================
   123fact — Complete stylesheet
   Eén consistente design language voor alle pagina's.
   ================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-bg: #2d3748;
    --sidebar-bg-hover: #1a202c;
    --sidebar-bg-active: rgba(0,0,0,0.25);
    --sidebar-text: #cbd5e0;
    --sidebar-text-active: #ffffff;

    --primary: #2196f3;
    --primary-dark: #1976d2;
    --primary-light: #e3f2fd;

    --bg: #f5f6f8;
    --card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f0f1f3;
    --border-strong: #d1d5db;

    --text: #1f2937;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;

    --green: #10b981;
    --green-light: #ecfdf5;
    --red: #ef4444;
    --red-light: #fef2f2;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --yellow: #fbbf24;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    color: var(--sidebar-text);
    padding-bottom: 30px;
}

.sidebar-logo {
    padding: 22px 24px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}
.sidebar-logo .accent { color: var(--primary); }

.btn-maken {
    margin: 4px 16px 8px;
    background: var(--sidebar-bg-hover);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    width: calc(100% - 32px);
    justify-content: space-between;
    user-select: none;
    font-size: 13px;
}
.btn-maken .plus {
    background: var(--primary);
    color: white;
    width: 18px; height: 18px;
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1;
}
.btn-maken .chev {
    opacity: 0.6;
    font-size: 12px;
    transition: transform 0.25s;
}
.btn-maken.open .chev {
    transform: rotate(180deg);
}

.maken-submenu {
    background: rgba(0,0,0,0.2);
    margin: 0 16px 12px;
    border-radius: 6px;
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}
.maken-submenu.open {
    max-height: 400px;
    padding: 4px 0;
}
.maken-submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--sidebar-text);
    font-size: 13px;
}
.maken-submenu li a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    text-decoration: none;
}
.maken-submenu .icon {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.nav-list { list-style: none; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 14px;
}
.nav-item:hover { background: var(--sidebar-bg-hover); text-decoration: none; }
.nav-item.active {
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    font-weight: 600;
}
.nav-item .icon { width: 16px; opacity: 0.8; display: inline-block; text-align: center; }
.nav-item.active .icon { opacity: 1; }

/* Sub-menu (onder Offertes, Instellingen, etc.) */
.sub-menu {
    list-style: none;
    padding: 0;
    margin: 4px 0 8px;
}
.sub-menu li { margin: 0; }
.sub-menu a {
    display: block;
    padding: 7px 24px 7px 50px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    text-decoration: none;
    border-left: 3px solid transparent;
}
.sub-menu a:hover { color: white; }
.sub-menu a.active {
    color: white;
    font-weight: 600;
    border-left-color: var(--primary);
}
.nav-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.nav-badge.orange { background: var(--orange); }

/* ===== MAIN ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    min-width: 0;
}

.topbar {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg);
}

.search-box {
    flex: 1;
    max-width: 360px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 14px;
    font-family: inherit;
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}
.search-box::after {
    content: "🔍";
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    opacity: 0.4; font-size: 13px;
}

.topbar-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 18px;
}
.bell-icon {
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    position: relative;
}
.bell-icon::after {
    content: "";
    position: absolute;
    top: -2px; right: -2px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
}
.bedrijf-switch {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}
.avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.content {
    padding: 0 32px 32px;
    flex: 1;
}

/* ===== PAGE HEADER ===== */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 16px 0 24px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.page-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 16px 0 24px;
}
.page-header h1 {
    margin: 0; flex: 1;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.page-header .ref {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.page-actions .totaal-rechts {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.action-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    font-family: inherit;
}
.action-btn:hover {
    background: #f9fafb;
    text-decoration: none;
    border-color: var(--border-strong);
}
.action-btn .icon {
    font-size: 16px;
    opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.15s;
}
.btn:hover {
    background: #f9fafb;
    border-color: var(--border-strong);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-add {
    color: var(--green);
    background: white;
    border: 1px dashed var(--green);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    text-decoration: none;
}
.btn-add:hover {
    background: var(--green-light);
    text-decoration: none;
    color: var(--green);
}
.btn-add::before {
    content: "+";
    background: var(--green);
    color: white;
    width: 18px; height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* ===== CARDS (consistent overal) ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.card-header .chevron {
    color: var(--text-muted);
    font-size: 12px;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.card.no-padding { padding: 0; }

/* Card grid voor dashboards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ===== TABS (binnen content / overzichten) ===== */
.tabs {
    display: flex;
    gap: 28px;
    margin: 24px 0 0;
    background: white;
    padding: 0 24px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}
.tabs a {
    padding: 16px 0;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    margin-bottom: -1px;
    cursor: pointer;
    text-decoration: none;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.tabs a .count {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* ===== FORM TABS (binnen formulieren - klant aanmaken) ===== */
/* ===== FORM TABS — WeFact stijl ===== */
.form-tabs {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid var(--border);
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}
.form-tabs button,
.form-tabs a {
    background: none;
    border: none;
    padding: 14px 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-family: inherit;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.form-tabs button:hover,
.form-tabs a:hover { color: var(--primary); }
.form-tabs button.active,
.form-tabs a.active {
    color: var(--text);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.form-tab-count {
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-left: 2px;
}
.form-tabs button.active .form-tab-count,
.form-tabs a.active .form-tab-count {
    color: var(--text-muted);
}
.form-tab-pane {
    display: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
}
.form-tab-pane.active { display: block; }

/* ===== FORM ELEMENTS ===== */
.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}
.form-row label {
    color: var(--text);
    font-size: 14px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row input[type="date"],
.form-row select,
.form-row textarea,
input.form-control,
select.form-control,
textarea.form-control {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    width: 100%;
    color: var(--text);
}
/* Custom select met chevron icon */
.form-row select,
select.form-control {
    padding-right: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="none" stroke="%236b7280" stroke-width="1.5" d="M1 1l4 4 4-4"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.form-row input[disabled],
.form-row input[readonly] {
    background: #f9fafb;
    color: var(--text-muted);
}
.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Section title inside forms */
.form-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 16px;
    padding: 0;
}
.form-section-title:first-child { margin-top: 0; }

/* Form 2-column grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Checkbox row */
.form-row-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.form-row-checkbox input[type="checkbox"],
.form-row-checkbox input[type="radio"] {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}
.form-row-checkbox label { cursor: pointer; }

/* Inline groups voor postcode+plaats, aanhef+voornaam+achternaam */
.form-row .input-group {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
}
.form-row .input-group-aanhef {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 8px;
}

/* ===== FORM FOOTER ===== */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.form-footer .checkbox-extra {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}

/* ===== TABLES ===== */
.table-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-wrap.tab-attached {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: none;
}
.table-toptotaal {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light);
    text-align: right;
    color: var(--text-muted);
    font-size: 13px;
    background: white;
}

table.data {
    width: 100%;
    border-collapse: collapse;
}
table.data th {
    text-align: left;
    padding: 14px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    background: white;
    text-transform: none;
    letter-spacing: 0;
}
table.data td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover { background: #fafbfc; }
table.data .num { text-align: right; }
table.data input[type=checkbox] {
    cursor: pointer;
    accent-color: var(--primary);
    width: 16px; height: 16px;
}

.table-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
}

.select-met {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 13px;
    color: var(--text-muted);
    min-width: 200px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
}

/* ===== STATUS BADGES ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.status::before { content: "●"; font-size: 14px; }
.status-concept { color: var(--text-muted); }
.status-wacht { color: var(--primary); }
.status-voldaan { color: var(--green); }
.status-verlopen { color: var(--red); }
.status-herinnering { color: var(--orange); }
.status-aanmaning { color: var(--red); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-eigenaar { background: #fef3c7; color: #92400e; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--green-light); color: #065f46; }
.badge-warning { background: var(--orange-light); color: #92400e; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: var(--green-light); border: 1px solid #a7f3d0; color: #065f46; }
.alert-warning { background: var(--orange-light); border: 1px solid #fde68a; color: #92400e; }
.alert-error { background: var(--red-light); border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: var(--primary-light); border: 1px solid #bfdbfe; color: #1e40af; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}
.empty-state .icon-big {
    font-size: 42px;
    opacity: 0.3;
    margin-bottom: 14px;
    display: block;
}

/* ===== HELP BUTTON ===== */
.help-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    background: var(--green);
    color: white;
    padding: 6px 18px;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 50;
}

/* ===== MEDEWERKERS / KAART GRID ===== */
.medewerker-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}
.medewerker-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #cbd5e0;
    color: white;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.medewerker-card .info { flex: 1; min-width: 0; }
.medewerker-card .naam { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.medewerker-card .email { color: var(--text-muted); font-size: 13px; }
.medewerker-card .badge { margin-top: 6px; }
.medewerker-card .gear { color: var(--text-subtle); cursor: pointer; padding: 4px; }

/* ===== BIJLAGEN TABEL ===== */
.bijlagen-table {
    width: 100%;
    border-collapse: collapse;
}
.bijlagen-table th {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.bijlagen-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.bijlagen-empty {
    padding: 14px 0;
    color: var(--text-muted);
}

/* ===== UTIL ===== */
.muted { color: var(--text-muted); }
.right { text-align: right; }
.center { text-align: center; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* === ADMIN SWITCHER DROPDOWN === */
.admin-switcher {
    position: relative;
}
.admin-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.admin-dropdown.open { display: block; }
.admin-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
}
.admin-dropdown-item:last-child { border-bottom: none; }
.admin-dropdown-item:hover {
    background: #f9fafb;
    text-decoration: none;
}
.admin-dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

/* Klik buiten sluit dropdown */

/* ====== INSTELLINGEN SIDEBAR (16 tabs) ====== */
.instellingen-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
}
.instellingen-sidebar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 20px;
}
.instellingen-tab {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.instellingen-tab:last-child { border-bottom: none; }
.instellingen-tab:hover {
    background: #f9fafb;
    color: var(--primary);
    text-decoration: none;
}
.instellingen-tab.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

/* Instellingen content kolom */
.instellingen-content {
    min-width: 0;
}
.instellingen-content .card {
    padding: 28px 32px;
    margin-bottom: 16px;
}
.instellingen-content .card h2,
.instellingen-content .card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 700;
}

/* Instellingen form rows */
.ins-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
    align-items: center;
    padding: 9px 0;
}
.ins-row > label {
    color: var(--text);
    font-size: 14px;
}
.ins-row .help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 4px;
    cursor: help;
}
.ins-row input[type="text"],
.ins-row input[type="email"],
.ins-row input[type="number"],
.ins-row select {
    max-width: 320px;
}

/* Save button onderaan */
.instellingen-save-bar {
    position: sticky;
    bottom: 16px;
    background: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

@media (max-width: 900px) {
    .instellingen-layout { grid-template-columns: 1fr; }
    .instellingen-sidebar { position: static; }
    .ins-row { grid-template-columns: 1fr; gap: 6px; }
}
