/* --- GLOBAL --- */

body {
    margin: 0;
    background: linear-gradient(135deg, #d7e1ec, #fefefe);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

.hidden {
    display: none !important;
}

.page-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #666;
    margin-top: 0;
}

/* --- GLASS EFFECT --- */

.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.35);
}

/* --- TOPBAR --- */

.topbar {
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #0a74da;
}

.logout-btn {
    background: #0a74da;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #085cb1;
}

/* --- DASHBOARD CARDS --- */

.dashboard {
    padding: 25px;
}

.card-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.card {
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card {
    position: relative;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4d4d;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    display: none; /* default hidden */
}

/* Show badge if value > 0 */
.badge.show {
    display: inline-block;
}


.card .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card h3 {
    margin: 10px 0 6px;
    font-size: 20px;
}

.card p {
    color: #555;
    margin: 0;
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* --- LOADING --- */

#appLoading {
    padding: 50px;
    text-align: center;
    font-size: 20px;
    color: #0a74da;
}

/* AUTH PAGE */

.auth-body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7e1ec, #fefefe);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    text-align: center;
}

.auth-title {
    font-size: 26px;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #555;
    margin-bottom: 24px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
}

.auth-form input:focus {
    border-color: #0a74da;
    box-shadow: 0 0 8px rgba(10,116,218,0.3);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #0a74da;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.auth-btn:hover {
    background: #085cb1;
}

.auth-error {
    margin-top: 12px;
    color: #ff3b3b;
    font-weight: bold;
}

/* COMMAND BAR */
.command-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}


.cmd-btn {
    background: #0a74da;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.cmd-btn:hover {
    background: #085cb1;
}

.cmd-select, .cmd-search {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* GRID */
.data-grid {
    width: 100%;
    border-radius: 12px;
    border-collapse: collapse;
    overflow: hidden;
}

.data-grid th {
    text-align: left;
    padding: 12px;
    background: rgba(255,255,255,0.8);
    font-weight: 600;
}

.data-grid td {
    padding: 12px;
    border-top: 1px solid #eee;
}

.data-grid tr:hover {
    background: rgba(10,116,218,0.08);
    cursor: pointer;
}

/* BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.badge.active { background: #4caf50; color: white; }
.badge.pending { background: #ff9800; color: white; }
.badge.disabled { background: #9e9e9e; color: white; }

/* PANEL */
#detailPanel {
    padding-bottom: 70px; /* ruimte voor footer */
}

.tab-content {
    padding: 24px;
}
.detail-panel {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    height: 100%;
    background: var(--glass-bg, rgba(255,255,255,0.15));
    backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255,255,255,0.2);
    box-shadow: -6px 0 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    z-index: 9999;
}

.detail-panel.open {
    right: 0;
}

/* HEADER */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-icon {
    font-size: 28px;
    opacity: 0.9;
}

.header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.detail-subtitle {
    font-size: 13px;
    opacity: 0.75;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.35);
}

.header-btn.close {
    background: rgba(255,60,60,0.25);
    border-color: rgba(255,60,60,0.45);
}

.header-btn.close:hover {
    background: rgba(255,60,60,0.35);
}

/* ===========================
   ROLE & PERMISSIONS LIST
   =========================== */
/* ================================
   PERMISSION GROUPS (Sections)
   ================================ */

.perm-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    margin-top: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.perm-group-header:hover {
    background: rgba(255,255,255,0.18);
}

.group-icon {
    font-size: 18px;
}

.group-title {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.group-toggle {
    font-size: 14px;
    opacity: 0.8;
}

.perm-group-content {
    margin: 6px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.perm-group-content.collapsed {
    height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}

.permission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
}

.permission-item .perm-icon {
    width: 22px;
    font-size: 16px;
    opacity: 0.9;
}

.permission-item .perm-name {
    font-size: 14px;
    flex: 1;
}

.permission-item.allowed {
    border-left: 3px solid #4caf50;
}

.permission-item.denied {
    border-left: 3px solid #f44336;
    opacity: 0.7;
}



/* TABS */
.tabs {
    display: flex;
    padding: 12px 12px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.tab {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
}

.tab.active {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* CONTENT */
.tab-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* FORM GRID */
/* --- FORM SECTIONS --- */
.form-section {
    margin-bottom: 24px;
}

.form-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

/* --- GRID LAYOUT --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: span 2;
}

/* --- LABELS --- */
.form-field label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

/* --- INPUTS / SELECTS --- */
.form-field input,
.form-field select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #222;
    font-size: 14px;
    transition: 0.2s border, 0.2s background;
}

.form-field input::placeholder {
    color: rgba(0,0,0,0.45);
}

.form-field input:focus,
.form-field select:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.22);
    outline: none;
}

