/* Admin Fix - Force white text on module headers */

/* Target all module headers directly */
.module h2,
.module caption,
.inline-group h2 {
    color: white !important;
}

/* Target module header links */
.module h2 a,
.module caption a,
.inline-group h2 a {
    color: white !important;
}

/* Target specific app module headers */
.app-subscriptions .module h2,
.app-accounting .module h2,
.app-hotel .module h2,
.app-core .module h2,
.app-inventory .module h2,
.app-sales .module h2,
.app-kitchen .module h2,
.app-help .module h2,
.app-suppliers .module h2,
.app-customers .module h2 {
    color: white !important;
}

/* Target dashboard module headers */
.dashboard .module h2,
.dashboard .module caption {
    color: white !important;
}

/* Target module header text */
.module h2 *,
.module caption *,
.inline-group h2 * {
    color: white !important;
}

/* Target admin index module headers specifically */
#content-main .module h2,
#content-main .module caption {
    color: white !important;
}

.sidebar { z-index: 1050 !important; }
@media (max-width: 991.98px) { .sidebar { z-index: 1050 !important; } }
.sidebar-flyout-portal { z-index: 1060 !important; }
.sidebar .dropdown-menu { z-index: 1052 !important; }
.sidebar-flyout-portal .dropdown-menu { z-index: 1060 !important; }
#sidebarCollapseDesktop { z-index: 1025 !important; }
.sidebar .nav-link:hover,
.sidebar .dropdown-item:hover,
.sidebar .submenu-item:hover { transform: none !important; }
.sidebar,
.dropdown-menu,
.btn-primary,
.btn-secondary,
.card-dashboard {
  will-change: auto !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

.modal { z-index: 2000 !important; pointer-events: auto !important; }
.modal-backdrop { z-index: 1990 !important; }

/* When any modal is open, bury sidebar and disable its interactions */
.modal-open #sidebar { z-index: 100 !important; pointer-events: none !important; }
.modal-open .sidebar-flyout-portal,
.modal-open .sidebar .dropdown-menu { z-index: 100 !important; pointer-events: none !important; }
.modal-open .sidebar-overlay { z-index: 100 !important; pointer-events: none !important; }
.modal-open #sidebarCollapseDesktop { z-index: 100 !important; pointer-events: none !important; }
.modal-open .mobile-menu-toggle { z-index: 100 !important; pointer-events: none !important; }
