/* Shared multiselect dropdown styles used by Analytics, Snapshots, and MultiSelectDropdown component */

.custom-multiselect {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.multiselect-trigger {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    height: 35px;
}

.multiselect-trigger:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.multiselect-trigger.open {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(6, 51, 64, 0.1);
}

.multiselect-trigger .selected-count {
    font-weight: 600;
    color: var(--bs-primary);
}

.multiselect-trigger .dropdown-arrow {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.multiselect-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    z-index: 1000;
    max-height: 400px;
    min-width: 300px;
    width: max-content;
    display: flex;
    flex-direction: column;
}

.dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(6, 51, 64, 0.1);
}

.select-all-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #10b981;
    border-radius: 0.25rem;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.select-all-btn:hover {
    background: #d1fae5;
    border-color: #059669;
}

.clear-all-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.clear-all-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.dropdown-items {
    overflow-y: auto;
    max-height: 300px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item.selected {
    background: #eff6ff;
}

.dropdown-item input[type="checkbox"] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.dropdown-item span {
    flex: 1;
    font-size: 0.875rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.chart-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.division-color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}
