:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #152238;
    --muted: #627084;
    --primary: #ff8a00;
    --primary-dark: #d96f00;
    --line: #e2e8f0;
    --good: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --paid: #2563eb;
}

/* =========================
   BASIS
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* =========================
   HEADER
========================= */

.site-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 10px 6%;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 22px;
}

.site-header .brand img.site-logo {
    height: 60px;
    max-height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.site-header nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.site-header nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.site-header nav a:hover {
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 20px;
}

.header-search input {
    width: 260px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 14px;
}

.header-search button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 56px 6%;
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.hero h1 {
    font-size: 44px;
    max-width: 900px;
    margin: 0 0 12px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    color: var(--muted);
}

/* =========================
   ALGEMEEN
========================= */

.panel,
.card,
.detail,
.admin-box,
.admin-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.muted {
    color: var(--muted);
}

.price {
    font-size: 20px;
    font-weight: 900;
    margin: 10px 0;
}

/* =========================
   KNOPPEN
========================= */

.btn {
    display: inline-block;
    border: 0;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: 13px;
    text-decoration: none;
    cursor: pointer;
}

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

.btn.secondary {
    background: #152238;
}

.btn.light {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
}

/* =========================
   FORMULIEREN
========================= */

.search-panel {
    margin: 26px 6%;
    padding: 22px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
}

.field select[multiple] {
    min-height: 220px;
}

.field.full {
    grid-column: 1 / -1;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

/* =========================
   KAARTEN / RESULTATEN
========================= */

.results {
    padding: 10px 6% 50px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
}

.card img,
.placeholder-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #bfdbfe);
    display: block;
}

.card-body {
    padding: 18px;
}

.labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.label {
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    background: #eef2ff;
    color: #3730a3;
}

.label.free {
    background: #dcfce7;
    color: #166534;
}

.label.paid {
    background: #dbeafe;
    color: #1d4ed8;
}

/* =========================
   DETAILPAGINA
========================= */

.detail-wrap {
    padding: 30px 6%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail {
    overflow: hidden;
}

.detail-content {
    padding: 24px;
}

.hero-img {
    height: 360px;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #bfdbfe);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-list div,
.calc-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total {
    font-size: 24px;
    font-weight: 900;
}

.breadcrumbs {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--paid);
    text-decoration: none;
}

/* =========================
   TABELLEN
========================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 14px;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
}

/* Extra compacte variant voor brede tabellen met veel kolommen
   (bijv. Klanten beheren) — voorkomt dat de tabel breder wordt dan
   de beschikbare ruimte. */
.table-compact {
    font-size: 12.5px;
}
.table-compact th,
.table-compact td {
    padding: 6px 7px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #f8fafc;
    padding: 30px 6%;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
    color: var(--muted);
}

.compact-footer {
    padding: 25px 6% 15px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.compact-footer h3 {
    font-size: 14px;
    margin: 0 0 8px;
    color: var(--text);
}

.compact-footer p {
    margin: 0;
    line-height: 1.4;
}

.footer a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    margin-bottom: 7px;
}

.footer a:hover {
    color: var(--paid);
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    opacity: .8;
}

/* =========================
   ADMIN
========================= */

.admin-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 30px 6%;
    min-height: calc(100vh - 100px);
}

.admin-sidebar {
    width: 220px;
    flex: 0 0 220px;
    background: #ffffff;
    border: 1px solid rgba(0,111,214,.16);
    border-radius: 22px;
    padding: 16px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.sidebar-logo {
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}

.sidebar-logo h3 {
    margin: 0;
}

.sidebar-logo small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.menu-group {
    margin-bottom: 24px;
}

.menu-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
}

.admin-sidebar a:hover {
    background: #f3f4f6;
}

.admin-sidebar a.active {
    background: linear-gradient(135deg, #0074d9, #004c9c);
    color: #ffffff;
    font-weight: 700;
}

.menu-badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.menu-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.menu-badge-warn {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-card,
.admin-box {
    padding: 25px;
}

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

.stat-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 16px 18px;
    min-height: 92px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: .15s ease;
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.stat-card:hover {
    transform: none;
    border-color: #b9c7dc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.stat-card strong {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.dashboard-grid .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card .muted {
    margin: 6px 0 0;
    font-size: 12px;
    color: #64748b;
}
	
.admin-menu-toggle {
    display: none;
    margin: 20px 6% 0;
}

/* =========================
   AANVRAGEN / CARDS
========================= */

.request-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

.request-card h2 {
    margin-top: 0;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.request-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}

.request-section h3 {
    margin-top: 0;
}

.request-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.request-actions form {
    display: inline-block;
}

/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.55);
    overscroll-behavior: contain;
}

.modal-content {
    background: #ffffff;
    margin: 40px auto;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   COOKIE BANNER
========================= */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 99999;
}

.cookie-content {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    max-width: 720px;
    margin: auto;
}

.cookie-content strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
}

