.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  min-height: calc(2.375rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #212529;
  line-height: 1.5;
  padding-left: 0;
  padding-right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.4rem 0.65rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #0d6efd;
}

.select2-dropdown {
  border-color: #ced4da;
}

.select2-container--open {
  z-index: 2056;
}

.select2-sm .select2-selection--single {
  min-height: calc(1.8125rem + 2px);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-left: 0.5rem;
}

.select2-sm .select2-selection--single .select2-selection__rendered {
  font-size: 0.875rem;
}

.select2-lg .select2-selection--single {
  min-height: calc(3.5rem + 2px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
}

body.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-dropdown,
body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #1e1e1e;
  border-color: #444;
  color: #f0f0f0;
}

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.dark-mode .select2-results__option,
body.dark-mode .select2-search__field {
  color: #f0f0f0;
}

body.dark-mode .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #2a2a2a;
}
