.select2-container--default .select2-selection--multiple .select2-selection__choice {
  padding: 6px 6px 6px 6px !important;
}

table {
width: 100% !important;
}

.form-label {
    font-weight: 400;
    color:#000;
}


.flatpickr-calendar {
z-index: 9999 !important;
}


body {
    overflow-y: auto !important;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

.orari-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    font-size:13px !important;
}
.btn-ora {
    background: #f2f2f2;
    border: 1px solid #ccc;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn-ora:hover {
    background: #ddd;
}
.form-control {
    width: 100%;
    padding: 8px;
   
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn-conferma {
    background-color: #996d4a;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-conferma:hover {
    background-color: #8b5830;
}






.orari-container {

  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: start;
}

.btn-ora {
  padding: 0.4rem 1rem;
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  color: #212529;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 70px;
  text-align: center;
}

/* Hover effetto */
.btn-ora:hover {
  background-color: #e0f2fe;
  border-color: #90cdf4;
  color: #0c4a6e;
}

/* Selezionato */
.btn-ora.selected {
    background-color: #e9ddd3;
    color: #37210e;
    border-color: #e7c3a5;
    box-shadow: 0 0 0 3px rgb(233 221 211 / 68%);
}

.btn-ora:focus {
  outline: none;
  box-shadow: none;
}

.input-group>.custom-select:not(:first-child), .input-group>.form-control:not(:first-child) {
    border-right:0px !important;
}





.select2-container--default .select2-selection--multiple {
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 4px;
    min-height: auto;
    overflow-y: auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    position: relative;
    background-color: #e9ddd3;
    border: 1px solid #c29b7c;
    color: #553310;
    padding: 8px 12px 8px 28px;
    font-size: 15px;
    margin: 4px 0;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    white-space: normal;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px;
    font-weight: bold;
    color: #553310;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
}


.select2-selection__clear {
    display:none;
}

.select2-results__option {
    color: #5e6e82; /* colore grigio chiaro per il testo */
    padding: 12px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.select2-results__option--highlighted {
    background-color: #f0f7ff !important; /* azzurro molto chiaro */
    color: #1f4e79 !important; /* colore blu scuro */
}

.select2-results__option--selected {
    font-weight: 600;
    color: #1f4e79 !important;
}

/* se vuoi che anche nella selezione visibile si veda così */
.select2-selection__rendered {
    color: #1f4e79;
    font-weight: 400;
}



.select2-container--default .select2-selection--multiple {
  position: relative;
  padding-right: 2em;
}

.select2-container--default .select2-selection--multiple::after {
  content: '▾';
  position: absolute;
  right: 0.6em;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.95em;
  pointer-events: none;
}




.sticky-line, .sticky-date {
    position: sticky;
    background: white; /* o colore del contenitore */
    padding: 1em;
    z-index: 999;
}



.sticky-line {
    top: 0;
}

.sticky-date {
    top: 46px;
}



.timeline-minimal {
  position: relative;
  padding-bottom: 10px;
}

.timeline-minimal .step {
  position: relative;
  flex: 1;
  text-align: center;
}

.timeline-minimal .step::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  z-index: 1;
}

.timeline-minimal .step:last-child::after {
  display: none;
}

.timeline-minimal .dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 auto 5px;
  position: relative;
  z-index: 2;
}

/* Usando CSS generated content per la checkmark */
.timeline-minimal .step.active .dot {
  background-color: #c29b7c;
}

.timeline-minimal .step.active .dot::before {
  content: '✓';
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.timeline-minimal .label {
  font-size: 12px;
  color: #999;
}

.timeline-minimal .step.active .label {
  color: #c29b7c;
  font-weight: 400;
}



    

input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  transition: all 0.2s ease-in-out; /* transizione fluida */
}

input:focus {
  outline: none;
  border-color: rgb(173, 198, 225);
  box-shadow: 0 0 0 1.3px rgba(0, 123, 255, 0.1);
}



    
    .orari-settimanali li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  font-weight: 500;
}

.orari-settimanali .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-green {
  background-color: #28a745; /* Bootstrap green */
}

.dot-gray {
  background-color: #bbb;
}

.orari-settimanali li span.orario {
  margin-left: auto;
  color: #1a2f5a;
  font-size:12px;
  font-weight: 500;
}







.barra-colori {
  width: 100%;
  height: 6px;
  margin: 20px 0;
  display: flex;
}

.barra-colori > div {
  height: 100%;
}

.colore1 {
  background-color: #d6b28f; /* beige */
  width: 25%;
}

.colore2 {
  background-color: #5e4635; /* marrone scuro */
  width: 25%;
}

.colore3 {
  background-color: #f4eee9; /* panna */
  width: 25%;
}

.colore4 {
  background-color: #e8cfc0; /* rosa cipria */
  width: 25%;
}




.select2-selection__choice__remove {
  border: none !important;
  background: none !important;
  color: #333 !important;
  font-size: 14px !important;
  margin-right: 4px;
  padding: 0 4px;
  transition: color 0.2s;
}

.select2-selection__choice__remove:hover {
  color: #e74c3c !important; /* rosso chiaro per effetto hover */
  cursor: pointer;
}



.flatpickr-input + .input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #555;
}


.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
}


.select2-container .select2-search--inline {
  width: 100%;
}





/* Card-pill cliccabile, dimensione coerente su tutte le righe */
    .categoria-servizio.btn-pill{
      display:flex; align-items:center; justify-content:center;
      gap:.5rem; text-align:center; width:100%;
      height:64px; padding:0 14px; border-radius:18px;
      background:#fff; border:1px solid #e6e9ef;
      box-shadow:0 2px 6px rgba(16,24,40,.04);
      color:#263238; text-decoration:none; transition:.18s ease;
      font-weight:600;
    }
    .categoria-servizio.btn-pill i{ font-size:18px; opacity:.9; }
    .categoria-servizio.btn-pill:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(16,24,40,.08); }
    .categoria-servizio.btn-pill:focus{ outline:0; box-shadow:0 0 0 3px rgba(25,118,210,.2); }

    .categoria-servizio.btn-pill.active{
      border:2px solid #1e3a8a;  /* blu scuro Calendiva-style */
      box-shadow:0 2px 10px rgba(30,58,138,.12);
      color:#1e3a8a;
    }

    /* Mobile fine-tuning */
    @media (max-width: 575.98px){
      .categoria-servizio.btn-pill{ height:56px; font-size:.95rem; }
      .categoria-servizio.btn-pill span{ line-height:1.1; }
    }
    
    .categoria-servizio {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  min-width: 100px;
  flex: 1 1 100px;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.2s ease-in-out;
  color: #344767;
  font-size: 14px;

}

.categoria-servizio:hover {
  border-color: #344767;
  background-color: #f8f9fa;
}

.categoria-servizio i {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.categoria-servizio.active {
  border: 1px solid #344767;
  background-color: #fff;
}

.badge-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
}


.list-group-item {
  border-radius: 3px !important;
  margin:8px 0px;
}


.categoria-servizio a {
  text-decoration:none !important;
  color:#000000a6;
}