:root {
    /* ===== Color System (Blauw/Grijs Light Theme) ===== */
    --bg-primary: #F0F4F8;
    --bg-secondary: #FFFFFF;
    --bg-elevated: #E2E8F0;
    --bg-glass: rgba(255, 255, 255, 0.82);

    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #64748b;

    --accent-primary: #4A90D9;
    --accent-primary-hover: #2B6CB0;
    --accent-success: #38A169;
    --accent-warning: #D69E2E;
    --accent-danger: #E53E3E;

    --border-color: rgba(45, 55, 72, 0.12);
    --border-color-hover: rgba(45, 55, 72, 0.20);

    /* ===== Layout Dimensions ===== */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --bottom-nav-height: 72px;

    /* ===== Touch Targets ===== */
    --touch-target-min: 44px;

    /* ===== Transitions ===== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 55, 72, 0.10);
    --shadow-lg: 0 10px 30px rgba(45, 55, 72, 0.12);
    --shadow-glow: 0 0 20px rgba(74, 144, 217, 0.20);

    /* ===== Accessibility ===== */
    --focus-ring: rgba(74, 144, 217, 0.45);
    --focus-ring-offset: 3px;

    /* ===== Shared Overrides ===== */
    --shared-accent: #4A90D9;
    --shared-surface: rgba(255, 255, 255, 0.70);
    --shared-border: rgba(45, 55, 72, 0.12);
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ===== Dashboard Container ===== */
.dashboard-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ===== Sidebar ===== */
.dashboard-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal), min-width var(--transition-normal);
    z-index: 1000;
}

.dashboard-sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

/* Sidebar Brand/Logo */
.sidebar-brand {
    height: var(--header-height);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(45, 55, 72, 0.04);
}

.sidebar-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), #2B6CB0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav-group {
    margin-bottom: 1.5rem;
}

.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.collapsed .sidebar-nav-label {
    opacity: 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
    min-height: var(--touch-target-min);
}

.sidebar-nav-item:hover {
    background: rgba(74, 144, 217, 0.06);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent-primary);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-nav-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}

.collapsed .sidebar-nav-text {
    opacity: 0;
    width: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-toggle {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    background: rgba(45, 55, 72, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: rgba(74, 144, 217, 0.08);
    color: var(--text-primary);
}

/* ===== Main Area ===== */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

/* ===== Header ===== */
.dashboard-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.header-action:hover {
    background: rgba(74, 144, 217, 0.06);
    color: var(--text-primary);
}

/* ===== Content Area ===== */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: var(--bg-primary);
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 1rem;
    padding-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
}

.mobile-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
}

/* ===== Hamburger Menu ===== */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch-target-min);
    padding: 0.5rem 0.9rem 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-secondary, #fff);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: var(--accent-color, #3b82f6);
    color: #fff;
    border-color: var(--accent-color, #3b82f6);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.hamburger-btn:active {
    transform: scale(0.97);
}

