/* Navbar autunnale con gradiente animato */
.main-header.stagione-autunno {
  background: linear-gradient(90deg, #ffb347, #ffcc80);
  background-size: 200% 100%;
  animation: sfondoAutunno 10s linear infinite;
}

/* Animazione gradiente */
@keyframes sfondoAutunno {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* background custom per differenziare liste (es. banner) */
.bg-gray-medium {
  background: rgba(0,0,0,.1) !important;
  
}


/* ottimizzo le select con ricerca incorporata - es. la tendina di scelta cliente */
.select2-container--default .select2-selection--single {
  height: calc(2.25rem + 2px);
  padding: .46875rem .75rem;
  border: 1px solid #ced4da;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
  height: auto;
  margin-top: -3px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 31px;
  top: 3px;
  right: 6px;
}


/* ottimizzo su mobile lo scroll orizzontale in elenco banner */
@media (max-width:768px) {
  .text-nowrap-sm {
    white-space: nowrap !important;
	letter-spacing: -0.05em;
  }
  .text-wrap-sm {
    display: block;
    max-width: 100%;
    white-space: normal;
  }
}


/* CALENDARIO usato es. in banner in "Verifica disponibilità" e "Verifica posizioni giornali" e anche in "Calendario avvisi" */
.fc-scroller {
	height: auto !important;
}
.fc-row table {
    border-left: 1px solid #ddd ;
    border-right: 1px solid #ddd ;
}
.fc-time {
  display: none !important;
}

.marker{
  background: yellow;
}

/* sistemo posizione badge "nome utente" su icona "Modifica utente" nella navbar in alto */
.navbar-badge {
  right: 35px !important;
}

.button_fatture{
  padding: 0px;
  margin: 0px;
  border: 0px;
  background: none;
}

.color-palette-set {
  margin-bottom: 15px;
}

.color-palette {
  height: 35px;
  line-height: 35px;
  text-align: center;
  padding-right: .75rem;
  color: white;
}






/* Colori personalizzati */
.riepilogo-giorni .ferie {
  background-color: rgba(88, 168, 255, 0.3);
}

.riepilogo-giorni .permesso {
  background-color: rgba(255, 214, 93, 0.3);
}

.riepilogo-giorni .malattia {
  background-color: rgba(239, 129, 179, 0.3);
}

.riepilogo-giorni li:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.os-scrollbar-handle{
  background: rgba(0,0,0,.4) !important;
}

@media print {
  body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13pt;
    color: #222;
    margin: 40mm 25mm 30mm 25mm;
    line-height: 1.6;
  }

  header, footer, nav, .btn, .no-print,
  .modal-backdrop, .modal-header, .modal-footer,
  .fas.fa-info-circle, .icon, .action-buttons {
    display: none !important;
  }

  h1 {
    text-align: center;
    font-size: 22pt;
    margin-bottom: 30px;
    font-weight: bold;
    color: #000;
  }

  .intestazione-stampa {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .intestazione-stampa img {
    max-height: 60px;
    margin-bottom: 10px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    page-break-inside: avoid;
  }

  th, td {
    border: 1px solid #999;
    padding: 12px;
    vertical-align: top;
    text-align: left;
  }

  th {
    background-color: #eaeaea;
    font-weight: bold;
    width: 35%;
  }

  tr:nth-child(even) td {
    background-color: #f9f9f9;
  }

  .solo-stampa {
    display: block !important;
    margin-top: 10px;
  }

  .modal {
    display: none !important;
  }

  .firma {
    margin-top: 60px;
    font-size: 12pt;
  }

  .firma p {
    margin-bottom: 40px;
  }

  footer::after {
    content: "Pagina " counter(page);
    position: fixed;
    bottom: 10mm;
    right: 25mm;
    font-size: 10pt;
    color: #666;
  }
}