/* Housekeeping - STORICO: calendario, riepilogo del giorno e vista in sola lettura */

/* ---- Calendario ---- */
.ac-hk-cal {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 14px 14px 10px;
    margin-bottom: 18px;
    max-width: 420px;
    box-shadow: 0 2px 10px rgba(20, 40, 80, 0.05);
}
.ac-hk-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ac-hk-cal-mese { font-weight: 700; font-size: 16px; color: #1a202c; }
.ac-hk-cal-freccia {
    width: 34px; height: 34px;
    border: none; border-radius: 50%;
    background: #eef4fb; color: #2563eb;
    font-size: 22px; line-height: 1; cursor: pointer;
}
.ac-hk-cal-freccia:disabled { opacity: 0.35; cursor: default; }
.ac-hk-cal-settimana, .ac-hk-cal-griglia {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.ac-hk-cal-settimana span {
    text-align: center; font-size: 11px; font-weight: 600;
    color: #8a94a6; text-transform: uppercase; padding-bottom: 4px;
}
.ac-hk-cal-giorno, .ac-hk-cal-vuoto { aspect-ratio: 1 / 1; min-height: 36px; }
.ac-hk-cal-giorno {
    border: none; border-radius: 10px;
    background: transparent; color: #b4bcc9;
    font-size: 14px; font-weight: 500; cursor: default;
    position: relative;
}
.ac-hk-cal-giorno.ac-hk-ha-report {
    background: #eef4fb; color: #1f4f82; font-weight: 700; cursor: pointer;
}
.ac-hk-cal-giorno.ac-hk-ha-report::after {
    content: ''; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: #2563eb;
}
.ac-hk-cal-giorno.ac-hk-ha-report:hover { background: #dbe9f8; }
.ac-hk-cal-giorno.ac-hk-selezionato { background: #2563eb; color: #fff; }
.ac-hk-cal-giorno.ac-hk-selezionato::after { background: #fff; }
.ac-hk-cal-giorno.ac-hk-oggi { outline: 1px dashed #c3ccda; outline-offset: -2px; }
.ac-hk-cal-legenda { margin: 8px 2px 0; font-size: 12px; color: #8a94a6; }
.ac-hk-cal-punto {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: #2563eb; margin-right: 4px; vertical-align: middle;
}

/* ---- Testata del giorno ---- */
.ac-hk-storico-testa {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin: 4px 0 14px;
}
.ac-hk-storico-testa h3 { margin: 0 0 2px; font-size: 18px; color: #1a202c; }
.ac-hk-storico-testa p { margin: 0; font-size: 13px; color: #718096; }
.ac-hk-storico-msg { text-align: center; color: #8a94a6; padding: 26px 10px; }

/* ---- Riepilogo del giorno ---- */
.ac-hk-riepilogo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.ac-hk-riepilogo-voce {
    background: #fff; border: 1px solid #e6eaf0; border-radius: 12px;
    padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.ac-hk-riepilogo-voce strong { font-size: 20px; color: #1a202c; line-height: 1.1; }
.ac-hk-riepilogo-voce span { font-size: 11px; color: #8a94a6; text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 560px) {
    .ac-hk-riepilogo { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Sola lettura ---- */
.ac-hk-spunta-ro { cursor: default; background: var(--ac-success, #2f9e63); color: #fff; }
.ac-hk-card-valore { font-weight: 600; color: #2d3748; }
