.select2-container{
  z-index:999
}

/*
 * Plugin: Select2
 * ---------------
 */
.select2-container--default.select2-container--focus,
.select2-selection.select2-container--focus,
.select2-container--default:focus,
.select2-selection:focus,
.select2-container--default:active,
.select2-selection:active {
  outline: none;
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
  border: 1px solid #d2d6de;
  border-radius: 0;
  padding: 6px 12px;
  height: 34px;
}

.select2-container--default.select2-container--open {
  border-color: #3c8dbc;
}

.select2-dropdown {
  border: 1px solid #d2d6de;
  border-radius: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #3c8dbc;
  color: white;
}

.select2-results__option {
  padding: 6px 12px;
  user-select: none;
  -webkit-user-select: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
  padding-right: 0;
  height: auto;
  margin-top: -4px;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 6px;
  padding-left: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 28px;
  right: 3px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 0;
}

.select2-dropdown .select2-search__field,
.select2-search--inline .select2-search__field {
  border: 1px solid #d2d6de;
}

.select2-dropdown .select2-search__field:focus,
.select2-search--inline .select2-search__field:focus {
  outline: none;
  /* border: 1px solid #3c8dbc; */
}

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #999;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ddd;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[aria-selected=true]:hover {
  color: #444;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #d2d6de;
  border-radius: 0;
}

.select2-container--default .select2-selection--multiple:focus {
  border-color: #3c8dbc;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #d2d6de;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #3c8dbc;
  border-color: #367fa9;
  padding: 1px 10px;
  color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.7);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-right: 10px;
}

/* open on top layer */
.select2-container--open {
  z-index: 9999999
}

/* give border button on each option*/
.select2-results__option {
  border-bottom: 1px solid #dedede;
}

/* validation*/
.select2-selection.is-valid,
.was-validated select.select2:valid .was-validated select.ajaxSelect2:valid {
  border-color: #28a745 !important;
  /* padding-left: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) */
}

.select2-selection.is-invalid,
.was-validated select.select2:invalid .was-validated select.ajaxSelect2:invalid {
  border-color: #dc3545 !important;
  padding-left: 2.25rem !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem)
}

/********** select2multicheck ***********/
.select2-results__option .wrap:before {
  font-family: fontAwesome;
  color: #3c8dbc;
  content: "\f096";
  width: 25px;
  height: 25px;
  padding-right: 10px;

}

.select2-results__options_MultiCheckboxes>.select2-results__option--highlighted[aria-selected] {
  background-color: #ffffff !important;
  color: #3c8dbc !important;
}

.select2-results__options_MultiCheckboxes>.select2-results__option[aria-selected=true],
.select2-results__options_MultiCheckboxes>.select2-results__option[aria-selected=true]:hover {
  color: #3c8dbc !important;
  background-color: #fff !important;
}

.select2-results__option[aria-selected=true] .wrap:before {
  content: "\f14a";
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
  border: 1px solid #d2d6de;
  border-radius: .25rem !important;
  padding: 6px 12px;
  height: 39px !important;
}

.select2-container--default .select2-selection--multiple,
.select2-selection .select2-selection--multiple {
  border: 1px solid #d2d6de;
  border-radius: .25rem !important;
  min-height: 39px !important;
}

.text-sm .select2-container--default .select2-selection--single .select2-selection__arrow,
select.form-control-sm~.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0.2rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 10px;
}


/* fix iphone notch */
.modal,.modal-safe-area {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* @supports (-webkit-touch-callout: none) { */
  /* .modal,.modal-safe-area { */
    /* Stili specifici per Safari */
    /* padding-top: 50px; */
    /* O un valore basato su test */
  /* } */

  /* .header .header-logo {
    margin-top: 25px !important;
  } */
/* } */

