/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-cj3fj28uav] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-cj3fj28uav] {
    flex: 1;
}

.top-row[b-cj3fj28uav] {
    background-color: #cfb46f;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-cj3fj28uav]  a, .top-row[b-cj3fj28uav]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-cj3fj28uav]  a:hover, .top-row[b-cj3fj28uav]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-cj3fj28uav]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-cj3fj28uav] {
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        z-index: 10;
        width: 100%;
    }

    .sidebar[b-cj3fj28uav] {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 10;
        background: #75172b;
    }

    article.content[b-cj3fj28uav] {
        padding-top: 5em !important;
        padding-bottom: 5em !important;
    }
    .top-row[b-cj3fj28uav]  a, .top-row[b-cj3fj28uav]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    main[b-cj3fj28uav] {
        width: calc(100% - 250px);
    }

    .page[b-cj3fj28uav] {
        flex-direction: row;
    }

    .sidebar[b-cj3fj28uav] {
        width: 250px;
        height: 100vh;
        position: sticky;
        background-image: linear-gradient(180deg, #75172b 50%, #cfb46f 100%);
        top: 0;
    }

    .top-row[b-cj3fj28uav] {
        position: sticky;
        top: 0;
        z-index: 1020; /* come .sticky-top di Bootstrap: sopra le colonne sticky delle tabelle */
    }

    .top-row.auth[b-cj3fj28uav]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }
}

#blazor-error-ui[b-cj3fj28uav] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-cj3fj28uav] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ftcrkoicqg] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked[b-ftcrkoicqg] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row[b-ftcrkoicqg] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ftcrkoicqg] {
    font-size: 1.1rem;
    padding-top: 0;
}