.hamburger-btn:focus-visible {
    outline: 2px solid var(--accent-color, #3b82f6);
    outline-offset: 2px;
}

.hamburger-label {
    letter-spacing: 0.01em;
}

/* ===== Mobile Overlay ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 55, 72, 0.25);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 1001;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

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

    .dashboard-content {
        padding: 1rem;
        padding-bottom: calc(var(--bottom-nav-height) + 4rem);
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 4rem);
        /* De `padding-bottom` hierboven houdt alleen het EINDE van de scroll vrij van
           de vaste bodemnavigatie. Bij een minimale scroll — precies wat de browser
           doet bij focus (`:focus-visible`, tabben, formulierfouten) en wat
           `scrollIntoView({block:'nearest'})` doet — landt een element alsnog in de
           onderste `--bottom-nav-height` pixels, waar `.mobile-nav` (position: fixed,
           z-index 1000) de pointer- en touchevents opvangt. Gemeten op /afspraak/dienst
           bij 390x844: de radio "Geen extra's nodig" belandde op bottom 844 terwijl de
           nav op 772 begint, waardoor `elementFromPoint()` `.mobile-nav-items` teruggaf
           en de tik nooit bij de radio aankwam (WCAG 2.2 SC 2.4.11 en 2.5.8).
           `scroll-padding-bottom` verkleint het scrollport voor ALLE scrollacties, dus
           ook midden in de pagina, en houdt het doel altijd boven de navigatie. */
        scroll-padding-bottom: calc(var(--bottom-nav-height) + 1rem);
        scroll-padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 1rem);
    }

    .dashboard-header {
        padding: 0 1rem;
    }

    .hamburger-btn {
        padding: 0.5rem 0.75rem;
    }

    .hamburger-label {
        display: none;
    }

    .dienst-title--truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dienst-info-trigger.has-selected-addons {
        border-color: rgba(16, 185, 129, 0.8);
        color: #276749;
        background: rgba(16, 185, 129, 0.15);
    }

    .dienst-addon-hint {
        padding-left: 2px;
    }

    .dienst-header-actions {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.35rem;
    }

    .dienst-info-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dienst-details {
        display: none;
    }

    .dienst-details.in-modal {
        display: block;
    }

    .dienst-info-modal .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }

    .calendar-grid {
        gap: 0.25rem !important;
    }

    .calendar-cell {
        padding: 0.05rem !important;
    }

    .calendar-day-card {
        padding: 0.05rem 0rem 0.15rem 0rem !important;
    }

    .calendar-day-btn {
        min-height: 56px !important;
        padding: 0.35rem 0.5rem !important;
    }

    .calendar-day-btn h3 {
        font-size: 0.95rem;
    }

    .calendar-day-btn h6 {
        font-size: 0.55rem;
        line-height: 1.1;
    }

    .calendar-status,
    .calendar-slots-badge {
        display: none !important;
    }

    .calendar-wrapper {
        /* De datumlijst gebruikt op mobiel uitsluitend de bestaande
           #dashboard-content-scroll. Een tweede 70vh-scroller ving swipes af en
           maakte de lange lijst vooral op 320px onnodig lastig bereikbaar. */
        max-height: none;
        overflow-y: visible;
        -webkit-overflow-scrolling: auto;
        padding: 1.25rem 1.25rem !important;
    }

    .calendar-grid {
        display: none !important;
    }

    .calendar-list.calendar-list-legacy {
        display: flex;
        flex-direction: column;
    }

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

    .overview-item-date {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .overview-item-body {
        flex-direction: row;
    }

    .dienst-card-body {
        flex-direction: column;
    }

    .dienst-card-image {
        width: 100%;
        flex: 0 0 100%;
        height: 280px;
        min-height: 280px;
        background-position: center 20%;
        border-bottom: 1px solid rgba(45, 55, 72, 0.10);
        border-radius: 10px 10px 0 0;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }


    .dienst-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .dienst-footer-meta {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .dienst-card-cta {
        align-self: flex-end;
    }

    .overview-item-media {
        width: 56px;
        height: 56px;
        min-height: unset;
        border-radius: 50%;
        flex: 0 0 56px;
        border-bottom: none;
        margin: 0.5rem 0 0.5rem 0.25rem;
    }

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

    .overview-item-title {
        font-size: 0.95rem;
    }

    .overview-item-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .overview-item-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }

    /* Bevestigde afspraken hebben naast de status een lange destructieve actie
       en vier korte kalenderacties. Een expliciet grid voorkomt dat flex-wrap
       de annuleerknop naast één willekeurige kalenderknop zet. */
    .overview-item-actions--confirmed {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
    }

    .overview-item-actions--confirmed > .overview-item-status,
    .overview-item-actions--confirmed > .js-confirmed-cancellation {
        grid-column: 1 / -1;
    }

    .overview-item-actions--confirmed > .overview-item-status {
        justify-self: start;
    }

    .overview-item-actions--confirmed > .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        white-space: normal;
        line-height: 1.25;
    }

    .overview-item-meta {
        flex-direction: column;
        align-items: flex-end !important;
        gap: 0.2rem;
    }

    /* Reduce nested card decoration on mobile */
    .glass-card .glass-card.overview-item {
        border: none;
        box-shadow: none;
        border-bottom: 1px solid rgba(45, 55, 72, 0.08);
        border-radius: 0;
    }

    .glass-card .glass-card.overview-item:last-child {
        border-bottom: none;
    }

    .header-title {
        font-size: 1rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .header-title img {
        display: none;
    }

    .header-subtitle {
        display: none;
    }

    .header-left {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.75rem;
    }

    .header-left > div {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .dashboard-header {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dienst-card-image {
        height: 340px;
        min-height: 340px;
        background-position: center 15%;
    }
}

@media (max-width: 340px) {
    /* Onder 340px wint leesbare reflow van de actiekaart het van de compactere
       tweekolomsindeling; dit dekt ook de effectieve breedte bij sterke zoom. */
    .overview-item-actions--confirmed {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .overview-item-actions .btn span {
        font-size: 0.65rem;
    }

    .overview-item-actions .btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 0.25rem;
    }
}

/* ===== Sticky Cart Total on Mobile =====
   .cart-total-sticky was eerder position:sticky op ≤768px. Op smalle schermen
   nam dit blok ~30% van de viewport-hoogte in en blokkeerde permanent de
   afspraak-details (kapper, tijd, duur). De prijs is via een korte scroll
   evengoed bereikbaar; sticky leverde meer hinder dan winst.

   .confirm-booking-sticky blijft wel sticky: dat is een dunne CTA-rij die de
   bevestigknop altijd binnen tap-bereik houdt. */
@media (max-width: 768px) {
    .confirm-booking-sticky {
        position: sticky;
        bottom: calc(var(--bottom-nav-height, 72px) + 8px);
        z-index: 11;
    }
}

/* ===== Floating Cart ===== */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 144, 217, 0.25);
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.12), inset 0 0 10px rgba(74, 144, 217, 0.06);
    z-index: 1035;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatingCartSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(74, 144, 217, 0.5);
    box-shadow: 0 15px 40px rgba(45, 55, 72, 0.15), 0 0 20px rgba(74, 144, 217, 0.15);
}

