.sbdp-vendor-portal {
    --sbdp-border: var(--ui-color-border);
    --sbdp-border-soft: var(--ui-color-border);
    --sbdp-text: var(--ui-color-text);
    --sbdp-muted: var(--ui-color-text-muted);
    --sbdp-bg: var(--ui-color-surface);
    --sbdp-bg-soft: var(--ui-color-surface-2);
    --sbdp-primary: var(--ui-color-primary);
    --sbdp-primary-dark: var(--ui-color-primary-hover);
    --sbdp-accent: var(--ui-color-primary);
    --sbdp-success: var(--ui-color-success);
    --sbdp-warning: var(--ui-color-warning);
    --sbdp-error: var(--ui-color-danger);
    --sbdp-radius: 10px;
    --sbdp-radius-sm: 6px;
    --sbdp-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
    border: 1px solid var(--sbdp-border);
    border-radius: var(--sbdp-radius);
    padding: 24px;
    max-width: 860px;
    background: var(--sbdp-bg);
    color: var(--sbdp-text);
    box-shadow: var(--sbdp-shadow);
}

.sbdp-vendor-portal__login,
.sbdp-vendor-portal__dashboard {
    display: grid;
    gap: 20px;
}

.sbdp-vendor-portal__field {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--sbdp-text);
}

