/* _content/LayoutAspNet/Views/Home/Index.cshtml.rz.scp.css */
#logAccessiTable tbody .td-center[b-88i4tdukje] {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#logAccessiTable tbody .td-message[b-88i4tdukje] {
    text-align: center;
    vertical-align: middle;
    padding-top: 6px;
    padding-bottom: 6px;
}

#logAccessiTable .col-desc[b-88i4tdukje] {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Allinea al centro (orizzontale e verticale) i risultati della riga */
#pxfd-section-log-accessi #logAccessiTable.table > tbody > tr > td[b-88i4tdukje] {
    text-align: center;
    vertical-align: middle;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 8px;
    padding-right: 8px;
    position: relative;
}

    /* Centra verticalmente qualunque contenuto mono-riga indipendentemente dall'altezza della riga */
    #pxfd-section-log-accessi #logAccessiTable.table > tbody > tr > td:not(:nth-child(5)) .td-center[b-88i4tdukje] {
        position: absolute;
        top: 50%;
        left: 8px;
        right: 8px;
        transform: translateY(-50%);
        display: block;
        white-space: nowrap;
    }

    /* Messaggio multi-riga: lascia il flusso normale */
    #pxfd-section-log-accessi #logAccessiTable.table > tbody > tr > td:nth-child(5)[b-88i4tdukje] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

:root[b-88i4tdukje] {
    --pxfd-color-primary: rgb(80, 128, 248);
    --pxfd-color-success: rgb(37, 218, 231);
    --pxfd-color-warning: rgb(255, 182, 109);
    --pxfd-color-error: rgb(255, 129, 158);
    --pxfd-color-white: rgb(255, 255, 255);
    --pxfd-color-light: rgb(214, 211, 223);
    --pxfd-color-dark: rgb(15, 14, 25);
    --pxfd-color-sunny: rgb(255, 216, 178);
    --pxfd-color-rainy: rgb(153, 182, 255);
    --pxfd-color-snowy: rgb(255, 255, 255);
    --pxfd-fontfamily-poppins: "Poppins", sans-serif;
    --pxfd-fontfamily-oswald: "Oswald", sans-serif;
    --pxfd-fontsize: 14px;
    --pxfd-lineheight: 1;
    --pxfd-fontweight-normal: 300;
    --pxfd-fontweight-bold: 500;
}


/* RESET */
*[b-88i4tdukje] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0;
}

/* PAGE SETTINGS */

a[b-88i4tdukje] {
    text-decoration: none;
}

.fa-circle-plus[b-88i4tdukje] {
    color: white;
}

/* COLORS */
.pxfd-color-primary[b-88i4tdukje] {
    color: var(--pxfd-color-primary);
}

.pxfd-color-success[b-88i4tdukje] {
    color: var(--pxfd-color-success);
}

.pxfd-color-warning[b-88i4tdukje] {
    color: var(--pxfd-color-warning);
}

.pxfd-color-error[b-88i4tdukje] {
    color: var(--pxfd-color-error);
}

.pxfd-color-white[b-88i4tdukje] {
    color: var(--pxfd-color-white);
}

.pxfd-color-light[b-88i4tdukje] {
    color: var(--pxfd-color-light);
}

.pxfd-color-dark[b-88i4tdukje] {
    color: var(--pxfd-color-dark);
}

.pxfd-color-sunny[b-88i4tdukje] {
    color: var(--pxfd-color-sunny);
}

.pxfd-color-rainy[b-88i4tdukje] {
    color: var(--pxfd-color-rainy);
}

.pxfd-color-snowy[b-88i4tdukje] {
    color: var(--pxfd-color-snowy);
}

/* TYPOGRAPHY */
.pxfd-fontfamily-poppins[b-88i4tdukje] {
    font-family: var(--pxfd-fontfamily-poppins);
}

.pxfd-fontfamily-oswald[b-88i4tdukje] {
    font-family: var(--pxfd-fontfamily-oswald);
}

.pxfd-fontsize-08[b-88i4tdukje] {
    font-size: 0.8rem;
}

.pxfd-fontsize-09[b-88i4tdukje] {
    font-size: 0.9rem;
}

.pxfd-fontsize-10[b-88i4tdukje] {
    font-size: 1rem;
}

.pxfd-fontsize-12[b-88i4tdukje] {
    font-size: 1.2rem;
}

.pxfd-fontsize-14[b-88i4tdukje] {
    font-size: 1.4rem;
}

.pxfd-fontsize-16[b-88i4tdukje] {
    font-size: 1.6rem;
}

.pxfd-fontsize-18[b-88i4tdukje] {
    font-size: 1.8rem;
}

.pxfd-fontsize-20[b-88i4tdukje] {
    font-size: 2rem;
}

.pxfd-fontsize-24[b-88i4tdukje] {
    font-size: 2.4rem;
}

.pxfd-fontsize-28[b-88i4tdukje] {
    font-size: 2.8rem;
}