.floating-cart:focus-visible {
    outline: 3px solid var(--focus-ring, rgba(74, 144, 217, 0.45));
    outline-offset: 2px;
}

.floating-cart__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #E53E3E;
    color: #fff;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.floating-cart__price {
    color: var(--text-primary, #2D3748);
}

.floating-cart__count {
    font-size: 0.625rem;
}

.floating-cart--pulse {
    animation: floatingCartPulse 2s ease-in-out 3;
}

@keyframes floatingCartSlideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes floatingCartPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(45, 55, 72, 0.12); border-color: rgba(74, 144, 217, 0.25); }
    50% { box-shadow: 0 10px 30px rgba(45, 55, 72, 0.12), 0 0 0 8px rgba(74, 144, 217, 0.12); border-color: rgba(74, 144, 217, 0.5); }
}

@media (max-width: 767.98px) {
    .floating-cart {
        bottom: calc(var(--bottom-nav-height, 72px) + 1rem);
        bottom: calc(var(--bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 1rem);
    }
}

body.modal-open .floating-cart,
body.offcanvas-open .floating-cart {
    visibility: hidden;
    pointer-events: none;
}

/* ===== Selection Offcanvas ===== */
#selectionOffcanvas {
    max-width: 380px;
}

.offcanvas-footer {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    #selectionOffcanvas {
        max-width: 100%;
        width: 100% !important;
        border-left: none;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        top: auto;
        bottom: 0;
    }

    #selectionOffcanvas .offcanvas-body {
        overscroll-behavior: contain;
    }
}

/* ===== Calendar List (Mobile Legacy) ===== */
.calendar-list.calendar-list-legacy {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.65rem;
}

.calendar-list.calendar-list-legacy .calendar-list-item {
    margin: 0;
}

.calendar-list.calendar-list-legacy .calendar-list-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(45, 55, 72, 0.03);
    color: var(--text-primary);
    text-align: left;
    transition: all var(--transition-fast);
}

.calendar-list.calendar-list-legacy .calendar-list-btn:hover {
    border-color: var(--border-color-hover);
    background: rgba(45, 55, 72, 0.04);
}

