  /* Definisco uno stile personalizzato per le sezioni accordion */
  .accordion-body {
    background-color: rgb(235, 236, 236);
  }

  .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgb(13, 110, 253)' class='bi bi-plus-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z'/%3E%3C/svg%3E");
  }

  .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgb(13, 110, 253)' class='bi bi-dash-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1z'/%3E%3C/svg%3E");
  }

  .modal .select2-container {
    z-index: 9999 !important;
  }

  /* Definizione colore e stile per il pullsante home del menu */
  /* HOME non attivo: testo e icona rossi */
  #Home {
    color: red !important;
  }

  #Home i {
    color: red !important;
  }

  /* HOME attivo: sfondo rosso, testo e icona bianchi */
  #Home.nav-link.active {
    background-color: red !important;
    color: white !important;
  }

  #Home.nav-link.active i {
    color: white !important;
  }

  .disabled-link {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
  }

  .toggle-on,
  .toggle-off {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  #dateErrorToast {
    top: 30%;
    /* o un valore a tuo piacere */
  }

  .box-livello,
  .box-clienti {
    min-height: 300px;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
  }

  .cliente-card {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    cursor: grab;
  }


  /* Per il calendario */
  .clienti-livelli {
    padding: 5px;
    margin-bottom: 5px;
    min-height: 100px;
    border: 1px dashed #ccc;
  }

  .guida-assente {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
  }

  .guida-presente {
    background-color: #d1e7dd !important;
    border: 2px solid #198754 !important;
  }

  .giorno-col {
    min-width: 200px;
    border: 1px solid #ccc;
    padding: 10px;
  }

  .guida-box {
    padding: 5px;
    margin-bottom: 5px;
    cursor: grab;
    border: 1px solid #aaa;
    border-radius: 4px;
  }

  .guida-box.presente {
    background-color: #d4edda;
  }

  .guida-box.assente {
    background-color: #f8d7da;
  }

  .drop-area {
    min-height: 50px;
    border: 2px dashed #aaa;
    padding: 5px;
    margin-top: 5px;
    border-radius: 4px;
  }

  .cliente.hidden {
    display: none;
  }

  /* .guida-assente {
      background-color: red !important;
      color: white;
    } */

#loadingOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center; /* centro orizzontalmente */
  z-index: 9999;
  display: none;                
  align-items: center;
}

#loadingOverlay .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

.container {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.no-border {
  background-color: #1D2E59 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Se voglio mettere lo sfondo blu con immagini ai lati */
 body {
  background-color: #1D2E59 !important;
  margin: 0;
  padding: 0;
}
/*

.table-responsive {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  z-index: 1;
}
*/

/* Mobile: nascoste */
.side-image {
  display: none;
}

/* Tablet: visibili ma ridotte */
@media (min-width: 769px) and (max-width: 1024px) {
  .side-image {
    display: block;
    position: fixed;
    top: 0;
    width: 200px; 
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.55;
    z-index: 0; 
  }

  .side-image.left {
    left: 20px;
    background-image: url('../img/gbh-pattern-20-anni.png');
  }

  .side-image.right {
    right: 20px;
    background-image: url('../img/gbh-pattern-20-anni.png');
  }
}

/* Desktop: visibili normali */
@media (min-width: 1025px) {
  .side-image {
    display: block;
    position: fixed;
    top: 0;
    width: 350px; 
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.55;
    z-index: 0; 
  }

  .side-image.left {
    left: 20px;
    background-image: url('../img/gbh-pattern-20-anni.png');
  }

  .side-image.right {
    right: 20px;
    background-image: url('../img/gbh-pattern-20-anni.png');
  }
}

a.text-white {
    transition: color 0.2s ease  !important;
}

a.text-white:hover {
    color: rgba(255, 255, 255, 0.7)  !important; /* meno intenso */
}