.cookie-content p {
    margin: 10px 0;
    color: #4b5563;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* =========================
   MOBIELE FILTERS
========================= */

.mobile-filter-btn {
    display: none;
    margin: 20px 6%;
}

/* =========================
   HULPKLASSEN
========================= */

.ratio-good {
    color: var(--good) !important;
}

.ratio-medium {
    color: var(--warning) !important;
}

.ratio-low {
    color: var(--danger) !important;
}

.invoice-number {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
}

/* =========================
   RESPONSIVE
========================= */

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

@media (max-width: 900px) {
    .grid-4,
    .grid-3,
    .results,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-search {
        margin: 0;
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .hero-img {
        height: 230px;
    }

    .admin-layout {
        display: block;
    }

    .admin-menu-toggle {
        display: inline-block;
    }

    #adminSidebar {
        display: none;
        margin: 15px 6%;
        width: auto;
    }

    #adminSidebar.open {
        display: block;
    }

    .admin-content {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        display: inline-block;
    }

    #filterPanel {
        display: none;
    }

    #filterPanel.open {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}

/* =========================
   UITJEZOEKER BUSINESSCARD STYLE
========================= */

:root {
    --primary: #ff8500;
    --primary-dark: #e86f00;
    --blue: #006fd6;
    --blue-dark: #004c9c;
    --green: #39a935;
    --pink: #e91e63;
    --purple: #7b1fa2;
    --text: #06164a;
    --muted: #5f6f89;
    --bg: #f4f8ff;
    --card: #ffffff;
    --line: #dbe7f3;
}

body {
    background:
        radial-gradient(circle at top right, rgba(0,111,214,.10), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #eef5ff 100%);
    color: var(--text);
}

.site-header {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dbe7f3;
    box-shadow: 0 4px 18px rgba(0,76,156,.08);
}

.site-header nav a {
    color: var(--text);
    font-weight: 800;
}

.site-header nav a:hover {
    color: var(--primary);
}

.header-search input {
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.03);
}