.pxfd-fontsize-32[b-88i4tdukje] {
    font-size: 3.2rem;
}

.pxfd-fontsize-38[b-88i4tdukje] {
    font-size: 3.8rem;
}

.pxfd-fontsize-44[b-88i4tdukje] {
    font-size: 4.6rem;
}

.pxfd-fontsize-50[b-88i4tdukje] {
    font-size: 5rem;
}

.pxfd-fontweight-normal[b-88i4tdukje] {
    font-weight: var(--pxfd-fontweight-normal);
}

.pxfd-fontweight-bold[b-88i4tdukje] {
    font-weight: var(--pxfd-fontweight-bold);
}

h1[b-88i4tdukje],
h2[b-88i4tdukje],
h3[b-88i4tdukje],
h4[b-88i4tdukje],
h5[b-88i4tdukje],
h6[b-88i4tdukje] {
    font-weight: var(--pxfd-fontweight-bold);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1[b-88i4tdukje] {
    font-size: 2rem;
}

h2[b-88i4tdukje] {
    font-size: 1.8rem;
}

h3[b-88i4tdukje] {
    font-size: 1.6rem;
}

h4[b-88i4tdukje] {
    font-size: 1.4rem;
}

h5[b-88i4tdukje] {
    font-size: 1.2rem;
}

h6[b-88i4tdukje] {
    font-size: 1rem;
}

.pxfd-text-left[b-88i4tdukje] {
    text-align: left;
}

.pxfd-text-center[b-88i4tdukje] {
    text-align: center;
}

.pxfd-text-right[b-88i4tdukje] {
    text-align: right;
}

.card-property[b-88i4tdukje] {
    display: none;
}

/* LAYOUT */
#pxfd-appworld[b-88i4tdukje] {
    position: relative;
    width: 100%;
    padding: 0.5rem 1rem; /* Ridotto da 0.85rem a 0.5rem */
    /*    margin: -1px;*/
    /* background-image: linear-gradient(#0e20b5, #3073ab, #58d29d);*/
}

.pxfd-glassview[b-88i4tdukje] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 2px rgb(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.pxfd-darkglassview[b-88i4tdukje] {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 3px 2px rgb(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.pxfd-shadowicon[b-88i4tdukje] {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pxfd-section[b-88i4tdukje] {
    width: 100%;
}

.pxfd-cardrow[b-88i4tdukje] {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
}

.pxfd-cardcol[b-88i4tdukje] {
    flex: 1 0 0%;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pxfd-card[b-88i4tdukje] {
    position: relative;
    min-height: 100%;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 200ms ease;
}

/* Effetto hover solo per i widget della home page, non per i modal o altri elementi */
#pxfd-section-workout .pxfd-card:hover[b-88i4tdukje] {
    transform: scale(1.03);
}

.pxfd-card-solid[b-88i4tdukje] {
    border: 1px solid rgba(0, 0, 0, 0.01);
    box-shadow: 0 2px 4px 1px rgb(0, 0, 0, 0.3);
}

.pxfd-card img[b-88i4tdukje] {
    width: 100%;
    height: 233px;
    object-fit: cover;
    transition: transform 300ms ease;
}

/* Effetto hover per le immagini solo nei widget della home page */
#pxfd-section-workout .pxfd-card:hover img[b-88i4tdukje] {
    transform: scale(1.1);
}

.pxfd-card-overlay[b-88i4tdukje] {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 1.2rem;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100% );
}

    .pxfd-card-overlay ul[b-88i4tdukje] {
        margin-left: 1.2rem;
    }

.pxfd-card-content[b-88i4tdukje] {
    width: 100%;
    height: 100%;
    padding: 0.3rem; /* Ridotto da 0.5rem a 0.3rem */
}

/* TOPBAR */
#pxfd-topbar[b-88i4tdukje] {
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pxfd-topbar-item[b-88i4tdukje] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#pxfd-dailyinfo > span[b-88i4tdukje] {
    margin-right: 4rem;
}

#pxfd-userinfo[b-88i4tdukje] {
    position: relative;
}

    #pxfd-userinfo > span[b-88i4tdukje] {
        margin-left: 4rem;
        display: flex;
        align-items: center;
    }

        #pxfd-userinfo > span > span[b-88i4tdukje] {
            margin-left: 1rem;
        }

#pxfd-user-img[b-88i4tdukje] {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
    border: 2px solid var(--pxfd-color-primary);
    border-radius: 50%;
    object-fit: cover;
}