.calendar-list.calendar-list-legacy .calendar-list-btn.is-available {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.calendar-list.calendar-list-legacy .calendar-list-btn.is-unavailable {
    background: rgba(45, 55, 72, 0.02);
}

.calendar-list.calendar-list-legacy .calendar-list-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.calendar-list.calendar-list-legacy .calendar-list-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.calendar-list.calendar-list-legacy .calendar-list-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-list.calendar-list-legacy .calendar-list-day {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    min-width: 3ch;
    text-align: center;
}

.calendar-list.calendar-list-legacy .calendar-list-date {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.calendar-list.calendar-list-legacy .calendar-list-date-main {
    font-weight: 600;
    font-size: 0.95rem;
}

.calendar-list.calendar-list-legacy .calendar-list-today {
    font-size: 0.7rem;
    color: var(--accent-warning);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-list.calendar-list-legacy .calendar-list-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-list.calendar-list-legacy .calendar-list-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calendar-list.calendar-list-legacy .calendar-list-chevron {
    opacity: 0.55;
    flex-shrink: 0;
}

.calendar-list.calendar-list-legacy .calendar-list-btn.is-unavailable .calendar-list-chevron,
.calendar-list.calendar-list-legacy .calendar-list-btn:disabled .calendar-list-chevron {
    opacity: 0.3;
}

/* ===== Mobile Calendar Timeline (Modern) ===== */
.calendar-mobile-shell {
    display: none;
}

@media (max-width: 767.98px) {
    .calendar-mobile-shell {
        /* grid → flex: iOS Safari <10.3 ondersteunt display:grid niet */
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0.85rem;
        /* modern browsers */
        margin-top: 0.25rem;
    }

    /* gap fallback voor iOS Safari <14.5 */
    .calendar-mobile-shell>*+* {
        margin-top: 0.85rem;
    }

    .calendar-mobile-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 0.75rem;
        border-radius: 14px;
        border: 1px solid var(--border-color);
        background: linear-gradient(140deg, rgba(74, 144, 217, 0.18), rgba(240, 244, 248, 0.35));
        box-shadow: var(--shadow-sm);
    }

    .calendar-mobile-toolbar__month {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .calendar-mobile-toolbar__label {
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
    }

    .calendar-mobile-toolbar__value {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .calendar-mobile-toolbar__nav {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .calendar-mobile-nav-btn {
        /* 44px is de afspraakbrede mobiele touchstandaard; de maandpijlen waren
           met 38px de kleinste primaire kalenderbediening. */
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        text-decoration: none;
        background: rgba(45, 55, 72, 0.04);
        transition: all var(--transition-fast);
    }

    .calendar-mobile-nav-btn.is-disabled {
        opacity: 0.4;
        pointer-events: none;
    }

    .calendar-mobile-filter {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0.55rem;
    }

    .calendar-mobile-filter>*+* {
        margin-top: 0.55rem;
    }

    .calendar-mobile-filter-toggle {
        min-height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(74, 144, 217, 0.45);
        background: rgba(74, 144, 217, 0.14);
        color: #2B6CB0;
        font-weight: 600;
        letter-spacing: 0.01em;
        padding: 0.6rem 0.85rem;
        width: 100%;
        text-align: center;
        transition: all var(--transition-fast);
    }

    .calendar-mobile-filter-toggle:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

    .calendar-mobile-stats {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .calendar-timeline {
        list-style: none;
        margin: 0;
        padding: 0 0 0 0.9rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        position: relative;
    }

    .calendar-timeline::before {
        content: "";
        position: absolute;
        left: 0.28rem;
        top: 0.15rem;
        bottom: 0.15rem;
        width: 1px;
        background: linear-gradient(180deg, rgba(74, 144, 217, 0.4), rgba(148, 163, 184, 0.2));
    }

    .calendar-timeline-item {
        position: relative;
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .calendar-timeline-item.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger per item */
    .calendar-timeline-item:nth-child(1) {
        transition-delay: 0.02s;
    }

    .calendar-timeline-item:nth-child(2) {
        transition-delay: 0.06s;
    }

    .calendar-timeline-item:nth-child(3) {
        transition-delay: 0.10s;
    }

    .calendar-timeline-item:nth-child(4) {
        transition-delay: 0.14s;
    }

    .calendar-timeline-item:nth-child(5) {
        transition-delay: 0.18s;
    }

    .calendar-timeline-item:nth-child(6) {
        transition-delay: 0.22s;
    }

    .calendar-timeline-item:nth-child(7) {
        transition-delay: 0.26s;
    }

    .calendar-timeline-item:nth-child(8) {
        transition-delay: 0.30s;
    }

    .calendar-timeline-item:nth-child(9) {
        transition-delay: 0.34s;
    }

    .calendar-timeline-item:nth-child(n+10) {
        transition-delay: 0.38s;
    }

    @media (prefers-reduced-motion: reduce) {
        .calendar-timeline-item {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    .calendar-timeline-item::before {
        content: "";
        position: absolute;
        left: -0.62rem;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: 2px solid rgba(240, 244, 248, 0.9);
        background: rgba(148, 163, 184, 0.45);
        z-index: 1;
    }

    .calendar-timeline-item.is-available::before {
        background: var(--accent-success);
    }

    .calendar-timeline-item.is-past::before {
        background: rgba(239, 68, 68, 0.8);
    }

    .calendar-mobile-shell .calendar-timeline-item.is-hidden-default {
        display: none;
    }

    .calendar-mobile-shell.show-all-days .calendar-timeline-item.is-hidden-default {
        display: block;
    }

    .calendar-timeline-card {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        min-height: 56px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        background: rgba(45, 55, 72, 0.03);
        color: var(--text-primary);
        font: inherit;
        line-height: 1.25;
        padding: 0.75rem 0.9rem;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(45, 55, 72, 0.35);
    }

    .calendar-timeline-card.is-available {
        border-color: rgba(16, 185, 129, 0.42);
        background: linear-gradient(150deg, rgba(16, 185, 129, 0.14), rgba(240, 244, 248, 0.26));
    }

    .calendar-timeline-card.is-unavailable {
        border-color: rgba(148, 163, 184, 0.2);
        background: rgba(45, 55, 72, 0.03);
    }

    .calendar-timeline-card.is-disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

    @media (hover: hover) {
        .calendar-timeline-card:hover {
            border-color: rgba(74, 144, 217, 0.4);
            background: linear-gradient(150deg, rgba(74, 144, 217, 0.12), rgba(240, 244, 248, 0.3));
        }

        .calendar-timeline-card.is-disabled:hover {
            border-color: rgba(239, 68, 68, 0.25);
            background: rgba(45, 55, 72, 0.03);
        }
    }

    .calendar-timeline-card:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

    .calendar-timeline-body {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0.35rem;
        min-width: 0;
    }

    .calendar-timeline-date {
        display: flex;
        align-items: baseline;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .calendar-timeline-dow {
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
    }

    .calendar-timeline-main {
        font-weight: 700;
        font-size: 0.98rem;
        color: var(--text-primary);
    }

    .calendar-timeline-meta {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .calendar-status-pill,
    .calendar-slot-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: 0.2rem 0.55rem;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        line-height: 1.2;
        border: 1px solid transparent;
    }

    .calendar-status-pill.is-available {
        color: #276749;
        border-color: rgba(16, 185, 129, 0.4);
        background: rgba(16, 185, 129, 0.15);
    }

    .calendar-status-pill.is-unavailable {
        color: #4A5568;
        border-color: rgba(148, 163, 184, 0.3);
        background: rgba(203, 213, 224, 0.35);
    }

    .calendar-status-pill.is-past {
        color: #9B2C2C;
        border-color: rgba(239, 68, 68, 0.45);
        background: rgba(239, 68, 68, 0.16);
    }

    .calendar-slot-pill {
        color: #2B6CB0;
        border-color: rgba(74, 144, 217, 0.4);
        background: rgba(74, 144, 217, 0.2);
    }

    .calendar-slot-pill.is-secondary {
        color: #4A5568;
        border-color: rgba(148, 163, 184, 0.28);
        background: rgba(203, 213, 224, 0.3);
    }

    .calendar-slot-pill.is-today {
        color: #975A16;
        border-color: rgba(245, 158, 11, 0.45);
        background: rgba(245, 158, 11, 0.2);
    }

    .calendar-slot-pill.is-tomorrow {
        color: #2B6CB0;
        border-color: rgba(74, 144, 217, 0.35);
        background: rgba(74, 144, 217, 0.12);
    }

    .calendar-slot-pill.is-days-away {
        color: var(--text-muted);
        border-color: rgba(45, 55, 72, 0.15);
        background: rgba(45, 55, 72, 0.06);
        font-variant-numeric: tabular-nums;
    }

    .calendar-timeline-chevron {
        opacity: 0.58;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .calendar-mobile-empty {
        border: 1px dashed rgba(148, 163, 184, 0.35);
        border-radius: 14px;
        padding: 0.8rem;
        background: rgba(240, 244, 248, 0.45);
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0.55rem;
    }

    .calendar-mobile-shell.show-all-days .calendar-mobile-empty {
        display: none;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {

    .calendar-timeline-card,
    .calendar-mobile-nav-btn,
    .calendar-mobile-filter-toggle {
        transition: all var(--transition-fast);
    }

    .calendar-timeline-card:active {
        transform: translateY(1px) scale(0.995);
    }
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}


/* ===== Context-bar: dienst + duur + prijs + barbier ===== */
.afspraak-context-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08), rgba(74, 144, 217, 0.02));
    border: 1px solid rgba(74, 144, 217, 0.2);
}

.afspraak-context-bar__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(74, 144, 217, 0.18);
    color: #4a90d9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afspraak-context-bar__body {
    flex: 1 1 auto;
    min-width: 0;
}

.afspraak-context-bar__primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.afspraak-context-bar__title {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-color, #1f2937);
}

.afspraak-context-bar__meta {
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
}

.afspraak-context-bar__secondary {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    margin-top: 0.15rem;
}

.afspraak-context-bar__edit {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a90d9;
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 144, 217, 0.4);
    transition: background 0.15s ease;
}

.afspraak-context-bar__edit:hover,
.afspraak-context-bar__edit:focus-visible {
    background: rgba(74, 144, 217, 0.12);
    color: #3b7ab8;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .afspraak-context-bar {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.7rem;
    }
    .afspraak-context-bar__edit { margin-left: auto; }
}

/* ===== Datum-loader overlay ===== */
.datum-main-content {
    position: relative;
}

.datum-main-content > :not(.datum-loader-overlay) {
    transition: opacity 0.2s ease;
}

.datum-main-content.is-loading > :not(.datum-loader-overlay) {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.datum-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.datum-main-content.is-loading .datum-loader-overlay {
    opacity: 1;
    pointer-events: auto;
}

.datum-loader-card {
    min-width: 240px;
    max-width: 360px;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    color: #e2e8f0;
}

.datum-loader-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.35);
    border-top-color: #4a90d9;
    animation: datumLoaderSpin 0.8s linear infinite;
}

.datum-loader-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.datum-loader-subtitle {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    color: rgba(226, 232, 240, 0.82);
}

@keyframes datumLoaderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Empty-state callout: geen beschikbare dagen in huidige 5-weken periode ===== */
.calendar-empty-period-callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(74, 144, 217, 0.35);
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.10), rgba(74, 144, 217, 0.04));
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.calendar-empty-period-callout__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(74, 144, 217, 0.18);
    color: #4a90d9;
}

.calendar-empty-period-callout__body {
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-empty-period-callout__title {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color, #1f2937);
    margin-bottom: 0.25rem;
}

.calendar-empty-period-callout__text {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.calendar-empty-period-callout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .calendar-empty-period-callout {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.85rem;
    }

    .calendar-empty-period-callout__icon {
        width: 38px;
        height: 38px;
    }
}

/* ===== Dagdeel-filter ===== */
.calendar-period-filter-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

/* Collapseerbare filter: header is een toggle button */
.calendar-period-filter-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.calendar-period-filter-chevron {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
    color: var(--text-muted, #64748b);
}

.calendar-period-filter-wrapper:not(.is-collapsed) .calendar-period-filter-chevron {
    transform: rotate(180deg);
}

.calendar-period-filter-current {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4a90d9;
    background: rgba(74, 144, 217, 0.12);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.calendar-period-filter-body {
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    margin-top: 0.6rem;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.calendar-period-filter-wrapper.is-collapsed .calendar-period-filter-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.calendar-period-filter-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    opacity: 0.85;
}

.calendar-period-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.calendar-period-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    background: rgba(45, 55, 72, 0.04);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    min-height: 36px;
    transition: all var(--transition-fast);
}

@media (max-width: 767.98px) {
    /* De inklapbare filterkop en alle dagdeelkeuzes moeten ook met duim of
       beperkte fijne motoriek betrouwbaar te bedienen zijn. */
    .calendar-period-filter-toggle,
    .calendar-period-btn {
        min-height: 44px;
    }

    .calendar-period-filter-toggle {
        padding-block: 0.4rem;
    }
}

/* Het componentcontract vervangt de voormalige inline maxima en geldt voor
   zowel de individuele als de groepsmodal. De nummerinvoer houdt altijd een
   bruikbare ondergrens, terwijl de prefixes op desktop hun vertrouwde maat houden. */
.phone-input-group__device {
    flex: 0 0 85px;
    max-width: 85px;
}

.phone-input-group__country {
    flex: 0 0 75px;
    max-width: 75px;
}

.phone-input-group__number {
    min-width: 120px;
}

@media (max-width: 575.98px) {
    /* Op de smalste modal past 76 + 68 + 120px zonder overflow. De compacte
       selectpadding in default.css laat daarbij label en pijl volledig vrij. */
    .phone-input-group__device {
        flex-basis: 76px;
        max-width: 76px;
    }

    .phone-input-group__country {
        flex-basis: 68px;
        max-width: 68px;
    }
}

/* De privacy-detailactie is een echte knop en krijgt daarom hetzelfde
   touchoppervlak als de overige mobiele wizardbediening. */
[data-privacy-modal="true"] {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.calendar-period-btn.is-active {
    border-color: rgba(74, 144, 217, 0.6);
    background: rgba(74, 144, 217, 0.18);
    color: #2B6CB0;
}

.calendar-period-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Desktop: dim cel als geen slots in geselecteerd dagdeel (met transitie) */
.calendar-cell {
    transition: opacity 0.18s ease;
}

.calendar-cell.is-period-dimmed {
    opacity: 0.35;
    pointer-events: none;
}

.calendar-cell.is-period-dimmed .calendar-slots-badge {
    display: none;
}

/* Calendar badge (slot count pill) */
.calendar-slots-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -40%);
    background: #1b7a3e;        /* verhoogd contrast t.o.v. text-white */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25em 0.55em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    z-index: 2;
    letter-spacing: 0.01em;
}

/* ===== Today highlight: hoger contrast + solid ring ===== */
.calendar-day-card.today-highlight {
    box-shadow: 0 0 0 2px #facc15, 0 0 0 5px rgba(250, 204, 21, 0.25);
}

.calendar-day-card__today-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    height: 10px;
    width: 10px;
    border-radius: 999px;
    background: #facc15;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
    z-index: 2;
}

/* Pressed state bij dag-klik */
.calendar-day-btn,
.calendar-timeline-card.is-available {
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.calendar-day-btn.is-pressed,
.calendar-timeline-card.is-pressed {
    transform: scale(0.96);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.45),
                0 8px 20px rgba(74, 144, 217, 0.25);
}

/* Disabled past dates: duidelijker dimmen */
.calendar-day-btn[disabled],
.calendar-timeline-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Day-status badges & tinten (verlof / gesloten / volzet) — toegevoegd 2026-05-05.
   De primary indicator is nu een top-badge (zelfde positie als "X vrij"). De hoek-icoon
   blijft als secundaire visuele anker (klein, wit cirkel). */
.calendar-day-status-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0.85;
}
.calendar-day-btn--with-status.is-status-leave .calendar-day-status-badge {
    color: #d97706;
}
.calendar-day-btn--with-status.is-status-closed .calendar-day-status-badge {
    color: #64748b;
}
.calendar-day-btn--with-status.is-status-full .calendar-day-status-badge {
    color: #dc2626;
}
.calendar-day-btn--with-status.is-status-leave {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.45), rgba(254, 243, 199, 0.15)) !important;
}
.calendar-day-btn--with-status.is-status-closed {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.55), rgba(226, 232, 240, 0.2)) !important;
}
.calendar-day-btn--with-status.is-status-full {
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.45), rgba(254, 226, 226, 0.15)) !important;
}

