
/* toglie sottolineatura anchor */
a {
    text-decoration: none;
    outline: none;
}

/* elementi nel dropdown */
.dropdown-menu {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
    width: 300px;
    /* max-width: 80vw; */
}
.dropdown-menu li {
    padding: 5px;
}
.dropdown-menu li:hover {
    background: var(--bs-light);
    cursor:pointer;
    font-weight: bold;
}



/* distanza tra i form group  */
.form-group {
    margin-bottom: 15px;
}

/* sfondo dei form disabilitati */
.form-control:disabled {
    background-color: var(--bs-gray-200);
}




/************************ START DATATABLE  ***********************/
.dataTables_processing  {
    background-color: transparent;
    border: none;
}
.dataTables_processing > .spinner-grow {
    width: 3rem; 
    height: 3rem;
}

.dataTables_length {
    margin-bottom: 10px;
}


div.dt-button-collection button.dt-button:not(.buttons-html5,.buttons-print) {
    background: var(--bs-secondary);
}
div.dt-button-collection button.dt-button.active:not(.disabled) {
    background: var(--bs-light);
    box-shadow: none;
}

/* *************************************************  */






/* ****************datepicker************** */
.datepicker.datepicker-inline{
    width: 100%;
    border:1px solid #ced4da;
}
table.table-condensed {
    width: 100%;
}
/* *************************************** */






/************ FULL CALENDAR ****************/

/* ____________________________ */
:root{
    --fc-highlight-color: var(--bs-light);
}

/* ingrandisce il numero daygrid*/
a.fc-daygrid-day-number , span.fc-daygrid-day-number {
    font-size:x-large;
    color:var(--bs-secondary)!important; 
}

/* // toglie la sottolineatire da ancor */
a.fc-daygrid-day-number:hover , span.fc-daygrid-day-number:hover , a.fc-col-header-cell-cushion {
    text-decoration: none;
}

/* nasconde il corpo */
.fc-daygrid-day-events {
    display: none;
}

/* numero giorno al centro */
.fc .fc-daygrid-day-top {
    display: inherit;
    text-align: center;
    cursor: pointer;
}

/* sfondo titolo */
.fc .fc-toolbar.fc-header-toolbar  {
    margin-bottom: -1px;
    background-color:var(--bs-light);
    padding: 10px;
    border:1px solid #ced4da;
    border-radius: 5px 5px 0px 0px;
}



/* sfondo footer  */
.fc .fc-toolbar.fc-footer-toolbar  {
    margin-top: -1px;
    background-color:var(--bs-light);
    padding: 10px;
    border:1px solid #ced4da;
    border-radius: 0px 0px 5px 5px;
}

/* giorno selezionato */
.fc-highlight {
   border-style: solid;
   border-color:var(--bs-primary)!important;

}

/* giorno oggi */
.fc-day-today {
    background-color:#ced4da!important; 
}

/* giorni disabilitati  */
.fc-day-disabled {
    background-color:var(--bs-secondary)!important;  
    opacity: 0.7;
}

.fc-holidays {
    background-color:var(--bs-red);
    cursor:not-allowed;  
}

/* mese e anno  */
.fc .fc-toolbar-title {
    color:var(--bs-primary); 
}

/* giorni della settimana titolo */
.fc-col-header  {
    background-color:var(--bs-light);
}

/* giorni settimana colore */
@media only screen and (max-width: 550px) {
    .fc-col-header-cell-cushion {
        color: var(--bs-danger)!important;
        font-size: large;
    }
}
@media only screen and (min-width: 550px) {
    .fc-col-header-cell-cushion {
        color: var(--bs-danger)!important;
        font-size: xx-large;
    }
}

/* body del calendar */
.fc-scrollgrid {
  border:1px solid #ced4da;
}

/* festività */
.fc .fc-bg-event {
    background-color:var(--bs-secondary);
    opacity: 0.5;
}

