﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
}
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #0078d7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #0078d7;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

    .footer a {
        color: white;
        text-decoration: none;
        text-align: center;
        font-size: 12px;
    }

    .footer i {
        font-size: 20px;
        display: block;
        margin-bottom: 4px;
    }

    .footer a.active {
        color: #00ccff;
    }

.main-container {
    position: absolute;
    top: 60px; /* altezza header */
    bottom: 60px; /* altezza footer */
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 16px;
}


/* MESSAGGIO DI RISPOSTA */
#risposta {
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 10px;
    border-left: 4px solid #00b894;
    background-color: #dff9fb;
    border-radius: 8px;
    display: none;
}

    /* MOSTRARE RISPOSTA */
    #risposta.visible {
        display: block;
    }
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    
}

.dropdown-wrapper {
    position: relative;
}

    .dropdown-wrapper::after {
        content: "▼";
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        pointer-events: none;
        color: #888;
    }

.stile-mobile-button {
    padding: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #00b894, #0984e3);
    border: none;
    border-radius: 12px;
    transition: background 0.3s ease;
    min-width: 150px
}

    .stile-mobile-button:hover {
        background-color: #0056b3;
    }

.label-mobile {
    padding: 3px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    background: #00b894
}

.nome-file {
    width: 95%;
    background-color: cadetblue;
    padding: 6px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.panel-1 {
    background-color: lightgray;
    padding: 13px;
    border-radius: 12px;
    height: 8rem
}

.panel-2 {
    margin-top: 20px;
    background-color: lightgoldenrodyellow;
    padding: 13px;
    border-radius: 12px;
    height: 26rem;
    overflow: auto;
    width: 50%;
}

/** style gestione presenze*/

.griglia-header-sticky {
    position: sticky;
    background-color: white;
    z-index: 10;
}

.griglia-riga.griglia-header-sticky:nth-child(1) {
    top: 0;
}

.griglia-riga.griglia-header-sticky.seconda-header {
    top: 32px; /* altezza della prima riga (modifica se serve) */
    z-index: 9;
}

.griglia-cella, .griglia-label {
    display: inline-block;
    width: 32px;
    text-align: center;
}

.griglia-label {
    font-weight: bold;
    width: 100px;
    font-size: 85%;
}

.griglia-tb, .griglia-tbg {
    width: 30px;
}

.totale-ore, .totale-assenze {
    font-weight: bold;
    background-color: #eef;
    width: 50px;
    font-size: 85%;
}

.cell-ore-domenica, .cell-giust-domenica {
    background-color: #6593a9;
    padding: 2px;
    text-align: center;
    font-size: 55%;
}

.cell-ore-sabato, .cell-giust-sabato {
    background-color: #bde9e5;
    padding: 2px;
    text-align: center;
    font-size: 55%;
}

.cell-ore-festivo, .cell-giust-festivo {
    background-color: orange;
    padding: 2px;
    text-align: center;
    font-size: 60%;
}


.griglia-presenze {
    width: 98%;
    margin: 0 auto; /* centra orizzontalmente */
    border: 1px solid #ccc;
    gap: 1px;
    background: #ccc;
    max-height: 482px;
    overflow-y: auto;
    position: relative;
}

.cell-header {
    display: flex;
    background: #f9f9f9;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    min-width:3.2%;
    font-size:85%;
}

.cell-header-sabato {
    display: flex;
    background-color: darkgray;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    min-width: 3.5%;
    font-size: 90%;
}

.cell-header-domenica {
    display: flex;
    background-color: darkcyan;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    min-width: 3.5%; 
    font-size:90%;
    ;
}

.cell-header-festivo {
    display: flex;
    background-color: tomato;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    font-size: 90%;
}


.cell-subheader {
    display: flex;
    font-size: 0.7em;
    background-color: #eef;
    position: sticky;
    top: 36px; /* altezza della riga precedente */
    z-index: 9;
    min-height: 36px;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    font-weight:bold;
}

.cell-subheader-festivo {
    display: flex;
    font-size: 0.7em;
    background-color: tomato;
    position: sticky;
    top: 36px; /* altezza della riga precedente */
    z-index: 9;
    min-height: 36px;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    font-weight: bold;
}

.cell-subheader-sabato {
    display: flex;
    font-size: 0.7em;
    background-color: darkgray;
    position: sticky;
    top: 36px; /* altezza della riga precedente */
    z-index: 9;
    min-height: 36px;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    font-weight: bold;
}

.cell-subheader-domenica {
    display: flex;
    font-size: 0.7em;
    background-color: darkcyan;
    position: sticky;
    top: 36px; /* altezza della riga precedente */
    z-index: 9;
    min-height: 36px;
    align-items: center;
    justify-content: center; /* opzionale: allinea orizzontalmente */
    font-weight: bold;
}

.cell-dipendente {
    display: flex;
    background: #f9f9f9;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 80%;
    height: 23px;
    align-items: center;
}

.navbar-gmhr {
    background-color: #6593a9;
    color:white;
}


.cell-ore, .cell-giust {
    background: white;
    padding: 2px;
    text-align: center;
    font-size: 55%;
}

.cell-giust {
    background-color: lavender;
}

.cell-ore-tot {
    background-color: #e0ffe0;
    padding: 4px;
    text-align: center;
    height: 23px;
}

.cell-assenze-tot {
    background-color: #ffe0e0;
    padding: 4px;
    text-align: center;
    margin-right: 10px;
    height: 23px;
}

.giust-text, .ore-text {
    background-color: transparent;
    text-align: center;
    border: none;
}

.giust-text {
    color: maroon;
    font-weight: bold;
}