.tabella {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 1240px;
  margin: auto;
}

.row {
  display: flex;
  padding: 10px;
}

.row.header {
  font-weight: bold;
  background: transparent;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid #999;
}

.cell {
  flex: 1;
  padding: 10px;
  text-align: center;
}

.cell.upper .valore {
  text-transform: uppercase;
}

.details {
  display: none;
  margin-top: 10px;
  padding-left: 10px;
}

.tabella #tabella-voli .dettagli .row {
  border: none;
}

/* .dettagli .row:last-child {
            border-bottom: 1px solid #ddd;
        }*/
.dettagli {
  padding: 10px 0;
  margin-top: 10px;
  display: block;
}

.dettagli .row {
  border: none;
}

#filtro-form .riga {
  display: flex;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

#filtro-form .riga .colonna {
  flex: 1;
  min-width: 150px;
  height: 40px;
  display: flex;
}

#filtro-form {
  display: block;
  max-width: 700px;
  margin: auto;
  padding: 40px 0;
}

#filtro-form .riga .colonna select,
#filtro-form .riga .colonna input {
  width: 100%;
  background: #e7e7e7;
  border: 0;
  border-radius: 5px;
  padding: 5px;
  color: #757575;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 13px;
}

#filtro-form .riga .colonna .select2-selection__rendered {
  color: #757575;
  text-transform: uppercase;
  color: #757575;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

#filtro-form .riga .colonna .selection {
  width: 100%;
}

#filtro-form .riga .colonna .select2-selection,
#filtro-form .riga .colonna .select2-container {
  background: #e7e7e7;
  border: 0;
  border-radius: 5px;
  padding: 5px;
  padding: 0px;
  font-family: "Arial", sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-selection.select2-selection--multiple::after {
  /*border-color: #888 transparent transparent transparent;
     border-style: solid;
     height: 5px;
     left: 50%;
     margin-left: -4px;
     margin-top: -2px;
     position: absolute;
     top: 50%;
     width: 0;
     border-right: 1px solid #888;
     width: 5px;
     border-bottom: 0;
     border-bottom: 1px solid #888;
     transform: rotate(45deg);
     border-left: 0;
     border-top: 0;*/
  border-width: 1px !important;
  border-right: 10px !important;
  height: 6px !important;
  display: block !important;
  border-left: 1px solid #888 !important;
  border-bottom: 1px solid #888 !important;
  transform: rotate(-45deg) !important;
  border-right: 0 !important;
  margin: 0 !important;
  width: 6px !important;
  border-top: 0 !important;
  margin-right: 9px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent !important;
  border-width: 1px !important;
  border-right: 1px solid !important;
  transform: rotate(-136deg) !important;
}

#filtro-form .riga .colonna .selection ul li input {
  width: 100% !important;
}

.container img {
  display: block;
  margin: auto;
  max-width: 300px;
}

.container {
  padding: 60px 0;
}

#filtro-form button {
  margin: auto;
  display: block;
  border: 0;
  padding: 10px 60px;
  font-size: 18px;
  background: #0050a7;
  color: #fff;
  border-radius: 5px;
}

.tabella .blu {
  color: #6fafd3;
}

#filtro-form .riga:nth-child(2) {
  padding-bottom: 20px;
}

.display-mobile {
  display: none;
}

.tabella #tabella-voli > .row:not(:first-child) {
  border-top: 1px solid #ddd;
}

.solo-mobile {
  visibility: hidden;
}

@media (max-width: 767px) {
  .display-mobile {
    display: block;
    font-weight: bold;
    padding-bottom: 10px;
  }
  .solo-mobile {
    visibility: visible;
  }
  #tabella-voli .row {
    flex-flow: column;
  }
  .row.header {
    display: none;
  }
  #filtro-form .riga .colonna {
    max-width: 100%;
    min-width: 100%;
  }
  #filtro-form .riga .colonna span.select2 {
    width: 100% !important;
  }
  .tabella {
    border: 0;
  }
  .tabella .row {
    background: #F6F6F6;
    border: 0;
  }
  .tabella .dettagli {
    padding: 0;
    margin: 0;
    margin-top: -10px;
  }
  .tabella #tabella-voli > .row {
    margin-bottom: 10px;
    margin-bottom: 5px;
    margin-top: 15px;
    border: 0;
  }
  .dettagli .row:last-child {
    border: 0;
    border-top: 1px solid #ddd;
  }
  .dettagli .row {
    border-top: 1px solid #ddd;
  }
  .tabella #tabella-voli .dettagli .row {
    background-color: #F6F6F6;
    border-top: 1px solid #ddd;
  }
  .tabella #tabella-voli > .row:not(:first-child) {
    border-top: 0;
  }
  #filtro-form button {
    width: 100%;
  }
  #filtro-form {
    display: block;
    max-width: 700px;
    margin: 3%;
    padding: 40px 0;
  }
  #tabella-voli {
    display: block !important;
    margin: 3%;
  }
  .flatpickr-calendar:nth-last-of-type(1) {
    margin-top: -64px;
    margin-right: auto;
  }
  .flatpickr-calendar:nth-last-of-type(2) {
    margin-top: -105px;
  }
  .no-mobile {
    display: none !important;
  }
}
.loader-container {
  display: none;
  position: absolute;
  /* Cambiato da fixed ad absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 100;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 8px;
}

#flights-filter .loader-container {
  top: 200px;
  /* Posizione sotto il form */
  height: calc(100% - 200px);
  /* Altezza rimanente */
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

.loader-container {
  display: none;
  text-align: center;
  padding: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#compagnia[disabled],
#destinazione[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.select2-container--disabled .select2-selection {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

#contenitore-calendar {
  position: static;
}

#contenitore-calendar .flatpickr-calendar {
  position: static !important;
}

.flatpickr-calendar:nth-last-of-type(2) {
  margin-right: auto;
}

.intestazione {
  max-width: 300px;
  border-bottom: 1px solid #0B1A34;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: auto;
}

.intestazione img {
  width: auto;
  max-width: 90px;
  margin: 0;
  height: 23px;
}

.intestazione p {
  margin: 0;
  padding-bottom: 7px;
  color: #0B1A34;
  font-family: "Euclid Circular B";
  font-size: 0.8125rem;
}