/* Custom su stili Start Bootstrap (https://startbootstrap.com/previews/sb-admin) */
:root{
  --bs-font-sans-serif: "Open Sans", sans-serif;
  /*--bs-font-sans-serif: "open sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
  --bs-body-font-size: 0.85rem;
  --bs-body-bg: #f1f5fe;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.15);
}
.card{
  --bs-card-border-width: 0px;
}
.shadow{
  box-shadow: 0 1px 4px 0px rgb(0 0 0 / 15%) !important;
}

/* Per la stampa */ 
@media print{
  * {
    background: rgba(0, 0, 0, 0) !important;
    color: rgb(0, 0, 0) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .card{
    border: 1px solid #808080;
    box-shadow: none;
  }
}

/* Login */
#layoutAuthentication{
  background-color: #f1f5fe;
  background-size: 100% 100%;
  background-position: 0px 0px,0px 0px,0px 0px,0px 0px,0px 0px,0px 0px,0px 0px;
  background-image: radial-gradient(18% 28% at 18% 71%, #FFFFFF59 6%, #073AFF00 100%),radial-gradient(70% 53% at 36% 76%, #F1F5FEFF 0%, #073AFF00 100%),radial-gradient(18% 28% at 35% 87%, #FFFFFFFF 7%, #073AFF00 100%),radial-gradient(35% 56% at 91% 74%, #f1f5fe 9%, #073AFF00 100%),linear-gradient(90deg, #F1F5FEFF 0%, #D1ECF3FF 100%);
}
@media (min-width: 768px) {
  #layoutAuthentication_content{
    background-size: 500px; 
  }
}
@media (min-width: 1200px) {
  #layoutAuthentication_content{
    background-size: 600px; 
  }
}
#layoutAuthentication .impianto__logo{
  margin: 0 auto 0 auto;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
#layoutAuthentication .impianto__logo img{
  object-fit: contain;
  height: 80px;
}

/* Floating inputs smaller */
.form-floating>.form-control,
.form-floating>.form-control-plaintext {
  padding: 0rem 0.75rem;
}
.form-floating>.form-control,
.form-floating>.form-control-plaintext,
.form-floating>.form-select {
  height: calc(2.5rem + 2px);
  line-height: 1;
}
.form-floating>label {
  padding: 0.6rem 0.75rem;
}
.form-floating > .form-control:focus, .form-floating > .datatable-input:focus, .form-floating > .form-control:not(:placeholder-shown), .form-floating > .datatable-input:not(:placeholder-shown), .form-floating > .form-control-plaintext:focus, .form-floating > .form-control-plaintext:not(:placeholder-shown){
  padding-top: .9rem;
  padding-bottom: .1rem;
}

/* Navbar > Logo SummeGest*/
.navbar-brand{
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand > .summergest__simbolo{
  display: inline-block;
  width: 31px;
  height: 30px;
  fill: #fff;
}
.navbar-brand > .summergest__testo{
  display: inline-block;
  width: 117px;
  height: 30px;
  fill: #fff;
}
.navbar-brand > .summergest__link:hover .summergest__simbolo,
.navbar-brand > .summergest__link:hover .summergest__testo{
  fill: #fff;
}

/* Map Controls */
.custom-controls{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  row-gap: 10px;
  position: absolute;
  z-index: 999;
  /*top: 0;
  left: 0;*/
  margin: 10px;
}
.custom-controls a{
  text-decoration: none;
}
.custom-controls > a div{
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  height: auto;
  font-size: 1.25rem;
  width: 45px;
  color: #fff;
  background: var(--bs-dark);
  background-size: 100% 100%;
  background-position: 0px 0px;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  transition-duration: 0.2s;
}
.custom-controls > a div:hover {
  transform: scale(1.2);
}
#full-page{ /* nasconde button fullscreen */
  display: none !important;
}
/* Map */
.map{
  width: 100%;
  height: 70svh;
  overflow: hidden;
  border: none;
  background: #aaa;
  border-radius: var(--bs-border-radius);
  background-size: cover;
  background-position: center center;
}
.markerfree,
.markerbooked,
.markerwaiting{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: arial, sans-serif;
  font-weight: bold;
  font-size: 14px; /* 16px; */
  line-height: 30px;
  text-decoration: none;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  outline: 2px solid #fff; /* better use outline than border (border affect the size of the element causing a misplacement) */
  transition-duration: 0.2s;
  transition-property: transform; /* Important, to animate just scaling on mouse hover; otherwise, apply the animation to all movements when markers are panned and zoomed.  */
  /* Commentata l'ombra perchè con molti overlays faceva laggare il pan e zoom su cell */
  /*-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);*/ 
}
.markerfree{
  color: #fff;
  background: #1BC900;
}
.markerbooked,
.markerwaiting{
  color: rgba(255,255,255,0.6);
  background: #aaa;
  cursor: help; /*cursor: not-allowed;*/
}
.markerfree:hover, .markerfree:focus{
  transform: scale(1.2);
  color: #fff;
}
.markerbooked:hover, .markerbooked:focus,
.markerwaiting:hover, .markerbooked:focus{
  color: rgba(255,255,255,0.6);
}
/* Messaggio chisura */
.mapclosed{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(225, 225, 225, 0.7); /* Sfondo trasparente */
  backdrop-filter: blur(5px); /* Effetto blur */
}

