select {
    option {
        cursor: pointer !important;
    }
}
.form-select {
    color: var(--font-color);
    font-size: $default-font-size;
    border-color: var(--border-color);
    padding: 0.6rem 2.25rem 0.6rem 0.85rem;
    background-color: var(--form-control-bg);
    border-radius: var(--round-default);
    &:focus {
        outline: none;
        box-shadow: none;
        color: var(--font-color);
        border-color: var(--primary);
        background-color: var(--form-control-bg);
    }
}
.multi-select-control {
    min-width: 15rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    appearance: none;
    line-height: 25px;
    font-weight: 400;
    font-size: 0.935rem;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-radius: var(--round-default) !important;
    color: var(--font-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 2.25rem 0.6rem 0.85rem;
    background-color: var(--form-control-bg) !important;

    &:after {
        display: none;
    }

    .btn-add {
        color: #6c757d;
    }

    .badge {
        padding: 0.5rem 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        color: var(--font-color);
        font-size: 14px;
        background-color: var(--chips-bg);

        .btn-remove {
            font-size: 14px;
            margin-left: 10px;
            color: var(--font-color);
        }
    }
}

.dropdown-search-select {
    padding: 0;

    .search-control {
        padding: 0.5rem 1rem;
        position: relative;
        border-bottom: 1px solid var(--border-color);

        i {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: var(--font-color);
        }

        .form-control {
            border: 0;
            padding-left: 1.5rem;
            background-color: transparent;
        }
    }

    .options-wrapper {
        overflow-y: auto;
        max-height: 300px;

        .dropdown-item {
            &.disabled {
                pointer-events: none;
            }

            &.selected {
                background-color: var(--dropdown-item-hover-bg);
            }
        }
    }
}

.search-select-filter {
    .dropdown-menu {
        padding: 0 !important;

        .search-wrapper {
            .search-input {
                padding: 0.75rem 1.2rem;

                .search-icon {
                    top: 50%;
                    left: 1.2rem;
                    color: var(--font-color);
                    transform: translateY(-50%);
                }

                .form-control {
                    border-radius: 0;
                    border-color: transparent;
                    background-color: transparent;
                    padding: 0.6rem 0 0.6rem 1.5rem;

                    &:focus {
                        border-top-color: transparent;
                        border-right-color: transparent;
                        border-left-color: transparent;
                        border-bottom-color: var(--primary);
                    }
                }
            }
        }

        .filter-options-wrapper {
            overflow-y: auto;
            max-height: 270px;

            ul {
                margin: 0;
                padding: 0;
            }
        }
    }
}

.custom-form-select {
    width: 100%;
    position: relative;
    font-size: 14px;
    .selected {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        color: var(--font-color);
        cursor: pointer;
        user-select: none;
        border-radius: var(--round-default);
        border: 1px solid var(--border-color);
        background-color: var(--form-control-bg);
        transition: all var(--transition-duration) ease-in-out;

        &:first-letter {
            text-transform: capitalize;
        }

        i {
            transition: all var(--transition-duration) ease-in-out;
        }

        &:hover {
            border-color: var(--primary);
        }

        &.open {
            border-color: var(--primary);

            i {
                transform: rotate(180deg);
            }
        }
    }

    .select-dropdown {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 13;
        overflow: hidden;
        border-radius: var(--round-default);
        border: 1px solid var(--border-color);
        border-top: none;
        background-color: var(--card-color);

        .item-search-wrapper {
            padding: 8px;

            .search-input {
                .search-icon {
                    left: 0;
                }

                .form-control {
                    padding: 9px 0 9px 22px;
                    border-radius: 0;
                    border-top: none;
                    border-right: none;
                    border-left: none;
                }
            }
        }

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

            .item {
                padding: 10px 15px;
                color: var(--font-color);
                cursor: pointer;
                user-select: none;
                transition: all var(--transition-duration) ease-in-out;

                &:hover {
                    background-color: var(--select-items-hover-bg);
                }

                &.active-item {
                    background-color: var(--select-items-hover-bg);
                }
            }
        }
    }
}

label {
    &:hover {
        + {
            .custom-form-select {
                .selected {
                    border-color: var(--primary);
                }
            }
        }
    }
}

.form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--bs-border-radius-sm);
}

.filter .bg-brand {
    background-color: $primary;
    color: $light !important;
}
