:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --border: #dfe7f3;
    --text: #1f2a37;
    --text-soft: #6b7280;
    --primary: #5b8def;
    --primary-dark: #3f72d8;
    --success: #18b67a;
    --warning: #f5a524;
    --danger: #e14d4d;
    --shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(20, 35, 60, 0.04);
}

.topbar-inner.compact-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.menu.compact-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
	flex: 1;
    justify-content: center;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.menu-link:hover,
.menu-link.active {
    background: #edf4ff;
    color: var(--primary-dark);
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg,
.icon-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-right {
    justify-content: flex-end;
}

.compact-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    white-space: nowrap;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f4f7fb;
    color: var(--text-soft);
    transition: 0.2s ease;
    flex-shrink: 0;
}

.icon-button:hover,
.icon-button.active {
    background: #edf4ff;
    color: var(--primary-dark);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fbe9e9;
    color: var(--danger);
    font-weight: 700;
    transition: 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: #f7d8d8;
}

/* Layout */
.main-content {
    padding-top: 28px;
    padding-bottom: 40px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-title-wrap h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.page-title-wrap p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Cards */
.card,
.form-box,
.table-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.form-box,
.table-card {
    padding: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.stat-label {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 600;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 6px;
}

.stat-sub {
    font-size: 13px;
    color: var(--text-soft);
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #eef4ff;
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: #dde9ff;
}

.btn-danger {
    background: #fbe9e9;
    color: var(--danger);
}

.btn-danger:hover {
    background: #f8d9d9;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.input:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: #9fc0ff;
    box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.12);
}

/* Tables */
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.styled-table thead th {
    text-align: left;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 700;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.styled-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.styled-table tbody tr:hover {
    background: #fbfdff;
}

.amount-big {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.amount-small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #e8fbf4;
    color: var(--success);
}

.badge-warning {
    background: #fff4df;
    color: var(--warning);
}

.badge-danger {
    background: #fdeaea;
    color: var(--danger);
}

.badge-neutral {
    background: #eef2f7;
    color: #596579;
}

/* Login page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background:
        radial-gradient(circle at top left, rgba(91, 141, 239, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(149, 201, 255, 0.25), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.auth-card {
    width: 100%;
    max-width: 470px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.12);
}

.auth-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 28px;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--text-soft);
    line-height: 1.5;
}

.auth-error,
.alert-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fdeaea;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #e8fbf4;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    margin-top: 30px;
}

.footer-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-soft);
    font-size: 14px;
}

/* Utility */
.text-muted {
    color: var(--text-soft);
}

.text-right {
    text-align: right;
}

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

/* Responsive */
@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .topbar-inner.compact-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }

    .topbar-left,
    .topbar-right {
        justify-content: space-between;
    }

    .menu.compact-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 14px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .menu-link {
        padding: 9px 12px;
        font-size: 14px;
    }

    .compact-user-info {
        font-size: 13px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 20px;
    }

    .styled-table thead {
        display: none;
    }

    .styled-table,
    .styled-table tbody,
    .styled-table tr,
    .styled-table td {
        display: block;
        width: 100%;
    }

    .styled-table tbody tr {
        border: 1px solid var(--border);
        border-radius: 16px;
        margin-bottom: 14px;
        background: #fff;
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .styled-table tbody td {
        border-bottom: 1px solid #eef2f7;
    }

    .styled-table tbody td:last-child {
        border-bottom: 0;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }
}

.table-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.inline-form {
    margin: 0;
}

.card-empty {
    padding: 24px;
}

.klant-form-layout,
.klant-adres-grid {
    margin-bottom: 24px;
}

.form-error-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.form-error-list li + li {
    margin-top: 6px;
}

.address-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.toggle-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
}

.toggle-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
}

@media (max-width: 900px) {
    .address-box-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.klant-detail-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
}

.klant-detail-left,
.klant-detail-right {
    min-width: 0;
}

.detail-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    background: #f9fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.detail-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.detail-note-box {
    background: #f9fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.detail-note-value {
    color: var(--text);
    line-height: 1.6;
}

.detail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.adres-blok {
    color: var(--text);
    line-height: 1.7;
}

.contactpersoon-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contactpersoon-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbff;
    padding: 16px;
}

.contactpersoon-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.contactpersoon-meta {
    display: grid;
    gap: 8px;
    color: var(--text);
}

.detail-label-inline {
    color: var(--text-soft);
    font-weight: 700;
}

.document-mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.document-mini-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbff;
    padding: 16px;
    transition: 0.2s ease;
}

.document-mini-card:hover {
    background: #f3f8ff;
    border-color: #cfe0fb;
}