/* MOBILE MENU */
#pxfd-mobilemenu-toggle[b-88i4tdukje] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 2rem;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 300ms ease;
}

    #pxfd-mobilemenu-toggle *[b-88i4tdukje] {
        position: absolute;
        transition: opacity 300ms ease;
    }

        #pxfd-mobilemenu-toggle *:nth-child(1)[b-88i4tdukje] {
            opacity: 1;
        }

        #pxfd-mobilemenu-toggle *:nth-child(2)[b-88i4tdukje] {
            opacity: 0;
        }

    #pxfd-mobilemenu-toggle.pxfd-active[b-88i4tdukje] {
        transform: rotate(360deg);
    }

        #pxfd-mobilemenu-toggle.pxfd-active *:nth-child(1)[b-88i4tdukje] {
            opacity: 0;
        }

        #pxfd-mobilemenu-toggle.pxfd-active *:nth-child(2)[b-88i4tdukje] {
            opacity: 1;
        }

#pxfd-mobilemenu[b-88i4tdukje] {
    position: fixed;
    width: 90%;
    max-width: 300px;
    top: 8rem;
    right: -310px;
    padding: 1rem;
    border-radius: 5px 0 0 5px;
    text-align: center;
    transition: right 300ms ease;
    display: none;
}

    #pxfd-mobilemenu.pxfd-active[b-88i4tdukje] {
        right: 0px;
    }

    #pxfd-mobilemenu > span[b-88i4tdukje] {
        margin-bottom: 1rem;
        display: block;
    }

#pxfd-user-imgmobile[b-88i4tdukje] {
    width: 6rem;
    height: 6rem;
    border: 2px solid var(--pxfd-color-primary);
    border-radius: 50%;
    object-fit: cover;
}

#pxfd-mobilemenu[b-88i4tdukje] {
    display: block;
}

#pxfd-mobilemenu-toggle[b-88i4tdukje] {
    display: flex;
}

.pxfd-col-5x[b-88i4tdukje] {
    flex: 0 0 auto;
    width: 25%;
    min-height: 110px; /* Aumentato da 90px a 110px per migliore proporzione */
}

.pxfd-col-2x[b-88i4tdukje] {
    flex: 0 0 auto;
    width: 10%;
    min-height: 60px; /* Aumentato da 50px a 60px per migliore proporzione */
}

/* Ridimensiona i numeri dei widget per occupare meno spazio verticale */
.pxfd-card .display-5[b-88i4tdukje] {
    font-size: 1.4rem;
    white-space: pre-line; /* rispetta i \n in CountResult (Entrate\nUscite) */
    line-height: 1.2;
}

/* Specifico per i bottoni della seconda riga */
.pxfd-col-2x .pxfd-card-content[b-88i4tdukje] {
    padding: 0.4rem; /* Aumentato da 0.3rem a 0.4rem per migliore proporzione */
}

.pxfd-col-2x .nav-link.fs-3[b-88i4tdukje] {
    font-size: 1rem; /* Ridotto da 1.15rem a 1rem */
}

.pxfd-col-2x .tooltip_nav[b-88i4tdukje] {
    font-size: 0.8rem;
}

/* Tabella log: rimuovi effetto "glass" e 3D del titolo, rendi il titolo piu' piccolo */
#pxfd-section-log-accessi .pxfd-card.pxfd-glassview[b-88i4tdukje] {
    background-color: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* Disabilita effetto hover/zoom tipo widget sulla card della tabella */
#pxfd-section-log-accessi .pxfd-card[b-88i4tdukje] {
    transition: none;
}

    #pxfd-section-log-accessi .pxfd-card:hover[b-88i4tdukje] {
        transform: none;
    }

#pxfd-section-log-accessi[b-88i4tdukje] {
    margin-top: 0px; /* Rimosso completamente il margine superiore */
}

    #pxfd-section-log-accessi h4[b-88i4tdukje] {
        text-shadow: none;
        font-size: 1rem;
    }

    /* Mostra ~10 righe del corpo tabella e abilita lo scroll verticale */
    #pxfd-section-log-accessi #table-scroll[b-88i4tdukje] {
        /* altezza fissa per 10 righe del tbody + header */
        max-height: 395px; /* aggiornato per 10 righe */
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
    }

/* Compatta leggermente le righe per rispettare l'obiettivo delle 10 entries */
#logAccessiTable tbody td[b-88i4tdukje] {
    padding-top: 0.30rem;
    padding-bottom: 0.30rem;
    white-space: nowrap;
    line-height: 1.1rem;
}

/* Stile controlli filtro in thead */
.filters-row .filter-input[b-88i4tdukje] {
    width: 100%;
    max-width: 140px;
    padding: 2px 6px;
    font-size: 0.85rem;
}

/* Label negli header con input a scomparsa */
th .th-label[b-88i4tdukje] {
    cursor: pointer;
    user-select: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: inherit;
}

/* Pallini selezione Esito */
#filtroEsitoContainer[b-88i4tdukje] {
    display: grid;
    grid-template-columns: repeat(2, minmax(18px, 1fr));
    grid-auto-rows: 18px;
    gap: 8px;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    padding: 4px 0;
    margin: 0 auto;
    width: fit-content;
}