/* Footer > logo Summergest */
.footer__bysiteland{
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
}
.summergest__link{
  text-decoration: none;
  white-space: nowrap;
}
.summergest__simbolo{
  display: inline-block;
  width: 31px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.summergest__testo{
  display: inline-block;
  width: 117px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.summergest__link:hover .summergest__simbolo,
.summergest__link:hover .summergest__testo{
  fill: #2636AC;
}

/* Data tables custom (riscrittura custom di https://cdn.jsdelivr.net/npm/vanilla-datatables@latest/dist/vanilla-dataTables.min.css) */
.dataTable-wrapper.no-header .dataTable-container {
  border-top: 1px solid #d9d9d9
}
/*.dataTable-wrapper.no-footer .dataTable-container {
  border-bottom: 1px solid #d9d9d9
}*/
/*.dataTable-bottom,
.dataTable-top {
  padding: 8px 10px
}*/
.dataTable-bottom>div:first-child,
.dataTable-top>div:first-child {
  float: left
}
.dataTable-bottom>div:last-child,
.dataTable-top>div:last-child {
  float: right
}
.dataTable-selector {
  padding: 6px
}
.dataTable-input {
  padding: 6px 12px
}
.dataTable-info {
  margin: 7px 0
}
.dataTable-pagination ul {
  margin: 0;
  padding-left: 0
}
.dataTable-pagination li {
  list-style: none;
  float: left
}
.dataTable-pagination a {
  border: 1px solid transparent;
  float: left;
  margin-left: 2px;
  padding: 6px 12px;
  position: relative;
  text-decoration: none;
  color: #333
}
.dataTable-pagination a:hover {
  background-color: #d9d9d9
}
.dataTable-pagination .active a,
.dataTable-pagination .active a:focus,
.dataTable-pagination .active a:hover {
  background-color: #d9d9d9;
  cursor: default
}
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover,
.dataTable-pagination .ellipsis a {
  cursor: not-allowed
}
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
  opacity: .4
}
.dataTable-pagination .pager a {
  font-weight: 700
}
.dataTable-table {
  max-width: 100%;
  width: 100%;
  border-spacing: 0
}
.dataTable-table>tbody>tr>td,
.dataTable-table>tbody>tr>th,
.dataTable-table>tfoot>tr>td,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>td,
.dataTable-table>thead>tr>th {
  /*vertical-align: top;*/
  padding: 8px 10px
}
.dataTable-table th,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>th {
  vertical-align: bottom;
  text-align: left
}
.dataTable-table>thead>tr>th {
  border-bottom: 1px solid #d9d9d9
}
.dataTable-table>tfoot>tr>th {
  border-top: 1px solid #d9d9d9
}
.dataTable-table th a {
  text-decoration: none;
  color: inherit
}
.dataTable-sorter {
  display: inline-block;
  height: 100%;
  position: relative;
  width: auto;
}
.dataTable-sorter::after,
.dataTable-sorter::before {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  right: -12px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .2
}
.dataTable-sorter::before {
  border-top: 4px solid #000;
  bottom: 5px
}
.dataTable-sorter::after {  
  border-bottom: 4px solid #000;
  border-top: 4px solid transparent;
  bottom: 12px;  
}
.asc .dataTable-sorter::after,
.desc .dataTable-sorter::before {
  opacity: .6
}
.dataTable-sorter:empty,
.dataTable-sorter:empty::before,
.dataTable-sorter:empty::after{
  display: none; /* non mostra le frecce per l'ordinamento se la colonna non ha testo nel th */
}
.dataTables-empty {
  text-align: center
}
.dataTable-bottom::after,
.dataTable-top::after {
  clear: both;
  content: " ";
  display: table
}




.no-border{
  border:none;
}

.d-flex {
  display: flex;
}

.align-middle {
  vertical-align: middle;
}

.description-text {
  white-space: nowrap;
  margin-right: 10px; /* Distanza tra il testo e la linea */
}

.line-arrow {
  border-bottom: 2px solid #000; /* Linea orizzontale */
  height: 2px;
  position: relative;
  margin-right: 20px; /* Spazio extra per la freccia */
}

.line-arrow::after {
  content: '';
  position: absolute;
  right: -15px; /* Posizione della freccia */
  top: 50%; /* Centra verticalmente */
  transform: translateY(-50%); /* Centra la freccia rispetto alla linea */
  border-left: 2px solid #000; /* Parte della freccia */
  border-top: 2px solid #000; /* Parte della freccia */
  width: 10px; /* Larghezza della freccia */
  height: 10px; /* Altezza della freccia */
  transform: translateY(-50%) rotate(135deg); /* Ruota per formare la freccia */
}

option:disabled {
  color: rgba(0, 144, 218, 0.6);
  font-weight: bold; /* Opzionale, per far risaltare l'opzione disabilitata */
}

.banner-conferma {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  text-align: center;
  width: 100%;
  opacity: 1; /* visibile di default */
  transition: opacity 1s ease; /* Transizione dell’opacità */
}
.banner-conferma.hidden {
  opacity: 0; /* Nascondi con transizione */
}

.form-check-input:checked + .form-check-label {
  border: 2px solid #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3); /* Ombra attorno al bordo */
}

.form-check-label {
  cursor: pointer; /* Cambia il cursore al passaggio sopra */
}

.pallini_stati{
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-block;
}






/* CAMBIO COLORI */

.bg-dark{
  background-color: #004B87 !important;
}

.sb-sidenav-dark {
  background-color: rgba(0, 144, 218, 0.6);
  /*background-color: #0090DA!important;*/
}

.sb-sidenav-footer {
  background-color: #004B87!important;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link {
  /*font-size: 1.1rem;*/
  font-weight: bold;
  /*color: rgba(0, 75, 135, 1);*/
  color: rgba(0, 0, 0, 0.6);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
  /*font-size: 1.1rem;*/
  font-weight: bold;
  /*color: rgba(0, 75, 135, 1);*/
  color: rgba(0, 0, 0, 0.45);

}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
  /*font-size: 1.1rem;*/
  font-weight: bold;
  /*color: rgba(0, 75, 135, 1);*/
  color: rgba(0, 0, 0, 0.45);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
  color: #000;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
  color: #000;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: #000;
}

hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.4); 
  opacity: 1;
}

.title-dashboard{
  color: #004B87 !important;
}

.subtitle-dashboard{
  color: #0090DA!important;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
  top: 30px;
}

/* Per dispositivi con larghezza inferiore a 768px */
@media (max-width: 768px) {
  .card-body h5 {
      font-size: 1.1rem; /* Ridurre il font dei titoli */
  }

  .table {
      font-size: 0.9rem; /* Ridurre la dimensione del testo nella tabella */
  }

  .table td, .table th {
      padding: 0.3rem; /* Ridurre il padding delle celle */
  }

  .card {
      margin-bottom: 1rem; /* Aggiungi un po' di spazio extra tra le card */
  }

  .card-body {
      padding: 0.8rem; /* Ridurre il padding della card */
  }
}

.font-size-responsive {
  font-size: 0.6em;
}
.pallini-responsive{
  margin-left: 0px;
  margin-right: 0px;
}

@media (min-width: 768px) { /* Per schermi >= md */
  .font-size-responsive {
      font-size: 0.8em;
  }
  .pallini-responsive{
    margin-left: 30px;
    margin-right: 30px;
  }
}

/* ======================================================================================================================== */

/* TUTTA LA ROBA DEL SELECT PERSONALIZZATO X AVERE LA RICERCA */

.ss-main * {
  cursor: default !important;
}

/* Contenitore visibile (sostituisce la <select>) */
.ss-main {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-clip: padding-box;
  padding-bottom: .1rem!important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  
}

.ss-main .ss-single-selected {
  height: 42px!important;
  display: flex;
  cursor: pointer;
  width: 100%;
  height: 30px;
  padding: 6px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  background-color: #fff;
  outline: 0;
  box-sizing: border-box;
  transition: background-color .2s;
}

.ss-main .placeholder{
  background-color: #fff!important;
  opacity: 1!important;
  color: #212529!important;
  padding: .9rem 0.4rem .1rem 0.4rem;
}

/* Focus */
.ss-main.ss-open {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Testo selezionato */
.ss-single {
  color: #212529;
}

/* Campo di ricerca (dentro il dropdown) */
.ss-search input {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

/* Lista delle opzioni */
.ss-list {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  max-height: 250px;
  overflow-y: auto;
  background-color: #fff;
  font-size: 1rem;
  color: #212529;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Opzioni base */
.ss-option {
  padding: 0.375rem 0.75rem;
}

/* Hover / Highlight su opzione */
.ss-option:hover,
.ss-option.ss-highlighted {
  background-color: #e9ecef;
}

/* Opzione selezionata */
.ss-option.ss-selected {
  background-color: #0d6efd;
  color: #fff;
}

/* Freccia */
.ss-arrow {
  border-color: #212529 transparent transparent transparent;
}

/* Disabilitato */
.ss-main.ss-disabled {
  background-color: #e9ecef;
  opacity: 1;
}

.label-ss{
  box-sizing: border-box;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  padding: 0.6rem 0.75rem;
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.sticky-bottom {
  z-index: 1009!important;
}

/*override del componente della select a ricerca*/
.ss-list{
  line-height:0.8em!important;
  max-height: 300px!important;
}