.header-search button,
.btn {
    background: linear-gradient(135deg, #ff9f1c, #ff6b00);
    box-shadow: 0 6px 14px rgba(255,133,0,.28);
}

.btn:hover {
    background: linear-gradient(135deg, #ff7a00, #e85d00);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 42%, rgba(0,111,214,.12) 100%),
        linear-gradient(135deg, #fff7ed, #eaf5ff);
    padding: 64px 6% 76px;
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -55px;
    height: 120px;
    background: linear-gradient(135deg, #ff8500 0%, #ff6b00 45%, #0057b8 46%, #003f91 100%);
    border-radius: 50% 50% 0 0;
    transform: rotate(-2deg);
}

.hero h1 {
    color: var(--text);
    font-weight: 900;
    letter-spacing: -1px;
}

.hero p {
    color: #42526e;
    font-weight: 500;
}

.panel,
.card,
.detail,
.admin-card,
.admin-box {
    border-radius: 24px;
    border: 1px solid rgba(0,111,214,.14);
    box-shadow: 0 16px 40px rgba(0,76,156,.10);
}

.search-panel {
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.field label {
    color: var(--text);
    font-weight: 900;
}

.field input,
.field select,
.field textarea {
    border: 2px solid #e0e8f5;
    border-radius: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,133,0,.14);
}

.card {
    transition: .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,76,156,.16);
}

.card h2 {
    color: var(--text);
}

.card img,
.hero-img {
    background:
        linear-gradient(135deg, rgba(255,133,0,.95), rgba(0,111,214,.95));
}

.label {
    font-weight: 900;
}

.label.free {
    background: #dff8d8;
    color: #248c20;
}

.label.paid {
    background: #dbeafe;
    color: #0057b8;
}

.price,
.total {
    color: var(--blue-dark);
}

.seo-content h2 {
    color: var(--text);
}

.seo-content a {
    color: var(--blue);
    font-weight: 800;
}

.footer {
    background:
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 70%),
        #ffffff;
    border-top: 4px solid var(--primary);
}

@media (max-width: 900px) {
    .hero {
        padding: 42px 6% 64px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero::after {
        height: 80px;
        bottom: -42px;
    }
}

.card img {
    background: linear-gradient(135deg, #ff8500, #006fd6);
    min-height: 180px;
}

.card img[src="/"],
.card img[src=""] {
    display: none;
}

.hero {
    padding: 48px 6% 58px;
}

.hero h1 {
    max-width: 760px;
    font-size: 42px;
}

.hero p {
    max-width: 720px;
    font-size: 19px;
}

.hero-home {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;
    text-align: right;
}

.hero-visual img {
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    box-shadow: 0 22px 55px rgba(0, 76, 156, .22);
    border: 6px solid #ffffff;
}

@media (max-width: 900px) {
    .hero-home {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        text-align: left;
    }

    .hero-visual img {
        max-width: 100%;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 6% 140px;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f4f8fd 60%,
            #e8f2ff 100%
        );
}

.search-panel {
    margin-top: 10px !important;
    position: relative;
    z-index: 10;
}

.results {
    gap: 30px;
}

.card {
    border: none !important;
    border-radius: 28px !important;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 12px 30px rgba(15,23,42,.08) !important;
    transition: all .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 45px rgba(15,23,42,.15) !important;
}

.card-body {
    padding: 24px !important;
}

.card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

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


.hero {
    padding: 0;
    background: #f8fbff;
}

.hero::before,
.hero::after {
    display: none !important;
    content: none !important;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    padding: 70px 6% 40px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #f8fbff 70%,
        #eef5ff 100%
    );
}

.hero-wave {
    height: 120px;
    background: url('/assets/images/hero-wave.png') center 82% no-repeat;
    background-size: 100% auto;
}

.search-panel {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* =========================
   HERO DEFINITIEVE FIX
========================= */

.hero {
    padding: 0 !important;
    background: #f8fbff !important;
    overflow: visible !important;
}

.hero::before,
.hero::after {
    display: none !important;
    content: none !important;
}

.hero-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #f8fbff 65%,
        #eef5ff 100%
    ) !important;
}

.hero-content {
    padding: 50px 6% 35px !important;
    background: transparent !important;
}

.hero-wave {
    height: 155px !important;
    background-image: url('/assets/images/hero-wave.png') !important;
    background-repeat: no-repeat !important;
    background-position: center 78% !important;
    background-size: 100% auto !important;
    margin-top: -120px !important;
}

.search-panel {
    margin-top: 20px !important;
    position: relative !important;
    z-index: 10 !important;
}

/* =========================
   ABBONEMENT SCHAKELAAR
========================= */

<style>
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

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

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #9ca3af;
    transition: .25s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background: white;
    transition: .25s;
    border-radius: 50%;
}

input:checked + .slider {
    background: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
</style>

<style>
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

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

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #9ca3af;
    transition: .25s;
    border-radius: 30px;
}

.slider:before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
}

.switch input:checked + .slider {
    background: #22c55e;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}
</style>

.card-description {
    color: #374151;
    min-height: 60px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}

.card-features span {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 42px;
}

.province-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,111,214,.14);
    border-radius: 18px;
    padding: 16px 18px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,76,156,.08);
}

.province-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,76,156,.14);
}

.province-card .flag {
    font-size: 24px;
}

.log-table th,
.log-table td {
    white-space: nowrap;
    vertical-align: middle;
}






