:root {
    --agendaOraLarghezza: 80px;
    --agendaOraBordoSpessore: 2px;

    --agendaAppCellaLarghezza: 100%;
    --agendaAppBordoSpessore: 2px;

    /* Inizio tavolozza colori */
    --coloreSfondo: #ffffff;
    --coloreSelApp: #bcffa8;
    --coloreSel0: #bcffa8;
    --coloreSel1: #fb7d7d;
    --coloreSel2: #847dff;
    --coloreSel3: #fff780;
    --coloreSel4: #5f5f5f;
    --maxWidth: 900px
    /* Fine tavolozza colori */
}

@media screen and (max-width:265px) {
    #diminuisciGG1 {
        display: none;
    }
    #aumentaGG1 {
        display: none;
    }
    #logoXelex {
        display: none;
    }
}

@media screen and (max-width:365px) {
    #logoXelex {
        display: none;
    }
}

body {
    padding: 0px;
    background-color: #eaf8ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.modale {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 200;
    opacity: 1;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display:none;
    background-color: rgb(66, 66, 66, 0.8);
}

.flexVerticale {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.flexOrizzontaleCentratoEsterno {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flexOrizzontale {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flexCentratoEsterno {
    justify-content: space-between;
    align-items: baseline;
}

.flexCentratoEsternoCenter {
    justify-content: space-between;
    align-items: center;
}

.flexCenter {
    justify-content:center;
    align-items:center;
}

.flexLeft {
    justify-content:left;
    align-items:center;
}

.divContenuti {
    padding: 5px;
}

.margineTop {
    margin-top: 10px;
}

.sfondoBianco {
    background-color: #ffffff;
}

.colore0 {
    background-color: var(--coloreSel0);
    border: solid 2px var(--coloreSel0);
}

.colore1 {
    background-color: var(--coloreSel1);
    border: solid 2px var(--coloreSel1);
}

.colore2 {
    background-color: var(--coloreSel2);
    border: solid 2px var(--coloreSel2);
}

.colore3 {
    background-color: var(--coloreSel3);
    border: solid 2px var(--coloreSel3);
}

.boxColoreSel {
    width: 40px;
    height: 20px;
    margin: 5px;
    border-color: #000000!important;
}

.boxColore {
    width: 40px;
    height: 20px;
    margin: 5px;
}

.boxColore:hover {
    border-color: #afafaf!important;
    cursor: pointer;
}

#header {
    background-image:url("./sfondo.jpg");
    max-width: var(--maxWidth);
    width: 100%;
    margin: 0px;
    padding-top: 0px;
}

#divAgenda {
    max-width: var(--maxWidth);
    width: 100%;
    margin-top: 5px;
}

#divAgendaClienti {
    max-width: var(--maxWidth);
    width: 100%;
    margin: 5px;
}

#divAgendaCliente {
    max-width: var(--maxWidth);
    width: 100%;
    margin: 5px;
}

