/* ========================================
   CSS VARIABLES - THEME SYSTEM
   ======================================== */

:root {
    /* Light Theme (default values for CSS fallback) */
    --bg-body: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f8f9fa;
    --bg-surface-hover: #f0f0f0;

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #888888;

    --border-color: #e0e0e0;
    --border-color-light: #f0f0f0;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);

    /* Brand colors - clean, modern look */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #48bb78;

    /* Navbar - solid dark */
    --navbar-bg: #1e293b;
    --navbar-bg-dark: #0f172a;

    /* Status colors */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-color: #28a745;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --warning-color: #ffc107;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-color: #dc3545;

    /* Platform colors - stay fixed */
    --platform-bol: #0000ff;
    --platform-revma: #9370db;
    --platform-amazon: #ff9900;
    --platform-website: #dc3545;
    --platform-marktplaats: #ff69b4;
    --platform-kaufland: #ffffff;

    /* Input styles */
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-focus-border: #667eea;

    /* Skeleton loading */
    --skeleton-base: #f0f0f0;
    --skeleton-shine: #e0e0e0;

    /* Scrollbar */
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #c1c1c1;
    --scrollbar-thumb-hover: #a1a1a1;

    /* Modal overlay */
    --overlay-bg: rgba(0, 0, 0, 0.7);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0f1419;
    --bg-surface: #1a1f2e;
    --bg-surface-secondary: #242938;
    --bg-surface-hover: #2d3343;

    --text-primary: #e7e9ea;
    --text-secondary: #9ba3af;
    --text-muted: #6b7280;

    --border-color: #2d3343;
    --border-color-light: #242938;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

    /* Navbar - even darker in dark mode */
    --navbar-bg: #0f172a;
    --navbar-bg-dark: #020617;

    /* Status colors - adjusted for dark mode */
    --success-bg: rgba(40, 167, 69, 0.2);
    --success-text: #75d99a;
    --warning-bg: rgba(255, 193, 7, 0.2);
    --warning-text: #ffd666;
    --error-bg: rgba(220, 53, 69, 0.2);
    --error-text: #ff8a8a;

    /* Input styles */
    --input-bg: #242938;
    --input-border: #2d3343;

    /* Skeleton loading */
    --skeleton-base: #242938;
    --skeleton-shine: #2d3343;

    /* Scrollbar */
    --scrollbar-track: #1a1f2e;
    --scrollbar-thumb: #3d4556;
    --scrollbar-thumb-hover: #4d5566;

    /* Modal overlay */
    --overlay-bg: rgba(0, 0, 0, 0.85);
}

/* ========================================
   RESET AND BASE STYLES
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Prevent body scroll on pages with full-height layouts (desktop only) */
@media (min-width: 769px) {
    body:has(.cases-layout),
    body:has(.combinaties-layout),
    body:has(.voorraad-page),
    body.ads-list-active {
        overflow: hidden;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-color);
}

.login-box {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 350px;
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 32px;
}

.login-box p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color var(--transition-normal);
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.login-box input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-box button:hover {
    transform: translateY(-2px);
}

.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--error-color);
}

/* Navbar Styles */
.navbar {
    background: var(--navbar-bg);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
}

.navbar-brand {
    text-decoration: none;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
    height: 100%;
}

.navbar-logout {
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
}

.navbar-menu li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-menu > li.active > a {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-logout a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.15s;
}

.navbar-logout a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.15s;
    margin-left: auto;
    margin-right: 8px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Navbar Toggle (Hamburger) - hidden on desktop */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 4px;
    z-index: 1001;
}

.navbar-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Container */
.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Welcome Section */
.welcome-section {
    background: var(--bg-surface);
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.welcome-section h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Page Content Styles */
.page-header {
    margin-bottom: 30px;
}

.page-header.compact {
    margin-bottom: 15px;
    margin-top: -15px;
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header.compact h1 {
    font-size: 22px;
    margin-bottom: 0;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.content-box {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.content-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

/* Product Type Slider Styles */
.product-type-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.slider-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-option {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.slider-option:first-of-type {
    font-weight: bold;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #adb5bd;
    transition: 0.4s;
    border-radius: 30px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--secondary-color);
}

input:checked + .slider-round:before {
    transform: translateX(30px);
}

/* Product Type Tabs */
.product-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.product-type-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.product-type-tab:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-surface-hover);
}

.product-type-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.product-type-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-surface-secondary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-active {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.status-badge.status-inactive {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.status-badge.status-pending {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

/* Editable Cells */
.editable-cell {
    cursor: pointer;
    position: relative;
    transition: background-color var(--transition-fast);
}

.editable-cell:hover {
    background-color: var(--bg-surface-hover);
}

.editable-cell .cell-value {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px dashed transparent;
}

.editable-cell:hover .cell-value {
    border-color: var(--primary-color);
}

.editable-cell .edit-input {
    width: 70px;
    padding: 4px 8px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    text-align: right;
}

.editable-cell .edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.editable-cell .save-btn {
    padding: 4px 10px;
    margin-left: 6px;
    border: none;
    border-radius: 4px;
    background-color: var(--success-color);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.editable-cell .save-btn:hover {
    background-color: #218838;
}

.editable-cell.editing {
    background-color: var(--bg-surface-hover);
}

.editable-cell.saving {
    opacity: 0.6;
    pointer-events: none;
}

.editable-cell.saving::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.editable-cell.save-success {
    animation: successFlash 0.5s ease;
}

@keyframes successFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: var(--success-bg); }
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color var(--transition-normal);
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
}

.products-table thead {
    background: var(--primary-color);
    color: white;
}

.products-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.products-table th:first-child {
    border-top-left-radius: 10px;
}

.products-table th:last-child {
    border-top-right-radius: 10px;
}

.products-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.products-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.products-table td {
    padding: 12px 10px;
    vertical-align: middle;
    color: var(--text-primary);
}

/* Photo Cell */
.photo-cell {
    width: 60px;
    padding: 5px 10px !important;
}

.prijs-doorgestreept {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
}

.prijs-tijdelijk {
    color: var(--primary-color);
    font-weight: 600;
}

.product-photo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    display: block;
    background-color: var(--bg-surface);
}

.product-title {
    max-width: 250px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--text-muted);
    transition: text-decoration-color 0.2s, text-decoration-thickness 0.2s;
}

.product-title:hover {
    text-decoration-color: var(--text-primary);
    text-decoration-thickness: 2px;
}

/* Percentage Color Coding */
.positive {
    color: var(--success-color);
    font-weight: 600;
}

.negative {
    color: var(--error-color);
    font-weight: 600;
}

.neutral {
    color: var(--text-muted);
    font-weight: 600;
}

/* Trend Styling with Arrows */
.trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.trend.positive {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.trend.negative {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.trend.neutral {
    background-color: var(--bg-surface-secondary);
    color: var(--text-secondary);
}

.trend .arrow {
    font-size: 16px;
    font-weight: bold;
}

/* Value with Trend Combined */
.value-with-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.value-with-trend .main-value {
    font-weight: 500;
    font-size: 14px;
    min-width: 30px;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px 0;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    padding-left: 10px;
}

.page-size-selector label {
    font-size: 14px;
    color: var(--text-secondary);
}

.page-size-selector select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.page-size-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   RESPONSIVE NAVBAR (mobile/tablet)
   ======================================== */
@media (max-width: 900px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        padding: 0 16px;
    }

    .navbar-brand {
        order: 1;
    }

    .navbar-toggle {
        order: 2;
    }

    .theme-toggle {
        order: 3;
        margin-left: 0;
        margin-right: 4px;
    }

    .status-indicator {
        order: 4;
        margin-left: 0;
    }

    .navbar-logout {
        order: 5;
        margin-left: 4px;
    }

    .navbar-menu {
        order: 6;
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 2px;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu li {
        height: auto;
    }

    .navbar-menu li a {
        width: 100%;
        padding: 10px 16px;
        height: auto;
        border-radius: 8px;
        font-size: 15px;
    }

    .navbar-menu > li.active > a {
        background-color: rgba(255, 255, 255, 0.12);
    }

    /* Mobile dropdowns */
    .navbar-dropdown {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .navbar-dropdown-toggle {
        width: 100%;
        padding: 10px 16px;
        height: auto;
        border-radius: 8px;
        font-size: 15px;
        justify-content: space-between;
    }

    .navbar-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        border-radius: 8px;
        margin: 2px 0 4px 12px;
        padding: 4px 0;
        min-width: 0;
    }

    /* Disable hover-based dropdown on mobile */
    .navbar-dropdown:hover .navbar-dropdown-menu {
        display: none;
    }

    /* Show dropdown when mobile-open class is added via JS */
    .navbar-dropdown.mobile-open .navbar-dropdown-menu {
        display: block;
    }

    .navbar-dropdown.mobile-open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .navbar-dropdown-menu li a {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 6px;
    }

    .navbar-logout a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar-brand h2 {
        font-size: 16px;
    }

    .navbar-logout a {
        padding: 5px 8px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        min-width: 90%;
        padding: 30px 20px;
    }

    .welcome-section {
        padding: 40px 20px;
    }

    .welcome-section h1 {
        font-size: 28px;
    }

    .product-type-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-type-tabs {
        gap: 6px;
    }

    .product-type-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Mobile card layout for producten page table */
    #productsTable thead {
        display: none;
    }

    #productsTable,
    #productsTable tbody {
        display: block;
    }

    #productsTable tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
    }

    #productsTable tbody tr:hover {
        background: var(--bg-surface-hover);
    }

    #productsTable td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
    }

    #productsTable td[data-label]::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    /* Empty data-label = no label shown (photo/product-info) */
    #productsTable td[data-label=""]::before {
        display: none;
    }

    /* Bol listings: photo left, product info right */
    #productsTable td.photo-cell {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        padding: 0;
        justify-content: center;
    }

    #productsTable td.photo-cell .product-photo {
        width: 56px;
        height: 56px;
    }

    #productsTable td.product-info-cell {
        grid-column: 2 / -1;
        grid-row: 1;
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Internal/Website: product name spans full width */
    #productsTable td.product-title {
        grid-column: 1 / -1;
        font-weight: 600;
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border-color);
        max-width: none;
    }

    /* Totaal cell highlighted */
    #productsTable td.totaal-cell {
        background: var(--bg-surface-secondary);
        border-radius: 6px;
        padding: 6px 8px;
    }

    /* Editable cells spacing fix */
    #productsTable td.editable-cell {
        min-height: 36px;
    }

    #productsTable td.editable-cell .edit-input {
        width: 100%;
        max-width: 120px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Product Detail Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-modal {
    background: var(--bg-surface);
    border-radius: 15px;
    width: 98%;
    max-width: 2000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal-header {
    padding: 30px 40px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.product-modal-title {
    flex: 1;
    padding-right: 20px;
}

.product-modal-title h2 {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-modal-title .product-ean {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.product-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.product-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.product-modal-body {
    padding: 40px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.modal-info-item {
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.modal-info-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-charts-section {
    margin-top: 30px;
}

.modal-charts-section h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

#chartsContainer {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

#chartsContainer.grid-cols-1 {
    grid-template-columns: 1fr;
}

#chartsContainer.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

#chartsContainer.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    #chartsContainer.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #chartsContainer.grid-cols-2,
    #chartsContainer.grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

.modal-chart-container {
    padding: 25px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    min-height: 300px;
    min-width: 0;
    overflow: hidden;
}

/* Internal Product Modal Styles */
.internal-product-edit-section {
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    margin-bottom: 20px;
}

.internal-product-edit-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.internal-product-edit-section h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.edit-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.edit-toggle-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-color);
}

.internal-product-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.internal-product-form .form-group {
    flex: 1;
    min-width: 150px;
}

.internal-product-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.internal-product-form .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color var(--transition-normal);
}

.internal-product-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.save-product-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.save-product-btn:hover {
    background-color: var(--primary-hover);
}

.save-product-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.cancel-product-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cancel-product-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Editable Stats */
.editable-stat .modal-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
}

.editable-stat:hover .stat-edit-btn {
    opacity: 1;
}

.stat-edit-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-color);
}

