.vagon-select{max-width:100%;min-width:0;vertical-align:middle;font:inherit;text-align:start}
.vagon-select[hidden]{display:none!important}
.vagon-select.select2-container .select2-selection{min-height:36px;height:auto;background:var(--vagon-select-bg,var(--bs-body-bg,var(--card-bg,#fff)));color:var(--vagon-select-color,var(--bs-body-color,var(--text-main,#243247)));border:1px solid var(--bs-border-color,var(--border-color,#cbd5e1));border-radius:6px;font:inherit;outline:none}
.vagon-select.select2-container .select2-selection--single .select2-selection__rendered{color:inherit;line-height:1.45;padding:7px 30px 7px 10px;white-space:normal;overflow-wrap:anywhere}
.vagon-select .select2-selection__arrow{top:5px!important}
.vagon-select.select2-container--focus .select2-selection,.vagon-select.select2-container--open .select2-selection{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}
.vagon-select .select2-selection[aria-invalid=true]{border-color:#dc3545}
.vagon-select.select2-container--disabled .select2-selection{opacity:.65;cursor:not-allowed}
.vagon-select .select2-selection--multiple .select2-selection__rendered{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:4px;max-width:100%}
.vagon-select .select2-selection--multiple .select2-selection__choice{margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;background:#3b82f612;color:inherit;border-color:#94a3b850}
.vagon-select .select2-search--inline{min-width:30px;max-width:100%;flex:1}
.vagon-select .select2-search--inline .select2-search__field{max-width:100%;color:inherit;margin-top:2px;font:inherit}
.select2-container:has(>.vagon-select-dropdown){z-index:2147483000;max-width:calc(100vw - 16px)}
.vagon-select-dropdown{background:var(--vagon-select-bg,var(--bs-body-bg,var(--card-bg,#fff)));color:var(--vagon-select-color,var(--bs-body-color,var(--text-main,#243247)));border:1px solid #94a3b8;border-radius:6px;box-shadow:0 8px 24px #0002;font-size:14px;line-height:1.45;font-family:inherit;text-align:start}
.vagon-select-dropdown .select2-results__option{white-space:normal;overflow-wrap:anywhere;padding:9px 12px}
.vagon-select-dropdown .select2-results>.select2-results__options{max-height:min(280px,45dvh);overscroll-behavior:contain}
.vagon-select-dropdown .select2-results__option[aria-selected=true]{background:#3b82f61f;color:inherit}
.vagon-select-dropdown .select2-results__option--highlighted[aria-selected]{background:#2563eb;color:#fff}
.vagon-select-dropdown .select2-search__field{background:inherit;color:inherit;border:1px solid #94a3b8!important;border-radius:4px;min-height:34px;font:inherit}
.vagon-select-validation{display:block;color:#dc3545;font-size:12px;margin:4px 0}
html[data-frontend-site] .vagon-select,html[data-frontend-site] .vagon-select-dropdown{--card-bg:#1e293b;--text-main:#e2e8f0;--border-color:#475569}
html[data-theme=dark] .vagon-select,html[data-theme=dark] .vagon-select-dropdown,body.dark-mode .vagon-select,body.dark-mode .vagon-select-dropdown,.ds-dark .vagon-select{--bs-body-bg:#1e293b;--bs-body-color:#e2e8f0;--bs-border-color:#475569;--card-bg:#1e293b;--text-main:#e2e8f0}
.bo-filter-fields .vagon-select,.bo-filter-general .vagon-select{width:100%!important}
@media(max-width:767px){.vagon-select.select2-container .select2-selection{min-height:42px}.vagon-select-dropdown .select2-search__field{font-size:16px}.vagon-select-dropdown .select2-results__option{min-height:40px}}

.dataTables_length .vagon-select{width:80px!important;margin-inline:5px}

/* Select2 attaches the scoped class to its portal wrapper. Theme its inner panel too. */
.vagon-select-dropdown .select2-dropdown{background:inherit;color:inherit;border-color:inherit;border-radius:inherit}