.nav-item[b-ftcrkoicqg] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ftcrkoicqg] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ftcrkoicqg] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ftcrkoicqg]  .nav-link,
    .nav-item .nav-link[b-ftcrkoicqg] {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        padding: 0 1rem;
        text-decoration: none;
    }

        .nav-item[b-ftcrkoicqg]  .nav-link i,
        .nav-item .nav-link i[b-ftcrkoicqg] {
            width: 1.25rem;
            text-align: center;
        }

    .nav-item[b-ftcrkoicqg]  a.active {
        background-color: rgba(255,255,255,0.37);
        color: white;
    }

    .nav-item[b-ftcrkoicqg]  .nav-link:hover,
    .nav-item .nav-link:hover[b-ftcrkoicqg] {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

.nav-link[b-ftcrkoicqg] {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}


/* Stili per il sottomenu */
.submenu[b-ftcrkoicqg] {
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.5rem;
    margin-top: 0.5rem;
}

    .submenu .nav-item[b-ftcrkoicqg] {
        padding-bottom: 0;
        padding-top: 0;
    }

    .submenu .nav-link[b-ftcrkoicqg] {
        line-height: 2.5rem;
        font-size: 0.85rem;
    }

    .submenu .nav-item[b-ftcrkoicqg]  .nav-link,
    .submenu .nav-item .nav-link[b-ftcrkoicqg] {
        height: 2rem;
    }

.nav-scrollable[b-ftcrkoicqg] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ftcrkoicqg] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ftcrkoicqg] {
        display: none;
    }

    .nav-scrollable[b-ftcrkoicqg] {
        /* Never collapse the sidebar for wide screens */
        display: block;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Absence/Absence_Index.razor.rz.scp.css */
.calendar-table td:hover[b-vedx1sofpc] {
    background-color: var(--bs-secondary) !important;
}

.calendar-table td[b-vedx1sofpc] {
    transition: .2s ease background;
    cursor: pointer;
}
/* /Components/Pages/Admin/MonthlySummary.razor.rz.scp.css */
.summary-wrapper[b-ytw1797pji] {
    max-height: calc(100vh - 230px);
    overflow: auto;
}

.summary-table[b-ytw1797pji] {
    --rest: #ffd166;
    --total: #a7d676;
    --weekend: #eef2f7;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .875rem;
}

.summary-table th[b-ytw1797pji],
.summary-table td[b-ytw1797pji] {
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid #e3e6ea;
    border-right: 1px solid #f0f1f3;
    padding: .35rem .6rem;
}

/* Intestazione fissa */
.summary-table thead th[b-ytw1797pji] {
    position: sticky;
    background: #2f3e4e;
    color: #fff;
    font-weight: 600;
    z-index: 2;
    border-bottom-color: #2f3e4e;
}

.summary-table thead tr:first-child th[b-ytw1797pji] {
    top: 0;
}

.summary-table thead tr:last-child th[b-ytw1797pji] {
    top: 1.9rem;
}

.summary-table thead th[rowspan][b-ytw1797pji] {
    top: 0;
}

.summary-table .contract[b-ytw1797pji] {
    font-size: .7rem;
    font-weight: 400;
    opacity: .75;
    height: 1.2rem;
}

.summary-table .weekly[b-ytw1797pji] {
    font-size: .7rem;
    font-weight: 400;
    text-transform: none;
    opacity: .75;
}

.summary-table .user-col[b-ytw1797pji] {
    min-width: 7.5rem;
}

/* Colonne data/giorno fisse a sinistra */
.summary-table .sticky-col[b-ytw1797pji] {
    position: sticky;
    background: #fff;
    z-index: 1;
    font-weight: 600;
}

.summary-table thead .sticky-col[b-ytw1797pji] {
    background: #2f3e4e;
    z-index: 3;
}

.summary-table .col-date[b-ytw1797pji] {
    left: 0;
    min-width: 4.5rem;
}

.summary-table .col-day[b-ytw1797pji] {
    left: 4.5rem;
    min-width: 3.5rem;
    border-right: 2px solid #d5d9de;
}

.summary-table tbody tr:hover td[b-ytw1797pji] {
    filter: brightness(.96);
}

/* Weekend */
.summary-table tr.weekend td[b-ytw1797pji],
.summary-table tr.weekend .sticky-col[b-ytw1797pji] {
    background-color: var(--weekend);
}

.summary-table tr.weekend .sticky-col[b-ytw1797pji] {
    color: #0d6efd;
}

.summary-table .rest[b-ytw1797pji],
.summary-table tr.weekend td.rest[b-ytw1797pji] {
    background-color: var(--rest);
    color: #6b4e00;
    font-size: .75rem;
    letter-spacing: .03em;
}

/* Fine settimana: separatore più marcato */
.summary-table tr.week-end-row td[b-ytw1797pji] {
    border-bottom: 2px solid #9aa4ae;
}

/* Settimana con ore diverse dal monte ore */
.summary-table .week-diff[b-ytw1797pji] {
    box-shadow: inset 3px 0 0 #dc3545, inset -3px 0 0 #dc3545;
    color: #b02a37;
    font-weight: 700;
}

.summary-table .total[b-ytw1797pji] {
    position: sticky;
    bottom: 0;
    background-color: var(--total);
    font-weight: 700;
    border-top: 2px solid #6c9a3f;
}

.summary-table tfoot .sticky-col[b-ytw1797pji] {
    z-index: 2;
}

/* Pulsanti ore/assenza nella cella (solo amministratore su operatore) */
.summary-table td.editable[b-ytw1797pji] {
    position: relative;
}

.cell-actions[b-ytw1797pji] {
    position: absolute;
    right: .15rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: .15rem;
}

.cell-actions .btn[b-ytw1797pji] {
    padding: 0 .3rem;
    font-size: .7rem;
}

.summary-table td.editable:hover .cell-actions[b-ytw1797pji] {
    display: inline-flex;
}

@media (hover: none) {
    .cell-actions[b-ytw1797pji] {
        display: inline-flex;
    }
}

.match-badge[b-ytw1797pji] {
    background: #fff4e5;
    color: #a14d00;
    border: 1px solid #ffc078;
    font-weight: 600;
}

.legend[b-ytw1797pji] {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: .2rem;
    vertical-align: -.15rem;
    margin-right: .35rem;
    border: 1px solid #ccc;
}

.legend.rest[b-ytw1797pji] {
    background: #ffd166;
}

.legend.weekend-legend[b-ytw1797pji] {
    background: #eef2f7;
}

.legend.week-diff[b-ytw1797pji] {
    background: #fff;
    box-shadow: inset 3px 0 0 #dc3545, inset -3px 0 0 #dc3545;
}
