/* ================================================================== Rapportino del tecnico */
.passi-rapportino {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.passi-rapportino .passo {
    flex: 1 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: .68rem;
    text-align: center;
    line-height: 1.1;
}

.passi-rapportino .passo span,
.num-sezione {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #495057;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .2rem;
    flex-shrink: 0;
}

.num-sezione {
    margin-bottom: 0;
}

.passi-rapportino .passo.fatto span,
.num-sezione.fatto {
    background: #198754;
    color: #fff;
}

.rapportino .card {
    scroll-margin-top: 70px;
}

.stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ced4da;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.stepper button {
    width: 40px;
    border: 0;
    background: #f1f3f5;
    font-size: 1.2rem;
    line-height: 1;
}

.stepper button:active {
    background: #dee2e6;
}

.stepper input {
    width: 56px;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    min-height: 40px;
}

.riga-materiale,
.riga-ore {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.riga-materiale .desc,
.riga-ore .nome {
    flex: 1;
    min-width: 0;
}

.riga-ore .viaggio {
    width: 80px;
}

.risultati-materiale {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    max-height: 320px;
    overflow-y: auto;
}

.risultati-materiale .risultato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
    text-align: left;
    padding: .55rem .75rem;
}

.risultati-materiale .risultato:active,
.risultati-materiale .risultato:hover {
    background: #e7f1ff;
}

.risultati-materiale .giac {
    white-space: nowrap;
    color: #198754;
}

.griglia-foto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .5rem;
}

.griglia-foto .foto {
    position: relative;
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    background: #f1f3f5;
}

.griglia-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.griglia-foto form {
    position: absolute;
    top: 4px;
    right: 4px;
}

.firma-pad {
    position: relative;
    border: 2px dashed #adb5bd;
    border-radius: .5rem;
    background: #fff;
}

.firma-pad canvas {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
}

.firma-pad [data-firma-pulisci] {
    position: absolute;
    top: 6px;
    right: 6px;
}

.firma-img {
    max-width: 100%;
    max-height: 140px;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    display: block;
    margin-bottom: .25rem;
}

/* ================================================================== Menu iniziale del tecnico */
.menu-macro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 768px) {
    .menu-macro {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-macro .voce {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 130px;
    padding: 1rem .5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    color: #212529;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    letter-spacing: .03em;
}

.menu-macro .voce i {
    font-size: 2.3rem;
    line-height: 1;
}

.menu-macro .voce .conteggio {
    position: absolute;
    top: .6rem;
    right: .7rem;
}

.menu-macro .voce.presto {
    opacity: .55;
}

/* Campanella notifiche */
.campanella {
    position: relative;
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}

.campanella .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: .6rem;
}

/* ================================================================== Timbratura */
.orologio {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.btn-timbra {
    font-size: 1.5rem;
    letter-spacing: .08em;
    border-radius: 1rem;
}

/* Griglie presenze e calendario assenze */
.griglia-presenze {
    font-size: .78rem;
}

.griglia-presenze th,
.griglia-presenze td {
    padding: .2rem .25rem;
    white-space: nowrap;
    vertical-align: middle;
}

.griglia-presenze .sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.griglia-presenze .festivo {
    background: #f1f3f5;
    color: #868e96;
}

.griglia-presenze .assenza,
.legenda.assenza {
    background: #d1e7dd;
}

.griglia-presenze .in-attesa,
.legenda.in-attesa {
    background: #fff3cd;
}

.griglia-presenze .anomalia {
    background: #f8d7da;
}

.legenda {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #ced4da;
    vertical-align: middle;
}