/* Top-badge varianten voor status-pills (analoog aan "X vrij" groene pill) */
.calendar-slots-badge--status {
    background: #64748b; /* default slate */
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.calendar-slots-badge--full {
    background: #dc2626; /* rood — volzet */
}
.calendar-slots-badge--leave {
    background: #d97706; /* amber — verlof */
}
.calendar-slots-badge--closed {
    background: #475569; /* donker-slate — gesloten */
}

/* ===== Last-minute wachtlijst-hint op de cel (eligible volzet-dag, ≤14 dagen) =====
   Blauwe accent-pill op de ONDERrand van de cel — analoog aan de "Volzet"-status-pill
   op de bovenrand — zodat hij het cel-content (dag + maand) niet overlapt én de dag
   uitnodigt om aangeklikt te worden. Toegevoegd 2026-05-25. */
.calendar-waitlist-hint {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 45%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #4a90d9;            /* design-token blauw = actionable */
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.22em 0.5em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.35);
    z-index: 3;
    white-space: nowrap;
    pointer-events: none;          /* klik gaat naar de onderliggende cel-knop */
}
.calendar-waitlist-hint svg {
    flex: 0 0 auto;
}

/* Eligible/volzet-cel voelt klikbaar: pointer-cursor + subtiele blauwe hover-ring. */
.calendar-day-btn--with-status.is-status-full {
    cursor: pointer;
}
.calendar-day-btn--with-status.is-status-full:hover {
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.45);
}

