#menu{
    position: fixed;
    width: 100%;
    left:0;
    top:calc(100% - 80px);
    bottom:0;
    background-color:#2C3B50;
    z-index: 1;
    clear: both;
}

#container{
    position: absolute;
    margin: 5px;
    padding: 5px;    
    width: calc(100% - 20px);
    height: calc(100% - 110px);
    max-height: calc(100% - 110px);
    min-height: calc(100% - 110px);    
}




.tabella{
    overflow-x: auto;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
}


.pulsante{
  
}



.div_tabella{
    width: 100%;
    overflow-x:auto;
}

#div_login{
    width: calc(100% - 70px);
}

.width50{
    width: calc(100% - 20px);
    padding: 10px;
}

#scadenzario,#home{display: none !important;}
#scadenzario_visite{display: block !important;}
#scadenzario_documenti{display: block !important;}

.pulsante_dash{
    width:calc(100% - 20px);
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
}


/**POPUP**/

#popup_container{
    left: 0px;
    bottom: 0px;
    right: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
    display: none;
    position: fixed;
    z-index: 10001;
}

#popup{
    min-width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
    margin: auto;
    background-color:white;    
    margin-top:10px;   
    overflow: auto;
    max-height: calc(100vh - 90px);
}

#popup_contenuto{
    width: calc(100% - 100px) !important;
    min-width: calc(100% - 100px) !important;
    max-width: calc(100% - 100px) !important;
    padding: 5px;
    background-color:white;    
    overflow: auto;
}

#popup input,#popup select, #popup button{
    min-width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    width: calc(100% - 10px) !important;
}

/*FINE POPUP**/

/* MENU RESPONSIVE */
#menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #2C3B50;
    padding: 10px 5px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 1000;
}

/* Tutte le voci del menu */
#menu a {
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* evita che vadano a capo */
    color: white;
    text-decoration: none;
    position: relative;
}

/* Icone IMG */
#menu a img {
    width: 35px;
    height: auto;
}

/* Icone FontAwesome */
#menu a i.fa-solid {
    font-size: 30px !important;
}

/* Tooltip standard */
#menu a .tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    white-space: nowrap;
}

#menu a:hover .tooltiptext {
    visibility: visible;
}

/* SPINGE Logout ALLA DESTRA */
#logout {
    position: relative !important;
    margin-left: auto !important;
    float: none !important;    
    right:0px !important;
}

/* Container */
#container {
    position: absolute;
    margin: 5px;
    padding: 5px;
    width: calc(100% - 20px);
    height: calc(100% - 110px);
    max-height: calc(100% - 110px);
    min-height: calc(100% - 110px);
}
