.multi-select-container {
    display: block;
    position: relative;
}
.form-select+.multi-select-container > .form-select {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-select.is-invalid+.multi-select-container > .form-select, .was-validated .form-select:invalid+.multi-select-container > .form-select {
    border-color: #dc3545;
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),
                      url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right .75rem center,center right 2.25rem;
    background-size: 16px 12px,calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-select.is-valid+.multi-select-container > .form-select, .was-validated .form-select:valid+.multi-select-container > .form-select {
    border-color: #198754;
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),
                      url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position: right .75rem center,center right 2.25rem;
    background-size: 16px 12px,calc(.75em + .375rem) calc(.75em + .375rem);
}

.multi-select-menu {
    position: absolute;
    left: 0;
    top: 1.35rem;
    z-index: 1;
    float: left;
    min-width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid #767676;
    box-shadow: 0 1px 8px 3px rgba(0, 0, 0, .15);
    display: none;
    overflow-x: hidden!important;
    overflow-y: auto!important;
}

.multi-select-item.form-check {
    padding-left: 2em;
    white-space: nowrap;
    margin-bottom: 0;
}

.multi-select-item.form-check:hover {
    background-color: #0d6efd;
    color: #fff;
}

.multi-select-container--open .multi-select-menu {
    display: block;
}