/* ===============================
   LOCKED FIELD COMPONENT
   Reusable for all read-only fields
   =============================== */

.locked-field {
    position: relative;
    display: flex;
    align-items: center;
}

.locked-field .lock-icon {
    position: absolute;
    left: 10px;
    font-size: 16px;
    opacity: 0.8;
    pointer-events: none;
}

/* Works with input, select, textarea */
.locked-field input[disabled],
.locked-field select[disabled],
.locked-field textarea[disabled] {
    padding-left: 34px;
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
    cursor: not-allowed;
}

.locked-field input[disabled]::placeholder,
.locked-field textarea[disabled]::placeholder {
    color: rgba(255,255,255,0.45);
}

.locked-field .lock-icon:hover::after {
    content: "Dit veld is beveiligd (read-only)";
    position: absolute;
    left: 25px;
    top: -4px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

#tab-login input[disabled] {
    opacity: 0.85;
}

#tab-login .form-field label {
    opacity: 0.9;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.form-grid label {
    grid-column: span 2;
    font-weight: 500;
    opacity: 0.8;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.2);
}

/* FOOTER */
.detail-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    padding: 20px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.metric:hover {
    transform: translateY(-3px);
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.metric-label {
    opacity: 0.7;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(35,35,35,0.85);
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.25s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}
.checkbox-row input {
    width: 18px;
    height: 18px;
}

.loading {
    position: fixed;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================
   MODAL OVERLAY
=============================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

/* ===============================
   MODAL WINDOW
=============================== */
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Varianten */
.modal-content.small {
    max-width: 360px;
}

/* ===============================
   MODAL FORM
=============================== */
.modal-content label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.modal-content input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
}

/* ===============================
   MODAL ACTIONS
=============================== */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


.badge.red {
    background: #ffd5d5;
    color: #b80000;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.pending-row td {
    background: #fff4f4 !important;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.subtabs {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.subtab {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: #222;
    transition: 0.2s;
}

.subtab.active {
    background: rgba(255,255,255,0.25);
    font-weight: bold;
}

.subtab-content {
    margin-top: 15px;
}

.ervaring-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ervaring-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    background: rgba(0,0,0,0.06);
    transition: 0.2s;
}

.ervaring-item.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* ============================
   ROOSTERVRIJ UI ENHANCEMENTS
============================ */

#tab-roostervrij .glass.card {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: 0.25s box-shadow;
}

#tab-roostervrij .glass.card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

#tab-roostervrij h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#tab-roostervrij .form-section h4 {
    margin-bottom: 12px;
    font-size: 15px;
    opacity: 0.7;
}

#tab-roostervrij .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

#tab-roostervrij .form-field select,
#tab-roostervrij .form-field input {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

#tab-roostervrij .form-field select:focus,
#tab-roostervrij .form-field input:focus {
    background: rgba(255,255,255,0.32);
    border-color: rgba(10,116,218,0.45);
    box-shadow: 0 0 6px rgba(10,116,218,0.25);
}

#tab-roostervrij label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

#tab-roostervrij .cmd-btn.primary {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

/* ============================
   ROOSTERVRIJ INFO BANNER
============================ */
.rv-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.38);
    backdrop-filter: blur(10px);
}

.rv-info-icon {
    font-size: 20px;
    opacity: 0.7;
}

.rv-info-text {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
}

.rv-highlight {
    margin-top: 15px;
    padding: 10px 14px;
    background: rgba(255, 180, 180, 0.35);
    border-left: 4px solid #ff4d4d;
    border-radius: 8px;
    color: #b80000;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.rv-cycle {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rv-cycle-week {
    display: flex;
    gap: 6px;
    align-items: center;
}

.rv-cycle-label {
    width: 80px;
    font-weight: bold;
    opacity: 0.8;
}

.rv-day {
    padding: 4px 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 6px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.35);
}

.rv-day.free {
    background: #ffd5d5;
    color: #b80000;
    border-color: #ff9999;
    font-weight: bold;
}

.rv-conflict {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 220, 120, 0.35);
    border-left: 4px solid #ff9800;
    color: #8a5a00;
    font-size: 14px;
}

