/* Force display when open */
.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    /* Overrides any theme animations that might hide it */
}

/* Positioning fixes for fixed/absolute navbar */
.navbar-absolute .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    /* Positions directly below the toggle */
    right: 0 !important;
    /* Aligns to the right, as per your classes */
    margin-top: 0.125rem !important;
    min-width: 10rem !important;
    /* Ensures it's wide enough */
}

/* Higher z-index to prevent overlapping/hiding */
.dropdown-menu {
    z-index: 1051 !important;
    /* Above navbar (BS5 default is 1000-1050) */
    background-color: #fff !important;
    /* Ensures it's not transparent */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    /* Visible shadow */
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Prevent clipping from parents */
.navbar-collapse,
.navbar {
    overflow: visible !important;
    /* Stops overflow: hidden from hiding the menu */
}

/* Tooltip fixes (since your items have tooltips) */
.tooltip {
    z-index: 1070 !important;
    /* Even higher if needed */
    opacity: 1 !important;
}