.esito-dot[b-88i4tdukje] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

    .esito-dot.tutti[b-88i4tdukje] {
        background: conic-gradient(#d93025 0deg 120deg, #fbbc05 120deg 240deg, #188038 240deg 360deg);
    }

/* Pulsante pulisci piccolo */
#btnPulisciLog.bottoneannulla.custom-btn[b-88i4tdukje] {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #btnPulisciLog.bottoneannulla.custom-btn:hover[b-88i4tdukje] {
        transform: scale(1.05);
    }

    #btnPulisciLog.bottoneannulla.custom-btn i[b-88i4tdukje] {
        font-size: 12px;
    }




/* Stili per le icone X dei filtri singoli */
.filter-clear-btn[b-88i4tdukje] {
    position: absolute;
    top: 2px !important;
    right: 2px;
    width: 16px !important;
    height: 16px !important;
    background-color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 50% !important;
    display: none; /* Nascoste di default, ma senza !important */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 9999 !important; /* Z-index molto alto per essere sopra tutto */
    transition: all 0.2s ease !important;
}

    .filter-clear-btn:hover[b-88i4tdukje] {
        background-color: #c82333 !important;
        border-color: #c82333 !important;
        transform: scale(1.1) !important;
    }

    /* Classe per mostrare le icone X */
    .filter-clear-btn.show[b-88i4tdukje] {
        display: flex !important;
    }

/* Maggiore specificità per assicurare che il filtro data funzioni */
#thData.filter-active .filter-date-range.show[b-88i4tdukje] {
    display: block !important;
}

#thData:not(.filter-active) .filter-date-range[b-88i4tdukje] {
    display: none !important;
}

/* Forza la visibilità delle icone X quando hanno la classe show */
#logAccessiTable thead th .filter-clear-btn.show[b-88i4tdukje] {
    display: flex !important;
}

/* Assicura che le icone X siano sempre visibili quando hanno la classe show */
#thData .filter-clear-btn.show[b-88i4tdukje],
#thTessera .filter-clear-btn.show[b-88i4tdukje],
#thNominativo .filter-clear-btn.show[b-88i4tdukje],
#thIngresso .filter-clear-btn.show[b-88i4tdukje],
#thEsito .filter-clear-btn.show[b-88i4tdukje] {
    display: flex !important;
    z-index: 9999 !important;
}

/* Maggiore specificità per le icone X */
#logAccessiTable thead th.filter-active .filter-clear-btn.show[b-88i4tdukje] {
    display: flex !important;
}

/* Posizione specifica per l'icona X del filtro esito */
#thEsito .filter-clear-btn[b-88i4tdukje] {
    top: -5px; /* Spostato molto più in alto per evitare sovrapposizione con i dots */
    right: 2px; /* Posizionato nell'angolo interno destro */
}

/* Posizione specifica per l'icona X del filtro ingresso */
#thIngresso .filter-clear-btn[b-88i4tdukje] {
    top: -5px;
    right: 2px;
}

/* Stili per la dropdown del filtro Ingresso */
#thIngresso .filter-input select[b-88i4tdukje] {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
}

    #thIngresso .filter-input select:focus[b-88i4tdukje] {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

/* Stili per il range di date */
.filter-date-range[b-88i4tdukje] {
    display: none; /* Nascosto di default */
}

    .filter-date-range.show[b-88i4tdukje] {
        display: block;
    }

.filter-date-range-container[b-88i4tdukje] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    align-items: center;
}

.filter-date-input-row[b-88i4tdukje] {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.filter-date-label[b-88i4tdukje] {
    font-size: 8px;
    color: #666;
    font-weight: bold;
    min-width: 18px;
}

.filter-date-input[b-88i4tdukje] {
    width: 100%;
    font-size: 9px;
    padding: 1px;
    height: 18px;
}

.filter-clear-btn i[b-88i4tdukje] {
    font-size: 8px;
    color: white;
    line-height: 1;
}

/* Stili per i modal custom */
.modal-content-custom[b-88i4tdukje] {
    width: 100%;
}

.modal-dialog.modal-lg-custom[b-88i4tdukje] {
    max-width: 70%; /* Ridotto per dimensioni più proporzionate */
    width: 70%;
    margin: 1.75rem auto; /* Centrato orizzontalmente */
    position: relative;
    left: 0; /* Assicura che non ci sia offset laterale */
    transform: none; /* Rimuove eventuali trasformazioni che potrebbero causare decentramento */
}

/* Ridimensionamento colonne tabella log accessi */
#logAccessiTable thead th[b-88i4tdukje],
#logAccessiTable tbody td[b-88i4tdukje] {
    white-space: nowrap;
}

    /* Data */
    #logAccessiTable thead th:nth-child(1)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(1)[b-88i4tdukje] {
        width: 8%;
    }

    /* Ora */
    #logAccessiTable thead th:nth-child(2)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(2)[b-88i4tdukje] {
        width: 10%;
    }

    /* Tessera */
    #logAccessiTable thead th:nth-child(3)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(3)[b-88i4tdukje] {
        width: 8%;
    }

    /* Nominativo */
    #logAccessiTable thead th:nth-child(4)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(4)[b-88i4tdukje] {
        width: 18%; /* Ridotto da 20% a 18% */
    }

    /* Messaggio - più largo ma ridotto rispetto a prima */
    #logAccessiTable thead th:nth-child(5)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(5)[b-88i4tdukje] {
        width: 40%;
    }

    /* Messaggio sempre su una riga anche per righe generate via JS */
    #logAccessiTable tbody td:nth-child(5)[b-88i4tdukje] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ingresso */
    #logAccessiTable thead th:nth-child(6)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(6)[b-88i4tdukje] {
        width: 5%; /* Ridotto da 10% a 5% */
    }

    /* Esito */
    #logAccessiTable thead th:nth-child(7)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(7)[b-88i4tdukje] {
        width: 15%; /* Aumentato da 10% a 15% per molto più spazio all'icona X */
    }