.rv-contract {
    margin-top: 20px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

/* -------------------------
   VERLOF TOOLBAR
------------------------- */
.verlof-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 12px;
}

.verlof-toolbar button {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.15s;
}

.verlof-toolbar button:hover {
    background: #27ae60;
}


/* -------------------------
   VERLOF CARDS
------------------------- */
.verlof-card {
    background: #ffffffaa;
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px #00000015;
    transition: 0.15s ease;
}

.verlof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px #00000020;
}

.verlof-card-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

.verlof-badge {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.verlof-badge.vakantie {
    background: #e0f2ff;
    color: #0369a1;
}

.verlof-badge.comp {
    background: #ede9fe;
    color: #5b21b6;
}

.verlof-hours {
    margin-left: 8px;
    font-size: 12px;
    opacity: .7;
}


.note {
    font-size: 13px;
    background: #f9f9f9;
    border-left: 3px solid #3498db;
    padding: 6px 8px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.verlof-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    background: #3498db;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-small.danger {
    background: #e74c3c;
}

.btn-small.danger:hover {
    background: #c0392b;
}

/* -------------------------
   MODAL
------------------------- */
/* --- HEADER --- */
.verlof-saldo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.verlof-saldo-header .saldo-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- SALDO BARS --- */
.saldo-bars {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.saldo-bar {
    flex: 1;
}

.saldo-bar span {
    font-weight: 600;
}

.bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: #4ade80; /* testkleur */
    transition: width 0.3s ease;
}

.saldo-text {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- COLORS (Mode A) --- */
.bar-fill.green { background: #41c15c; }
.bar-fill.orange { background: #ffae42; }
.bar-fill.red { background: #e64747; }

/* --- MODAL --- */
.modal.small .modal-content {
    width: 330px;
}

.verlof-uitleg {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.verlof-uitleg .muted {
    opacity: 0.7;
    margin-left: 4px;
}

.feestdag-tags {
    margin-top: 4px;
}

.feestdag-tag {
    display: inline-block;
    font-size: 11px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 4px;
}

.unsaved {
    color: #f59e0b;
    font-size: 11px;
    margin-left: 6px;
}

/* ==============================
   ZIEKTE – HEADER & STATUS
============================== */

.subtle-count {
    font-size: 13px;
    color: #6b7280;
    margin-left: 6px;
}

.status-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdecea;
    color: #b42318;
    margin-right: 8px;
    white-space: nowrap;
}

/* ==============================
   ZIEKTE – CARD
============================== */

.ziekte-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}

.ziekte-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ziekte-datum {
    font-size: 14px;
    font-weight: 500;
}

.ziekte-meta {
    font-size: 13px;
    color: #6b7280;
}

.ziekte-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    border: none;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(0,0,0,0.08);
}

.icon-btn.danger:hover {
    background: rgba(220,38,38,0.15);
}

/* ==============================
   ZIEKTE – EMPTY STATE
============================== */

.ziekte-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.ziekte-empty .emoji {
    font-size: 32px;
    margin-bottom: 10px;
}

.ziekte-empty .title {
    font-weight: 500;
    margin-bottom: 6px;
}

.ziekte-card.afgesloten {
    opacity: 0.55;
}

.ziekte-card.afgesloten .ziekte-datum strong {
    color: #6b7280;
}

button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.split-view {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    height: calc(100vh - 120px);
}

.list-pane,
.detail-pane {
    padding: 16px;
    overflow-y: auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.list-item:hover {
    background: rgba(255,255,255,0.08);
}

.list-item.active {
    background: rgba(255,255,255,0.15);
}

.kleur-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-main {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.list-main small {
    opacity: 0.6;
    font-size: 12px;
}

.empty-state {
    opacity: 0.6;
    padding: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 12px;
    opacity: 0.6;
    display: block;
    margin-bottom: 4px;
}

.readonly {
    padding: 6px 0;
    font-weight: 500;
}

.kleur-preview {
    width: 32px;
    height: 16px;
    border-radius: 4px;
}

.linked-section {
    margin-top: 16px;
}

.linked-section h4 {
    margin-bottom: 8px;
}

.linked-empty {
    opacity: 0.6;
    font-style: italic;
    padding: 8px 0;
}

.cyclus-only.hidden {
    display: none;
}

.schema-row {
    display: grid;
    grid-template-columns:
        90px        /* dag */
        130px       /* type */
        70px        /* cyclus */
        70px        /* week */
        150px       /* geldig_van */
        40px;       /* delete */
    gap: 8px;

    padding: 12px;
    margin-bottom: 12px;

    border-radius: 12px;
    border-left: 4px solid #ccc;
    background: var(--glass-bg);
    align-items: center;
}

/* minder schreeuwerige inputs */
.schema-row select,
.schema-row input {
    font-size: 13px;
    padding: 6px;
}

/* delete knop duidelijk maar klein */
.schema-row .icon-btn {
    justify-self: end;
}

/* preview onder de kaart */
.schema-row .schema-preview {
    grid-column: 1 / -1;
    margin-top: 8px;
}


.schema-preview-day {
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    background: #eee;
    color: #888;
}

.schema-preview-day.active {
    background: #4caf50;
    color: white;
    font-weight: bold;
}

.schema-row[data-type="wekelijks"] {
    border-left-color: #4caf50; /* groen */
}

.schema-row[data-type="even"],
.schema-row[data-type="oneven"] {
    border-left-color: #2196f3; /* blauw */
}

.schema-row[data-type="cyclus"] {
    border-left-color: #ff9800; /* oranje */
}

.schema-title {
    grid-column: 1 / -1;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.schema-row::before {
    content: "Schema";
    font-size: 11px;
    color: #888;
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.wagentype-row::before {
    content: "Wagen";
    font-size: 11px;
    color: #888;
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.schema-preview-4w {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.schema-preview-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.schema-preview-day {
    height: 6px;
    background: #ddd;
    border-radius: 2px;
}

.schema-preview-day.active {
    background: #4caf50;
}

.route-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.route-card h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    align-items: center;
}

.form-grid label {
    color: #555;
    font-size: 13px;
}

.form-grid input,
.form-grid select {
    background: #f6f6f6;
    border-radius: 6px;
    padding: 6px 8px;
    border: none;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.route-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.route-card h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    align-items: center;
}

.form-grid label {
    font-size: 13px;
    color: #555;
}

.form-grid input,
.form-grid select {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 8px;
    border: none;
}

.route-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    width: fit-content;
}

.route-status.active {
    background: #1f8f4a;
    color: white;
}

.route-status.inactive {
    background: #aaa;
    color: white;
}

.year-list {
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
}

.year-row {
    padding: 4px 0;
    border-bottom: 1px dashed #ddd;
}

.group-box {
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.group-box h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

.group-box.subtle {
  opacity: 0.9;
}

.form-row {
  margin-bottom: 10px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.route-card-schemas {
    border-left: 4px solid #4f8cff;
}

.route-card .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.route-card.subtle {
    background: #f7f9fc;
}

.route-day-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 14px;
    margin-bottom: 8px;

    background: white;
    border-radius: 10px;

    /* zelfde accent als schema */
    border-left: 4px solid #ff9800;
}

.route-day-title {
    font-weight: 500;
}

.route-day-sub {
    font-size: 12px;
    margin-top: 2px;
}

.route-day-actions .btn {
    white-space: nowrap;
}

.schema-select select {
    height: 30px;
    border-radius: 6px;
    padding: 0 8px;
    background: white;
}

.route-list-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.6);

    border-left: 4px solid transparent;
}

.route-list-item:hover {
    background: rgba(255,255,255,0.9);
}

.route-list-item.active {
    border-left-color: #4f8cff;
    background: white;
}

.route-list-title {
    font-weight: 500;
}

.route-list-sub {
    font-size: 12px;
    margin-top: 2px;
}

.route-list-item.inactive {
    opacity: 0.5;
}

.route-day-card.skipped {
    opacity: 0.6;
    border-left-color: #e53935;
}

.route-day-card.skipped .route-day-title {
    text-decoration: line-through;
}

.route-day-card.feestdag {
    border-left-color: #fbc02d;
}

.feestdag-badge {
    display: inline-block;
    background: #fff3cd;
    color: #8a6d3b;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.text-danger {
    color: #d32f2f;
}

.has-alert::after {
    content: " ⚠️";
    color: #f9a825;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-card {
    background: white;
    padding: 18px;
    border-radius: 14px;
    width: 360px;
}

.modal-card .field {
    margin-bottom: 12px;
}

.modal-card .actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.routes-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.routes-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.routes-title {
    font-weight: 600;
    font-size: 15px;
}

.btn.icon {
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
}

.route-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
}

.route-tabs .tab {
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
}

.route-tabs .tab.active {
    border-bottom-color: #f39c12;
    color: #222;
    font-weight: 600;
}

.btn.warning.move {
    background: #e3f2fd;
    border-color: #64b5f6;
    color: #0d47a1;
}

.btn.warning {
    background: #fff3cd;
    border: 1px solid #fbc02d;
    color: #8a6d3b;
}

.fractie-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.75;
}

.route-list-item:hover .fractie-icon {
    opacity: 1;
}

.schema-card {
    padding: 12px;
    margin-bottom: 12px;
}

.schema-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schema-type {
    font-size: 12px;
    color: #666;
}

.schema-meta {
    font-size: 12px;
    margin: 6px 0;
    color: #777;
}

.weekday-row,
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.month-day {
    height: 28px;
    font-size: 12px;
    text-align: center;
    line-height: 28px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #999;
}

.month-day.active {
    background: #4caf50;
    color: #fff;
    font-weight: 600;
}

.planboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}

.planboard-views {
    display: flex;
    gap: 6px;
}

.view-tab {
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(0,0,0,.1);
    cursor: pointer;
}
.view-tab.active {
    background: #e8f2ff;
    color: #1677ff;
}

.week-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: #e8f2ff;
    color: #1677ff;
    border: 1px solid rgba(0,0,0,.1);
    cursor: pointer;
}

.planboard-weeknav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.planboard-actions {
    display: flex;
    gap: 8px;
}

.hah-day {
    display: grid;
    grid-template-rows:
        var(--planboard-header-height)
        repeat(var(--staff-count), var(--planboard-row-height));
}

.hah-day-body {
    display: grid;
    grid-auto-rows: var(--planboard-row-height);
}

.hah-day-header {
    height: var(--planboard-header-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.staff-header {
    height: var(--planboard-header-height);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.planboard-body {
    height: calc(100vh - 220px); /* mag je finetunen */
}

.planboard-split {
    display: flex;
    flex-direction: row;   /* 🔑 dit is cruciaal */
    grid-template-columns: staff | week | basket;
    width: 100%;
    height: 100%;
}

.planboard-week {
    background: rgba(255,255,255,0.55);
    height: 100%;
    flex: 1;
    min-width: 0;
    overflow: auto;
    display: block;
}

.planboard-staff {
    background: rgba(255,255,255,0.55);
    display: grid;
    width: 240px;
    height: 100%;
    overflow: auto;
    grid-auto-rows: var(--planboard-row-height);
}

.hah-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* Gedeelde rijhoogte */
:root {
    --planboard-header-height: 44px;
    --planboard-row-height: 44px;
}

/* Medewerker-rij */
.staff-row {
    height: var(--planboard-row-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.planboard-basket {
    background: rgba(255,255,255,0.55);
    width: 260px;
    border-left: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px;
    overflow-y: auto;
}

.basket-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.basket-day {
    margin-bottom: 12px;
}

.basket-day h4 {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 8px 0 4px;
}

.basket-route {
    background: white;
    border: 1px dashed #c7d2fe;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    margin-bottom: 4px;
    color: #1e3a8a;
}

.basket-route-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
}

.placing-route .basket-route {
    opacity: 0.6;
}

.placing-route .hah-cell:hover {
    outline: 2px dashed #6366f1;
    cursor: pointer;
}

.hah-cell {
    height: var(--planboard-row-height);

    /* VISUEEL */
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.04);

    background: rgba(255,255,255,0.35);
}

.hah-cell:last-child {
    border-bottom: none;
}

.hah-cell:hover {
    background: rgba(10,116,218,0.08);
}

.hah-cell-empty {
    position: relative;
    cursor: pointer;
    background: rgba(255,255,255,0.35);
}

.hah-cell-empty:hover {
    background: rgba(10,116,218,0.06);
    outline: 1px dashed rgba(10,116,218,0.25);
}

.hah-cell:not(.hah-cell-empty) {
    background: rgba(37,99,235,0.06);
}

/* PLUS standaard onzichtbaar */
.cell-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 22px;
    font-weight: 400;
    color: rgba(0,0,0,0.4);

    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

/* PLUS verschijnt alleen bij hover */
.hah-cell-empty:hover .cell-plus {
    opacity: 1;
}

.routes-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.routes-title {
    font-size: 16px;
    font-weight: 600;
}

#addRouteDate {
    font-size: 13px;
    opacity: 0.65;
}

.route-chip {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    background: #2563eb;
    color: white;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.route-badge {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.75;
}

#gisWrapper {
    display: flex;
    height: calc(100vh - 100px);
}

#map {
    position: relative;
    flex: 1;
}

#gisSidebar {
    width: 360px;
    background: #fff;
    border-left: 1px solid #ddd;
    overflow-y: auto;
}

.gis-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    z-index: 1500;
    padding: 12px;
    overflow-y: auto;
}

.gis-sidebar h3 {
    margin-top: 0;
    font-size: 16px;
}

.gis-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gis-sidebar li {
    padding: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.gis-sidebar li:hover {
    background: #f1f5f9;
}

.gis-sidebar li.active {
    background: #e0e7ff;
    font-weight: bold;
}


.gis-controls {
    position: absolute;
    top: 12px;
    right: 12px;          /* 👈 naar rechts */
    left: auto;           /* 👈 links uitschakelen */
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    gap: 10px;
    align-items: center;
}

.gis-controls label {
    font-size: 13px;
    white-space: nowrap;
}

.gis-control {
    position: absolute;
    top: 140px;
    right: 16px;
    width: 240px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 2100;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.gis-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.gis-control-header button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.gis-filter-active {
    font-weight: 600;
    background: #e0ecff;
    border-radius: 6px;
    padding: 4px 8px;
}

.gis-reset-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.gis-reset-btn:hover {
    background: #e5e7eb;
}

.gis-control-body {
    padding: 8px;
}

.gis-gemeente-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
}

.gis-gemeente-item:hover {
    background: #f1f5f9;
}

.gis-gemeente-item.active {
    background: #e0ecff;
    font-weight: 600;
    border-left: 4px solid #2563eb;
}

.gis-filter-block {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.gis-filter-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.gis-filter-block label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}


.container-marker {
    background: none !important;
    border: none !important;
}

.container-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fractie-kleur);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    border: 2px solid #fff;
}

