:root {
    --green: #006633;
    --green-soft: #95c11f;
    --mint: #94cbaa;
    --cream: #faf3eb;
    --text: #1f2933;
    --muted: #667085;
    --line: #e7ded3;
    --white: #ffffff;
    --orange: #f79f2d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(149, 193, 31, 0.22), transparent 38%), var(--cream);
    color: var(--text);
}

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

.site-header {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--green);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--white);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a,
.language-switcher a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 102, 51, 0.16);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
    font-size: 0.9rem;
}

.language-switcher a {
    min-width: 52px;
    font-size: 1.15rem;
    line-height: 1;
}

.main-nav a:hover,
.language-switcher a:hover,
.language-switcher a.is-active,
.btn:hover {
    background: var(--green);
    color: var(--white);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 40px;
}

.hero-card {
    border-radius: 28px;
    padding: clamp(26px, 5vw, 48px);
    background: radial-gradient(circle at top left, var(--mint), var(--green));
    color: var(--white);
    box-shadow: 0 24px 70px rgba(0, 102, 51, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.hero-card.compact {
    padding: clamp(24px, 4vw, 36px);
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.9;
}

.hero-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.hero-card p {
    max-width: 680px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.content-card {
    margin-top: 22px;
    border-radius: 24px;
    padding: clamp(22px, 4vw, 34px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 102, 51, 0.08);
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}

/* Knoppen rechts in een sectiekop (bijv. Rekentool + Terug naar categorieën). */
.section-heading-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Rekentool-modal. De tool heeft eigen opmaak; deze schil geeft alleen een balk
   met sluitknop en een scrollbaar wit vlak (zelfde stijl als de PDF-modal). */
.calc-modal[hidden] { display: none; }
.calc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, .88);
}
.calc-modal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.calc-modal-title {
    font-weight: 700;
    color: var(--text);
    margin-right: auto;
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calc-modal-close {
    border: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 1.1rem;
}
.calc-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
body.calc-modal-open { overflow: hidden; }

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--green);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.55;
}

.card-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.category-card,
.product-card {
    position: relative;
    display: flex;
    gap: 16px;
    min-height: 138px;
    padding: 20px;
    border-radius: 20px;
    background: var(--cream);
    border: 1px solid var(--line);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--green-soft);
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
}

.category-icon,
.product-image {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
    font-size: 2rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card h3,
.product-card h3 {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 1.1rem;
}

.category-card p,
.product-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: var(--green);
    font-size: 1.8rem;
}

.pdf-badge {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(0, 102, 51, 0.08);
    color: var(--green);
    font-weight: 800;
    font-size: 0.78rem;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manual-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.btn {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    cursor: pointer;
}

.btn.secondary {
    background: var(--white);
    color: var(--green);
}

.pdf-viewer {
    width: 100%;
    min-height: min(78vh, 920px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.empty-state {
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 28px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.9rem;
}

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 800;
    color: var(--green);
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: var(--white);
}

textarea {
    min-height: 96px;
}

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

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

.admin-table th {
    color: var(--green);
}

.notice {
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(149, 193, 31, 0.16);
    border: 1px solid rgba(0, 102, 51, 0.15);
    margin-bottom: 16px;
}

@media (max-width: 780px) {
    .site-header,
    .hero-card,
    .section-heading,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        flex: 1;
    }
}


.env-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #faf3eb;
    color: #006633;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.icon-library {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--green);
    font-weight: 800;
    font-size: 0.9rem;
}

.icon-pill span:first-child {
    font-size: 1.15rem;
}


.admin-main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.admin-action-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 102, 51, 0.10);
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--green-soft);
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
}

.admin-action-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--cream);
    border: 1px solid var(--line);
    font-size: 1.8rem;
}

.admin-action-card h2 {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 1.2rem;
}

.admin-action-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.stat-card {
    padding: 20px;
    border-radius: 20px;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 18px 50px rgba(0, 102, 51, 0.14);
}

.stat-card span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.stat-card p {
    margin: 8px 0 0;
    font-weight: 800;
    opacity: 0.92;
}

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

.compact-table th,
.compact-table td {
    padding: 9px 6px;
    font-size: 0.9rem;
}

.big-icon-library .icon-pill {
    min-width: 160px;
    justify-content: flex-start;
}

@media (max-width: 980px) {
    .admin-dashboard-grid,
    .stats-grid,
    .overview-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .admin-dashboard-grid,
    .stats-grid,
    .overview-grid-three {
        grid-template-columns: 1fr;
    }
}