/* Messaggio: evita il wrapping e mostra ellissi se eccede */
#logAccessiTable .td-message[b-88i4tdukje] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rotellina di caricamento per log accessi */
#logAccessiLoading[b-88i4tdukje] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #logAccessiLoading .spinner-border[b-88i4tdukje] {
        width: 2rem;
        height: 2rem;
        border-width: 0.25em;
    }

/* Assicura che la tabella sia relativa per il posizionamento assoluto della rotellina */
#table-scroll[b-88i4tdukje] {
    position: relative;
}

/* Nominativo: sempre su una riga con ellissi se troppo lungo */
#logAccessiTable tbody td:nth-child(4)[b-88i4tdukje] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ingresso: sempre su una riga con ellissi se troppo lungo */
#logAccessiTable tbody td:nth-child(6)[b-88i4tdukje] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esito-dot.rosso[b-88i4tdukje] {
    background: #d93025;
}

.esito-dot.giallo[b-88i4tdukje] {
    background: #fbbc05;
}

.esito-dot.verde[b-88i4tdukje] {
    background: #188038;
}

.esito-dot.active[b-88i4tdukje] {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Log accessi: ottimizza spazio quando il filtro è attivo */
#logAccessiTable[b-88i4tdukje] {
    table-layout: fixed;
}

    #logAccessiTable thead th[b-88i4tdukje] {
        position: relative;
        height: 70px;
        padding-top: 0;
        padding-bottom: 0;
        text-align: center;
        vertical-align: middle;
    }

/* Aumenta l'altezza dell'header quando i filtri data/ora sono attivi */
#thData.filter-active[b-88i4tdukje],
#thOra.filter-active[b-88i4tdukje] {
    height: 110px;
    vertical-align: middle;
}

/* Altezza di base degli header data/ora quando i filtri sono chiusi */
#thData:not(.filter-active)[b-88i4tdukje],
#thOra:not(.filter-active)[b-88i4tdukje] {
    height: 70px;
}

/* Rimuovi esplicitamente la classe filter-active di default */
#logAccessiTable thead th[b-88i4tdukje] {
    /* Assicura che non ci siano classi filter-active di default */
    position: relative;
}

#thMessaggio[b-88i4tdukje] {
    position: relative;
    text-align: center;
}

    #thMessaggio .entrate-toolbar[b-88i4tdukje] {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 5;
    }

    #thMessaggio .entrate-badge[b-88i4tdukje] {
        background-color: #1c1f25;
        color: #ffffff;
        padding: 4px 16px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.1);
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        pointer-events: none;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }

        #thMessaggio .entrate-badge span[b-88i4tdukje] {
            font-weight: 700;
            font-size: 0.95rem;
        }

    #thMessaggio .th-label[b-88i4tdukje] {
        display: inline-block;
        line-height: 70px;
        margin: 0;
    }

    #thMessaggio #btnPulisciLog[b-88i4tdukje] {
        margin: 0;
    }

/* Assicura che thData abbia position relative per il posizionamento assoluto */
#thData[b-88i4tdukje] {
    position: relative;
}

#logAccessiTable thead th .th-label[b-88i4tdukje] {
    display: inline-block;
    line-height: 38px;
}

#logAccessiTable thead th .filter-input[b-88i4tdukje] {
    display: none;
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    height: 24px;
    line-height: 24px;
    font-size: 0.9rem;
}

/* Centra il testo degli input Tessera/Nominativo (anche placeholder) */
#filtroTesseraLog[b-88i4tdukje],
#filtroNominativoLog[b-88i4tdukje] {
    text-align: center;
}

    #filtroTesseraLog[b-88i4tdukje]::placeholder,
    #filtroNominativoLog[b-88i4tdukje]::placeholder {
        text-align: center;
    }

#logAccessiTable thead th.filter-active[b-88i4tdukje] {
    padding-top: 0;
    padding-bottom: 0;
}

