.select2-container { max-width: 100%; min-width: 0; font-size: var(--ui-text-small); }
.select2-container.w-auto { width: auto !important; min-width: 5rem; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    height: auto; min-height: 2.5rem; border-radius: .5rem; border-color: #cbd5e1;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 2.5rem; padding-right: 2.75rem; font-size: inherit; }
/* A seta nativa do Select2 é um triângulo feito com borda. O reset de borda da página zera esse triângulo e o campo fica igual a um texto. O chevron é uma imagem. */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0; right: 0; width: 2.5rem; height: 100%;
    border-left: 1px solid #e2e8f0; background: #f8fafc; border-radius: 0 .5rem .5rem 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: 0; margin: 0; left: 50%; top: 50%; width: 1.125rem; height: 1.125rem;
    transform: translate(-50%, -50%);
    background: center / 1.125rem 1.125rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
}
.select2-container--default.select2-container--focus .select2-selection { outline: 2px solid #2563eb; outline-offset: 2px; }
.select2-container--default .select2-selection--multiple { padding: .25rem .5rem; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: .125rem .25rem .125rem 0; background: #f1f5f9; border-color: #cbd5e1; font-size: var(--ui-text-small); }
.select2-container--default .select2-results__option,
.select2-container--default .select2-search__field { font-size: var(--ui-text-small); line-height: 1.35; }
.select2-container--default .select2-results__option { padding: .375rem .5rem; overflow-wrap: anywhere; }
.select2-container .select2-search--inline .select2-search__field {
    width: auto; max-width: 100%; height: auto; min-height: 1.5rem; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.select2-container--default.select2-container--disabled .select2-selection { background: #f1f5f9; color: #64748b; }
.select2-container.list-select-invalid .select2-selection { border-color: #dc2626; }
.list-select-error { display: block; margin-top: .25rem; color: #b91c1c; }
.select2-container.action-select .select2-selection--single { min-height: max(var(--ui-target-min), 2rem); }
.select2-container.action-select .select2-selection__rendered { line-height: 2rem; padding-right: 1.75rem; }
.select2-container.action-select .select2-selection__arrow { width: 1.75rem; height: 100%; }