.admin-nav-dropdown {
    position: relative;
}

.admin-nav-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 102, 51, 0.16);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.admin-nav-dropdown summary::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.78rem;
}

.admin-nav-dropdown[open] summary,
.admin-nav-dropdown summary:hover {
    background: var(--green);
    color: var(--white);
}

.admin-nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 220px;
    padding: 8px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.16);
}

.admin-nav-dropdown-menu a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    border: 0;
    background: transparent;
}

.manual-admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.manual-side-panel {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.side-panel-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 102, 51, 0.10);
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}

.eyebrow.dark {
    color: var(--green);
    opacity: 1;
}

.category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 800;
}

.category-filter:hover,
.category-filter.is-active {
    background: var(--green);
    color: var(--white);
}

.category-filter strong {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 102, 51, 0.10);
    color: inherit;
    font-size: 0.84rem;
}

.category-filter.is-active strong,
.category-filter:hover strong {
    background: rgba(255, 255, 255, 0.22);
}

.muted-card {
    background: rgba(250, 243, 235, 0.82);
}

.side-title {
    margin: 0 0 12px;
    color: var(--green);
    font-weight: 900;
}

.side-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.side-stat span {
    color: var(--green);
    font-weight: 900;
    font-size: 1.35rem;
}

.side-stat p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.manual-main-panel {
    min-width: 0;
}

.admin-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.no-top-margin {
    margin-top: 0;
}

.section-heading.stacked {
    display: block;
}

.section-heading.stacked p {
    margin-top: 6px;
}

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

.manual-list {
    display: grid;
    gap: 12px;
}

.manual-row-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.manual-row-card h3 {
    margin: 3px 0 6px;
    color: var(--green);
}

.manual-row-category,
.manual-row-slug {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.manual-row-category {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.manual-row-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.manual-row-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 900;
}

.manual-row-meta .status-good {
    background: rgba(149, 193, 31, 0.18);
}

.manual-row-meta .status-warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

@media (max-width: 980px) {
    .manual-admin-layout,
    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .manual-side-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .admin-nav-dropdown,
    .admin-nav-dropdown summary,
    .admin-nav-dropdown-menu {
        width: 100%;
    }

    .admin-nav-dropdown-menu {
        position: static;
        margin-top: 8px;
    }

    .manual-row-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .manual-row-meta {
        justify-content: flex-start;
    }
}

.product-admin-layout .content-card {
    overflow: hidden;
}

.product-create-form {
    align-items: end;
}

.product-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.product-admin-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-admin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 51, 0.24);
    box-shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

.product-admin-image {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-admin-image span {
    font-size: 2rem;
}

.product-admin-content h3 {
    margin: 3px 0 6px;
    color: var(--green);
}

.product-card-meta {
    justify-content: flex-start;
    margin-top: 10px;
}

.product-detail-toolbar {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 22px;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--green);
}

.language-status-list {
    display: grid;
    gap: 10px;
}

.language-status-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--cream);
}

.language-status-item span {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1.35rem;
    background: var(--white);
    color: var(--green);
}

.language-status-item strong {
    color: var(--green);
}

.language-status-item em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.9rem;
}

.language-status-item.is-complete {
    background: rgba(149, 193, 31, 0.16);
}

.language-status-item.is-missing {
    background: #fff7ed;
}

.language-pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.language-pdf-card {
    padding: 18px;
    border-radius: 22px;
    background: var(--cream);
    border: 1px solid var(--line);
    display: grid;
    gap: 14px;
}

.language-pdf-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-pdf-header span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--green);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.35rem;
}

.language-pdf-header h3 {
    margin: 0;
    color: var(--green);
}

.pdf-present,
.pdf-missing {
    margin: 0;
    font-weight: 900;
}

.pdf-present {
    color: var(--green);
}

.pdf-missing {
    color: #9a3412;
}

.inline-link {
    color: var(--green);
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .product-detail-grid,
    .language-pdf-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .product-admin-card {
        grid-template-columns: 1fr;
    }

    .product-admin-image {
        width: 100%;
        height: 150px;
    }
}