.stat-edit-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.stat-edit-input input {
    width: 100px;
    padding: 6px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.stat-edit-input input:focus {
    outline: none;
}

.stat-save-btn {
    padding: 6px 12px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.stat-save-btn:hover {
    background-color: #218838;
}

.stat-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Internal Modal Tabs */
.internal-modal-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.internal-modal-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.internal-modal-tab:hover {
    color: var(--primary-color);
}

.internal-modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.internal-modal-tab-content {
    display: none;
}

.internal-modal-tab-content.active {
    display: block;
}

/* Repricer Tab */
.repricer-toggle-section {
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    margin-bottom: 20px;
}

.repricer-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repricer-toggle-label {
    font-weight: 600;
    font-size: 15px;
}

.repricer-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.repricer-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.repricer-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 24px;
    transition: background var(--transition-fast);
}

.repricer-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.repricer-switch input:checked + .repricer-slider {
    background: var(--success-color);
}

.repricer-switch input:checked + .repricer-slider::before {
    transform: translateX(20px);
}

.repricer-status {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.repricer-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.repricer-message-box,
.repricer-error-box {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.repricer-message-box {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.repricer-error-box {
    background: color-mix(in srgb, var(--error-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--error-color) 25%, transparent);
}

.repricer-message-label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.repricer-message-text {
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.repricer-settings {
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    padding: 20px;
}

.repricer-settings h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
}

.repricer-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.repricer-field {
    display: flex;
    flex-direction: column;
}

.repricer-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.repricer-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--input-bg);
    transition: border-color var(--transition-fast);
}

.repricer-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.repricer-input-prefix,
.repricer-input-suffix {
    padding: 9px 10px;
    color: var(--text-muted);
    font-size: 13px;
    user-select: none;
    flex-shrink: 0;
}

.repricer-input-wrapper input {
    border: none;
    background: transparent;
    padding: 9px 10px;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    outline: none;
    font-family: inherit;
}

.repricer-input-wrapper input::-webkit-outer-spin-button,
.repricer-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.repricer-input-wrapper input[type=number] {
    -moz-appearance: textfield;
}

.repricer-input-prefix + input {
    padding-left: 0;
}

.repricer-warnings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.repricer-warnings:empty {
    display: none;
}

.repricer-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.repricer-warning.warn {
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
    color: #b45309;
}

.repricer-warning.error {
    background: color-mix(in srgb, var(--error-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--error-color) 30%, transparent);
    color: var(--error-color);
}

[data-theme="dark"] .repricer-warning.warn {
    color: #fbbf24;
}

[data-theme="dark"] .repricer-warning.error {
    color: #fca5a5;
}

@media (max-width: 900px) {
    .repricer-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .repricer-fields {
        grid-template-columns: 1fr;
    }
}

/* Mutations Table */
.mutations-table-wrapper,
.combinations-table-wrapper {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mutations-table,
.combinations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mutations-table th,
.mutations-table td,
.combinations-table th,
.combinations-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.mutations-table th,
.combinations-table th {
    background: var(--bg-surface-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mutations-table tbody tr:hover,
.combinations-table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.mutations-table td.positive {
    color: var(--success-color);
    font-weight: 500;
}

.mutations-table td.negative {
    color: var(--error-color);
    font-weight: 500;
}

.mutations-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.mutations-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mutations-spin 0.7s linear infinite;
}

@keyframes mutations-spin {
    to { transform: rotate(360deg); }
}

.mutations-empty,
.combinations-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mutations Filters */
.mutations-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    flex-wrap: wrap;
}

.mutations-filters-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.mutations-filter-checkboxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mutation-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.mutation-filter-checkbox:hover {
    background-color: var(--bg-surface-hover);
}

.mutation-filter-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.type-badge.snapshot {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.type-badge.mutatie {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Snapshot Row */
.snapshot-row {
    background-color: var(--bg-surface-secondary);
}

.snapshot-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
}

.snapshot-details span {
    color: var(--text-secondary);
}

.snapshot-details strong {
    color: var(--text-primary);
}

/* Mutation Details */
.mutation-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.mutation-arrow {
    color: var(--text-muted);
}

/* Platform Badges */
.platform-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-badge.platform-bol {
    background-color: rgba(0, 0, 255, 0.15);
    color: var(--platform-bol);
}

.platform-badge.platform-website {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--platform-website);
}

.platform-badge.platform-revma {
    background-color: rgba(147, 112, 219, 0.15);
    color: var(--platform-revma);
}

/* Bol Product Info Cell */
.product-info-cell {
    cursor: pointer;
}

.product-info-cell:hover {
    background-color: var(--bg-surface-hover);
}

.product-info-cell .product-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-ean-small {
    font-size: 11px;
    color: var(--text-muted);
}

.product-ean-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ean-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ean-action-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-color);
}

.ean-action-btn.copied {
    color: var(--success-color);
}

.ean-action-btn svg {
    pointer-events: none;
}

.product-status-icons {
    display: flex;
    gap: 4px;
}

/* Bol Status Icons */
.status-icon-bol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.status-icon-bol.repricer-on {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.status-icon-bol.repricer-off {
    background-color: rgba(108, 117, 125, 0.15);
    color: var(--text-muted);
}

.status-icon-bol.te-koop {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.status-icon-bol.on-hold {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--error-color);
}

.status-icon-bol.methode-lvb {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 8px;
    width: auto;
    padding: 0 4px;
}

.status-icon-bol.methode-fbr {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    font-size: 8px;
    width: auto;
    padding: 0 4px;
}

.status-icon-bol.koopblok-ja {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
    font-size: 8px;
    width: auto;
    padding: 0 4px;
}

.status-icon-bol.koopblok-nee {
    background-color: rgba(108, 117, 125, 0.15);
    color: var(--text-muted);
    font-size: 8px;
    width: auto;
    padding: 0 4px;
}

/* Rating Inline Display */
.rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-inline .stars {
    display: flex;
    gap: 1px;
}

.rating-inline .star {
    font-size: 11px;
    line-height: 1;
}

.rating-inline .star.full {
    color: #f59e0b;
}

.rating-inline .star.half {
    color: #f59e0b;
    opacity: 0.6;
}

.rating-inline .star.empty {
    color: var(--text-muted);
    opacity: 0.3;
}

.rating-inline .rating-value {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.rating-inline .rating-count {
    font-size: 10px;
    color: var(--text-muted);
}

/* Date Range Selector */
.date-range-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    margin-bottom: 30px;
}

.date-range-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.date-range-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.date-range-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.date-range-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.date-range-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

.date-range-custom {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-range-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--input-bg);
    transition: border-color 0.2s;
}

.date-range-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Chart Configuration */
.chart-config-section {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chart-config-group {
    flex: 1;
    min-width: 250px;
}

.chart-config-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.chart-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.chart-checkbox-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-surface-hover);
}

.chart-checkbox-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.chart-checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.chart-order-controls {
    display: flex;
    gap: 4px;
}

.chart-order-btn {
    background: var(--border-color);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.chart-order-btn:hover {
    background: var(--primary-color);
    color: white;
}

.chart-order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chart-order-btn:disabled:hover {
    background: var(--border-color);
    color: var(--text-secondary);
}

.grid-layout-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grid-layout-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid-layout-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.grid-layout-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

.grid-layout-icon {
    font-size: 16px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .product-modal {
        width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }

    .product-modal-header {
        padding: 20px;
        border-radius: 10px 10px 0 0;
    }

    .product-modal-title h2 {
        font-size: 20px;
    }

    .product-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .product-modal-body {
        padding: 20px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-chart-container {
        min-height: 250px;
    }

    .chart-config-section {
        flex-direction: column;
    }

    .date-range-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile card layout for mutations table */
    .mutations-table thead,
    .combinations-table thead {
        display: none;
    }

    .mutations-table,
    .mutations-table tbody,
    .combinations-table,
    .combinations-table tbody {
        display: block;
    }

    .mutations-table tbody tr,
    .combinations-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        padding: 12px;
        margin-bottom: 6px;
        border-bottom: none;
        border-radius: 6px;
        background: var(--bg-surface);
    }

    .mutations-table tbody tr.snapshot-row {
        background: var(--bg-surface-secondary);
    }

    .mutations-table td,
    .combinations-table td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
        border-bottom: none;
    }

    .mutations-table td[data-label]::before,
    .combinations-table td[data-label]::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    /* Details cell spans full width */
    .mutations-table td.snapshot-details,
    .mutations-table td.mutation-details {
        grid-column: 1 / -1;
    }

    /* Combinations: naam spans full width */
    .combinations-table td[data-label="Naam"] {
        grid-column: 1 / -1;
    }

    .mutations-table-wrapper,
    .combinations-table-wrapper {
        max-height: none;
        border: none;
    }
}

/* ========================================
   DASHBOARD SPECIFIC STYLES
   ======================================== */

/* Period Selector */
/* Period selector toggle (mobile only) */
.period-selector-toggle {
    display: none;
}

.period-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.period-selector-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.period-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

/* Compare toggle switch */
.compare-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.compare-toggle input {
    display: none;
}

.compare-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.compare-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.compare-toggle input:checked + .compare-toggle-slider {
    background: var(--primary-color);
}

.compare-toggle input:checked + .compare-toggle-slider::after {
    left: 18px;
    background: white;
}

.compare-toggle-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.period-btn {
    padding: 10px 20px;
    background: var(--bg-surface-secondary);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
}

