.select2-container--open {
    z-index: 1056 !important; /* higher than Bootstrap modal */
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #405189; /* Bootstrap primary or any other */
    color: #fff;
    border: 1px solid #405189;
}

.readonly-toggle {
    pointer-events: none;
    opacity: 0.5;
}
/*.form-switch .form-check-input {
    width: 3.5em;
    height: 2em;
}*/

/*.form-switch .form-check-input:checked {
    background-color: #0d6efd;
}*/

/*.form-switch .form-check-input::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: 0.15em;
    width: 1.7em;
    height: 1.7em;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}*/

/*.form-switch .form-check-input:checked::before {
    transform: translateX(1.5em);
}*/



/*
    Styles for Sidebar
*/

/* === REVALIO Sidebar Branding === */

/* ==============================================
   REVALIO THEME — Improved Green Palette
   ============================================== */

/* Sidebar container */
.app-menu.navbar-menu {
    background-color: #101010; /* dark matte background */
    color: #e6e6e6;
    border-right: 2px solid #4A8F2A; /* darker green border */
    box-shadow: 0 0 10px rgba(74, 143, 42, 0.25);
}

/* Scrollbar track and thumb styling */
#scrollbar::-webkit-scrollbar {
    width: 8px;
}

#scrollbar::-webkit-scrollbar-thumb {
    background-color: #4A8F2A;
    border-radius: 4px;
}

/* Logo box */
.navbar-brand-box {
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Menu links */
.nav-link.menu-link {
    color: #d9d9d9;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link.menu-link i {
    font-size: 18px;
    margin-right: 10px;
    color: #7AC943; /* logo accent color */
}

/* Hover and active link states */
.nav-link.menu-link:hover,
.nav-link.menu-link:focus,
.nav-link.menu-link.active {
    background-color: #4A8F2A; /* darker green for contrast */
    color: #ffffff;
    border-radius: 6px;
}

.nav-link.menu-link:hover i,
.nav-link.menu-link.active i {
    color: #ffffff;
}

/* Dropdown (submenu) styling */
.menu-dropdown {
    background-color: #161616;
    border-left: 3px solid #4A8F2A;
    padding-left: 8px;
}

.menu-dropdown .nav-link {
    color: #bfbfbf;
    padding: 8px 16px;
}

.menu-dropdown .nav-link:hover {
    color: #7AC943; /* use bright green for accent */
}

/* Menu titles */
.menu-title span {
    color: #7AC943;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Vertical overlay on mobile */
.vertical-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Smooth transitions */
.app-menu.navbar-menu,
.nav-link,
.menu-dropdown {
    transition: all 0.3s ease;
}













/* ==============================================
   Buttons (Better Contrast)
   ============================================== */

/* Primary button */
.btn-primary {
    background-color: #4A8F2A !important; /* darker, better contrast */
    border-color: #4A8F2A !important;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(74, 143, 42, 0.3);
    transition: all 0.3s ease;
}

/* Hover / Focus */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #3E7A24 !important;
    border-color: #3E7A24 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(62, 122, 36, 0.4);
}

/* Active / Pressed */
.btn-primary:active,
.btn-primary.active {
    background-color: #33661E !important;
    border-color: #33661E !important;
    color: #fff !important;
}

/* Optional: Secondary (accent) button */
.btn-outline-primary {
    border-color: #7AC943 !important;
    color: #7AC943 !important;
}

.btn-outline-primary:hover {
    background-color: #7AC943 !important;
    color: #101010 !important;
}


/* Outline Primary Button (Improved Contrast) */
.btn-outline-primary {
    border-color: #4A8F2A !important; /* darker green for better contrast */
    color: #4A8F2A !important; /* readable on light or white backgrounds */
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

    /* Hover / Focus */
    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: #4A8F2A !important; /* fills with dark green */
        color: #ffffff !important; /* white text now contrasts perfectly */
        border-color: #4A8F2A !important;
        box-shadow: 0 4px 10px rgba(74, 143, 42, 0.4);
    }

    /* Active / Pressed */
    .btn-outline-primary:active,
    .btn-outline-primary.active {
        background-color: #3E7A24 !important; /* slightly darker on click */
        border-color: #3E7A24 !important;
        color: #ffffff !important;
    }


/* Better-contrast badge colors */
.badge.bg-success {
    background-color: #A8E47E !important; /* lighter green */
    color: #1A3E0E !important; /* deep forest green text */
    font-weight: 600;
}

.badge.bg-danger {
    background-color: #F5A3A3 !important; /* lighter red */
    color: #6E0B0B !important; /* darker red text */
    font-weight: 600;
}





/* Reset parent link color — not active just for expanding */
.nav-item > .menu-link[aria-expanded="true"] {
    background-color: transparent !important;
    color: #d9d9d9 !important;
}

/* Parent should become active ONLY when a child is active */
.nav-item:has(.menu-dropdown .nav-link.active) > .menu-link {
    background-color: #4A8F2A !important; /* your green */
    color: #fff !important;
}

/* Child active state */
.menu-dropdown .nav-link.active {
    color: #7AC943 !important; /* lighter green accent */
    font-weight: 600;
}

/* Optional hover */
.nav-item > .menu-link:hover {
    background-color: rgba(74, 143, 42, 0.15);
    color: #fff;
}