/* Mobile timeline: wachtlijst-pill (blauw) naast de "Niet beschikbaar"-status. */
.calendar-slot-pill.is-waitlist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(74, 144, 217, 0.16);
    color: #2c5d8f;
    font-weight: 700;
}
.calendar-slot-pill.is-waitlist svg {
    flex: 0 0 auto;
}

/* Mobile: verberg items zonder slots in geselecteerd dagdeel.
   Volgorde belangrijk: staan NA de .show-all-days regels zodat dagdeel-filter altijd wint. */
.calendar-mobile-shell[data-period-filter="voormiddag"] .calendar-timeline-item.is-period-no-vm,
.calendar-mobile-shell[data-period-filter="namiddag"]   .calendar-timeline-item.is-period-no-nm,
.calendar-mobile-shell[data-period-filter="avond"]      .calendar-timeline-item.is-period-no-av,
.calendar-mobile-shell[data-period-filter="custom"]     .calendar-timeline-item.is-period-no-custom {
    display: none;
}

/* Aangepast tijdsbereik */
.calendar-custom-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    animation: periodRangeSlideIn 0.2s ease;
}

@keyframes periodRangeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calendar-custom-range__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calendar-custom-range__select {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    background: rgba(45, 55, 72, 0.04);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 36px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.calendar-custom-range__select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-color: rgba(74, 144, 217, 0.6);
}