/* righe con altezza quasi fissa per calcolare 6 righe */
#logAccessiTable tbody tr[b-88i4tdukje] {
    height: 36px;
}

/* Nasconde la scrollbar su WebKit (Chrome/Edge) mantenendo lo scroll attivo */
#pxfd-section-log-accessi #table-scroll[b-88i4tdukje]::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Calibra l'altezza del contenitore per 10 righe esatte (10 * 36px + header ~ 35px) */
#pxfd-section-log-accessi #table-scroll[b-88i4tdukje] {
    max-height: calc(10 * 36px + 35px); /* Aumentato da 4 a 10 righe per sfruttare tutto lo spazio */
}

/* Riduce l'altezza del contenitore che mostra il valore del widget */
.pxfd-card .d-flex.align-items-center.justify-content-center[b-88i4tdukje] {
    height: 50px; /* Aumentato da 40px a 50px per migliore proporzione */
}

/* Su schermi larghi mostra 5 widget per riga per ridurre lo scroll */
@media (min-width: 1400px) {
    .pxfd-col-5x[b-88i4tdukje] {
        width: 20%;
    }
}

#clock h2[b-88i4tdukje] {
    position: relative;
    display: block;
    color: #fff;
    text-align: center;
    margin: 10px 0;
    font-weight: 700;
    font-size: 2em;
}



#clock #time[b-88i4tdukje] {
    display: flex;
}

    #clock #time div[b-88i4tdukje] {
        position: relative;
        margin: 0 5px;
        -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
    }

        #clock #time div span[b-88i4tdukje] {
            position: relative;
            display: block;
            width: 100px;
            height: 80px;
            background: #2196f3;
            color: #fff;
            font-weight: 300;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 3em;
            z-index: 10;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
        }

            #clock #time div span:nth-child(2)[b-88i4tdukje] {
                height: 30px;
                font-size: 0.7em;
                letter-spacing: 0.2em;
                font-weight: 500;
                z-index: 9;
                box-shadow: none;
                background: #127fd6;
                text-transform: uppercase;
            }

        #clock #time div:nth-last-child(2) span[b-88i4tdukje] {
            background: #ff006a;
        }

            #clock #time div:nth-last-child(2) span:nth-child(2)[b-88i4tdukje] {
                background: #ec0062;
            }

        #clock #time div:nth-last-child(1) span[b-88i4tdukje] {
            position: absolute;
            bottom: 0;
            width: 60px;
            height: 40px;
            font-size: 1.5em;
            background: #fff;
            color: #000;
            -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
        }

.menu_dropright[b-88i4tdukje] {
    display: none;
    top: 0;
    margin-top: -5px;
    left: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border: none;
}

.dropdown-menu[b-88i4tdukje] {
    border: none;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropright[b-88i4tdukje] {
    position: relative;
}

    .dropright:hover .menu_dropright[b-88i4tdukje] {
        display: block;
    }

.left_item[b-88i4tdukje] {
    border: 2px solid #8fb3e3;
    border-radius: 15px;
}

.bg_blue[b-88i4tdukje] {
    background-color: #4186e2;
}

.left_navbar li a:hover[b-88i4tdukje] {
    text-decoration: underline;
}

#sub_dropdown[b-88i4tdukje] {
    display: none;
}

.list-unstyled > li:hover #sub_dropdown[b-88i4tdukje] {
    display: block;
    position: absolute;
    background-color: white;
    left: 158px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.top_nav li:hover[b-88i4tdukje] {
    background-color: rgba(79, 78, 78, 0.153);
}

.hamburger-top[b-88i4tdukje] {
    position: absolute;
    right: 15px;
    top: 20px;
}

.dropdown-toggle[b-88i4tdukje] {
    margin-bottom: 10px;
}

.right_sidebar[b-88i4tdukje] {
    position: fixed;
    height: 100%;
    top: 0;
    right: 0;
    width: 100px;
    background-color: #212529;
    z-index: -1;
}

.icons_right[b-88i4tdukje] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin-top: 100px;
}

    .icons_right ul li[b-88i4tdukje] {
        margin-bottom: 10px;
    }

.sidebar[b-88i4tdukje] {
    width: 30%;
    position: fixed;
    right: 0;
    top: 0;
    background-color: #7b8ba9;
}

.counter-container[b-88i4tdukje] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 30px 50px;
}

.counter[b-88i4tdukje] {
    font-size: 60px;
    margin-top: 10px;
}

#Modal[b-88i4tdukje] {
    top: 60px;
    right: 50px;
    padding-right: 260px;
}

.modal-content[b-88i4tdukje] {
    width: 60%;
    margin: auto;
}


.modal[b-88i4tdukje] {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    outline: 0;
}