.toast-stack {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast-notice {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 18px 45px rgba(0, 102, 51, 0.24);
    font-weight: 750;
    line-height: 1.45;
}

.toast-notice:first-child {
    background: #1f2933;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-switcher a {
    min-width: 54px;
    min-height: 44px;
    font-size: 1.35rem;
}

.language-switcher a.is-active {
    box-shadow: 0 0 0 3px rgba(149, 193, 31, 0.28);
}

@media (max-width: 620px) {
    .toast-stack {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}


.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    background: rgba(31, 41, 51, 0.42);
    overflow-y: auto;
}

.modal-card {
    width: min(1040px, 100%);
    border-radius: 26px;
    padding: clamp(20px, 4vw, 32px);
    background: var(--white);
    box-shadow: 0 28px 80px rgba(31, 41, 51, 0.28);
    border: 1px solid rgba(0, 102, 51, 0.12);
}

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

.modal-header h2 {
    margin: 0;
    color: var(--green);
    font-size: 1.5rem;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--cream);
    color: var(--green);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
}

.language-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.language-edit-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.section-heading > div h2,
.section-heading.stacked h2 {
    margin-bottom: 6px;
}

.inline-link {
    color: var(--green);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 780px) {
    .language-edit-grid {
        grid-template-columns: 1fr;
    }

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


.flag-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 20px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 51, 0.18);
    background: var(--white);
    flex: 0 0 auto;
}

.flag-nl {
    background: linear-gradient(to bottom, #ae1c28 0 33.333%, #ffffff 33.333% 66.666%, #21468b 66.666% 100%);
}

.flag-de {
    background: linear-gradient(to bottom, #000000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.flag-fr {
    background: linear-gradient(to right, #0055a4 0 33.333%, #ffffff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.flag-en {
    background: #012169;
}

.flag-en::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(27deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 52%, #ffffff 52% 58%, transparent 58% 100%),
        linear-gradient(153deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 52%, #ffffff 52% 58%, transparent 58% 100%);
}

.flag-en::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent 0 38%, #ffffff 38% 45%, #c8102e 45% 55%, #ffffff 55% 62%, transparent 62% 100%),
        linear-gradient(to bottom, transparent 0 34%, #ffffff 34% 43%, #c8102e 43% 57%, #ffffff 57% 66%, transparent 66% 100%);
}

.language-switcher a {
    min-width: 56px;
    min-height: 44px;
}

.language-pdf-header span .flag-icon,
.language-status-item span .flag-icon {
    width: 32px;
    height: 22px;
}

.language-pdf-header > span,
.language-status-item > span {
    font-size: 1rem;
}



.danger-card {
    border-color: rgba(190, 18, 60, 0.22);
    background: #fff7f7;
}

.danger-card h2 {
    color: #9f1239;
}

.warning-box {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff1f2;
    border: 1px solid rgba(190, 18, 60, 0.22);
    color: #7f1d1d;
}

.warning-box strong {
    display: block;
    margin-bottom: 10px;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    margin: 6px 0;
}

.warning-box span {
    color: var(--muted);
}

.delete-form {
    display: grid;
    gap: 14px;
}

.danger-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #7f1d1d;
    font-weight: 800;
}

.danger-checkbox input {
    margin-top: 4px;
}

.btn.danger {
    width: fit-content;
    background: #be123c;
    border-color: #be123c;
    color: var(--white);
}

.product-admin-card.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    border-style: dashed;
}

.product-admin-card.is-disabled:hover {
    transform: none;
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}


.status-warning-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 850;
    font-size: 0.9rem;
}

.product-admin-card.is-unassigned {
    border-style: dashed;
    background: #fff7ed;
}


.mobile-pdf-fallback {
    display: none;
}

@media (max-width: 780px) {
    .manual-card {
        padding: 18px;
    }

    .manual-toolbar {
        display: none;
    }

    .pdf-viewer {
        display: none;
    }

    .mobile-pdf-fallback {
        display: grid;
        gap: 14px;
        justify-items: center;
        text-align: center;
        padding: 26px 18px;
        border-radius: 22px;
        background: var(--cream);
        border: 1px solid var(--line);
    }

    .mobile-pdf-fallback h2 {
        margin: 0;
        color: var(--green);
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .mobile-pdf-icon {
        width: 68px;
        height: 68px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background: var(--white);
        border: 1px solid var(--line);
        font-size: 2rem;
    }

    .mobile-pdf-fallback .btn {
        width: 100%;
    }
}


.product-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.78;
    filter: grayscale(0.12);
}

.product-card.is-disabled:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.pdf-badge.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.pdf-badge.muted {
    background: rgba(102, 112, 133, 0.10);
    color: var(--muted);
}

.pdf-language-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.82rem;
}