/* AI v10 beheerinterface */
.ai-menu-group{padding:0;border:0}.ai-menu-group>summary{cursor:pointer;list-style:none;padding:10px 12px}.ai-menu-group>summary::-webkit-details-marker{display:none}.ai-menu-group>summary:after{content:'▸';float:right;transition:transform .2s}.ai-menu-group[open]>summary:after{transform:rotate(90deg)}.ai-menu-links{padding:0 0 8px}.ai-menu-links a{padding-left:28px}
.ai-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:18px 0}.ai-metric{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:18px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.ai-metric span{display:block;color:#667085;font-size:.9rem;margin-bottom:8px}.ai-metric strong{font-size:1.65rem;line-height:1.1}.ai-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.ai-status-grid>div{padding:14px;border:1px solid #eaecf0;border-radius:10px;background:#f8fafc}.ai-status-grid span{display:block;color:#667085;font-size:.85rem}.ai-status-grid strong{display:block;margin-top:5px}
.ai-settings-group{padding:0;overflow:hidden}.ai-settings-group>summary{cursor:pointer;list-style:none;padding:18px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.ai-settings-group>summary::-webkit-details-marker{display:none}.ai-settings-group>summary span{color:#667085;font-size:.9rem}.ai-settings-body{padding:0 20px 20px;border-top:1px solid #eef0f3}.ai-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px 20px;padding-top:18px}.ai-switch{display:block;margin-top:18px}.ai-settings-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.table-scroll{overflow-x:auto}.ai-table th,.ai-table td{vertical-align:top;padding:14px 12px;line-height:1.55}.ai-row-changed{background:#fff7ed}.ai-row-new{background:#eff6ff}.ai-row-blocked{background:#fef2f2}.ai-proposed-value{font-weight:600;white-space:pre-line}.ai-decision{margin-top:10px;padding:9px 11px;border-radius:8px;background:#f8fafc}.ai-decision-blocked{background:#fee2e2}.ai-decision-accepted{background:#dcfce7}.ai-decision-inferred{background:#dbeafe}.ai-decision-preserved{background:#f1f5f9}.ai-evidence{margin-top:10px;padding:10px 12px;border-left:3px solid #f59e0b;background:#fffbeb;font-size:.92em}.ai-equal-fields{margin-top:18px;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.ai-equal-fields>summary{cursor:pointer;padding:14px 16px;background:#f8fafc;font-weight:600}.ai-section-help{color:#667085}.ai-action-row{margin-top:18px}
.ai-status{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef2f6;font-size:.85rem}.ai-status-running{background:#dbeafe}.ai-status-queued{background:#fef3c7}.ai-status-review{background:#ede9fe}.ai-status-completed{background:#dcfce7}.ai-status-failed{background:#fee2e2}.ai-duration-fast{color:#15803d;font-weight:600}.ai-duration-medium{color:#b45309;font-weight:600}.ai-duration-slow{color:#b91c1c;font-weight:600}
.ai-duplicate-groups{display:grid;gap:20px}.ai-duplicate-group{border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#f8fafc}.ai-duplicate-reasons{font-weight:700;color:#9a3412;margin-bottom:12px}.ai-duplicate-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.ai-duplicate-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:16px}.ai-duplicate-card h3{margin-top:0}.ai-duplicate-card dl{display:grid;grid-template-columns:80px 1fr;gap:7px;margin:14px 0}.ai-duplicate-card dt{font-weight:700;color:#667085}.ai-duplicate-card dd{margin:0;overflow-wrap:anywhere}.ai-duplicate-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;color:#667085}
@media(max-width:720px){.ai-settings-group>summary{display:block}.ai-settings-group>summary span{display:block;margin-top:5px}.ai-table th,.ai-table td{min-width:130px}.ai-proposal-table th:nth-child(1),.ai-proposal-table td:nth-child(1){min-width:75px}}

/* AI v11 admin usability */
.admin-sidebar details.menu-group{margin-bottom:14px;border-bottom:1px solid #eef2f7;padding-bottom:8px}
.admin-sidebar summary.menu-title{cursor:pointer;list-style:none;padding:8px 4px;margin:0 0 6px}
.admin-sidebar summary.menu-title::-webkit-details-marker{display:none}
.admin-sidebar summary.menu-title::after{content:"▾";float:right;transition:transform .15s ease}
.admin-sidebar details:not([open]) summary.menu-title::after{transform:rotate(-90deg)}
.ai-duplicate-actions form{display:inline-flex;gap:8px;flex-wrap:wrap;margin:0}
.ai-duplicate-status{padding:8px 12px;border-radius:8px;background:#eef6ff;color:#174f7a;font-weight:700}
@media(max-width:1100px){.admin-sidebar{width:200px;flex-basis:200px}}

/* AI v12 */
.ai-settings-submenu{margin:8px 0 0 12px;border-left:2px solid #e5e7eb;padding-left:10px}
.ai-settings-submenu summary{cursor:pointer;font-weight:700;padding:7px 4px}
.ai-settings-submenu a{padding-left:14px;font-size:.95em}
.ai-source-row{display:grid;grid-template-columns:minmax(280px,1fr) 190px auto;gap:10px;margin:10px 0;align-items:center}
.ai-extra-sources{margin-top:18px;background:#f8fafc}
@media(max-width:900px){.ai-source-row{grid-template-columns:1fr}.admin-sidebar{width:180px;flex-basis:180px}}
