/*ZINDEX SELECTIZE*/
.selectize-input {
    z-index: inherit;
    padding-left: 0.4rem;
    padding-right: 0.4rem;

    word-wrap: break-word!important;/*copié de text-break*/
    word-break: break-word!important;
}
/* cas avec clear button */
.selectize-control.plugin-clear_button .selectize-input {
    padding-right: calc(0.5rem +  26px);
}

.selectize-control.single .selectize-input:after {
    right: 0.4rem;
}
.selectize-control.plugin-clear_button.single .clear {
    width: 13px;
    padding: 0;
    margin: 0;
    right: calc(0.5rem +  13px);/*13 = largeur de l'icone dropdown*/
    margin-top: -1px;
}
.selectize-control.plugin-clear_button.multi .clear {
    right: 0;
}

/*LOADER SELECTIZE*/
.selectize-control.loading::before {
    animation: selectize-load-rotate 1.5s linear infinite;
    opacity: 0.4;
    display: block;
}

.selectize-control::before {
    font-family: 'Font Awesome\ 6 Free';
    font-weight: 900;
    content: '\f110';
    z-index: 2;
    position: absolute;
    display: block;
    top: 20%;
    /*right: 34px;*/
    right: calc(0.5rem + 10px + 20px);
    /*width: 16px;
    height: 16px;*/
    opacity: 0;
    display: none;
}

@keyframes selectize-load-rotate {
    to {
        transform: rotate(360deg);
    }
}

/*BTN CLOSE SELECTIZE*/
.selectize-control.plugin-remove_button .remove-single {
    position: inherit;
    font-family: 'Font Awesome\ 6 Free';
    font-weight: 900;
    font-size: inherit;
    padding: 5px;
}

.selectize-control.plugin-remove_button .remove-single:hover {
    text-decoration: none;
}

.selectize-dropdown,
.selectize-dropdown.form-control {
    z-index: 1100;
    /*sup à z-index modal*/
}

/*IS INVALID SELECTIZE */
.form-control.is-invalid~.selectize-control .selectize-input {
    border-color: var(--bs-danger);
}

/*REDUCTION DES MARGES DES ELEMENTS DU DROPDOWN DROPDOWN*/
.selectize-dropdown-content>.dropdown-item {
    padding: 0.25rem 0.5rem;
}