.pdf-language-list .flag-icon {
    width: 26px;
    height: 18px;
}


.mobile-pdf-fallback .btn.secondary {
    width: 100%;
}

@media (max-width: 780px) {
    .section-heading .btn {
        width: 100%;
    }
}


.pdf-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-delete-form-inside {
    margin: 0;
    padding: 0;
}

.btn.small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.btn.danger {
    background: #be123c;
    border-color: #be123c;
    color: var(--white);
}

.btn.danger:hover {
    background: #9f1239;
    border-color: #9f1239;
}

.language-pdf-card {
    position: relative;
}

@media (max-width: 780px) {
    .pdf-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pdf-card-actions .btn,
    .pdf-delete-form-inside .btn {
        width: 100%;
    }
}


.language-pdf-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.language-pdf-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdf-delete-form-inside {
    display: flex;
    margin: 0;
    padding: 0;
}

.pdf-delete-form-inside .btn {
    width: fit-content;
}

@media (max-width: 780px) {
    .pdf-delete-form-inside .btn {
        width: 100%;
    }
}

/* Zoekbalk (toegevoegd) */
.search-form {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    width: 100%;
}
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, .15);
}
.search-form .btn { flex: 0 0 auto; }
@media (max-width: 520px) {
    .search-form { flex-wrap: wrap; }
    .search-form .btn { width: 100%; }
}

/* Fullscreen PDF-modal (toegevoegd) */
.pdf-modal[hidden] { display: none; }
.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, .88);
}
.pdf-modal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.pdf-modal-title {
    font-weight: 700;
    color: var(--text);
    margin-right: auto;
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pdf-modal-langs { display: flex; gap: 6px; }
.pdf-modal-lang {
    width: 38px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdf-modal-lang.is-active {
    outline: 2px solid var(--green);
    outline-offset: 0;
    border-color: var(--green);
}
.pdf-modal-close {
    border: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 1.1rem;
}
.pdf-modal-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
}
body.pdf-modal-open { overflow: hidden; }
@media (max-width: 520px) {
    .pdf-modal-title { flex: 1 0 100%; margin-bottom: 4px; }
}

/* Taallabel in de PDF-modal (toegevoegd) */
.pdf-modal-langwrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdf-modal-langname {
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

/* Header-acties voor ingelogde gebruikers (toegevoegd) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-actions form { margin: 0; }

/* Header: rechterkant met zoekbalk + knoppen (toegevoegd) */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.header-search {
    margin: 0;
    width: min(320px, 60vw);
}
.header-search .search-input {
    padding: 9px 14px;
}
@media (max-width: 720px) {
    .header-right { width: 100%; }
    .header-search { width: 100%; }
}

/* Eerste-bezoek taalkeuze (toegevoegd) */
.lang-prompt {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}
.lang-prompt-box {
    position: relative;
    background: var(--white);
    border-radius: 18px;
    padding: 28px 28px 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    text-align: center;
}
.lang-prompt-box h2 {
    margin: 4px 0 18px;
    color: var(--green);
}
.lang-prompt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lang-prompt-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lang-prompt-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}

/* Mobiele fallback in de PDF-modal (toegevoegd) */
.pdf-modal-fallback { display: none; }
.pdf-modal-fallback-icon { font-size: 3rem; line-height: 1; }
.pdf-modal-fallback-name { font-weight: 700; color: var(--text); margin: 0; }
@media (max-width: 768px) {
    .pdf-modal-frame { display: none; }
    .pdf-modal-fallback {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 28px 22px;
        text-align: center;
        background: var(--cream);
    }
    .pdf-modal-fallback .btn { width: 100%; max-width: 340px; }
    /* De 'openen'-knop in de balk is op mobiel dubbel met de fallback -> verbergen */
    .pdf-modal-bar .pdf-modal-openbtn { display: none; }
}

/* Duidelijke taal-aanduiding in het mobiele fallback-paneel (toegevoegd) */
.pdf-modal-fallback-lang {
    margin: 0;
    font-weight: 700;
    color: var(--green);
    background: rgba(0, 102, 51, .08);
    border: 1px solid rgba(0, 102, 51, .2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 1rem;
}
@media (max-width: 768px) {
    /* Grotere, beter tikbare vlaggen in de balk */
    .pdf-modal-lang { width: 46px; height: 32px; }
    .pdf-modal-langwrap { flex: 1 0 100%; margin-bottom: 4px; }
}
