/* Shared Select2 controls across application areas. */
body .mx-select.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--mx-line, #e0e8f1);
  border-radius: 7px;
  background: #fcfcfd;
  outline: none;
  box-shadow: none;
}
body .mx-select.select2-container--default .select2-selection__rendered {
  width: 100%;
  padding: 0 36px 0 10px;
  color: var(--mx-ink, #263b53);
  font-size: .86rem;
  line-height: 38px;
}
body .mx-select.select2-container--default .select2-selection__arrow {
  top: 0;
  right: 12px;
  width: 16px;
  height: 38px;
}
body .mx-select.select2-container--default .select2-selection__arrow b {
  width: 6px;
  height: 6px;
  margin: -4px 0 0 -3px;
  border: solid #667c94;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
body .mx-select.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border: solid #667c94;
  border-width: 0 1.5px 1.5px 0;
  margin-top: -1px;
  transform: rotate(225deg);
}
body .mx-select-menu.select2-dropdown {
  overflow: hidden;
  margin-block: 5px;
  border: 1px solid #e0e8f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 59 89 / 12%);
  color: #263b53;
  font-family: var(--mx-font);
  font-size: .86rem;
}
/* Only the outer list owns gutters; optgroups must not add another inset. */
body .mx-select-menu .select2-results > .select2-results__options { padding: 4px; }
body .mx-select-menu .select2-results__options--nested { margin: 0; padding: 0; }
body .mx-select-menu .select2-results__option {
  margin: 0;
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
body .mx-select-menu .select2-results__option--group { padding: 0; }
body .mx-select-menu.select2-dropdown .select2-results__option--selected { background: #edf2f7; color: #263b53; }
body .mx-select-menu.select2-dropdown .select2-results__option--highlighted { background: #e2edf7; color: #174a75; }
body .mx-select-menu .select2-results__group { padding: 7px 10px 4px; color: #526780; font-weight: 600; }

body .mx-select.select2-container--default { max-width: 100%; min-width: 0; }
body .mx-select.select2-container--disabled .select2-selection { background: #f1f3f5; color: #667c94; cursor: not-allowed; }
body .mx-select.select2-container--default .select2-selection--multiple { min-height: 40px; border: 1px solid var(--mx-line, #e0e8f1); border-radius: 7px; padding: 3px 8px; }
body .mx-select.select2-container--default .select2-selection:focus { outline: none; box-shadow: none; }
body .mx-select.select2-container--default .select2-selection:focus-visible { background-color: #edf2f7; }
body .mx-select-menu .select2-search__field { border: 1px solid #d9dfe7; border-radius: 6px; padding: 7px 10px; }
body .badge-editor-shell .mx-select .select2-selection--single { min-height: 36px; }
body .badge-editor-shell .mx-select .select2-selection__rendered { line-height: 34px; }
body .badge-editor-shell .mx-select .select2-selection__arrow { height: 34px; }