.sbdp-vendor-portal__field span {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sbdp-vendor-portal__login input {
    padding: 12px;
    border: 1px solid var(--sbdp-border);
    border-radius: var(--sbdp-radius-sm);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sbdp-vendor-portal__login input:focus {
    outline: none;
    border-color: var(--sbdp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.sbdp-vendor-portal__button {
    background: var(--sbdp-primary);
    color: var(--ui-color-primary-contrast);
    border: none;
    border-radius: var(--sbdp-radius-sm);
    padding: 11px 20px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.sbdp-vendor-portal__button:hover {
    background: var(--sbdp-primary-dark);
}

.sbdp-vendor-portal__button:active {
    transform: translateY(1px);
}

.sbdp-vendor-portal__button--ghost {
    background: transparent;
    border: 1px solid var(--sbdp-border);
    color: var(--sbdp-text);
}

.sbdp-vendor-portal__button--ghost:hover {
    border-color: var(--sbdp-primary);
    color: var(--sbdp-primary);
}

.sbdp-vendor-portal__hint {
    font-size: 13px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__error {
    font-size: 13px;
    color: var(--sbdp-error);
    background: color-mix(in srgb, var(--ui-color-danger) 10%, var(--ui-color-surface));
    border-radius: var(--sbdp-radius-sm);
    padding: 10px 12px;
}

.sbdp-vendor-portal__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.sbdp-vendor-portal__subheading {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sbdp-vendor-portal__vendor {
    border: 1px solid var(--sbdp-border-soft);
    border-radius: var(--sbdp-radius-sm);
    padding: 16px;
    background: var(--sbdp-bg-soft);
    display: grid;
    gap: 6px;
}

.sbdp-vendor-portal__vendor-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--sbdp-text);
}

.sbdp-vendor-portal__vendor-status {
    margin: 0;
    font-size: 14px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__vendor-contact {
    margin: 0;
    font-size: 14px;
    color: var(--sbdp-text);
}

.sbdp-vendor-portal__alerts {
    min-height: 1px;
}

.sbdp-vendor-portal__notice {
    border-radius: var(--sbdp-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid transparent;
}

.sbdp-vendor-portal__notice--info {
    background: color-mix(in srgb, var(--ui-color-primary) 10%, var(--ui-color-surface));
    border-color: color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
    color: var(--ui-color-primary);
}

.sbdp-vendor-portal__notice--success {
    background: color-mix(in srgb, var(--ui-color-success) 10%, var(--ui-color-surface));
    border-color: color-mix(in srgb, var(--ui-color-success) 32%, transparent);
    color: var(--ui-color-success);
}

.sbdp-vendor-portal__notice--error {
    background: color-mix(in srgb, var(--ui-color-danger) 10%, var(--ui-color-surface));
    border-color: color-mix(in srgb, var(--ui-color-danger) 32%, transparent);
    color: var(--ui-color-danger);
}

.sbdp-vendor-portal__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.sbdp-vendor-portal__kpi {
    background: var(--sbdp-bg);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--sbdp-radius);
    padding: 18px 20px;
    display: grid;
    gap: 6px;
}

.sbdp-vendor-portal__kpi h3 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__kpi p {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--sbdp-text);
}

.sbdp-vendor-portal__kpi span {
    font-size: 12px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    border: 1px solid var(--sbdp-border-soft);
    border-radius: var(--sbdp-radius);
    padding: 16px;
    background: var(--sbdp-bg-soft);
}

.sbdp-vendor-portal__filter-group {
    display: grid;
    gap: 6px;
    min-width: 180px;
    flex: 1 1 200px;
}

.sbdp-vendor-portal__filter-group span {
    font-size: 13px;
    font-weight: 600;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__filters input,
.sbdp-vendor-portal__filters select {
    padding: 10px 12px;
    border: 1px solid var(--sbdp-border);
    border-radius: var(--sbdp-radius-sm);
    font-size: 14px;
}

.sbdp-vendor-portal__google {
    border: 1px solid var(--sbdp-border-soft);
    border-radius: var(--sbdp-radius);
    padding: 18px;
    display: grid;
    gap: 10px;
    background: var(--sbdp-bg);
}

.sbdp-vendor-portal__google header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sbdp-vendor-portal__badge {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.sbdp-vendor-portal__badge--success {
    background: color-mix(in srgb, var(--sbdp-success) 12%, var(--sbdp-bg));
    border-color: color-mix(in srgb, var(--sbdp-success) 28%, transparent);
    color: var(--sbdp-success);
}

.sbdp-vendor-portal__badge--warning {
    background: color-mix(in srgb, var(--sbdp-warning) 12%, var(--sbdp-bg));
    border-color: color-mix(in srgb, var(--sbdp-warning) 32%, transparent);
    color: var(--sbdp-warning);
}

.sbdp-vendor-portal__badge--error {
    background: rgba(185, 28, 28, 0.16);
    border-color: rgba(185, 28, 28, 0.38);
    color: var(--ui-color-danger);
}

.sbdp-vendor-portal__badge--neutral {
    background: color-mix(in srgb, var(--sbdp-primary) 12%, var(--sbdp-bg));
    border-color: color-mix(in srgb, var(--sbdp-primary) 24%, transparent);
    color: var(--sbdp-primary-dark);
}

.sbdp-vendor-portal__google-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sbdp-vendor-portal__google-meta {
    font-size: 13px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sbdp-vendor-portal__schedule {
    border: 1px solid var(--sbdp-border-soft);
    border-radius: var(--sbdp-radius);
    padding: 18px;
    display: grid;
    gap: 16px;
    background: var(--sbdp-bg-soft);
}

.sbdp-vendor-portal__schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.sbdp-vendor-portal__schedule-header span {
    font-size: 13px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__table-wrapper {
    overflow-x: auto;
    border-radius: var(--sbdp-radius-sm);
    background: var(--sbdp-bg);
}

.sbdp-vendor-portal__schedule table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 14px;
}

.sbdp-vendor-portal__schedule th,
.sbdp-vendor-portal__schedule td {
    border-bottom: 1px solid var(--sbdp-border-soft);
    padding: 12px 10px;
    text-align: left;
}

.sbdp-vendor-portal__schedule th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sbdp-muted);
    background: var(--sbdp-bg-soft);
}

[data-sbdp-placeholder] td {
    text-align: center;
    color: var(--sbdp-muted);
    padding: 20px;
}

.sbdp-vendor-portal__cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sbdp-vendor-portal__card {
    background: var(--sbdp-bg);
    border-radius: var(--sbdp-radius);
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--sbdp-border-soft);
    box-shadow: var(--sbdp-shadow);
}

.sbdp-vendor-portal__card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sbdp-vendor-portal__card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sbdp-vendor-portal__card header span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.sbdp-vendor-portal__card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__card li strong {
    color: var(--sbdp-text);
    min-width: 120px;
}

.sbdp-vendor-portal__card-empty {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--sbdp-muted);
    border: 1px dashed var(--sbdp-border);
    border-radius: var(--sbdp-radius-sm);
}

.sbdp-vendor-portal__loading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--sbdp-muted);
}

.sbdp-vendor-portal__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.18);
    border-top-color: var(--sbdp-primary);
    animation: sbdp-spin 0.8s linear infinite;
}

