
:root {
    --bg: #06111f;
    --bg-soft: #0b1728;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --panel-border: rgba(148, 163, 184, 0.16);
    --text: #e5eefb;
    --muted: #a9b8cc;
    --accent: #22c55e;
    --accent-2: #38bdf8;
    --danger: #ef4444;
    --shadow: 0 18px 50px rgba(2, 8, 23, 0.35);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.10), transparent 28%),
        radial-gradient(circle at right top, rgba(34, 197, 94, 0.08), transparent 22%),
        linear-gradient(180deg, #07111f 0%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 30%, transparent 70%, rgba(255,255,255,0.02));
}

.app {
    position: relative;
    max-width: none;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 36px 20px 56px;
    text-align: center;
}

.app h1 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.app h2 {
    margin: 0 0 18px;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.15;
}

.app h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateY(-1px);
}

.header a.active {
    color: #04111f;
    background: linear-gradient(135deg, #86efac, #22c55e);
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.26);
}

.header a.active::after { display: none; }

.header-main {
    min-width: min(100%, 360px);
    justify-content: center;
    margin-bottom: 16px;
}

.header-main a {
    min-width: 132px;
}

.subheader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.subheader a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.subheader a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateY(-1px);
}

.subheader a.active {
    color: #04111f;
    background: linear-gradient(135deg, #86efac, #22c55e);
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.22);
}

.subheader a.active::after { display: none; }


.subheader-nested {
    margin-top: -14px;
    margin-bottom: 30px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.34);
}

.subheader-nested a {
    min-width: 170px;
    padding: 9px 18px;
}

@media (max-width: 640px) {
    .subheader-nested a {
        min-width: 100%;
    }
}


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

.grid.kpi.stable-kpi {
    gap: 18px;
    margin-bottom: 24px;
}

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

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


.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.82));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: left;
    backdrop-filter: blur(12px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%);
    pointer-events: none;
}

.card > * { position: relative; z-index: 1; }
.card p { font-size: 1.1rem; margin: 0; color: #f8fafc; }
.card.filter { padding: 18px 20px; }

.custom-select {
    display: flex;
    justify-content: center;
}

.custom-select select {
    min-width: 240px;
    background: rgba(2, 6, 23, 0.88);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 14px;
    border-radius: 14px;
    outline: none;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.custom-select select:focus,
.dropzone:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.kpi-up {
    background: linear-gradient(180deg, rgba(5, 46, 22, 0.95), rgba(20, 83, 45, 0.82));
    border-color: rgba(34, 197, 94, 0.34);
}

.kpi-down {
    background: linear-gradient(180deg, rgba(69, 10, 10, 0.95), rgba(127, 29, 29, 0.82));
    border-color: rgba(239, 68, 68, 0.32);
}

.kpi-subtitle {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
}

.chart-card { margin-top: 12px; }
.chart-wrap { position: relative; width: 100%; height: 340px; }
.chart-card canvas { max-height: 340px; }

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,0.12);
}
.card li:last-child { border-bottom: 0; }

.pdf-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pdf-buttons form { margin: 0; }
.pdf-buttons button { border: 0; cursor: pointer; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    box-shadow: 0 12px 24px rgba(2, 8, 23, 0.24);
}

