/* Custom dropdown styling */
.custom-dropdown-item:hover {
    background-color: #F3F4F6 !important;
}

.custom-dropdown-toggle:hover {
    background-color: #F9FAFB !important;
}

.filter-select {
    width: 20rem;
    max-width: 20rem;
}

.filter-select .Select-control {
    position: relative;
}

/* Allow multi-select values to wrap vertically without overlapping other filters. */
.filter-select.Select--multi .Select-control {
    min-height: 2.5rem;
    height: auto;
    max-height: 6.5rem;
    overflow: hidden;
}

.filter-select.Select--multi .Select-multi-value-wrapper {
    white-space: normal;
    max-height: 5.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
}

.filter-select.Select--multi .Select-value,
.filter-select.Select--multi .Select-value-label,
.filter-select.Select--multi .Select-placeholder,
.filter-select.Select--multi .Select-input > input {
    line-height: 1.5rem;
}

.filter-select .Select-placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    right: 2.25rem;
    pointer-events: none;
}

.filter-select.Select--multi .Select-value-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline;
}

.filter-select.Select--multi .Select-value {
    max-width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

.filter-select.Select--multi .Select-value-icon {
    display: inline-flex;
    align-items: center;
}

/* Ensure date picker overlays tables and sticky headers. */
.DateRangePicker_picker,
.DateRangePicker_picker__portal {
    z-index: 2000;
}