.fc-daygrid-day:hover {
    border: solid 1px var(--bs-secondary);
}

/* fa si che il giorno selezionato sia sotto gli eventi tipo il fa-thumbtack (pins) */
.fc-daygrid-bg-harness {
    z-index: -1;
}


.fc-customer-window {
  font-size: 1.7rem !important;
    font-weight: 600;
}

/* ************************************* */






/* ******* TABELLA BOOKING ************** */
#master_table {
    overflow-y: auto;
    border:1px solid #ced4da;
    border-radius: 5px 5px 5px 5px;
    /* height: 80vh;  viene impostato su javascript alla risposta di act_aggiorna_master_table*/
}

#master_table td,  #master_table th{
    text-align: center;
}

.campo_label {
    min-width: 230px;
}


#master_table thead th {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 0;
    background-color:var(--bs-light);
    border-right: 1px solid var(--bs-white);
    z-index: 100;
}

#master_table  thead th:first-child {
    left: 0;
    z-index: 102;
    width: 8rem;
    padding: 1px;
  }


#master_table  tbody th {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    left: 0; 
    background-color:var(--bs-white);
    z-index: 99;
  }


#data_label>label 
{
  cursor:default;
  font-weight: 900;
  padding: 20px;
}

.fascia_oraria>button
{
    cursor: default;
}

/* ************************************* */





/*********** pulsante chiudi modal e alert  **********/
.btn-close {
    opacity: 1.0;
    font-size: xx-large;
}
/* ************************************* */



/* ******** check_booked ***************** */
.check_booked , .check_free {
    transform: scale(1.5);
}
/* ************************************* */




/* ****** SPINNER ****************** */

.spinner_box {
    background: black;
    position: absolute;
    width: 10000px;
    height: 10000px;
    z-index: 4999;
    opacity: 0.2;
}

.spinner_message {
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
    z-index: 4900;
    padding: 50px;
    border-radius: 60%;
  }

@keyframes spinner_gif {
    to {transform: rotate(360deg);}
  }
   
  .spinner_gif:before {
    content: '';
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    border-radius: 50%;
    border: 10px solid var(--bs-light);
    border-top-color: var(--bs-primary);
    animation: spinner_gif 1.5s linear infinite;
    z-index: 5000;
  }
/* ************************************* */




/* ********** suggestion box *********** */
.suggestion-box{
    background:var(--bs-light);
    color:var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
    z-index: 200;
    display: none;
    max-height: 400px;
    overflow-y: auto;
  }
  .suggestion-box h6:hover{
    cursor: pointer;
    color: var(--bs-black);
  }
/* ************************************* */



/* ********** paragrafo_EXTRA_NOTE_INCORDATURA_MODELLO *********** */
#paragrafo_EXTRA_NOTE_INCORDATURA_MODELLO{
    width: 100%;
    max-height: 100px;
    overflow-y: scroll;
    color: var(--bs-danger);
  }
/* ************************************* */



/* sovrscrive alcune classi width di bootstrap */
.w-50 {
    width: 45% !important;
}


.fa-1x {
    font-size: 1.5em;
}

/* ********************************************** */



/* cursore collegamenti del popover */
[id^=act_open_] {
    cursor: pointer;
}
[id^=act_open_]:hover {
    background: var(--bs-light);
}
/* ********************************** */



/* ombreggiatura */

.ombrato-info {
    box-shadow: 0px 0px 8px 4px #0dcaf088;
}

.ombrato-success {
    box-shadow: 0px 0px 8px 4px #19875488;
}

.ombrato-danger {
    box-shadow: 0px 0px 8px 4px #dc354588;
}

.ombrato-warning {
    box-shadow: 0px 0px 8px 4px #ffc10788;
}

.ombrato-primary {
    box-shadow: 0px 0px 8px 4px #0d6efd88;
}

.ombrato-secondary {
    box-shadow: 0px 0px 8px 4px #6c757d88;
}

