.attendance-toolbar,.attendance-table-heading,.attendance-form-title,.attendance-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.attendance-toolbar{flex-wrap:wrap;margin:1rem 0}.attendance-toolbar label,.attendance-fields label{display:grid;gap:.45rem;color:#31445a;font-size:.88rem;font-weight:650}.attendance-toolbar input,.attendance-fields input,.attendance-fields select,.attendance-form textarea{min-height:2.7rem;border:1px solid #cbd8e5;border-radius:9px;background:#fff;padding:.55rem .7rem;color:#182f49;font:inherit}.attendance-notice{margin:1rem 0;padding:1rem 1.2rem;border-left:4px solid #ee8b25;border-radius:8px;background:#fff5e8;color:#384c62;line-height:1.6}.attendance-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.attendance-totals>div{padding:1rem;border:1px solid #d8e3ed;border-radius:12px;background:#fff;color:#61738a;font-size:.85rem}.attendance-totals strong{display:block;margin-top:.35rem;color:#173b61;font-size:1.15rem}.attendance-form{margin:1.25rem 0;padding:1.35rem;border:1px solid #d8e3ed;border-top:3px solid #ee8b25;border-radius:12px;background:#fff}.attendance-form-title{justify-content:flex-start;margin-bottom:1rem}.attendance-form-title h2,.attendance-table-heading h2{margin:.2rem 0;color:#173b61}.attendance-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin:1rem 0}.attendance-form>label{display:grid;gap:.45rem;color:#31445a;font-size:.88rem;font-weight:650}.attendance-form textarea{width:100%;resize:vertical}.attendance-actions{justify-content:flex-start;margin-top:1rem}.attendance-table-wrap{margin-top:1.5rem;padding:1.2rem;border:1px solid #d8e3ed;border-radius:12px;background:#fff;overflow-x:auto}.attendance-table-heading{margin-bottom:1rem}.attendance-table{width:100%;border-collapse:collapse;text-align:left;font-size:.86rem}.attendance-table th{padding:.75rem .55rem;background:#edf4fa;color:#526a83;font-size:.75rem;letter-spacing:.035em;white-space:nowrap}.attendance-table td{padding:.75rem .55rem;border-bottom:1px solid #e5edf4;vertical-align:top}.attendance-table td small{display:block;margin-top:.25rem;color:#6b7f94}.attendance-empty{text-align:center!important;color:#6b7f94;padding:2rem!important}.attendance-table .btn{padding:.4rem .55rem;font-size:.78rem}.attendance-table .btn-danger{background:#fff0ed;color:#9f3c2c;border:1px solid #f2c9c0}.btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:900px){.attendance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-table{min-width:850px}}@media(max-width:560px){.attendance-fields,.attendance-totals{grid-template-columns:1fr}.attendance-table-wrap{margin-inline:-.7rem;padding:.8rem}.attendance-toolbar>*{width:100%}.attendance-toolbar .btn{width:auto}}
@media print{.hr-sidebar,.hr-top,.hr-footer,.attendance-toolbar,.attendance-form,.attendance-notice,.attendance-table-heading button{display:none!important}.hr-shell,.hr-main{display:block!important;width:100%!important;margin:0!important;padding:0!important}.attendance-table-wrap{border:0;padding:0;overflow:visible}.attendance-grid-scroll{max-height:none;overflow:visible}.attendance-table{font-size:6pt;min-width:0!important;width:100%;table-layout:fixed}.attendance-table th,.attendance-table td{padding:2px 1px}.attendance-grid .attendance-person,.attendance-grid .attendance-person-head,.attendance-grid .attendance-description,.attendance-grid .attendance-description-head{position:static;width:auto;min-width:0;max-width:none}.attendance-grid .attendance-hour{width:100%;min-width:0;border:0;padding:0}.attendance-grid-note{display:none}.attendance-worksite-legend{font-size:5.5pt}.attendance-totals>div{padding:.5rem}.page-heading{margin-bottom:.5rem}}
.attendance-grid-wrap{overflow:hidden}.attendance-grid-scroll{max-height:68vh;overflow:auto;border:1px solid #d8e3ed;border-radius:9px}.attendance-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:.78rem}.attendance-grid th,.attendance-grid td{min-width:44px;padding:.3rem .18rem;text-align:center;border-right:1px solid #e3ebf2;border-bottom:1px solid #e3ebf2}.attendance-grid thead th{position:sticky;top:0;z-index:3;height:40px;background:#edf4fa}.attendance-grid .attendance-person-head,.attendance-grid .attendance-person{position:sticky;left:0;z-index:4;width:190px;min-width:190px;max-width:190px;text-align:left;background:#fff}.attendance-grid .attendance-person-head{z-index:5;background:#edf4fa}.attendance-person span{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173b61;font-weight:700}.attendance-person small{display:block;margin-top:3px;color:#6b7f94;font-size:.68rem}.attendance-grid .attendance-weekend{background:#f5f7f9}.attendance-grid .attendance-hour{box-sizing:border-box;width:39px;min-width:0;height:30px;padding:0 .1rem;border:1px solid transparent;border-radius:5px;background:transparent;color:#173b61;text-align:center;font:inherit;font-weight:650}.attendance-grid .attendance-hour:focus{border-color:#ee8b25;outline:2px solid #fbe0bf;background:#fff}.attendance-grid .attendance-hour.changed{border-color:#ee8b25;background:#fff8ee}.attendance-grid .attendance-row-total,.attendance-grid .attendance-total-head{position:sticky;right:0;z-index:2;min-width:65px;background:#f3f7fa;font-weight:700;color:#173b61}.attendance-grid .attendance-total-head{z-index:4;background:#e5eff8}.attendance-grid-note{display:block;margin-top:.75rem;color:#61738a}.attendance-hint{color:#61738a;font-size:.9rem}.attendance-toolbar #attendance-save[hidden]{display:none}@media(max-width:560px){.attendance-grid-scroll{max-height:65vh}.attendance-grid .attendance-person-head,.attendance-grid .attendance-person{width:140px;min-width:140px;max-width:140px}.attendance-grid th,.attendance-grid td{min-width:41px;padding:.25rem .12rem}.attendance-grid .attendance-hour{width:37px;height:29px}.attendance-hint{width:100%}}
.attendance-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
.attendance-category-ferie,.attendance-category-permesso,.attendance-category-malattia,.attendance-category-overtime,.attendance-category-ordinary,.attendance-category-other-absence{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.attendance-grid .attendance-person{vertical-align:middle}@media(max-width:560px){.attendance-grid .attendance-description-head,.attendance-grid .attendance-description{left:140px;width:110px;min-width:110px;max-width:110px}}
.attendance-export-dialog{width:min(94vw,560px);max-height:90vh;overflow:auto;padding:1.4rem;border:1px solid #cbd8e5;border-radius:16px;box-shadow:0 24px 70px #112c4650;color:#183652}.attendance-export-dialog::backdrop{background:#10243b80;backdrop-filter:blur(2px)}.attendance-export-dialog h2{margin:.25rem 0;color:#173b61}.attendance-export-dialog p{color:#526a83;line-height:1.55}.attendance-export-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.2rem 0}.attendance-export-fields label{display:grid;gap:.4rem;color:#31445a;font-weight:650}.attendance-export-fields select{min-height:2.7rem;min-width:0;border:1px solid #cbd8e5;border-radius:9px;background:#fff;padding:.55rem .7rem;color:#182f49;font:inherit}.attendance-export-count{min-height:1.5rem;padding:.7rem .85rem;border-radius:9px;background:#eef5fb;color:#173b61!important;font-weight:650}.attendance-export-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}@media(max-width:560px){.attendance-export-fields{grid-template-columns:1fr}.attendance-export-actions{justify-content:stretch}.attendance-export-actions .btn{flex:1}}
.attendance-toolbar .attendance-site-select select{min-height:2.7rem;min-width:210px;border:1px solid #cbd8e5;border-radius:9px;background:#fff;padding:.55rem .7rem;color:#182f49;font:inherit}.attendance-grid .attendance-description-head,.attendance-grid .attendance-description{position:sticky;left:190px;z-index:4;width:132px;min-width:132px;max-width:132px;text-align:left}.attendance-grid .attendance-description-head{z-index:5;background:#edf4fa}.attendance-grid .attendance-description{background:#fff;font-weight:700;color:#40556c}.attendance-grid .attendance-person{z-index:5}.attendance-grid .attendance-weekend{background:#fff5bd}.attendance-grid .attendance-hour.has-worksite{background:var(--worksite-color);border-color:#ffffff80}.attendance-grid .attendance-hour.changed{box-shadow:inset 0 0 0 1px #ee8b25}.attendance-grid .attendance-hour:not(.has-worksite){background:transparent}.attendance-category-ordinary .attendance-hour:not(.has-worksite){background:#eef9e9}.attendance-category-ferie .attendance-description,.attendance-category-ferie .attendance-hour:not(.has-worksite){background:#dcf4d5}.attendance-category-permesso .attendance-description,.attendance-category-permesso .attendance-hour:not(.has-worksite){background:#fff4a3}.attendance-category-malattia .attendance-description,.attendance-category-malattia .attendance-hour:not(.has-worksite){background:#d9efff}.attendance-category-overtime .attendance-description,.attendance-category-overtime .attendance-hour:not(.has-worksite){background:#ffd159}.attendance-category-other-absence .attendance-description,.attendance-category-other-absence .attendance-hour:not(.has-worksite){background:#eceff3}.attendance-worksite-legend{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .55rem;margin-top:.8rem;padding:.7rem;border-radius:9px;background:#f7f9fb;color:#53677e;font-size:.7rem}.attendance-worksite-legend>strong{width:100%;font-size:.76rem;color:#31445a}.attendance-legend-item{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}.attendance-legend-item i{display:inline-block;width:11px;height:11px;border:1px solid #c7d2dc;border-radius:3px;background:var(--worksite-color)}

/* Palette tenue e separazione visiva dei gruppi di righe per dipendente. */
.attendance-grid th,.attendance-grid td{border-color:#e5ebf1}
.attendance-grid thead th,.attendance-grid .attendance-description-head{background:#edf3f8}
.attendance-grid .attendance-weekend{background:#f4f7fa}
.attendance-grid .attendance-row-total{background:#f3f6f9}
.attendance-grid tbody tr:nth-child(12n + 1) td,.attendance-grid tbody tr:nth-child(12n + 2) td,.attendance-grid tbody tr:nth-child(12n + 3) td,.attendance-grid tbody tr:nth-child(12n + 4) td,.attendance-grid tbody tr:nth-child(12n + 5) td,.attendance-grid tbody tr:nth-child(12n + 6) td{background-color:#fff}
.attendance-grid tbody tr:nth-child(12n + 7) td,.attendance-grid tbody tr:nth-child(12n + 8) td,.attendance-grid tbody tr:nth-child(12n + 9) td,.attendance-grid tbody tr:nth-child(12n + 10) td,.attendance-grid tbody tr:nth-child(12n + 11) td,.attendance-grid tbody tr:nth-child(12n) td{background-color:#f7f9fc}
.attendance-grid tbody tr:nth-child(6n + 1) > *{border-top:3px solid #c8d7e5}
.attendance-grid tbody tr:nth-child(6n) > *{border-bottom:3px solid #c8d7e5}
.attendance-grid .attendance-person{border-left:4px solid #8eabc5;border-radius:8px 0 0 8px;background:#f1f6fa;font-size:.83rem}
.attendance-person span{color:#294d6d}
.attendance-grid .attendance-description{background:#f7f9fb;color:#52677b}
.attendance-category-ordinary .attendance-description,.attendance-category-ordinary .attendance-hour:not(.has-worksite){background:#f0f6ec}
.attendance-category-ferie .attendance-description,.attendance-category-ferie .attendance-hour:not(.has-worksite){background:#eaf3e6}
.attendance-category-permesso .attendance-description,.attendance-category-permesso .attendance-hour:not(.has-worksite){background:#f8f4e4}
.attendance-category-malattia .attendance-description,.attendance-category-malattia .attendance-hour:not(.has-worksite){background:#eaf2f8}
.attendance-category-overtime .attendance-description,.attendance-category-overtime .attendance-hour:not(.has-worksite){background:#f7eee3}
.attendance-category-other-absence .attendance-description,.attendance-category-other-absence .attendance-hour:not(.has-worksite){background:#f0f2f4}
.attendance-grid .attendance-hour{border-color:#e5ebf1}
.attendance-grid .attendance-hour:focus{border-color:#d79b59;outline:2px solid #f1dfc9;background:#fff}
.attendance-grid .attendance-hour.changed{border-color:#d79b59;background:#fff9f1}
.attendance-grid .attendance-hour.has-worksite{border-color:#ffffffa8}
@media print{.attendance-grid tbody tr:nth-child(6n + 1) > *{border-top:2px solid #9bacbd}.attendance-grid tbody tr:nth-child(6n) > *{border-bottom:2px solid #9bacbd}}