.calendar-custom-range__sep {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Aangepast tijdsbereik banner (uur-pagina) */
.custom-range-banner {
    animation: periodRangeSlideIn 0.25s ease;
}

.custom-range-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(74, 144, 217, 0.08);
    border: 1px solid rgba(74, 144, 217, 0.25);
    border-radius: 0.75rem;
    font-size: 0.82rem;
    color: #2B6CB0;
}

.custom-range-banner__icon {
    flex-shrink: 0;
}

.custom-range-banner__text {
    flex-grow: 1;
    font-weight: 500;
}

.custom-range-banner__clear {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: rgba(74, 144, 217, 0.12);
    color: #2B6CB0;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.custom-range-banner__clear:hover {
    background: rgba(74, 144, 217, 0.22);
}

.custom-range-banner__clear:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===== Utility Classes ===== */
.dienst-title {
    max-width: 100%;
}

.touch-friendly {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

.dienst-card-image,
.overview-item-media {
    position: relative;
    height: 110px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    /*border: 1px solid var(--glass-border);*/
    overflow: hidden;
}

.dienst-card-body {
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
}

.dienst-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dienst-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dienst-duration-badge {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.dienst-card-image {
    width: 110px;
    flex: 0 0 110px;
    align-self: flex-start;
}

.overview-item-media {
    filter: saturate(0.8);
    width: 120px;
    flex: 0 0 120px;
    align-self: flex-start;
}

.overview-item-actions {
    margin-left: auto;
    justify-content: flex-end;
}

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

.transition-all {
    transition: all var(--transition-fast);
}

.overview-item-body {
    align-items: flex-start;
}

/* ===== Empty State (Overzicht) ===== */
.empty-state {
    position: relative;
    margin: 2rem auto;
    max-width: 760px;
    padding: clamp(2rem, 6vw, 3rem);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top, rgba(74, 144, 217, 0.25), rgba(240, 244, 248, 0.6) 55%),
        linear-gradient(160deg, rgba(240, 244, 248, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: 0 30px 80px rgba(45, 55, 72, 0.12), inset 0 0 0 1px rgba(74, 144, 217, 0.10);
    display: grid;
    gap: 1.4rem;
    justify-items: center;
    text-align: center;
    overflow: hidden;
}

.empty-state::before {
    content: "";
    position: absolute;
    inset: -40% 0 auto;
    height: 80%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.35), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.empty-state::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 55, 72, 0.10) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.18;
    pointer-events: none;
}

.empty-state>* {
    position: relative;
    z-index: 1;
}

.empty-state__icon {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(74, 144, 217, 0.4), rgba(240, 244, 248, 0.8));
    border: 1px solid rgba(74, 144, 217, 0.4);
    box-shadow: 0 18px 40px rgba(45, 55, 72, 0.10), inset 0 0 12px rgba(74, 144, 217, 0.08);
    color: #2B6CB0;
}