.custom-date-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.range-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.range-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.date-input {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* Sales Overview Cards */
.sales-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sales-card {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.sales-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.sales-card-main {
    grid-column: span 1;
}

.sales-card-main::before {
    background: var(--primary-color);
}

.sales-card-bol::before {
    background: var(--platform-bol);
}

.sales-card-revma::before {
    background: var(--platform-revma);
}

.sales-card-amazon::before {
    background: var(--platform-amazon);
}

.sales-card-website::before {
    background: var(--platform-website);
}

.sales-card-marktplaats::before {
    background: var(--platform-marktplaats);
}

.sales-card-kaufland::before {
    background: var(--platform-kaufland);
}

.sales-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sales-card-link:hover {
    opacity: 0.9;
}

.sales-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.sales-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.sales-card-orders {
    font-size: 14px;
    color: var(--text-muted);
}

.sales-card-comparison {
    font-size: 12px;
    margin-bottom: 2px;
    min-height: 18px;
}

.comparison-up {
    color: #22c55e;
}

.comparison-down {
    color: #ef4444;
}

.comparison-neutral {
    color: var(--text-muted);
}

.comparison-label {
    color: var(--text-muted);
    margin-left: 2px;
}

.sales-card.loading .sales-card-comparison {
    visibility: hidden;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-box {
    position: relative;
}

.chart-box-small {
    position: relative;
}

.chart-container {
    height: 350px;
    position: relative;
}

.chart-container canvas {
    position: relative;
    z-index: 2;
}

.chart-container .chart-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.chart-container-pie {
    height: 300px;
    position: relative;
}

.chart-container-pie canvas {
    position: relative;
    z-index: 2;
}

.chart-container-pie .pie-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-text.large {
    height: 32px;
    width: 60%;
}

.skeleton-text.small {
    height: 14px;
    width: 40%;
}

.skeleton-bar {
    height: 100%;
    min-height: 200px;
}

.skeleton-circle {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 50%;
}

.skeleton-row {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.skeleton-row .skeleton-text {
    margin-bottom: 0;
}

/* Sales card loading state */
.sales-card.loading .sales-card-value,
.sales-card.loading .sales-card-orders {
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    color: transparent;
    border-radius: 4px;
}

/* Chart loading skeleton */
.chart-skeleton {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    padding: 20px;
    gap: 8px;
}

.chart-skeleton-bar {
    flex: 1;
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px 4px 0 0;
}

.chart-skeleton-bar:nth-child(1) { height: 60%; }
.chart-skeleton-bar:nth-child(2) { height: 80%; }
.chart-skeleton-bar:nth-child(3) { height: 45%; }
.chart-skeleton-bar:nth-child(4) { height: 90%; }
.chart-skeleton-bar:nth-child(5) { height: 55%; }
.chart-skeleton-bar:nth-child(6) { height: 70%; }
.chart-skeleton-bar:nth-child(7) { height: 50%; }
.chart-skeleton-bar:nth-child(8) { height: 85%; }

/* Pie chart skeleton */
.pie-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pie-skeleton-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    position: relative;
}

.pie-skeleton-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: 50%;
}

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Reviews Box */
.reviews-box {
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.reviews-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.reviews-link:hover {
    text-decoration: underline;
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.reviews-grid::-webkit-scrollbar {
    width: 6px;
}

.reviews-grid::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.reviews-grid::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.reviews-grid::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.review-card {
    padding: 10px 12px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.review-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.review-score {
    font-size: 16px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--success-bg);
    color: var(--success-text);
}

.review-score.low {
    background: var(--error-bg);
    color: var(--error-text);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Products Box */
.products-box {
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.platform-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.platform-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

.products-box .search-container {
    margin-bottom: 0;
}

.products-box .search-input {
    max-width: 250px;
}

.products-box .table-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 0;
}

/* Sortable Table Headers */
.products-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.products-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.products-table th.sortable::after {
    content: ' \2195';
    opacity: 0.5;
}

.products-table th.sortable.asc::after {
    content: ' \2191';
    opacity: 1;
}

.products-table th.sortable.desc::after {
    content: ' \2193';
    opacity: 1;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }

    .reviews-box,
    .products-box {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .sales-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .sales-card-value {
        font-size: 22px;
    }

    /* Collapsible period selector on mobile */
    .period-selector-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: var(--bg-surface-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .period-selector-toggle:hover {
        background: var(--bg-surface-hover);
    }

    .period-selector-toggle-arrow {
        font-size: 12px;
        color: var(--text-secondary);
        transition: transform 0.2s;
    }

    .period-selector.open .period-selector-toggle-arrow {
        transform: rotate(180deg);
    }

    .period-selector-collapse {
        display: none;
        flex-direction: column;
        gap: 15px;
    }

    .period-selector.open .period-selector-collapse {
        display: flex;
    }

    .period-selector-row {
        flex-direction: column;
        align-items: stretch;
    }

    .period-buttons {
        flex-direction: column;
    }

    .period-btn {
        width: 100%;
        text-align: center;
    }

    .compare-toggle {
        justify-content: center;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-filter {
        justify-content: center;
    }

    .products-box .search-input {
        max-width: 100%;
    }

    /* Mobile card layout for products table */
    .products-box .products-table thead {
        display: none;
    }

    .products-box .products-table,
    .products-box .products-table tbody {
        display: block;
    }

    .products-box .products-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
    }

    .products-box .products-table tbody tr:hover {
        background: var(--bg-surface-hover);
    }

    .products-box .products-table td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
    }

    .products-box .products-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    .products-box .products-table td:first-child {
        grid-column: 1 / -1;
        font-weight: 600;
    }
}

/* ========================================
   EPR PAGE STYLES
   ======================================== */

.epr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 10px;
}

.epr-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.epr-control-group label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.epr-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    min-width: 120px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.epr-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.epr-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.epr-filter-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.epr-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.epr-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

.epr-rapport-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.epr-rapport-btn {
    padding: 10px 20px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.epr-rapport-btn:hover {
    transform: translateY(-2px);
}

.epr-rapport-btn.batterij {
    background: #eab308;
    color: #333;
}

.epr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.epr-stat-card {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.epr-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.epr-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.epr-table th, .epr-table td {
    padding: 12px 8px;
    font-size: 13px;
}

.epr-table .missing-data {
    background-color: var(--warning-bg) !important;
}

.epr-table .missing-data:hover {
    background-color: var(--warning-bg) !important;
    filter: brightness(0.95);
}

.epr-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.epr-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    min-width: 80px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.epr-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.epr-input.missing {
    border-color: var(--warning-color);
    background-color: var(--warning-bg);
}

.epr-save-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.epr-save-btn:hover {
    background: var(--secondary-color);
}

.epr-save-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* EPR Modal styles */
.rapport-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.rapport-modal-overlay.active {
    display: flex;
}

.rapport-modal {
    background: var(--bg-surface);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.rapport-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

.rapport-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.rapport-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.rapport-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rapport-modal-body {
    padding: 30px;
}

.rapport-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rapport-total-card {
    background: var(--bg-surface-secondary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.rapport-total-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.rapport-total-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.rapport-table {
    width: 100%;
    border-collapse: collapse;
}

.rapport-table thead {
    background: var(--bg-surface-secondary);
}

.rapport-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.rapport-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.rapport-table tbody tr:hover {
    background: var(--bg-surface-secondary);
}

.export-btn {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.export-btn:hover {
    filter: brightness(0.9);
}

@media (max-width: 1200px) {
    .epr-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .epr-rapport-buttons {
        margin-left: 0;
        width: 100%;
    }

    .epr-rapport-btn {
        flex: 1;
    }
}

/* ========================================
   FINANCIEN PAGE STYLES
   ======================================== */

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.platform-card {
    background: var(--bg-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.platform-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.platform-card.bol .platform-icon { color: var(--platform-bol); }
.platform-card.kaufland .platform-icon { color: var(--platform-kaufland); }
.platform-card.amazon .platform-icon { color: var(--platform-amazon); }

.platform-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.platform-card .coming-soon {
    display: inline-block;
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

.platform-card.kaufland .status-active {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success-text);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

/* ========================================
   FINANCIEN KAUFLAND PAGE STYLES
   ======================================== */

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
}

.upload-section {
    background: var(--bg-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
}

.upload-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    background: var(--bg-surface-secondary);
    cursor: pointer;
    color: var(--text-primary);
}

.file-input-wrapper input[type="file"]:hover {
    background: var(--bg-surface-hover);
}

.country-info {
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
}

.country-info.visible {
    display: block;
}

.country-info h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.country-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.country-detail {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
}

.country-detail label {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
}

.country-detail span {
    font-size: 20px;
    font-weight: bold;
}

.currency-conversion {
    background: var(--warning-bg);
    border: 1px solid var(--warning-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.currency-conversion.visible {
    display: block;
}

.currency-conversion label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--warning-text);
}

.currency-conversion input {
    width: 200px;
    padding: 10px 15px;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.currency-conversion .conversion-rate {
    margin-top: 10px;
    font-size: 14px;
    color: var(--warning-text);
}

.booking-types-section {
    background: var(--bg-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
    display: none;
}

.booking-types-section.visible {
    display: block;
}

.booking-types-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.booking-type-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.booking-type-item:hover {
    background: var(--bg-surface-secondary);
}

.booking-type-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.booking-type-item .type-info {
    flex: 1;
}

.booking-type-item .type-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.booking-type-item .type-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.booking-type-item .type-total {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.calculate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.results-section {
    background: var(--bg-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    display: none;
}

.results-section.visible {
    display: block;
}

.results-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.results-table th:first-child {
    border-radius: 10px 0 0 0;
}

.results-table th:last-child {
    border-radius: 0 10px 0 0;
}

.results-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table .total-row {
    background: var(--bg-surface-secondary);
    font-weight: bold;
}

.results-table .total-row td {
    border-top: 2px solid var(--primary-color);
}

.amount-positive { color: var(--success-text); }
.amount-negative { color: var(--error-text); }

.verification-section {
    background: var(--bg-surface);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-top: 30px;
    display: none;
}

.verification-section.visible {
    display: block;
}

.verification-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.verification-item {
    background: var(--bg-surface-secondary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.verification-item label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.verification-item span {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.verification-status {
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.verification-status.match {
    background: var(--success-bg);
    color: var(--success-text);
}

.verification-status.mismatch {
    background: var(--error-bg);
    color: var(--error-text);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.manual-country-select {
    margin-top: 15px;
    padding: 15px;
    background: var(--warning-bg);
    border-radius: 10px;
    display: none;
}

.manual-country-select.visible {
    display: block;
}

.manual-country-select label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--warning-text);
}

.manual-country-select select {
    padding: 10px 15px;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* ========================================
   WAARSCHUWINGEN PAGE STYLES
   ======================================== */

.filter-section {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.filter-section label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-primary);
}

.filter-section select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.filter-section select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.company-section {
    margin-bottom: 40px;
}

.company-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.company-header h2 {
    margin: 0;
    font-size: 24px;
}

.category-section {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.category-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-zichtbaar {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.status-onzichtbaar {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hide {
    background-color: var(--error-color);
    color: white;
}

.btn-hide:hover {
    filter: brightness(0.9);
}

.btn-show {
    background-color: var(--success-color);
    color: white;
}

.btn-show:hover {
    filter: brightness(0.9);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.no-products {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* ========================================
   LEVERINGEN PAGE STYLES
   ======================================== */

.leveringen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
}

.leveringen-table thead {
    background: var(--primary-color);
    color: white;
}

.leveringen-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.leveringen-table th:first-child {
    border-top-left-radius: 10px;
}

.leveringen-table th:last-child {
    border-top-right-radius: 10px;
}

.leveringen-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.leveringen-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.leveringen-table td {
    padding: 12px;
    vertical-align: middle;
    color: var(--text-primary);
}

.days-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.days-positive {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.days-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.days-overdue {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.editable-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editable-field input {
    width: 60px;
    padding: 4px 8px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.editable-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.save-btn, .cancel-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.save-btn {
    background-color: var(--success-color);
    color: white;
}

.save-btn:hover {
    filter: brightness(0.9);
}

.cancel-btn {
    background-color: var(--text-muted);
    color: white;
}

.cancel-btn:hover {
    filter: brightness(0.9);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

.currency {
    font-family: 'Courier New', monospace;
}

.date-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.currency-col {
    min-width: 120px;
}

/* Leveringen status icon (geteld) */
.lev-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.lev-status-ja {
    color: var(--success-color);
    background: var(--success-bg);
}

.lev-status-nee {
    color: var(--error-color);
    background: var(--error-bg);
}

/* Leveringen transport badge */
.lev-transport-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.lev-transport-trein {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.lev-transport-boot {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.lev-transport-vliegtuig {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.lev-transport-container {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.lev-transport-post {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.lev-transport-onbekend {
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
}

/* Leveringen edit button */
.lev-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lev-edit-btn:hover {
    background: var(--bg-surface-secondary);
    color: var(--primary-color);
}

/* ========================================
   LEVERINGEN DETAIL PANEL & TABS
   ======================================== */

/* Slider for overzicht/details */
.lev-slider {
    overflow: hidden;
    position: relative;
}

.lev-slider-track {
    display: flex;
    width: 200%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lev-slide {
    width: 50%;
    flex-shrink: 0;
    min-height: 0;
}

.lev-detail-wrapper {
    margin-top: 10px;
}

.lev-tabs-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0;
    border-bottom: 2px solid var(--border-color);
    scrollbar-width: thin;
}

.lev-order-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.lev-order-tab:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.lev-order-tab.active {
    background: var(--bg-surface);
    color: var(--primary-color);
    border-color: var(--border-color);
    border-bottom: 2px solid var(--bg-surface);
    font-weight: 600;
}

.lev-order-tab.dirty .lev-tab-label::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning-color, #f59e0b);
    margin-left: 6px;
    vertical-align: middle;
}

.lev-tab-close {
    font-size: 16px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.lev-tab-close:hover {
    opacity: 1;
    color: var(--error-color);
}

.lev-tab-content-container {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: var(--bg-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lev-tab-pane {
    display: none;
    padding: 20px;
}

.lev-tab-pane.active {
    display: block;
}

.lev-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lev-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lev-shortcut-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.lev-shortcut-btn.lev-shortcut-active {
    background: var(--success-color);
    color: #fff;
    border-color: var(--success-color);
}

.lev-inkoop-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface-secondary);
    padding: 14px;
    margin-bottom: 16px;
}

.lev-inkoop-header {
    margin-bottom: 10px;
}

.lev-inkoop-header strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.lev-inkoop-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.lev-inkoop-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.lev-inkoop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.lev-inkoop-row:hover {
    background: var(--bg-surface);
}

.lev-inkoop-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.lev-inkoop-naam {
    flex: 1;
    color: var(--text-primary);
}

.lev-inkoop-prijs {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.lev-detail-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.lev-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lev-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.lev-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.lev-regels-table-wrapper {
    overflow: visible;
}

.lev-regels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lev-regels-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.lev-regels-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.lev-regels-table thead th.centered,
.lev-regels-table tbody td.centered,
.lev-regels-table tfoot td.centered {
    text-align: center;
    position: relative;
}

.lev-regels-table tbody td.centered .lev-inline-edit-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

.lev-regels-table tbody tr:hover {
    background: var(--bg-surface-secondary);
}

.lev-geteld-input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lev-geteld-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.lev-geteld-input.changed {
    border-color: var(--warning-color, #f59e0b);
    background: rgba(245, 158, 11, 0.05);
}

.lev-geteld-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.lev-geteld-ok {
    color: var(--success-color);
    background: var(--success-bg);
}

.lev-geteld-plus {
    color: var(--success-color);
    background: var(--success-bg);
}

.lev-geteld-min {
    color: var(--error-color);
    background: var(--error-bg);
}

.lev-geteld-leeg {
    color: var(--text-muted);
}

.lev-detail-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.lev-kosten-panel {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface-secondary);
}

.lev-kosten-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lev-kosten-header strong {
    font-size: 14px;
    color: var(--text-primary);
}

.lev-kosten-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.lev-kosten-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lev-kosten-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.lev-kosten-field input {
    width: 130px;
}

.lev-kosten-field select {
    width: 80px;
}

.lev-kosten-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
    align-self: center;
}

.lev-kosten-eur-section {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.lev-kosten-validation {
    margin-top: 10px;
    font-size: 12px;
}

.lev-kosten-mismatch {
    color: var(--error-color);
    font-weight: 500;
}

.lev-kosten-match {
    color: var(--success-color);
    font-weight: 500;
}

/* Verdeel keuze modal */
.lev-verdeel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: lev-fade-in 0.15s ease;
}

@keyframes lev-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lev-verdeel-modal {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lev-verdeel-modal-header {
    margin-bottom: 20px;
}

.lev-verdeel-modal-header strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lev-verdeel-modal-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.lev-verdeel-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lev-verdeel-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.15s;
}

.lev-verdeel-option:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.lev-verdeel-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lev-verdeel-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.lev-verdeel-cancel {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.lev-verdeel-cancel:hover {
    background: var(--border-color);
}

.lev-product-kleur {
    color: var(--text-muted);
    font-size: 12px;
}

.lev-tracking-group {
    grid-column: 1 / -1;
}

.lev-tracking-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lev-tracking-row .lev-form-input {
    max-width: 300px;
}

.lev-courier-badge {
    white-space: nowrap;
    font-size: 12px;
}

.lev-courier-found {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--success-bg);
    color: var(--success-color);
    font-weight: 500;
}

.lev-courier-unknown {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--error-bg);
    color: var(--error-color);
    font-weight: 500;
}

.lev-courier-detecting {
    padding: 4px 10px;
    color: var(--text-muted);
    font-style: italic;
}

.lev-inline-edit-btn {
    opacity: 0;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-left: 2px;
    transition: opacity 0.15s;
}

.lev-regels-table tbody tr:hover .lev-inline-edit-btn {
    opacity: 0.6;
}

.lev-inline-edit-btn:hover {
    opacity: 1 !important;
}

.lev-editable-cell {
    vertical-align: middle;
}

.lev-cell-edit-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lev-regel-deleted {
    opacity: 0.4;
    text-decoration: line-through;
}

.lev-delete-regel-btn {
    opacity: 0;
}

.lev-regels-table tbody tr:hover .lev-delete-regel-btn {
    opacity: 0.6;
}

.lev-delete-regel-btn:hover {
    opacity: 1 !important;
    color: var(--error-color) !important;
}

.lev-view-toggle {
    display: flex;
    position: relative;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 0;
}

.lev-view-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background: var(--primary-color);
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lev-view-toggle.slide-details .lev-view-slider {
    transform: translateX(100%);
}

.lev-view-btn {
    position: relative;
    z-index: 1;
    padding: 6px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.lev-view-btn.active {
    color: white;
}

.lev-view-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lev-order-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lev-order-cell .lev-transport-badge {
    flex-shrink: 0;
    margin: 0;
}

.lev-order-sub {
    color: var(--text-muted);
    font-size: 0.9em;
}

.leveringen-table tbody tr.active-order {
    background: rgba(59, 130, 246, 0.08);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.leveringen-table tbody tr.active-order:hover {
    background: rgba(59, 130, 246, 0.12);
}

.lev-totals-row {
    border-top: 2px solid var(--border-color);
    background: var(--bg-surface-secondary);
}

.lev-totals-row + .lev-totals-row {
    border-top: 1px solid var(--border-color);
}

.lev-totals-row-eur {
    color: var(--text-secondary);
    font-size: 0.92em;
}

.lev-trans-suffix {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 400;
}

.lev-leverancier-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.lev-leverancier-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.lev-product-search-wrapper {
    position: relative;
}

.lev-product-search {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
}

.lev-product-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lev-product-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.lev-product-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.lev-product-option:last-child {
    border-bottom: none;
}

.lev-product-option:hover {
    background: var(--bg-surface-secondary);
}

.lev-product-empty {
    color: var(--text-muted);
    cursor: default;
}

.lev-form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.lev-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .lev-detail-header {
        grid-template-columns: 1fr 1fr;
    }

    .lev-tab-pane {
        padding: 12px;
    }

    /* Leveringen overview table: card layout */
    .leveringen-table thead {
        display: none;
    }

    .leveringen-table,
    .leveringen-table tbody {
        display: block;
    }

    .leveringen-table tbody tr {
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        gap: 4px 10px;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
    }

    .leveringen-table td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
    }

    .leveringen-table td[data-label]::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 1px;
    }

    .leveringen-table td[data-label=""]::before {
        display: none;
    }

    /* Status icon: first column, small */
    .leveringen-table td:first-child {
        grid-row: 1 / 3;
        justify-content: center;
        align-items: center;
    }

    /* Orderregels detail: card layout */
    .lev-regels-table thead {
        display: none;
    }

    .lev-regels-table,
    .lev-regels-table tbody {
        display: block;
    }

    .lev-regels-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .lev-regels-table tbody td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
        text-align: left;
    }

    .lev-regels-table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    .lev-regels-table tbody td[data-label=""]::before {
        display: none;
    }

    /* Product name full width */
    .lev-regels-table tbody td[data-label="Product"] {
        grid-column: 1 / -1;
        font-weight: 600;
        padding-bottom: 6px;
    }

    /* Delete button inline */
    .lev-regels-table tbody td:last-child {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }

    .lev-regels-table .lev-inline-edit-btn {
        opacity: 1;
    }

    /* Kosten grid wrap better */
    .lev-kosten-grid {
        gap: 10px;
    }

    .lev-kosten-field input {
        width: 100px;
    }

    .lev-kosten-divider {
        display: none;
    }

    .lev-kosten-eur-section {
        flex-wrap: wrap;
    }

    /* New order form */
    .lev-form-row {
        flex-direction: column;
    }

    /* Shortcuts row wrap */
    .lev-shortcuts {
        flex-wrap: wrap;
        gap: 6px;
    }

    .lev-shortcut-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Status filter row wrap */
    .cases-filter-group {
        flex-direction: column;
        align-items: stretch !important;
    }

    .lev-view-toggle {
        width: 100%;
    }

    .lev-totaal-section {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ========================================
   AI HULP PAGE STYLES
   ======================================== */

.ai-projects-container {
    padding: 20px;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-new-project {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-new-project:hover {
    opacity: 0.9;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.projects-table thead {
    background: var(--primary-color);
    color: white;
}

.projects-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.projects-table tbody tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color 0.2s;
}

.projects-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.projects-table td {
    padding: 12px 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.project-name {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.project-name:hover {
    text-decoration-color: var(--primary-color);
}

/* AI Modal Styles */
.ai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 1000;
    overflow-y: auto;
}

.ai-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.ai-modal {
    background: var(--bg-surface);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: var(--shadow-lg);
}

.ai-modal-header {
    background: var(--primary-color);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ai-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.ai-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ai-modal-body {
    padding: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.ai-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 12px;
}

.ai-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Reference Photos Section */
.reference-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.reference-upload-area:hover {
    border-color: var(--primary-color);
}

.reference-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.reference-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.reference-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* USPs Section */
.usps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.usp-tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.usp-delete {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usp-add-container {
    display: flex;
    gap: 10px;
}

.usp-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.btn-add-usp {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-add-usp:hover {
    background: var(--primary-hover);
}

/* Generated Photos Section */
.generated-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.generated-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.generated-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generated-photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prompt Generator Section */
.prompt-generator-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.prompt-count-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.btn-generate-prompts {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-generate-prompts:hover {
    opacity: 0.9;
}

.btn-generate-prompts:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prompt-item {
    background: var(--bg-surface);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.prompt-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    resize: vertical;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.btn-generate-image {
    padding: 8px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-generate-image:hover {
    filter: brightness(0.9);
}

.btn-generate-image:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image Preview Section */
.image-preview-container {
    margin-top: 20px;
}

.previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.preview-card {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-preview {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.image-preview-actions {
    display: flex;
    gap: 10px;
}

.btn-save-image {
    padding: 10px 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-save-image:hover {
    filter: brightness(0.9);
}

.btn-delete-preview {
    padding: 10px 20px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-delete-preview:hover {
    filter: brightness(0.9);
}

/* ========================================
   NAVBAR DROPDOWN STYLES
   ======================================== */

.navbar-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    cursor: pointer;
}

.navbar-dropdown-toggle:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dropdown.active .navbar-dropdown-toggle {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.navbar-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navbar-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown-menu li {
    display: block;
}

.navbar-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.navbar-dropdown-menu li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dropdown-menu li.active a {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-dropdown-menu li.disabled span {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* ========================================
   COMBINATIES PAGE STYLES
   ======================================== */

/* New Layout Structure */
.combinaties-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Calculate: 100vh - navbar(56px) - container padding(80px) - page header(40px) - tabs(55px) - gap(20px) */
    height: calc(100vh - 251px);
}

.combinaties-panel {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top listings panel - full width, takes more space */
.combinaties-listings-panel {
    flex: 1.2;
    min-height: 200px;
}

.combinaties-listings-panel .combinaties-panel-content {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
}

/* Bottom row: 2/3 + 1/3 split */
.combinaties-bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 180px;
}

.combinaties-combinaties-panel {
    display: flex;
    flex-direction: column;
}

.combinaties-combinaties-panel .combinaties-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.combinaties-producten-panel {
    display: flex;
    flex-direction: column;
}

.combinaties-panel-header {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.combinaties-panel-header span {
    white-space: nowrap;
}

/* Inline search in header */
.combinaties-search-inline {
    flex: 1;
    max-width: 300px;
}

.combinaties-search-inline input {
    width: 100%;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.combinaties-search-inline input:focus {
    outline: none;
    background-color: white;
}

.combinaties-search-inline input::placeholder {
    color: #888;
}

.combinaties-panel-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Pagination in panels */
.combinaties-pagination {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-secondary);
    flex-shrink: 0;
}

.combinaties-pagination .pagination-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.combinaties-pagination .page-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Platform and Filter Tabs */
.combinaties-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.combinaties-tab-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.combinaties-tab-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.combinaties-tab-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.combinaties-tab-btn {
    padding: 8px 14px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.combinaties-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.combinaties-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search in panels */
.combinaties-search {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.combinaties-search input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.combinaties-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.combinaties-search input::placeholder {
    color: var(--text-muted);
}

/* Combinaties Table */
.combinaties-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.combinaties-table thead {
    background: var(--bg-surface-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.combinaties-table th {
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.combinaties-table tbody tr {
    border-bottom: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: background-color 0.15s;
}

.combinaties-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.combinaties-table tbody tr.selected {
    background-color: rgba(59, 130, 246, 0.15);
}

.combinaties-table td {
    padding: 8px 6px;
    vertical-align: middle;
    color: var(--text-primary);
}

/* Status icons */
.status-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
}

.status-icon.connected {
    background-color: var(--success-color);
}

.status-icon.disconnected {
    background-color: var(--error-color);
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Editable quantity field */
.quantity-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Action buttons in tables */
.combinaties-action-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.combinaties-action-btn.add {
    background-color: var(--primary-color);
    color: white;
}

.combinaties-action-btn.add:hover {
    background-color: var(--primary-hover);
}

.combinaties-action-btn.remove {
    background-color: var(--error-color);
    color: white;
}

.combinaties-action-btn.remove:hover {
    filter: brightness(0.9);
}

.combinaties-action-btn.save {
    background-color: var(--success-color);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
    margin-top: 10px;
}

.combinaties-action-btn.save:hover {
    filter: brightness(0.9);
}

.combinaties-action-btn.save:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

/* Combinatie detail section - compact inline header */
.combinatie-detail-header-compact {
    padding: 6px 10px;
    background: var(--bg-surface-secondary);
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combinatie-detail-header-compact .combinatie-detail-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.combinatie-detail-header-compact .combinatie-detail-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Empty states */
.combinaties-empty {
    text-align: center;
    padding: 20px 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.combinaties-empty-icon {
    font-size: 32px;
    margin-bottom: 6px;
    opacity: 0.5;
}

/* Loading state */
.combinaties-loading {
    text-align: center;
    padding: 20px 15px;
    color: var(--text-secondary);
}

/* Scroll container for tables */
.combinaties-table-wrapper {
    flex: 1;
    overflow-y: auto;
    min-height: 150px;
}

.combinaties-combinaties-panel .combinaties-table-wrapper {
    overflow-y: auto;
    min-height: auto;
}

.combinaties-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.combinaties-table-wrapper::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.combinaties-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.combinaties-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Responsive */
@media (max-width: 1200px) {
    .combinaties-bottom-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .combinaties-layout {
        height: auto;
        min-height: 0;
    }

    .combinaties-bottom-row {
        grid-template-columns: 1fr;
        flex: none;
    }

    .combinaties-listings-panel {
        flex: none;
        min-height: 0;
        max-height: none;
    }

    .combinaties-listings-panel .combinaties-panel-content {
        max-height: 50vh;
    }

    .combinaties-producten-panel,
    .combinaties-combinaties-panel {
        min-height: 0;
    }

    .combinaties-combinaties-panel .combinaties-panel-content {
        max-height: 40vh;
    }

    .combinaties-tabs {
        flex-direction: column;
        gap: 15px;
    }

    .combinaties-tab-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .combinaties-panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .combinaties-search-inline {
        max-width: none;
    }

    /* Combinaties tables: card layout on mobile */
    .combinaties-table thead {
        display: none;
    }

    .combinaties-table,
    .combinaties-table tbody {
        display: block;
    }

    .combinaties-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .combinaties-table tbody tr.selected {
        background: var(--bg-surface-hover);
    }

    .combinaties-table td {
        padding: 2px 0;
        border: none;
    }

    /* Listings table: naam gets most space, status stays right */
    #listingsTable td:first-child {
        flex: 1;
        font-weight: 600;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #listingsTable td:nth-child(2) {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #listingsTable td:last-child {
        flex-shrink: 0;
    }

    /* Combinaties pagination compact */
    .combinaties-pagination {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

.toast.warning {
    background-color: var(--warning-color);
    color: #333;
}

.toast.info {
    background-color: var(--primary-color);
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   CASES PAGE STYLES
   ======================================== */

/* Cases Filters Bar */
.cases-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    align-items: center;
}

.cases-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cases-filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.cases-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cases-filter-btn {
    padding: 8px 14px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cases-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cases-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cases-search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    margin-left: auto;
}

.cases-search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.cases-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cases-search-box input::placeholder {
    color: var(--text-muted);
}

/* Cases Split Layout */
.cases-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    /* Calculate: 100vh - navbar(56px) - container padding(80px) - page header(25px) - filters(70px) - gap(15px) */
    height: calc(100vh - 246px);
    min-height: 300px;
    margin-bottom: 0;
}

/* Cases List Panel */
.cases-list-panel {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.cases-panel-header {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cases-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.cases-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.cases-list::-webkit-scrollbar {
    width: 6px;
}

.cases-list::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.cases-list::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.cases-list::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Case Item */
.case-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.case-item:hover {
    background: var(--bg-surface-hover);
}

.case-item.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.case-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.case-item-id {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.case-platform {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.case-platform.bol {
    background: var(--platform-bol);
    color: white;
}

.case-platform.amazon {
    background: var(--platform-amazon);
    color: #333;
}

.case-item-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.case-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-item-date {
    white-space: nowrap;
}

/* Status Dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.status-afgehandeld {
    background: var(--success-color);
}

.status-dot.status-actie {
    background: var(--error-color);
}

.status-dot.status-behandeling {
    background: var(--warning-color);
}

.status-dot.status-onderweg {
    background: #8b5cf6;
}

.status-dot.status-bezorgd {
    background: #dc3545;
}

.status-dot.status-nieuw {
    background: #9ca3af;
}

/* Cases Detail Panel */
.cases-detail-panel {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.cases-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 40px;
}

.cases-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.cases-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.cases-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.cases-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Cases Tabs */
.cases-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 15px;
    background: var(--bg-surface-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cases-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cases-tab:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.cases-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Tab Content */
.cases-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

.cases-tab-content.active {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Details Tab */
.case-detail-section {
    margin-bottom: 24px;
}

.case-detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.case-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-info-item label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.case-info-item span {
    font-size: 14px;
    color: var(--text-primary);
}

.case-onderwerp {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.case-beschrijving {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-surface-secondary);
    border-radius: 6px;
}

/* Status Buttons */
.case-status-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-status-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.case-status-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.case-status-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.case-status-btn.active .status-dot {
    box-shadow: 0 0 0 2px white;
}

/* Communicatie Tab - Berichten */
.berichten-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    min-height: 200px;
}

.berichten-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.berichten-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.bericht-bubble {
    padding: 12px 16px;
    background: var(--bg-surface-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--border-color);
    max-width: 85%;
}

.bericht-bubble.bericht-bol {
    border-left-color: var(--platform-bol);
}

.bericht-bubble.bericht-amazon {
    border-left-color: var(--platform-amazon);
}

.bericht-bubble.bericht-current {
    border-left-color: var(--error-color);
    margin-left: auto;
    background: rgba(220, 53, 69, 0.1);
}

.bericht-bubble.bericht-other {
    border-left-color: var(--text-muted);
}

.bericht-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.bericht-afzender {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.bericht-datum {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

.bericht-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.2s;
}

.bericht-delete-btn:hover {
    opacity: 1;
    background: var(--error-color);
}

.bericht-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

.bericht-original-btn {
    margin-top: 8px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.bericht-original-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bericht-original {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    max-height: 200px;
    overflow-y: auto;
}

/* Bericht Input */
.bericht-input-container {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.bericht-input-container textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    resize: none;
    font-family: inherit;
}

.bericht-input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bericht-input-container textarea::placeholder {
    color: var(--text-muted);
}

/* Button Styles */
.btn-primary {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    padding: 10px 20px;
    background: var(--error-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    filter: brightness(0.9);
}

.btn-danger:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* Media Tab */
.media-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.media-filter-buttons {
    display: flex;
    gap: 6px;
}

.media-filter-btn {
    padding: 6px 12px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.media-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.media-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.media-actions {
    display: flex;
    gap: 8px;
}

.media-upload-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.media-grid-container {
    flex: 1;
    overflow-y: auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.media-item {
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.media-item:hover {
    border-color: var(--primary-color);
}

.media-item.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.media-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.media-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.media-thumbnail {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-icon {
    font-size: 36px;
    opacity: 0.5;
}

.media-info {
    padding: 8px 10px;
}

.media-name {
    display: block;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.media-date {
    font-size: 10px;
    color: var(--text-muted);
}

.media-actions-dropdown {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-item:hover .media-actions-dropdown {
    opacity: 1;
}

.media-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-surface);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-action-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 90%;
}

.modal-content h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Image Preview Modal */
.image-preview-modal {
    background: rgba(0, 0, 0, 0.95);
}

.image-preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
}

.image-preview-close:hover {
    color: var(--primary-color);
}

/* Cases Pagination */
.cases-pagination {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-secondary);
    flex-shrink: 0;
}

/* ========================================
   GARANTIE AANVRAGEN SPECIFIC STYLES
   ======================================== */

/* Garantie Status Colors */
.status-dot.garantie-status-geen {
    background-color: #9ca3af !important;
}

.status-dot.garantie-status-aangemaakt {
    background-color: #3b82f6 !important;
}

.status-dot.garantie-status-onderweg {
    background-color: #8b5cf6 !important;
}

.status-dot.garantie-status-verlopen {
    background-color: #fbbf24 !important;
}

.status-dot.garantie-status-bezorgd {
    background-color: #ef4444 !important;
}

.status-dot.garantie-status-behandeling {
    background-color: #f97316 !important;
}

.status-dot.garantie-status-afgehandeld {
    background-color: #22c55e !important;
}

/* Status dots in filter buttons */
.cases-filter-btn .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}

.cases-filter-btn {
    display: inline-flex;
    align-items: center;
}

/* Garantie Labels Section */
.garantie-labels-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.garantie-label-card {
    background: var(--bg-surface-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--border-color);
}

.garantie-label-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.garantie-label-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.garantie-label-tracking {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: 6px;
}

.garantie-label-tracking label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.garantie-label-tracking span {
    font-size: 14px;
    color: var(--text-primary);
    font-family: monospace;
}

.garantie-label-actions {
    display: flex;
    gap: 10px;
}

/* Garantie Modal */
.garantie-modal-content {
    min-width: 800px;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.garantie-modal-body {
    margin-bottom: 20px;
}

.garantie-order-lookup {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.garantie-order-lookup label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.garantie-order-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.garantie-order-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    height: 42px;
    box-sizing: border-box;
}

.garantie-order-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.garantie-order-input .btn-primary {
    height: 42px;
    padding: 0 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garantie-lookup-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

.lookup-success {
    color: var(--success-text);
}

.lookup-error {
    color: var(--error-text);
}

/* Product search in garantie modal */
.garantie-product-search {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.garantie-product-search input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    height: 42px;
    box-sizing: border-box;
}

.garantie-product-search .btn-secondary {
    height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.garantie-product-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface-secondary);
}

.product-search-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.product-search-item:last-child {
    border-bottom: none;
}

.product-search-item:hover {
    background: var(--primary-color);
    color: white;
}

.product-search-item .product-naam {
    font-size: 13px;
    font-weight: 500;
}

.product-search-item .product-ean {
    font-size: 12px;
    color: var(--text-muted);
}

.product-search-item:hover .product-ean {
    color: rgba(255, 255, 255, 0.8);
}

.search-loading,
.search-no-results,
.search-error {
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.search-error {
    color: var(--error-text);
}

.garantie-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.garantie-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.garantie-form-group.full-width {
    grid-column: span 3;
}

.garantie-form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.garantie-form-group input,
.garantie-form-group select,
.garantie-form-group textarea {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
}

.garantie-form-group input:focus,
.garantie-form-group select:focus,
.garantie-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.garantie-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Garantie Status Buttons */
.garantie-status-buttons {
    flex-wrap: wrap;
}

.garantie-status-buttons .case-status-btn {
    font-size: 12px;
    padding: 8px 12px;
}

/* Opmerkingen Toggle */
.opmerkingen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.opmerkingen-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.opmerkingen-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opmerkingen-toggle .toggle-label {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.opmerkingen-toggle .toggle-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Small switch variant */
.switch.small {
    width: 36px;
    height: 20px;
}

.switch.small .slider-round:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.switch.small input:checked + .slider-round:before {
    transform: translateX(16px);
}

/* Editable Detail Fields */
.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.section-header-with-action h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Collapsible sections */
.collapsible .collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapsible .collapsible-title {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.collapsible .collapse-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    display: inline-block;
    margin-left: 6px;
}

.collapsible:not(.collapsed) .collapse-icon {
    transform: rotate(90deg);
}

.collapsible .klantgegevens-summary {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
    display: none;
}

.collapsible.collapsed .klantgegevens-summary {
    display: inline;
}

.collapsible .collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

.collapsible.collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
}

.section-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.section-header-actions .btn-small {
    min-width: 90px;
    text-align: center;
}

/* Hide save button when collapsed */
.collapsible.collapsed .section-header-actions #saveKlantgegevens {
    display: none;
}

.klantvraag-link {
    text-decoration: none;
}

/* Collapsible klantgegevens in modal form */
.garantie-form-group.collapsible .collapsible-header {
    padding: 0;
}

.garantie-form-group.collapsible .collapsible-header label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.garantie-form-group.collapsible .klantgegevens-summary {
    font-weight: 400;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.editable-grid {
    grid-template-columns: repeat(4, 1fr);
}

.editable-grid .case-info-item.full-width {
    grid-column: span 4;
}

.editable-grid .case-info-item.half-width {
    grid-column: span 1;
}

.detail-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.detail-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.detail-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.detail-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Garantie */
@media (max-width: 700px) {
    .garantie-modal-content {
        min-width: auto;
        width: 95%;
    }

    .garantie-form-grid {
        grid-template-columns: 1fr;
    }

    .garantie-form-group.full-width {
        grid-column: span 1;
    }

    .editable-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .editable-grid .case-info-item.full-width {
        grid-column: span 2;
    }

    .editable-grid .case-info-item.half-width {
        grid-column: span 1;
    }

    .garantie-labels-section {
        grid-template-columns: 1fr;
    }

    .garantie-label-actions {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .cases-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .cases-list-panel {
        height: 300px;
        max-height: 300px;
    }

    .cases-detail-panel {
        height: calc(100vh - 450px);
        min-height: 300px;
    }

    .cases-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .cases-filter-group {
        flex-wrap: wrap;
    }

    .cases-search-box {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .case-status-buttons {
        flex-direction: column;
    }

    .case-status-btn {
        width: 100%;
        justify-content: center;
    }

    .media-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .media-actions {
        justify-content: center;
    }
}

/* ========================================
   STATUS INDICATOR (NAVBAR)
   ======================================== */

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-left: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.status-indicator:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color 0.3s;
}

.status-dot.all-ok {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.status-dot.has-errors {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% {
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    }
}

.status-count {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

/* ========================================
   STATUS PAGE STYLES
   ======================================== */

.status-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.status-summary-card {
    background: var(--bg-surface);
    padding: 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    height: 100%;
}

.status-summary-card.success {
    border-left-color: var(--success-color);
}

.status-summary-card.error {
    border-left-color: var(--error-color);
}

.status-summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-summary-card.success .status-summary-value {
    color: var(--success-color);
}

.status-summary-card.error .status-summary-value {
    color: var(--error-color);
}

/* Status Page Container - prevent scrolling */
.status-container {
    height: calc(100vh - 56px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.status-container .page-header {
    flex-shrink: 0;
}

.status-container .status-summary-cards {
    flex-shrink: 0;
}

/* Two Column Layout */
.status-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.status-columns .content-box {
    margin-bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.status-columns .content-box h2 {
    flex-shrink: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

/* Status Search Bar */
.status-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.status-search-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.status-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.status-search-input::placeholder {
    color: var(--text-muted);
}

/* Scrollable Content */
.status-scroll-container {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Status Pagination */
.status-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

.status-pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-pagination-buttons {
    display: flex;
    gap: 8px;
}

.status-pagination-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.status-pagination-btn:hover:not(:disabled) {
    background: var(--bg-surface-hover);
    border-color: var(--primary-color);
}

.status-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Table */
.status-table {
    width: 100%;
}

.status-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-success {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.status-badge.status-error {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.status-badge.status-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.status-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}

.status-link:hover {
    text-decoration: underline;
}

/* Servers Grid */
.status-servers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-server-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.status-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-server-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.status-server-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.status-server-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.status-metric {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 70px;
}

.status-metric-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Usage Bars */
.usage-bar-container {
    flex: 1;
    position: relative;
    height: 20px;
    background: var(--bg-surface-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-bar.usage-low {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.usage-bar.usage-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.usage-bar.usage-high {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.usage-bar-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .status-container {
        height: auto;
        overflow: visible;
    }

    .status-columns {
        grid-template-columns: 1fr;
        flex: none;
    }

    .status-columns .content-box {
        height: calc(50vh - 100px);
        min-height: 300px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .status-summary-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STATUS PAGE EXTENDED STYLES
   ======================================== */

/* Extended Summary Cards (7 cards) */
.status-summary-extended {
    grid-template-columns: repeat(7, 1fr);
}

.status-summary-card.enabled {
    border-left-color: #3b82f6;
}

.status-summary-card.enabled .status-summary-value {
    color: #3b82f6;
}

.status-summary-card.unknown {
    border-left-color: #8b5cf6;
}

.status-summary-card.unknown .status-summary-value {
    color: #8b5cf6;
}

.status-summary-card.disabled {
    border-left-color: #6b7280;
}

.status-summary-card.disabled .status-summary-value {
    color: #6b7280;
}

.status-summary-card.deprecated {
    border-left-color: #f59e0b;
}

.status-summary-card.deprecated .status-summary-value {
    color: #f59e0b;
}

/* Filters Row */
.status-filters-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.status-filters-row .status-search-input {
    flex: 1;
    min-width: 120px;
}

.status-filter-select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 110px;
}

.status-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Action Search */
.status-action-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.status-action-search .status-search-input {
    flex: 1;
}

.status-action-search-btn {
    padding: 8px 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.status-action-search-btn:hover {
    background: var(--primary-hover);
}

/* Extended Table */
.status-table-extended {
    width: 100%;
    table-layout: fixed;
}

.status-table-extended thead {
    background: var(--primary-color);
    color: white;
}

.status-table-extended th {
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.status-table-extended td {
    padding: 8px 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-table-extended th:nth-child(1) { width: 32px; }  /* Checkbox */
.status-table-extended th:nth-child(2) { width: 60px; }  /* Run Status */
.status-table-extended th:nth-child(3) { width: 70px; }  /* State */
.status-table-extended th:nth-child(4) { width: auto; }  /* Naam - flex */
.status-table-extended th:nth-child(5) { width: 75px; }  /* Deprecated */
.status-table-extended th:nth-child(6) { width: 110px; } /* Laatste run */
.status-table-extended th:nth-child(7) { width: 50px; }  /* Acties count */
.status-table-extended th:nth-child(8) { width: 90px; }  /* Actie buttons */

.status-checkbox-col {
    width: 32px;
    text-align: center;
}

.status-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* State Badges */
.status-badge.status-enabled {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

[data-theme="dark"] .status-badge.status-enabled {
    background-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.status-badge.status-disabled {
    background-color: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

[data-theme="dark"] .status-badge.status-disabled {
    background-color: rgba(107, 114, 128, 0.25);
    color: #9ca3af;
}

/* Deprecated Tag */
.status-deprecated-tag {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

[data-theme="dark"] .status-deprecated-tag {
    background-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

/* Action Count */
.status-action-count {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* App Name (clickable) */
.status-app-name {
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.15s;
}

.status-app-name:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Actions Cell */
.status-actions-cell {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.status-action-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary-color);
}

.status-action-btn.toggle:hover {
    color: var(--primary-color);
}

.status-action-btn.view:hover {
    color: var(--primary-color);
}

/* Bulk Actions Bar */
.status-bulk-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.status-bulk-actions span {
    font-weight: 500;
    color: var(--text-primary);
}

.status-bulk-buttons {
    display: flex;
    gap: 10px;
}

.status-bulk-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.status-bulk-btn.enable {
    background: var(--success-color);
    color: white;
}

.status-bulk-btn.enable:hover {
    background: #22a83f;
}

.status-bulk-btn.disable {
    background: var(--warning-color);
    color: #000;
}

.status-bulk-btn.disable:hover {
    background: #e5ac00;
}

.status-bulk-btn.cancel {
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.status-bulk-btn.cancel:hover {
    background: var(--bg-surface-hover);
}

/* Modal Styles */
.status-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.status-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
}

.status-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.status-modal-content.status-modal-wide {
    max-width: 800px;
}

.status-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.status-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.status-modal-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.status-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Actions Group */
.status-actions-group {
    margin-bottom: 24px;
}

.status-actions-group:last-child {
    margin-bottom: 0;
}

.status-actions-group h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface-secondary);
    border-radius: 6px;
}

.status-method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-method-badge.method-get {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-method-badge.method-post {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-method-badge.method-put {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-method-badge.method-patch {
    background-color: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.status-method-badge.method-delete {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-method-badge.method-function {
    background-color: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

[data-theme="dark"] .status-method-badge.method-get {
    background-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .status-method-badge.method-post {
    background-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .status-method-badge.method-put {
    background-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .status-method-badge.method-patch {
    background-color: rgba(168, 85, 247, 0.25);
}

[data-theme="dark"] .status-method-badge.method-delete {
    background-color: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .status-method-badge.method-function {
    background-color: rgba(6, 182, 212, 0.25);
}

.status-action-details {
    flex: 1;
    min-width: 0;
}

.status-action-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    word-break: break-word;
}

.status-action-url {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Search Results */
.status-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-search-result-item {
    padding: 16px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-search-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.status-search-result-app {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.status-search-result-app:hover {
    text-decoration: underline;
}

.status-search-result-action {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-search-result-url {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Responsive adjustments for status page */
@media (max-width: 1400px) {
    .status-summary-extended {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .status-summary-extended {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .status-summary-extended {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-filters-row {
        flex-direction: column;
    }

    .status-filters-row .status-search-input,
    .status-filter-select {
        width: 100%;
    }

    .status-action-search {
        flex-direction: column;
    }

    .status-table-extended th:nth-child(5),
    .status-table-extended td:nth-child(5),
    .status-table-extended th:nth-child(7),
    .status-table-extended td:nth-child(7) {
        display: none;
    }

    .status-bulk-actions {
        left: 10px;
        right: 10px;
        transform: none;
        flex-direction: column;
        gap: 12px;
    }

    .status-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .status-summary-extended {
        grid-template-columns: 1fr;
    }

    .status-actions-cell {
        flex-direction: column;
        gap: 4px;
    }
}

/* ========================================
   LVB PAGE STYLES
   ======================================== */

/* LVB Container - Full height layout */
.lvb-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    padding-bottom: 20px;
}

.lvb-container .page-header {
    flex-shrink: 0;
}

/* Company Selector */
.lvb-company-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.lvb-company-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.lvb-company-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lvb-company-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* LVB Filters */
.lvb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.lvb-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvb-filter-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.lvb-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lvb-filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.lvb-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lvb-filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.lvb-search-box {
    margin-left: auto;
}

.lvb-search-box input {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color var(--transition-normal);
}

.lvb-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* LVB Layout */
.lvb-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* LVB Vertical Layout - zendingen boven, inhoud onder */
.lvb-layout.lvb-layout-vertical {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.lvb-layout-vertical .lvb-list-panel {
    max-height: 320px;
}

.lvb-layout-vertical .lvb-detail-panel {
    min-height: 250px;
}

/* LVB Name Switch */
.lvb-name-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvb-switch-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.lvb-switch-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.lvb-switch-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lvb-switch-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* LVB List Panel */
.lvb-list-panel {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.lvb-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.lvb-count {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 14px;
}

/* LVB Scroll Container */
.lvb-scroll-container {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* LVB Pagination */
.lvb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

.lvb-pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.lvb-pagination-buttons {
    display: flex;
    gap: 8px;
}

.lvb-pagination-btn {
    padding: 6px 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lvb-pagination-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.lvb-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* LVB Table */
.lvb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lvb-table thead {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.lvb-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.lvb-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.lvb-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.lvb-table tbody tr.selected {
    background-color: rgba(59, 130, 246, 0.15);
}

.lvb-table td {
    padding: 10px;
    vertical-align: middle;
    color: var(--text-primary);
}

.zending-naam {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* LVB Verwerkt Icon */
.lvb-verwerkt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.lvb-verwerkt-icon.verwerkt-ja {
    background-color: var(--success-bg);
    color: var(--success-color);
}

.lvb-verwerkt-icon.verwerkt-nee {
    background-color: var(--error-bg);
    color: var(--error-color);
}

/* LVB Status Badge */
.lvb-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.lvb-status.status-announced {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.lvb-status.status-transit {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.lvb-status.status-progress {
    background-color: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.lvb-status.status-done {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.lvb-status.status-cancelled {
    background-color: var(--error-bg);
    color: var(--error-text);
}

/* LVB Detail Panel */
.lvb-detail-panel {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.lvb-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 40px;
}

.lvb-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.lvb-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lvb-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--primary-color);
    color: white;
    flex-shrink: 0;
}

.lvb-detail-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lvb-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.lvb-close-btn:hover {
    opacity: 1;
}

/* LVB Detail Actions */
.lvb-detail-actions {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lvb-action-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lvb-verwerkt-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvb-verwerkt-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.lvb-verwerkt-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.lvb-verwerkt-badge.verwerkt {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.lvb-verwerkt-badge.niet-verwerkt {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.lvb-verwerken-btn {
    padding: 6px 14px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.lvb-verwerken-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.lvb-verwerken-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lvb-opmerking-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lvb-opmerking-row label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.lvb-opmerking-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lvb-opmerking-input-group textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.lvb-opmerking-input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lvb-opmerking-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.lvb-opmerking-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.lvb-opmerking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lvb-detail-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    flex-shrink: 0;
}

.lvb-reference-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvb-switch-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.lvb-switch-btn {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.lvb-switch-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lvb-switch-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.lvb-product-search {
    flex: 1;
}

.lvb-product-search input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.lvb-product-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lvb-detail-content .lvb-scroll-container {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.lvb-detail-content .lvb-pagination {
    border-top: 1px solid var(--border-color);
}

/* LVB Inhoud Table */
.lvb-inhoud-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lvb-inhoud-table thead {
    background: var(--bg-surface-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.lvb-inhoud-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
}

.lvb-inhoud-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.lvb-inhoud-table td {
    padding: 8px;
    vertical-align: middle;
    color: var(--text-primary);
}

.lvb-inhoud-table .ean-cell {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.lvb-inhoud-table .naam-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* LVB Row Color Coding */
.lvb-row-red {
    background-color: rgba(220, 53, 69, 0.1);
}

.lvb-row-red:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

.lvb-row-orange {
    background-color: rgba(255, 193, 7, 0.1);
}

.lvb-row-orange:hover {
    background-color: rgba(255, 193, 7, 0.2);
}

.lvb-row-green {
    background-color: rgba(40, 167, 69, 0.1);
}

.lvb-row-green:hover {
    background-color: rgba(40, 167, 69, 0.2);
}

/* LVB Responsive */
@media (max-width: 1200px) {
    .lvb-container {
        height: auto;
        min-height: calc(100vh - 56px);
    }

    .lvb-layout:not(.lvb-layout-vertical) {
        grid-template-columns: 1fr;
        flex: none;
    }

    .lvb-layout:not(.lvb-layout-vertical) .lvb-list-panel {
        height: calc(50vh - 100px);
        min-height: 350px;
        max-height: none;
    }

    .lvb-layout:not(.lvb-layout-vertical) .lvb-detail-panel {
        height: calc(50vh - 100px);
        min-height: 350px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .lvb-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .lvb-filter-group {
        flex-wrap: wrap;
    }

    .lvb-search-box {
        margin-left: 0;
    }

    .lvb-search-box input {
        width: 100%;
        min-width: auto;
    }

    .lvb-company-selector {
        flex-wrap: wrap;
    }

    .lvb-company-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .lvb-pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========================================
   RETOUREN PAGE STYLES
   ======================================== */

/* Retour Item in List */
.retour-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.retour-item:hover {
    background: var(--bg-surface-hover);
}

.retour-item.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

/* Fulfilment Badge in List */
.retour-fulfilment {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.retour-fulfilment.fbr {
    background: var(--success-color);
    color: white;
}

.retour-fulfilment.lvb {
    background: var(--platform-bol);
    color: white;
}

/* Retour Product Section */
.retour-product-section {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
}

.retour-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.retour-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.retour-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.retour-product-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.retour-product-variant {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.retour-product-quantity {
    font-size: 12px;
    color: var(--text-primary);
}

.retour-fulfilment-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.retour-fulfilment-badge.fbr {
    background: var(--success-color);
    color: white;
}

.retour-fulfilment-badge.lvb {
    background: var(--platform-bol);
    color: white;
}

/* IDs Grid */
.retour-ids-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.retour-id-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.retour-id-item label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.retour-id-value {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-primary);
    font-family: monospace;
    background: var(--bg-surface-secondary);
    padding: 5px 8px;
    border-radius: 4px;
}

.retour-id-value span {
    flex: 1;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn, .track-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover, .track-btn:hover {
    opacity: 1;
}

/* Retour Reason Box */
.retour-reason-box {
    background: var(--bg-surface-secondary);
    border-radius: 6px;
    padding: 10px;
}

.retour-reason-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.retour-reason-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.retour-reason-comments {
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

.retour-reason-comments strong {
    font-style: normal;
    color: var(--text-primary);
}

/* Tracking Info */
.retour-tracking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.retour-koerier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
}

.retour-koerier-badge.postnl-3s {
    background: #ff6600;
    color: white;
}

.retour-koerier-badge.belgium-post {
    background: #ffc72c;
    color: #333;
}

.retour-koerier-badge.dhl {
    background: #ffcc00;
    color: #333;
}

.retour-tracking-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
}

.retour-tracking-status.status-delivered {
    background: #dc3545;
    color: white;
}

.retour-tracking-status.status-transit {
    background: #8b5cf6;
    color: white;
}

.retour-tracking-status.status-pickup {
    background: var(--primary-color);
    color: white;
}

.retour-tracking-update {
    font-size: 11px;
    color: var(--text-muted);
}

/* Retour Verwerken Form */
.retour-verwerken-form {
    background: var(--bg-surface-secondary);
    border-radius: 6px;
    padding: 12px;
}

.retour-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.retour-form-row > label:first-child {
    width: 70px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.retour-select {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
}

.retour-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.retour-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.retour-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.retour-checkbox-row {
    margin-top: 4px;
}

.retour-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
}

.retour-checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Products List for Voorraad */
.retour-products-section {
    margin-top: 8px;
    margin-bottom: 8px;
}

.retour-products-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.retour-products-list {
    background: var(--bg-surface);
    border-radius: 4px;
    padding: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.retour-products-loading,
.retour-products-error,
.retour-products-empty {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
}

.retour-products-error {
    color: var(--error-color);
}

.retour-product-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.retour-product-row:last-child {
    border-bottom: none;
}

.retour-product-checkbox {
    flex-shrink: 0;
}

.retour-product-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.retour-product-name {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.retour-product-multiplier {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.retour-product-qty {
    width: 45px;
    padding: 3px 5px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 11px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    text-align: center;
    flex-shrink: 0;
}

.retour-product-qty:focus {
    outline: none;
    border-color: var(--primary-color);
}

.retour-product-total {
    font-size: 10px;
    color: var(--text-muted);
    width: 35px;
    text-align: right;
    flex-shrink: 0;
}

.retour-submit-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

.retour-handled-indicator {
    text-align: center;
    padding: 12px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-afgehandeld {
    background: var(--success-color);
    color: white;
}

/* Compact section styling for Retouren Details tab */
#tabDetails .case-detail-section {
    margin-bottom: 12px;
}

#tabDetails .case-detail-section h3 {
    font-size: 12px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

#tabDetails {
    padding: 12px;
    gap: 0;
}

/* Responsive adjustments for Retouren */
@media (max-width: 768px) {
    .retour-product-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .retour-product-image {
        width: 100px;
        height: 100px;
    }

    .retour-ids-grid {
        grid-template-columns: 1fr;
    }

    .retour-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .retour-form-row > label:first-child {
        width: auto;
        margin-bottom: 3px;
    }

    .retour-tracking-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   MYPARCEL LABELS
   ======================================== */

.myparcel-labels-info {
    margin-bottom: 15px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-surface-secondary);
    border-radius: 6px;
    margin-bottom: 8px;
}

.label-row:last-child {
    margin-bottom: 0;
}

.label-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-type {
    font-weight: 500;
    color: var(--text-secondary);
}

.label-barcode {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

a.label-barcode.label-tracking-link {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

a.label-barcode.label-tracking-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.myparcel-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.myparcel-buttons .btn-primary,
.myparcel-buttons .btn-secondary {
    flex: 1;
    min-width: 150px;
}

.myparcel-modal-body {
    min-height: 150px;
}

.myparcel-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.myparcel-form .form-group {
    margin-bottom: 15px;
}

.myparcel-form .form-group > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.package-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.package-type-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary-light);
}

.package-type-item.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}

.package-type-radio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-type-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.package-type-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.package-type-name {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.package-type-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Prio Option */
.prio-option {
    padding: 15px;
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.prio-option .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.prio-option .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.prio-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   RETOURENONDERZOEK SECTION
   ======================================== */

.onderzoek-section {
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.onderzoek-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: var(--bg-surface);
    border-bottom: 1px solid transparent;
    transition: background-color var(--transition-fast);
    user-select: none;
}

.onderzoek-header:hover {
    background: var(--bg-surface-hover);
}

.onderzoek-header span:first-child {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.onderzoek-toggle {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.onderzoek-section.expanded .onderzoek-toggle {
    transform: rotate(180deg);
}

.onderzoek-section.expanded .onderzoek-header {
    border-bottom-color: var(--border-color);
}

.onderzoek-content {
    padding: 20px;
}

.onderzoek-form,
.onderzoek-page-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.onderzoek-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-width: 200px;
    flex: 1;
}

.onderzoek-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.onderzoek-field input[type="text"],
.onderzoek-field input[type="date"] {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.onderzoek-field input[type="text"]:focus,
.onderzoek-field input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.onderzoek-field-row {
    display: flex;
    gap: 10px;
}

.onderzoek-field-row .onderzoek-field {
    min-width: 140px;
    flex: 0 1 auto;
}

.onderzoek-radio-group {
    display: flex;
    gap: 15px;
}

.onderzoek-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.onderzoek-radio-group input[type="radio"] {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.onderzoek-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.onderzoek-dropdown.show {
    display: block;
}

.onderzoek-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color var(--transition-fast);
}

.onderzoek-dropdown-item:last-child {
    border-bottom: none;
}

.onderzoek-dropdown-item:hover {
    background: var(--bg-surface-hover);
}

.onderzoek-dropdown-item.selected {
    background: rgba(59, 130, 246, 0.1);
}

.onderzoek-dropdown-naam {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.onderzoek-dropdown-ean {
    font-size: 12px;
    color: var(--text-secondary);
}

.onderzoek-dropdown-empty {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

#onderzoekStartBtn {
    white-space: nowrap;
    padding: 10px 20px;
}

/* Results Section */
.onderzoek-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.onderzoek-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.onderzoek-stat {
    background: var(--bg-surface-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.onderzoek-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.onderzoek-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.onderzoek-map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface-secondary);
    position: relative;
}

.onderzoek-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
}

.onderzoek-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.onderzoek-no-results-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Mapbox popup styling */
.mapboxgl-popup-content {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    box-shadow: var(--shadow-md) !important;
}

.mapboxgl-popup-close-button {
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    padding: 4px 8px !important;
}

.mapboxgl-popup-close-button:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
}

[data-theme="dark"] .mapboxgl-popup-tip {
    border-top-color: var(--bg-surface) !important;
}

.onderzoek-popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.onderzoek-popup-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.onderzoek-popup-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Detail Card (below map) */
.onderzoek-detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.onderzoek-detail-card-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.onderzoek-detail-card-header p {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.onderzoek-card-loading,
.onderzoek-card-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.onderzoek-card-error {
    color: var(--error-text);
}

/* Detail Grid Layout */
.onderzoek-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.onderzoek-detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Reason breakdown */
.onderzoek-reason-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onderzoek-reason-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onderzoek-reason-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onderzoek-reason-name {
    font-size: 13px;
    color: var(--text-primary);
}

.onderzoek-reason-stats {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.onderzoek-reason-bar-container {
    height: 8px;
    background: var(--bg-surface-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.onderzoek-reason-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-normal);
}

/* Returns table */
.onderzoek-returns-table {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.onderzoek-returns-table table {
    width: 100%;
    border-collapse: collapse;
}

.onderzoek-returns-table th,
.onderzoek-returns-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.onderzoek-returns-table th {
    background: var(--bg-surface-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.onderzoek-returns-table td {
    font-size: 13px;
    color: var(--text-primary);
}

/* Duplicates Section */
.onderzoek-duplicates-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.onderzoek-duplicates-header h2 {
    margin: 0;
    color: var(--error-color);
}

.onderzoek-duplicates-header p {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.onderzoek-duplicates-table {
    width: 100%;
    border-collapse: collapse;
}

.onderzoek-duplicates-table th,
.onderzoek-duplicates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.onderzoek-duplicates-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-surface-secondary);
}

.onderzoek-duplicates-table td {
    font-size: 13px;
    color: var(--text-primary);
}

.onderzoek-duplicates-table tr:hover td {
    background: var(--bg-surface-hover);
}

.onderzoek-match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.onderzoek-match-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--error-bg);
    color: var(--error-color);
    cursor: help;
}

/* Heatmap toggle */
.onderzoek-map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onderzoek-map-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast);
}

.onderzoek-map-toggle:hover {
    background: var(--bg-surface-hover);
}

.onderzoek-map-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.onderzoek-map-toggle input {
    display: none;
}

/* Legend */
.onderzoek-legend {
    position: absolute;
    bottom: 30px;
    left: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    min-width: 150px;
}

.onderzoek-legend-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.onderzoek-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.onderzoek-legend-item:last-child {
    margin-bottom: 0;
}

.onderzoek-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Heatmap gradient legend */
.onderzoek-legend-gradient {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(to right, rgba(0, 255, 0, 0.6), rgba(255, 255, 0, 0.7), rgba(255, 165, 0, 0.8), rgba(255, 0, 0, 0.9));
    margin-bottom: 4px;
}

.onderzoek-legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.onderzoek-legend-markers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onderzoek-legend-marker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
}

.onderzoek-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .onderzoek-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .onderzoek-returns-table {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .onderzoek-form,
    .onderzoek-page-form {
        flex-direction: column;
    }

    .onderzoek-field {
        min-width: 100%;
    }

    .onderzoek-field-row {
        flex-direction: column;
    }

    .onderzoek-field-row .onderzoek-field {
        min-width: 100%;
    }

    .onderzoek-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .onderzoek-map-container {
        height: 350px;
    }

    .onderzoek-detail-card-header {
        flex-direction: column;
        gap: 15px;
    }

    .onderzoek-detail-card-header .btn-secondary {
        width: 100%;
    }
}

/* ========================================
   ADVERTENTIES PAGE
   ======================================== */

/* Summary Cards */
.ads-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ads-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ads-summary-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ads-summary-card .card-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Filters */
.ads-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ads-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ads-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ads-filter-buttons {
    display: flex;
    gap: 4px;
}

.ads-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.ads-filter-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.ads-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ads-search-box {
    margin-left: auto;
}

.ads-search-box input {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 220px;
    transition: border-color var(--transition-fast);
}

.ads-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Campaign Panel - viewport-fitted layout */
.ads-campaign-panel {
    display: flex;
    flex-direction: column;
    /* 100vh - navbar(56px) - container padding(80px) - page header(25px) - summary cards(~100px) - filters(~50px) - gaps(~40px) */
    height: calc(100vh - 351px);
    min-height: 250px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ads-campaign-scroll {
    flex: 1;
    overflow-y: auto;
}

.ads-campaign-scroll::-webkit-scrollbar {
    width: 6px;
}

.ads-campaign-scroll::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.ads-campaign-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.ads-campaign-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Campaign Table */
.ads-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ads-table {
    width: 100%;
    border-collapse: collapse;
}

.ads-table thead {
    background: var(--bg-surface-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.ads-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.ads-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color-light);
}

.ads-table tbody tr {
    cursor: pointer;
    transition: background var(--transition-fast);
}

.ads-table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.ads-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.ads-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ads-status-badge.enabled {
    background: var(--success-bg);
    color: var(--success-text);
}

.ads-status-badge.paused {
    background: var(--warning-bg);
    color: var(--warning-text);
}

/* Constraint Badge */
.constraint-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    margin: 1px 2px;
    white-space: nowrap;
}

.constraint-badges {
    margin-top: 4px;
}

.ads-table tbody tr.has-constraints {
    background: rgba(220, 53, 69, 0.06);
}

.ads-table tbody tr.has-constraints:hover {
    background: rgba(220, 53, 69, 0.12);
}

.ads-status-badge.ended {
    background: var(--error-bg);
    color: var(--error-text);
}

/* Detail View */
.ads-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ads-back-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.ads-back-btn:hover {
    background: var(--bg-surface-hover);
}

.ads-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ads-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ads-detail-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tabs */
.ads-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.ads-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.ads-tab:hover {
    color: var(--text-primary);
}

.ads-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.ads-tab-content {
    display: none;
}

.ads-tab-content.active {
    display: block;
}

/* Section blocks (stacked detail view) */
.ads-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.ads-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Product thumbnails */
.ads-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: contain;
}

.ads-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ads-product-ean {
    white-space: nowrap;
}

/* KPI Grid */
.ads-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ads-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.ads-kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ads-kpi-card .kpi-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Period Filter */
.ads-period-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.ads-period-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.ads-period-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.ads-period-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Prestaties Table Panel */
.ads-prestaties-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ads-prestaties-scroll {
    flex: 1;
    overflow-y: auto;
}

.ads-prestaties-scroll::-webkit-scrollbar {
    width: 6px;
}

.ads-prestaties-scroll::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.ads-prestaties-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.ads-prestaties-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Chart Container */
.ads-chart-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ads-chart-container .chart-area {
    width: 100%;
    height: 350px;
}

/* Loading & Empty */
.ads-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.ads-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.ads-pagination {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-secondary);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ads-summary-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ads-summary-card {
        padding: 12px 8px;
    }

    .ads-summary-card .card-value {
        font-size: 1.3rem;
    }

    .ads-summary-card .card-label {
        font-size: 0.75rem;
    }

    .ads-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .ads-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ads-filter-buttons {
        flex-wrap: wrap;
    }

    .ads-search-box {
        margin-left: 0;
    }

    .ads-search-box input {
        width: 100%;
        min-width: unset;
    }

    /* Campaign panel: no fixed height on mobile */
    .ads-campaign-panel {
        height: auto;
        min-height: 0;
    }

    /* Campaign table: card layout */
    .ads-campaign-panel .ads-table thead {
        display: none;
    }

    .ads-campaign-panel .ads-table,
    .ads-campaign-panel .ads-table tbody {
        display: block;
    }

    .ads-campaign-panel .ads-table tbody tr {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 12px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .ads-campaign-panel .ads-table td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
        border-bottom: none;
    }

    .ads-campaign-panel .ads-table td[data-label]::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 1px;
    }

    .ads-campaign-panel .ads-table td[data-label=""]::before {
        display: none;
    }

    /* Status switch: left column */
    .ads-campaign-panel .ads-table td:first-child {
        grid-row: 1 / 3;
        justify-content: center;
    }

    /* Campaign name: full row */
    .ads-campaign-panel .ads-table td[data-label="Campagne"] {
        font-weight: 600;
    }

    /* Detail view */
    .ads-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ads-detail-title {
        font-size: 1.1rem;
    }

    .ads-detail-meta {
        gap: 8px;
    }

    .ads-detail-meta span {
        font-size: 0.8rem;
    }

    .ads-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ads-kpi-card {
        padding: 12px;
    }

    .ads-kpi-card .kpi-value {
        font-size: 1.1rem;
    }

    /* Prestaties table: card layout */
    .ads-prestaties-panel .ads-table thead {
        display: none;
    }

    .ads-prestaties-panel .ads-table,
    .ads-prestaties-panel .ads-table tbody {
        display: block;
    }

    .ads-prestaties-panel .ads-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .ads-prestaties-panel .ads-table td {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
        border-bottom: none;
        font-size: 0.85rem;
    }

    .ads-prestaties-panel .ads-table td[data-label]::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 1px;
    }

    /* Datum full width */
    .ads-prestaties-panel .ads-table td[data-label="Datum"] {
        grid-column: 1 / -1;
        font-weight: 600;
        padding-bottom: 4px;
    }

    .ads-prestaties-panel {
        overflow: visible;
    }

    .ads-prestaties-scroll {
        overflow: visible;
        max-height: none;
    }

    /* Detail sub-tables (producten, categorieen etc.) */
    .ads-table-container .ads-table thead {
        display: none;
    }

    .ads-table-container .ads-table,
    .ads-table-container .ads-table tbody {
        display: block;
    }

    .ads-table-container .ads-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .ads-table-container .ads-table td {
        padding: 2px 0;
        border-bottom: none;
    }

    .ads-table-container .ads-table td:first-child {
        flex-shrink: 0;
    }

    .ads-table-container .ads-table td:nth-child(2),
    .ads-table-container .ads-table td:nth-child(3) {
        flex: 1;
        min-width: 0;
    }

    /* Period filter compact */
    .ads-period-filter {
        flex-wrap: wrap;
        gap: 6px;
    }

    .ads-period-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   WINSTBEREKENING PAGE STYLES
   ======================================== */

/* Company Selector */
.wb-company-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.wb-company-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.wb-company-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wb-company-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Invoice Table */
.wb-table-container {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.wb-invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-invoice-table th {
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.wb-invoice-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    font-size: 14px;
    color: var(--text-primary);
}

.wb-invoice-table tr:hover {
    background: var(--bg-surface-hover);
}

.wb-action-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.wb-action-btn:hover {
    background: var(--primary-hover);
}

/* Profit indicators */
.profit-positive {
    color: var(--success-color) !important;
    font-weight: 600;
}

.profit-negative {
    color: var(--error-color) !important;
    font-weight: 600;
}

.profit-unknown {
    color: var(--text-muted) !important;
}

/* Subtitle */
.wb-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Loading overlay */
.wb-loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: var(--text-secondary);
}

/* Summary Cards */
.wb-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wb-summary-card {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.wb-summary-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wb-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Warning Banner */
.wb-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--warning-bg);
    color: var(--warning-text);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.wb-warning-btn {
    padding: 6px 14px;
    background: var(--warning-color);
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.wb-warning-btn:hover {
    opacity: 0.9;
}

/* Overige kosten info */
.wb-overige-kosten {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-surface);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

/* Specification Table */
.wb-table-wrapper {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.wb-table-scroll {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.wb-spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.wb-spec-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.wb-spec-table th {
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.wb-spec-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color-light);
    font-size: 13px;
    color: var(--text-primary);
}

.wb-spec-table tr:hover {
    background: var(--bg-surface-hover);
}

.wb-kostenpost-header {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-editable {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    cursor: text;
    padding: 6px 8px !important;
    min-width: 80px;
}

.wb-editable:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

.wb-winst-cell {
    font-weight: 600;
}

.wb-old-profit {
    background: rgba(255, 193, 7, 0.15) !important;
    font-style: italic;
}

.number-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ean-cell {
    font-family: monospace;
    font-size: 12px;
}

.naam-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Save Section */
.wb-save-section {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.wb-save-section h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
}

.wb-save-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.wb-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.wb-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.wb-action-buttons {
    display: flex;
    gap: 12px;
}

.wb-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wb-btn-primary {
    background: var(--primary-color);
    color: white;
}

.wb-btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.wb-btn-success {
    background: var(--success-color);
    color: white;
}

.wb-btn-success:hover:not(:disabled) {
    opacity: 0.9;
}

.wb-btn-secondary {
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.wb-btn-secondary:hover:not(:disabled) {
    background: var(--bg-surface-hover);
}

/* Modal */
.wb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.wb-modal-overlay.active {
    display: flex;
}

.wb-modal {
    background: var(--bg-surface);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.wb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
    color: white;
}

.wb-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.wb-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
}

.wb-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.wb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.wb-modal-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-modal-table th {
    background: var(--bg-surface-secondary);
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.wb-modal-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color-light);
}

.wb-modal-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.wb-modal-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
}

/* Back link */
.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Platform card active status for Bol */
.platform-card.bol .status-active {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .wb-company-selector {
        flex-wrap: wrap;
    }

    .wb-company-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .wb-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .wb-save-options {
        flex-direction: column;
    }

    .wb-action-buttons {
        flex-direction: column;
    }

    .wb-warning {
        flex-direction: column;
        align-items: flex-start;
    }

    .wb-overige-kosten {
        flex-direction: column;
        gap: 8px;
    }
}

/* BTW Berekening */
.btw-upload-section {
    margin-bottom: 24px;
}

.btw-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-surface);
}

.btw-upload-area:hover,
.btw-upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--bg-surface-hover);
}

.btw-upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.btw-upload-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.btw-file-status {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btw-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
}

.btw-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btw-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btw-results-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.btw-result-table {
    width: 100%;
    border-collapse: collapse;
}

.btw-result-table th {
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btw-result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-primary);
    user-select: text;
    cursor: text;
}

.btw-result-table tr:hover {
    background: var(--bg-surface-hover);
}

.btw-amount {
    font-family: 'Courier New', Courier, monospace;
    text-align: right;
    white-space: nowrap;
}

.btw-totaal-row {
    background: var(--bg-surface-secondary);
    font-weight: 600;
}

.btw-totaal-row td {
    border-bottom: none;
    border-top: 2px solid var(--border-color);
}

/* ========================================
   REVIEWS PAGE
   ======================================== */

/* Stats Bar */
.rv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.rv-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.rv-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rv-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.rv-stat-warn {
    border-color: var(--status-warning, #f59e0b);
}

.rv-stat-warn .rv-stat-value {
    color: var(--status-warning, #f59e0b);
}

.rv-stat-danger {
    border-color: var(--status-error, #ef4444);
}

.rv-stat-danger .rv-stat-value {
    color: var(--status-error, #ef4444);
}

.rv-stat-warning {
    font-size: 11px;
    margin-top: 6px;
    font-weight: 500;
}

.rv-stat-warn .rv-stat-warning {
    color: var(--status-warning, #f59e0b);
}

.rv-stat-danger .rv-stat-warning {
    color: var(--status-error, #ef4444);
}

/* Tabs */
.rv-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.rv-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rv-tab:hover {
    color: var(--text-primary);
}

.rv-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.rv-tab-badge {
    background: var(--error-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Tab Content */
.rv-tab-content {
    display: none;
}

.rv-tab-content.active {
    display: block;
}

/* Toolbar */
.rv-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* Loading / Empty */
.rv-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.rv-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.rv-empty p {
    font-size: 15px;
}

/* Reviews Grid */
.rv-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Review Card */
.rv-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.rv-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rv-card-read {
    opacity: 0.6;
}

.rv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.rv-card-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.rv-card-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.rv-card-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rv-card-product-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-card-ean {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    text-decoration: none;
}

.rv-card-ean:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.rv-btn-read {
    flex-shrink: 0;
}

.rv-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.rv-btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.rv-btn-exclude:hover {
    background: var(--error-color);
    border-color: var(--error-color);
}

/* Star Ratings */
.rv-card-stars {
    margin-bottom: 10px;
}

.rv-star {
    font-size: 18px;
    color: var(--border-color);
    line-height: 1;
}

.rv-star.filled {
    color: #f59e0b;
}

/* Card Meta */
.rv-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
}

.rv-author {
    font-weight: 500;
    color: var(--text-primary);
}

.rv-verified-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--success-bg);
    color: var(--success-text);
}

.rv-date {
    font-size: 12px;
    color: var(--text-muted);
}

.rv-location {
    font-size: 12px;
    color: var(--text-muted);
}

/* Card Title & Text */
.rv-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-card-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Pros / Cons */
.rv-pros,
.rv-cons {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.rv-pros {
    background: var(--success-bg);
    color: var(--success-text);
}

.rv-cons {
    background: var(--error-bg);
    color: var(--error-text);
}

.rv-pros ul,
.rv-cons ul {
    margin: 0;
    padding-left: 18px;
}

.rv-pros li,
.rv-cons li {
    margin-bottom: 2px;
}

/* Card Footer */
.rv-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.rv-card-feedback {
    display: flex;
    gap: 16px;
}

.rv-feedback-up,
.rv-feedback-down {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.rv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.rv-page-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Filter Builder */
.rv-filter-builder {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.rv-filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.rv-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rv-filter-field label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.rv-filter-field select,
.rv-filter-field input {
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 13px;
    min-width: 100px;
}

.rv-filter-field select:focus,
.rv-filter-field input:focus {
    outline: none;
    border-color: var(--input-focus-border);
}

.rv-filter-search {
    flex: 1;
    min-width: 200px;
}

.rv-filter-search input {
    width: 100%;
}

.rv-filter-action {
    display: flex;
    align-items: flex-end;
}

/* Feedback Changes */
.rv-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.rv-feedback-item {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.rv-feedback-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.rv-feedback-product-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: block;
}

.rv-feedback-review-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
}

.rv-feedback-review-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.rv-feedback-author {
    font-size: 12px;
    color: var(--text-muted);
}

.rv-feedback-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rv-feedback-rating .rv-star {
    font-size: 12px;
}

.rv-feedback-changes {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.rv-feedback-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bg-surface-secondary);
}

.rv-change-increase {
    background: var(--success-bg);
    color: var(--success-text);
}

.rv-change-decrease {
    background: var(--error-bg);
    color: var(--error-text);
}

.rv-change-increase-neg {
    background: var(--error-bg);
    color: var(--error-text);
}

.rv-change-decrease-neg {
    background: var(--success-bg);
    color: var(--success-text);
}

.rv-change-diff {
    font-weight: 700;
    font-size: 12px;
}

.rv-feedback-date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Product Settings */
.rv-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.rv-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 20px;
    gap: 16px;
}

.rv-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.rv-product-info > div {
    min-width: 0;
    overflow: hidden;
}

.rv-product-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.rv-product-rating-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
    min-width: 120px;
}

.rv-product-avg {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.rv-product-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.rv-product-updated {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.rv-product-toggle {
    flex-shrink: 0;
}

/* Toggle Switch */
.rv-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.rv-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rv-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 24px;
    transition: background-color var(--transition-fast);
}

.rv-toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.rv-toggle input:checked + .rv-toggle-slider {
    background-color: var(--primary-color);
}

.rv-toggle input:checked + .rv-toggle-slider::before {
    transform: translateX(20px);
}

/* Responsive */
@media (max-width: 768px) {
    .rv-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .rv-reviews-grid {
        grid-template-columns: 1fr;
    }

    .rv-tabs {
        overflow-x: auto;
    }

    .rv-filter-row {
        flex-direction: column;
    }

    .rv-filter-field {
        width: 100%;
    }

    .rv-filter-search {
        min-width: unset;
    }

    .rv-product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-feedback-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-feedback-changes {
        flex-wrap: wrap;
    }
}

/* ========================================
   LEVERANCIERS
   ======================================== */

.leveranciers-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
}

.leveranciers-table thead th {
    background: var(--bg-surface-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.leveranciers-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-primary);
    font-size: 14px;
    vertical-align: middle;
}

.leveranciers-table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.lev-table-foto {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.lev-table-foto-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.lev-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lev-badge-actief {
    background: var(--success-bg);
    color: var(--success-text);
}

.lev-badge-inactief {
    background: var(--error-bg);
    color: var(--error-text);
}

.lev-stars-display {
    white-space: nowrap;
}

.lev-star-filled {
    color: #f59e0b;
    font-size: 16px;
}

.lev-star-empty {
    color: var(--border-color);
    font-size: 16px;
}

/* Leverancier Modal */
.lev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lev-modal-overlay.active {
    display: flex;
}

.lev-modal {
    background: var(--bg-surface);
    border-radius: 15px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.lev-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.lev-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.lev-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 4px;
}

.lev-modal-close:hover {
    color: var(--text-primary);
}

.lev-modal-body {
    padding: 24px;
}

.lev-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.lev-form-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lev-form-section h3 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color-light);
}

.lev-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.lev-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lev-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.lev-form-group input,
.lev-form-group select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.lev-form-group input:focus,
.lev-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Star rating in form */
.lev-star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
    padding: 6px 0;
}

.lev-star-rating .lev-star {
    font-size: 24px;
    color: var(--border-color);
    transition: color 0.15s;
}

.lev-star-rating .lev-star.active {
    color: #f59e0b;
}

.lev-star-rating .lev-star:hover {
    color: #f59e0b;
}

@media (max-width: 600px) {
    .lev-form-row {
        flex-direction: column;
    }

    .lev-modal {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   FEEDBACK SLIDE-OUT PANEL
   ======================================== */

.feedback-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.feedback-tab:hover {
    padding-right: 12px;
    background: var(--primary-hover);
}

.feedback-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.feedback-panel.active {
    right: 0;
}

.feedback-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.feedback-panel-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.feedback-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.feedback-panel-close:hover {
    color: var(--text-primary);
}

.feedback-panel-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.feedback-step {
    display: none;
}

.feedback-step.active {
    display: block;
}

.feedback-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-textarea::placeholder {
    color: var(--text-muted);
}

.feedback-submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.feedback-submit-btn:hover {
    background: var(--primary-hover);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading step */
.feedback-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 16px;
}

.feedback-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: feedbackSpin 0.8s linear infinite;
}

@keyframes feedbackSpin {
    to { transform: rotate(360deg); }
}

.feedback-loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Result step */
.feedback-result-card {
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.feedback-result-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.feedback-result-value {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.feedback-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feedback-result-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.feedback-btn-confirm {
    background: var(--success-color);
    color: white;
}

.feedback-btn-confirm:hover {
    background: #218838;
}

.feedback-btn-retry {
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color) !important;
}

.feedback-btn-retry:hover {
    background: var(--bg-surface-hover);
}

/* Success step */
.feedback-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    gap: 12px;
}

.feedback-success-icon {
    font-size: 48px;
    color: var(--success-color);
}

.feedback-success h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.feedback-success p {
    font-size: 14px;
    color: var(--text-secondary);
}

.feedback-new-btn {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.feedback-new-btn:hover {
    background: var(--primary-hover);
}

/* ========================================
   FEEDBACK OVERVIEW PAGE
   ======================================== */

.feedback-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    align-items: center;
}

.feedback-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.feedback-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.feedback-filter-btn {
    padding: 8px 14px;
    background: var(--bg-surface-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.feedback-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.feedback-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.feedback-search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    margin-left: auto;
}

.feedback-search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.feedback-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-search-box input::placeholder {
    color: var(--text-muted);
}

/* Feedback Grid */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.feedback-card {
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feedback-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-type-badge.kleine-bug {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.feedback-type-badge.grote-bug {
    background: var(--error-bg);
    color: var(--error-text);
}

.feedback-type-badge.storing {
    background: rgba(139, 0, 0, 0.2);
    color: #ff4444;
}

[data-theme="dark"] .feedback-type-badge.storing {
    background: rgba(255, 68, 68, 0.15);
    color: #ff6b6b;
}

.feedback-type-badge.nieuwe-implementatie {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.feedback-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.feedback-status-badge.aangevraagd {
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
}

.feedback-status-badge.in-behandeling {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.feedback-status-badge.geimplementeerd {
    background: var(--success-bg);
    color: var(--success-text);
}

.feedback-status-badge.niet-in-behandeling {
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
    opacity: 0.7;
}

.feedback-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.feedback-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-card-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Feedback Detail Modal */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
}

.feedback-modal-overlay.active {
    display: flex;
}

.feedback-modal {
    background: var(--bg-surface);
    border-radius: 12px;
    width: 600px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.feedback-modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.feedback-modal-close:hover {
    color: var(--text-primary);
}

.feedback-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.feedback-detail-section {
    margin-bottom: 20px;
}

.feedback-detail-section:last-child {
    margin-bottom: 0;
}

.feedback-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.feedback-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.feedback-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feedback-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feedback-status-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.feedback-status-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Opmerkingen section */
.feedback-opmerkingen-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.feedback-opmerking {
    background: var(--bg-surface-secondary);
    border-radius: 8px;
    padding: 10px 14px;
}

.feedback-opmerking-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.feedback-opmerking-datum {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.feedback-opmerking-form {
    display: flex;
    gap: 8px;
}

.feedback-opmerking-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.feedback-opmerking-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-opmerking-input::placeholder {
    color: var(--text-muted);
}

.feedback-opmerking-submit {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.feedback-opmerking-submit:hover {
    background: var(--primary-hover);
}

/* Pagination */
.feedback-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.feedback-pagination button {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.feedback-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.feedback-pagination span {
    font-size: 13px;
    color: var(--text-secondary);
}

.feedback-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 600px) {
    .feedback-panel {
        width: 100%;
        right: -100%;
    }

    .feedback-grid {
        grid-template-columns: 1fr;
    }

    .feedback-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
