.select2-container {
  display: block;
}

.select2-container *:focus {
  outline: 0;
}

.select2-results {
  margin-top: 8px;
}

.input-group .select2-container--bootstrap4 {
  flex-grow: 1;
}

.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--bootstrap4 .select2-selection {
  width: 100%;
  background-color: var(--bs-body-bg);
  border: 0 solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

.select2-container--bootstrap4.select2-container--open.select2-container--above .select2-selection {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--bootstrap4.select2-container--open.select2-container--below .select2-selection {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-selection {
  cursor: not-allowed;
  background-color: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
  box-shadow: none;
}

.select2-container--bootstrap4.select2-container--disabled .select2-search__field, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-search__field {
  background-color: transparent;
}

select.is-invalid ~ .select2-container--bootstrap4 .select2-selection, form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection {
  border-color: #F94424;
}

select.is-valid ~ .select2-container--bootstrap4 .select2-selection, form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection {
  border-color: #28DD5F;
}

.select2-container--bootstrap4 .select2-search {
  width: 100%;
}

.select2-container--bootstrap4 .select2-dropdown {
  border-color: var(--bs-border-color);
  border-radius: 0;
  padding: 8px;
  background-color: #ccdbfc;
}

.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
  border: 1.5px solid var(--bs-border-color);
  border-top: none;
  border-bottom-right-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
}

.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
  border: 1.5px solid var(--bs-border-color);
  border-bottom: none;
  border-top-left-radius: var(--bs-border-radius);
  border-top-right-radius: var(--bs-border-radius);
}

.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected="true"] {
  color: var(--bs-body-bg);
  background-color: var(--bs-body-bg);
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected="true"] {
  color: color-yiq(#004CF0);
  background-color: #004CF0;
}

.select2-container--bootstrap4 .select2-results__option[role="group"] {
  padding: 0;
}

.select2-container--bootstrap4 .select2-results__option[role="group"] .select2-results__options--nested .select2-results__option {
  padding-left: 1em;
}

.select2-container--bootstrap4 .select2-results__option {
  padding: 0.375rem 0.75rem;
  color: #212121;
}

.select2-container--bootstrap4 .select2-results > .select2-results__options {
  max-height: 15em;
  overflow-y: auto;
}

.select2-container--bootstrap4 .select2-results__group {
  display: list-item;
  padding: 6px;
  color: #0035BD;
}

.select2-container--bootstrap4 .select2-selection__clear {
  float: right;
  width: .9em;
  height: .9em;
  padding-left: .15em;
  margin-top: .7em;
  margin-right: .3em;
  line-height: .75em;
  color: var(--bs-light);
  background-color: var(--bs-gray-300);
  border-radius: 100%;
}

.select2-container--bootstrap4 .select2-selection__clear:hover {
  background-color: var(--bs-gray-400);
}

.select2-container--bootstrap4 .select2-selection--multiple {
  min-height: calc(1.5em + 0.75rem + calc(1.5px * 2)) !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.375rem;
  margin: 0;
  list-style: none;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  float: left;
  padding: 0;
  padding-right: 0.75rem;
  margin-top: calc(0.375rem - 2px);
  margin-right: 0.375rem;
  color: var(--bs-body-color);
  cursor: pointer;
  border: 1px solid #bdbdc2;
  border-radius: var(--bs-border-radius-sm);
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
  color: var(--bs-body-color);
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice + .select2-search {
  width: 0;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
  float: left;
  padding-right: 3px;
  padding-left: 3px;
  margin-right: 1px;
  margin-left: 3px;
  font-weight: 700;
  color: #bdbdc2;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #010D1A;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
  position: absolute !important;
  top: 0;
  right: .7em;
  float: none;
  margin-right: 0;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
  padding: 0 5px;
  cursor: not-allowed;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  display: none;
}

.select2-container--bootstrap4 .select2-selection--single {
  height: calc(1.5em + 0.75rem + calc(1.5px * 2)) !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
  line-height: calc(1.6em + 0.8rem);
  color: #aaa;
  font-weight: 500;
  font-size: 1.125rem;
}

/* Muda a cor do placeholder quando hover no select */
.select2-container--bootstrap4 .select2-selection--single:hover .select2-selection__placeholder {
  color: #666;
}


/* Mudar a cor de fundo do select */
.select2-container--bootstrap4 .select2-selection:hover {
  background-color: #eee;
}


.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  background: none;
  position: absolute;
  top: 10px;
  right: 8px;
  /*width: 20px;*/
}
/*.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  background: none;
  border: none;
  width: 1.5em;
  height: 100%;
  top: 0;
  right: 0;
}*/
/* Esconde a seta padrão */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  display: none;
}
/*.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  margin-left: -4px;
  border-color: #010D1A transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0;
}*/
/* Adiciona um SVG como seta personalizada */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin: auto;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%231f1f1f"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}




.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  padding-left: 0.75rem;
  line-height: calc(1.8em + 0.8rem);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--bs-dark);
}

.select2-search--dropdown .select2-search__field {
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--bs-primary);
  border-radius: var(--bs-border-radius);
}

.select2-search--dropdown .select2-search__field:focus {
  border: 1.5px solid var(--bs-secondary);
  box-shadow: 0 0 0 0.5px var(--bs-secondary);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


@media (prefers-reduced-motion: reduce) {
  .select2-search--dropdown .select2-search__field:focus {
    transition: none;
  }
}

.select2-results__message, .loading-results {
  color: #00000088;
  font-size: .9em;
  font-weight: 500;
}



.select2-selection.select2-selection--single {
  height: 3rem !important;
}




