.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 10px;
}

.invalid-feedback {
    color: red;
    font-size: 14px;
}


#menu-bar {
    font-size: 25px;
    color: #ff6605 !important;
}


/* --- Off-Canvas Menu Styles --- */
.off-canvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 90%;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;

    /* Initially hide the menu off-screen to the right */
    transform: translateX(100%);
    /* Smooth sliding transition */
    transition: transform 0.35s ease-out;
}

/* Class applied by JavaScript to show the menu */
.off-canvas-menu.is-open {
    transform: translateX(0);
}

/* --- Menu Header Styles (Close Button & Logo) --- */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.menu-header .logo {
    max-width: 100px;
    /* Adjust logo size */
    height: auto;
}

.close-btn {
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #333;
    padding: 0;
    line-height: 1;
    font-weight: 300;
    /* Makes the 'x' look cleaner */
}

/* --- Mobile Menu Links Styles --- */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    /* Optional: Add active/hover states */
}


@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}


@media (max-width: 991px) {
    .main-nav .nav-left-items {
        display: none;
    }

    .main-nav {
        padding: 10px 20px;
        justify-content: space-between;
    }
}


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


.menu-open-noscroll {
    overflow: hidden;
}


.flipbook-toolbar .btn-download,
.flipbook-toolbar .btn-print {
    display: none !important;
}




/* --- User Menu Container --- */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu .dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 1000;
}


.user-menu:hover .dropdown {
   display: block;
}


.user-menu .dropdown li {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}


.user-menu .dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}


.user-menu .dropdown a:hover {
    background-color: #f0f0f0;
}

/* --- Icons --- */
.user-menu .dropdown i {
    margin-right: 8px;
    color: #555;
    font-size: 15px;
}



.select2-container--default .select2-selection--multiple {
    min-height: 45px !important;
    max-height: 45px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important; 
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: thin;   
}

/* Rendered area behaves inline, no wrapping */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px;
}

/* Style the tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    max-width: 90px;               /* ✅ prevent super long tags */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Input inside Select2 */
.select2-container--default .select2-search--inline .select2-search__field {
    height: 28px !important;
    line-height: 28px !important;
    margin: 0 !important;
}

/* Focus border like Bootstrap */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25) !important;
}

/* Dropdown hover highlight */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff !important;
    color: white !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 10px !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    top: 4px !important;
    border: none;
}

.nav-active {
    color: #ff6600 !important;
}    


.nep-date {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: bold !important;
    /* color: #333 !important; */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}             