.agenda {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.agendaOra {
    width: var(--agendaOraLarghezza);
    border-style: solid;
    border-top-width: var(--agendaOraBordoSpessore);
    border-left-width: var(--agendaOraBordoSpessore);
    border-right-width: var(--agendaOraBordoSpessore);
    border-bottom-width: 0px;
}

.agendaApp {
    width: 100%;
    border-style: solid;
    border-top-width: var(--agendaAppBordoSpessore);
    border-left-width: 0px;
    border-right-width: var(--agendaAppBordoSpessore);
    border-bottom-width: 0px;
}

.agendaCellaOra {
    display: flex;
    width: 100%;
    background-color: #000999;
    border-width: 0px 0px var(--agendaOraBordoSpessore) 0px;
    border-style: solid;
    color: #ffffff;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.agendaCellaApp {
    width: 100%;
    background-color:#3cff00;
    border-width: 0px 0px var(--agendaAppBordoSpessore) 0px;
    border-style: solid;
    overflow: hidden;
}

.agendaCellaApp span {
    padding: 2px;
}

.agendaCellaApp:hover {
    background-color: rgb(223, 220, 245)!important;
    cursor: pointer;
}

.agendaCellaBase {
    width: 100%;
    background-color:#ffffff;
    border-width: 0px 0px var(--agendaAppBordoSpessore) 0px;
    border-style: solid;
}

.agendaCellaBase:hover {
    background-color: rgb(223, 220, 245);
    cursor: pointer
}

.sceltaOreApp {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-size: 24px;
    padding: 5px;
    border: solid 1px;
    width: fit-content;
    margin: 3px;
}

.sceltaMinAppNoActive {
    display: flex;
    width: 40px;
    height: 30px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: #9e9e9e;
    color: #f4f4f4;
    margin-left: 5px;
}

.sceltaMinApp {
    display: flex;
    width: 40px;
    height: 30px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.boxNoSel {
    background-color: #000000;
    color: #ffffff;
    margin-left: 5px;
}

.primoBoxSel {
    background-color: var(--coloreSelApp);
    color: #000000;
    margin-left: 5;
}

.boxSel {
    background-color: var(--coloreSelApp);
    color: #000000;
    padding-left: 5px;
}

.sceltaMinApp:hover {
    background-color: var(--coloreSelApp);
    cursor: pointer;
}

.button {
    transition-duration: 0.4s;
    margin: 5px;
    height: 50px;
    width: 74px;
    cursor: pointer;
    background-color: #e5e5e5;
    font-weight: bold;
}
  
.button:hover {
    background-color: #04AA6D; /* Green */
    color: white;
}

.button:active {
    background-color: #e5e5e5;
    color: black;
}

.button:focus {
    background-color: #e5e5e5;
    color: black;
}

.buttonDisabled {
    margin: 5px;
    height: 50px;
    width: 74px;
    cursor: not-allowed;
    background-color: #e5e5e5;
}

.buttonSel {
    transition-duration: 0.4s;
    margin: 5px;
    height: 50px;
    width: 74px;
    cursor: pointer;
    background-color: #04AA6D;
    font-weight: bold;
}
  
.buttonSel:hover {
    background-color: #04AA6D; /* Green */
    color: white;
}

.buttonSel:active {
    background-color: #04AA6D;
    color: black;
}

.buttonSel:focus {
    background-color: #04AA6D;
    color: black;
}

.buttonGG {
    transition-duration: 0.4s;
    margin: 3px;
    height: 40px;
    width: 45px;
    cursor: pointer;
    background-color: #e5e5e5;
    font-weight: bold;
    font-size: 15px;
}
  
.buttonGG:hover {
background-color: #04AA6D; /* Green */
color: white;
}

.buttonGG:active {
background-color: #e5e5e5;
color: black;
}

.buttonGG:focus {
background-color: #e5e5e5;
color: black;
}

.buttonTA {
    transition-duration: 0.4s;
    margin: 2px;
    padding: 5px;
    height: 30px;
    width: 290px;
    cursor: pointer;
    background-color: #e5e5e5;
    font-weight: bold;
    font-size: 14px;
}

.buttonTADisabled {
    cursor: not-allowed;
    background-color: #e5e5e5;
}

.buttonTA:hover {
background-color: #04AA6D; /* Green */
color: white;
}

.buttonTA:active {
background-color: #e5e5e5;
color: black;
}

.buttonTA:focus {
background-color: #e5e5e5;
color: black;
}

.button30 {
    transition-duration: 0.4s;
    margin: 5px;
    height: 30px;
    width: 50px;
    cursor: pointer;
    background-color: #e5e5e5;
    font-weight: bold;
}
  
.button30:hover {
    background-color: #04AA6D; /* Green */
    color: white;
}

.button30:active {
    background-color: #e5e5e5;
    color: black;
}

.button30:focus {
    background-color: #e5e5e5;
    color: black;
}

.barraSupX {
    display: flex;
    width: 100%;
    height: 30px;
    margin: 0px;
    padding: 0px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    background-color: #b2e5ff;
    align-items: center;
}

.buttonX {
    transition-duration: 0.4s;
    padding: 1px;
    height: 21px;
    width: 22px;
    cursor: pointer;
    background-color: #e5e5e5;
    font-weight: bold;
    font-size: 14px;
    margin-right: 5px;
}

.buttonXDisabled {
    cursor: not-allowed;
    background-color: #e5e5e5;
}

.buttonX:hover {
    background-color: #aa0404; /* Green */
    color: white;
}

.buttonX:active {
    background-color: #e5e5e5;
    color: black;
}

.buttonX:focus {
background-color: #e5e5e5;
color: black;
}

#divCookie {
    background-color: #ffffff;
    padding: 0px;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

#cookie {
    padding: 5px;
}

#divAppuntamento {
    background-color: #ffffff;
    padding: 0px;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

#divTipoAppuntamento {
    background-color: #ffffff;
    padding: 0px;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

#divCliente {
    background-color: #ffffff;
    padding: 0px;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

#divMateriali {
    background-color: #ffffff;
    padding: 0px;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

#divAutenticazioneUtente {
    width: 100%;
    max-width: var(--maxWidth);
}

#divAutenticazioneOTP {
    width: 100%;
    max-width: var(--maxWidth);
}

#divRegistrazioneUtente {
    width: 100%;
    max-width: var(--maxWidth);
}

#divRegistrazioneForm {
    display: block;
}

#divConfigurazioneUtente {
    width: 100%;
    max-width: var(--maxWidth);
}

#divConfigurazione {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: var(--maxWidth);
}

#divData {
    width: 100%;
    justify-content: space-between;
    max-width: var(--maxWidth);
}

#divMenu {
    width: 100%;
    max-width: var(--maxWidth);
}

#divMenuUtente {
    width: 100%;
    max-width: var(--maxWidth);
}

#appuntamento {
    padding: 5px;
}

#cliente {
    padding: 5px;
}

#materiale {
    padding: 5px;
    width: 95%;
}

#logoAgenda {
    display: flex;
    width: 60px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

#dataGiorno {
	font-size: 16px;
    font-weight: bold;
    text-align: center;
    max-width: 150px;
}

#dataGiornoSettimana {
	font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 255, 255, 1);
    padding: 3px;
}

#dataAgenda {
    font-size: 16px;
    font-weight: bold;
    max-width: 150px;
}

#logoXelex {
    width: 60px;
}

#logoXelex a {
    background-color: rgba(255, 255, 255, 1);
}

.spazioDiv {
    padding: 5px;
}

/*inizio autocomplete input form:*/
.autocomplete {
    position: relative;
    display: inline-block;
  }
  
.inputAuto {
    width: 100%;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0px;
    right: 0;
}
  
.autocomplete-items div {
    padding: 2px;
    cursor: pointer;
    background-color: #f8f6f6; 
    border-bottom: 1px solid #a7a7a7; 
}
  
  /*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #dcdbdb; 
}
  
  /*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important; 
    color: #ffffff; 
}
/*fine autocomplete input form:*/

/* inizio tabella elenco */
.table {
    width: 100%;
    font-size: 12px;
}
  
.table td, th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #c6c6c6;
}

.table tr:nth-child(even) { background-color: #e6e6e6; }
.table tr:nth-child(odd) { background-color: #f4f4f4; }

.siSort {
    background-color: rgb(134, 180, 255);
    cursor:pointer;
}

.noSort {
    background-color: #c6c6c6;
}
/* fine tabella elenco */

/* inizio loader */
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
  }
  
  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
/* fine loader */