.container-info {
    position: absolute;
    top: 80px;
    left: 80px;
    width: 340px;
    max-height: 70%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.container-info::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #1d4ed8;
}

.container-info.hidden {
    display: none;
}

.info-header {
    background: #1d4ed8;
    color: #fff;
    padding: 8px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move; /* voor draggable */
}

.info-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.info-body {
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
}

/* ===== STATUS ===== */

.status-actief {
    border: 2px solid #fff;
}

.status-vol {
    border: 3px solid #dc2626; /* rood */
}

.status-storing {
    border: 3px solid #f59e0b; /* oranje */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

.container-marker.selected .container-icon {
    transform: scale(1.2);
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.9),
        0 0 12px 6px rgba(59,130,246,0.6);
    z-index: 999;
}

.abs-week {
    display: flex;
    gap: 16px;
}

.abs-day {
    min-width: 220px;
}

.abs-station {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
}

.abs-station-header {
    font-weight: 600;
    margin-bottom: 6px;
}

.abs-day-stations {
    padding: 6px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 6px;
}

.abs-station-block {
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 6px;
}

.abs-station-title {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.abs-time {
    font-weight: 400;
    color: #6b7280;
}

.abs-slots {
    display: flex;
    gap: 4px;
}

.abs-slot {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abs-slot.empty {
    background: #e5e7eb;
}

.abs-slot.filled {
    background: #c7d2fe;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    width: 42px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.switch input:checked + .slider {
    background: #6366f1;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.hah-day.is-today .hah-day-header {
    font-weight: 600;
    color: #0369a1;
}

.badge2 {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge2.warning {
    background: #fff3cd;
    color: #856404;
}

.badge2.blue {
    background: #e0f0ff;
    color: #0b5ed7;
}

.badge2.green {
    background: #d1f7dc;
    color: #198754;
}

.badge2.red {
    background: #fde2e2;
    color: #dc3545;
}

.detail-img {
    max-width: 300px;
    border-radius: 8px;
    margin: 10px;
}

.media-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-grid div {
    background: #f8f9fb;
    padding: 12px;
    border-radius: 8px;
}

.row-new {
    background: rgba(255, 90, 90, 0.08);
}

.afkeur-stats {
    display:flex;
    gap:16px;
    margin-bottom:15px;
}

.stat {
    padding:10px 16px;
    border-radius:10px;
}

.stat span {
    font-size:20px;
    font-weight:bold;
}

.image-viewer {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.8);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.image-viewer img {
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.hidden {
    display:none;
}

.adres-problemen{
    margin-top:10px;
    font-weight:600;
}

.adres-historie{
    margin-top:20px;
}

.adres-historie-list{
    margin-top:8px;
    padding-left:18px;
}

.adres-historie-list li{
    margin-bottom:4px;
}