.is-loading .sbdp-vendor-portal__badge {
    opacity: 0.6;
}

.is-loading .sbdp-vendor-portal__button {
    pointer-events: none;
    opacity: 0.6;
}

.sbdp-vendor-portal__schedule[data-sbdp-view="cards"] .sbdp-vendor-portal__table-wrapper {
    display: none;
}

.sbdp-vendor-portal__schedule[data-sbdp-view="cards"] [data-sbdp-cards] {
    display: grid;
}

.sbdp-vendor-portal__schedule[data-sbdp-view="table"] [data-sbdp-cards] {
    display: none;
}

.sbdp-vendor-portal__schedule[data-sbdp-view="cards"] .sbdp-vendor-portal__schedule-header span::before {
    content: '- ';
}

@keyframes sbdp-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 920px) {
    .sbdp-vendor-portal {
        padding: 18px;
    }

    .sbdp-vendor-portal__filters {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .sbdp-vendor-portal__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sbdp-vendor-portal__header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sbdp-vendor-portal__card li {
        flex-direction: column;
        gap: 4px;
    }

    .sbdp-vendor-portal__card li strong {
        min-width: auto;
    }

    .sbdp-vendor-portal__schedule[data-sbdp-view="table"] .sbdp-vendor-portal__table-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 540px) {
    .sbdp-vendor-portal__kpis {
        grid-template-columns: 1fr;
    }

    .sbdp-vendor-portal__filters input,
    .sbdp-vendor-portal__filters select {
        width: 100%;
    }

    .sbdp-vendor-portal__google-actions,
    .sbdp-vendor-portal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sbdp-vendor-portal__button {
        width: 100%;
    }
}




/* =========================================================
   Dietary per-guest detail styles
   ========================================================= */
.sbdp-dietary-guest-list {
    margin: .75rem 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sbdp-dietary-guest-row {
    padding: .6rem .8rem;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border-left: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .85rem;
}

.sbdp-dietary-guest-row.severity--low   { border-color: #a3c4a0; }
.sbdp-dietary-guest-row.severity--medium{ border-color: #e6b940; }
.sbdp-dietary-guest-row.severity--high  { border-color: #e05252; }

.sbdp-dietary-guest-row strong {
    font-size: .9rem;
    color: var(--ddb-gold, #c9a84c);
}

.sbdp-dietary-allergens,
.sbdp-dietary-severity,
.sbdp-dietary-menu {
    color: rgba(255,255,255,.7);
}

.sbdp-dietary-severity--high { color: #e05252; font-weight: 600; }
.sbdp-dietary-notes {
    color: rgba(255,255,255,.55);
    font-style: italic;
    margin: 0;
}

.sbdp-dietary-reject-form {
    margin-top: .75rem;
    padding: .75rem;
    background: rgba(224, 82, 82, .07);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sbdp-dietary-reject-form label {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

.sbdp-vendor-portal__reject-note {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    color: #fff;
    padding: .5rem;
    font-size: .85rem;
    resize: vertical;
}

.sbdp-vendor-portal__button--danger {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.sbdp-vendor-portal__button--danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Mijn Boekingen shortcode table */
.sbdp-account-bookings { max-width: 900px; margin: 2rem auto; }
.sbdp-account-bookings__table-wrapper { overflow-x: auto; }
.sbdp-account-bookings__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.sbdp-account-bookings__table th,
.sbdp-account-bookings__table td {
    padding: .6rem .8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sbdp-account-bookings__table th { color: rgba(255,255,255,.55); font-weight: 600; }
.sbdp-status { display: inline-block; padding: .2rem .5rem; border-radius: 4px; font-size: .78rem; font-weight: 600; }
.sbdp-status--paid { background: rgba(0,180,90,.15); color: #00b45a; }
.sbdp-status--pending { background: rgba(230,185,64,.15); color: #e6b940; }
.sbdp-status--cancelled { background: rgba(224,82,82,.15); color: #e05252; }

/* Premium canon override — management / portal family */
.sbdp-vendor-portal,
.sbdp-account-bookings {
    background: #0a0a0a;
    border: 1px solid color-mix(in srgb, var(--ui-color-border) 92%, transparent);
    border-radius: var(--ui-radius-section);
    box-shadow: var(--ui-shadow-sm);
    max-width: 1100px;
    color: var(--ui-color-text);
}

body.page-id-1638,
body.page-id-1638 .elementor-1638,
body.page-id-1638 .elementor-292 {
    background: transparent;
    color: var(--ui-color-text);
}

.sbdp-vendor-portal {
    padding: 24px;
}

.sbdp-vendor-portal__vendor,
.sbdp-vendor-portal__filters,
.sbdp-vendor-portal__google,
.sbdp-vendor-portal__schedule,
.sbdp-vendor-portal__kpi,
.sbdp-vendor-portal__table-wrapper,
.sbdp-account-bookings__table-wrapper {
    background: #101010;
    border: 1px solid color-mix(in srgb, var(--ui-color-border) 92%, transparent);
    border-radius: var(--ui-radius-lg);
}

.sbdp-vendor-portal input:not([type="checkbox"]):not([type="radio"]),
.sbdp-vendor-portal select,
.sbdp-vendor-portal textarea,
.sbdp-account-bookings input:not([type="checkbox"]):not([type="radio"]),
.sbdp-account-bookings select,
.sbdp-account-bookings textarea {
    background: #101010 !important;
    color: var(--ui-color-text) !important;
    border: 1px solid color-mix(in srgb, var(--ui-color-border) 92%, transparent) !important;
    border-radius: var(--ui-radius-lg);
}

.sbdp-vendor-portal__button {
    background: var(--ui-color-cta);
    color: var(--ui-color-cta-contrast);
    border: 1px solid var(--ui-color-cta);
    border-radius: var(--ui-radius-lg);
}

.sbdp-vendor-portal__button:hover {
    background: var(--ui-color-cta-hover);
    border-color: var(--ui-color-cta-hover);
}

.sbdp-vendor-portal__button--ghost {
    background: color-mix(in srgb, var(--ui-color-surface) 96%, transparent);
    border-color: color-mix(in srgb, var(--ui-color-border) 88%, transparent);
    color: var(--ui-color-text);
}

.sbdp-vendor-portal__button--ghost:hover {
    background: color-mix(in srgb, var(--ui-color-primary) 8%, var(--ui-color-surface));
    border-color: color-mix(in srgb, var(--ui-color-primary) 22%, var(--ui-color-border));
    color: var(--ui-color-text);
}

.sbdp-vendor-portal__header h1,
.sbdp-vendor-portal__header h2,
.sbdp-account-bookings h2,
.sbdp-account-bookings h3 {
    font-family: var(--ui-font-display);
    letter-spacing: -0.03em;
}

.sbdp-vendor-portal__kpi p {
    font-family: var(--ui-font-display);
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.sbdp-account-bookings {
    margin: 2rem auto;
    padding: 24px;
}

.sbdp-account-bookings__table th,
.sbdp-account-bookings__table td,
.sbdp-vendor-portal__schedule th,
.sbdp-vendor-portal__schedule td {
    border-bottom-color: color-mix(in srgb, var(--ui-color-border) 88%, transparent);
}

@media (max-width: 767px) {
    .sbdp-vendor-portal,
    .sbdp-account-bookings {
        border-radius: var(--ui-radius-xl);
        padding: 16px;
    }
}
