/* ============================================================
   Dashboard giornaliera (FASE 07) - layout moderno coerente
   con il design system Chronos.
   ============================================================ */

/* Toolbar superiore: gruppi colore + ricerca */
.dashboard-toolbar {
    background: #ffffff;
    border: 1px solid #e3ece0;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(69, 130, 58, 0.05);
}
.dashboard-color-groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.dashboard-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-right: 6px;
}
.dashboard-toolbar-label .material-symbols-outlined {
    font-size: 1.05rem !important;
    color: #84BD00;
}

/* Card data + navigazione giorno */
.dashboard-date-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f4faf0 0%, #ffffff 100%);
    border: 1px solid #d4e9d1;
    border-radius: 14px;
    padding: 10px 14px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(69, 130, 58, 0.06);
}
.dashboard-date-info {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}
.dashboard-date-info .date-reference {
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d5313;
    text-transform: capitalize;
    letter-spacing: -0.3px;
}
.dashboard-date-info .date-reference .material-symbols-outlined {
    font-size: 1.3rem !important;
    color: #84BD00;
    vertical-align: middle;
    margin-right: 4px;
}
.dashboard-date-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #6b7280;
    background: rgba(132, 189, 0, 0.10);
    border-radius: 999px;
    padding: 2px 10px;
    margin-top: 4px;
}
.dashboard-date-filter .material-symbols-outlined {
    font-size: 0.95rem !important;
    color: #45823a;
}

/* Pallino "presente" accanto al nome bimbo */
.dashboard-presence-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #84BD00;
    box-shadow: 0 0 0 3px rgba(132, 189, 0, 0.18);
    margin-right: 8px;
    vertical-align: middle;
}

/* Riga bimbo - stile rifinito */
.children-record {
    border-radius: 10px;
    padding: 10px 8px;
    transition: background-color 0.15s ease;
}
.children-record.is-present {
    background-color: #f1f7ee !important;
    border-left: 3px solid #84BD00;
}
.children-record .child-name-box {
    font-family: TitilliumWeb-Bold, sans-serif;
    font-weight: 600;
    color: #1f2937;
}

/* Empty state */
.dashboard-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: #fafbfc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    margin-top: 20px;
}
.dashboard-empty-state .material-symbols-outlined {
    font-size: 3.5rem !important;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}


/* ============================================================
   Stili pre-esistenti (preservati)
   ============================================================ */
.daily-report-box{
    position: absolute;
    margin-top: -24px;
    left: calc(55% - 45px);
    /* width: 10%; */
}

.home.menu-item{
    border-color: transparent;
    box-shadow: 6px 5px 8px 0px #b9b9b9;
    background-color: #84bd0014;
    border-color: #c5c5c5;
    font-size: 16px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.title-header{
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
    margin-top: -10px;
}

.home.menu-item.present{
    background-color: var(--base-color);
    color: white;

}
.date-reference-cmd{
    background-color: rgba(132, 189, 0, 0.10);
    border: 1px solid #d4e9d1;
    border-radius: 8px;
    padding: 6px 10px;
    color: #45823a;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.date-reference-cmd:hover{
    background-color: rgba(132, 189, 0, 0.22);
    transform: scale(1.05);
}
.date-reference-cmd .date-cmd-icon {
    color: #45823a;
}

.info-access{
    font-size: 40px;
    font-weight: bold;
    color: white;
    background-color: #45823a;
    border-radius: 12px;
    padding-left: 10%;
    padding-right: 10%;
    width: 100%;
    display: block;
    text-decoration: none !important;
}
.info-access.badges-nc{
    background-color: #e9d11d;
    color: black;
    display: block;
    text-align: center;
}

.time-input{
    font-weight: bold;
}
.time-input.in{
    float: left;
    width: 70%;

}
.time-input.out{
    float: left;
    width: 70%;

}

/* Selezionabili */
.in-out.selectable:hover{
    cursor: pointer;
    background-color: rgb(209, 246, 154);
    border-radius: 6px;
}
.info-details.selectable:hover{
    cursor: pointer;
    background-color: rgb(209, 246, 154);
    border-radius: 6px;
}

.delete-access{
    float: left;
    text-align: center;
   
}

.time-input.recorded{
    transition: background-color 2s ease;
    background-color: #82ef6f;
}

.child-accesses-container.updated{
    transition: background-color 2s ease-out;
    background-color: #efdc6f;
    border-radius: 3px;
}
.educator-accesses-container.updated{
    transition: background-color 2s ease-out;
    background-color: #efdc6f;
    border-radius: 3px;
}

.prepare-add-time-input:hover{
    cursor: pointer;
    background-color: rgb(209, 246, 154);
    border-radius: 6px;
}
.icon-requests{
    background-color: #cdcdcde6;
    border-radius: 5px;
    padding: 1px;
}

.child-group{
    border-radius: 10px;
    position: absolute;
    left: 94%;
    margin-top: -20px;
}
.child-group-unit{
    border-radius: 10px;
    width: 16px ;
    height: 16px;
    float: left;
    z-index: 100;
    position: relative;
}
.child-group-unit.lt{
    margin-left: -5px;
    z-index: 99;
}

.child-group-index{
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    text-align: center;
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.child-group-index.active{
    transform: scale(1.15);
    box-shadow: 0 0 0 3px white, 0 0 0 5px #45823a, 0 4px 10px rgba(0, 0, 0, 0.25);
}
.child-group-index:hover{
    cursor: pointer;
    transform: scale(1.10);
}

.child-group-index-all{
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}
.child-group-index-all:hover {
    background: #e5e7eb;
    color: #1f2937;
}
@media (max-width: 768px) {
    .child-group {
        left: 90%;
    }
}
@media (min-width: 1520px) {
    .child-group {
        left: 85%;
    }
}
@media (min-width: 1800px) {
    .child-group {
        left: 80%;
    }
}