/* Drilldown Menu Override - Apply Button */
.drilldown-menu:not(.fs-container .drilldown-menu) .menu-toggle.dd-active:after {
    content: "Apply" !important;
    background: #01024d !important; /* Blue background */
    color: #fff !important;
    font-size: 14px;
    position: absolute;
    bottom: 11px;
    right: 10px;
    font-weight: 600;
    border-radius: 5px;
    padding: 1px 8px;
    display: block;
    pointer-events: none;
    cursor: pointer;
    z-index: 100;
    line-height: 25px;
}

.sidebar .drilldown-menu:not(.fs-container .drilldown-menu) .menu-toggle.dd-active:after {
    bottom: 9px;
}

/* Hide the reset button when dd-active is present */
.drilldown-menu:not(.fs-container .drilldown-menu) .menu-toggle.dd-active .reset-button {
    display: none !important;
}

.drilldown-menu:not(.fs-container .drilldown-menu) .menu-toggle.dd-active:before {
    display: none;
}

/* Mobile Navigation - dark blue background, white text */
.mobile-navigation-wrapper {
    background: #00034c !important;
    width: 85% !important;
    max-width: 420px !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

/* Overlay behind mobile menu */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

body.mobile-nav-open .mobile-nav-overlay {
    display: block;
}

.mobile-navigation-wrapper,
.mobile-navigation-wrapper a,
.mobile-navigation-wrapper li,
.mobile-navigation-wrapper .mobile-navigation-list,
.mobile-navigation-wrapper #mobile-nav a,
.mobile-navigation-wrapper #mobile-nav li,
.mobile-navigation-wrapper .sub-menu a,
.mobile-navigation-wrapper .sub-menu li,
.mobile-navigation-wrapper .sub-menu-back-btn,
.mobile-navigation-wrapper .mobile-nav-widgets,
.mobile-navigation-wrapper .widget,
.mobile-navigation-wrapper .textwidget,
.mobile-navigation-wrapper .textwidget h3,
.mobile-navigation-wrapper .textwidget p,
.mobile-navigation-wrapper .new-footer-social-icons a {
    color: #fff !important;
}

.mobile-navigation-wrapper #mobile-nav li {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-navigation-wrapper .sub-menu {
    background: #00034c !important;
}

.mobile-navigation-wrapper .textwidget > div {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Flatpickr: hide calendar when not open (theme CSS may override defaults) */
.flatpickr-calendar:not(.open) {
    display: none !important;
}
