.multi-select {
    width: 100%;
    position: relative;
}

    .multi-select .dropdown-menu-toggle {
        border: solid 1px #ddd;
        border-radius: var(--bs-border-radius);
        cursor: pointer;
        min-height: 35px;
        max-height: 70px;
        overflow: auto;
    }

        .multi-select .dropdown-menu-toggle.disabled {
            background-color: #eee;
        }

        .multi-select .dropdown-menu-toggle .clear {
            padding: 7px 0.25rem;
            display: none;
            color: #adb5bd;
        }

            .multi-select .dropdown-menu-toggle .clear:hover {
                background-color: #ddd;
                border-radius: var(--bs-border-radius);
            }

        .multi-select .dropdown-menu-toggle .dropdown {
            padding: 7px 0.25rem;
            display: block;
        }

        .multi-select .dropdown-menu-toggle.selected .clear {
            display: block;
        }

        .multi-select .dropdown-menu-toggle.selected .dropdown,
        .multi-select .dropdown-menu-toggle.disabled .clear {
            display: none;
        }

        .multi-select .dropdown-menu-toggle .append {
            position: absolute;
            height: 100%;
            width: 30px;
            right: 0;
            top: 0;
            color: #c0c4cc;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .multi-select .dropdown-menu-toggle .append .dropdown {
                transition: all .3s;
                transform: rotate(180deg);
            }

    .multi-select.show .dropdown-menu-toggle .append .dropdown {
        transform: rotate(0);
    }

    .multi-select .dropdown-menu {
        max-height: 300px;
        overflow: auto;
    }

    .multi-select .multi-select-items {
        display: flex;
        flex-wrap: wrap;
        padding-top: 3px;
        padding-left: 3px;
        position: relative;
    }

        .multi-select .multi-select-items span {
            border: solid 1px #ddd;
            border-radius: var(--bs-border-radius);
            padding: 2px 6px;
            background-color: #e9ecef;
            margin-bottom: 3px;
        }

        .multi-select .multi-select-items .multi-select-item {
            display: inline-block;
            max-width: 130px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            margin-right: 3px;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .multi-select .multi-select-items .multi-select-item-group {
            display: inline-flex;
            position: relative;
        }

            .multi-select .multi-select-items .multi-select-item-group .multi-select-item {
                padding-left: 9px;
            }

        .multi-select .multi-select-items .multi-select-close {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            margin-right: -3px;
            z-index: 2;
            transition: color .3s linear, background-color .3s linear;
        }

    .multi-select :not(.disabled) .multi-select-items .multi-select-close:hover {
        color: #333;
        background-color: #ddd;
    }

    .multi-select .dropdown-menu {
        margin-top: 10px;
        padding: 0.25rem 0;
        width: 100%;
    }

        .multi-select .dropdown-menu .toolbar {
            padding: 6px 10px;
            white-space: nowrap;
        }

            .multi-select .dropdown-menu .toolbar .btn {
                line-height: 12px;
                padding: 7px 15px;
                border: 1px solid #dee2e6;
                transition: border-color .3s linear, color .3s linear;
            }

                .multi-select .dropdown-menu .toolbar .btn:hover {
                    border-color: #409eff;
                    color: #409eff;
                }

                .multi-select .dropdown-menu .toolbar .btn:not(:last-child) {
                    margin-right: 1rem;
                }

        .multi-select .dropdown-menu .search {
            padding: 7px 10px;
            position: relative;
        }

            .multi-select .dropdown-menu .search .search-text {
                width: 100%;
                padding-right: 30px;
            }

            .multi-select .dropdown-menu .search .fa-search {
                position: absolute;
                left: calc(100% - 34px);
                top: 18px;
                color: #adb5bd;
            }

    .multi-select .dropdown-item {
        display: flex;
        padding: 0 10px;
        align-items: center;
        transition: all .3s linear;
    }

        .multi-select .dropdown-item.active {
            background-color: #dee2e6;
            color: inherit;
        }

        .multi-select .dropdown-item:hover {
            background-color: #6fd6e6;
        }

        .multi-select .dropdown-item > span {
            padding: 0.375rem 0.75rem;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .multi-select .dropdown-item .checkbox-label {
            display: none;
        }

    .multi-select.show .dropdown-menu,
    .multi-select.show .dropdown-menu-arrow {
        display: block;
    }

    .multi-select .multi-select-ph {
        padding: 0 1rem;
        color: #c0c4cc;
        line-height: 35px;
        position: absolute;
    }

    .multi-select .dropdown-item .form-label {
        display: none;
    }

    .multi-select .dropdown-item .form-check {
        width: auto;
    }

    .multi-select .dropdown-item:hover {
        background-color: #f1faff;
    }