.btn-primary { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-secondary { background: linear-gradient(135deg, #38bdf8, #2563eb); }

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.28);
}

.upload-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.upload-card {
    min-height: 252px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.helper-text {
    opacity: 0.8;
    color: var(--muted);
    font-size: 0.92rem;
    margin: 10px 0 0;
}

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

.data-table {
    overflow-x: auto;
    margin-top: 12px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(2, 6, 23, 0.24);
    border-radius: 16px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 10px 7px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    white-space: nowrap;
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table th { color: #86efac; font-weight: 700; }
.data-table td { color: #e2e8f0; }

.day-pill-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.day-pill {
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.day-pill strong { font-size: 0.95rem; }
.day-pill span { color: var(--muted); }

.dropzone {
    border: 2px dashed rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.26);
    padding: 28px 18px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    min-height: 136px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(34, 197, 94, 0.05);
    transform: translateY(-1px);
}

.dropzone.dragover {
    border-color: rgba(34, 197, 94, 0.92);
    background: rgba(34, 197, 94, 0.10);
}

.upload-status {
    min-height: 28px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-line {
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.45;
    font-size: 0.94rem;
}

.upload-info {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.upload-muted {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.upload-status .upload-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.upload-status .upload-error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.20);
}

.bd-upload-form.is-uploading .dropzone {
    opacity: 0.74;
    border-color: rgba(56, 189, 248, 0.65);
}

.latest-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.latest-import-card {
    text-align: left;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 16px;
}

.latest-import-card h4 {
    margin: 0 0 12px;
    color: #d7fbe6;
    font-size: 1rem;
}

.latest-week-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.latest-week-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.latest-week-pill:hover { background: rgba(34, 197, 94, 0.18); }

.verloning-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin: 0 auto 24px;
    gap: 18px;
}
.verloning-kpi > .card { margin-bottom: 0; }
.verloning-kpi + .grid.two-columns { align-items: start; }
.verloning-kpi + .grid.two-columns .card .data-table { overflow-x: visible; }
.verloning-kpi + .grid.two-columns .card .data-table table { table-layout: fixed; }
.verloning-kpi + .grid.two-columns .card .data-table th,
.verloning-kpi + .grid.two-columns .card .data-table td {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .app { padding: 20px 14px 40px; }
    .header {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-radius: 22px;
    }
    .header a { width: 100%; min-width: 0; }
    .card { padding: 18px; margin-bottom: 16px; border-radius: 18px; }
    .grid.kpi.stable-kpi.three,
    .verloning-kpi,
    .two-columns { grid-template-columns: 1fr; }
    .chart-wrap { height: 250px; }
    .chart-card canvas { max-height: 250px; }
    .data-table th,
    .data-table td { padding: 10px 7px; font-size: 0.9rem; }
    .custom-select select { width: 100%; min-width: 0; }
}


.upload-card-combined {
    min-height: auto;
}

.dropzone-combined {
    min-height: 190px;
    padding: 34px 22px;
    text-align: center;
}

.dropzone-combined strong {
    font-size: 1.08rem;
    color: #f8fafc;
}

.bd-upload-form-combined .upload-status {
    margin-top: 18px;
}

.kpi-subtitle{font-size:.85em;font-weight:500;opacity:.8}


.masterplan-card h3 { margin-bottom: 18px; }
.masterplan-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.36));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.masterplan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
    table-layout: fixed;
}
.masterplan-table th,

.masterplan-table tbody th {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding-right: 14px;
}
.masterplan-table td {
    padding: 10px 8px;
    border-right: 1px solid rgba(148, 163, 184, 0.10);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.9rem;
    line-height: 1.35;
    vertical-align: middle;
}
.masterplan-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    text-align: center;
    font-weight: 800;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.14);
}
.masterplan-table thead th:first-child {
    left: 0;
    z-index: 5;
}
.masterplan-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.015);
}
.masterplan-table tbody th {
    width: 196px;
    min-width: 196px;
    background: rgba(15, 23, 42, 0.90);
    color: #dbe7f7;
    text-align: left;
    font-weight: 700;
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.12);
}
.masterplan-table td {
    min-width: 96px;
    text-align: center;
    color: #e2e8f0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.masterplan-table td:first-of-type,
.masterplan-table .subhead th:first-of-type {
    text-align: center;
}
.masterplan-table .total-cell {
    background: rgba(34, 197, 94, 0.08);
    font-weight: 700;
}
.masterplan-table thead th:last-child,
.masterplan-table .total-cell {
    box-shadow: inset 1px 0 0 rgba(34, 197, 94, 0.16);
}
.masterplan-table .subhead th {
    position: sticky;
    top: 49px;
    z-index: 2;
    font-size: 0.78rem;
    color: #9fb0c6;
    background: rgba(15, 23, 42, 0.88);
    text-align: center;
}
.masterplan-table tbody tr:hover td,
.masterplan-table tbody tr:hover th {
    background-color: rgba(56, 189, 248, 0.035);
}
.masterplan-notes p { color: var(--muted); }
@media (max-width: 900px) {
    .masterplan-table { min-width: 860px; }
    .masterplan-table th,
    .masterplan-table td { padding: 10px 7px; font-size: 0.82rem; }
    .masterplan-table tbody th { width: 144px; min-width: 144px; }
    .masterplan-table .subhead th { top: 45px; }
}


/* Categorieen tabel: eerste kolom leesbaar houden */
.masterplan-table-categories {
    min-width: 0;
}

.masterplan-table-categories thead th:first-child,
.masterplan-table-categories tbody th {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-align: left !important;
    line-height: 1.3 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.masterplan-table-categories thead th:first-child {
    vertical-align: middle !important;
}

.masterplan-table-categories tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
}

.masterplan-table-categories td {
    min-width: 74px !important;
    text-align: center !important;
}

.masterplan-table-categories .subhead th:first-child {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
}

@media (max-width: 900px) {
    .masterplan-table-categories {
        min-width: 1080px;
    }

    .masterplan-table-categories thead th:first-child,
    .masterplan-table-categories tbody th,
    .masterplan-table-categories .subhead th:first-child {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }
}


/* Effectief masterplan: eerste kolom leesbaar houden */
.masterplan-table:not(.masterplan-table-categories) thead th:first-child,
.masterplan-table:not(.masterplan-table-categories) tbody th {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-align: left !important;
    line-height: 1.3 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.masterplan-table:not(.masterplan-table-categories) thead th:first-child {
    vertical-align: middle !important;
}

.masterplan-table:not(.masterplan-table-categories) tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
}

.masterplan-table:not(.masterplan-table-categories) td {
    text-align: center !important;
}

.masterplan-invoer-view .masterplan-table,
.masterplan-view .masterplan-table,
.masterplan-invoer-view .masterplan-table-categories,
.masterplan-view .masterplan-table-categories {
    width: 100% !important;
    min-width: 0 !important;
}

.masterplan-invoer-view .masterplan-table-wrap,
.masterplan-view .masterplan-table-wrap {
    overflow-x: hidden;
}

.masterplan-invoer-view .masterplan-table th:first-child,
.masterplan-invoer-view .masterplan-table tbody th,
.masterplan-view .masterplan-table th:first-child,
.masterplan-view .masterplan-table tbody th {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

.masterplan-invoer-view .masterplan-table td,
.masterplan-view .masterplan-table td {
    min-width: 0 !important;
}

.masterplan-invoer-view .masterplan-table-categories td,
.masterplan-view .masterplan-table-categories td {
    min-width: 0 !important;
}


@media (max-width: 900px) {
    .masterplan-table:not(.masterplan-table-categories) thead th:first-child,
    .masterplan-table:not(.masterplan-table-categories) tbody th {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }
}


.masterplan-invoer-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.mp-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.mp-hint {
    margin-top: 14px !important;
    color: var(--muted) !important;
    font-size: 0.95rem !important;
}

.mp-toolbar-actions {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 10px;
}

.masterplan-table-invoer .mp-input,
.masterplan-table-invoer-categories .mp-input {
    width: 100%;
    min-width: 88px;
    background: rgba(2, 6, 23, 0.82);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.2;
}

.masterplan-table-invoer .mp-input:focus,
.masterplan-table-invoer-categories .mp-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.masterplan-table-invoer .mp-value,
.masterplan-table-invoer-categories .mp-value,
.masterplan-table-invoer .mp-total-value,
.masterplan-table-invoer-categories .mp-category-total-stuks,
.masterplan-table-invoer-categories .mp-category-total-pct {
    display: inline-block;
    min-width: 78px;
    text-align: right;
    font-weight: 700;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .masterplan-invoer-toolbar {
        grid-template-columns: 1fr;
    }
}

.masterplan-table-invoer .mp-input-integer {
    letter-spacing: 0.01em;
}


.masterplan-invoer-view .masterplan-card {
    margin-top: 18px;
}

.masterplan-invoer-view .masterplan-table-wrap {
    padding-bottom: 2px;
}

.masterplan-table-invoer tbody th,
.masterplan-table-invoer-categories tbody th {
    font-size: 0.95rem;
}

.masterplan-table-invoer .total-cell,
.masterplan-table-invoer-categories .total-cell {
    min-width: 110px;
}

.masterplan-table-invoer-categories .subhead th {
    font-size: 0.74rem;
}


/* v22.1.3 UI polish: only masterplan invoer styling */
.masterplan-invoer-filter {
    padding: 22px 24px;
}

.masterplan-invoer-view h2 {
    margin: 10px 0 20px;
}

.masterplan-invoer-view .masterplan-card {
    padding: 22px 20px;
}

.masterplan-invoer-view .masterplan-card h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #dbe7f6;
}

.masterplan-table-invoer,
.masterplan-table-invoer-categories {
    border-collapse: separate;
    border-spacing: 0;
}

.masterplan-table-invoer thead th,
.masterplan-table-invoer-categories thead th {
    font-size: 0.95rem;
}

.masterplan-table-invoer tbody th,
.masterplan-table-invoer-categories tbody th {
    font-size: 0.92rem;
    font-weight: 700;
    color: #d9e4f2;
}

.masterplan-table-invoer thead th:first-child,
.masterplan-table-invoer tbody th {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
}

.masterplan-table-invoer td {
    min-width: 108px;
    padding: 8px 10px;
}

.masterplan-table-invoer .total-cell {
    min-width: 120px;
}

.masterplan-table-invoer-categories {
    min-width: 1180px;
}

.masterplan-table-invoer-categories thead th:first-child,
.masterplan-table-invoer-categories tbody th,
.masterplan-table-invoer-categories .subhead th:first-child {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
}

.masterplan-table-invoer-categories td {
    min-width: 86px !important;
    padding: 8px 8px;
}

.masterplan-table-invoer-categories .subhead th {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.masterplan-table-invoer .mp-input,
.masterplan-table-invoer-categories .mp-input {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.masterplan-table-invoer .mp-value,
.masterplan-table-invoer-categories .mp-value,
.masterplan-table-invoer .mp-total-value,
.masterplan-table-invoer-categories .mp-category-total-stuks,
.masterplan-table-invoer-categories .mp-category-total-pct {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.25;
}

.masterplan-table-invoer .mp-value,
.masterplan-table-invoer .mp-total-value,
.masterplan-table-invoer-categories .mp-value,
.masterplan-table-invoer-categories .mp-category-total-stuks,
.masterplan-table-invoer-categories .mp-category-total-pct {
    color: #edf4ff;
}

.masterplan-table-invoer .total-cell,
.masterplan-table-invoer-categories .total-cell {
    background: rgba(34, 197, 94, 0.06);
}

.masterplan-table-invoer td:has(.mp-input),
.masterplan-table-invoer-categories td:has(.mp-input) {
    background: rgba(255,255,255,0.01);
}

@media (max-width: 900px) {
    .masterplan-table-invoer thead th:first-child,
    .masterplan-table-invoer tbody th,
    .masterplan-table-invoer-categories thead th:first-child,
    .masterplan-table-invoer-categories tbody th,
    .masterplan-table-invoer-categories .subhead th:first-child {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }

    .masterplan-table-invoer td {
        min-width: 96px;
    }

    .masterplan-table-invoer-categories td {
        min-width: 82px !important;
    }
}


.masterplan-invoer-toolbar.option-a {
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr)) auto;
    align-items: end;
}

.mp-field-scenario {
    min-width: 0;
}

.mp-text-input {
    width: 100%;
    min-height: 48px;
    background: rgba(2, 6, 23, 0.88);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 14px;
    border-radius: 14px;
    outline: none;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.mp-text-input:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.mp-plan-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mp-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #d9e6f7;
    font-size: 0.92rem;
}

.mp-scenario-title {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .masterplan-invoer-toolbar.option-a {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .masterplan-invoer-toolbar.option-a {
        grid-template-columns: 1fr;
    }
}


/* v22.1.5 layout refinement: doelweek eerst, referentie daaronder */
.masterplan-invoer-toolbar.option-a {
    display: grid;
    gap: 14px;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row {
    display: grid;
    gap: 14px;
    align-items: end;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary {
    grid-template-columns: minmax(240px, 1.6fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr);
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-actions {
    align-self: end;
}

.masterplan-invoer-filter {
    padding: 24px;
}

.mp-plan-summary {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary {
        grid-template-columns: 1fr 1fr;
    }
    .masterplan-invoer-toolbar.option-a .mp-toolbar-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary {
        grid-template-columns: 1fr;
    }
}


/* v22.1.6 masterplan invoer toolbar cleanup */
.masterplan-invoer-filter {
    padding: 22px 18px;
    overflow: hidden;
}

.masterplan-invoer-filter .custom-select {
    display: block;
    width: 100%;
}

.masterplan-invoer-filter .custom-select select,
.masterplan-invoer-filter .mp-text-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.masterplan-invoer-toolbar.option-a {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row {
    display: grid;
    gap: 14px;
    align-items: end;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary {
    grid-template-columns: minmax(0, 1.7fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr);
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.masterplan-invoer-toolbar.option-a .mp-field {
    min-width: 0;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-actions {
    display: flex;
    align-items: end;
}

.masterplan-invoer-toolbar.option-a .mp-toolbar-actions .btn {
    min-height: 48px;
    white-space: nowrap;
}

.mp-plan-summary-simple {
    margin-top: 16px;
}

.mp-plan-summary-simple .mp-plan-chip {
    padding: 8px 12px;
}

.mp-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,
    .masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary {
        grid-template-columns: 1fr;
    }

    .masterplan-invoer-toolbar.option-a .mp-toolbar-actions {
        display: block;
    }

    .masterplan-invoer-toolbar.option-a .mp-toolbar-actions .btn {
        width: 100%;
    }
}

.mp-load-scenario-form { margin-top: 14px; }
.mp-load-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.mp-field-load { min-width: 0; }
.mp-save-bar { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.notice.success { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(92, 237, 138, 0.12); border: 1px solid rgba(92, 237, 138, 0.24); color: #dff7e6; }
@media (max-width: 760px) {
  .mp-load-row { grid-template-columns: 1fr; }
  .mp-save-bar { justify-content: stretch; }
  .mp-save-bar .btn { width: 100%; }
}


/* v22.2.1 masterplan invoer aligned to masterplan */
.masterplan-invoer-filter{padding:24px 28px;}
.masterplan-invoer-toolbar.option-a{display:grid;gap:14px;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row{display:grid;gap:14px;align-items:end;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary{grid-template-columns:minmax(240px,1.6fr) minmax(120px,.7fr) minmax(140px,.8fr);}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary{grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto;}
.masterplan-invoer-filter .custom-select select,.masterplan-invoer-filter .mp-text-input{height:48px;padding:0 14px;font-size:.95rem;}
.masterplan-invoer-filter .mp-text-input{display:block;width:100%;background:rgba(2,6,23,.82);border:1px solid rgba(148,163,184,.18);border-radius:14px;color:#fff;}
.masterplan-invoer-filter .btn{height:48px;padding:0 22px;border-radius:14px;}
.masterplan-invoer-filter .mp-plan-summary-simple{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap;}
.masterplan-invoer-filter .mp-plan-chip{font-size:.92rem;padding:10px 14px;}
.masterplan-invoer-view h2{margin:12px 0 18px;}
.masterplan-invoer-view .masterplan-card{padding:18px 18px 16px;}
.masterplan-table-invoer .mp-input,.masterplan-table-invoer-categories .mp-input{background:rgba(2,6,23,.82);border:1px solid rgba(148,163,184,.12);border-radius:12px;min-width:72px;padding:8px 10px;font-size:.9rem;line-height:1.1;box-shadow:none;}
.masterplan-table-invoer .mp-value,.masterplan-table-invoer .mp-total-value,.masterplan-table-invoer-categories .mp-value,.masterplan-table-invoer-categories .mp-category-total-stuks,.masterplan-table-invoer-categories .mp-category-total-pct{font-variant-numeric:tabular-nums;font-weight:700;font-size:.9rem;color:#e2e8f0;}
.masterplan-table-invoer thead th:first-child,.masterplan-table-invoer tbody th{width:190px!important;min-width:190px!important;max-width:190px!important;}
.masterplan-table-invoer td{min-width:96px;padding:10px 8px;text-align:center;}
.masterplan-table-invoer .total-cell{min-width:108px;background:rgba(34,197,94,.08);}
.masterplan-table-invoer-categories{min-width:1320px;}
.masterplan-table-invoer-categories thead th:first-child,.masterplan-table-invoer-categories tbody th,.masterplan-table-invoer-categories .subhead th:first-child{width:190px!important;min-width:190px!important;max-width:190px!important;}
.masterplan-table-invoer-categories td{min-width:74px!important;padding:10px 6px;text-align:center;}
.masterplan-table-invoer-categories .subhead th{font-size:.78rem;color:#9fb0c6;}
.masterplan-table-invoer-categories td:nth-child(2n+2),.masterplan-table-invoer-categories td:nth-child(2n+3){background-clip:padding-box;}
.masterplan-table-invoer-categories .mp-category-pct{max-width:56px;margin:0 auto;}
.mp-save-bar{display:flex;justify-content:flex-end;margin:0 0 14px;}
.mp-load-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;}
@media (max-width:900px){.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary,.mp-load-row{grid-template-columns:1fr;}.masterplan-invoer-filter .btn,.mp-save-bar .btn{width:100%;}.mp-save-bar{justify-content:stretch;}}

/* v22.2.3 centering + editable field styling */
.masterplan-table-invoer thead th:not(:first-child),
.masterplan-table-invoer-categories thead th:not(:first-child),
.masterplan-table-invoer td,
.masterplan-table-invoer-categories td,
.masterplan-table-invoer .total-cell,
.masterplan-table-invoer-categories .total-cell {
  text-align: center;
  vertical-align: middle;
}

.masterplan-table-invoer .mp-value,
.masterplan-table-invoer .mp-total-value,
.masterplan-table-invoer-categories .mp-value,
.masterplan-table-invoer-categories .mp-category-total-stuks,
.masterplan-table-invoer-categories .mp-category-total-pct {
  display: block;
  width: 100%;
  text-align: center;
}

.masterplan-table-invoer .mp-input,
.masterplan-table-invoer-categories .mp-input,
.productie-product-table .mp-input,
.masterplan-invoer-filter .custom-select select,
.masterplan-invoer-filter .mp-text-input {
  text-align: center;
  color: #ecfdf5;
  background: linear-gradient(180deg, rgba(12, 31, 44, 0.98) 0%, rgba(5, 20, 34, 0.98) 100%);
  border: 1px solid rgba(74, 222, 128, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(16,185,129,0.05);
}

.masterplan-table-invoer .mp-input:hover,
.masterplan-table-invoer-categories .mp-input:hover,
.productie-product-table .mp-input:hover,
.masterplan-invoer-filter .custom-select select:hover,
.masterplan-invoer-filter .mp-text-input:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

.masterplan-table-invoer .mp-input:focus,
.masterplan-table-invoer-categories .mp-input:focus,
.productie-product-table .mp-input:focus,
.masterplan-invoer-filter .custom-select select:focus,
.masterplan-invoer-filter .mp-text-input:focus {
  border-color: rgba(74, 222, 128, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), inset 0 1px 0 rgba(255,255,255,0.04);
}

.masterplan-invoer-filter .custom-select::after {
  color: rgba(167, 243, 208, 0.92);
}

/* v22.2.4 dropdown polish */
.masterplan-invoer-filter .custom-select {
  position: relative;
  display: block;
  width: 100%;
}

.masterplan-invoer-filter .custom-select select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 44px 0 14px;
  line-height: 46px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #f8fafc;
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: pointer;
}

.masterplan-invoer-filter .custom-select select::-ms-expand {
  display: none;
}

.masterplan-invoer-filter .custom-select::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(167, 243, 208, 0.92);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.masterplan-invoer-filter .custom-select select:hover {
  border-color: rgba(74, 222, 128, 0.44);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(2, 6, 23, 0.9);
}

.masterplan-invoer-filter .custom-select select:focus {
  border-color: rgba(74, 222, 128, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), inset 0 1px 0 rgba(255,255,255,0.05);
}

.masterplan-invoer-filter .custom-select select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* v22.2.5b toolbar simplification override */
.masterplan-invoer-filter form{display:block;}
.masterplan-invoer-toolbar.option-a{display:grid !important;gap:14px !important;margin-bottom:16px;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row{display:grid !important;gap:14px !important;align-items:end !important;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary{grid-template-columns:minmax(280px,1.8fr) minmax(120px,.7fr) minmax(140px,.8fr) !important;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) 180px !important;}
.masterplan-invoer-toolbar.option-a .mp-field{min-width:0;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-actions{display:flex;align-items:end;justify-content:stretch;}
.masterplan-invoer-toolbar.option-a .mp-toolbar-actions .btn{width:100%;height:48px;}
.masterplan-invoer-filter .mp-label{display:block;margin:0 0 8px;font-size:.9rem;line-height:1.2;white-space:normal;}
.masterplan-invoer-filter .custom-select,.masterplan-invoer-filter .mp-text-input{width:100%;min-width:0;}
.masterplan-invoer-filter .custom-select select,.masterplan-invoer-filter .mp-text-input{width:100%;height:48px;box-sizing:border-box;}
.masterplan-invoer-filter .mp-text-input{padding:0 16px;}
.masterplan-invoer-filter .custom-select::after{top:50%;transform:translateY(-50%);right:16px;}
.masterplan-invoer-filter .custom-select select{padding:0 40px 0 16px;}
.masterplan-invoer-filter .mp-plan-summary,.masterplan-invoer-filter .mp-hint{display:none !important;}
.mp-load-scenario-form{margin-top:8px;}
.mp-load-row{display:grid !important;grid-template-columns:minmax(0,1fr) 170px !important;gap:12px;align-items:end;}
.mp-field-load{min-width:0;}
.mp-load-row .btn{width:100%;height:48px;}
@media (max-width: 980px){
  .masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,
  .masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary,
  .mp-load-row{grid-template-columns:1fr !important;}
}

/* v22.2.5c toolbar actual cleanup */
.masterplan-invoer-filter{padding:24px 24px 18px !important;overflow:hidden;}
.masterplan-invoer-filter form{display:block;width:100%;}
.masterplan-invoer-toolbar.option-a,
.masterplan-invoer-filter .mp-load-row{
  display:grid !important;
  gap:14px !important;
  width:100% !important;
}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary{
  display:grid !important;
  grid-template-columns:minmax(260px,1.7fr) minmax(120px,.7fr) minmax(140px,.8fr) !important;
  gap:14px !important;
  align-items:end !important;
}
.masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) 170px !important;
  gap:14px !important;
  align-items:end !important;
}
.masterplan-invoer-filter .mp-load-row{
  grid-template-columns:minmax(260px,1fr) 170px !important;
  align-items:end !important;
  margin-top:6px !important;
}
.masterplan-invoer-toolbar.option-a .mp-field,
.masterplan-invoer-filter .mp-load-row .mp-field{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
.masterplan-invoer-toolbar.option-a .mp-label,
.masterplan-invoer-filter .mp-load-row .mp-label{
  display:block !important;
  margin:0 0 8px 2px !important;
  font-size:.92rem !important;
  line-height:1.2 !important;
  white-space:normal !important;
}
.masterplan-invoer-filter .custom-select,
.masterplan-invoer-filter .mp-text-input,
.masterplan-invoer-toolbar.option-a .mp-toolbar-actions,
.masterplan-invoer-filter .mp-load-row .mp-toolbar-actions{
  width:100% !important;
}
.masterplan-invoer-filter .custom-select{display:block !important;position:relative !important;}
.masterplan-invoer-filter .custom-select select,
.masterplan-invoer-filter .mp-text-input,
.masterplan-invoer-toolbar.option-a .mp-toolbar-actions .btn,
.masterplan-invoer-filter .mp-load-row .mp-toolbar-actions .btn{
  width:100% !important;
  height:46px !important;
  box-sizing:border-box !important;
}
.masterplan-invoer-toolbar.option-a .mp-toolbar-actions,
.masterplan-invoer-filter .mp-load-row .mp-toolbar-actions{display:flex !important;align-items:flex-end !important;}
.masterplan-invoer-filter p,
.masterplan-invoer-filter .mp-plan-summary-simple,
.masterplan-invoer-filter .mp-plan-chip{display:none !important;}
@media (max-width: 980px){
  .masterplan-invoer-toolbar.option-a .mp-toolbar-row-primary,
  .masterplan-invoer-toolbar.option-a .mp-toolbar-row-secondary,
  .masterplan-invoer-filter .mp-load-row{
    grid-template-columns:1fr !important;
  }
}


/* v22.2.6 toolbar hard reset */
.masterplan-invoer-filter{padding:24px !important;overflow:hidden !important;}
.masterplan-invoer-filter form{display:block !important;width:100% !important;}
.masterplan-invoer-filter .mp-controls{display:flex !important;flex-direction:column !important;gap:14px !important;margin-bottom:14px !important;}
.masterplan-invoer-filter .mp-controls-row{display:grid !important;gap:14px !important;align-items:end !important;}
.masterplan-invoer-filter .mp-controls-row-primary{grid-template-columns:minmax(0,1.8fr) 130px 150px !important;}
.masterplan-invoer-filter .mp-controls-row-secondary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 170px !important;}
.masterplan-invoer-filter .mp-controls .mp-field,.masterplan-invoer-filter .mp-load-row .mp-field{min-width:0 !important;display:flex !important;flex-direction:column !important;}
.masterplan-invoer-filter .mp-label{display:block !important;margin:0 0 8px !important;font-size:.92rem !important;line-height:1.2 !important;white-space:normal !important;}
.masterplan-invoer-filter .custom-select,.masterplan-invoer-filter .mp-text-input{display:block !important;width:100% !important;min-width:0 !important;}
.masterplan-invoer-filter .custom-select select,.masterplan-invoer-filter .mp-text-input,.masterplan-invoer-filter .mp-toolbar-actions .btn,.masterplan-invoer-filter .mp-load-row .btn{width:100% !important;height:48px !important;box-sizing:border-box !important;}
.masterplan-invoer-filter .mp-text-input{padding:0 16px !important;text-align:left !important;}
.masterplan-invoer-filter .custom-select{position:relative !important;}
.masterplan-invoer-filter .custom-select select{padding:0 40px 0 16px !important;text-align:left !important;}
.masterplan-invoer-filter .custom-select::after{right:16px !important;top:50% !important;transform:translateY(-50%) !important;}
.masterplan-invoer-filter .mp-toolbar-actions{display:flex !important;align-items:flex-end !important;}
.masterplan-invoer-filter .mp-load-scenario-form{margin-top:0 !important;}
.masterplan-invoer-filter .mp-load-row{display:grid !important;grid-template-columns:minmax(0,1fr) 170px !important;gap:14px !important;align-items:end !important;}
.masterplan-invoer-filter p,.masterplan-invoer-filter .mp-plan-summary,.masterplan-invoer-filter .mp-plan-summary-simple,.masterplan-invoer-filter .mp-plan-chip,.masterplan-invoer-filter .mp-hint{display:none !important;}
@media (max-width: 980px){
  .masterplan-invoer-filter .mp-controls-row-primary,
  .masterplan-invoer-filter .mp-controls-row-secondary,
  .masterplan-invoer-filter .mp-load-row{grid-template-columns:1fr !important;}
}


.btn:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none;transform:none;}
.btn:disabled:hover{transform:none;filter:none;box-shadow:none;}
.masterplan-invoer-filter .mp-load-row .mp-toolbar-actions .btn.btn-primary{background:linear-gradient(135deg,#22c55e,#16a34a) !important;color:#fff !important;border:0 !important;}
.masterplan-invoer-filter .mp-load-row .mp-toolbar-actions .btn.btn-primary:disabled{background:rgba(255,255,255,.18) !important;color:rgba(255,255,255,.72) !important;}

.mp-top-save-row{display:flex;justify-content:flex-end;margin-top:16px;}
@media (max-width:900px){.mp-top-save-row{justify-content:stretch;}.mp-top-save-row .btn{width:100%;}}

/* v22.3.8 desktop responsive expansion */
.app {
    width: min(1680px, calc(100vw - 48px));
    max-width: 1680px;
    padding: 40px 24px 64px;
}

.header,
.subheader,
.subheader-nested {
    max-width: 100%;
}

.card {
    width: 100%;
}

.masterplan-card,
.masterplan-table-wrap,
.data-table {
    width: 100%;
}

@media (min-width: 1100px) {
    .app h1 {
        margin-bottom: 32px;
        font-size: clamp(2.4rem, 3vw, 3.6rem);
    }

    .app h2 {
        font-size: clamp(1.45rem, 1.8vw, 2rem);
    }

    .header a,
    .subheader a {
        min-width: 124px;
        padding: 11px 18px;
    }

    .subheader-nested a {
        min-width: 190px;
    }

    .card {
        padding: 28px;
    }

    .card.filter {
        padding: 22px 24px;
    }

    .custom-select select {
        min-width: 280px;
        min-height: 48px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 0.96rem;
    }

    .masterplan-table {
        min-width: 1280px;
    }

    .masterplan-table th,
    .masterplan-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .masterplan-table tbody th,
    .masterplan-table:not(.masterplan-table-categories) thead th:first-child,
    .masterplan-table:not(.masterplan-table-categories) tbody th,
    .masterplan-table-categories thead th:first-child,
    .masterplan-table-categories tbody th,
    .masterplan-table-categories .subhead th:first-child {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    .masterplan-table td {
        min-width: 108px;
    }

    .masterplan-table-categories {
        min-width: 1480px;
    }

    .masterplan-table-categories td {
        min-width: 84px !important;
    }

    .masterplan-table-invoer,
    .masterplan-table-invoer-categories {
        min-width: 1440px;
    }

    .masterplan-table-invoer thead th:first-child,
    .masterplan-table-invoer tbody th,
    .masterplan-table-invoer-categories thead th:first-child,
    .masterplan-table-invoer-categories tbody th,
    .masterplan-table-invoer-categories .subhead th:first-child {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    .masterplan-table-invoer td {
        min-width: 110px;
        padding: 12px 10px;
    }

    .masterplan-table-invoer-categories td {
        min-width: 84px !important;
        padding: 12px 8px;
    }

    .masterplan-table-invoer .mp-input,
    .masterplan-table-invoer-categories .mp-input {
        min-width: 82px;
        min-height: 40px;
    }
}

@media (min-width: 1440px) {
    .app {
        width: min(1760px, calc(100vw - 64px));
        max-width: 1760px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .grid {
        gap: 26px;
    }

    .grid.kpi.stable-kpi {
        gap: 22px;
    }

    .masterplan-table {
        min-width: 1360px;
    }

    .masterplan-table-categories,
    .masterplan-table-invoer-categories {
        min-width: 1560px;
    }
}

@media (max-width: 768px) {
    .app {
        width: min(100%, calc(100vw - 20px));
    }
}


/* v22.3.9 aggressive desktop width fix */
.app,
body.bd-app-page .app {
    display: block !important;
    width: min(1880px, calc(100vw - 32px)) !important;
    max-width: min(1880px, calc(100vw - 32px)) !important;
    margin: 0 auto !important;
    padding: 42px 16px 72px !important;
}

body.bd-app-page .app > h1,
body.bd-app-page .app > h2,
body.bd-app-page .app > h3,
body.bd-app-page .app > .header,
body.bd-app-page .app > .subheader,
body.bd-app-page .app > .subheader-nested,
body.bd-app-page .app > .card,
body.bd-app-page .app > .grid,
body.bd-app-page .app > .two-columns,
body.bd-app-page .app > .masterplan-card,
body.bd-app-page .app > .card.filter {
    width: 100% !important;
    max-width: 100% !important;
}

body.bd-app-page .app > .header,
body.bd-app-page .app > .subheader,
body.bd-app-page .app > .subheader-nested {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
}

.masterplan-card,
.masterplan-table-wrap,
.masterplan-table,
.masterplan-table-categories,
.masterplan-table-invoer,
.masterplan-table-invoer-categories,
.data-table {
    width: 100% !important;
    max-width: none !important;
}

@media (min-width: 1100px) {
    body.bd-app-page .app {
        width: min(1920px, calc(100vw - 40px)) !important;
        max-width: min(1920px, calc(100vw - 40px)) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.bd-app-page .app .card.masterplan-card {
        padding: 28px !important;
    }

    body.bd-app-page .app .masterplan-table-wrap {
        overflow-x: auto !important;
    }

    body.bd-app-page .app .masterplan-table {
        min-width: 1500px !important;
    }

    body.bd-app-page .app .masterplan-table.masterplan-table-categories,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories {
        min-width: 1700px !important;
    }

    body.bd-app-page .app .masterplan-table.masterplan-table-invoer {
        min-width: 1600px !important;
    }

    body.bd-app-page .app .masterplan-table th,
    body.bd-app-page .app .masterplan-table td {
        font-size: 0.98rem !important;
        padding: 12px 10px !important;
    }

    body.bd-app-page .app .masterplan-table thead th:first-child,
    body.bd-app-page .app .masterplan-table tbody th,
    body.bd-app-page .app .masterplan-table.masterplan-table-categories thead th:first-child,
    body.bd-app-page .app .masterplan-table.masterplan-table-categories tbody th,
    body.bd-app-page .app .masterplan-table.masterplan-table-categories .subhead th:first-child,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer thead th:first-child,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer tbody th,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories thead th:first-child,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories tbody th,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories .subhead th:first-child {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }
}

@media (min-width: 1440px) {
    body.bd-app-page .app {
        width: min(2100px, calc(100vw - 64px)) !important;
        max-width: min(2100px, calc(100vw - 64px)) !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    body.bd-app-page .app .masterplan-table {
        min-width: 1650px !important;
    }

    body.bd-app-page .app .masterplan-table.masterplan-table-categories,
    body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories {
        min-width: 1820px !important;
    }
}

@media (max-width: 768px) {
    .app,
    body.bd-app-page .app {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        padding: 20px 10px 40px !important;
    }
}

/* v22.3.11 menu structure restore + larger week selector */
body.bd-app-page .app > .header,
body.bd-app-page .app > .subheader,
body.bd-app-page .app > .subheader-nested {
    display: flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.bd-app-page .app > .subheader {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

body.bd-app-page .app > .subheader-nested {
    margin-top: -6px !important;
    margin-bottom: 30px !important;
}

body.bd-app-page .app > .card.filter {
    width: 100% !important;
    max-width: 100% !important;
}

body.bd-app-page .app > .card.filter .custom-select {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

body.bd-app-page .app > .card.filter .custom-select select {
    width: min(560px, 100%) !important;
    min-width: min(560px, 100%) !important;
    max-width: 100% !important;
    min-height: 56px !important;
    padding: 0 48px 0 18px !important;
    font-size: 1rem !important;
    border-radius: 16px !important;
}

@media (min-width: 1100px) {
    body.bd-app-page .app > .card.filter {
        padding: 26px 28px !important;
    }

    body.bd-app-page .app > .card.filter .custom-select select {
        width: min(620px, 100%) !important;
        min-width: min(620px, 100%) !important;
        min-height: 60px !important;
        font-size: 1.02rem !important;
    }
}

@media (min-width: 1440px) {
    body.bd-app-page .app > .card.filter .custom-select select {
        width: min(680px, 100%) !important;
        min-width: min(680px, 100%) !important;
    }
}

@media (max-width: 768px) {
    body.bd-app-page .app > .header,
    body.bd-app-page .app > .subheader,
    body.bd-app-page .app > .subheader-nested {
        width: 100% !important;
    }

    body.bd-app-page .app > .card.filter {
        padding: 16px !important;
    }

    body.bd-app-page .app > .card.filter .custom-select select {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        font-size: .96rem !important;
    }
}


/* v22.3.12 masterplan invoer field proportions + shared second row */
body.bd-app-page .masterplan-invoer-filter {
  padding: 24px 24px 18px !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls-row-primary {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.15fr) minmax(110px, 0.22fr) minmax(140px, 0.3fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls-row-secondary {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.25fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-scenario {
  max-width: 1000px;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year .custom-select select,
body.bd-app-page .masterplan-invoer-filter .mp-field-week .custom-select select {
  min-width: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select select,
body.bd-app-page .masterplan-invoer-filter .mp-field-load .custom-select select {
  width: 100% !important;
}

@media (max-width: 980px) {
  body.bd-app-page .masterplan-invoer-filter .mp-controls-row-primary,
  body.bd-app-page .masterplan-invoer-filter .mp-controls-row-secondary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.bd-app-page .masterplan-invoer-filter {
    padding: 18px 16px 14px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .custom-select select,
  body.bd-app-page .masterplan-invoer-filter .mp-text-input {
    height: 46px !important;
    font-size: 0.94rem !important;
  }
}

/* v22.3.13 full desktop/mobile polish */
body.bd-app-page .app {
  max-width: min(1680px, calc(100vw - 56px)) !important;
  width: min(1680px, calc(100vw - 56px)) !important;
  padding: 34px 20px 56px !important;
}

body.bd-app-page .app > h1 {
  margin-bottom: 26px !important;
  font-size: clamp(2.4rem, 4vw, 4rem) !important;
}

body.bd-app-page .app > .header,
body.bd-app-page .app > .subheader,
body.bd-app-page .app > .subheader-nested {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.bd-app-page .app > .card.filter,
body.bd-app-page .masterplan-card,
body.bd-app-page .chart-card,
body.bd-app-page .card {
  border-radius: 24px !important;
}

body.bd-app-page .app > .card.filter {
  padding: 20px 24px !important;
}

body.bd-app-page .grid.kpi.stable-kpi.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
body.bd-app-page .grid.kpi.stable-kpi.four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.bd-app-page .grid.kpi.stable-kpi.four > .card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


body.bd-app-page .grid.kpi.stable-kpi.three > .card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.bd-app-page .chart-wrap {
  height: 360px !important;
}

body.bd-app-page .chart-card canvas {
  max-height: 360px !important;
}

body.bd-app-page .card.filter .custom-select {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

body.bd-app-page .card.filter .custom-select select {
  width: min(420px, 100%) !important;
  min-width: min(420px, 100%) !important;
  min-height: 54px !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

body.bd-app-page .masterplan-table-wrap {
  width: 100% !important;
}

body.bd-app-page .masterplan-table {
  min-width: 1180px !important;
}

body.bd-app-page .masterplan-table-categories {
  min-width: 1380px !important;
}

body.bd-app-page .masterplan-invoer-filter {
  padding: 26px 26px 18px !important;
}

body.bd-app-page .masterplan-invoer-filter form {
  width: 100% !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr) !important;
  gap: 18px 22px !important;
  align-items: start !important;
  margin-bottom: 14px !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls-row {
  display: contents !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-scenario {
  grid-column: 1 / 2 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year,
body.bd-app-page .masterplan-invoer-filter .mp-field-week {
  grid-column: 2 / 3 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year-week-wrap,
body.bd-app-page .masterplan-invoer-filter .mp-controls-side {
  display: contents !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year {
  margin-bottom: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-week {
  margin-top: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
  grid-column: 1 / 2 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-load {
  grid-column: 2 / 3 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls::before {
  content: "";
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: start;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year,
body.bd-app-page .masterplan-invoer-filter .mp-field-week {
  display: inline-flex !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year {
  margin-right: 12px !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-controls {
  position: relative;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year,
body.bd-app-page .masterplan-invoer-filter .mp-field-week {
  width: calc(50% - 6px) !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-year {
  position: absolute !important;
  top: 0;
  right: calc(50% + 5px);
}

body.bd-app-page .masterplan-invoer-filter .mp-field-week {
  position: absolute !important;
  top: 0;
  right: 0;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-scenario,
body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
  padding-right: calc(320px + 22px) !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-label {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

body.bd-app-page .masterplan-invoer-filter .custom-select,
body.bd-app-page .masterplan-invoer-filter .mp-text-input {
  width: 100% !important;
  min-width: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .custom-select {
  display: block !important;
  position: relative !important;
}

body.bd-app-page .masterplan-invoer-filter .custom-select select,
body.bd-app-page .masterplan-invoer-filter .mp-text-input {
  width: 100% !important;
  height: 52px !important;
  border-radius: 16px !important;
  padding: 0 16px !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
}

body.bd-app-page .masterplan-invoer-filter .custom-select select {
  padding-right: 42px !important;
}

body.bd-app-page .masterplan-invoer-filter .custom-select::after {
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

body.bd-app-page .mp-top-save-row {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 10px !important;
}

body.bd-app-page .mp-top-save-row .btn {
  min-width: 184px;
  min-height: 52px;
  border-radius: 16px !important;
}

body.bd-app-page .masterplan-invoer-view > h2 {
  margin: 10px 0 18px !important;
}

@media (max-width: 1200px) {
  body.bd-app-page .app {
    max-width: min(1400px, calc(100vw - 34px)) !important;
    width: min(1400px, calc(100vw - 34px)) !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-scenario,
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
    padding-right: calc(280px + 18px) !important;
  }
}

@media (max-width: 980px) {
  body.bd-app-page .app {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 22px 0 40px !important;
  }

  body.bd-app-page .app > h1 {
    padding: 0 12px;
  }

  body.bd-app-page .app > .header,
  body.bd-app-page .app > .subheader,
  body.bd-app-page .app > .subheader-nested,
  body.bd-app-page .app > .card,
  body.bd-app-page .masterplan-invoer-view > h2 {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  body.bd-app-page .grid.kpi.stable-kpi.three {
    grid-template-columns: 1fr !important;
  }
  body.bd-app-page .grid.kpi.stable-kpi.four {
    grid-template-columns: 1fr !important;
  }


  body.bd-app-page .chart-wrap,
  body.bd-app-page .chart-card canvas {
    height: 280px !important;
    max-height: 280px !important;
  }

  body.bd-app-page .masterplan-invoer-filter {
    padding: 18px 16px 16px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-year,
  body.bd-app-page .masterplan-invoer-filter .mp-field-week {
    position: static !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-scenario,
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
    padding-right: 0 !important;
  }

  body.bd-app-page .mp-top-save-row {
    justify-content: stretch !important;
  }

  body.bd-app-page .mp-top-save-row .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.bd-app-page .card.filter .custom-select select {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  body.bd-app-page .app > .header,
  body.bd-app-page .app > .subheader,
  body.bd-app-page .app > .subheader-nested {
    width: calc(100% - 24px) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border-radius: 22px !important;
    gap: 8px !important;
  }

  body.bd-app-page .app > .header a,
  body.bd-app-page .app > .subheader a,
  body.bd-app-page .app > .subheader-nested a {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.bd-app-page .app > .subheader-nested {
    grid-template-columns: 1fr !important;
  }

  body.bd-app-page .masterplan-table,
  body.bd-app-page .masterplan-table-categories {
    min-width: 900px !important;
  }
}


/* v22.3.14 masterplan fully fluid without horizontal scroll */
.masterplan-card,
.masterplan-invoer-view .masterplan-card {
  overflow: visible;
}

.masterplan-table-wrap,
.masterplan-invoer-view .masterplan-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.masterplan-table,
.masterplan-table-categories,
.masterplan-table-invoer,
.masterplan-table-invoer-categories {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
}

.masterplan-table th,
.masterplan-table td,
.masterplan-table-categories th,
.masterplan-table-categories td,
.masterplan-table-invoer th,
.masterplan-table-invoer td,
.masterplan-table-invoer-categories th,
.masterplan-table-invoer-categories td {
  min-width: 0 !important;
  max-width: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.masterplan-table:not(.masterplan-table-categories) thead th:first-child,
.masterplan-table:not(.masterplan-table-categories) tbody th,
.masterplan-table-invoer thead th:first-child,
.masterplan-table-invoer tbody th {
  width: clamp(120px, 15vw, 180px) !important;
  min-width: clamp(120px, 15vw, 180px) !important;
  max-width: clamp(120px, 15vw, 180px) !important;
}

.masterplan-table-categories thead th:first-child,
.masterplan-table-categories tbody th,
.masterplan-table-categories .subhead th:first-child,
.masterplan-table-invoer-categories thead th:first-child,
.masterplan-table-invoer-categories tbody th,
.masterplan-table-invoer-categories .subhead th:first-child {
  width: clamp(110px, 14vw, 170px) !important;
  min-width: clamp(110px, 14vw, 170px) !important;
  max-width: clamp(110px, 14vw, 170px) !important;
}

.masterplan-table td,
.masterplan-table .total-cell,
.masterplan-table-invoer td,
.masterplan-table-invoer .total-cell {
  width: calc((100% - clamp(120px, 15vw, 180px)) / 8);
}

.masterplan-table-categories td,
.masterplan-table-categories .total-cell,
.masterplan-table-invoer-categories td,
.masterplan-table-invoer-categories .total-cell {
  width: calc((100% - clamp(110px, 14vw, 170px)) / 16);
}

.masterplan-table,
.masterplan-table-invoer {
  font-size: clamp(0.74rem, 0.86vw, 0.95rem);
}

.masterplan-table-categories,
.masterplan-table-invoer-categories {
  font-size: clamp(0.62rem, 0.72vw, 0.84rem);
}

.masterplan-table th,
.masterplan-table td,
.masterplan-table-invoer th,
.masterplan-table-invoer td {
  padding: clamp(6px, 0.7vw, 10px) clamp(4px, 0.55vw, 8px);
}

.masterplan-table-categories th,
.masterplan-table-categories td,
.masterplan-table-invoer-categories th,
.masterplan-table-invoer-categories td {
  padding: clamp(5px, 0.5vw, 8px) clamp(3px, 0.4vw, 6px);
}

.masterplan-table-invoer .mp-input,
.masterplan-table-invoer-categories .mp-input {
  width: 100%;
  min-width: 0 !important;
  max-width: none;
  padding: clamp(6px, 0.55vw, 9px) clamp(4px, 0.5vw, 8px);
  font-size: inherit;
}

.masterplan-table .subhead th,
.masterplan-table-categories .subhead th,
.masterplan-table-invoer-categories .subhead th {
  font-size: 0.82em;
}

@media (max-width: 1024px) {
  .masterplan-table:not(.masterplan-table-categories) thead th:first-child,
  .masterplan-table:not(.masterplan-table-categories) tbody th,
  .masterplan-table-invoer thead th:first-child,
  .masterplan-table-invoer tbody th {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }

  .masterplan-table-categories thead th:first-child,
  .masterplan-table-categories tbody th,
  .masterplan-table-categories .subhead th:first-child,
  .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-table-invoer-categories tbody th,
  .masterplan-table-invoer-categories .subhead th:first-child {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
}

@media (max-width: 768px) {
  .masterplan-card,
  .masterplan-invoer-view .masterplan-card {
    padding: 14px 10px 12px;
  }

  .masterplan-table,
  .masterplan-table-invoer {
    font-size: 0.68rem;
  }

  .masterplan-table-categories,
  .masterplan-table-invoer-categories {
    font-size: 0.52rem;
  }

  .masterplan-table th,
  .masterplan-table td,
  .masterplan-table-invoer th,
  .masterplan-table-invoer td {
    padding: 5px 3px;
  }

  .masterplan-table-categories th,
  .masterplan-table-categories td,
  .masterplan-table-invoer-categories th,
  .masterplan-table-invoer-categories td {
    padding: 4px 2px;
  }

  .masterplan-table:not(.masterplan-table-categories) thead th:first-child,
  .masterplan-table:not(.masterplan-table-categories) tbody th,
  .masterplan-table-invoer thead th:first-child,
  .masterplan-table-invoer tbody th {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }

  .masterplan-table-categories thead th:first-child,
  .masterplan-table-categories tbody th,
  .masterplan-table-categories .subhead th:first-child,
  .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-table-invoer-categories tbody th,
  .masterplan-table-invoer-categories .subhead th:first-child {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }

  .masterplan-table-invoer .mp-input,
  .masterplan-table-invoer-categories .mp-input {
    padding: 4px 2px;
    border-radius: 8px;
  }
}

/* v22.3.15 mobile masterplan polish */
@media (max-width: 768px) {
  .masterplan-card,
  .masterplan-invoer-view .masterplan-card {
    padding: 12px 8px 10px !important;
    border-radius: 18px;
  }

  .masterplan-card h3,
  .masterplan-invoer-view h2 {
    margin: 0 0 12px !important;
    font-size: 1.18rem !important;
    line-height: 1.2;
    text-align: left;
  }

  .masterplan-table-wrap {
    border-radius: 14px !important;
    border-color: rgba(148,163,184,.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(2,6,23,.16);
  }

  .masterplan-table,
  .masterplan-table-invoer {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .masterplan-table-categories,
  .masterplan-table-invoer-categories {
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
  }

  .masterplan-table thead th,
  .masterplan-table-invoer thead th,
  .masterplan-table-categories thead th,
  .masterplan-table-invoer-categories thead th {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 0.78em !important;
    letter-spacing: .01em;
    background: rgba(15,23,42,.98) !important;
  }

  .masterplan-table .subhead th,
  .masterplan-table-categories .subhead th,
  .masterplan-table-invoer-categories .subhead th {
    top: 36px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 0.68em !important;
    color: #94a3b8 !important;
    background: rgba(10,15,31,.96) !important;
  }

  .masterplan-table tbody th,
  .masterplan-table-invoer tbody th,
  .masterplan-table-categories tbody th,
  .masterplan-table-invoer-categories tbody th {
    font-size: 0.86em !important;
    line-height: 1.15 !important;
    color: #e5eefb !important;
    background: rgba(12,18,34,.98) !important;
    box-shadow: inset -1px 0 0 rgba(148,163,184,.10) !important;
  }

  .masterplan-table td,
  .masterplan-table-invoer td,
  .masterplan-table-categories td,
  .masterplan-table-invoer-categories td {
    font-weight: 600;
    color: #dce7f6 !important;
  }

  .masterplan-table .total-cell,
  .masterplan-table-invoer .total-cell,
  .masterplan-table-categories .total-cell,
  .masterplan-table-invoer-categories .total-cell,
  .masterplan-table thead th:last-child,
  .masterplan-table-invoer thead th:last-child,
  .masterplan-table-categories thead th:last-child,
  .masterplan-table-invoer-categories thead th:last-child {
    background: linear-gradient(180deg, rgba(20,83,45,.34), rgba(6,78,59,.22)) !important;
    color: #dcfce7 !important;
    font-weight: 800 !important;
  }

  .masterplan-table-invoer .mp-input,
  .masterplan-table-invoer-categories .mp-input {
    min-height: 32px !important;
    padding: 5px 4px !important;
    border-radius: 9px !important;
    font-size: .98em !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 560px) {
  .masterplan-card,
  .masterplan-invoer-view .masterplan-card {
    padding: 10px 6px 8px !important;
  }

  .masterplan-card h3,
  .masterplan-invoer-view h2 {
    font-size: 1.08rem !important;
    margin-bottom: 10px !important;
  }

  .masterplan-table,
  .masterplan-table-invoer {
    font-size: 0.66rem !important;
  }

  .masterplan-table-categories,
  .masterplan-table-invoer-categories {
    font-size: 0.54rem !important;
  }

  .masterplan-table th,
  .masterplan-table td,
  .masterplan-table-invoer th,
  .masterplan-table-invoer td {
    padding: 5px 2px !important;
  }

  .masterplan-table-categories th,
  .masterplan-table-categories td,
  .masterplan-table-invoer-categories th,
  .masterplan-table-invoer-categories td {
    padding: 4px 2px !important;
  }

  .masterplan-table:not(.masterplan-table-categories) thead th:first-child,
  .masterplan-table:not(.masterplan-table-categories) tbody th,
  .masterplan-table-invoer thead th:first-child,
  .masterplan-table-invoer tbody th {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .masterplan-table-categories thead th:first-child,
  .masterplan-table-categories tbody th,
  .masterplan-table-categories .subhead th:first-child,
  .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-table-invoer-categories tbody th,
  .masterplan-table-invoer-categories .subhead th:first-child {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .masterplan-table .subhead th,
  .masterplan-table-categories .subhead th,
  .masterplan-table-invoer-categories .subhead th {
    top: 34px !important;
  }
}


/* v22.3.18 masterplan invoer: load scenario next to reference week + save button higher */
body.bd-app-page .masterplan-invoer-filter .mp-field-load-group {
  grid-column: 2 / 3 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-load-group .mp-field-load {
  min-width: 0 !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-field-load {
  grid-column: auto !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-top-save-row {
  margin-top: 0 !important;
  justify-content: flex-end !important;
}

body.bd-app-page .masterplan-invoer-filter .mp-top-save-row .btn {
  width: auto !important;
  min-width: 184px !important;
}

@media (max-width: 980px) {
  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group {
    grid-column: auto !important;
    width: 100% !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-top-save-row .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* v22.3.19 masterplan invoer: reference + load scenario + save on same row */
@media (min-width: 981px) {
  body.bd-app-page .masterplan-invoer-filter .mp-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-controls-row {
    display: grid !important;
    gap: 16px 18px !important;
    align-items: end !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-controls-row-primary {
    grid-template-columns: minmax(0, 1.8fr) 180px 210px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-controls-row-secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-controls::before,
  body.bd-app-page .masterplan-invoer-filter .mp-field-year-week-wrap,
  body.bd-app-page .masterplan-invoer-filter .mp-controls-side {
    display: none !important;
    content: none !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-scenario,
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference,
  body.bd-app-page .masterplan-invoer-filter .mp-field-year,
  body.bd-app-page .masterplan-invoer-filter .mp-field-week,
  body.bd-app-page .masterplan-invoer-filter .mp-field-load {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding-right: 0 !important;
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group {
    grid-column: 2 / 4 !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) auto !important;
    gap: 16px !important;
    align-items: end !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group .mp-field-load {
    min-width: 0 !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-top-save-row {
    margin: 0 !important;
    align-self: end !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-top-save-row .btn {
    min-width: 150px !important;
    width: auto !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 980px) {
  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
}


.masterplan-table-invoer .mp-input.mp-input-locked,
.masterplan-table-invoer-categories .mp-input.mp-input-locked {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: rgba(255, 255, 255, 0.62) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.masterplan-table-invoer td.mp-day-locked,
.masterplan-table-invoer-categories td.mp-day-locked {
    background: rgba(148, 163, 184, 0.04);
}

.masterplan-debug-card {
  margin-bottom: 18px;
}
.masterplan-debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  text-align: left;
}
.masterplan-debug-card h3,
.masterplan-debug-card h4 {
  text-align: left;
  margin: 0 0 10px;
}
.masterplan-debug-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(111,255,178,0.15);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  max-height: 320px;
}

.masterplan-pdf-buttons{display:flex;justify-content:flex-end;align-items:center;margin-top:16px;gap:12px;}
.masterplan-pdf-buttons form{margin:0;}
body.bd-app-page .masterplan-invoer-filter .mp-top-save-row{gap:12px;flex-wrap:wrap;}
@media (max-width:900px){.masterplan-pdf-buttons{justify-content:stretch;}.masterplan-pdf-buttons .btn,.masterplan-pdf-buttons button,.masterplan-invoer-filter .mp-top-save-row .btn{width:100%;}}

/* v22.3.52 reference dropdown align fix */
body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
  align-self: stretch !important;
}
body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}
body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select select {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  text-align: left !important;
}

/* v22.3.53 reference dropdown width/align */
@media (min-width: 981px) {
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
    justify-self: start !important;
    align-self: end !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select,
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select select {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin-left: 0 !important;
  }
}


/* v22.3.54 reference + existing scenario row closer */
@media (min-width: 981px) {
  body.bd-app-page .masterplan-invoer-filter .mp-controls-row-secondary {
    grid-template-columns: minmax(300px, 460px) minmax(520px, max-content) !important;
    gap: 12px !important;
    justify-content: start !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-reference {
    width: min(100%, 460px) !important;
    max-width: 460px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select,
  body.bd-app-page .masterplan-invoer-filter .mp-field-reference .custom-select select {
    width: 100% !important;
    max-width: 460px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group {
    grid-column: auto !important;
    width: auto !important;
    grid-template-columns: minmax(260px, 320px) auto !important;
    gap: 12px !important;
    justify-content: start !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group .mp-field-load {
    width: 100% !important;
    max-width: 320px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group .mp-field-load .custom-select,
  body.bd-app-page .masterplan-invoer-filter .mp-field-load-group .mp-field-load .custom-select select {
    width: 100% !important;
    max-width: 320px !important;
  }

  body.bd-app-page .masterplan-invoer-filter .mp-top-save-row {
    justify-content: flex-start !important;
    gap: 10px !important;
  }
}


.productie-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:18px;align-items:end}
.field-group label{display:block;font-size:14px;font-weight:700;margin-bottom:8px;opacity:.9}
.field-static .static-pill{min-height:48px;display:flex;align-items:center;padding:0 16px;border:1px solid rgba(73,255,185,.35);border-radius:16px;background:rgba(4,10,26,.75)}
.productie-mix-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.productie-mix-card h3{margin-bottom:6px}
.productie-mix-sub{margin:0 0 12px;opacity:.8}
.productie-intro p{max-width:920px}
@media (max-width: 900px){.productie-filter-grid{grid-template-columns:1fr}.productie-mix-grid{grid-template-columns:1fr}}


.header-main a.active {
    border: 1px solid rgba(255,255,255,0.18);
}

.subheader-productie {
    min-width: min(100%, 280px);
    margin-top: -4px;
}

.subheader-productie a {
    min-width: 220px;
}


/* v22.3.68 productie input lookfeel */
.productie-product-table td .mp-input.productie-product-input{width:100%;min-width:72px;padding:8px 10px;border-radius:12px;text-align:center;color:#ecfdf5;background:linear-gradient(180deg, rgba(12, 31, 44, 0.98) 0%, rgba(5, 20, 34, 0.98) 100%);border:1px solid rgba(74, 222, 128, 0.28);box-shadow:inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(16,185,129,0.05);appearance:textfield;-moz-appearance:textfield;}
.productie-product-table td .mp-input.productie-product-input::-webkit-outer-spin-button,.productie-product-table td .mp-input.productie-product-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.productie-product-table td .mp-input.productie-product-input:hover{border-color:rgba(74, 222, 128, 0.4);}
.productie-product-table td .mp-input.productie-product-input:focus{border-color:rgba(74, 222, 128, 0.75);box-shadow:0 0 0 3px rgba(34, 197, 94, 0.14), inset 0 1px 0 rgba(255,255,255,0.04);}

.productie-card-subtext{margin-top:8px;font-size:1.1rem;color:#f8fafc;font-weight:600;}


/* Masterplan top action buttons - afgestemd op de dashboard look & feel */
.mp-top-save-row .btn,
.mp-top-save-row .button,
.masterplan-invoer-filter .mp-top-save-row .btn,
.masterplan-invoer-filter .mp-top-save-row .button {
  background: linear-gradient(180deg, rgba(15,31,61,.96) 0%, rgba(6,15,34,.98) 100%) !important;
  color: #eaf2ff !important;
  border: 1px solid rgba(62, 220, 151, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(16, 31, 63, .35),
    0 8px 24px rgba(0,0,0,.24),
    0 0 18px rgba(62, 220, 151, .10) !important;
}

.mp-top-save-row .btn:hover,
.mp-top-save-row .button:hover,
.masterplan-invoer-filter .mp-top-save-row .btn:hover,
.masterplan-invoer-filter .mp-top-save-row .button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(16, 31, 63, .35),
    0 10px 28px rgba(0,0,0,.28),
    0 0 22px rgba(62, 220, 151, .16) !important;
}

.mp-top-save-row .btn.btn-secondary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-secondary {
  background: linear-gradient(180deg, rgba(14,28,56,.96) 0%, rgba(8,18,38,.98) 100%) !important;
}

.mp-top-save-row .btn.btn-primary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-primary {
  background: linear-gradient(180deg, rgba(18,38,74,.96) 0%, rgba(9,20,42,.98) 100%) !important;
}


/* Masterplan knoppen gevuld i.p.v. alleen outline */
.mp-top-save-row .btn,
.mp-top-save-row .button,
.masterplan-invoer-filter .mp-top-save-row .btn,
.masterplan-invoer-filter .mp-top-save-row .button {
  background: linear-gradient(180deg, #19396f 0%, #10284f 100%) !important;
  color: #f4f8ff !important;
  border: 1px solid rgba(62, 220, 151, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(0,0,0,.24),
    0 0 18px rgba(62, 220, 151, .10) !important;
}

.mp-top-save-row .btn:hover,
.mp-top-save-row .button:hover,
.masterplan-invoer-filter .mp-top-save-row .btn:hover,
.masterplan-invoer-filter .mp-top-save-row .button:hover {
  background: linear-gradient(180deg, #214684 0%, #153360 100%) !important;
}

.mp-top-save-row .btn.btn-secondary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-secondary {
  background: linear-gradient(180deg, #173562 0%, #102748 100%) !important;
}

.mp-top-save-row .btn.btn-primary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-primary {
  background: linear-gradient(180deg, #2b8ff0 0%, #1f6fd1 100%) !important;
  border-color: rgba(120, 216, 255, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 24px rgba(0,0,0,.24),
    0 0 18px rgba(67, 170, 255, .16) !important;
}

.mp-top-save-row .btn.btn-primary:hover,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-primary:hover {
  background: linear-gradient(180deg, #3aa0ff 0%, #287cdf 100%) !important;
}


/* Masterplan buttons matching requested reference colors */
.mp-top-save-row .btn,
.mp-top-save-row .button,
.masterplan-invoer-filter .mp-top-save-row .btn,
.masterplan-invoer-filter .mp-top-save-row .button {
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.mp-top-save-row .btn.btn-secondary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-secondary {
  background: linear-gradient(180deg, #25c765 0%, #16aa52 100%) !important;
}

.mp-top-save-row .btn.btn-secondary:hover,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-secondary:hover {
  background: linear-gradient(180deg, #31d871 0%, #1cbc5d 100%) !important;
}

.mp-top-save-row .btn.btn-primary,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-primary {
  background: linear-gradient(180deg, #55baff 0%, #2f7df1 100%) !important;
}

.mp-top-save-row .btn.btn-primary:hover,
.masterplan-invoer-filter .mp-top-save-row .btn.btn-primary:hover {
  background: linear-gradient(180deg, #68c4ff 0%, #3c8af6 100%) !important;
}

/* v22.3.71 masterplan notes full-width styling */
.masterplan-notes .masterplan-table-wrap {
    overflow-x: hidden;
}

.masterplan-notes-table {
    min-width: 100% !important;
    table-layout: fixed;
}

.masterplan-notes-table thead th:first-child,
.masterplan-notes-table tbody th {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

.masterplan-notes-table thead th:last-child,
.masterplan-notes-table tbody td {
    width: auto !important;
    min-width: 0 !important;
}

.masterplan-notes-table tbody td {
    padding: 12px 14px !important;
    text-align: left;
}

.mp-note-textarea {
    display: block;
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
    color: #e2e8f0;
    font: inherit;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mp-note-textarea::placeholder {
    color: #8fa3bf;
}

.mp-note-textarea:hover {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(2, 6, 23, 0.9);
}

.mp-note-textarea:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), inset 0 1px 0 rgba(255,255,255,0.04);
    background: rgba(2, 6, 23, 0.96);
}

@media (max-width: 900px) {
    .masterplan-notes-table thead th:first-child,
    .masterplan-notes-table tbody th {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
    }

    .masterplan-notes-table tbody td {
        padding: 10px !important;
    }

    .mp-note-textarea {
        min-height: 72px;
        padding: 10px 12px;
    }
}

.masterplan-notes-context{margin:0 0 12px 0;color:rgba(255,255,255,.72);font-size:12px;}


.masterplan-notes-table tbody td {
    text-align: left !important;
    vertical-align: top;
}

.masterplan-notes-table tbody td .mp-note-textarea,
.masterplan-notes-table tbody td .mp-note-textarea-readonly {
    width: 100%;
    min-height: 84px;
    text-align: left !important;
    line-height: 1.45;
}

.mp-note-textarea-readonly {
    cursor: default;
    resize: none;
}

.mp-note-textarea-readonly[readonly] {
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
    opacity: 1;
}

/* v22.3.80 masterplan hard desktop no-scroll override */
@media (min-width: 1025px) {
  .masterplan-invoer-view .masterplan-table-wrap,
  .masterplan-view .masterplan-table-wrap,
  .masterplan-card .masterplan-table-wrap {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .masterplan-invoer-view .masterplan-table,
  .masterplan-view .masterplan-table,
  .masterplan-card .masterplan-table,
  .masterplan-invoer-view .masterplan-table-categories,
  .masterplan-view .masterplan-table-categories,
  .masterplan-card .masterplan-table-categories,
  .masterplan-invoer-view .masterplan-table-invoer,
  .masterplan-view .masterplan-table-invoer,
  .masterplan-card .masterplan-table-invoer,
  .masterplan-invoer-view .masterplan-table-invoer-categories,
  .masterplan-view .masterplan-table-invoer-categories,
  .masterplan-card .masterplan-table-invoer-categories {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .masterplan-invoer-view .masterplan-table thead th:first-child,
  .masterplan-invoer-view .masterplan-table tbody th,
  .masterplan-view .masterplan-table thead th:first-child,
  .masterplan-view .masterplan-table tbody th,
  .masterplan-card .masterplan-table thead th:first-child,
  .masterplan-card .masterplan-table tbody th,
  .masterplan-invoer-view .masterplan-table-categories thead th:first-child,
  .masterplan-invoer-view .masterplan-table-categories tbody th,
  .masterplan-view .masterplan-table-categories thead th:first-child,
  .masterplan-view .masterplan-table-categories tbody th,
  .masterplan-card .masterplan-table-categories thead th:first-child,
  .masterplan-card .masterplan-table-categories tbody th,
  .masterplan-invoer-view .masterplan-table-invoer thead th:first-child,
  .masterplan-invoer-view .masterplan-table-invoer tbody th,
  .masterplan-view .masterplan-table-invoer thead th:first-child,
  .masterplan-view .masterplan-table-invoer tbody th,
  .masterplan-card .masterplan-table-invoer thead th:first-child,
  .masterplan-card .masterplan-table-invoer tbody th,
  .masterplan-invoer-view .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-invoer-view .masterplan-table-invoer-categories tbody th,
  .masterplan-view .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-view .masterplan-table-invoer-categories tbody th,
  .masterplan-card .masterplan-table-invoer-categories thead th:first-child,
  .masterplan-card .masterplan-table-invoer-categories tbody th {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }

  .masterplan-invoer-view .masterplan-table td,
  .masterplan-view .masterplan-table td,
  .masterplan-card .masterplan-table td,
  .masterplan-invoer-view .masterplan-table-categories td,
  .masterplan-view .masterplan-table-categories td,
  .masterplan-card .masterplan-table-categories td,
  .masterplan-invoer-view .masterplan-table-invoer td,
  .masterplan-view .masterplan-table-invoer td,
  .masterplan-card .masterplan-table-invoer td,
  .masterplan-invoer-view .masterplan-table-invoer-categories td,
  .masterplan-view .masterplan-table-invoer-categories td,
  .masterplan-card .masterplan-table-invoer-categories td,
  .masterplan-invoer-view .masterplan-table th,
  .masterplan-view .masterplan-table th,
  .masterplan-card .masterplan-table th,
  .masterplan-invoer-view .masterplan-table-categories th,
  .masterplan-view .masterplan-table-categories th,
  .masterplan-card .masterplan-table-categories th,
  .masterplan-invoer-view .masterplan-table-invoer th,
  .masterplan-view .masterplan-table-invoer th,
  .masterplan-card .masterplan-table-invoer th,
  .masterplan-invoer-view .masterplan-table-invoer-categories th,
  .masterplan-view .masterplan-table-invoer-categories th,
  .masterplan-card .masterplan-table-invoer-categories th {
    min-width: 0 !important;
  }

  .masterplan-invoer-view .masterplan-table .mp-input,
  .masterplan-view .masterplan-table .mp-input,
  .masterplan-card .masterplan-table .mp-input,
  .masterplan-invoer-view .masterplan-table-invoer .mp-input,
  .masterplan-view .masterplan-table-invoer .mp-input,
  .masterplan-card .masterplan-table-invoer .mp-input,
  .masterplan-invoer-view .masterplan-table-invoer-categories .mp-input,
  .masterplan-view .masterplan-table-invoer-categories .mp-input,
  .masterplan-card .masterplan-table-invoer-categories .mp-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* v22.3.81 - force no horizontal scroll on desktop masterplan tables */
@media (min-width: 1100px) {
  body.bd-app-page .app .masterplan-table-wrap {
    overflow-x: hidden !important;
  }

  body.bd-app-page .app .masterplan-table,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body.bd-app-page .app .masterplan-table th,
  body.bd-app-page .app .masterplan-table td,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories th,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories td,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer th,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer td,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories th,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories td {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.bd-app-page .app .masterplan-table thead th:first-child,
  body.bd-app-page .app .masterplan-table tbody th,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories thead th:first-child,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories tbody th,
  body.bd-app-page .app .masterplan-table.masterplan-table-categories .subhead th:first-child,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer thead th:first-child,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer tbody th,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories thead th:first-child,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories tbody th,
  body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories .subhead th:first-child {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
  }

  body.bd-app-page .app .masterplan-table input,
  body.bd-app-page .app .masterplan-table textarea,
  body.bd-app-page .app .masterplan-table select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* v22.3.108 dashboard filter alignment */
.dashboard-filter-card {
  padding: 18px 20px;
}

.dashboard-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-week-form {
  display: flex;
  align-items: flex-end;
}

.bd-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bd-filter-field-action {
  justify-content: flex-end;
}

.bd-filter-field-action .btn {
  min-height: 54px;
}

.bd-filter-label {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 16px;
}

.dashboard-filter-bar .custom-select {
  justify-content: flex-start;
}

.dashboard-filter-bar .custom-select select {
  min-width: 320px;
}

.dashboard-filter-bar .pdf-buttons,
.dashboard-filter-bar .dashboard-pdf-buttons {
  margin-top: 0;
  justify-content: flex-start;
  display: flex;
}

@media (max-width: 768px) {
  .dashboard-filter-bar {
    align-items: stretch;
  }

  .dashboard-filter-bar .custom-select,
  .dashboard-filter-bar .custom-select select,
  .dashboard-filter-bar .dashboard-week-form,
  .dashboard-filter-bar .bd-filter-field {
    width: 100%;
  }

  .dashboard-filter-bar .pdf-buttons,
  .dashboard-filter-bar .dashboard-pdf-buttons {
    width: 100%;
  }
}


.bd-dashboard-source-label {
  margin: 6px 4px 18px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}


/* v2.1 Help page */
.help-card {
  padding: 24px;
}

.help-card h2 {
  margin-bottom: 18px;
}

.help-section + .help-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.help-card h3 {
  margin: 0 0 10px 0;
}

.help-card p {
  margin: 0 0 12px 0;
  color: var(--muted);
}

.help-card ul {
  margin: 0;
  padding-left: 18px;
}

.help-card li {
  margin: 0 0 8px 0;
  display: list-item;
}


/* v2.2 help navigation */
.help-toc {
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.22);
}

.help-toc h3 {
  margin: 0 0 12px 0;
}

.help-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.help-toc-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.help-toc-link:hover {
  filter: brightness(1.08);
}

.help-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.help-back-top {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .help-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* v2.4 help metadata */
.help-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.help-meta-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.help-meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}


/* v2.6 masterplan eff filterbar aligned like dashboards */
.masterplan-filter-card .dashboard-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.masterplan-filter-card .dashboard-week-form {
  margin: 0;
}

.masterplan-filter-card .custom-select {
  justify-content: flex-start;
}

.masterplan-filter-card .custom-select select {
  min-width: 320px;
}

.masterplan-filter-card .masterplan-pdf-buttons {
  margin-top: 0;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .masterplan-filter-card .custom-select,
  .masterplan-filter-card .custom-select select,
  .masterplan-filter-card .dashboard-week-form,
  .masterplan-filter-card .masterplan-pdf-buttons {
    width: 100%;
  }
}


/* v2.7 help navigation stability */
.help-toc-link,
.help-back-top {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.help-back-top {
  background: transparent;
  padding: 0;
}

.help-toc-link {
  text-align: left;
}


/* v3.0 user management */
.auth-card {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: left;
}

.beheer-card {
  padding: 24px;
}

.beheer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.beheer-subcard {
  padding: 20px;
}

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

.beheer-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beheer-form-grid input,
.beheer-form-grid select,
.beheer-inline-form select {
  background: rgba(2, 6, 23, 0.88);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.beheer-actions {
  margin-top: 14px;
}

.beheer-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .beheer-grid,
  .beheer-form-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.1 custom login */
.auth-login-card {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 28px;
}

.auth-login-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.auth-login-copy,
.auth-login-form-wrap {
  padding: 22px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-login-copy h2,
.auth-login-form-wrap h2 {
  margin: 0 0 12px 0;
}

.auth-feature-list {
  margin: 14px 0 0 0;
  padding-left: 18px;
}

.auth-feature-list li {
  margin: 0 0 8px 0;
  display: list-item;
}

.auth-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-login-form input[type="text"],
.auth-login-form input[type="password"] {
  background: rgba(2, 6, 23, 0.88);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-remember {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}

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

.header-logout {
  margin-left: 8px;
}

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


/* v3.3 custom login branding */
.auth-login-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #2563eb);
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.28);
}

.auth-brand-copy h2 {
  margin: 0 0 4px 0;
}

.auth-brand-copy p {
  margin: 0;
  color: var(--muted);
}

.auth-login-copy h3 {
  margin: 0 0 12px 0;
}

@media (max-width: 640px) {
  .auth-login-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v4.5 login logo asset */
.auth-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-brand-logo img {
  display: block;
  max-width: 160px;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* Productie lookfix v4.9:
   Alleen donkere tekst herstellen die door het thema wordt overschreven,
   zonder de bestaande groene/blauwe look & feel van de plugin te flattenen. */
body.bd-app-page .app > h1,
body.bd-app-page .app > h2,
body.bd-app-page .app > h3,
body.bd-app-page .app .card > h1,
body.bd-app-page .app .card > h2,
body.bd-app-page .app .card > h3,
body.bd-app-page .app .chart-card > h2,
body.bd-app-page .app .auth-brand-copy > h2,
body.bd-app-page .app .auth-login-copy > h3,
body.bd-app-page .app .card > p:first-child,
body.bd-app-page .app .card > p,
body.bd-app-page .app .kpi-subtitle,
body.bd-app-page .app .table-subtext,
body.bd-app-page .app .help-meta-label,
body.bd-app-page .app .helper-text,
body.bd-app-page .app .day-pill > span {
    color: inherit !important;
}

body.bd-app-page .app > h1,
body.bd-app-page .app > h2,
body.bd-app-page .app > h3,
body.bd-app-page .app .card > h1,
body.bd-app-page .app .card > h2,
body.bd-app-page .app .card > h3,
body.bd-app-page .app .chart-card > h2,
body.bd-app-page .app .auth-brand-copy > h2,
body.bd-app-page .app .auth-login-copy > h3 {
    color: #f8fafc !important;
}

body.bd-app-page .app .card > p:first-child,
body.bd-app-page .app .card > p,
body.bd-app-page .app .kpi-subtitle,
body.bd-app-page .app .table-subtext,
body.bd-app-page .app .help-meta-label,
body.bd-app-page .app .helper-text,
body.bd-app-page .app .day-pill > span {
    color: var(--muted) !important;
}

/* Laat knoppen, tabs, tabelaccenten en statuskleuren ongemoeid */
body.bd-app-page .app .header a,
body.bd-app-page .app .subheader a,
body.bd-app-page .app .subheader-nested a,
body.bd-app-page .app .btn,
body.bd-app-page .app .button,
body.bd-app-page .app button,
body.bd-app-page .app .data-table th,
body.bd-app-page .app .data-table td,
body.bd-app-page .app .notice,
body.bd-app-page .app .notice *,
body.bd-app-page .app .growth-card,
body.bd-app-page .app .growth-card *,
body.bd-app-page .app .negative,
body.bd-app-page .app .positive {
    color: revert !important;
}


/* Look & feel herstel v5.0:
   expliciete kleuren voor navigatie, tabs en knoppen zodat thema-linkkleuren
   niet meer doorlekken op productie. */
body.bd-app-page .app .header a,
body.bd-app-page .app .subheader a,
body.bd-app-page .app .subheader-nested a {
    color: var(--muted) !important;
    text-decoration: none !important;
}

body.bd-app-page .app .header a:hover,
body.bd-app-page .app .subheader a:hover,
body.bd-app-page .app .subheader-nested a:hover {
    color: #ffffff !important;
}

body.bd-app-page .app .header a.active,
body.bd-app-page .app .subheader a.active,
body.bd-app-page .app .subheader-nested a.active {
    color: #04111f !important;
}

body.bd-app-page .app .btn,
body.bd-app-page .app .button,
body.bd-app-page .app button,
body.bd-app-page .app input[type="submit"],
body.bd-app-page .app input[type="button"],
body.bd-app-page .app .export-btn,
body.bd-app-page .app .pdf-btn {
    color: #04111f !important;
    text-decoration: none !important;
}

body.bd-app-page .app .btn:hover,
body.bd-app-page .app .button:hover,
body.bd-app-page .app button:hover,
body.bd-app-page .app input[type="submit"]:hover,
body.bd-app-page .app input[type="button"]:hover,
body.bd-app-page .app .export-btn:hover,
body.bd-app-page .app .pdf-btn:hover {
    color: #04111f !important;
}

body.bd-app-page .app .btn.btn-secondary,
body.bd-app-page .app .button.btn-secondary,
body.bd-app-page .app .btn-outline,
body.bd-app-page .app .button-outline {
    color: #eaf2ff !important;
}

body.bd-app-page .app select,
body.bd-app-page .app input,
body.bd-app-page .app textarea {
    color: #f8fafc !important;
}


/* Submenu accent tweak v5.0.4:
   subtiel ander actief accent voor subnavigatie, binnen dezelfde look & feel */
.subheader a.active,
.subheader-nested a.active {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
    color: #04111f !important;
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24) !important;
    border: 1px solid rgba(125, 211, 252, 0.32) !important;
}

.subheader,
.subheader-nested {
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.28);
}



/* v5.0.5 Help page buttons visible again */
.help-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.help-toc-link {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.18) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(9, 18, 45, 0.92)) !important;
  color: #e5eefb !important;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.24), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}

.help-toc-link:hover,
.help-toc-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 222, 128, 0.34) !important;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.14), 0 10px 28px rgba(2, 8, 23, 0.24);
  outline: none;
}

.help-toc-link:active {
  transform: translateY(0);
}

.help-back-top {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #86efac !important;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.help-back-top:hover,
.help-back-top:focus-visible {
  color: #bbf7d0 !important;
  text-decoration: underline;
  outline: none;
}


/* v5.0.6 help inhoudsopgave tekst zichtbaar */
body.bd-app-page .app .help-toc-link,
body.bd-app-page .app button.help-toc-link,
body.bd-app-page .app .help-toc-link:visited,
body.bd-app-page .app .help-toc-link span {
  color: #eaf2ff !important;
  -webkit-text-fill-color: #eaf2ff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.bd-app-page .app .help-toc-link:hover,
body.bd-app-page .app button.help-toc-link:hover,
body.bd-app-page .app .help-toc-link:focus-visible,
body.bd-app-page .app button.help-toc-link:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.bd-app-page .app .help-toc-link *,
body.bd-app-page .app button.help-toc-link * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}


/* v5.1.0 masterplan subheading visible */
body.bd-app-page .app h2.masterplan-scenario-title,
body.bd-app-page .app .masterplan-scenario-title {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
}


/* v5.1.1 dedicated top-level Verloning menu */
.subheader-verloning a.active {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
  color: #04111f !important;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24) !important;
}


/* v5.2.0 Verloning plan */
.verloning-plan-intro p { color: var(--muted); }
.verloning-plan-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) repeat(2, minmax(180px, 220px)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.vp-rate-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.vp-rate-field span {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}
.vp-rate-field input,
.verloning-plan-table .vp-hours {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  padding: 10px 12px;
}
.verloning-plan-table table {
  min-width: 1180px;
}
.verloning-plan-table td, .verloning-plan-table th {
  white-space: nowrap;
}
@media (max-width: 980px) {
  .verloning-plan-topbar {
    grid-template-columns: 1fr;
  }
}


/* v5.2.1 verloning plan tabs */
.subheader-verloning a.active {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
  color: #04111f !important;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24) !important;
}


/* v5.2.2 8-weeks uurlonen */
.vp-rate-field small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}


/* v5.2.3 locked hourly rates */
.vp-rate-field input[readonly],
.vp-rate-field input[disabled] {
  opacity: 0.92;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148,163,184,.14);
}


/* v5.2.5 weekuren import for verloning plan */
.verloning-plan-import-row {
  display: grid;
  grid-template-columns: minmax(280px, 420px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.vp-upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vp-upload-field span {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}
.vp-upload-field input[type="file"] {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  padding: 10px 12px;
}
.verloning-weeksource-note,
.verloning-plan-explainer {
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 980px) {
  .verloning-plan-import-row {
    grid-template-columns: 1fr;
  }
}


/* v5.2.9 compact verloning-plan samenvatting */
.verloning-plan-grid-card .verloning-plan-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.verloning-plan-summary-head h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}
.verloning-plan-summary-head p {
  margin: 0;
  color: var(--muted);
}
.verloning-plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vp-mini-card {
  border: 1px solid rgba(125,211,252,.14);
  background: rgba(8, 18, 42, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vp-mini-card strong {
  color: #f8fafc;
  font-size: .96rem;
}
.vp-mini-card span {
  color: var(--muted);
  line-height: 1.5;
  font-size: .92rem;
}
.vp-mix-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vp-mix-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: start;
}
.vp-mix-label {
  color: #cbd5e1;
  font-weight: 700;
  padding-top: 6px;
}
.vp-mix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vp-mix-pill {
  min-width: 82px;
  border: 1px solid rgba(34,211,238,.14);
  background: rgba(2, 6, 23, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vp-mix-pill strong {
  color: #e2e8f0;
  font-size: .9rem;
}
.vp-mix-pill em {
  color: #7dd3fc;
  font-style: normal;
  font-size: .9rem;
}
@media (max-width: 980px) {
  .verloning-plan-summary-grid {
    grid-template-columns: 1fr;
  }
  .vp-mix-row {
    grid-template-columns: 1fr;
  }
}


/* v5.3.0 twee kolommen service/keuken */
.verloning-plan-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.vp-dept-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vp-dept-head {
  display: grid;
  grid-template-columns: 1fr repeat(4, minmax(110px, 140px));
  gap: 12px;
  align-items: start;
}
.vp-dept-head h3 {
  margin: 0;
  font-size: 1.35rem;
}
.vp-dept-total {
  border: 1px solid rgba(125,211,252,.12);
  background: rgba(8, 18, 42, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vp-dept-total span,
.vp-dept-meta span,
.vp-mix-title {
  color: var(--muted);
  font-size: .88rem;
}
.vp-dept-total strong,
.vp-dept-meta strong {
  color: #f8fafc;
  font-size: 1rem;
}
.vp-dept-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148,163,184,.12);
}
.vp-dept-meta em {
  color: var(--muted);
  font-style: normal;
  font-size: .84rem;
}
.vp-dept-table {
  overflow-x: auto;
}
.vp-dept-table table {
  width: 100%;
  min-width: 100%;
}
.vp-dept-table th,
.vp-dept-table td {
  white-space: nowrap;
}
.vp-mix-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verloning-plan-summary-bottom {
  margin-top: 18px;
}
@media (max-width: 1200px) {
  .vp-dept-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .verloning-plan-columns {
    grid-template-columns: 1fr;
  }
}


/* v5.3.1 verloning plan unified look & feel */
.verloning-plan-columns {
  gap: 22px;
}

.vp-dept-card {
  position: relative;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(10,22,58,.9));
  box-shadow: 0 20px 44px rgba(2,8,23,.28), inset 0 1px 0 rgba(255,255,255,.03);
}

.vp-dept-head {
  grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(120px, 148px));
  gap: 14px;
  align-items: stretch;
}

.vp-dept-head h3 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(125,211,252,.12);
  color: #f8fafc;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.vp-dept-total {
  justify-content: center;
  min-height: 78px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(135deg, rgba(2,6,23,.58), rgba(15,23,42,.46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.vp-dept-total span,
.vp-dept-meta span,
.vp-mix-title {
  color: #94a3b8;
  font-size: .84rem;
  font-weight: 600;
}

.vp-dept-total strong,
.vp-dept-meta strong {
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 800;
}

.vp-dept-meta {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(2,6,23,.5), rgba(15,23,42,.36));
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.vp-dept-meta em {
  color: #94a3b8;
}

.vp-dept-table {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.12);
  overflow: hidden;
  background: rgba(2, 6, 23, 0.38);
}

.vp-dept-table table {
  border-collapse: collapse;
}

.vp-dept-table thead th {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-weight: 800;
}

.vp-dept-table tbody tr:nth-child(odd) td {
  background: rgba(2, 6, 23, 0.18);
}

.vp-dept-table tbody tr:nth-child(even) td {
  background: rgba(8, 18, 42, 0.12);
}

.vp-dept-table td,
.vp-dept-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.vp-dept-table .vp-hours {
  text-align: center;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(34,211,238,.14);
  border-radius: 14px;
  min-width: 120px;
  font-weight: 700;
}

.vp-mix-compact {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.12);
  background: linear-gradient(135deg, rgba(2,6,23,.42), rgba(15,23,42,.32));
}

.vp-mix-title {
  font-size: .9rem;
}

.vp-mix-pill {
  border: 1px solid rgba(125,211,252,.14);
  background: linear-gradient(135deg, rgba(2,6,23,.58), rgba(15,23,42,.46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.vp-mix-pill strong {
  color: #e2e8f0;
  font-weight: 800;
}

.vp-mix-pill em {
  color: #67e8f9;
  font-weight: 700;
}

.verloning-plan-summary-bottom {
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(135deg, rgba(15,23,42,.9), rgba(10,22,58,.86));
  box-shadow: 0 18px 40px rgba(2,8,23,.24), inset 0 1px 0 rgba(255,255,255,.02);
}

.verloning-plan-summary-head h4 {
  color: #f8fafc;
  font-weight: 800;
}

.verloning-plan-summary-head p,
.vp-mini-card span {
  color: #94a3b8;
}

.vp-mini-card {
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(135deg, rgba(2,6,23,.58), rgba(15,23,42,.44));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.vp-mini-card strong {
  color: #f8fafc;
  font-weight: 800;
}

.verloning-weeksource-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.14);
  background: rgba(2, 6, 23, 0.36);
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .vp-dept-head {
    grid-template-columns: 1fr;
  }
  .vp-dept-head h3 {
    min-height: 58px;
  }
}


/* v5.3.2 verloning plan input cleanup */
.verloning-plan-topbar {
  grid-template-columns: minmax(220px, 260px) minmax(220px, 1fr);
  align-items: center;
}

.verloning-plan-topbar .btn {
  justify-self: stretch;
  min-height: 54px;
}

.vp-dept-table .vp-hours {
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  text-align: center;
  padding-right: 12px;
}

.vp-dept-table .vp-hours::-webkit-outer-spin-button,
.vp-dept-table .vp-hours::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 980px) {
  .verloning-plan-topbar {
    grid-template-columns: 1fr;
  }
}


/* v5.3.4 upload page weekuren import */
.upload-weekhours-card {
  margin-bottom: 18px;
}
.upload-weekhours-card p,
.upload-weekhours-note {
  color: var(--muted);
}
.upload-weekhours-form {
  display: grid;
  grid-template-columns: minmax(280px, 420px) auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}
.upload-weekhours-note {
  margin-top: 12px;
}
@media (max-width: 980px) {
  .upload-weekhours-form {
    grid-template-columns: 1fr;
  }
}


/* v5.3.8 verloning plan cleanup */
.verloning-plan-topbar {
  grid-template-columns: minmax(220px, 260px) auto;
  justify-content: start;
  gap: 14px;
}

.verloning-plan-topbar .btn {
  justify-self: start;
  min-height: 46px;
}

.vp-save-btn {
  width: auto;
  min-width: 180px;
  padding-inline: 22px;
}

@media (max-width: 980px) {
  .verloning-plan-topbar {
    grid-template-columns: 1fr;
  }
  .vp-save-btn {
    width: 100%;
  }
}


/* v5.4.0 effectief prioriteit verloning */
.verloning-source-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.14);
  background: rgba(2,6,23,.36);
  color: #cbd5e1;
  font-weight: 700;
}
.vp-hours[readonly] {
  opacity: .9;
  cursor: default;
  background: rgba(2, 6, 23, 0.45);
}


/* v5.4.6 verloning tabs */
.subheader-verloning-mode {
  margin-bottom: 16px;
}
.subheader-verloning-mode a {
  min-width: 160px;
  text-align: center;
}

.verloning-source-badge{display:none!important;}


.productie-categorie-card h3 [data-productie-planned-total="1"]{
  display:inline;
  font: inherit;
  color: inherit;
}


/* v5.6.7 verloning export topbar fix */
.verloning-plan-topbar {
  grid-template-columns: minmax(220px, 260px) auto auto;
  justify-content: start;
  gap: 14px;
  align-items: center;
}
.verloning-plan-topbar .btn {
  justify-self: start;
  width: auto;
}
.verloning-export-trigger {
  min-width: 180px;
}
@media (max-width: 980px) {
  .verloning-plan-topbar {
    grid-template-columns: 1fr;
  }
  .verloning-export-trigger {
    width: 100%;
  }
}


.upload-instructions-table {
    overflow-x: visible;
}

.upload-instructions-table table {
    table-layout: fixed;
}

.upload-instructions-table th,
.upload-instructions-table td {
    white-space: normal;
    vertical-align: top;
}

.upload-instructions-table th:nth-child(1),
.upload-instructions-table td:nth-child(1) { width: 10%; }
.upload-instructions-table th:nth-child(2),
.upload-instructions-table td:nth-child(2) { width: 12%; }
.upload-instructions-table th:nth-child(3),
.upload-instructions-table td:nth-child(3) { width: 10%; }
.upload-instructions-table th:nth-child(4),
.upload-instructions-table td:nth-child(4) { width: 8%; }
.upload-instructions-table th:nth-child(5),
.upload-instructions-table td:nth-child(5) { width: 60%; }

.step-list {
    margin: 0;
    padding-left: 18px;
}

.step-list li + li {
    margin-top: 4px;
}


/* Upload instructies: kader per uploadregel */
.upload-instructions-table table {
    border-collapse: separate;
    border-spacing: 0 14px;
    background: transparent;
}

.upload-instructions-table thead th {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.upload-instructions-table tbody tr {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18));
}

.upload-instructions-table tbody td {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(9, 16, 34, 0.96));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    white-space: normal;
}

.upload-instructions-table tbody td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.upload-instructions-table tbody td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.upload-instructions-table tbody tr:hover td {
    background: linear-gradient(180deg, rgba(20, 32, 58, 0.98), rgba(10, 18, 40, 0.98));
}


/* v113 verloning data note */
.verloning-data-note {
  margin: 12px 6px 0;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.45;
}



/* beheer look & feel polish */
.beheer-inline-form input,
.beheer-form-grid input,
.beheer-inline-form select,
.beheer-form-grid select {
  width: 100%;
  min-height: 44px;
  background: rgba(2, 6, 23, 0.88);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.beheer-inline-form input::placeholder,
.beheer-form-grid input::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.beheer-inline-form input:focus,
.beheer-form-grid input:focus,
.beheer-inline-form select:focus,
.beheer-form-grid select:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.beheer-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.beheer-inline-form select {
  min-width: 190px;
}

.beheer-password-input {
  min-width: 180px;
}

.beheer-inline-form .btn {
  min-height: 44px;
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.data-table td {
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .beheer-inline-form {
    align-items: stretch;
  }
  .beheer-inline-form select,
  .beheer-inline-form input,
  .beheer-inline-form .btn {
    width: 100%;
  }
}


.beheer-role-edit-card{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(3,12,38,.35);
}
.beheer-role-edit-card:first-of-type{
  margin-top:0;
}


.beheer-role-picker-form{
  margin-bottom:16px;
}


/* Beheer: rechten onder elkaar tonen */
.beheer-role-caps{
  display:block;
}
.beheer-caps-label{
  display:block;
  margin-bottom:10px;
}
.beheer-cap-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  width:100%;
  margin:0 0 8px 0;
}
.beheer-cap-option input[type="checkbox"]{
  margin-top:4px;
  flex:0 0 auto;
}
.beheer-cap-option span{
  display:block;
  line-height:1.4;
}

.planning-site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
    font-weight: 800;
}

.planning-site-nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.planning-site-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* v4.0.4 beheer UI fix: rechten-checkboxes correct uitlijnen */
body.bd-app-page .app .beheer-role-caps {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px 12px !important;
  margin-top: 10px !important;
  max-width: 100% !important;
}

body.bd-app-page .app .beheer-role-caps .beheer-caps-label {
  grid-column: 1 / -1 !important;
  display: block !important;
  margin: 0 0 2px 0 !important;
  color: rgba(226, 232, 240, 0.88) !important;
  font-weight: 800 !important;
}

body.bd-app-page .app .beheer-role-caps .beheer-cap-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(2, 6, 23, 0.22) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.bd-app-page .app .beheer-role-caps .beheer-cap-option input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  flex: 0 0 16px !important;
  box-shadow: none !important;
}

body.bd-app-page .app .beheer-role-caps .beheer-cap-option span {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 760px) {
  body.bd-app-page .app .beheer-role-caps {
    grid-template-columns: 1fr !important;
  }
}

/* v4.0.5 beheer: bestaande gebruikers direct onder aanmaken en nieuwe gebruiker markeren */
body.bd-app-page .app .beheer-created-user-row td {
  background: rgba(34, 197, 94, 0.12) !important;
  border-top: 1px solid rgba(74, 222, 128, 0.28) !important;
  border-bottom: 1px solid rgba(74, 222, 128, 0.28) !important;
}


/* v4.0.15 centreer kolommen verloning-tabellen */
.vp-dept-table th,
.vp-dept-table td {
  text-align: center;
  vertical-align: middle;
}

/* v4.0.17 verloning periodefilter */
.verloning-plan-topbar {
  grid-template-columns: minmax(220px, 260px) auto auto auto;
  align-items: end;
}
.vp-date-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.vp-date-filter label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 700;
}
.vp-date-filter input[type="date"] {
  min-height: 46px;
  min-width: 155px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.66);
  color: #e2e8f0;
  padding: 0 12px;
  font-weight: 700;
}
.vp-date-filter .btn {
  min-height: 46px;
}
@media (max-width: 980px) {
  .vp-date-filter,
  .vp-date-filter label,
  .vp-date-filter input[type="date"],
  .vp-date-filter .btn {
    width: 100%;
  }
}


/* v4.0.18 verloning periodefilter look & feel */
.vp-date-filter,
.vp-date-filter label,
.vp-date-filter input[type="date"],
.vp-date-filter .btn {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.vp-date-filter {
  align-items: end;
  gap: 14px;
}
.vp-date-filter label {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.vp-date-filter label span {
  margin-bottom: 4px;
}
.vp-date-filter input[type="date"] {
  height: 54px;
  min-height: 54px;
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.74);
  color: var(--text);
  padding: 0 16px;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.vp-date-filter input[type="date"]::-webkit-datetime-edit,
.vp-date-filter input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.vp-date-filter input[type="date"]::-webkit-datetime-edit-text,
.vp-date-filter input[type="date"]::-webkit-datetime-edit-day-field,
.vp-date-filter input[type="date"]::-webkit-datetime-edit-month-field,
.vp-date-filter input[type="date"]::-webkit-datetime-edit-year-field {
  font-family: inherit;
  color: var(--text);
  font-size: .95rem;
  font-weight: 800;
  text-transform: none;
}
.vp-date-filter input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .78;
  cursor: pointer;
}
.vp-date-filter .btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: 0;
  padding-inline: 24px;
}

/* v4.0.22 maak kalendericoon zichtbaar op donkere datumvelden */
.vp-date-filter input[type="date"] {
  color-scheme: dark;
}
.vp-date-filter input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: invert(1) brightness(1.45) contrast(1.05);
  cursor: pointer;
}


/* v4.0.26 kalendericoon echt wit, zonder verkleurde achtergrond */
.vp-date-filter input[type="date"] {
  padding-right: 52px;
}
.vp-date-filter input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  width: 18px;
  height: 18px;
  padding: 7px;
  margin-right: 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: brightness(0) invert(1);
}
.vp-date-filter input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: transparent;
  box-shadow: none;
  filter: brightness(0) invert(1);
}


/* v4.0.28 verloning witte kalender- en dropdown-iconen */
.verloning-plan-topbar .custom-select {
  position: relative;
  display: block;
}
.verloning-plan-topbar .custom-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 48px;
  color: #f8fafc;
}
.verloning-plan-topbar .custom-select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #f8fafc;
  border-bottom: 2px solid #f8fafc;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.95;
}

.vp-date-filter label {
  position: relative;
}
.vp-date-filter input[type="date"] {
  position: relative;
  padding-right: 54px;
  color: #f8fafc;
}
.vp-date-filter label::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 17px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center;
  pointer-events: none;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.vp-date-filter input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}

/* v4.0.30 recepturen allergenen checkboxen */
.rb-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rb-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.36);
  color: #e2e8f0;
  font-weight: 700;
}
.rb-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
}

/* v4.0.30 recepturen allergenen checkboxen */
.rb-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rb-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.36);
  color: #e2e8f0;
  font-weight: 700;
}
.rb-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
}

/* v4.0.68: desktop breedte gelijk aan recepturen-tool */
@media (min-width: 981px) {
  .app,
  body.bd-app-page .app {
    width: min(1680px, calc(100vw - 160px)) !important;
    max-width: min(1680px, calc(100vw - 160px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  body.bd-app-page .app > .card.filter,
  body.bd-app-page .masterplan-card,
  body.bd-app-page .chart-card,
  body.bd-app-page .card,
  body.bd-app-page .grid,
  body.bd-app-page .two-columns {
    max-width: 100% !important;
  }
}


/* v4.0.70: planning tabbladen dezelfde maximale breedte als recepturen-tool */
@media (min-width: 981px) {
  body.bd-app-page .app,
  .app {
    width: min(1280px, calc(100vw - 160px)) !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  body.bd-app-page .app > .card,
  body.bd-app-page .app > .card.filter,
  body.bd-app-page .app > .grid,
  body.bd-app-page .app > .two-columns,
  body.bd-app-page .app > .masterplan-card,
  body.bd-app-page .app > .chart-card,
  .masterplan-card,
  .card,
  .grid,
  .two-columns {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.bd-app-page .masterplan-table-wrap,
  body.bd-app-page .data-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* v4.0.72: definitieve planning-breedte gelijk aan recepturen-tool */
html body.bd-app-page .app,
html body .entry-content > .app,
html body .wp-site-blocks .entry-content > .app,
html body .wp-block-post-content > .app {
  width: min(1280px, calc(100vw - 160px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app > .card,
html body.bd-app-page .app > .card.filter,
html body.bd-app-page .app > .masterplan-card,
html body.bd-app-page .app > .chart-card,
html body.bd-app-page .app > .grid,
html body.bd-app-page .app > .two-columns,
html body .entry-content > .app > .card,
html body .entry-content > .app > .card.filter,
html body .entry-content > .app > .masterplan-card,
html body .entry-content > .app > .chart-card,
html body .entry-content > .app > .grid,
html body .entry-content > .app > .two-columns {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app .masterplan-table-wrap,
html body.bd-app-page .app .table-wrap,
html body.bd-app-page .app .data-table-wrap,
html body .entry-content > .app .masterplan-table-wrap,
html body .entry-content > .app .table-wrap,
html body .entry-content > .app .data-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app .masterplan-table,
html body .entry-content > .app .masterplan-table {
  width: max-content !important;
  min-width: 1220px !important;
  max-width: none !important;
}
html body.bd-app-page .app .masterplan-table.masterplan-table-categories,
html body.bd-app-page .app .masterplan-table.masterplan-table-invoer-categories,
html body .entry-content > .app .masterplan-table.masterplan-table-categories,
html body .entry-content > .app .masterplan-table.masterplan-table-invoer-categories {
  min-width: 1500px !important;
}
html body.bd-app-page .app > .header,
html body.bd-app-page .app > .subheader,
html body.bd-app-page .app > .subheader-nested,
html body .entry-content > .app > .header,
html body .entry-content > .app > .subheader,
html body .entry-content > .app > .subheader-nested {
  width: auto !important;
  max-width: 100% !important;
}
@media (max-width: 980px) {
  html body.bd-app-page .app,
  html body .entry-content > .app,
  html body .wp-site-blocks .entry-content > .app,
  html body .wp-block-post-content > .app {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* v4.0.75: planning UI iets breder zodat hoofdmenu op één regel blijft */
@media (min-width: 981px) {
  html body.bd-app-page .app,
  html body .entry-content > .app,
  html body .wp-site-blocks .entry-content > .app,
  html body .wp-block-post-content > .app {
    width: min(1440px, calc(100vw - 120px)) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box !important;
  }

  html body.bd-app-page .app > .header,
  html body .entry-content > .app > .header,
  html body .wp-site-blocks .entry-content > .app > .header,
  html body .wp-block-post-content > .app > .header {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* v4.0.76: Uitloggen boven de hoofdmenu-structuur zonder het hoofdmenu breder te maken */
body.bd-app-page .app > .bd-menu-structure,
html body .entry-content > .app > .bd-menu-structure,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure,
html body .wp-block-post-content > .app > .bd-menu-structure {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 16px !important;
}

body.bd-app-page .app .bd-menu-logout-row,
html body .entry-content > .app .bd-menu-logout-row,
html body .wp-site-blocks .entry-content > .app .bd-menu-logout-row,
html body .wp-block-post-content > .app .bd-menu-logout-row {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
  margin: 0 0 8px !important;
}

body.bd-app-page .app .bd-menu-logout-row .header-logout,
html body .entry-content > .app .bd-menu-logout-row .header-logout,
html body .wp-site-blocks .entry-content > .app .bd-menu-logout-row .header-logout,
html body .wp-block-post-content > .app .bd-menu-logout-row .header-logout {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.58) !important;
  border: 1px solid var(--panel-border) !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.bd-app-page .app .bd-menu-logout-row .header-logout:hover,
html body .entry-content > .app .bd-menu-logout-row .header-logout:hover,
html body .wp-site-blocks .entry-content > .app .bd-menu-logout-row .header-logout:hover,
html body .wp-block-post-content > .app .bd-menu-logout-row .header-logout:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.05) !important;
  transform: translateY(-1px) !important;
}

body.bd-app-page .app > .bd-menu-structure > .header-main,
html body .entry-content > .app > .bd-menu-structure > .header-main,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main,
html body .wp-block-post-content > .app > .bd-menu-structure > .header-main {
  margin-bottom: 0 !important;
}


/* v4.0.77: Uitloggen naast Beheer + menu iets breder maar niet schermvullend */
@media (min-width: 981px) {
  html body.bd-app-page .app,
  html body .entry-content > .app,
  html body .wp-site-blocks .entry-content > .app,
  html body .wp-block-post-content > .app {
    width: min(1480px, calc(100vw - 96px)) !important;
    max-width: 1480px !important;
  }
}

body.bd-app-page .app > .bd-menu-structure,
html body .entry-content > .app > .bd-menu-structure,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure,
html body .wp-block-post-content > .app > .bd-menu-structure {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 16px !important;
}

body.bd-app-page .app > .bd-menu-structure > .header-main,
html body .entry-content > .app > .bd-menu-structure > .header-main,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main,
html body .wp-block-post-content > .app > .bd-menu-structure > .header-main {
  margin-bottom: 16px !important;
  max-width: 100% !important;
}

body.bd-app-page .app > .bd-menu-structure > .header-main a,
html body .entry-content > .app > .bd-menu-structure > .header-main a,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main a,
html body .wp-block-post-content > .app > .bd-menu-structure > .header-main a {
  min-width: 120px !important;
}

body.bd-app-page .app > .bd-menu-structure > .header-main .header-logout,
html body .entry-content > .app > .bd-menu-structure > .header-main .header-logout,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main .header-logout,
html body .wp-block-post-content > .app > .bd-menu-structure > .header-main .header-logout {
  min-width: 0 !important;
  width: auto !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  margin-left: 0 !important;
}

body.bd-app-page .app .bd-menu-logout-row,
html body .entry-content > .app .bd-menu-logout-row,
html body .wp-site-blocks .entry-content > .app .bd-menu-logout-row,
html body .wp-block-post-content > .app .bd-menu-logout-row {
  display: none !important;
}

@media (max-width: 980px) {
  body.bd-app-page .app > .bd-menu-structure,
  html body .entry-content > .app > .bd-menu-structure,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure,
  html body .wp-block-post-content > .app > .bd-menu-structure {
    width: 100% !important;
  }
}


/* v4.0.78: hoofdmenu op desktop geforceerd op één rij, Uitloggen naast Beheer */
@media (min-width: 981px) {
  body.bd-app-page .app > .bd-menu-structure > .header-main,
  html body .entry-content > .app > .bd-menu-structure > .header-main,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main,
  html body .wp-block-post-content > .app > .bd-menu-structure > .header-main {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    gap: 8px !important;
  }

  body.bd-app-page .app > .bd-menu-structure,
  html body .entry-content > .app > .bd-menu-structure,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure,
  html body .wp-block-post-content > .app > .bd-menu-structure {
    width: max-content !important;
    max-width: 100% !important;
  }

  body.bd-app-page .app > .bd-menu-structure > .header-main a,
  html body .entry-content > .app > .bd-menu-structure > .header-main a,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main a,
  html body .wp-block-post-content > .app > .bd-menu-structure > .header-main a {
    flex: 0 0 auto !important;
    min-width: 116px !important;
  }

  body.bd-app-page .app > .bd-menu-structure > .header-main .header-logout,
  html body .entry-content > .app > .bd-menu-structure > .header-main .header-logout,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main .header-logout,
  html body .wp-block-post-content > .app > .bd-menu-structure > .header-main .header-logout {
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 980px) {
  body.bd-app-page .app > .bd-menu-structure > .header-main,
  html body .entry-content > .app > .bd-menu-structure > .header-main,
  html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main,
  html body .wp-block-post-content > .app > .bd-menu-structure > .header-main {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }
}


/* v4.0.79: Recepturenbeheer onderdeel van plugin-menu, met teruglink naar planningstool */
.rb-tabs a.rb-planning-link {
  background: rgba(59,130,246,.16) !important;
  border: 1px solid rgba(125,211,252,.22) !important;
  color: #dbeafe !important;
}
.rb-tabs a.rb-planning-link:hover {
  background: rgba(59,130,246,.24) !important;
  color: #ffffff !important;
}

/* v4.0.96: rollen muteren/verwijderen */
body.bd-app-page .app .beheer-delete-role-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}

body.bd-app-page .app .beheer-danger-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 16px;
  background: rgba(127, 29, 29, 0.14);
}

body.bd-app-page .app .btn.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: rgba(248, 113, 113, 0.45);
}

body.bd-app-page .app .btn.btn-danger:hover {
  filter: brightness(1.08);
}

/* v4.0.98: extra ruimte in recepturenformulier */
.rb-app .rb-lines{gap:18px!important;margin:16px 0 24px!important}
.rb-app .rb-line{gap:16px!important;row-gap:14px!important;align-items:center!important;margin-bottom:0!important}
.rb-app .rb-ingredient-line-actions{margin:20px 0 30px!important}
.rb-app .rb-prep-lines{gap:18px!important;margin-top:16px!important;margin-bottom:22px!important}
.rb-app .rb-prep-line{gap:16px!important;row-gap:14px!important;align-items:start!important;margin-bottom:0!important}
.rb-app .rb-line-actions{gap:18px!important;margin-top:22px!important}
.rb-app .rb-card form>h3{margin-top:26px!important;margin-bottom:14px!important}
.rb-app .rb-card form>p.rb-muted{margin:0 0 16px!important}
@media(max-width:980px){.rb-app .rb-line,.rb-app .rb-prep-line{gap:14px!important}.rb-app .rb-lines,.rb-app .rb-prep-lines{gap:16px!important}}


/* v4.0.100 upload instructies verfijning */
.upload-instructions-table th,
.upload-instructions-table td {
    vertical-align: top !important;
}

.upload-instructions-table thead th {
    padding-top: 12px;
    padding-bottom: 14px;
}

.upload-instructions-table tbody td {
    padding: 22px 14px !important;
}

.upload-instructions-table tbody td:nth-child(-n+4) {
    padding-top: 26px !important;
}

.upload-instructions-table .step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: upload-step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-instructions-table .step-list li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.45;
}

.upload-instructions-table .step-list li::before {
    counter-increment: upload-step;
    content: counter(upload-step);
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255,255,255,0.24);
    flex-shrink: 0;
}

.upload-instructions-table .step-list li + li {
    margin-top: 0 !important;
}

.upload-instructions-table .step-list li::after {
    content: none !important;
}

@media (max-width: 900px) {
    .upload-instructions-table tbody td {
        padding: 18px 12px !important;
    }

    .upload-instructions-table .step-list li {
        gap: 10px;
    }

    .upload-instructions-table .step-list li::before {
        width: 26px;
        min-width: 26px;
        height: 26px;
        font-size: 0.84rem;
    }
}


/* v4.0.101 upload instructies stapuitlijning + vetgedrukte accenten */
.upload-instructions-table .step-list li {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.upload-instructions-table .step-list li .step-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left !important;
    line-height: 1.45;
}

.upload-instructions-table .step-list li .step-text strong {
    color: #f8fafc;
    font-weight: 800;
}


/* v4.0.102 upload instructies zonder kolom Bron */
.upload-instructions-table th:nth-child(1),
.upload-instructions-table td:nth-child(1) { width: 13% !important; }
.upload-instructions-table th:nth-child(2),
.upload-instructions-table td:nth-child(2) { width: 14% !important; }
.upload-instructions-table th:nth-child(3),
.upload-instructions-table td:nth-child(3) { width: 13% !important; }
.upload-instructions-table th:nth-child(4),
.upload-instructions-table td:nth-child(4) { width: 60% !important; }


/* v4.0.104 uploadstatus: alleen actuele ingelezen bestanden */
.uploaded-files-status {
    margin-top: 18px;
}

.uploaded-files-table table {
    table-layout: fixed;
}

.uploaded-files-table th,
.uploaded-files-table td {
    white-space: normal;
    vertical-align: top;
    padding: 14px 12px;
}

.uploaded-files-table th:nth-child(1),
.uploaded-files-table td:nth-child(1) { width: 24%; }
.uploaded-files-table th:nth-child(2),
.uploaded-files-table td:nth-child(2) { width: 52%; }
.uploaded-files-table th:nth-child(3),
.uploaded-files-table td:nth-child(3) { width: 24%; }

.uploaded-files-table tbody td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.uploaded-files-table tbody tr:last-child td {
    border-bottom: 0;
}


/* v4.0.105 alleen productieplan tabs verfijnd */
body.bd-app-page .app .subheader.subheader-nested.subheader-productie {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 12px !important;
  width: fit-content;
  min-width: 0 !important;
  margin: -6px auto 30px !important;
  padding: 10px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(10, 19, 41, 0.92), rgba(6, 14, 31, 0.96)) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 16px 34px rgba(2, 8, 23, 0.34), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

body.bd-app-page .app .subheader-productie a {
  min-width: 0 !important;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px !important;
  border-radius: 18px !important;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: #cbd5e1 !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(9, 16, 34, 0.88)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  transform: none !important;
}

body.bd-app-page .app .subheader-productie a:hover {
  color: #f8fafc !important;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.96), rgba(10, 18, 40, 0.96)) !important;
  border-color: rgba(125, 211, 252, 0.24) !important;
  box-shadow: 0 8px 20px rgba(8, 15, 32, 0.24), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

body.bd-app-page .app .subheader-productie a.active {
  color: #04111f !important;
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 55%, #22d3ee 100%) !important;
  border-color: rgba(125, 211, 252, 0.34) !important;
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.24), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

@media (max-width: 760px) {
  body.bd-app-page .app .subheader.subheader-nested.subheader-productie {
    grid-template-columns: 1fr;
    width: min(100%, 460px);
  }
}


/* v4.0.106 Productieplan plan/eff. layout polish - bewust alleen productiepagina */
body.bd-app-page .app .productie-filter.card {
  padding: 24px !important;
  margin-bottom: 22px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.94), rgba(10, 18, 38, 0.96)) !important;
}

body.bd-app-page .app .productie-filter-form {
  display: grid !important;
  gap: 18px !important;
}

body.bd-app-page .app .productie-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  align-items: end !important;
}

body.bd-app-page .app .productie-filter .field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.bd-app-page .app .productie-filter .field-group label {
  margin: 0 !important;
  color: #dbe7f7 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.bd-app-page .app .productie-filter .custom-select,
body.bd-app-page .app .productie-filter select {
  width: 100% !important;
}

body.bd-app-page .app .productie-filter select {
  min-height: 58px !important;
  border-radius: 16px !important;
  padding: 0 48px 0 18px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  background-color: rgba(3, 7, 18, 0.86) !important;
  border: 1px solid rgba(148, 163, 184, 0.20) !important;
}

body.bd-app-page .app .productie-filter-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 14px !important;
  padding-top: 2px !important;
  flex-wrap: wrap !important;
}

body.bd-app-page .app .productie-filter-actions .btn {
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 14px !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
}

body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 26px !important;
}

body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three .card {
  min-height: 116px !important;
  padding: 24px 26px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(15, 26, 50, 0.96), rgba(9, 17, 36, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.17) !important;
}

body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three .card h3 {
  margin: 0 0 12px !important;
  font-size: 1.02rem !important;
  color: #f1f5f9 !important;
  font-weight: 800 !important;
}

body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three .card p,
body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three .productie-card-subtext {
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

body.bd-app-page .app .productie-detail-card.card {
  margin-top: 10px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.96), rgba(10, 18, 38, 0.98)) !important;
}

body.bd-app-page .app .productie-detail-card h2 {
  margin: 0 0 10px !important;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

body.bd-app-page .app .productie-detail-card .productie-mix-sub {
  max-width: 1040px !important;
  margin: 0 0 20px !important;
  color: #a8b4c7 !important;
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
}

body.bd-app-page .app .productie-detail-card .masterplan-table-wrap {
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  overflow: auto !important;
  background: rgba(2, 6, 23, 0.28) !important;
}

body.bd-app-page .app .productie-detail-card .productie-product-table {
  min-width: 1120px !important;
  table-layout: fixed !important;
}

body.bd-app-page .app .productie-detail-card .productie-product-table thead th {
  height: 50px !important;
  padding: 14px 12px !important;
  font-size: 0.95rem !important;
  background: rgba(13, 23, 43, 0.98) !important;
}

body.bd-app-page .app .productie-detail-card .productie-product-table tbody th {
  width: 210px !important;
  min-width: 210px !important;
  padding: 14px 12px !important;
  vertical-align: middle !important;
  line-height: 1.25 !important;
}

body.bd-app-page .app .productie-detail-card .productie-product-table td {
  padding: 10px 10px !important;
  vertical-align: middle !important;
}

body.bd-app-page .app .productie-detail-card .productie-product-table td .mp-input.productie-product-input {
  min-height: 36px !important;
  width: 100% !important;
  max-width: 180px !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
}

@media (max-width: 1000px) {
  body.bd-app-page .app .productie-filter-grid,
  body.bd-app-page .app .productie-filter + .grid.kpi.stable-kpi.three {
    grid-template-columns: 1fr !important;
  }

  body.bd-app-page .app .productie-filter.card,
  body.bd-app-page .app .productie-detail-card.card {
    padding: 20px !important;
  }
}


/* v4.0.110 - Alleen Productieplan plan/eff.: echte brede layout, niet globaal */
html body.bd-app-page .app.app-productie-only,
html body .entry-content > .app.app-productie-only,
html body .wp-site-blocks .entry-content > .app.app-productie-only,
html body .wp-block-post-content > .app.app-productie-only {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: clamp(24px, 3vw, 56px) !important;
  padding-right: clamp(24px, 3vw, 56px) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html body.bd-app-page .app.app-productie-only > .productie-intro,
html body.bd-app-page .app.app-productie-only > .productie-filter.card,
html body.bd-app-page .app.app-productie-only > .productie-filter + .grid.kpi.stable-kpi.three,
html body.bd-app-page .app.app-productie-only > .productie-detail-card.card,
html body .entry-content > .app.app-productie-only > .productie-intro,
html body .entry-content > .app.app-productie-only > .productie-filter.card,
html body .entry-content > .app.app-productie-only > .productie-filter + .grid.kpi.stable-kpi.three,
html body .entry-content > .app.app-productie-only > .productie-detail-card.card {
  width: 100% !important;
  max-width: 1760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html body.bd-app-page .app.app-productie-only > .productie-filter.card {
  padding: clamp(24px, 2.3vw, 38px) !important;
}

html body.bd-app-page .app.app-productie-only .productie-filter-grid {
  grid-template-columns: repeat(3, minmax(320px, 1fr)) !important;
  gap: clamp(22px, 2vw, 34px) !important;
}

html body.bd-app-page .app.app-productie-only .productie-filter-actions {
  margin-top: 6px !important;
  gap: 18px !important;
}

html body.bd-app-page .app.app-productie-only > .productie-filter + .grid.kpi.stable-kpi.three {
  grid-template-columns: repeat(3, minmax(320px, 1fr)) !important;
  gap: clamp(22px, 2vw, 34px) !important;
  margin-top: 0 !important;
  margin-bottom: 36px !important;
}

html body.bd-app-page .app.app-productie-only > .productie-filter + .grid.kpi.stable-kpi.three .card {
  min-height: 128px !important;
  padding: 28px 34px !important;
}

html body.bd-app-page .app.app-productie-only > .productie-detail-card.card {
  padding: clamp(26px, 2.4vw, 42px) !important;
  overflow: hidden !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-mix-sub {
  max-width: none !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .masterplan-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table {
  width: 100% !important;
  min-width: 1280px !important;
  max-width: none !important;
  table-layout: fixed !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table thead th:first-child,
html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table tbody th {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table td {
  padding: 12px 14px !important;
}

html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table td .mp-input.productie-product-input {
  max-width: none !important;
  min-height: 42px !important;
  width: 100% !important;
}

@media (min-width: 1500px) {
  html body.bd-app-page .app.app-productie-only .productie-detail-card .productie-product-table {
    min-width: 0 !important;
  }
}

@media (max-width: 1100px) {
  html body.bd-app-page .app.app-productie-only,
  html body .entry-content > .app.app-productie-only,
  html body .wp-site-blocks .entry-content > .app.app-productie-only,
  html body .wp-block-post-content > .app.app-productie-only {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html body.bd-app-page .app.app-productie-only .productie-filter-grid,
  html body.bd-app-page .app.app-productie-only > .productie-filter + .grid.kpi.stable-kpi.three {
    grid-template-columns: 1fr !important;
  }
}


/* v4.0.111 - productieplan: bovenste subtab frame niet full-width */
html body.bd-app-page .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
html body .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
html body .wp-block-post-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: calc(100% - 48px) !important;
  min-width: 0 !important;
  margin: 0 auto 18px !important;
  padding: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  background: rgba(15, 23, 42, 0.34) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

html body.bd-app-page .app.app-productie-only > .subheader.subheader-nested.subheader-productie a,
html body .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie a,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie a,
html body .wp-block-post-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie a {
  flex: 0 0 auto !important;
}

@media (max-width: 760px) {
  html body.bd-app-page .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
  html body .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
  html body .wp-site-blocks .entry-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie,
  html body .wp-block-post-content > .app.app-productie-only > .subheader.subheader-nested.subheader-productie {
    display: flex !important;
    width: min(100%, 460px) !important;
    max-width: min(100%, 460px) !important;
    flex-wrap: wrap !important;
  }
}


/* v4.0.120 recepturen dashboard marges */
.rb-app .rb-dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 22px !important;
}

.rb-app .rb-margin-kpi small {
  display: block !important;
  margin-top: 10px !important;
  color: var(--muted, #a9b8cc) !important;
  font-size: .92rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}


/* v4.0.123 - Receptuur schalen in eigen look & feel */
.rb-app .rb-scale-panel {
  margin: 0 0 18px !important;
  padding: 20px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(9, 16, 34, 0.96)) !important;
}

.rb-app .rb-scale-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.rb-app .rb-scale-eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rb-app .rb-scale-panel h3 {
  margin: 0 0 6px !important;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem) !important;
}

.rb-app .rb-scale-panel p {
  margin: 0 !important;
}

.rb-app .rb-scale-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rb-app .rb-scale-stepper {
  display: inline-grid;
  grid-template-columns: 48px minmax(180px, 260px) 48px;
  gap: 10px;
  align-items: stretch;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rb-app .rb-scale-step {
  width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255,255,255,0.22);
}

.rb-app .rb-scale-step:hover {
  filter: brightness(1.08);
}

.rb-app .rb-scale-value-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.rb-app .rb-scale-value {
  width: 86px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  text-align: right !important;
  box-shadow: none !important;
  outline: none !important;
}

.rb-app .rb-scale-value-wrap span {
  color: #cbd5e1;
  font-weight: 800;
}

.rb-app .rb-scale-presets {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rb-app .rb-scale-presets button {
  min-width: 54px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  font-weight: 900;
  cursor: pointer;
}

.rb-app .rb-scale-presets button:hover {
  border-color: rgba(125, 211, 252, 0.38);
  color: #f8fafc;
  background: rgba(20, 32, 58, 0.92);
}

.rb-app .rb-scale-pdf {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rb-app .rb-scale-panel-header {
    grid-template-columns: 1fr;
  }

  .rb-app .rb-scale-pdf {
    width: 100%;
    justify-content: center;
  }

  .rb-app .rb-scale-stepper {
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .rb-app .rb-scale-presets {
    width: 100%;
  }
}

/* == 4.0.129 staff planning UI refresh == */
body.bd-app-page .bd-staff-hero {
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 29, 0.88));
}
body.bd-app-page .bd-staff-hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
body.bd-app-page .bd-staff-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    color: #93c5fd;
    background: rgba(56, 189, 248, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.bd-app-page .bd-staff-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
body.bd-app-page .bd-staff-card-head h2,
body.bd-app-page .bd-staff-kpi h3 {
    margin-bottom: 6px;
}
body.bd-app-page .bd-staff-muted {
    color: var(--muted, #a9b8cc);
}
body.bd-app-page .bd-staff-tabs {
    margin-bottom: 18px;
}
body.bd-app-page .bd-staff-tabs a {
    margin-right: 8px;
}
body.bd-app-page .bd-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
body.bd-app-page .bd-staff-kpi p {
    margin-top: 10px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
}
body.bd-app-page .bd-staff-form-shell {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(7, 14, 28, 0.85), rgba(2, 6, 23, 0.68));
}
body.bd-app-page .bd-staff-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
body.bd-app-page .bd-staff-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}
body.bd-app-page .bd-staff-field span {
    font-size: 0.86rem;
    color: var(--muted, #a9b8cc);
    font-weight: 700;
}
body.bd-app-page .bd-staff-field--wide {
    grid-column: span 2;
}
body.bd-app-page .bd-staff-form-action {
    display: flex;
    align-items: end;
}
body.bd-app-page .bd-staff-form-action .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
}
body.bd-app-page .bd-staff-input,
body.bd-app-page .bd-staff-form-grid input,
body.bd-app-page .bd-staff-form-grid select,
body.bd-app-page .bd-staff-form-grid textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.84);
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body.bd-app-page .bd-staff-form-grid input::placeholder,
body.bd-app-page .bd-staff-form-grid textarea::placeholder {
    color: rgba(169, 184, 204, 0.82);
}
body.bd-app-page .bd-staff-form-grid input:hover,
body.bd-app-page .bd-staff-form-grid select:hover,
body.bd-app-page .bd-staff-form-grid textarea:hover {
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(3, 10, 26, 0.92);
}
body.bd-app-page .bd-staff-form-grid input:focus,
body.bd-app-page .bd-staff-form-grid select:focus,
body.bd-app-page .bd-staff-form-grid textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    background: rgba(2, 8, 23, 0.96);
}
body.bd-app-page .bd-staff-form-grid input[type="time"] {
    color-scheme: dark;
}
body.bd-app-page .bd-staff-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
body.bd-app-page .bd-staff-filter-label {
    font-weight: 800;
    color: #f8fafc;
}
body.bd-app-page .bd-staff-table-wrap {
    overflow-x: auto;
}
body.bd-app-page .bd-staff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
body.bd-app-page .bd-staff-table th,
body.bd-app-page .bd-staff-table td {
    white-space: nowrap;
}
body.bd-app-page .bd-staff-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(10, 17, 31, 0.98);
}
body.bd-app-page .bd-staff-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}
body.bd-app-page .bd-staff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}
body.bd-app-page .bd-staff-badge.is-active {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.28);
}
body.bd-app-page .bd-staff-badge.is-inactive {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.26);
}
body.bd-app-page .bd-staff-inline-form {
    display: inline-flex;
}
body.bd-app-page .bd-staff-action-cell {
    white-space: nowrap;
}
body.bd-app-page .bd-staff-danger {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
body.bd-app-page .bd-staff-danger:hover {
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.14) !important;
}
@media (max-width: 980px) {
    body.bd-app-page .bd-staff-grid,
    body.bd-app-page .bd-staff-form-grid {
        grid-template-columns: 1fr;
    }
    body.bd-app-page .bd-staff-field--wide {
        grid-column: span 1;
    }
    body.bd-app-page .bd-staff-table th,
    body.bd-app-page .bd-staff-table td {
        white-space: normal;
    }
}

/* == 4.0.130 staff planning next step == */
body.bd-app-page .bd-staff-dept-block {
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.32);
}
body.bd-app-page .bd-staff-dept-block h3 {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
body.bd-app-page .bd-staff-inline-form + .bd-staff-inline-form,
body.bd-app-page .bd-staff-action-cell .btn + .bd-staff-inline-form {
    margin-left: 8px;
}
body.bd-app-page .bd-staff-action-cell .btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.86rem;
}
body.bd-app-page .bd-staff-filter-bar .dashboard-week-form {
    margin: 0;
}
body.bd-app-page .bd-staff-form-grid input[type="date"] {
    color-scheme: dark;
}
@media (max-width: 760px) {
    body.bd-app-page .bd-staff-dept-block h3 {
        display: block;
    }
    body.bd-app-page .bd-staff-action-cell .btn,
    body.bd-app-page .bd-staff-action-cell .bd-staff-inline-form {
        width: 100%;
        margin: 4px 0 0 0 !important;
    }
}

/* == 4.0.131 staff visual week matrix == */
body.bd-app-page .bd-staff-matrix-card {
    padding: 22px;
}
body.bd-app-page .bd-staff-matrix-section {
    margin-top: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.36);
}
body.bd-app-page .bd-staff-matrix-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.82);
}
body.bd-app-page .bd-staff-matrix-title strong {
    color: #f8fafc;
    font-size: 0.98rem;
}
body.bd-app-page .bd-staff-matrix-title span {
    color: #86efac;
    font-weight: 800;
}
body.bd-app-page .bd-staff-matrix-wrap {
    overflow-x: auto;
}
body.bd-app-page table.bd-staff-matrix {
    width: 100%;
    min-width: 1240px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.82rem;
}
body.bd-app-page .bd-staff-matrix th,
body.bd-app-page .bd-staff-matrix td {
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    vertical-align: top;
}
body.bd-app-page .bd-staff-matrix th {
    padding: 10px 8px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}
body.bd-app-page .bd-staff-matrix td {
    min-height: 44px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.018);
}
body.bd-app-page .bd-staff-matrix tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}
body.bd-app-page .bd-staff-matrix-name {
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(12, 20, 35, 0.98) !important;
    text-align: left !important;
}
body.bd-app-page td.bd-staff-matrix-name {
    padding: 8px 10px;
}
body.bd-app-page .bd-staff-matrix-name strong {
    display: block;
    color: #f8fafc;
    font-size: 0.86rem;
    line-height: 1.2;
}
body.bd-app-page .bd-staff-matrix-name span {
    display: block;
    margin-top: 2px;
    color: var(--muted, #a9b8cc);
    font-size: 0.72rem;
}
body.bd-app-page .bd-staff-matrix-total {
    width: 86px;
    text-align: center !important;
    color: #e0f2fe;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72) !important;
}
body.bd-app-page .bd-staff-matrix-cell {
    color: #e5eefb;
}
body.bd-app-page .bd-staff-matrix-cell.is-blocked {
    background: rgba(239, 68, 68, 0.88) !important;
}
body.bd-app-page .bd-staff-matrix-absence {
    display: block;
    margin: -6px -6px 4px;
    padding: 6px 8px;
    color: #fff;
    background: rgba(185, 28, 28, 0.86);
    font-weight: 900;
    letter-spacing: 0.02em;
}
body.bd-app-page .bd-staff-shift-pill {
    display: block;
    margin: 0 0 4px;
    padding: 6px 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    color: #f8fafc;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.08));
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
body.bd-app-page .bd-staff-shift-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.50);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.24), rgba(34, 197, 94, 0.14));
}
body.bd-app-page .bd-staff-shift-pill strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1.15;
}
body.bd-app-page .bd-staff-shift-pill span {
    display: block;
    margin-top: 2px;
    color: rgba(229, 238, 251, 0.84);
    font-size: 0.72rem;
    line-height: 1.15;
    max-height: 2.3em;
    overflow: hidden;
}
body.bd-app-page .bd-staff-empty-dot {
    display: block;
    text-align: center;
    color: rgba(169, 184, 204, 0.38);
    padding-top: 8px;
}
body.bd-app-page .bd-staff-matrix tfoot td {
    padding: 8px;
    color: #e5eefb;
    background: rgba(148, 163, 184, 0.16) !important;
    font-weight: 800;
    text-align: center;
}
@media (max-width: 900px) {
    body.bd-app-page table.bd-staff-matrix {
        min-width: 980px;
    }
    body.bd-app-page .bd-staff-matrix-name {
        width: 150px;
    }
}


/* == 4.0.132 matrix width fix == */
@media (min-width: 1024px) {
    body.bd-app-page .bd-staff-matrix-card {
        padding-left: 18px;
        padding-right: 18px;
    }
    body.bd-app-page .bd-staff-matrix-wrap {
        overflow-x: visible;
    }
    body.bd-app-page table.bd-staff-matrix {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        font-size: 0.8rem;
    }
    body.bd-app-page .bd-staff-matrix-name {
        width: 168px;
    }
    body.bd-app-page .bd-staff-matrix-total {
        width: 74px;
    }
    body.bd-app-page .bd-staff-matrix th {
        padding: 9px 6px;
        font-size: 0.76rem;
    }
    body.bd-app-page .bd-staff-matrix td {
        padding: 5px;
    }
    body.bd-app-page td.bd-staff-matrix-name {
        padding: 8px 9px;
    }
    body.bd-app-page .bd-staff-shift-pill {
        padding: 5px 6px;
    }
    body.bd-app-page .bd-staff-shift-pill strong {
        font-size: 0.74rem;
    }
    body.bd-app-page .bd-staff-shift-pill span {
        font-size: 0.69rem;
    }
}

/* == 4.0.133 compact matrix + popup + color coding == */
body.bd-app-page .bd-staff-matrix-card {
    padding: 18px;
}
body.bd-app-page .bd-staff-matrix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}
body.bd-app-page .bd-staff-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,23,42,.7);
    color: #e5eefb;
}
body.bd-app-page .bd-staff-legend-item.is-department {
    border-color: color-mix(in srgb, var(--bd-staff-accent) 45%, rgba(148,163,184,.18));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bd-staff-accent) 22%, transparent);
}
body.bd-app-page .bd-staff-legend-item.is-free {
    background: rgba(148,163,184,.12);
    color: #cbd5e1;
}
body.bd-app-page .bd-staff-legend-item.is-vacation,
body.bd-app-page .bd-staff-matrix-absence.is-vacation { background: rgba(245, 158, 11, 0.92); color: #fff; }
body.bd-app-page .bd-staff-legend-item.is-sick,
body.bd-app-page .bd-staff-matrix-absence.is-sick { background: rgba(239, 68, 68, 0.92); color: #fff; }
body.bd-app-page .bd-staff-legend-item.is-leave,
body.bd-app-page .bd-staff-matrix-absence.is-leave { background: rgba(16, 185, 129, 0.92); color: #fff; }
body.bd-app-page .bd-staff-matrix-card .bd-staff-matrix-section {
    margin-top: 16px;
}
body.bd-app-page .bd-staff-matrix-section {
    border-color: color-mix(in srgb, var(--bd-staff-accent) 26%, rgba(148,163,184,.15));
}
body.bd-app-page .bd-staff-matrix-title {
    padding: 10px 12px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bd-staff-accent) 14%, rgba(15,23,42,.9)), rgba(15,23,42,.86));
}
body.bd-app-page .bd-staff-matrix-title span {
    color: color-mix(in srgb, var(--bd-staff-accent) 70%, #ffffff);
}
body.bd-app-page .bd-staff-matrix-wrap {
    overflow-x: visible;
}
body.bd-app-page table.bd-staff-matrix {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.76rem;
}
body.bd-app-page .bd-staff-matrix th {
    padding: 8px 5px;
    font-size: 0.73rem;
}
body.bd-app-page .bd-staff-matrix td {
    padding: 4px;
}
body.bd-app-page .bd-staff-matrix-name {
    width: 152px;
}
body.bd-app-page td.bd-staff-matrix-name {
    padding: 7px 8px;
}
body.bd-app-page .bd-staff-matrix-name strong {
    font-size: 0.8rem;
}
body.bd-app-page .bd-staff-matrix-name span {
    font-size: 0.68rem;
}
body.bd-app-page .bd-staff-matrix-total {
    width: 72px;
    font-size: 0.8rem;
}
body.bd-app-page .bd-staff-matrix-cell.is-vacation {
    background: rgba(245, 158, 11, 0.10) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-sick {
    background: rgba(239, 68, 68, 0.10) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-leave {
    background: rgba(16, 185, 129, 0.10) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-blocked {
    background: rgba(239, 68, 68, 0.08) !important;
}
body.bd-app-page .bd-staff-matrix-absence {
    margin: -4px -4px 4px;
    padding: 4px 6px;
    border-radius: 0;
    font-size: 0.68rem;
    font-weight: 900;
}
body.bd-app-page .bd-staff-shift-pill,
body.bd-app-page .bd-staff-free-pill {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    padding: 4px 5px;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body.bd-app-page .bd-staff-shift-pill {
    border: 1px solid color-mix(in srgb, var(--bd-staff-accent) 44%, rgba(148,163,184,.18));
    border-left: 4px solid var(--bd-staff-accent);
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,14,28,.92));
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
body.bd-app-page .bd-staff-shift-pill:hover,
body.bd-app-page .bd-staff-free-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 8, 23, 0.16);
}
body.bd-app-page .bd-staff-shift-pill strong {
    display: block;
    font-size: 0.71rem;
    line-height: 1.1;
}
body.bd-app-page .bd-staff-shift-pill span {
    display: block;
    margin-top: 1px;
    font-size: 0.64rem;
    line-height: 1.15;
    color: rgba(229,238,251,.82);
    max-height: 2.35em;
    overflow: hidden;
}
body.bd-app-page .bd-staff-shift-pill--regular,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--regular { background-image: linear-gradient(180deg, rgba(56,189,248,.16), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--opening,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--opening { background-image: linear-gradient(180deg, rgba(34,197,94,.18), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--closing,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--closing { background-image: linear-gradient(180deg, rgba(168,85,247,.20), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--split,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--split { background-image: linear-gradient(180deg, rgba(249,115,22,.20), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--prep,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--prep { background-image: linear-gradient(180deg, rgba(245,158,11,.20), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--training,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--training { background-image: linear-gradient(180deg, rgba(16,185,129,.20), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--event,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--event { background-image: linear-gradient(180deg, rgba(236,72,153,.20), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-shift-pill--other,
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--other { background-image: linear-gradient(180deg, rgba(148,163,184,.22), rgba(8,14,28,.92)); }
body.bd-app-page .bd-staff-free-pill {
    min-height: 36px;
    border: 1px dashed rgba(148,163,184,.22);
    background: rgba(148,163,184,.08);
    color: #cbd5e1;
    text-align: center;
    font-size: 0.69rem;
    font-weight: 800;
}
body.bd-app-page .bd-staff-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(8px);
    z-index: 99999;
}
body.bd-app-page .bd-staff-modal.is-open {
    display: flex;
}
body.bd-app-page .bd-staff-modal__dialog {
    position: relative;
    width: min(100%, 980px);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.18);
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(6,11,24,.96));
    box-shadow: 0 24px 60px rgba(2, 8, 23, 0.38);
}
body.bd-app-page .bd-staff-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.2);
    background: rgba(255,255,255,.04);
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
body.bd-app-page .bd-staff-modal__head {
    margin-bottom: 14px;
}
body.bd-app-page .bd-staff-modal-form {
    margin-bottom: 12px;
}
body.bd-app-page .bd-staff-modal__actions {
    display: flex;
    gap: 10px;
    align-items: end;
    grid-column: 1 / -1;
}
body.bd-app-page .bd-staff-modal__actions .btn {
    width: auto;
    min-width: 170px;
}
body.bd-app-page .bd-staff-modal__delete {
    display: flex;
    justify-content: flex-end;
}
body.bd-app-page.bd-staff-modal-open,
body.bd-staff-modal-open {
    overflow: hidden;
}
@media (max-width: 1100px) {
    body.bd-app-page .bd-staff-matrix-wrap {
        overflow-x: auto;
    }
    body.bd-app-page table.bd-staff-matrix {
        min-width: 920px;
    }
}
@media (max-width: 700px) {
    body.bd-app-page .bd-staff-modal {
        padding: 10px;
    }
    body.bd-app-page .bd-staff-modal__dialog {
        width: 100%;
        padding: 16px;
        border-radius: 16px;
    }
    body.bd-app-page .bd-staff-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }
    body.bd-app-page .bd-staff-modal__actions .btn,
    body.bd-app-page .bd-staff-modal__delete .btn {
        width: 100%;
    }
}

/* == 4.0.134 drag/drop + copy + templates + auto-rooster == */
body.bd-app-page .bd-staff-templates-card {
    margin-bottom: 20px;
}
body.bd-app-page .bd-staff-template-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
body.bd-app-page .bd-staff-template-list {
    margin-top: 16px;
}
body.bd-app-page .bd-staff-day-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(2,6,23,.62);
}
body.bd-app-page .bd-staff-day-checks label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.10);
    color: #e5eefb;
    font-size: 0.78rem;
    font-weight: 800;
}
body.bd-app-page .bd-staff-day-checks input {
    width: auto;
    min-height: 0;
    accent-color: #22c55e;
}
body.bd-app-page .bd-staff-shift-pill[draggable="true"] {
    cursor: grab;
}
body.bd-app-page .bd-staff-shift-pill[draggable="true"]:active {
    cursor: grabbing;
}
body.bd-app-page .bd-staff-matrix-cell.is-drop-target {
    outline: 2px solid rgba(34,197,94,.78);
    outline-offset: -2px;
    background: rgba(34,197,94,.10) !important;
}
body.bd-app-page .bd-staff-modal__footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
body.bd-app-page .bd-staff-modal__footer-actions form {
    display: inline-flex;
}
body.bd-app-page #bd-staff-modal-duplicate-form .btn {
    border-color: rgba(56,189,248,.35);
}
@media (max-width: 1100px) {
    body.bd-app-page .bd-staff-template-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    body.bd-app-page .bd-staff-day-checks label {
        flex: 1 1 calc(33.33% - 8px);
        justify-content: center;
    }
    body.bd-app-page .bd-staff-modal__footer-actions,
    body.bd-app-page .bd-staff-modal__footer-actions form,
    body.bd-app-page .bd-staff-modal__footer-actions .btn {
        width: 100%;
    }
}

/* == 4.0.135 palette drop popup == */
body.bd-app-page .bd-staff-matrix-palette {
    margin-bottom: 20px;
}
body.bd-app-page .bd-staff-palette-item {
    cursor: grab;
    user-select: none;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
body.bd-app-page .bd-staff-palette-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 8, 23, 0.18);
}
body.bd-app-page .bd-staff-palette-item:active {
    cursor: grabbing;
}
body.bd-app-page .bd-staff-legend-item.is-free,
body.bd-app-page .bd-staff-matrix-absence.is-blocked {
    background: rgba(99, 102, 241, 0.92);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.96);
}
body.bd-app-page .bd-staff-legend-item.is-leave,
body.bd-app-page .bd-staff-matrix-absence.is-leave {
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
    border-color: rgba(16, 185, 129, 0.96);
}
body.bd-app-page .bd-staff-legend-item.is-sick,
body.bd-app-page .bd-staff-matrix-absence.is-sick {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.96);
}
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--training,
body.bd-app-page .bd-staff-shift-pill--training {
    border-color: rgba(14, 165, 233, 0.92);
}
body.bd-app-page .bd-staff-legend-item.bd-staff-shift-pill--training {
    background: linear-gradient(180deg, rgba(14,165,233,.32), rgba(8,14,28,.96));
    color: #fff;
}
body.bd-app-page .bd-staff-matrix-cell.is-blocked { background: rgba(99, 102, 241, 0.08) !important; }
body.bd-app-page .bd-staff-matrix-cell.is-leave { background: rgba(16, 185, 129, 0.10) !important; }
body.bd-app-page .bd-staff-matrix-cell.is-sick { background: rgba(239, 68, 68, 0.10) !important; }
body.bd-app-page .bd-staff-matrix-cell.is-drop-target {
    outline: 2px dashed rgba(56, 189, 248, 0.88);
    outline-offset: -2px;
    background: rgba(56, 189, 248, 0.10) !important;
}
body.bd-app-page .bd-staff-modal__dialog--small {
    width: min(100%, 760px);
}
body.bd-app-page .bd-staff-modal__footer-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 12px;
}
body.bd-app-page .bd-staff-modal__footer-actions form {
    display: inline-flex;
}

/* == 4.0.136 drag fix + cleanup == */
body.bd-app-page .bd-staff-palette-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
body.bd-app-page .bd-staff-palette-item.is-active,
body.bd-app-page .bd-staff-palette-item:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 0 4px rgba(56,189,248,.24);
}
body.bd-app-page .bd-staff-palette-item.is-dragging {
    opacity: .78;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview,
body.bd-app-page .bd-staff-matrix-cell.is-drop-target {
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-blocked {
    background: rgba(99, 102, 241, 0.18) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-leave {
    background: rgba(16, 185, 129, 0.18) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-sick {
    background: rgba(239, 68, 68, 0.18) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-training {
    background: rgba(14, 165, 233, 0.18) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-training .bd-staff-free-pill,
body.bd-app-page .bd-staff-matrix-cell.is-drop-target .bd-staff-free-pill {
    border-color: rgba(14,165,233,.5);
    background: rgba(14,165,233,.16);
    color: #dff5ff;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-blocked .bd-staff-free-pill {
    border-color: rgba(99,102,241,.5);
    background: rgba(99,102,241,.16);
    color: #eef2ff;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-leave .bd-staff-free-pill {
    border-color: rgba(16,185,129,.5);
    background: rgba(16,185,129,.16);
    color: #ecfdf5;
}
body.bd-app-page .bd-staff-matrix-cell.is-preview-sick .bd-staff-free-pill {
    border-color: rgba(239,68,68,.5);
    background: rgba(239,68,68,.16);
    color: #fef2f2;
}

/* == 4.0.138 registered drag items == */
body.bd-app-page .bd-staff-draggable-absence {
    cursor: grab;
    user-select: none;
}
body.bd-app-page .bd-staff-draggable-absence:active {
    cursor: grabbing;
}
body.bd-app-page .bd-staff-draggable-absence:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(2,8,23,.16);
}
body.bd-app-page .bd-staff-matrix-cell.is-drop-target .bd-staff-draggable-absence {
    opacity: .9;
}

/* == 4.0.139 multi-day drag registration == */
body.bd-app-page .bd-staff-matrix-cell.is-training {
    background: rgba(14, 165, 233, 0.12) !important;
}
body.bd-app-page .bd-staff-matrix-cell.is-drop-target {
    outline: 2px dashed rgba(14, 165, 233, 0.92);
    outline-offset: -2px;
    background: rgba(14, 165, 233, 0.16) !important;
}
body.bd-app-page .bd-staff-draggable-absence {
    cursor: grab;
}
body.bd-app-page .bd-staff-draggable-absence:active,
body.bd-app-page .bd-staff-shift-pill:active {
    cursor: grabbing;
}
body.bd-app-page .bd-staff-matrix-card .bd-staff-muted::after {
    content: " Sleep een geplaatste registratie naar een latere of eerdere dag om het bereik over meerdere dagen vast te leggen.";
}


/* == 4.0.141 filled absence pill == */
body.bd-app-page .bd-staff-matrix-absence {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    padding: 4px 5px;
    border-radius: 7px;
    text-align: left;
    cursor: grab;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
    overflow: hidden;
}
body.bd-app-page .bd-staff-matrix-absence strong {
    display: block;
    font-size: 0.71rem;
    line-height: 1.1;
    font-weight: 800;
}
body.bd-app-page .bd-staff-matrix-absence span {
    display: block;
    margin-top: 1px;
    font-size: 0.64rem;
    line-height: 1.15;
    color: rgba(255,255,255,.92);
    max-height: 2.35em;
    overflow: hidden;
}
body.bd-app-page .bd-staff-matrix-absence:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 8, 23, 0.16);
}
body.bd-app-page .bd-staff-matrix-absence:active {
    cursor: grabbing;
}

/* == 4.0.143 recepturen submenu integration == */
body.bd-app-page .rb-app.rb-app-embedded,
body.bd-app-page .app .rb-app.rb-app-embedded {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
body.bd-app-page .rb-app.rb-app-embedded .rb-shell,
body.bd-app-page .app .rb-app.rb-app-embedded .rb-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.bd-app-page .rb-subheader-main {
    margin-top: -14px;
}
body.bd-app-page .rb-app-embedded .rb-grid {
    width: 100% !important;
}
body.bd-app-page .rb-app-embedded .rb-card {
    margin-bottom: 20px !important;
}

/* == 4.0.147 force active state for integrated modules == */
body.bd-app-page .app > .bd-menu-structure > .header-main a.bd-main-active,
html body .entry-content > .app > .bd-menu-structure > .header-main a.bd-main-active,
html body .wp-site-blocks .entry-content > .app > .bd-menu-structure > .header-main a.bd-main-active,
html body .wp-block-post-content > .app > .bd-menu-structure > .header-main a.bd-main-active {
    color: #04111f !important;
    background: linear-gradient(135deg, #86efac, #22c55e) !important;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.26) !important;
}


/* == 4.0.152 module submenu active fix == */
body.bd-app-page .app .bd-module-subtabs a,
body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a,
body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a {
    background: transparent !important;
    background-image: none !important;
    color: var(--muted, #a9b8cc) !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
body.bd-app-page .app .bd-module-subtabs a:hover,
body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a:hover,
body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}
body.bd-app-page .app .bd-module-subtabs a.active,
body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a.active,
body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a.active {
    color: #04111f !important;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
    border-color: rgba(125, 211, 252, 0.28) !important;
    box-shadow: 0 12px 26px rgba(56, 189, 248, 0.22) !important;
}

/* == 4.0.153 hard fix: only current module subtab active == */
html body.bd-app-page .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab,
html body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a.bd-subtab,
html body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a.bd-subtab,
html body .entry-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab,
html body .wp-block-post-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
html body.bd-app-page .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-inactive,
html body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a.bd-subtab.bd-subtab-inactive,
html body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a.bd-subtab.bd-subtab-inactive,
html body .entry-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-inactive,
html body .wp-block-post-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-inactive {
    background: transparent !important;
    background-image: none !important;
    color: var(--muted, #a9b8cc) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}
html body.bd-app-page .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-inactive:hover,
html body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a.bd-subtab.bd-subtab-inactive:hover,
html body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a.bd-subtab.bd-subtab-inactive:hover {
    background: rgba(255,255,255,.05) !important;
    color: #f8fafc !important;
    border-color: rgba(148,163,184,.14) !important;
}
html body.bd-app-page .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-active,
html body.bd-app-page .app .subheader.subheader-nested.bd-staff-tabs a.bd-subtab.bd-subtab-active,
html body.bd-app-page .app .subheader.subheader-nested.rb-subheader-main a.bd-subtab.bd-subtab-active,
html body .entry-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-active,
html body .wp-block-post-content > .app .subheader.subheader-nested.bd-module-subtabs a.bd-subtab.bd-subtab-active {
    color: #04111f !important;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
    border: 1px solid rgba(125, 211, 252, 0.32) !important;
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24) !important;
}


/* == 4.0.155 beheer role module quick toggle == */
body.bd-app-page .app .beheer-module-quicktoggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0 12px;
}
body.bd-app-page .app .beheer-module-quicktoggles .beheer-caps-label {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 800;
}
body.bd-app-page .app .beheer-module-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.22);
}
body.bd-app-page .app .beheer-module-toggle input[type='checkbox'] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px;
  height: 16px;
  margin: 3px 0 0 0;
}
body.bd-app-page .app .beheer-module-toggle span {
  display: block;
  min-width: 0;
}
body.bd-app-page .app .beheer-module-toggle strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.25;
}
body.bd-app-page .app .beheer-module-toggle small {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.78);
  line-height: 1.35;
}


/* == 4.0.156 matrix chips fill cell == */
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell {
    padding: 0 !important;
    vertical-align: top;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-free-pill {
    width: calc(100% - 8px) !important;
    min-height: calc(100% - 8px);
    margin: 4px !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    border-radius: 7px;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill strong,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill span,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence strong,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence span,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-free-pill {
    width: 100%;
    text-align: center !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-free-pill {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* == 4.0.158 absence chip popup edit == */
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence {
    cursor: pointer;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence:focus {
    outline: 2px solid rgba(56, 189, 248, .75);
    outline-offset: 2px;
}


/* == 4.0.161 beheer submenu structure == */
body.bd-app-page .beheer-subtabs { margin: 18px 0 0 !important; }
body.bd-app-page .beheer-subtabs a { min-width: 140px; }

/* == 4.1.0 SaaS foundation == */
body.bd-app-page .beheer-subtabs {
    margin: 18px 0 0 !important;
}
body.bd-app-page .beheer-subtabs a {
    min-width: 140px;
}
body.bd-app-page .beheer-subcard .bd-staff-card-head .btn {
    white-space: nowrap;
}

/* == 4.1.28 klantbeheer professionaliseren == */
body.bd-app-page .bd-saas-customer-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
body.bd-app-page .bd-saas-kpi,
body.bd-app-page .bd-saas-customer-stats > div {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .32);
  border-radius: 18px;
  padding: 16px;
}
body.bd-app-page .bd-saas-kpi span,
body.bd-app-page .bd-saas-customer-stats span {
  display: block;
  color: #a8b3c7;
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 8px;
}
body.bd-app-page .bd-saas-kpi strong,
body.bd-app-page .bd-saas-customer-stats strong {
  display: block;
  color: #e5eefc;
  font-size: 1.35rem;
  font-weight: 950;
}
body.bd-app-page .bd-saas-customer-card-active {
  border-color: rgba(34, 197, 94, .45) !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .12), 0 18px 45px rgba(34, 197, 94, .08);
}
body.bd-app-page .bd-saas-customer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
body.bd-app-page .bd-saas-section-title {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  color: #e5eefc;
}
body.bd-app-page .bd-saas-user-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}
body.bd-app-page .bd-saas-user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .44);
  border-radius: 16px;
  padding: 12px 14px;
}
body.bd-app-page .bd-saas-user-row strong,
body.bd-app-page .bd-saas-user-row span {
  display: block;
}
body.bd-app-page .bd-saas-user-row span {
  color: #a8b3c7;
  font-size: .88rem;
  margin-top: 3px;
}
body.bd-app-page .bd-saas-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.bd-app-page .bd-saas-role-pill {
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(14, 116, 144, .18);
  color: #bae6fd;
  font-weight: 900;
  font-size: .78rem;
}
@media (max-width: 980px) {
  body.bd-app-page .bd-saas-customer-dashboard,
  body.bd-app-page .bd-saas-customer-stats,
  body.bd-app-page .bd-saas-user-row {
    grid-template-columns: 1fr;
  }
  body.bd-app-page .bd-saas-user-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* == 4.1.32 admin active customer selector == */
body.bd-app-page .bd-saas-active-customer-bar {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 14px 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.bd-app-page .bd-saas-active-customer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}
body.bd-app-page .bd-saas-active-customer-copy span {
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.bd-app-page .bd-saas-active-customer-copy strong {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
}
body.bd-app-page .bd-saas-active-customer-copy em {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.10);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}
body.bd-app-page .bd-saas-customer-switch-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}
body.bd-app-page .bd-saas-customer-switch-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 220px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}
body.bd-app-page .bd-saas-customer-switch-form select {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.92);
  color: #f8fafc;
  padding: 9px 12px;
  font-weight: 800;
}
body.bd-app-page .bd-saas-customer-switch-form-static {
  color: rgba(203, 213, 225, 0.80);
  font-weight: 800;
}
body.bd-app-page .bd-saas-context-card {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.08);
  color: #f8fafc;
}
body.bd-app-page .bd-saas-context-card strong,
body.bd-app-page .bd-saas-context-card span {
  display: block;
}
body.bd-app-page .bd-saas-context-card span {
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.86rem;
}
body.bd-app-page .bd-saas-context-card-warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.10);
}

@media (max-width: 980px) {
  body.bd-app-page .bd-saas-active-customer-bar {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 760px) {
  body.bd-app-page .bd-saas-active-customer-bar {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: min(100%, calc(100vw - 24px)) !important;
  }
  body.bd-app-page .bd-saas-customer-switch-form,
  body.bd-app-page .bd-saas-customer-switch-form label {
    width: 100%;
  }
}


/* v4.1.79 - Alleen Productieplan plan/eff.: actieve-klantblok uitlijnen met normale contentkolom. Rest ongemoeid. */
body.bd-app-page .app.app-productie-only > .bd-saas-active-customer-bar {
  margin-left: max(0px, calc((100vw - 1280px) / 2 - clamp(24px, 3vw, 56px))) !important;
  margin-right: 0 !important;
}
@media (max-width: 760px) {
  body.bd-app-page .app.app-productie-only > .bd-saas-active-customer-bar {
    margin-left: 0 !important;
  }
}


/* v4.1.81 - globale contentbreedte gelijkgetrokken met Productieplan; geen markup/logica gewijzigd */
body.bd-app-page .app:not(.app-productie-only) {
  width: min(1760px, calc(100vw - 64px)) !important;
  max-width: min(1760px, calc(100vw - 64px)) !important;
}
body.bd-app-page .app:not(.app-productie-only) > .card,
body.bd-app-page .app:not(.app-productie-only) > .grid,
body.bd-app-page .app:not(.app-productie-only) > .two-columns,
body.bd-app-page .app:not(.app-productie-only) > .masterplan-card,
body.bd-app-page .app:not(.app-productie-only) > .card.filter,
body.bd-app-page .app:not(.app-productie-only) > .chart-card,
body.bd-app-page .app:not(.app-productie-only) .masterplan-invoer-filter,
body.bd-app-page .app:not(.app-productie-only) .masterplan-invoer-view,
body.bd-app-page .app:not(.app-productie-only) .beheer-grid,
body.bd-app-page .app:not(.app-productie-only) .beheer-subcard,
body.bd-app-page .app:not(.app-productie-only) .rb-app,
body.bd-app-page .app:not(.app-productie-only) .rb-card {
  max-width: 1760px !important;
}
@media (max-width: 1200px) {
  body.bd-app-page .app:not(.app-productie-only) {
    width: min(1400px, calc(100vw - 34px)) !important;
    max-width: min(1400px, calc(100vw - 34px)) !important;
  }
}
@media (max-width: 980px) {
  body.bd-app-page .app:not(.app-productie-only) {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
}


/* v4.1.82 - Breedte overige tabbladen gelijk aan Productieplan, zonder Productieplan-logica te wijzigen */
@media (min-width: 981px) {
  html body.bd-app-page .app:not(.app-productie-only),
  html body .entry-content > .app:not(.app-productie-only),
  html body .wp-site-blocks .entry-content > .app:not(.app-productie-only),
  html body .wp-block-post-content > .app:not(.app-productie-only) {
    width: min(1760px, calc(100vw - 64px)) !important;
    max-width: min(1760px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(24px, 3vw, 56px) !important;
    padding-right: clamp(24px, 3vw, 56px) !important;
    box-sizing: border-box !important;
  }

  html body.bd-app-page .app:not(.app-productie-only) > .card,
  html body.bd-app-page .app:not(.app-productie-only) > .grid,
  html body.bd-app-page .app:not(.app-productie-only) > .two-columns,
  html body.bd-app-page .app:not(.app-productie-only) > .masterplan-card,
  html body.bd-app-page .app:not(.app-productie-only) > .chart-card,
  html body.bd-app-page .app:not(.app-productie-only) > .card.filter,
  html body.bd-app-page .app:not(.app-productie-only) > .beheer-grid,
  html body.bd-app-page .app:not(.app-productie-only) > .beheer-subcard,
  html body.bd-app-page .app:not(.app-productie-only) .beheer-grid,
  html body.bd-app-page .app:not(.app-productie-only) .beheer-subcard,
  html body.bd-app-page .app:not(.app-productie-only) .verloning-kpi,
  html body.bd-app-page .app:not(.app-productie-only) .verloning-plan-columns,
  html body.bd-app-page .app:not(.app-productie-only) .verloning-plan-grid-card,
  html body.bd-app-page .app:not(.app-productie-only) .verloning-plan-topbar,
  html body.bd-app-page .app:not(.app-productie-only) .masterplan-invoer-filter,
  html body.bd-app-page .app:not(.app-productie-only) .masterplan-invoer-view,
  html body.bd-app-page .app:not(.app-productie-only) .rb-app,
  html body.bd-app-page .app:not(.app-productie-only) .rb-card,
  html body .entry-content > .app:not(.app-productie-only) > .card,
  html body .entry-content > .app:not(.app-productie-only) > .grid,
  html body .entry-content > .app:not(.app-productie-only) > .two-columns,
  html body .entry-content > .app:not(.app-productie-only) > .masterplan-card,
  html body .entry-content > .app:not(.app-productie-only) > .chart-card,
  html body .entry-content > .app:not(.app-productie-only) > .card.filter {
    width: 100% !important;
    max-width: 1760px !important;
    box-sizing: border-box !important;
  }
}

/* v4.1.84 modern dashboard */
body.bd-app-page .app .bd-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 18px;
}
body.bd-app-page .app .bd-kpi-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.bd-app-page .app .bd-kpi-head,
body.bd-app-page .app .bd-kpi-foot,
body.bd-app-page .app .bd-panel-head,
body.bd-app-page .app .bd-bar-row-head,
body.bd-app-page .app .bd-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.bd-app-page .app .bd-kpi-head {
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
}
body.bd-app-page .app .bd-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  color: #9cc7ff;
  font-size: .95rem;
}
body.bd-app-page .app .bd-kpi-value {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #f8fafc;
}
body.bd-app-page .app .bd-kpi-foot {
  color: var(--muted);
  font-size: .92rem;
}
body.bd-app-page .app .bd-kpi-trend {
  font-weight: 700;
}
body.bd-app-page .app .bd-kpi-trend-up { color: #4ade80; }
body.bd-app-page .app .bd-kpi-trend-down { color: #f87171; }
body.bd-app-page .app .bd-kpi-trend-neutral { color: #94a3b8; }

body.bd-app-page .app .bd-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 8px;
}
body.bd-app-page .app .bd-dashboard-panel,
body.bd-app-page .app .bd-dashboard-mini {
  margin: 0;
}
body.bd-app-page .app .bd-dashboard-panel-wide { grid-column: span 4; }
body.bd-app-page .app .bd-dashboard-panel-side { grid-column: span 4; }
body.bd-app-page .app .bd-dashboard-panel-half { grid-column: span 4; }
body.bd-app-page .app .bd-dashboard-side-stack {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
}
body.bd-app-page .app .bd-dashboard-productmix {
  grid-column: 1 / -1;
}
body.bd-app-page .app .bd-panel-head {
  margin-bottom: 18px;
  align-items: flex-start;
}
body.bd-app-page .app .bd-panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
}
body.bd-app-page .app .bd-panel-head span {
  color: var(--muted);
  font-size: .92rem;
}
body.bd-app-page .app .bd-chart-wrap-md { height: 280px; }
body.bd-app-page .app .bd-chart-wrap-sm { height: 260px; }
body.bd-app-page .app .bd-donut-layout {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
body.bd-app-page .app .bd-donut-wrap {
  position: relative;
  height: 220px;
}
body.bd-app-page .app .bd-donut-wrap-small {
  height: 170px;
}
body.bd-app-page .app .bd-legend-list,
body.bd-app-page .app .bd-metric-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.bd-app-page .app .bd-legend-row {
  font-size: .94rem;
  color: #d8e2ef;
}
body.bd-app-page .app .bd-legend-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
body.bd-app-page .app .bd-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
  opacity: 0.95;
}
body.bd-app-page .app .bd-legend-name {
  flex: 1 1 auto;
  min-width: 0;
}
body.bd-app-page .app .bd-legend-value,
body.bd-app-page .app .bd-legend-pct {
  color: var(--muted);
  white-space: nowrap;
}
body.bd-app-page .app .bd-legend-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-weight: 800;
}
body.bd-app-page .app .bd-bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.bd-app-page .app .bd-bar-row.compact { gap: 6px; }
body.bd-app-page .app .bd-bar-row-head {
  font-size: .95rem;
  color: #d8e2ef;
}
body.bd-app-page .app .bd-bar-row-head strong {
  color: #f8fafc;
  font-size: .95rem;
}
body.bd-app-page .app .bd-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
body.bd-app-page .app .bd-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #4ade80 100%);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
}
body.bd-app-page .app .bd-dashboard-mini {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.bd-app-page .app .bd-mini-head {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
body.bd-app-page .app .bd-mini-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
}
body.bd-app-page .app .bd-mini-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
body.bd-app-page .app .bd-mini-sub,
body.bd-app-page .app .bd-empty-state {
  color: var(--muted);
  font-size: .92rem;
}
body.bd-app-page .app .bd-bar-note {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  body.bd-app-page .app .bd-dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.bd-app-page .app .bd-dashboard-panel-wide,
  body.bd-app-page .app .bd-dashboard-panel-side,
  body.bd-app-page .app .bd-dashboard-panel-half,
  body.bd-app-page .app .bd-dashboard-side-stack {
    grid-column: span 6;
  }
}
@media (max-width: 820px) {
  body.bd-app-page .app .bd-dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.bd-app-page .app .bd-dashboard-panel-wide,
  body.bd-app-page .app .bd-dashboard-panel-side,
  body.bd-app-page .app .bd-dashboard-panel-half,
  body.bd-app-page .app .bd-dashboard-side-stack {
    grid-column: 1 / -1;
  }
  body.bd-app-page .app .bd-dashboard-side-stack {
    grid-template-columns: 1fr;
  }
  body.bd-app-page .app .bd-donut-layout {
    grid-template-columns: 1fr;
  }
  body.bd-app-page .app .bd-donut-wrap,
  body.bd-app-page .app .bd-donut-wrap-small {
    height: 200px;
  }
}
@media (max-width: 580px) {
  body.bd-app-page .app .bd-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* v4.1.87 release metadata chip */
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 260px;
  max-width: 360px;
  min-height: 146px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .58));
  border: 0;
  box-shadow: none;
  text-align: left;
  box-sizing: border-box;
  margin: 0 !important;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card span,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card span {
  color: var(--muted, #a9b8cc);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card strong,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card strong {
  color: #f8fafc;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.1;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card em,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card em,
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card small,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card small {
  color: #9fb0c7;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.25;
}
body.bd-app-page .bd-release-only-bar {
  justify-content: flex-end;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-width: 260px;
  max-width: 360px;
  min-height: 146px;
  margin-left: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .58));
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 28px rgba(2, 8, 23, .20);
  text-align: left;
  box-sizing: border-box;
  margin: 0 0 0 auto !important;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card .bd-customer-logo-card-media,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card .bd-customer-logo-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  background: #020817;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card img,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card img {
  display: block;
  max-width: 100%;
  max-width: calc(100% - 18px);
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
@media (max-width: 980px) {
  body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card,
  body.bd-app-page .bd-release-only-bar .bd-plugin-release-card,
  body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
  body.bd-app-page .bd-release-only-bar .bd-customer-logo-card {
    width: 100%;
    max-width: none;
  }
  body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
  body.bd-app-page .bd-release-only-bar .bd-customer-logo-card {
    margin-left: 0;
  }
}

/* v4.1.97 rooster matrix chip and hour cleanup */
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell {
  padding: 0 !important;
  height: 52px !important;
  vertical-align: middle !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-free-pill {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill strong,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill span {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-align: center !important;
  width: 100% !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill span {
  font-weight: 700 !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence strong,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-matrix-absence span,
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-free-pill {
  color: #fff !important;
  text-align: center !important;
}

/* v4.1.120 staff task types */
.bd-staff-checkline{display:flex!important;align-items:center;gap:10px;min-height:54px;padding:0 14px;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:rgba(2,6,23,.42);font-weight:800;color:#e2e8f0}.bd-staff-checkline input{width:auto!important;min-width:16px;height:16px}
.bd-staff-shift-pill--task{background:linear-gradient(135deg,rgba(99,102,241,.24),rgba(14,165,233,.16))!important;border-color:rgba(125,211,252,.38)!important}

/* v4.1.121 taken onder bestaande diensten in rooster */
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell {
  vertical-align: top !important;
  padding: 3px !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill.bd-staff-shift-pill--task-inline {
  height: 32px !important;
  min-height: 32px !important;
  margin-top: 3px !important;
  padding: 3px 6px !important;
  border-style: dashed !important;
  opacity: .96;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill.bd-staff-shift-pill--task-inline strong {
  font-size: .78rem !important;
  line-height: 1.05 !important;
}
body.bd-app-page .bd-staff-matrix td.bd-staff-matrix-cell > .bd-staff-shift-pill.bd-staff-shift-pill--task-inline span {
  font-size: .68rem !important;
  line-height: 1.05 !important;
}
body.bd-app-page .bd-staff-add-task-inline {
  width: 100% !important;
  min-height: 26px !important;
  margin-top: 3px !important;
  border: 1px dashed rgba(125,211,252,.42) !important;
  border-radius: 8px !important;
  background: rgba(14,165,233,.10) !important;
  color: #bae6fd !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}
body.bd-app-page .bd-staff-add-task-inline:hover {
  background: rgba(14,165,233,.18) !important;
  color: #fff !important;
}


/* v4.1.132 Dashboard submenu: expliciete active/inactive classes.
   Alleen styling van Effectief/Plan aangepast; geen data- of flowwijzigingen. */
body.bd-app-page .app .subheader.subheader-dashboard {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: -14px auto 30px !important;
    padding: 6px !important;
    background: rgba(15, 23, 42, 0.34) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.28) !important;
}
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab,
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab:visited,
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab.bd-dashboard-tab-inactive {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 170px !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    background: rgba(2, 6, 23, 0.78) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    color: var(--muted, #a9b8cc) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab.bd-dashboard-tab-inactive:hover {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.82) !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
    transform: translateY(-1px) !important;
}
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab.bd-dashboard-tab-active,
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab.bd-dashboard-tab-active:visited,
body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab.bd-dashboard-tab-active:hover {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8) !important;
    color: #04111f !important;
    border: 1px solid rgba(125, 211, 252, 0.32) !important;
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.24) !important;
}
@media (max-width: 640px) {
    body.bd-app-page .app .subheader.subheader-dashboard a.bd-dashboard-tab {
        min-width: 100% !important;
    }
}


/* v4.1.137 klantlogo groter en gepositioneerd boven Beheer/Uitloggen */
body.bd-app-page .app .bd-page-titlebar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 132px !important;
  margin: 0 auto 12px !important;
}
body.bd-app-page .app .bd-page-titlebar > h1 {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}
body.bd-app-page .app .bd-page-app-logo {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 330px !important;
  max-width: 520px !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.bd-app-page .app .bd-page-app-logo img {
  display: block !important;
  max-width: 100% !important;
  max-height: 134px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
body.bd-app-page .app .bd-menu-customer-logo-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  margin: 8px 0 12px !important;
  padding-right: clamp(120px, 14vw, 220px) !important;
  box-sizing: border-box !important;
}
body.bd-app-page .app .bd-page-customer-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  max-width: 300px !important;
  width: 280px !important;
  height: 96px !important;
  padding: 10px 18px !important;
  border-radius: 20px !important;
  background: rgba(15, 23, 42, 0.62) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) !important;
  isolation: isolate !important;
}
body.bd-app-page .app .bd-page-customer-logo img {
  display: block !important;
  max-width: calc(100% - 18px) !important;
  max-height: 64px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}
body.bd-app-page .app .bd-customer-logo-preview {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: rgba(15, 23, 42, 0.42) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
}
body.bd-app-page .app .bd-customer-logo-preview span {
  font-size: .92rem !important;
  color: var(--muted, #a9b8cc) !important;
  font-weight: 700 !important;
}
body.bd-app-page .app .bd-customer-logo-preview img {
  display: block !important;
  max-width: 180px !important;
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
body.bd-app-page .app .bd-staff-field-wide {
  grid-column: 1 / -1 !important;
}
@media (max-width: 980px) {
  body.bd-app-page .app .bd-page-titlebar {
    display: block !important;
    min-height: 0 !important;
    margin-bottom: 18px !important;
  }
  body.bd-app-page .app .bd-page-app-logo {
    position: static !important;
    transform: none !important;
    margin: 0 auto 14px !important;
    min-width: min(100%, 320px) !important;
    max-width: min(100%, 460px) !important;
  }
  body.bd-app-page .app .bd-menu-customer-logo-row {
    justify-content: center !important;
    padding-right: 0 !important;
  }
  body.bd-app-page .app .bd-page-customer-logo {
    margin: 0 auto !important;
  }
}


/* v4.1.135 losse logo-opslagknop en klant inactief knop */
body.bd-app-page .app .bd-inline-action-form {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.bd-app-page .app .bd-btn-danger,
body.bd-app-page .app .btn.bd-btn-danger {
  background: linear-gradient(135deg, #fb7185, #ef4444) !important;
  color: #04111f !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24) !important;
}
body.bd-app-page .app .bd-logo-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* v4.1.136 logo selecteren via WordPress mediabibliotheek */
body.bd-app-page .app .bd-logo-select-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
body.bd-app-page .app .bd-logo-select-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body.bd-app-page .app .bd-logo-select-row .btn {
  min-width: 180px !important;
}
body.bd-app-page .app .bd-customer-logo-preview-empty img {
  display: none !important;
}
body.bd-app-page .app .bd-customer-logo-preview-empty::after {
  content: 'Nog geen logo geselecteerd';
  color: var(--muted, #a9b8cc) !important;
  font-weight: 700 !important;
}


/* v4.1.138 productie-fix: actieve paginatitel altijd wit op alle tabbladen */
body.bd-app-page .app .bd-page-titlebar > h1,
html body.bd-app-page .app .bd-page-titlebar > h1,
html body .entry-content > .app .bd-page-titlebar > h1,
html body .wp-site-blocks .entry-content > .app .bd-page-titlebar > h1,
html body .wp-block-post-content > .app .bd-page-titlebar > h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}


/* v4.1.139 beheer: minder knoppen, slimmere actiezone */
body.bd-app-page .bd-saas-user-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}
body.bd-app-page .app .bd-logo-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body.bd-app-page .app .bd-logo-actions .btn {
  min-width: 260px !important;
}
body.bd-app-page .app .bd-logo-select-row .btn {
  min-width: 180px !important;
}
@media (max-width: 980px) {
  body.bd-app-page .bd-saas-user-actions {
    justify-content: flex-start !important;
  }
  body.bd-app-page .app .bd-logo-actions .btn,
  body.bd-app-page .app .bd-logo-select-row .btn {
    min-width: 0 !important;
    width: auto !important;
  }
}


/* v4.1.140 Beheer: inactieve klanten blijven herstelbaar */
body.bd-app-page .app .bd-saas-customer-switch-form select option {
  color: #0f172a;
}


/* v4.1.141 Beheer: aparte klantenkiezer met ook inactieve klanten */
body.bd-app-page .app .bd-beheer-customer-select-card {
  display: grid !important;
  grid-template-columns: minmax(260px, 520px) 1fr !important;
  align-items: end !important;
  gap: 16px !important;
  margin: 0 0 18px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  background: rgba(2, 6, 23, 0.42) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
}
body.bd-app-page .app .bd-beheer-customer-select-card label {
  display: grid !important;
  gap: 8px !important;
}
body.bd-app-page .app .bd-beheer-customer-select-card label span {
  color: var(--muted, #a9b8cc) !important;
  font-weight: 800 !important;
}
body.bd-app-page .app .bd-beheer-customer-select-card select {
  min-height: 48px !important;
}
body.bd-app-page .app .bd-beheer-customer-select-card p {
  margin: 0 !important;
  color: var(--muted, #a9b8cc) !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}
@media (max-width: 980px) {
  body.bd-app-page .app .bd-beheer-customer-select-card {
    grid-template-columns: 1fr !important;
  }
}


/* v4.1.142 beheer: geen aparte klantenbeheer-dropdown meer; bestaande Werk-als-klant dropdown toont daar alle klanten */
body.bd-app-page .app .bd-beheer-customer-select-card {
  display: none !important;
}


/* v4.1.143 beheer: klantdropdown leesbaar en inactieve klant niet als werkdefault */
body.bd-app-page .app .bd-saas-customer-switch-form select,
body.bd-app-page .app .bd-saas-customer-switch-form select:focus,
html body.bd-app-page .app .bd-saas-customer-switch-form select {
  background: rgba(2, 6, 23, 0.92) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}
body.bd-app-page .app .bd-saas-customer-switch-form select option,
html body.bd-app-page .app .bd-saas-customer-switch-form select option {
  background: #020617 !important;
  color: #ffffff !important;
}
body.bd-app-page .app .bd-saas-customer-switch-form select option:checked,
body.bd-app-page .app .bd-saas-customer-switch-form select option:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}


/* v4.1.150 Bekijk receptuur: allergenen rustiger in de look & feel */
body.bd-app-page .rb-app .rb-recipe-allergens-card,
body.bd-app-page .app .rb-recipe-allergens-card {
  margin: 0 0 18px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.64)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.20) !important;
}
body.bd-app-page .rb-app .rb-recipe-allergens-label,
body.bd-app-page .app .rb-recipe-allergens-label {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--muted, #a9b8cc) !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}
body.bd-app-page .rb-app .rb-recipe-allergens-text,
body.bd-app-page .app .rb-recipe-allergens-text {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(14, 165, 233, 0.10) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  color: #dbeafe !important;
  font-size: .98rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}
@media (max-width: 760px) {
  body.bd-app-page .rb-app .rb-recipe-allergens-text,
  body.bd-app-page .app .rb-recipe-allergens-text {
    display: flex !important;
    border-radius: 14px !important;
  }
}


/* v4.1.151 Receptuur: schaal-recept rustiger en compacter */
.rb-app .rb-scale-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-bottom: 16px !important;
}

.rb-app .rb-scale-panel-header > div {
  min-width: 260px;
}

.rb-app .rb-scale-panel h3 {
  margin: 0 !important;
  font-size: clamp(1.05rem, 1.25vw, 1.24rem) !important;
}

.rb-app .rb-scale-stepper {
  grid-template-columns: 42px minmax(150px, 220px) 42px !important;
  gap: 8px !important;
  padding: 7px !important;
  border-radius: 18px !important;
}

.rb-app .rb-scale-step {
  width: 42px !important;
  min-height: 42px !important;
  border-radius: 14px !important;
  font-size: 1.15rem !important;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.rb-app .rb-scale-value-wrap {
  min-height: 42px !important;
  padding: 0 12px !important;
  gap: 6px !important;
  border-radius: 14px !important;
}

.rb-app .rb-scale-value {
  width: 72px !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
}

.rb-app .rb-scale-value-wrap span {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
}

.rb-app .rb-scale-pdf {
  margin-left: 0 !important;
  align-self: center !important;
}

.rb-app .rb-scale-presets button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
}

.rb-app .rb-scale-presets button:hover,
.rb-app .rb-scale-presets button:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 760px) {
  .rb-app .rb-scale-stepper {
    width: 100% !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  }

  .rb-app .rb-scale-pdf {
    width: auto !important;
    justify-content: center !important;
  }
}


/* v4.1.152 Receptuur: schaal-sectie logischer indelen */
.rb-app .rb-scale-panel-header {
  display: block !important;
  margin-bottom: 14px !important;
}

.rb-app .rb-scale-control-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.rb-app .rb-scale-controls-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  flex: 1 1 620px !important;
}

.rb-app .rb-scale-pdf {
  margin-left: auto !important;
  align-self: center !important;
}

.rb-app .rb-scale-presets {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

@media (max-width: 900px) {
  .rb-app .rb-scale-control-row {
    align-items: flex-start !important;
  }

  .rb-app .rb-scale-pdf {
    margin-left: 0 !important;
  }
}

@media (max-width: 760px) {
  .rb-app .rb-scale-controls-left {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .rb-app .rb-scale-presets {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .rb-app .rb-scale-pdf {
    width: auto !important;
  }
}


/* v4.1.153 Receptuur: compactere - / portie / + bediening */
.rb-app .rb-scale-stepper {
  grid-template-columns: 42px minmax(112px, 150px) 42px !important;
  gap: 4px !important;
  padding: 4px !important;
}

.rb-app .rb-scale-value-wrap {
  padding: 0 10px !important;
}

.rb-app .rb-scale-value {
  width: 58px !important;
}

@media (max-width: 760px) {
  .rb-app .rb-scale-stepper {
    grid-template-columns: 42px minmax(112px, 150px) 42px !important;
    width: auto !important;
  }
}


/* v4.1.173 rooster distributie */
body.bd-app-page .bd-staff-share-card { margin-bottom: 18px; }
body.bd-app-page .bd-staff-share-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }


/* v4.1.180 rooster delen mail/whatsapp */
body.bd-app-page .bd-staff-share-section + .bd-staff-share-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}
body.bd-app-page .bd-staff-share-section .bd-staff-muted {
    margin-bottom: 12px;
}
body.bd-app-page .bd-staff-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* v4.1.181 rooster delen titel zichtbaar op donkere achtergrond */
body.bd-app-page .bd-staff-share-card h2 {
    color: #f8fafc !important;
}
body.bd-app-page .bd-staff-share-card .bd-staff-muted {
    color: #a9b8cc !important;
}

/* v4.1.227 rapportages: focus op weekrapport, geen exportcentrum-kaarten */

body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-filter-intro {
  margin: 0 0 18px 0 !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-filter-intro h2 {
  margin: 0 0 8px 0 !important;
  color: #f8fafc !important;
  font-size: 1.45rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-filter-intro p {
  margin: 0 !important;
  color: #a9b8cc !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-form {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) max-content !important;
  gap: 14px !important;
  align-items: end !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-filter-field {
  min-width: 0 !important;
}

body.bd-app-page .bd-weekrapport-filter .custom-select,
body.bd-app-page .bd-weekrapport-filter .custom-select select,
body.bd-app-page .bd-weekrapport-filter .bd-report-input {
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  box-sizing: border-box !important;
}

body.bd-app-page .bd-weekrapport-filter .custom-select select,
body.bd-app-page .bd-weekrapport-filter .bd-report-input {
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  background: rgba(15, 23, 42, .92) !important;
  color: #f8fafc !important;
  padding: 0 16px !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 26px rgba(2, 6, 23, .18) !important;
}

body.bd-app-page .bd-weekrapport-filter .custom-select select:focus,
body.bd-app-page .bd-weekrapport-filter .bd-report-input:focus {
  border-color: rgba(56, 189, 248, .75) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .14), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-report-input::placeholder {
  color: rgba(226, 232, 240, .55) !important;
}

body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-open-word {
  min-height: 54px !important;
  white-space: nowrap !important;
  border-radius: 16px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}


@media (max-width: 1180px) {
  body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-open-word {
    width: 100% !important;
  }
}

@media (max-width: 720px) {
  body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-form {
    grid-template-columns: 1fr !important;
  }
}

/* v4.1.231 rapportages: gedeelde weekselectie en compactere koppen */
body.bd-app-page .bd-existing-reports-panel {
  margin-top: 18px !important;
}
body.bd-app-page .bd-report-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
body.bd-app-page .bd-report-list-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 68px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .54) !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease !important;
}
body.bd-app-page .bd-report-list-row:hover,
body.bd-app-page .bd-report-list-row:focus {
  border-color: rgba(56, 189, 248, .45) !important;
  background: rgba(15, 23, 42, .78) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}
body.bd-app-page .bd-report-list-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}
body.bd-app-page .bd-report-list-title {
  color: #f8fafc !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
}
body.bd-app-page .bd-report-list-desc {
  color: #a9b8cc !important;
  font-size: .94rem !important;
  line-height: 1.35 !important;
}
body.bd-app-page .bd-report-list-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}
body.bd-app-page .bd-report-list-type {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(56, 189, 248, .38) !important;
  background: rgba(14, 116, 144, .24) !important;
  color: #93c5fd !important;
  font-weight: 800 !important;
  font-size: .74rem !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
body.bd-app-page .bd-report-list-open {
  color: #86efac !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
}
@media (max-width: 720px) {
  body.bd-app-page .bd-report-list-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.bd-app-page .bd-report-list-meta {
    justify-content: space-between !important;
  }
}


body.bd-app-page .bd-report-module-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
body.bd-app-page .bd-report-module-card {
  margin-top: 0 !important;
}
body.bd-app-page .bd-report-module-intro {
  margin-bottom: 14px !important;
}
body.bd-app-page .bd-report-module-card .bd-weekrapport-filter-intro h3 {
  margin: 0 0 8px 0 !important;
  color: #f8fafc !important;
  font-size: 1.45rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}
body.bd-app-page .bd-report-module-card .bd-report-list-row {
  min-height: 62px !important;
}


body.bd-app-page .bd-shared-week-filter .bd-shared-week-form {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 320px) auto !important;
  gap: 14px !important;
  align-items: end !important;
}
body.bd-app-page .bd-shared-week-filter .bd-shared-week-apply {
  min-height: 54px !important;
  white-space: nowrap !important;
  border-radius: 16px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
body.bd-app-page .bd-report-module-grid {
  margin-top: 18px !important;
}
@media (max-width: 720px) {
  body.bd-app-page .bd-shared-week-filter .bd-shared-week-form {
    grid-template-columns: 1fr !important;
  }
}


/* v4.1.232 rapportages: compact toepassen, weeklabel rustiger en weekrapport openen als inline meta */
body.bd-app-page .bd-shared-week-filter .bd-filter-label {
  color: #a9b8cc !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  min-height: 0 !important;
  margin-bottom: 6px !important;
}
body.bd-app-page .bd-shared-week-filter .bd-shared-week-apply {
  min-height: 54px !important;
  min-width: 150px !important;
  width: auto !important;
  justify-self: start !important;
  align-self: end !important;
  white-space: nowrap !important;
  border-radius: 16px !important;
  padding: 0 24px !important;
}
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit {
  min-height: 28px !important;
  height: 28px !important;
  width: auto !important;
  justify-self: start !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit:hover,
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit:focus {
  background: transparent !important;
  outline: none !important;
}
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit .bd-report-list-open {
  font-size: .9rem !important;
}


/* v4.1.233 rapportages: weekrapport openen rechts uitlijnen */
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit {
  justify-self: end !important;
}

/* v4.1.235 weekrapporttitel gelijkgetrokken met overige rapportkoppen */


/* v4.1.236 weekrapport openen gelijkgetrokken met overige rapportregels */
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit {
  width: 100% !important;
  justify-content: flex-end !important;
  padding: 0 12px 0 0 !important;
}


/* v4.1.237 weekrapport openen volledig gelijk met overige rapportregels */
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit {
  width: 100% !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  padding: 0 16px 0 0 !important;
}


/* v4.1.238 beheer rollen: rechten overzichtelijk per module */
body.bd-app-page .beheer-role-caps-grouped {
  display: block !important;
}
body.bd-app-page .beheer-cap-groups {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 10px !important;
}
body.bd-app-page .beheer-cap-group {
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 18px !important;
  background: rgba(15, 23, 42, .42) !important;
  padding: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
body.bd-app-page .beheer-cap-group-head,
body.bd-app-page .beheer-cap-group-head-static {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 0 0 12px 0 !important;
  margin: 0 0 10px 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  cursor: pointer !important;
}
body.bd-app-page .beheer-cap-group-head-static {
  cursor: default !important;
}
body.bd-app-page .beheer-cap-group-head strong,
body.bd-app-page .beheer-cap-group-head-static strong {
  display: block !important;
  color: #f8fafc !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}
body.bd-app-page .beheer-cap-group-head small,
body.bd-app-page .beheer-cap-group-head-static small {
  display: block !important;
  color: #a9b8cc !important;
  font-size: .86rem !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
}
body.bd-app-page .beheer-cap-group-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
body.bd-app-page .beheer-cap-group .beheer-cap-option {
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(2, 6, 23, .22) !important;
}
body.bd-app-page .beheer-cap-group .beheer-cap-option span {
  font-size: .92rem !important;
  line-height: 1.25 !important;
}
@media (max-width: 980px) {
  body.bd-app-page .beheer-cap-groups {
    grid-template-columns: 1fr !important;
  }
}


/* v4.1.239 beheer rollen: brede moduleblokken, rechten leesbaar in kolommen */
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 18px !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped > .beheer-caps-label {
  display: block !important;
  margin: 0 0 12px 0 !important;
  color: rgba(226, 232, 240, .9) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-groups {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head,
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head-static {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 0 0 12px 0 !important;
  margin: 0 0 12px 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 0 !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head strong,
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head-static strong {
  display: block !important;
  color: #f8fafc !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head small,
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-head-static small {
  display: block !important;
  color: #a9b8cc !important;
  font-size: .9rem !important;
  line-height: 1.35 !important;
  margin-top: 3px !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-options {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-radius: 14px !important;
  background: rgba(2, 6, 23, .22) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-option input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 2px 0 0 0 !important;
}
body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-option span {
  display: block !important;
  min-width: 0 !important;
  color: #f8fafc !important;
  font-size: .94rem !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
@media (max-width: 1180px) {
  body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-options {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  body.bd-app-page .app .beheer-role-caps.beheer-role-caps-grouped .beheer-cap-group-options {
    grid-template-columns: 1fr !important;
  }
}


/* v4.1.240 weekrapport openen exact gelijk aan overige open-acties */
body.bd-app-page .bd-weekrapport-filter .bd-weekrapport-form {
  justify-items: stretch !important;
}
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit {
  width: auto !important;
  min-width: 0 !important;
  justify-self: end !important;
  justify-content: flex-end !important;
  align-self: center !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 12px !important;
}
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit .bd-report-list-type,
body.bd-app-page .bd-weekrapport-filter .bd-inline-open-submit .bd-report-list-open {
  flex: 0 0 auto !important;
}


/* v4.1.244 AI-transactieprognose advies */
body.bd-app-page .bd-ai-forecast-card {
  border: 1px solid rgba(56, 189, 248, .22) !important;
}
body.bd-app-page .bd-ai-forecast-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}
body.bd-app-page .bd-ai-forecast-head h3 {
  margin: 0 0 6px 0 !important;
  color: #f8fafc !important;
}
body.bd-app-page .bd-ai-forecast-head p,
body.bd-app-page .bd-ai-forecast-summary {
  color: #a9b8cc !important;
}
body.bd-app-page .bd-ai-forecast-summary {
  margin: 0 0 14px 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(15, 23, 42, .50) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
}
body.bd-app-page .bd-ai-forecast-table td,
body.bd-app-page .bd-ai-forecast-table th {
  vertical-align: top !important;
}
body.bd-app-page .bd-ai-forecast-reason {
  color: #e2e8f0 !important;
  line-height: 1.35 !important;
}
@media (max-width: 900px) {
  body.bd-app-page .bd-ai-forecast-head {
    flex-direction: column !important;
  }
}


/* v4.1.248: AI-blok niet tonen; AI verwerkt direct in Masterplan plan */
body.bd-app-page .bd-ai-forecast-card {
  display: none !important;
}


/* v4.1.260 AI-roosterplan weekbasis */
body.bd-app-page .bd-ai-roosterplan-card { margin-top: 18px !important; }
body.bd-app-page .bd-ai-roosterplan-columns { margin-top: 16px !important; }
body.bd-app-page .bd-staff-filter-bar .bd-staff-inline-form { display: inline-flex !important; margin: 0 !important; }

/* v4.1.261 rooster: urenprognose direct in de roostermatrix */
body.bd-app-page .bd-staff-matrix--forecast thead tr.bd-staff-matrix-forecast-row th {
  font-size: .78rem !important;
  color: #93c5fd !important;
  font-weight: 800 !important;
  background: rgba(14, 116, 144, .14) !important;
  border-top: 1px solid rgba(56, 189, 248, .18) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
body.bd-app-page .bd-staff-matrix--forecast tfoot td {
  color: #e2e8f0 !important;
  font-weight: 900 !important;
  background: rgba(15, 23, 42, .72) !important;
}


/* v4.1.262 rooster: prognose en ingepland KPI-blokken */
body.bd-app-page .bd-staff-kpi-blocks {
  display: grid !important;
  gap: 16px !important;
  margin: 0 0 18px 0 !important;
}
body.bd-app-page .bd-staff-kpi-group {
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.42)) !important;
  padding: 16px !important;
}
body.bd-app-page .bd-staff-kpi-group-title {
  color: #f8fafc !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  margin: 0 0 12px 0 !important;
}
body.bd-app-page .bd-staff-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 12px !important;
}
body.bd-app-page .bd-staff-matrix-forecast-row th,
body.bd-app-page .bd-staff-matrix tfoot td {
  white-space: nowrap !important;
}


/* v4.1.263 rooster: KPI-blokken Prognose/Ingepland strakker uitlijnen */
body.bd-app-page .bd-staff-kpi-group {
  padding: 18px 18px 20px 18px !important;
}
body.bd-app-page .bd-staff-kpi-group-title {
  text-align: left !important;
  padding-left: 2px !important;
  margin-bottom: 14px !important;
}
body.bd-app-page .bd-staff-kpi-group .bd-staff-grid--compact {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body.bd-app-page .bd-staff-kpi-group .bd-staff-kpi {
  min-height: 128px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}
body.bd-app-page .bd-staff-kpi-group .bd-staff-kpi h3 {
  min-height: 38px !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  line-height: 1.22 !important;
}
body.bd-app-page .bd-staff-kpi-group .bd-staff-kpi p {
  margin: 0 !important;
  line-height: 1.1 !important;
}
@media (max-width: 1280px) {
  body.bd-app-page .bd-staff-kpi-group .bd-staff-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 780px) {
  body.bd-app-page .bd-staff-kpi-group .bd-staff-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* v4.1.276 Masterplan plan: categorie-stuks zijn berekend en niet muteerbaar */
body.bd-app-page .masterplan-table-invoer-categories .mp-category-stuks-readonly {
  color: #dbeafe !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none !important;
  font-weight: 800 !important;
}
body.bd-app-page .masterplan-table-invoer-categories td:has(.mp-category-stuks-readonly) {
  background: rgba(15, 23, 42, .34) !important;
}

/* v4.1.279 medewerkers naamselectie */
body.bd-app-page input[data-bd-employee-picker="1"] { scroll-margin-top: 120px; }

/* v4.1.281 Dashboard gecombineerd: rustige KPI's plan vs effectief */
body.bd-app-page .bd-combi-dashboard {
  display: grid;
  gap: 18px;
}
body.bd-app-page .bd-combi-head {
  text-align: center;
  margin: 4px 0 2px;
}
body.bd-app-page .bd-combi-head h1 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.1;
}
body.bd-app-page .bd-combi-head p {
  margin: 0;
  color: #a9b8cc;
  font-size: 1rem;
}
body.bd-app-page .bd-combi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.bd-app-page .bd-combi-card {
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.72));
  border-radius: 22px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 40px rgba(2,6,23,.18);
}
body.bd-app-page .bd-combi-card-title {
  color: #f8fafc;
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 14px;
}
body.bd-app-page .bd-combi-card-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.bd-app-page .bd-combi-card-values span,
body.bd-app-page .bd-combi-card-diff span {
  display: block;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 4px;
}
body.bd-app-page .bd-combi-card-values strong {
  color: #e5edf7;
  font-size: 1.25rem;
  line-height: 1.1;
}
body.bd-app-page .bd-combi-card-diff {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
body.bd-app-page .bd-combi-card-diff strong {
  color: #e2e8f0;
  font-size: 1.05rem;
}
body.bd-app-page .bd-combi-card-diff em {
  font-style: normal;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .78rem;
  font-weight: 800;
  background: rgba(148,163,184,.12);
  color: #cbd5e1;
}
body.bd-app-page .bd-combi-card-positive .bd-combi-card-diff em { background: rgba(34,197,94,.14); color: #86efac; }
body.bd-app-page .bd-combi-card-negative .bd-combi-card-diff em { background: rgba(248,113,113,.14); color: #fca5a5; }
body.bd-app-page .bd-combi-panel {
  padding: 18px 20px;
}
body.bd-app-page .bd-combi-table-wrap {
  overflow-x: auto;
}
body.bd-app-page .bd-combi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
body.bd-app-page .bd-combi-table th,
body.bd-app-page .bd-combi-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  text-align: left;
  color: #e2e8f0;
}
body.bd-app-page .bd-combi-table th {
  color: #f8fafc;
  font-weight: 800;
  background: rgba(15,23,42,.44);
}
body.bd-app-page .bd-combi-table td:nth-child(n+3),
body.bd-app-page .bd-combi-table th:nth-child(n+3) {
  text-align: right;
}
body.bd-app-page .bd-combi-table .positive { color: #86efac; font-weight: 800; }
body.bd-app-page .bd-combi-table .negative { color: #fca5a5; font-weight: 800; }
body.bd-app-page .bd-combi-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: #93c5fd;
  background: rgba(14,116,144,.18);
  border: 1px solid rgba(56,189,248,.26);
  font-size: .78rem;
  font-weight: 800;
}
body.bd-app-page .bd-combi-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.bd-app-page .bd-combi-detail {
  padding: 16px 18px;
}
body.bd-app-page .bd-combi-detail summary {
  cursor: pointer;
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 800;
}
body.bd-app-page .bd-combi-detail p {
  color: #a9b8cc;
  line-height: 1.5;
  margin: 12px 0 0;
}
@media (max-width: 1100px) {
  body.bd-app-page .bd-combi-kpi-grid,
  body.bd-app-page .bd-combi-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.bd-app-page .bd-combi-kpi-grid,
  body.bd-app-page .bd-combi-detail-grid { grid-template-columns: 1fr; }
}


/* v4.1.282 grafisch rustig dashboard */
body.bd-app-page .bd-graph-dashboard .bd-combi-head { text-align:center !important; margin: 10px 0 22px !important; }
body.bd-app-page .bd-graph-dashboard .bd-combi-head h1 { font-size: 2.25rem !important; margin-bottom: 8px !important; }
body.bd-app-page .bd-graph-dashboard .bd-combi-head p { color:#a9b8cc !important; font-size:1rem !important; }
body.bd-app-page .bd-graph-grid { display:grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap:16px !important; margin-top:18px !important; }
body.bd-app-page .bd-graph-grid .bd-dashboard-panel { min-height: 360px !important; }
body.bd-app-page .bd-graph-grid .bd-dashboard-panel-wide { grid-column: span 1 !important; }
body.bd-app-page .bd-graph-grid .chart-wrap { min-height: 270px !important; height: 270px !important; }
body.bd-app-page .bd-dashboard-graph-filter { margin-bottom: 18px !important; }
body.bd-app-page .bd-combi-kpi-grid { margin-bottom: 18px !important; }
body.bd-app-page .bd-combi-card { overflow: hidden !important; }
body.bd-app-page .bd-combi-panel { margin-top:18px !important; }
@media (max-width: 980px) {
  body.bd-app-page .bd-graph-grid { grid-template-columns: 1fr !important; }
  body.bd-app-page .bd-graph-grid .bd-dashboard-panel-wide { grid-column: span 1 !important; }
}


/* v4.1.284 grafieken volgen selectie en compacte grafieken naast elkaar */
body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half { grid-column: span 1 !important; }
body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half .chart-wrap { min-height: 230px !important; height: 230px !important; }
body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half { min-height: 310px !important; }
body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half-centered {
  grid-column: 1 / -1 !important;
  width: calc(50% - 8px) !important;
  justify-self: center !important;
}
body.bd-app-page .bd-graph-grid .bd-panel-head h2 { font-size: 1.35rem !important; }
@media (max-width: 980px) {
  body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half { grid-column: span 1 !important; }
  body.bd-app-page .bd-graph-grid .bd-dashboard-panel-half-centered {
    width: 100% !important;
    grid-column: span 1 !important;
    justify-self: stretch !important;
  }
}


/* v4.1.295 upload layout text wrapping fix */
.customer-context-card {
    padding-top: 22px;
    padding-bottom: 22px;
}

.customer-context-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    row-gap: 6px;
}

.customer-context-label,
.customer-context-row strong,
.customer-context-hint {
    display: inline-block;
    line-height: 1.45;
    max-width: 100%;
}

.customer-context-label {
    color: #cbd5e1;
    font-weight: 700;
}

.customer-context-row strong {
    color: #f8fafc;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.customer-context-hint {
    color: #94a3b8;
    flex: 1 1 320px;
    min-width: 220px;
}

.upload-line,
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card em,
body.bd-app-page .bd-saas-active-customer-bar .bd-plugin-release-card small,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card em,
body.bd-app-page .bd-release-only-bar .bd-plugin-release-card small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 760px) {
    .customer-context-row {
        align-items: flex-start;
    }

    .customer-context-hint {
        flex-basis: 100%;
        min-width: 0;
    }
}

/* v4.1.297 Recepturen: leveranciersartikelen zichtbaar en filterbaar */
.rb-app .rb-ingredient-overview-card .rb-ingredient-kpi-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.rb-app .rb-ingredient-overview-card .rb-kpi {
    margin: 0;
    padding: 16px;
}

.rb-app .rb-ingredient-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(180px, .8fr) auto;
    align-items: end;
    gap: 14px;
}

.rb-app .rb-ingredient-filter-panel .rb-result-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.rb-app .rb-result-card .rb-result-meta {
    gap: 7px;
}

.rb-app .rb-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .rb-app .rb-ingredient-overview-card .rb-ingredient-kpi-grid,
    .rb-app .rb-ingredient-filter-panel {
        grid-template-columns: 1fr;
    }

    .rb-app .rb-ingredient-filter-panel .rb-result-actions {
        justify-content: flex-start;
    }
}


/* v4.1.303 ingrediënten zoeken-selecteren-muteren */
.rb-ingredient-editor-card.is-hidden {
    display: none !important;
}
.rb-ingredient-editor-card {
    border-color: rgba(34, 197, 94, 0.28) !important;
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.22), inset 0 1px 0 rgba(255,255,255,0.04);
}
.rb-editor-actions {
    margin-top: 16px;
}
.rb-select-ingredient {
    white-space: nowrap;
}
.rb-ingredient-filter-panel .rb-result-actions {
    align-items: end;
}


/* v4.1.304 nieuw ingrediënt aanmaken vanuit zoekveld */
.rb-create-new-ingredient {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    background: rgba(30, 41, 59, 0.42);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}
.rb-create-new-ingredient.is-hidden {
    display: none !important;
}
.rb-create-new-ingredient span {
    font-weight: 800;
}


/* v4.1.305 zoeken in Naam-veld, zonder losse zoekkaart */
.rb-ingredient-name-picker {
    grid-column: span 2;
}
.rb-inline-ingredient-results {
    margin-top: 10px;
    max-height: 360px;
    overflow: auto;
}
.rb-inline-ingredient-results .rb-result-card {
    padding: 12px;
}
.rb-inline-ingredient-results.is-empty {
    display: none !important;
}
.rb-search-empty.is-hidden {
    display: none !important;
}
.rb-ingredient-editor-card .rb-muted strong {
    color: #f8fafc;
}
@media (max-width: 900px) {
    .rb-ingredient-name-picker {
        grid-column: span 1;
    }
}


/* v4.1.306 zichtbare autocomplete onder Naam */
.rb-ingredient-name-picker {
    position: relative;
}
.rb-inline-ingredient-results {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 420px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: 0 18px 38px rgba(2, 8, 23, 0.42);
}
.rb-inline-ingredient-results.is-empty {
    display: none !important;
}
.rb-inline-result-card {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
}
.rb-inline-ingredient-status {
    margin-top: 8px;
    color: #bae6fd;
    font-weight: 800;
    font-size: 0.9rem;
}
.rb-inline-ingredient-status.is-hidden,
.rb-search-empty.is-hidden {
    display: none !important;
}


/* v4.1.307 combi zoeken artikel + leverancier */
.rb-ingredient-editor-card .rb-muted strong {
    color: #f8fafc;
    font-weight: 900;
}


/* v4.1.309 ingrediënt verwijderen */
.rb-btn.danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #fff !important;
    border-color: rgba(248, 113, 113, 0.36) !important;
}
.rb-btn.danger:hover {
    filter: brightness(1.08);
}
.rb-btn.is-hidden {
    display: none !important;
}


/* v4.1.312 slimme compacte autocomplete */
.rb-inline-ingredient-results {
    max-height: none !important;
    overflow: visible !important;
    padding: 6px !important;
    gap: 6px !important;
}
.rb-inline-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
}
.rb-inline-suggestion:hover {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(15, 23, 42, 0.98);
}
.rb-inline-suggestion-main {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 4px 6px;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}
.rb-inline-suggestion-title {
    display: block;
    color: #f8fafc;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rb-inline-suggestion-meta {
    display: block;
    margin-top: 3px;
    color: #9fb0c7;
    font-size: 0.86rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rb-inline-select {
    padding: 9px 14px !important;
    min-height: 38px !important;
    white-space: nowrap;
}
.rb-inline-ingredient-status {
    color: #bae6fd;
    font-size: 0.86rem;
    line-height: 1.35;
}
@media (max-width: 700px) {
    .rb-inline-suggestion {
        grid-template-columns: 1fr;
    }
    .rb-inline-select {
        width: 100%;
    }
}


/* v4.1.313 autocomplete layoutfix: geen overlappende teksten */
.rb-inline-ingredient-results {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.rb-inline-suggestion {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 132px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
}

.rb-inline-suggestion-main {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

.rb-inline-suggestion-title {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.rb-inline-suggestion-meta {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.rb-inline-select {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    justify-content: center !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

.rb-inline-ingredient-status {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 8px !important;
}

@media (max-width: 760px) {
    .rb-inline-suggestion {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .rb-inline-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* v4.1.314 langere lijst + sluiten na selectie */
.rb-inline-ingredient-results {
    max-height: 620px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.rb-inline-suggestion {
    min-height: 58px;
}


/* v4.1.325 recepturen-in-recepturen import */
.rb-halfproducts-import-card {
    border-color: rgba(56,189,248,.24) !important;
}
.rb-inline-import-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.rb-inline-import-form input[type=file] {
    min-width: 280px;
}


/* v4.1.327 recepturen zoeken/selecteren/bewerken */
.rb-recipe-select-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}
.rb-recipe-select-result .rb-result-meta {
    margin-top: 8px;
}
@media (max-width: 760px) {
    .rb-recipe-select-result {
        grid-template-columns: 1fr;
    }
    .rb-recipe-select-result .rb-result-actions .rb-btn {
        width: 100%;
    }
}


/* v4.1.328 recepturen autocomplete zoals leveranciersartikelen */
.rb-search-results-recipes {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rb-search-results-recipes.is-empty {
    display: none !important;
}
.rb-recipe-select-result {
    width: 100%;
}
.rb-recipe-select-result .rb-result-title {
    white-space: normal;
    overflow-wrap: anywhere;
}


/* v4.1.330 recepturen zoekknop compact */
.rb-recipe-select-result .rb-result-actions .rb-btn {
    min-width: 118px;
    white-space: nowrap;
    text-align: center;
}


/* v4.1.343 uniforme zoekflow in recepturenmodule */
.rb-search-results-recipes:not(.is-empty),
.rb-inline-ingredient-results:not(.is-empty) {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.rb-search-results-recipes.is-empty,
.rb-inline-ingredient-results.is-empty {
    display: none !important;
}
.rb-recipe-select-result,
.rb-inline-ingredient-results .rb-result-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 118px !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.rb-recipe-select-result .rb-result-title,
.rb-inline-ingredient-results .rb-result-title {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-recipe-select-result .rb-result-actions .rb-btn,
.rb-inline-ingredient-results .rb-result-actions .rb-btn,
.rb-recipe-select-result .rb-result-actions button,
.rb-inline-ingredient-results .rb-result-actions button {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}
@media (max-width: 760px) {
    .rb-recipe-select-result,
    .rb-inline-ingredient-results .rb-result-card {
        grid-template-columns: 1fr !important;
    }
    .rb-recipe-select-result .rb-result-actions .rb-btn,
    .rb-inline-ingredient-results .rb-result-actions .rb-btn,
    .rb-recipe-select-result .rb-result-actions button,
    .rb-inline-ingredient-results .rb-result-actions button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* v4.1.433 Correctie uren: invoervelden in dezelfde look & feel als de site */
body.bd-app-page .app .bd-staff-correctie-uren-scroll {
  overflow: auto;
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
}

body.bd-app-page .app .bd-staff-correctie-uren-table {
  min-width: 1120px;
  margin: 0;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  color: #eaf2ff;
}

body.bd-app-page .app .bd-staff-correctie-uren-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15, 23, 42, 0.96) !important;
  color: #f8fafc !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  padding: 12px 10px;
  font-weight: 900;
  white-space: nowrap;
}

body.bd-app-page .app .bd-staff-correctie-uren-table tbody td {
  background: rgba(15, 23, 42, 0.34) !important;
  color: #eaf2ff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10) !important;
  padding: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

body.bd-app-page .app .bd-staff-correctie-uren-table tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.30) !important;
}

body.bd-app-page .app .bd-staff-correctie-uren-table input[type="time"],
body.bd-app-page .app .bd-staff-correctie-uren-table input[type="number"],
body.bd-app-page .app .bd-staff-correctie-uren-table input[type="text"] {
  height: 42px;
  min-width: 104px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: rgba(2, 6, 23, 0.78) !important;
  color: #f8fafc !important;
  padding: 0 12px;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body.bd-app-page .app .bd-staff-correctie-uren-table input[type="number"] {
  width: 96px !important;
  min-width: 96px;
}

body.bd-app-page .app .bd-staff-correctie-uren-table input[type="text"] {
  min-width: 190px;
}

body.bd-app-page .app .bd-staff-correctie-uren-table input[type="time"]:focus,
body.bd-app-page .app .bd-staff-correctie-uren-table input[type="number"]:focus,
body.bd-app-page .app .bd-staff-correctie-uren-table input[type="text"]:focus {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255,255,255,0.04);
}

body.bd-app-page .app .bd-staff-correctie-uren-table input::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

body.bd-app-page .app .bd-staff-correctie-uren-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}

body.bd-app-page .app .bd-staff-correctie-uren-table input:disabled {
  opacity: .58;
  cursor: not-allowed;
}

/* v4.1.434 Correctie uren: één filterbalk voor alle medewerkers */
body.bd-app-page .app .bd-staff-correctie-filter-shell {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(190px, 1fr) minmax(170px, .9fr) minmax(170px, .9fr) auto minmax(160px, .7fr);
  align-items: end;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(2,6,23,.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

body.bd-app-page .app .bd-staff-correctie-filter-title {
  align-self: center;
  color: #f8fafc;
  font-weight: 900;
  letter-spacing: .01em;
}

body.bd-app-page .app .bd-staff-correctie-filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

body.bd-app-page .app .bd-staff-correctie-filter-field span {
  color: #a9b8cc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.bd-app-page .app .bd-staff-correctie-filter-field select {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background-color: rgba(2, 6, 23, 0.78) !important;
  color: #f8fafc !important;
  padding: 0 38px 0 12px;
  font-weight: 800;
  outline: none;
}

body.bd-app-page .app .bd-staff-correctie-filter-field select:focus {
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

body.bd-app-page .app .bd-staff-correctie-filter-reset {
  min-height: 44px;
  white-space: nowrap;
}

body.bd-app-page .app .bd-staff-correctie-filter-count {
  align-self: center;
  justify-self: end;
  color: #a9b8cc;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.bd-app-page .app .bd-staff-correctie-filter-count span {
  color: #f8fafc;
}

body.bd-app-page .app .bd-staff-correctie-uren-table .bd-staff-correctie-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  box-shadow: 10px 0 18px rgba(2, 6, 23, .26);
}

body.bd-app-page .app .bd-staff-correctie-uren-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 220px;
  box-shadow: 10px 0 18px rgba(2, 6, 23, .26);
}

body.bd-app-page .app .bd-staff-correctie-empty {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px dashed rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(2, 6, 23, .22);
}

@media (max-width: 1180px) {
  body.bd-app-page .app .bd-staff-correctie-filter-shell {
    grid-template-columns: 1fr 1fr;
  }
  body.bd-app-page .app .bd-staff-correctie-filter-count {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  body.bd-app-page .app .bd-staff-correctie-filter-shell {
    grid-template-columns: 1fr;
  }
  body.bd-app-page .app .bd-staff-correctie-filter-reset {
    width: 100%;
  }
}

/* v4.1.439 - Administrator klantblok compact: dubbele actieve-klant tekst verwijderd, klantwisselaar blijft intact */
body.bd-app-page .bd-saas-customer-combined-card {
  display: grid;
  grid-template-columns: minmax(240px, auto);
  align-items: center;
  gap: 0;
  width: fit-content;
  min-width: min(300px, calc(100vw - 48px));
  min-height: 146px;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
  box-sizing: border-box;
}
body.bd-app-page .bd-saas-customer-combined-card .bd-saas-active-customer-copy,
body.bd-app-page .bd-saas-customer-combined-card .bd-saas-customer-switch-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.bd-app-page .bd-saas-customer-combined-card .bd-saas-customer-switch-form {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  body.bd-app-page .bd-saas-customer-combined-card {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }
}


/* v4.1.485 - Alleen Roosters > Medewerkers breder/compact zonder horizontale schuifbalk */
body.bd-app-page .bd-staff-employees-page {
    width: min(calc(100vw - 88px), 1900px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}
body.bd-app-page .bd-staff-employees-page .card {
    width: 100%;
    box-sizing: border-box;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-table-wrap {
    overflow-x: visible;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.82rem;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-table th,
body.bd-app-page .bd-staff-employees-page .bd-staff-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    padding-left: 9px;
    padding-right: 9px;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(1),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(1) { width: 13%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(2),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(2) { width: 8%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(3),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(3) { width: 15%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(4),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(4) { width: 11%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(5),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(5) { width: 9%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(6),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(6) { width: 15%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(7),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(7) { width: 7%; text-align:right; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(8),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(8) { width: 7%; text-align:right; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(9),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(9) { width: 7%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(10),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(10) { width: 7%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(11),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(11) { width: 13%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell {
    white-space: normal;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell .btn,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell button {
    padding: 8px 10px;
    min-height: 34px;
    font-size: 0.78rem;
    margin: 2px 3px 2px 0;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-inline-form {
    display: inline-flex;
}
@media (max-width: 1180px) {
    body.bd-app-page .bd-staff-employees-page {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
    body.bd-app-page .bd-staff-employees-page .bd-staff-table-wrap {
        overflow-x: auto;
    }
}

/* v4.1.486 - Roosters > Medewerkers: compacte actierij i.p.v. stapeling */
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(1),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(1) { width: 12%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(2),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(2) { width: 7%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(3),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(3) { width: 14%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(4),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(4) { width: 9%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(5),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(5) { width: 8%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(6),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(6) { width: 13%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(7),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(7) { width: 6%; text-align:right; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(8),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(8) { width: 6%; text-align:right; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(9),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(9) { width: 7%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(10),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(10) { width: 6%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-table th:nth-child(11),
body.bd-app-page .bd-staff-employees-page .bd-staff-table td:nth-child(11) { width: 12%; }
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell {
    white-space: nowrap;
    overflow: visible;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    position: relative;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell .bd-staff-action-btn,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell button.bd-staff-action-btn {
    padding: 7px 9px;
    min-height: 30px;
    font-size: 0.74rem;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-more {
    position: relative;
    display: inline-flex;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-more summary {
    list-style: none;
    cursor: pointer;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-more summary::-webkit-details-marker {
    display: none;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 170px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.38);
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu .bd-staff-inline-form,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu .btn {
    display: flex;
    width: 100%;
    margin: 0 !important;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu button {
    width: 100%;
    justify-content: center;
}


/* v4.1.487 - Roosters > Medewerkers: compacte actiedropdown */
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell {
    width: 1%;
    min-width: 120px;
    white-space: nowrap;
    overflow: visible;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown {
    position: relative;
    display: inline-flex;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown summary {
    list-style: none;
    cursor: pointer;
    min-width: 86px;
    justify-content: center;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown summary::-webkit-details-marker {
    display: none;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown .bd-staff-action-menu {
    min-width: 190px;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu a.btn,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-menu button.btn {
    justify-content: flex-start;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.76rem;
}

/* v4.1.488 - Roosters > Medewerkers: dropdowns blijven binnen beeld */
body.bd-app-page .bd-staff-employees-page .bd-staff-table-wrap,
body.bd-app-page .bd-staff-employees-page .card {
    overflow: visible;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown.is-dropup .bd-staff-action-menu {
    top: auto;
    bottom: calc(100% + 6px);
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown[open] summary {
    position: relative;
    z-index: 61;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown[open] .bd-staff-action-menu {
    z-index: 60;
}

/* v4.1.490 Roosters > Medewerkers: zoekfunctie en filterknoppen */
body.bd-app-page .bd-staff-employee-search-field {
  position: relative;
  overflow: visible !important;
}
body.bd-app-page .bd-staff-search-suggestions {
  display: none;
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 16px;
  background: #071125;
  box-shadow: 0 18px 42px rgba(2,8,23,.42);
}
body.bd-app-page .bd-staff-search-suggestions.is-visible {
  display: grid;
  gap: 8px;
}
body.bd-app-page .bd-staff-search-suggestion {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.92);
  color: #e5edf8;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
body.bd-app-page .bd-staff-search-suggestion:hover,
body.bd-app-page .bd-staff-search-suggestion:focus {
  border-color: rgba(96,165,250,.75);
  background: rgba(37,99,235,.20);
  outline: none;
}
body.bd-app-page .bd-staff-search-suggestion strong {
  color: #f8fafc;
  font-weight: 900;
}
body.bd-app-page .bd-staff-search-suggestion span {
  color: #a9b8cc;
  font-size: .86rem;
  font-weight: 700;
}
body.bd-app-page .bd-staff-filter-actions {
  display: flex !important;
  align-items: flex-end !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
body.bd-app-page .bd-staff-filter-actions .bd-staff-filter-btn,
body.bd-app-page .bd-staff-filter-actions .btn {
  min-width: 150px !important;
  height: 52px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}


/* v4.1.491 Roosters > Medewerkers: filtervelden naast elkaar met juiste verhoudingen */
body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form {
  display: grid !important;
  grid-template-columns: minmax(320px, 2.1fr) minmax(220px, 1.35fr) minmax(160px, .85fr) minmax(155px, .8fr) minmax(155px, .8fr) !important;
  gap: 18px 20px !important;
  align-items: end !important;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-employee-search-field {
  grid-column: auto !important;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-filter-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-filter-actions .bd-staff-filter-btn,
body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-filter-actions .btn {
  width: auto !important;
  min-width: 170px !important;
  height: 50px !important;
  padding: 0 22px !important;
  white-space: nowrap !important;
}
@media (max-width: 1280px) {
  body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form {
    grid-template-columns: minmax(280px, 2fr) minmax(200px, 1.2fr) minmax(150px, .9fr) minmax(150px, .9fr) !important;
  }
}
@media (max-width: 920px) {
  body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form {
    grid-template-columns: 1fr !important;
  }
  body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-filter-actions .bd-staff-filter-btn,
  body.bd-app-page .bd-staff-employees-page .bd-staff-employee-filter-form .bd-staff-filter-actions .btn {
    width: 100% !important;
  }
}

/* v4.1.492 - Roosters > Medewerkers: actiedropdown blijft binnen filterresultaat-frame */
body.bd-app-page .bd-staff-employees-page .bd-staff-action-cell,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-row,
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown {
  overflow: visible !important;
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown .bd-staff-action-menu {
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 8px);
  bottom: auto;
  transform: none;
  max-width: min(220px, calc(100vw - 32px));
}
body.bd-app-page .bd-staff-employees-page .bd-staff-action-dropdown.is-dropup .bd-staff-action-menu {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
}


/* v4.1.533 - Productieplan: titelbalk en logokaarten weer binnen de contentbreedte, zodat logo's niet tegen schermranden vallen */
html body.bd-app-page .app.app-productie-only > .bd-page-titlebar,
html body .entry-content > .app.app-productie-only > .bd-page-titlebar,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-page-titlebar,
html body .wp-block-post-content > .app.app-productie-only > .bd-page-titlebar,
html body.bd-app-page .app.app-productie-only > .bd-saas-active-customer-bar,
html body .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
html body .wp-block-post-content > .app.app-productie-only > .bd-saas-active-customer-bar {
  width: 100% !important;
  max-width: 1760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app.app-productie-only > .bd-page-titlebar,
html body .entry-content > .app.app-productie-only > .bd-page-titlebar,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-page-titlebar,
html body .wp-block-post-content > .app.app-productie-only > .bd-page-titlebar {
  position: relative !important;
}
html body.bd-app-page .app.app-productie-only > .bd-saas-active-customer-bar,
html body .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
html body .wp-block-post-content > .app.app-productie-only > .bd-saas-active-customer-bar {
  justify-content: flex-start !important;
}
@media (max-width: 1100px) {
  html body.bd-app-page .app.app-productie-only > .bd-page-titlebar,
  html body .entry-content > .app.app-productie-only > .bd-page-titlebar,
  html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-page-titlebar,
  html body .wp-block-post-content > .app.app-productie-only > .bd-page-titlebar,
  html body.bd-app-page .app.app-productie-only > .bd-saas-active-customer-bar,
  html body .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
  html body .wp-site-blocks .entry-content > .app.app-productie-only > .bd-saas-active-customer-bar,
  html body .wp-block-post-content > .app.app-productie-only > .bd-saas-active-customer-bar {
    max-width: 100% !important;
  }
}

/* v4.1.548 - klantlogo met witte achtergrond laat de paginakleur door zodat het geheel rustiger oogt */

/* v4.1.552 - klantlogo binnen afgesproken frame houden */
body.bd-app-page .app .bd-page-customer-logo,
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card { overflow: hidden !important; }

/* v4.1.553 - klantlogo frame zonder zichtbare rand */
body.bd-app-page .app .bd-page-customer-logo,
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card { border: 0 !important; box-shadow: none !important; }

/* v4.1.554 - klantlogo helemaal zonder zichtbare kaders */
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card,
body.bd-app-page .app .bd-page-customer-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card .bd-customer-logo-card-media,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card .bd-customer-logo-card-media {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.bd-app-page .app .bd-page-customer-logo {
  padding: 6px 10px !important;
}
body.bd-app-page .app .bd-page-customer-logo img,
body.bd-app-page .bd-saas-active-customer-bar .bd-customer-logo-card img,
body.bd-app-page .bd-release-only-bar .bd-customer-logo-card img {
  filter: none !important;
}


/* v4.1.571 - Recepturen productkoppeling via popup */
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: none !important;
}
body.bd-app-page .rb-app .rb-product-link-picker-button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22);
  background: #020617;
  color: #f8fafc;
  text-align: left;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}
body.bd-app-page .rb-app .rb-product-link-picker-button:hover {
  border-color: rgba(125,211,252,.45);
  background: rgba(15,23,42,.88);
}
body.bd-app-page .rb-app [data-rb-product-picker-summary] {
  display: block;
  margin-top: 7px;
  line-height: 1.35;
}
.rb-product-link-picker-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2,6,23,.76);
}
.rb-product-link-picker-modal.is-open {
  display: flex;
}
.rb-product-link-picker-dialog {
  width: min(980px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(56,189,248,.42);
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(10,22,58,.96));
  box-shadow: 0 28px 80px rgba(2,8,23,.48);
  padding: 24px;
  color: #e5edf8;
}
.rb-product-link-picker-dialog h3 {
  margin: 0 0 8px;
  text-align: center;
  font-family: Georgia, serif;
  color: #f8fafc;
  font-size: 1.5rem;
}
.rb-product-link-picker-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.rb-product-link-picker-panel {
  min-height: 380px;
  max-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
  background: rgba(2,6,23,.42);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rb-product-link-picker-panel > strong {
  color: #f8fafc;
  font-size: 1rem;
}
.rb-product-link-picker-categories,
.rb-product-link-picker-products {
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}
.rb-product-link-picker-products {
  flex: 1 1 auto;
}
.rb-product-link-picker-panel input[type=search] {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.24);
  background: #020617;
  color: #f8fafc;
  padding: 9px 12px;
}
.rb-product-link-category,
.rb-product-link-product {
  appearance: none;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(15,23,42,.72);
  color: #e2e8f0;
  padding: 11px 12px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.rb-product-link-category.is-active,
.rb-product-link-product.is-active,
.rb-product-link-category:hover,
.rb-product-link-product:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #04111d;
  border-color: rgba(74,222,128,.56);
}
.rb-product-link-empty {
  color: #94a3b8;
  font-weight: 800;
  padding: 12px;
}
.rb-product-link-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
@media(max-width: 760px) {
  .rb-product-link-picker-grid { grid-template-columns: 1fr; }
  .rb-product-link-picker-panel { min-height: 220px; max-height: 300px; }
}


/* v4.1.572 - productkoppeling popup: teksten expliciet leesbaar op donkere achtergrond */
body.bd-app-page .rb-product-link-picker-dialog,
body.bd-app-page .rb-product-link-picker-dialog p,
body.bd-app-page .rb-product-link-picker-panel,
body.bd-app-page .rb-product-link-picker-panel strong {
  color: #e5edf8 !important;
  opacity: 1 !important;
}
body.bd-app-page .rb-product-link-picker-panel input[type=search],
body.bd-app-page .rb-product-link-picker-panel input[type=search]::placeholder {
  color: #f8fafc !important;
  opacity: 1 !important;
}
body.bd-app-page .rb-product-link-category,
body.bd-app-page .rb-product-link-product,
body.bd-app-page .rb-product-link-product span {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.bd-app-page .rb-product-link-category.is-active,
body.bd-app-page .rb-product-link-product.is-active,
body.bd-app-page .rb-product-link-category:hover,
body.bd-app-page .rb-product-link-product:hover,
body.bd-app-page .rb-product-link-category.is-active span,
body.bd-app-page .rb-product-link-product.is-active span,
body.bd-app-page .rb-product-link-category:hover span,
body.bd-app-page .rb-product-link-product:hover span {
  color: #04111d !important;
}
body.bd-app-page .rb-product-link-empty {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}


/* v4.1.573 - productkoppeling popup: alle categorieknoppen leesbaar, ook inactief */
body.bd-app-page .rb-app .rb-product-link-picker-modal .rb-product-link-picker-categories .rb-product-link-category,
body.bd-app-page .rb-product-link-picker-modal .rb-product-link-picker-categories .rb-product-link-category,
body.bd-app-page .rb-product-link-picker-dialog .rb-product-link-category,
body.bd-app-page .rb-product-link-picker-dialog .rb-product-link-category:not(.is-active) {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}
body.bd-app-page .rb-app .rb-product-link-picker-modal .rb-product-link-picker-categories .rb-product-link-category.is-active,
body.bd-app-page .rb-product-link-picker-modal .rb-product-link-picker-categories .rb-product-link-category.is-active,
body.bd-app-page .rb-product-link-picker-dialog .rb-product-link-category.is-active,
body.bd-app-page .rb-product-link-picker-dialog .rb-product-link-category:hover {
  color: #04111d !important;
  -webkit-text-fill-color: #04111d !important;
  background: linear-gradient(135deg, #4ade80, #22c55e) !important;
  border-color: rgba(74, 222, 128, 0.62) !important;
}
body.bd-app-page .rb-product-link-picker-dialog .rb-product-link-category:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.95) !important;
  outline-offset: 2px !important;
}


/* v4.1.574 - geselecteerd product in veld tonen, niet onder het veld */
body.bd-app-page .rb-app .rb-product-link-picker-button.is-selected {
  color: #f8fafc;
}
body.bd-app-page .rb-app [data-rb-product-picker-summary] {
  display: none !important;
}


/* v4.1.575 - geselecteerd product in koppelveld duidelijk leesbaar */
body.bd-app-page .rb-app .rb-product-link-picker-button,
body.bd-app-page .rb-app .rb-product-link-picker-button:visited,
body.bd-app-page .rb-app .rb-product-link-picker-button:hover,
body.bd-app-page .rb-app .rb-product-link-picker-button:focus,
body.bd-app-page .rb-app .rb-product-link-picker-button.is-selected {
  color: #f8fafc !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #f8fafc !important;
}
body.bd-app-page .rb-app .rb-product-link-picker-button.is-selected {
  border-color: rgba(125, 211, 252, 0.42) !important;
  background: rgba(2, 6, 23, 0.96) !important;
}
body.bd-app-page .rb-app .rb-product-link-picker-button:not(.is-selected) {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

/* v4.1.585 - Lightspeed productfilter weer direct zichtbaar in Recepten */
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: block !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  margin-top: 8px;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
  text-align: center;
}

/* v4.1.590 - Receptuur PDF: eerste hoeveelheid-kolom toont Hoeveelheid + basisportie */


/* v4.1.587 - Recepturen: product koppelen weer als twee filters naast elkaar */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  grid-column: 1 / 2 !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field {
  grid-column: 2 / span 2 !important;
  max-width: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: block !important;
  width: 100% !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field [data-rb-product-picker-summary] {
  display: none !important;
}
@media(max-width: 980px) {
  body.bd-app-page .rb-app .rb-recipe-product-category-field,
  body.bd-app-page .rb-app .rb-recipe-linked-product-field {
    grid-column: 1 / -1 !important;
  }
}


/* v4.1.589 - Recepturen: productkoppeling weer via één popup met categorie + openstaand product */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field {
  grid-column: 2 / span 2 !important;
  max-width: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: #020617 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-align: left !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button:not(.is-selected) {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field [data-rb-product-picker-summary] {
  display: none !important;
}
@media(max-width: 980px) {
  body.bd-app-page .rb-app .rb-recipe-linked-product-field {
    grid-column: 1 / -1 !important;
  }
}


/* v4.1.592 - Recepturen: basis-/bruikbare hoeveelheid zonder duizendpunt in inputs */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  display: block !important;
  grid-column: 1 / 2 !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field {
  display: block !important;
  grid-column: 2 / span 2 !important;
  max-width: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: block !important;
  width: 100% !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button,
body.bd-app-page .rb-app .rb-recipe-linked-product-field [data-rb-product-picker-summary],
body.bd-app-page .rb-product-link-picker-modal {
  display: none !important;
}
@media(max-width: 980px) {
  body.bd-app-page .rb-app .rb-recipe-product-category-field,
  body.bd-app-page .rb-app .rb-recipe-linked-product-field {
    grid-column: 1 / -1 !important;
  }
}


/* v4.1.593 - Recepturen: productkoppeling opnieuw als één popup met categorie + openstaand product */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field {
  display: block !important;
  grid-column: 2 / span 2 !important;
  max-width: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: #020617 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-align: left !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button:not(.is-selected) {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field [data-rb-product-picker-summary] {
  display: none !important;
}
body.bd-app-page .rb-product-link-picker-modal {
  display: none !important;
}
body.bd-app-page .rb-product-link-picker-modal.is-open {
  display: flex !important;
}
@media(max-width: 980px) {
  body.bd-app-page .rb-app .rb-recipe-linked-product-field {
    grid-column: 1 / -1 !important;
  }
}


/* v4.1.594 - Recepturen: popupfilters hard geborgd links/rechts */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field {
  display: block !important;
  grid-column: 1 / span 3 !important;
  max-width: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}
body.bd-app-page .rb-product-link-picker-modal {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}
body.bd-app-page .rb-product-link-picker-modal.is-open {
  display: flex !important;
}
body.bd-app-page .rb-product-link-picker-dialog {
  width: min(1040px, calc(100vw - 48px)) !important;
}
body.bd-app-page .rb-product-link-picker-dialog h3,
body.bd-app-page .rb-product-link-picker-dialog p {
  text-align: left !important;
}
body.bd-app-page .rb-product-link-picker-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(420px, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.bd-app-page .rb-product-link-picker-panel:first-child {
  grid-column: 1 !important;
}
body.bd-app-page .rb-product-link-picker-panel:nth-child(2) {
  grid-column: 2 !important;
}
body.bd-app-page .rb-product-link-picker-panel > strong,
body.bd-app-page .rb-product-link-category,
body.bd-app-page .rb-product-link-product {
  text-align: left !important;
}
@media(max-width: 760px) {
  body.bd-app-page .rb-product-link-picker-grid {
    grid-template-columns: 1fr !important;
  }
  body.bd-app-page .rb-product-link-picker-panel:first-child,
  body.bd-app-page .rb-product-link-picker-panel:nth-child(2) {
    grid-column: 1 !important;
  }
}
@media(max-width: 980px) {
  body.bd-app-page .rb-app .rb-recipe-linked-product-field {
    grid-column: 1 / -1 !important;
  }
}

/* v4.1.595 - Recepturen: productkoppeling popup opent solide met delegated JS fallback */
body.bd-app-page .rb-app .rb-recipe-product-category-field {
  display: none !important;
}
body.bd-app-page .rb-app .rb-product-link-hidden-select {
  display: none !important;
}
body.bd-app-page .rb-app .rb-recipe-linked-product-field .rb-product-link-picker-button {
  display: block !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
body.bd-app-page .rb-product-link-picker-modal.is-open,
.rb-product-link-picker-modal.is-open {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
}
body.bd-app-page .rb-product-link-picker-grid,
.rb-product-link-picker-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(420px, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.bd-app-page .rb-product-link-picker-panel:first-child,
.rb-product-link-picker-panel:first-child {
  grid-column: 1 !important;
}
body.bd-app-page .rb-product-link-picker-panel:nth-child(2),
.rb-product-link-picker-panel:nth-child(2) {
  grid-column: 2 !important;
}
@media(max-width: 760px) {
  body.bd-app-page .rb-product-link-picker-grid,
  .rb-product-link-picker-grid {
    grid-template-columns: 1fr !important;
  }
  body.bd-app-page .rb-product-link-picker-panel:first-child,
  body.bd-app-page .rb-product-link-picker-panel:nth-child(2),
  .rb-product-link-picker-panel:first-child,
  .rb-product-link-picker-panel:nth-child(2) {
    grid-column: 1 !important;
  }
}

/* v4.1.606 receptregel slimme compacte zoekfunctie */
.rb-app .rb-line {
    position: relative;
}
.rb-app .rb-line-smart-results {
    position: absolute;
    z-index: 10050;
    left: 0;
    top: calc(100% + 6px);
    width: min(680px, 100%);
    max-height: 360px;
    overflow: auto;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 60px rgba(2, 8, 23, 0.55);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.rb-app .rb-line-smart-results.is-empty,
.rb-app .rb-line-smart-results.is-hidden {
    display: none !important;
}
.rb-app .rb-line-smart-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.92);
}
.rb-app .rb-line-smart-suggestion:hover,
.rb-app .rb-line-smart-suggestion:focus-within {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 1);
}
.rb-app .rb-line-smart-main {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 4px 6px;
    cursor: pointer;
    min-width: 0;
}
.rb-app .rb-line-smart-title {
    display: block;
    color: #f8fafc;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rb-app .rb-line-smart-meta {
    display: block;
    margin-top: 3px;
    color: #9fb0c7;
    font-size: 0.86rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rb-app .rb-line-smart-select {
    min-height: 36px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
}
@media (max-width: 780px) {
    .rb-app .rb-line-smart-results {
        width: 100%;
        max-height: 300px;
    }
    .rb-app .rb-line-smart-suggestion {
        grid-template-columns: 1fr;
    }
}

/* v4.1.645 - klokinstellingen in Klantlocatie netjes uitlijnen */
body.bd-app-page .app .bd-clock-location-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
body.bd-app-page .app .bd-clock-location-form .bd-staff-field {
  min-width: 0;
}
body.bd-app-page .app .bd-clock-location-form .bd-staff-input,
body.bd-app-page .app .bd-clock-location-form select,
body.bd-app-page .app .bd-clock-location-form input {
  min-height: 52px;
}
body.bd-app-page .app .bd-clock-location-form .bd-staff-readonly-value {
  display: flex;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
  font-weight: 700;
}
body.bd-app-page .app .bd-clock-location-form .bd-staff-field > small,
body.bd-app-page .app .bd-clock-location-form .bd-staff-field .bd-staff-muted:not(.bd-staff-readonly-value) {
  margin-top: 2px;
}
@media (max-width: 1180px) {
  body.bd-app-page .app .bd-clock-location-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  body.bd-app-page .app .bd-clock-location-form {
    grid-template-columns: 1fr;
  }
}


/* v4.1.717 - Upload fullwidth shell herstel
   Alleen layout; upload/import/formbinding blijft ongewijzigd. */
html body.bd-app-page .app.bd-module-upload,
html body .entry-content > .app.bd-module-upload,
html body .wp-site-blocks .entry-content > .app.bd-module-upload,
html body .wp-block-post-content > .app.bd-module-upload {
  width: min(calc(100vw - 48px), 1680px) !important;
  max-width: min(calc(100vw - 48px), 1680px) !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw + 24px) !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
html body.bd-app-page .app.bd-module-upload > .bd-page-titlebar,
html body.bd-app-page .app.bd-module-upload > .header,
html body.bd-app-page .app.bd-module-upload > .release-card,
html body.bd-app-page .app.bd-module-upload > .card,
html body.bd-app-page .app.bd-module-upload > .grid,
html body.bd-app-page .app.bd-module-upload > .data-table,
html body.bd-app-page .app.bd-module-upload .upload-grid,
html body.bd-app-page .app.bd-module-upload .upload-card,
html body.bd-app-page .app.bd-module-upload .upload-card-combined,
html body.bd-app-page .app.bd-module-upload .customer-context-card,
html body.bd-app-page .app.bd-module-upload .data-table,
html body.bd-app-page .app.bd-module-upload .data-table table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app.bd-module-upload .upload-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 22px !important;
}
html body.bd-app-page .app.bd-module-upload .bd-page-titlebar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
}
html body.bd-app-page .app.bd-module-upload .header {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
}
@media (max-width: 760px) {
  html body.bd-app-page .app.bd-module-upload,
  html body .entry-content > .app.bd-module-upload,
  html body .wp-site-blocks .entry-content > .app.bd-module-upload,
  html body .wp-block-post-content > .app.bd-module-upload {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: calc(50% - 50vw + 12px) !important;
  }
}


/* v4.1.718 - Upload shell viewport lock
   Alleen layout. Upload/import/form/nonce/binding blijven ongewijzigd. */
html body.bd-app-page:has(.app.bd-module-upload),
html body:has(.entry-content .app.bd-module-upload) {
  overflow-x: hidden !important;
  background: #020617 !important;
}
html body.bd-app-page .app.bd-module-upload,
html body .entry-content .app.bd-module-upload,
html body .wp-site-blocks .app.bd-module-upload,
html body .wp-block-post-content .app.bd-module-upload,
html body main .app.bd-module-upload,
html body article .app.bd-module-upload {
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 34px clamp(24px, 3vw, 64px) 72px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  overflow: visible !important;
}
html body.bd-app-page .app.bd-module-upload > *,
html body .entry-content .app.bd-module-upload > *,
html body .wp-site-blocks .app.bd-module-upload > *,
html body .wp-block-post-content .app.bd-module-upload > * {
  max-width: 1680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
html body.bd-app-page .app.bd-module-upload > .card,
html body.bd-app-page .app.bd-module-upload > .grid,
html body.bd-app-page .app.bd-module-upload .upload-grid,
html body.bd-app-page .app.bd-module-upload .upload-card,
html body.bd-app-page .app.bd-module-upload .upload-card-combined,
html body.bd-app-page .app.bd-module-upload .customer-context-card,
html body.bd-app-page .app.bd-module-upload .data-table,
html body.bd-app-page .app.bd-module-upload .data-table table,
html body .entry-content .app.bd-module-upload > .card,
html body .entry-content .app.bd-module-upload > .grid,
html body .entry-content .app.bd-module-upload .upload-grid,
html body .entry-content .app.bd-module-upload .upload-card,
html body .entry-content .app.bd-module-upload .upload-card-combined,
html body .entry-content .app.bd-module-upload .customer-context-card,
html body .entry-content .app.bd-module-upload .data-table,
html body .entry-content .app.bd-module-upload .data-table table {
  width: 100% !important;
  max-width: 1680px !important;
}
html body.bd-app-page .app.bd-module-upload > .header,
html body .entry-content .app.bd-module-upload > .header {
  width: fit-content !important;
  max-width: min(1680px, 100%) !important;
}
html body.bd-app-page .app.bd-module-upload > .release-card,
html body .entry-content .app.bd-module-upload > .release-card {
  width: min(100%, 340px) !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
@media (max-width: 760px) {
  html body.bd-app-page .app.bd-module-upload,
  html body .entry-content .app.bd-module-upload,
  html body .wp-site-blocks .app.bd-module-upload,
  html body .wp-block-post-content .app.bd-module-upload,
  html body main .app.bd-module-upload,
  html body article .app.bd-module-upload {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* v4.1.759 originele WP-plugin UI shell overrides */
body.bd-app-page{background:#f3f5f9!important;color:#111827!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}.bd-app-page .main{max-width:none!important}.bd-app-page .card{border-radius:10px!important;padding:16px!important;margin-bottom:14px!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}.bd-app-page .grid{gap:12px!important}.bd-app-page .kpi{font-size:26px!important}.bd-app-page .table th,.bd-app-page .table td{padding:8px 9px!important}.bd-app-page .btn{border-radius:8px!important;padding:8px 12px!important}.bd-saas-active-customer-bar,.bd-saas-context-card,.release-card{background:#fff;border:1px solid #dfe5ee;border-radius:10px;box-shadow:0 8px 22px rgba(15,23,42,.08)}

/* v4.1.760 - originele WP-plugin UI terug, met VPS-sidebar behouden */
body.bd-legacy-ui{
  background:
    radial-gradient(circle at top, rgba(56,189,248,.10), transparent 28%),
    radial-gradient(circle at right top, rgba(34,197,94,.08), transparent 22%),
    linear-gradient(180deg,#07111f 0%,#020617 100%) !important;
  color:var(--text,#e5eefb) !important;
  min-height:100vh;
}
body.bd-legacy-ui .shell.bd-shell{display:flex;min-height:100vh;background:transparent!important;}
body.bd-legacy-ui .side.bd-sidebar{
  position:sticky;top:0;height:100vh;width:246px;flex:0 0 246px;
  background:#0b1220;color:#dbeafe;padding:22px 16px;border-right:1px solid rgba(148,163,184,.14);
  box-shadow:12px 0 34px rgba(2,8,23,.22);z-index:20;
}
body.bd-legacy-ui .side.bd-sidebar img{max-width:154px;margin:0 0 22px;display:block;}
body.bd-legacy-ui .side.bd-sidebar .small{color:#9fb3cf;margin:0 0 16px;}
body.bd-legacy-ui .side.bd-sidebar a,
body.bd-legacy-ui .side.bd-sidebar button{
  display:block;width:100%;padding:9px 11px;border-radius:10px;border:0;background:transparent;color:#e5eefb;
  text-decoration:none;text-align:left;font:inherit;font-weight:700;cursor:pointer;margin:2px 0;
}
body.bd-legacy-ui .side.bd-sidebar a:hover,
body.bd-legacy-ui .side.bd-sidebar a.active,
body.bd-legacy-ui .side.bd-sidebar button:hover{background:rgba(56,189,248,.12);color:#fff;}
body.bd-legacy-ui .main.bd-main{flex:1;min-width:0;padding:0 0 56px;background:transparent!important;}
body.bd-legacy-ui .app.bd-original-shell{
  width:min(100%,1320px);max-width:1320px;margin:0 auto;padding:58px 20px 70px;text-align:left;color:var(--text,#e5eefb);
}
body.bd-legacy-ui .bd-original-top{display:grid;grid-template-columns:280px 1fr 280px;align-items:center;margin:0 auto 18px;}
body.bd-legacy-ui .bd-original-brand img{width:210px;max-width:100%;display:block;}
body.bd-legacy-ui .bd-original-title{font-size:clamp(2.1rem,3.2vw,3.4rem);line-height:1;margin:0;text-align:center;font-weight:900;letter-spacing:-.055em;color:#fff;text-shadow:0 8px 28px rgba(0,0,0,.22);}
body.bd-legacy-ui .bd-main-nav.header{display:flex;width:max-content;max-width:100%;margin:0 auto 28px;padding:8px;gap:8px;align-items:center;justify-content:center;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.18);border-radius:999px;box-shadow:0 18px 50px rgba(2,8,23,.35);backdrop-filter:blur(12px);}
body.bd-legacy-ui .bd-main-nav a,
body.bd-legacy-ui .bd-main-nav button{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:10px 16px;border-radius:999px;color:#a9b8cc;background:transparent;border:0;text-decoration:none;font-weight:800;font-size:.92rem;cursor:pointer;}
body.bd-legacy-ui .bd-main-nav a:hover,
body.bd-legacy-ui .bd-main-nav button:hover{color:#fff;background:rgba(255,255,255,.06);}
body.bd-legacy-ui .bd-main-nav a.active{color:#04111f;background:linear-gradient(135deg,#86efac,#22c55e);box-shadow:0 10px 26px rgba(34,197,94,.28);}
body.bd-legacy-ui .bd-nav-logout{margin:0;display:inline-flex;}
body.bd-legacy-ui .bd-saas-row{display:grid;grid-template-columns:250px 280px 1fr;gap:14px;align-items:center;margin:0 auto 24px;}
body.bd-legacy-ui .bd-saas-context-card,
body.bd-legacy-ui .release-card{background:rgba(15,23,42,.72)!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:18px!important;box-shadow:0 18px 50px rgba(2,8,23,.22)!important;padding:18px 22px!important;color:#e5eefb!important;min-height:92px;}
body.bd-legacy-ui .bd-saas-context-card .muted,
body.bd-legacy-ui .release-card .muted{color:#a9b8cc!important;}
body.bd-legacy-ui .bd-page-customer-logo{text-align:right;}
body.bd-legacy-ui .bd-page-customer-logo img{max-height:70px;width:auto;filter:drop-shadow(0 12px 20px rgba(0,0,0,.25));}
body.bd-legacy-ui .bd-legacy-content > h1:first-child{display:none!important;}
body.bd-legacy-ui .card{background:rgba(15,23,42,.84)!important;border:1px solid rgba(148,163,184,.16)!important;color:#e5eefb!important;border-radius:22px!important;box-shadow:0 18px 50px rgba(2,8,23,.35)!important;padding:22px!important;margin-bottom:18px!important;}
body.bd-legacy-ui .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
body.bd-legacy-ui .kpi{color:#fff!important;font-size:2rem;font-weight:900;letter-spacing:-.04em;}
body.bd-legacy-ui .muted,body.bd-legacy-ui .small.muted{color:#a9b8cc!important;}
body.bd-legacy-ui .btn,
body.bd-legacy-ui button.btn,
body.bd-legacy-ui a.btn{background:linear-gradient(135deg,#38bdf8,#2563eb)!important;color:#031021!important;border:0!important;border-radius:12px!important;padding:10px 14px!important;font-weight:900!important;text-decoration:none!important;box-shadow:0 12px 28px rgba(56,189,248,.18)!important;}
body.bd-legacy-ui .btn:hover{filter:brightness(1.08);transform:translateY(-1px);}
body.bd-legacy-ui input,body.bd-legacy-ui select,body.bd-legacy-ui textarea,body.bd-legacy-ui .input{background:#040b18!important;color:#e5eefb!important;border:1px solid rgba(148,163,184,.20)!important;border-radius:12px!important;padding:10px 12px!important;}
body.bd-legacy-ui input::placeholder,body.bd-legacy-ui textarea::placeholder{color:#71809a!important;}
body.bd-legacy-ui .table{width:100%;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;color:#e5eefb!important;}
body.bd-legacy-ui .table th{background:rgba(15,23,42,.82)!important;color:#e5eefb!important;font-weight:900;border-bottom:1px solid rgba(148,163,184,.16)!important;padding:12px!important;}
body.bd-legacy-ui .table td{background:rgba(15,23,42,.42)!important;color:#dbeafe!important;border-bottom:1px solid rgba(148,163,184,.12)!important;padding:11px 12px!important;}
body.bd-legacy-ui .table tr:hover td{background:rgba(56,189,248,.06)!important;}
body.bd-legacy-ui code{background:#030712;color:#dbeafe;border:1px solid rgba(148,163,184,.16);border-radius:8px;padding:2px 6px;}
body.bd-legacy-ui .flash{background:rgba(22,163,74,.16)!important;border:1px solid rgba(134,239,172,.55)!important;color:#dcfce7!important;border-radius:16px!important;}
body.bd-legacy-ui .error{background:rgba(239,68,68,.16)!important;border:1px solid rgba(252,165,165,.55)!important;color:#fee2e2!important;border-radius:16px!important;}
/* module-submenus: Plan/Effectief/DB-check and recipe/roster tabs stay visible as original pill bars */
body.bd-legacy-ui .bd-legacy-content > .card:first-of-type p:has(a.btn),
body.bd-legacy-ui .bd-legacy-content > .card:first-of-type div:has(> a.btn){gap:8px;}
body.bd-legacy-ui .bd-legacy-content > .card:first-of-type a.btn{border-radius:999px!important;min-width:94px;}
body.bd-legacy-ui .bd-legacy-content > .card:first-of-type{margin-top:8px!important;}
@media(max-width:1180px){body.bd-legacy-ui .bd-original-top{grid-template-columns:1fr;text-align:center;gap:16px;}body.bd-legacy-ui .bd-original-brand img{margin:0 auto;}body.bd-legacy-ui .bd-saas-row{grid-template-columns:1fr 1fr;}body.bd-legacy-ui .bd-page-customer-logo{grid-column:1/-1;text-align:center;}}
@media(max-width:900px){body.bd-legacy-ui .shell.bd-shell{display:block;}body.bd-legacy-ui .side.bd-sidebar{position:relative;width:100%;height:auto;display:flex;gap:6px;flex-wrap:wrap;align-items:center;}body.bd-legacy-ui .side.bd-sidebar img{width:120px;margin:0 10px 0 0;}body.bd-legacy-ui .side.bd-sidebar a,body.bd-legacy-ui .side.bd-sidebar button{width:auto;}body.bd-legacy-ui .app.bd-original-shell{padding:28px 12px 44px;}body.bd-legacy-ui .bd-saas-row{grid-template-columns:1fr;}body.bd-legacy-ui .bd-main-nav.header{width:100%;overflow-x:auto;justify-content:flex-start;}body.bd-legacy-ui .bd-main-nav a,body.bd-legacy-ui .bd-main-nav button{min-width:max-content;}.table{display:block;overflow-x:auto;}}


/* v4.1.761 - final sidebar/original UI correction */
html body.bd-legacy-ui .shell.bd-shell{display:flex!important;align-items:stretch!important;min-height:100vh!important;width:100%!important;background:transparent!important;}
html body.bd-legacy-ui .side.bd-sidebar{position:sticky!important;top:0!important;height:100vh!important;width:250px!important;min-width:250px!important;max-width:250px!important;flex:0 0 250px!important;display:block!important;padding:24px!important;background:#0f172a!important;color:#e5eefb!important;border-right:1px solid rgba(148,163,184,.14)!important;box-shadow:12px 0 34px rgba(2,8,23,.22)!important;overflow:auto!important;z-index:50!important;}
html body.bd-legacy-ui .side.bd-sidebar img{width:160px!important;max-width:160px!important;height:auto!important;margin:0 0 24px 0!important;display:block!important;}
html body.bd-legacy-ui .side.bd-sidebar p.small{color:#9fb3cf!important;margin:0 0 16px!important;}
html body.bd-legacy-ui .side.bd-sidebar a,html body.bd-legacy-ui .side.bd-sidebar button{display:block!important;width:100%!important;box-sizing:border-box!important;color:#dbeafe!important;text-decoration:none!important;background:transparent!important;border:0!important;text-align:left!important;padding:10px 12px!important;border-radius:12px!important;font:inherit!important;font-weight:700!important;cursor:pointer!important;margin:2px 0!important;}
html body.bd-legacy-ui .side.bd-sidebar a:hover,html body.bd-legacy-ui .side.bd-sidebar a.active,html body.bd-legacy-ui .side.bd-sidebar button:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;}
html body.bd-legacy-ui .main.bd-main{flex:1 1 auto!important;min-width:0!important;width:auto!important;padding:0!important;overflow-x:hidden!important;background:transparent!important;}
html body.bd-legacy-ui .app.bd-original-shell{max-width:1320px!important;width:min(100%,1320px)!important;margin:0 auto!important;padding:46px 20px 70px!important;}
html body.bd-legacy-ui .bd-original-brand img{width:190px!important;max-width:190px!important;height:auto!important;}
html body.bd-legacy-ui .bd-original-title{font-size:clamp(2rem,3vw,3rem)!important;}
html body.bd-legacy-ui .bd-main-nav.header{margin-bottom:22px!important;}
html body.bd-legacy-ui .bd-saas-row{margin-bottom:22px!important;}
@media(max-width:900px){html body.bd-legacy-ui .shell.bd-shell{display:block!important;}html body.bd-legacy-ui .side.bd-sidebar{position:relative!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;}html body.bd-legacy-ui .side.bd-sidebar img{width:120px!important;max-width:120px!important;margin:0 10px 0 0!important;}html body.bd-legacy-ui .side.bd-sidebar a,html body.bd-legacy-ui .side.bd-sidebar button{width:auto!important;}}

/* v4.1.762 - klantlogo/dashboard-shell alignment against original WP plugin reference
   UI-only: keep sidebar and all submenus; only align shell/logo/dashboard spacing. */
html body.bd-legacy-ui .app.bd-original-shell{
  width:min(100%,1180px)!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:44px 20px 72px!important;
}
html body.bd-legacy-ui .bd-original-top{
  display:grid!important;
  grid-template-columns:260px minmax(0,1fr) 260px!important;
  align-items:center!important;
  margin:0 auto 16px!important;
}
html body.bd-legacy-ui .bd-original-brand img{
  width:185px!important;
  max-width:185px!important;
}
html body.bd-legacy-ui .bd-original-title{
  text-align:center!important;
  font-size:clamp(2.15rem,3.35vw,3.55rem)!important;
  line-height:.95!important;
  margin:0!important;
}
html body.bd-legacy-ui .bd-main-nav.header{
  width:min(100%,860px)!important;
  margin:0 auto 24px!important;
  min-height:42px!important;
  padding:7px!important;
}
html body.bd-legacy-ui .bd-main-nav a,
html body.bd-legacy-ui .bd-main-nav button{
  min-width:82px!important;
  padding:9px 14px!important;
  font-size:.86rem!important;
}
html body.bd-legacy-ui .bd-saas-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:220px 260px minmax(180px,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  width:min(100%,860px)!important;
  margin:0 auto 22px!important;
  min-height:96px!important;
}
html body.bd-legacy-ui .bd-saas-context-card,
html body.bd-legacy-ui .release-card{
  min-height:80px!important;
  padding:15px 18px!important;
  border-radius:14px!important;
}
html body.bd-legacy-ui .bd-page-customer-logo{
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-height:82px!important;
  padding-right:16px!important;
  text-align:right!important;
}
html body.bd-legacy-ui .bd-page-customer-logo img{
  max-height:76px!important;
  width:auto!important;
  max-width:170px!important;
  object-fit:contain!important;
  display:block!important;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.35))!important;
}
html body.bd-legacy-ui .bd-legacy-content{
  width:min(100%,1060px)!important;
  margin:0 auto!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content{
  width:min(100%,1080px)!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content > .card{
  border-radius:18px!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content > .grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content > .card .grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content .kpi{
  font-size:1.65rem!important;
}
html body.bd-legacy-ui .bd-legacy-content > .card:first-of-type{
  margin-top:8px!important;
}
html body.bd-legacy-ui .bd-legacy-content > .card:first-of-type > div{
  align-items:center!important;
}
html body.bd-legacy-ui .bd-legacy-content > .card:first-of-type form input[type="date"]{
  min-width:150px!important;
}
@media(max-width:1200px){
  html body.bd-legacy-ui .bd-original-top{grid-template-columns:1fr!important;gap:12px!important;text-align:center!important;}
  html body.bd-legacy-ui .bd-original-brand img{margin:0 auto!important;}
  html body.bd-legacy-ui .bd-saas-row{grid-template-columns:1fr 1fr!important;width:min(100%,860px)!important;}
  html body.bd-legacy-ui .bd-page-customer-logo{grid-column:1/-1!important;justify-self:center!important;padding-right:0!important;}
}
@media(max-width:760px){
  html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content > .grid,
  html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content > .card .grid{
    grid-template-columns:1fr!important;
  }
  html body.bd-legacy-ui .bd-main-nav.header{width:100%!important;}
  html body.bd-legacy-ui .bd-saas-row{grid-template-columns:1fr!important;}
}

/* v4.1.763 Dashboard grafieken zoals originele WP-plugin UI */
body.bd-route-dashboard .bd-dashboard-graphs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:22px 0;
}
body.bd-route-dashboard .bd-dashboard-graphs .bd-chart-center{
  grid-column:1 / -1;
  max-width:660px;
  justify-self:center;
  width:100%;
}
body.bd-route-dashboard .bd-chart-card{
  overflow:hidden;
  min-height:310px;
}
body.bd-route-dashboard .bd-chart-card h2{
  margin:0 0 4px 0;
}
body.bd-route-dashboard .bd-svg-chart{
  width:100%;
  height:auto;
  display:block;
  margin-top:10px;
}
body.bd-route-dashboard .bd-chart-grid{
  stroke:rgba(148,163,184,.16);
  stroke-width:1;
}
body.bd-route-dashboard .bd-chart-plan{
  fill:#76a7d8;
  opacity:.82;
}
body.bd-route-dashboard .bd-chart-actual{
  fill:#5ed0a0;
  opacity:.86;
}
body.bd-route-dashboard .bd-chart-line-a,
body.bd-route-dashboard path.bd-chart-line-a{
  fill:none;
  stroke:#5ed0a0;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.bd-route-dashboard .bd-chart-line-b,
body.bd-route-dashboard path.bd-chart-line-b{
  fill:none;
  stroke:#e2b26f;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.bd-route-dashboard .bd-chart-label,
body.bd-route-dashboard .bd-chart-legend text{
  fill:#dbe7f7;
  font-size:12px;
  font-weight:700;
}
body.bd-route-dashboard .bd-svg-hbars .bd-chart-plan{
  fill:#70b6d3;
}
@media(max-width:1100px){
  body.bd-route-dashboard .bd-dashboard-graphs{grid-template-columns:1fr;}
  body.bd-route-dashboard .bd-dashboard-graphs .bd-chart-center{max-width:none;}
}

/* v4.1.764 dashboard original week/calendar selector */
.dashboard-filter-card {
  margin-top: 0;
}
.dashboard-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.dashboard-week-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.dashboard-week-nav {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}
.dashboard-filter-card .input {
  height: 46px;
  min-width: 150px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
}
.dashboard-filter-card .custom-select select {
  height: 46px;
  min-width: 190px;
}
.dashboard-filter-card .btn {
  min-height: 46px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .dashboard-filter-bar,
  .dashboard-week-form,
  .dashboard-week-nav,
  .dashboard-filter-card .bd-filter-field,
  .dashboard-filter-card .custom-select,
  .dashboard-filter-card .custom-select select,
  .dashboard-filter-card .input,
  .dashboard-filter-card .btn {
    width: 100%;
  }
  .dashboard-week-nav { justify-content: stretch; }
}

/* v4.1.767 dashboard chart hover tooltips */
.bd-chart-hover{cursor:help}
.bd-chart-hover:hover{filter:brightness(1.22)}
.bd-chart-line-point-a{fill:#5ed0a0;stroke:#07101f;stroke-width:2}
.bd-chart-line-point-b{fill:#e2b26f;stroke:#07101f;stroke-width:2}


/* v4.1.768 - zijmenu weg, originele shell gecentreerd, klantlogo verder rechts */
html body.bd-legacy-ui .shell.bd-shell{
  display:block!important;
  min-height:100vh!important;
  width:100%!important;
  background:transparent!important;
}
html body.bd-legacy-ui .side.bd-sidebar{
  display:none!important;
}
html body.bd-legacy-ui .main.bd-main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  overflow-x:hidden!important;
  background:transparent!important;
}
html body.bd-legacy-ui .app.bd-original-shell{
  width:min(100%,1220px)!important;
  max-width:1220px!important;
  margin:0 auto!important;
  padding:46px 22px 72px!important;
}
html body.bd-legacy-ui .bd-original-top{
  grid-template-columns:260px minmax(0,1fr) 260px!important;
}
html body.bd-legacy-ui .bd-main-nav.header{
  width:min(100%,980px)!important;
}
html body.bd-legacy-ui .bd-saas-row{
  width:min(100%,1080px)!important;
  grid-template-columns:220px 260px minmax(300px,1fr)!important;
  gap:14px!important;
}
html body.bd-legacy-ui .bd-page-customer-logo{
  justify-self:end!important;
  justify-content:flex-end!important;
  text-align:right!important;
  padding-right:0!important;
  margin-right:18px!important;
  transform:translateX(56px)!important;
}
html body.bd-legacy-ui .bd-page-customer-logo img{
  max-height:82px!important;
  max-width:190px!important;
}
html body.bd-legacy-ui .bd-legacy-content{
  width:min(100%,1080px)!important;
}
html body.bd-legacy-ui.bd-route-dashboard .bd-legacy-content{
  width:min(100%,1080px)!important;
}
@media(max-width:1200px){
  html body.bd-legacy-ui .bd-page-customer-logo{transform:none!important;margin-right:0!important;}
}


/* v4.1.769 beheer/data-inventaris */
.bd-beheer-intro { text-align:left; }
.bd-subnav { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.bd-subnav a { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:999px; background:rgba(15,23,42,.72); border:1px solid rgba(148,163,184,.18); color:var(--text); text-decoration:none; font-weight:800; }
.bd-subnav a:hover { background:rgba(56,189,248,.18); border-color:rgba(56,189,248,.45); }
.bd-beheer-kpis { margin-bottom:18px; }
.bd-status { display:inline-flex; align-items:center; justify-content:center; min-width:82px; padding:5px 10px; border-radius:999px; font-size:.78rem; font-weight:900; }
.bd-status.ok { color:#86efac; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.28); }
.bd-status.warn { color:#fde68a; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.28); }
.bd-status.bad { color:#fecaca; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.28); }
.bd-route-beheer .bd-legacy-content { text-align:left; }
.bd-route-beheer .card { margin-bottom:18px; }
.bd-route-beheer table code { color:#c7d2fe; }

/* v4.1.770 beheer-tabs/read-only oude database inventaris */
.bd-tabnav a.active,
.bd-tabnav a[aria-current="page"]{
  background:linear-gradient(135deg,#22c55e,#38bdf8)!important;
  color:#020617!important;
  border-color:rgba(56,189,248,.65)!important;
  box-shadow:0 12px 30px rgba(56,189,248,.22)!important;
}
.bd-route-beheer .bd-beheer-kpis{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.bd-route-beheer table{font-size:.9rem;}
.bd-route-beheer .card h2{margin-bottom:8px;}

/* v4.1.771 Beheer originele WP-plugin UI restore */
.bd-route-beheer .bd-legacy-content{max-width:1180px;margin:0 auto;padding-bottom:80px}.bd-route-beheer .beheer-card,.bd-route-beheer .beheer-subcard{background:linear-gradient(180deg,rgba(17,24,39,.96),rgba(10,16,31,.98));border:1px solid rgba(100,116,139,.42);border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.28);padding:22px}.bd-route-beheer .beheer-card h2,.bd-route-beheer .beheer-subcard h2{font-size:30px;line-height:1.05;margin:0 0 12px}.bd-route-beheer .beheer-card p,.bd-route-beheer .beheer-subcard p{color:#b8c4d8}.bd-route-beheer .beheer-subtabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:max-content;max-width:100%;padding:8px;border:1px solid rgba(100,116,139,.45);border-radius:999px;background:rgba(15,23,42,.78);margin-top:20px}.bd-route-beheer .bd-subtab{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 18px;border-radius:999px;color:#b8c4d8;text-decoration:none;font-weight:900;font-size:13px}.bd-route-beheer .bd-subtab.active{background:linear-gradient(135deg,#67e8f9,#2f80ed);color:#06111f;box-shadow:0 12px 30px rgba(56,189,248,.28)}.bd-route-beheer .bd-subtab:not(.active):hover{background:rgba(148,163,184,.12);color:#fff}.bd-route-beheer .bd-staff-eyebrow{display:inline-flex;align-items:center;border-radius:999px;background:rgba(14,165,233,.18);border:1px solid rgba(56,189,248,.4);color:#7dd3fc;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900;padding:5px 10px;margin-bottom:10px}.bd-route-beheer .bd-staff-muted,.bd-route-beheer .beheer-subtle{color:#b8c4d8;font-size:14px}.bd-route-beheer .bd-staff-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.bd-route-beheer .bd-saas-customer-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.bd-route-beheer .bd-saas-kpi{background:rgba(3,7,18,.55);border:1px solid rgba(100,116,139,.36);border-radius:16px;text-align:center;padding:16px}.bd-route-beheer .bd-saas-kpi span{display:block;color:#94a3b8;font-weight:800;font-size:12px}.bd-route-beheer .bd-saas-kpi strong{display:block;margin-top:6px;font-size:22px;color:#fff}.bd-route-beheer .beheer-mini-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0 22px}.bd-route-beheer .beheer-form{background:rgba(3,7,18,.45);border:1px solid rgba(100,116,139,.36);border-radius:16px;padding:16px;margin:12px 0 20px}.bd-route-beheer .beheer-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bd-route-beheer .beheer-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-route-beheer .beheer-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.bd-route-beheer .beheer-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.bd-route-beheer label span{display:block;color:#b8c4d8;font-size:12px;font-weight:900;margin:0 0 7px}.bd-route-beheer input,.bd-route-beheer select,.bd-route-beheer textarea{width:100%;box-sizing:border-box;background:#030712;border:1px solid rgba(100,116,139,.48);border-radius:9px;color:#fff;font-weight:800;padding:11px 12px}.bd-route-beheer textarea{min-height:92px}.bd-route-beheer .btn,.bd-route-beheer button.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:linear-gradient(135deg,#38bdf8,#2563eb);color:#07111f;font-weight:900;padding:11px 18px;box-shadow:0 14px 30px rgba(37,99,235,.22);cursor:pointer}.bd-route-beheer .btn-danger{background:linear-gradient(135deg,#fb7185,#ef4444);color:#fff}.bd-route-beheer .btn-mini{font-size:12px;padding:7px 10px;margin-top:6px}.bd-route-beheer .beheer-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bd-route-beheer .table-wrap{overflow:auto}.bd-route-beheer table{width:100%;border-collapse:collapse;background:rgba(3,7,18,.35);border-radius:14px;overflow:hidden}.bd-route-beheer th,.bd-route-beheer td{border-bottom:1px solid rgba(100,116,139,.28);padding:12px;text-align:left;color:#dbeafe;vertical-align:top}.bd-route-beheer th{font-weight:900;color:#fff;font-size:12px}.bd-route-beheer .bd-rights-group{border:1px solid rgba(100,116,139,.34);border-radius:14px;padding:14px;margin:12px 0;background:rgba(15,23,42,.6)}.bd-route-beheer .bd-rights-group h4{margin:0 0 6px;color:#fff}.bd-route-beheer .bd-rights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bd-route-beheer .bd-rights-grid label{border:1px solid rgba(100,116,139,.32);border-radius:10px;padding:10px;background:rgba(3,7,18,.35);font-weight:800;color:#dbeafe}.bd-route-beheer .beheer-logo-row{display:flex;align-items:end;gap:18px;margin-top:14px}.bd-route-beheer .beheer-logo-row img{width:150px;height:auto;display:block;background:rgba(15,23,42,.9);border:1px solid rgba(100,116,139,.36);border-radius:12px;padding:10px}.bd-route-beheer .bd-main-nav{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:8px;max-width:980px}.bd-route-beheer .bd-main-nav a,.bd-route-beheer .bd-main-nav button{white-space:nowrap}.bd-route-beheer .bd-nav-logout{display:inline-flex;margin:0}.bd-route-beheer .bd-nav-logout button{background:transparent!important;border:0!important;box-shadow:none!important;color:#b8c4d8!important;padding:0 14px!important;border-radius:999px!important;height:34px!important}
@media(max-width:900px){.bd-route-beheer .beheer-form-grid,.bd-route-beheer .beheer-form-grid.two,.bd-route-beheer .beheer-form-grid.three,.bd-route-beheer .beheer-form-grid.four,.bd-route-beheer .beheer-two-col,.bd-route-beheer .bd-saas-customer-dashboard,.bd-route-beheer .beheer-mini-kpis{grid-template-columns:1fr}.bd-route-beheer .bd-staff-card-head{display:block}.bd-route-beheer .bd-rights-grid{grid-template-columns:1fr}.bd-route-beheer .beheer-subtabs{border-radius:18px;width:100%;}.bd-route-beheer .bd-subtab{flex:1 1 140px}.bd-route-beheer .bd-main-nav{flex-wrap:wrap}}

/* v4.1.772 readonly legacy data badges */
.bd-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(97,211,255,.45);background:rgba(97,211,255,.12);color:#bfefff;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;white-space:nowrap}.bd-pill-warn{border-color:rgba(255,180,80,.45);background:rgba(255,180,80,.12);color:#ffd89d}.beheer-subcard code{color:#d7f7ff;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:2px 5px}

/* v4.1.774 beheer rollen acties */
.bd-notice{margin-top:18px;padding:12px 16px;border:1px solid rgba(90,208,160,.35);border-radius:14px;background:rgba(90,208,160,.10);color:#dfffee;font-weight:800}
.bd-notice-error{border-color:rgba(255,96,120,.45);background:rgba(255,96,120,.12);color:#ffd7de}
.bd-notice-success{border-color:rgba(90,208,160,.55);background:rgba(90,208,160,.16);color:#e6fff2}
.bd-rights-group-toggle{margin-right:8px}

/* v4.2.003 clean Productieplan/Verloning route views */
.plan-tabs{display:flex;justify-content:center;gap:28px;align-items:center;margin:10px auto 18px;max-width:1280px;padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:22px;background:rgba(15,23,42,.68)}
.plan-tabs a{display:inline-flex;align-items:center;justify-content:center;min-width:150px;padding:12px 22px;border-radius:999px;color:#dbeafe;text-decoration:none;font-weight:800}
.plan-tabs a.active{background:linear-gradient(90deg,#38bdf8,#2563eb);color:#020617;box-shadow:0 12px 32px rgba(37,99,235,.35)}
.plan-filter-card{max-width:1280px;margin:0 auto 18px;padding:18px}
.plan-filter-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.center-title{text-align:center;margin:26px 0 18px;font-size:30px}
.metric-grid{max-width:1280px;margin:0 auto 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric-card{padding:18px;border-radius:18px;border:1px solid rgba(148,163,184,.20);background:rgba(15,23,42,.68)}
.metric-card strong{display:block;margin-top:8px;font-size:22px;color:#f8fafc}
.data-card{max-width:1280px;margin:0 auto 26px;padding:18px}
.table-scroll{overflow:auto;max-width:100%}
.data-table{width:100%;border-collapse:collapse;font-size:14px}
.data-table th,.data-table td{border-bottom:1px solid rgba(148,163,184,.16);padding:10px 12px;text-align:left;white-space:nowrap}
.data-table th{color:#f8fafc;background:rgba(15,23,42,.55)}
.empty-row{text-align:center;padding:28px!important}
.note-line{margin:14px 0 0}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-tabs{gap:8px}.plan-tabs a{min-width:0}}

/* v4.2.006 Productieplan: WP718 stuks/% layout */
.productie-page-title{font-size:30px;line-height:1.15;text-align:center;margin:22px 0 18px;font-weight:900;color:#f8fafc;}
.productie-percentage-table th,.productie-percentage-table td{white-space:nowrap;text-align:center;}
.productie-percentage-table th:first-child,.productie-percentage-table td:first-child{text-align:left;min-width:180px;}
.productie-percentage-table .pct-cell{color:#b6c3d6;font-weight:800;font-size:.92em;}
.productie-percentage-table .total-row th,.productie-percentage-table .total-row td{font-weight:900;background:rgba(6,182,212,.08);}
.productie-category-overview-card,.productie-detail-card{max-width:1280px;margin-left:auto;margin-right:auto;}
.productie-category-overview-card .table-scroll,.productie-detail-card .table-scroll{overflow:auto;}
.productie-product-table td .mp-input.productie-product-input{min-width:64px;max-width:96px;}
.grid.kpi.four{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:1100px){.grid.kpi.four{grid-template-columns:repeat(2,minmax(0,1fr));}.productie-percentage-table th:first-child,.productie-percentage-table td:first-child{min-width:150px;}}

/* v4.2.007 Productieplan WP718 productverdeling-first */
.productie-tabs-wp718{max-width:980px;margin:0 auto 18px auto;}
.productie-tabs-wp718 a{min-width:260px;text-align:center;}
.productie-intro-wp718{margin:0 auto 18px auto;max-width:1280px;padding:24px 28px;}
.productie-intro-wp718 h2{margin:0 0 12px;font-size:30px;line-height:1.12;}
.productie-intro-wp718 p{max-width:720px;color:#aab8c9;font-size:16px;line-height:1.55;margin:0;}
.productie-filter-wp718{max-width:1280px;margin:0 auto 18px auto;padding:24px 28px;}
.productie-filter-grid-wp718{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;align-items:end;}
.productie-filter-actions-wp718{margin-top:22px;display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
.productie-kpi-wp718{max-width:1280px;margin:0 auto 28px auto;grid-template-columns:1fr 1fr 1fr;}
.productie-kpi-wp718 .card{min-height:92px;}
.productie-progress-card p{margin:8px 0;font-size:16px;}
.productie-detail-card-wp718{max-width:1280px;margin:0 auto 24px auto;padding:24px 28px;}
.productie-detail-card-wp718 h2{font-size:30px;margin:0 0 8px;}
.productie-detail-card-wp718 .productie-mix-sub{color:#aab8c9;margin:0 0 18px;line-height:1.45;}
.productie-product-table-wp718{min-width:1120px;}
.productie-product-table-wp718 th:first-child,.productie-product-table-wp718 tbody th{width:230px!important;min-width:230px!important;text-align:left;}
.productie-product-table-wp718 td{text-align:center;min-width:120px;}
.productie-product-table-wp718 .mp-input{width:96px;max-width:110px;margin:0 auto;text-align:center;}
.productie-category-overview-wp718{max-width:1280px;margin:0 auto 24px auto;padding:24px 28px;}
.productie-category-overview-wp718 h3{font-size:26px;margin:0 0 10px;}
.productie-category-overview-wp718 .productie-mix-sub{color:#aab8c9;margin:0 0 14px;}
.productie-category-overview-wp718 .active-row th,.productie-category-overview-wp718 .active-row td{background:rgba(56,189,248,.08);}
@media (max-width: 980px){.productie-filter-grid-wp718,.productie-kpi-wp718{grid-template-columns:1fr}.productie-tabs-wp718{display:grid;grid-template-columns:1fr}.productie-tabs-wp718 a{min-width:0}.productie-intro-wp718,.productie-filter-wp718,.productie-detail-card-wp718,.productie-category-overview-wp718{max-width:100%;}}

/* v4.2.008 Productieplan UI WP718: geen onderliggend categorie-overzicht, geen horizontale scrollbar */
html body.bd-legacy-ui.bd-route-productieplan .app.bd-original-shell{
  width:min(100%,1640px)!important;
  max-width:1640px!important;
  padding-left:clamp(18px,2.2vw,40px)!important;
  padding-right:clamp(18px,2.2vw,40px)!important;
}
html body.bd-legacy-ui.bd-route-productieplan .bd-legacy-content{
  width:min(100%,1540px)!important;
  max-width:1540px!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-category-overview-card,
html body.bd-legacy-ui.bd-route-productieplan .productie-category-overview-wp718{
  display:none!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .masterplan-table-wrap,
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .table-scroll{
  overflow-x:hidden!important;
  width:100%!important;
  max-width:100%!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table thead th:first-child,
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table tbody th{
  width:210px!important;
  min-width:210px!important;
  max-width:210px!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table th,
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table td{
  padding-left:8px!important;
  padding-right:8px!important;
  font-size:.92rem!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table td .mp-input.productie-product-input{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:38px!important;
  padding-left:6px!important;
  padding-right:6px!important;
  text-align:center!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table th:last-child,
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table td:last-child{
  width:74px!important;
}
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table th:nth-last-child(2),
html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table td:nth-last-child(2){
  width:92px!important;
}
@media(max-width:1280px){
  html body.bd-legacy-ui.bd-route-productieplan .app.bd-original-shell{max-width:100vw!important;width:100%!important;padding-left:12px!important;padding-right:12px!important;}
  html body.bd-legacy-ui.bd-route-productieplan .bd-legacy-content{max-width:100%!important;width:100%!important;}
  html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table thead th:first-child,
  html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table tbody th{width:170px!important;min-width:170px!important;max-width:170px!important;}
  html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table th,
  html body.bd-legacy-ui.bd-route-productieplan .productie-detail-card .productie-product-table td{font-size:.82rem!important;padding-left:5px!important;padding-right:5px!important;}
}


/* v4.3.025 recepturen ingredient matches visible */
.rb-app .rb-visible-ingredient-results,
.rb-visible-ingredient-results {
  background: rgba(2, 6, 23, 0.98) !important;
  border: 1px solid rgba(56, 189, 248, 0.34) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  margin-top: 10px !important;
}
.rb-app .rb-visible-ingredient-match,
.rb-visible-ingredient-match {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035) !important;
}
.rb-app .rb-visible-ingredient-match:hover,
.rb-visible-ingredient-match:hover,
.rb-app .rb-visible-ingredient-match.is-selected,
.rb-visible-ingredient-match.is-selected {
  border-color: rgba(56, 189, 248, 0.70) !important;
  background: rgba(15, 23, 42, 1) !important;
}
.rb-app .rb-visible-ingredient-match .rb-inline-suggestion-title,
.rb-visible-ingredient-match .rb-inline-suggestion-title,
.rb-app .rb-match,
.rb-match {
  color: #f8fafc !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}
.rb-app .rb-visible-ingredient-match .rb-inline-suggestion-meta,
.rb-visible-ingredient-match .rb-inline-suggestion-meta,
.rb-app .rb-match .rb-muted,
.rb-match .rb-muted {
  color: #cbd5e1 !important;
  opacity: 1 !important;
  font-weight: 750 !important;
}


/* v4.3.026 Recepturen: make ingredient match cards readable and selectable */
.rb-app .rb-inline-ingredient-results,
.rb-app .rb-visible-ingredient-results {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
.rb-app .rb-inline-ingredient-results .rb-match,
.rb-app .rb-visible-ingredient-results .rb-match,
.rb-app .rb-visible-ingredient-match,
.rb-app button.rb-match {
  background: #0b1628 !important;
  border: 1px solid rgba(96, 165, 250, .46) !important;
  color: #e5edf8 !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 10px 26px rgba(2, 8, 23, .28) !important;
}
.rb-app .rb-inline-ingredient-results .rb-match strong,
.rb-app .rb-visible-ingredient-results .rb-match strong,
.rb-app .rb-visible-ingredient-match strong,
.rb-app button.rb-match strong {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 950 !important;
}
.rb-app .rb-inline-ingredient-results .rb-match span,
.rb-app .rb-visible-ingredient-results .rb-match span,
.rb-app .rb-visible-ingredient-match span,
.rb-app button.rb-match span,
.rb-app .rb-inline-ingredient-results .rb-muted,
.rb-app .rb-visible-ingredient-results .rb-muted {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}
.rb-app .rb-inline-ingredient-results .rb-match:hover,
.rb-app .rb-visible-ingredient-results .rb-match:hover,
.rb-app button.rb-match:hover {
  background: #10213a !important;
  border-color: rgba(56, 189, 248, .90) !important;
}
/* v4.3.031 Upload WP718 UI */
.up-wp718{max-width:1600px;margin:0 auto 80px;padding:0 28px}.up-card{background:rgba(15,23,42,.86);border:1px solid rgba(148,163,184,.20);border-radius:22px;padding:28px;margin:26px 0;box-shadow:0 24px 70px rgba(0,0,0,.20)}.up-card h2{margin:0 0 14px;font-size:30px;line-height:1.1}.up-card p,.up-source-hint,.muted{color:#a8b3c7}.up-upload-form{margin-top:22px}.up-form-grid{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:22px;align-items:end}.up-form-grid label{display:block;font-weight:800;color:#cbd5e1}.up-form-grid label span{display:block;margin-bottom:8px}.up-form-grid select,.up-form-grid input[type=file]{width:100%;min-height:52px;border:1px solid rgba(148,163,184,.25);background:#020817;color:#f8fafc;border-radius:12px;padding:12px 16px;font-weight:800}.up-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}.up-wp718 .btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:14px 22px;font-weight:900;text-decoration:none;cursor:pointer}.up-wp718 .btn.primary{background:#2ea7ff;color:#02111f}.up-wp718 .btn.secondary{background:#334155;color:#f8fafc}.up-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.up-source-card,.up-status-grid>div{background:#0b1222;border:1px solid rgba(148,163,184,.18);border-radius:16px;padding:18px}.up-source-title{font-size:18px;font-weight:900;color:#f8fafc}.up-source-value{margin-top:10px;font-size:20px;font-weight:900;color:#e2e8f0}.up-source-hint{margin-top:8px;font-size:14px}.up-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.up-status-grid strong{display:block;color:#f8fafc}.up-status-grid span{display:block;margin-top:8px;color:#cbd5e1}.up-table-wrap{overflow-x:auto}.up-table{width:100%;border-collapse:collapse;min-width:900px}.up-table th,.up-table td{padding:14px 16px;border-bottom:1px solid rgba(148,163,184,.15);text-align:left}.up-table th{color:#f8fafc;font-weight:900}.up-table td{color:#dbe4f0}.up-notice{border-radius:14px;padding:14px 18px;margin:18px 0;font-weight:900}.up-success{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.4);color:#bbf7d0}.up-error{background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.4);color:#fecaca}@media(max-width:1100px){.up-form-grid,.up-source-grid,.up-status-grid{grid-template-columns:1fr}.up-wp718{padding:0 16px}}


/* v4.3.249 layout consistency: one safe centered page grid, no data/save logic */
body.bd-legacy-ui .main.bd-main {
  overflow-x: hidden !important;
}

body.bd-legacy-ui .app.bd-original-shell {
  width: min(100%, 1640px) !important;
  max-width: 1640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(18px, 3vw, 44px) !important;
  padding-right: clamp(18px, 3vw, 44px) !important;
  box-sizing: border-box !important;
}

body.bd-legacy-ui .bd-original-top,
body.bd-legacy-ui .header.bd-main-nav,
body.bd-legacy-ui .bd-saas-row,
body.bd-legacy-ui .bd-legacy-content {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.bd-legacy-ui .bd-original-top {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
}

body.bd-legacy-ui .header.bd-main-nav {
  width: fit-content !important;
  max-width: min(100%, 1320px) !important;
}

body.bd-legacy-ui .bd-saas-row {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 340px) minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
}

body.bd-legacy-ui .bd-saas-context-card,
body.bd-legacy-ui .release-card {
  width: 100% !important;
  min-width: 0 !important;
}

body.bd-legacy-ui .bd-page-customer-logo {
  justify-self: end !important;
}

body.bd-legacy-ui .bd-legacy-content {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  text-align: left !important;
}

body.bd-legacy-ui .bd-legacy-content > .card,
body.bd-legacy-ui .bd-legacy-content > section,
body.bd-legacy-ui .bd-legacy-content > form,
body.bd-legacy-ui .bd-legacy-content > .grid,
body.bd-legacy-ui .bd-legacy-content > .data-table,
body.bd-legacy-ui .bd-legacy-content > .masterplan-card,
body.bd-legacy-ui .bd-legacy-content > .masterplan-invoer-view,
body.bd-legacy-ui .bd-legacy-content > .masterplan-view {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Wide data modules get a wider centered canvas, while smaller modules stay calm. */
body.bd-legacy-ui.bd-route-masterplan .bd-legacy-content,
body.bd-legacy-ui.bd-route-productieplan .bd-legacy-content,
body.bd-legacy-ui.bd-route-roosters .bd-legacy-content,
body.bd-legacy-ui.bd-route-rapportages .bd-legacy-content,
body.bd-legacy-ui.bd-route-verloning .bd-legacy-content {
  width: min(100%, 1540px) !important;
  max-width: 1540px !important;
}

/* Keep module cards visually aligned with the shared canvas. */
body.bd-legacy-ui .card,
body.bd-legacy-ui .panel,
body.bd-legacy-ui .table-card,
body.bd-legacy-ui .masterplan-card,
body.bd-legacy-ui .masterplan-invoer-filter,
body.bd-legacy-ui .up-card,
body.bd-legacy-ui .rb-card {
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Masterplan: centered tables with consistent cells. */
body.bd-legacy-ui.bd-route-masterplan .masterplan-invoer-view,
body.bd-legacy-ui.bd-route-masterplan .masterplan-view {
  width: 100% !important;
  max-width: 1540px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-invoer-view h2,
body.bd-legacy-ui.bd-route-masterplan .masterplan-view h2,
body.bd-legacy-ui.bd-route-masterplan .masterplan-card h3 {
  text-align: center !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table-wrap {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table {
  width: 100% !important;
  table-layout: fixed !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table th,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table tbody th,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table thead th:first-child {
  text-align: left !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table .mp-input,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table input,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table select {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Main planning table fits the shared canvas. Category table may scroll only when truly needed. */
body.bd-legacy-ui.bd-route-masterplan .masterplan-table-invoer:not(.masterplan-table-invoer-categories),
body.bd-legacy-ui.bd-route-masterplan .masterplan-table:not(.masterplan-table-categories) {
  min-width: 0 !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table-invoer-categories,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table-categories {
  min-width: 1180px !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table-invoer-categories td,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table-categories td {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

body.bd-legacy-ui.bd-route-masterplan .masterplan-table-invoer-categories .mp-input,
body.bd-legacy-ui.bd-route-masterplan .masterplan-table-categories .mp-input {
  max-width: 64px !important;
  min-width: 0 !important;
}

/* On normal desktop widths, keep consistent side padding and avoid left-floating pages. */
@media (max-width: 1200px) {
  body.bd-legacy-ui .bd-saas-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  body.bd-legacy-ui .bd-page-customer-logo {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  body.bd-legacy-ui .app.bd-original-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.bd-legacy-ui .bd-saas-row {
    grid-template-columns: 1fr !important;
  }
  body.bd-legacy-ui .header.bd-main-nav {
    width: 100% !important;
  }
}
