/*
 * Listes déroulantes avec recherche (Select2, thème Bootstrap 5) :
 * bords légèrement arrondis, cohérents avec les champs du projet.
 */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: .6rem;
    min-height: calc(1.5em + .75rem + 2px);
}
.select2-container--bootstrap-5 .select2-selection--single.select2--small,
.select2-container--bootstrap-5 .select2-selection.select2--small {
    border-radius: .5rem;
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: .6rem;
    overflow: hidden;
    box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .12);
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border-radius: .5rem;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    border-radius: .4rem;
    margin: 0 .25rem;
}
/*
 * Dans un groupe Bootstrap (icône + liste, liste + bouton) : la liste prend la
 * place restante sur la même ligne, et ses coins se raccordent aux voisins.
 */
.input-group > .select2-container--bootstrap-5 {
    position: relative;
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}
.input-group > .input-group-text + select + .select2-container--bootstrap-5 .select2-selection,
.input-group > .btn + select + .select2-container--bootstrap-5 .select2-selection {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group > .select2-container--bootstrap-5:has(+ .input-group-text) .select2-selection,
.input-group > .select2-container--bootstrap-5:has(+ .btn) .select2-selection {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Dans une fenêtre Bootstrap, la liste passe au-dessus du contenu de la fenêtre. */
.modal .select2-container--bootstrap-5 .select2-dropdown {
    z-index: 1060;
}