@media screen and (max-width: 1300px) and (min-width: 980px) {
    .pxfd-cardrow[b-88i4tdukje] {
        margin-top: 0rem;
        margin-bottom: 0rem;
        margin-left: -1rem;
        margin-right: -1rem;
        min-height: 95%;
    }

    .pxfd-section[b-88i4tdukje] {
        margin-bottom: 0rem;
    }

    .fit-cont[b-88i4tdukje] {
        min-height: fit-content;
    }
}

/* Log accessi: stili per il range di date */
/* Regole unificate per filter-date-range */
#pxfd-section-log-accessi .filter-date-range[b-88i4tdukje] {
    padding: 2px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

    #pxfd-section-log-accessi .filter-date-range input[type="date"][b-88i4tdukje] {
        border: 1px solid #ccc;
        border-radius: 2px;
        height: 18px;
        line-height: 1;
        pointer-events: auto;
        cursor: text;
        background: white;
        color: #333;
        z-index: 1001;
        position: relative;
    }

    #pxfd-section-log-accessi .filter-date-range label[b-88i4tdukje] {
        font-weight: 500;
        margin: 0;
    }

/* Modal custom sizes */
.modal-content-custom[b-88i4tdukje] {
    width: 100%;
}

.modal-dialog.modal-lg-custom[b-88i4tdukje] {
    max-width: 70%; /* Ridotto per dimensioni più proporzionate */
    width: 70%;
    margin: 1.75rem auto; /* Centrato orizzontalmente */
    position: relative;
    left: 0; /* Assicura che non ci sia offset laterale */
    transform: none; /* Rimuove eventuali trasformazioni che potrebbero causare decentramento */
}

/* Le dimensioni dei modal dei widget sono ora gestite dalla regola .modal-dialog.modal-lg-custom */

/* Assicura che i modal dei widget siano perfettamente centrati */
.modal-dialog.modal-lg-custom[b-88i4tdukje] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3.5rem); /* Centra verticalmente considerando i margini */
}

/* Tabella log accessi: layout colonne */
#logAccessiTable thead th[b-88i4tdukje],
#logAccessiTable tbody td[b-88i4tdukje] {
    white-space: nowrap;
}

    /* Data */
    #logAccessiTable thead th:nth-child(1)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(1)[b-88i4tdukje] {
        width: 12%;
    }

    /* Ora */
    #logAccessiTable thead th:nth-child(2)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(2)[b-88i4tdukje] {
        width: 6%;
    }

    /* Tessera */
    #logAccessiTable thead th:nth-child(3)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(3)[b-88i4tdukje] {
        width: 8%;
    }

    /* Nominativo */
    #logAccessiTable thead th:nth-child(4)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(4)[b-88i4tdukje] {
        width: 16%;
    }

    /* Messaggio */
    #logAccessiTable thead th:nth-child(5)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(5)[b-88i4tdukje] {
        width: 40%;
    }

    /* Ingresso */
    #logAccessiTable thead th:nth-child(6)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(6)[b-88i4tdukje] {
        width: 12%;
    }

    /* Esito */
    #logAccessiTable thead th:nth-child(7)[b-88i4tdukje],
    #logAccessiTable tbody td:nth-child(7)[b-88i4tdukje] {
        width: 6%;
    }

    /* Messaggio: una riga con ellissi */
    #logAccessiTable tbody td:nth-child(5)[b-88i4tdukje],
    #logAccessiTable .td-message[b-88i4tdukje] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Allineamento e contenimento filtro Data nel th */
#thData[b-88i4tdukje] {
    position: relative;
}

    #thData .filter-date-range[b-88i4tdukje] {
        position: absolute;
        left: 50%;
        top: 55% !important;
        transform: translate(-50%, -50%);
        width: calc(100% - 4px) !important;
        padding: 4px 2px !important;
        min-height: 50px !important;
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

        #thData .filter-date-range .filter-input[type="date"][b-88i4tdukje] {
            position: static !important; /* sovrascrive la regola generica */
            display: block;
            width: 100% !important;
            max-width: 90px !important; /* aumentato per il nuovo layout */
            height: 20px !important;
            line-height: 20px !important;
            margin: 0 auto !important;
            font-size: 0.75rem !important;
            padding: 1px 3px !important;
            box-sizing: border-box !important;
            border: 1px solid #ccc !important;
            border-radius: 2px !important;
        }

    /* Quando il th è attivo, nascondi correttamente la label */
    #thData.filter-active .th-label[b-88i4tdukje] {
        display: none !important;
    }

    /* Assicura che la label sia visibile quando il filtro non è attivo */
    #thData:not(.filter-active) .th-label[b-88i4tdukje] {
        display: inline !important;
        position: absolute !important;
        top: 60% !important;
        left: 50% !important;
        transform: translate(-50%, -48%) !important;
        line-height: 1 !important;
    }

    /* Forza lo stato inattivo per il range di date */
    #thData:not(.filter-active) .filter-date-range[b-88i4tdukje] {
        display: none;
    }

