/* Fix Drawer Overlay not covering the Appbar/Left Drawer */
.mud-overlay-drawer {
    z-index: 1399 !important;
    pointer-events: auto !important;
}

/* Ensure PremiumDrawer is above its own overlay */
.premium-drawer-responsive {
    z-index: 1400 !important;
}

/* Ensure Popovers (Dropdowns) show ABOVE the drawer and overlay */
.mud-popover-provider {
    z-index: 1500 !important;
}

.mud-popover-cascading-value {
    z-index: 1500 !important;
}

/* 
 * Fix: When MudSelect opens, its popover might create a backdrop or overlay 
 * that interferes with the Drawer overlay. We ensure popover backdrops 
 * are transparent so they don't visually "hide" or "cover" the drawer overlay's dark color.
 */
.mud-popover-backdrop,
.mud-popover-overlay,
.mud-overlay.mud-overlay-dialog {
    /* If there's an issue with dropdown overlay hiding the drawer overlay visually */
    /* We ensure it doesn't have an opaque background that masks the drawer's overlay */
}

/* Specifically for MudSelect backdrop */
.mud-overlay:not(.mud-overlay-drawer):not(.mud-overlay-dialog) {
    background-color: transparent !important;
}