/* **************************** */



/* nav link tab  */
a.nav-link {
    margin-left: 2px;
    background: var(--bs-light) !important;
    border: 1px solid #ddd !important;
}
a.nav-link.active {
    background: transparent !important;
    border-bottom: 1px solid white !important;
    font-weight: 900;
    color: var(--bs-primary)!important;
}

/* **************************** */






/* blink  */
.blink {
    animation: blinker 3s linear infinite;
  }
  
  @keyframes blinker {
    100% {
      opacity:30%;
    }
  }
/* *****************  */


/* rotante  */
@supports not (-webkit-overflow-scrolling: touch) {
    /* CSS for other than iOS devices */
    /* il rotante su IOS e popup di jconfirm funziona male */
    .rotante {
        animation: rotante 2s linear infinite;
      }
      
      @keyframes rotante {
            to {transform: rotate3d(0, 1, 0, 360deg)};
      }
}

/* *****************  */



/* hover su button light */
.btn-light:hover {
    border-color: var(--bs-secondary);
}



/* check box sui form  */
.form-check-input {
    width: 25px;
    height: 25px;
}






/* alert jconfir  */
.jconfirm-cell {
    /* serve per mantenere l'alert entro 100% su mobile  */
    max-width: 1px;
}


/* jqte  */
a.jqte_tool_label {
    height: 26px !important;
}



/* tutti gli ESEGUI che richiamano una action  */
[esegui^=act_] {
    cursor:pointer;;
 }


 /* abbassa i margini del compositore html  */
 .jqte {
     margin: 0px ! important;
 }


 /* posiziona in alto a destra  */
 [esegui=act_presa_visione] {
    margin-left: -5px;
    margin-top: -8px;
    transform: scale(0.8);
 }

  /* rende gli accordio scrollabili */
  .accordion-body {
      max-height: 1000px;
      overflow-y: auto;
      overflow-x: hidden;
  }


  /* ingrandisce simbolo accordion */
  .accordion-button::after {
    width: 2.25rem;
    height: 2.25rem;
    background-size: 2.25rem;
    margin-right: -10px !important;
  }


  /* tag small dentro td più piccoli..dentro ai datatable  */
  td>small {
      font-size: 0.65em;
  }


  
   /* pulsante scroll to top */
  .scroll-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
    color: #fff;
    background: rgba(52, 58, 64, 0.5);
    line-height: 46px;
  }
  
  .scroll-to-top:focus, .scroll-to-top:hover {
    color: white;
  }
  
  .scroll-to-top:hover {
    background: #343a40;
  }
  
  .scroll-to-top i {
    font-weight: 800;
  }


  .modal {
    overflow-y:auto;
  }


  .indisponibile {
    background-image: linear-gradient(135deg, lightgray 45.45%, gray 45.45%, gray 50%, lightgray 50%, lightgray 95.45%, gray 95.45%, gray 100%)   !important;
    background-size: 15.56px 15.56px  !important;
  }


  .dropdown-toggle::after {
    float: right;
    font-size: xxx-large;
  }


  .passato_remoto {
      color: lightgray;
      font-size: small;
  }



  /* personalizzaizoni selectize */
  .selectize-control.single .selectize-input {
    min-width: 200px;
    background-color: white;
    background-image: none
}
.selectize-control.single .selectize-input:after {
      right: 3px;
      border-width: 8px 8px 0px 8px
   }
.selectize-control.rtl.single .selectize-input:after {
    left: 3px;
    right: auto;
}
.selectize-control.single .selectize-input.dropdown-active:after {
    border-width: 0 8px 8px 8px;
}
.selectize-dropdown .active {
    background: #0d6efd;
}
.selectize-dropdown .selected {
    background: #0d6efd;
}
.selectize-dropdown,
.selectize-input,
.selectize-input input {
        font-size: 1rem;
        line-height: 1.5;
        font-weight: 400;
}