.empty-state__icon svg {
    width: 42px;
    height: 42px;
}

.empty-state__title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    letter-spacing: 0.02em;
}

.empty-state__text {
    margin: 0;
    color: var(--text-secondary);
    max-width: 560px;
    font-size: 0.98rem;
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.empty-state__actions svg {
    width: 18px;
    height: 18px;
}

.empty-state__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.empty-state__badge {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 144, 217, 0.35);
    background: rgba(74, 144, 217, 0.14);
    color: #4A5568;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .empty-state {
        margin: 1.5rem auto;
        padding: 1.75rem;
    }

    .empty-state__actions {
        flex-direction: column;
        width: 100%;
    }

    .empty-state__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   NOTIFICATION OVERRIDES (shared notifications.css)
   ============================================= */
.modern-notification {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #2D3748 !important;
    border: 1px solid rgba(45, 55, 72, 0.12) !important;
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.12) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
}

.modern-notification .notification-close {
    color: #64748b !important;
}

.modern-notification .notification-close:hover {
    color: #2D3748 !important;
}

/* Shared common.css chip overrides */
.shared-chip {
    background: rgba(74, 144, 217, 0.10) !important;
    color: #2B6CB0 !important;
    border-color: rgba(74, 144, 217, 0.25) !important;
}

/* =============================================
   SKIP-TO-CONTENT LINK
   ============================================= */
.afspraak-skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 0.75rem 1.5rem;
    background: #4A90D9;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.15);
    transition: top 0.15s ease;
}

.afspraak-skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-ring, rgba(74, 144, 217, 0.45));
    outline-offset: 2px;
}

/* =============================================
   FOCUS INDICATORS (Accessibility)
   ============================================= */
*:focus-visible {
    outline: 3px solid var(--focus-ring, rgba(74, 144, 217, 0.45));
    outline-offset: var(--focus-ring-offset, 3px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-ring, rgba(74, 144, 217, 0.45));
    outline-offset: var(--focus-ring-offset, 3px);
    box-shadow: 0 0 0 1px rgba(74, 144, 217, 0.15);
}

/* Don't double-outline elements that already handle focus */
.sidebar-nav-item:focus-visible,
.mobile-nav-item:focus-visible {
    border-radius: 12px;
}

/* =============================================
   HIGH CONTRAST MODE
   ============================================= */
@media (prefers-contrast: more) {
    :root {
        --text-primary: #1A202C;
        --text-secondary: #2D3748;
        --text-muted: #4A5568;
        --border-color: rgba(45, 55, 72, 0.25);
        --border-color-hover: rgba(45, 55, 72, 0.40);
        --accent-primary: #1A5CA8;
        --accent-primary-hover: #1A4A8A;
    }

    .sidebar-nav-item,
    .mobile-nav-item,
    .header-action {
        border: 1px solid rgba(45, 55, 72, 0.20);
    }

    .sidebar-nav-item.active {
        border-color: var(--accent-primary);
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .afspraak-skip-link {
        transition: none;
    }
}