/* Forza lo stato inattivo per tutti i filtri */
#logAccessiTable thead th:not(.filter-active) .filter-input[b-88i4tdukje] {
    display: none !important;
}

#thOra[b-88i4tdukje] {
    position: relative;
}

    #thOra .filter-date-range[b-88i4tdukje] {
        position: absolute;
        left: 50%;
        top: 60% !important;
        transform: translate(-50%, -50%);
        width: calc(100% - 4px) !important;
        padding: 4px 2px !important;
        min-height: 50px !important;
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

        #thOra .filter-date-range .filter-input[type="time"][b-88i4tdukje] {
            position: static !important;
            display: block;
            width: 100% !important;
            max-width: 90px !important;
            height: 20px !important;
            line-height: 20px !important;
            margin: 0 auto !important;
            font-size: 0.75rem !important;
            padding: 1px 3px !important;
            box-sizing: border-box !important;
            border: 1px solid #ccc !important;
            border-radius: 2px !important;
        }

    #thOra.filter-active .th-label[b-88i4tdukje] {
        display: none !important;
    }

    #thOra:not(.filter-active) .th-label[b-88i4tdukje] {
        display: inline !important;
        position: absolute !important;
        top: 60% !important;
        left: 50% !important;
        transform: translate(-50%, -48%) !important;
        line-height: 1 !important;
    }

    #thOra:not(.filter-active) .filter-date-range[b-88i4tdukje] {
        display: none;
    }

    #thOra .filter-date-range label[b-88i4tdukje] {
        font-size: 8px !important;
        color: #666 !important;
        font-weight: bold !important;
        min-width: 18px !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #thOra .filter-date-range > div[b-88i4tdukje] {
        height: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex;
        flex-direction: column !important;
        gap: 6px !important;
        padding-top: 4px !important;
    }

/* Assicura che le icone X siano nascoste quando i filtri non sono attivi */
#logAccessiTable thead th:not(.filter-active) .filter-clear-btn:not(.show)[b-88i4tdukje] {
    display: none !important;
}

/* Assicura che le icone X siano visibili quando i filtri sono attivi */
#logAccessiTable thead th.filter-active .filter-clear-btn[b-88i4tdukje] {
    display: flex !important;
    z-index: 9999 !important;
}

/* Stili per le etichette DA e A */
#thData .filter-date-range label[b-88i4tdukje] {
    font-size: 8px !important;
    color: #666 !important;
    font-weight: bold !important;
    min-width: 18px !important; /* Ridotto da 20px a 18px */
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


#thData .filter-date-range > div[b-88i4tdukje] {
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex;
    flex-direction: column !important;
    gap: 6px !important; /* Aumentato lo spazio tra i filtri */
    padding-top: 4px !important; /* Aggiunto margine superiore */
}

/* Layout widget superiore: contenuto sempre in alto, altezza fissa */
.pxfd-cardrow[b-88i4tdukje] {
    align-items: flex-start;
}

.pxfd-cardcol .pxfd-card[b-88i4tdukje] {
    min-height: 110px;
    max-height: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative !important;
}

.pxfd-card-content[b-88i4tdukje] {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    /* Scritta superiore: massimo 2 righe, ellissi */
    .pxfd-card-content span:not(.display-5)[b-88i4tdukje] {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.15;
        margin-bottom: 6px;
        padding: 0;
        max-height: 2.3em; /* massimo 2 righe */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .pxfd-card-content .display-5[b-88i4tdukje] {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.1;
        margin-top: 12px; /* lo fa salire rispetto al bordo basso */
        margin-bottom: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        align-self: center; /* centra orizzontalmente */
    }

    /* Nome: altezza fissa, massimo 2 righe, ellissi */
    .pxfd-card-content span:not(.display-5)[b-88i4tdukje] {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.15;
        margin-bottom: 6px;
        padding: 0;
        height: 2.3em; /* 2 righe sempre */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    /* CountResult: allineato sotto, margine sopra per aria */
    .pxfd-card-content .display-5[b-88i4tdukje] {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.1;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        align-self: center;
    }

/* La X rossa: posizione assoluta rispetto alla card */
.pxfd-cardcol .pxfd-card .d-flex[b-88i4tdukje] {
    position: absolute !important;
    top: 8px;
    right: 12px;
    z-index: 2;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

/* Centra il bottone "+" nel widget vuoto */
.pxfd-card-content .fa-circle-plus[b-88i4tdukje] {
    display: inline-block;
    margin: 0 auto;
    position: static;
}

.pxfd-card-content[b-88i4tdukje] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100%;
}

#logAccessiTable th[b-88i4tdukje], #logAccessiTable td[b-88i4tdukje] {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 1.05em;
}

#logAccessiTable tr[b-88i4tdukje] {
    min-height: 32px;
}

#logAccessiTable[b-88i4tdukje] {
    line-height: 1.4;
}
/* _content/LayoutAspNet/Views/Shared/_MyLayout.cshtml.rz.scp.css */
