/* .dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block;
} */

.bg-yellow {
    background-color: yellow;
}

.login-logo-umc {
    width: 128px !important;
    height: 64px !important;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    margin-bottom: 24px;
}

.align-right {
    display: flex;
    justify-content: flex-end;
}

/* .hidden {
    display: none;
} */
/*
.visible {
    display: flex;
    transition: all 0.3s ease-in-out;
} */
.table tbody tr td {
    padding: 2px 8px;
}

.table tbody tr td.text-truncate {
    overflow: visible;
    text-overflow: inherit;
    white-space: inherit;
    word-break: normal;
}

#headerMenuCollapse::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

#headerMenuCollapse::-webkit-scrollbar-track {
    background: #1f1f1f; /* Dark background for the scrollbar track */
    border-radius: 8px;
}

#headerMenuCollapse::-webkit-scrollbar-thumb {
    background: #3a3a3a; /* Slightly lighter dark color for the scrollbar */
    border-radius: 8px; /* Rounded corners */
}

#headerMenuCollapse::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a; /* Highlight color when hovered */
}

.select2-container--default .select2-selection--single {
    border-color: rgba(21, 20, 26, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #667780 !important;
}

.me-auto {
    transition: all 0.1s ease;
}

.filter-dropdown {
    position: relative;
}

/* Prevent dropdown overflow and ensure proper positioning */
.dropdown-menu {
    max-width: 20vw !important;
    min-width: 280px;
    max-height: 95vh;
    overflow-y: auto;
    z-index: 1050;
}

/* Filter content scrollable area — driven by a CSS variable */
.filter-scrollable {
    --fs-height: 40vh;             /* default height */
    height: var(--fs-height);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: height .15s ease, max-height .15s ease;
}

/* If it has an input controller but NOT a select controller → 10vh */
.filter-scrollable:has([data-controller="input"]):not(:has([data-controller="select"])) {
    --fs-height: 10vh;
}

/* (Optional) keep your nice scrollbar styles */
.filter-scrollable::-webkit-scrollbar { width: 6px; }
.filter-scrollable::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.filter-scrollable::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.filter-scrollable::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
/* Enhance dropdown toggle button */
.dropdown-toggle-btn {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem !important;
    transition: all 0.15s ease-in-out;
    background: transparent;
}

.dropdown-toggle-btn:hover,
.dropdown-toggle-btn:focus {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.125);
    text-decoration: none;
}

/* Apply button improvements */
.apply-wrapper {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    margin: 0;
}

.apply-wrapper .btn {
    border-color: #dee2e6 !important;
    background: white;
    color: #495057;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.apply-wrapper .btn:hover,
.apply-wrapper .btn:focus {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    text-decoration: none;
}

/* Arrow positioning for dropdown */
.dropdown-menu-arrow::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1;
}

.dropdown-menu-arrow::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dee2e6;
    z-index: 0;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