.document-mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.document-mini-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-soft);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .klant-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .document-mini-top,
    .contactpersoon-top,
    .detail-box-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.contactpersonen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.contactpersoon-row {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fbff;
    padding: 16px;
    margin-bottom: 16px;
}

.contactpersoon-row:last-child {
    margin-bottom: 0;
}

.contactpersoon-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.contactpersoon-row-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .contactpersonen-head,
    .contactpersoon-row-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.klant-stat-grid {
    margin-bottom: 24px;
}

.document-mini-amounts {
    margin-bottom: 12px;
}

.document-mini-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.compact-filter-box {
    padding: 18px 22px;
}

.compact-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.filter-wide {
    min-width: 0;
}

.compact-filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.klanten-openstaand-text {
    color: var(--danger);
    font-weight: 700;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 600;
}

@media (max-width: 1000px) {
    .compact-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .compact-filter-grid {
        grid-template-columns: 1fr;
    }

    .compact-filter-actions {
        width: 100%;
    }

    .compact-filter-actions .btn-primary,
    .compact-filter-actions .btn-secondary {
        width: 100%;
    }

    .pagination-wrap {
        flex-direction: column;
        align-items: stretch;
    }
}

.detail-box-head-search {
    align-items: flex-start;
}

.detail-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-search-form {
    margin: 0;
    min-width: 260px;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.detail-search-input {
    width: 100%;
    max-width: 320px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
}

@media (max-width: 900px) {
    .detail-box-head-search {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-search-form {
        min-width: 0;
        width: 100%;
        justify-content: stretch;
    }

    .detail-search-input {
        max-width: none;
    }
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td {
    background: #f6faff;
}

.clickable-row:focus {
    outline: 2px solid #9fc0ff;
    outline-offset: -2px;
}

.clickable-row .row-action {
    position: relative;
    z-index: 2;
}

.product-thumb-wrap {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.product-thumb-placeholder {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    background: #f9fbff;
    text-align: center;
    padding: 8px;
}

.regel-korting-stack {
    display: grid;
    gap: 8px;
}

.settings-form {
    display: block;
}

.settings-accordion {
    display: grid;
    gap: 18px;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-section[open] {
    border-color: #cfe0fb;
}

.settings-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.settings-summary::-webkit-details-marker {
    display: none;
}

.settings-summary::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-section[open] .settings-summary::after {
    content: '–';
}

.settings-summary span:first-child {
    font-size: 17px;
    color: var(--text);
}

.settings-summary-sub {
    margin-left: auto;
    margin-right: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.settings-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--border);
}

.settings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.settings-toggle-card {
    background: #f9fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 52px;
}

.settings-help-box {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.settings-submit-bar {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .settings-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-summary-sub {
        margin: 0;
    }

    .settings-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .settings-submit-bar .btn-primary {
        width: 100%;
    }
}

.settings-form {
    display: block;
}

.settings-accordion {
    display: grid;
    gap: 18px;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-section[open] {
    border-color: #cfe0fb;
}

.settings-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.settings-summary::-webkit-details-marker {
    display: none;
}

.settings-summary::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-section[open] .settings-summary::after {
    content: '–';
}

.settings-summary span:first-child {
    font-size: 17px;
    color: var(--text);
}

.settings-summary-sub {
    margin-left: auto;
    margin-right: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.settings-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--border);
}

.settings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.settings-toggle-card {
    background: #f9fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 52px;
}

.settings-help-box {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.settings-submit-bar {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.settings-logo-preview-wrap {
    margin-bottom: 18px;
}

.settings-logo-card {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fbff;
    min-width: 220px;
}

.settings-logo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.settings-logo-preview {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.settings-logo-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-soft);
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    .settings-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-summary-sub {
        margin: 0;
    }

    .settings-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .settings-submit-bar .btn-primary {
        width: 100%;
    }

    .settings-logo-card {
        width: 100%;
    }
}

.settings-form {
    display: block;
}

.settings-accordion {
    display: grid;
    gap: 18px;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-section[open] {
    border-color: #cfe0fb;
}

.settings-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.settings-summary::-webkit-details-marker {
    display: none;
}

.settings-summary::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-section[open] .settings-summary::after {
    content: '–';
}

.settings-summary span:first-child {
    font-size: 17px;
    color: var(--text);
}

.settings-summary-sub {
    margin-left: auto;
    margin-right: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.settings-content {
    padding: 0 22px 22px;
    border-top: 1px solid var(--border);
}

.settings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.settings-toggle-card {
    background: #f9fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 52px;
}

.settings-help-box {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.settings-submit-bar {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.settings-logo-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fbff;
    min-width: 220px;
}

.settings-logo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.settings-logo-preview {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.settings-banner-preview {
    width: 100%;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.settings-logo-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-soft);
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    .settings-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-summary-sub {
        margin: 0;
    }

    .settings-checkbox-grid,
    .settings-preview-grid {
        grid-template-columns: 1fr;
    }

    .settings-submit-bar .btn-primary {
        width: 100%;
    }

    .settings-logo-card {
        width: 100%;
    }
}

.settings-form {
    display: block;
}

.settings-accordion {
    display: grid;
    gap: 18px;
}

.settings-section {
    background: #fff;
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.05);
    overflow: hidden;
}

.settings-section[open] {
    border-color: #cfe0fb;
}

.settings-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.settings-summary::-webkit-details-marker {
    display: none;
}

.settings-summary::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f64c8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-section[open] .settings-summary::after {
    content: '–';
}

.settings-summary span:first-child {
    font-size: 17px;
    color: #1f2937;
}

.settings-summary-sub {
    margin-left: auto;
    margin-right: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.settings-content {
    padding: 0 22px 22px;
    border-top: 1px solid #dbe7f4;
}

.settings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 18px;
}

.settings-toggle-card {
    background: #f9fbff;
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 52px;
}

.settings-toggle-card input {
    margin-right: 10px;
}

.settings-help-box {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid #dbe7f4;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.settings-submit-bar {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.settings-logo-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    background: #f9fbff;
    min-width: 220px;
}

.settings-logo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.settings-logo-preview {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    background: #fff;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
    padding: 10px;
}

.settings-banner-preview {
    width: 100%;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
    background: #fff;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
    padding: 10px;
}

.settings-logo-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px dashed #dbe7f4;
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    .settings-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-summary-sub {
        margin: 0;
    }

    .settings-checkbox-grid,
    .settings-preview-grid {
        grid-template-columns: 1fr;
    }

    .settings-submit-bar .btn-primary {
        width: 100%;
    }

    .settings-logo-card {
        width: 100%;
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
    text-decoration: none;
}

.compact-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.menu-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.icon-button.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compact-user-info {
    color: #6b7280;
    font-size: 0.95rem;
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu-backdrop {
    display: none;
}

.mobile-menu-extra {
    display: none;
}

.mobile-user-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.95rem;
}

.mobile-logout-link {
    color: #b91c1c;
}

.desktop-topbar-right {
    display: flex;
}

@media (max-width: 900px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .topbar-inner {
        min-height: 64px;
    }

    .compact-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 320px);
        height: 100vh;
        background: #ffffff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
        padding: 88px 20px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        transition: right 0.25s ease;
        z-index: 1200;
    }

    .compact-menu.open {
        right: 0;
    }

    .compact-menu .menu-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .mobile-menu-extra {
        display: block;
        margin-top: 8px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .desktop-topbar-right {
        display: none;
    }

    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1100;
    }

    .mobile-menu-backdrop.open {
        opacity: 1;
        visibility: visible;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.site-header-left,
.site-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.desktop-nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.header-settings-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.header-settings-link:hover,
.header-settings-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.desktop-user-info {
    color: #6b7280;
    font-size: 0.95rem;
}

.mobile-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
    transition: 0.2s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 1100;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(86vw, 320px);
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.25s ease;
    z-index: 1200;
}

.mobile-menu-panel.open {
    right: 0;
}

.mobile-menu-panel-inner {
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mobile-menu-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.mobile-menu-close {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    text-decoration: none;
    color: #374151;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.mobile-nav-logout {
    color: #b91c1c;
}

.mobile-user-info {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    body.mobile-menu-is-open {
        overflow: hidden;
    }

    .desktop-nav,
    .desktop-user-info,
    .header-settings-link,
    .btn-logout {
        display: none !important;
    }

    .mobile-menu-button {
        display: inline-flex !important;
    }

    .site-header-inner {
        min-height: 64px;
    }
}

.woo-status-card {
    margin-bottom: 20px;
}

.woo-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: center;
}

.woo-status-error {
    grid-column: 1 / -1;
    color: #b42318;
}

.woo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.woo-panel {
    min-width: 0;
}

.woo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.woo-panel-header h2 {
    margin-bottom: 6px;
}

.woo-panel-header p {
    margin: 0;
    color: #667085;
}

.woo-run-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

.woo-table-wrap {
    overflow-x: auto;
}

.woo-table {
    min-width: 100%;
}

.woo-table td,
.woo-table th {
    vertical-align: top;
}

.woo-actions {
    gap: 6px;
}

.woo-subtext {
    margin-top: 8px;
}

.woo-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 1100px) {
    .woo-layout {
        grid-template-columns: 1fr;
    }

    .woo-panel-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.woo-status-card {
    margin-bottom: 20px;
}

.woo-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: center;
}

.woo-status-error {
    grid-column: 1 / -1;
    color: #b42318;
}

.woo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.woo-tab {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: #eef2ff;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.woo-tab:hover {
    background: #e0e7ff;
}

.woo-tab.active {
    background: #4f7ee8;
    color: #fff;
    border-color: #4f7ee8;
}

.woo-panel {
    min-width: 0;
}

.woo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.woo-panel-header h2 {
    margin-bottom: 6px;
}

.woo-panel-header p {
    margin: 0;
    color: #667085;
    max-width: 900px;
}

.woo-run-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

.woo-table-wrap {
    overflow-x: auto;
}

.woo-table {
    width: 100%;
    min-width: 980px;
}

.woo-table td,
.woo-table th {
    vertical-align: top;
}

.woo-actions {
    gap: 6px;
}

.woo-subtext {
    margin-top: 8px;
}

.woo-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

.woo-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.woo-clickable-row {
    cursor: pointer;
}

.woo-clickable-row:hover td {
    background: #f8fafc;
}

.koppel-filter-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.koppel-row-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.koppel-row-form select {
    min-width: 240px;
    max-width: 100%;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

.koppel-filter-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.koppel-row-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.koppel-row-form select {
    min-width: 260px;
    max-width: 100%;
}

.secondary-row-form {
    margin-top: 8px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

.suggestie-regel {
    padding: 4px 0;
    font-size: 13px;
}

.suggestie-regel strong {
    display: inline-block;
    min-width: 42px;
}

.koppel-filter-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.koppel-row-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.koppel-row-form select {
    min-width: 260px;
    max-width: 100%;
}

.secondary-row-form {
    margin-top: 8px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

.dashboard-hero {
    align-items: center;
}

.dashboard-filter-card {
    padding: 18px 22px;
}

.dashboard-filter-form {
    max-width: 280px;
}

.dashboard-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.08);
}

.dashboard-stat-warning::after {
    background: rgba(245, 165, 36, 0.12);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.dashboard-side {
    display: grid;
    gap: 24px;
}

.dashboard-info-list {
    display: grid;
    gap: 10px;
}

.dashboard-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.dashboard-info-row:last-child {
    border-bottom: 0;
}

.dashboard-info-row span {
    color: var(--text-soft);
    text-transform: capitalize;
}

.dashboard-info-row strong {
    text-align: right;
}

.dashboard-action-list {
    display: grid;
    gap: 10px;
}

.dashboard-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbff;
    font-weight: 700;
    transition: 0.2s ease;
}

.dashboard-action-link:hover {
    background: #eef4ff;
    border-color: #cfe0fb;
    color: var(--primary-dark);
}

@media (max-width: 1200px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-form {
        max-width: none;
    }
}

.dashboard-hero-compact {
    align-items: flex-start;
    margin-bottom: 20px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dashboard-title-row h1 {
    margin: 0;
}

.dashboard-period-inline select {
    width: 170px;
    min-height: 42px;
    padding: 9px 14px;
}

.dashboard-stat-grid-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat-card {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card .stat-value {
    font-size: 27px;
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.08);
}

.dashboard-stat-warning::after {
    background: rgba(245, 165, 36, 0.12);
}

.dashboard-three-columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.dashboard-panel-compact {
    padding: 18px 20px;
}

.dashboard-card-header-compact {
    margin-bottom: 14px;
}

.dashboard-card-header-compact h2,
.dashboard-actions-card h2 {
    font-size: 22px;
}

.dashboard-empty-compact {
    padding: 18px;
}

.dashboard-table-compact thead th {
    padding: 11px 10px;
}

.dashboard-table-compact tbody td {
    padding: 12px 10px;
}

.dashboard-info-list {
    display: grid;
    gap: 0;
}

.dashboard-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.dashboard-info-row-compact {
    padding: 10px 0;
}

.dashboard-info-row:last-child {
    border-bottom: 0;
}

.dashboard-info-row span {
    color: var(--text-soft);
    text-transform: capitalize;
}

.dashboard-info-row strong {
    text-align: right;
}

.dashboard-action-list {
    display: grid;
    gap: 10px;
}

.dashboard-action-list-compact {
    gap: 9px;
}

.dashboard-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbff;
    font-weight: 700;
    transition: 0.2s ease;
}

.dashboard-action-link::after {
    content: '›';
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1;
}

.dashboard-action-link:hover {
    background: #eef4ff;
    border-color: #cfe0fb;
    color: var(--primary-dark);
}

@media (max-width: 1200px) {
    .dashboard-stat-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-three-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-stat-grid-compact {
        grid-template-columns: 1fr;
    }

    .dashboard-title-row {
        align-items: stretch;
    }

    .dashboard-period-inline,
    .dashboard-period-inline select {
        width: 100%;
    }
}