.attendance-panel>summary{cursor:pointer;min-height:44px;display:list-item;list-style-position:inside}.attendance-panel[open]>summary{margin-bottom:16px}.attendance-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.attendance-controls input,.attendance-controls select{box-sizing:border-box;width:100%;min-height:44px}.attendance-legend{line-height:1.9;color:#334155;background:#f1f5f9;padding:12px;border-radius:8px}.attendance-actions{display:flex;flex-wrap:wrap;gap:8px}.attendance-actions button{min-height:44px}.attendance-panel [hidden]{display:none!important}.attendance-scroll{max-width:100%;overflow:auto;max-height:65vh;border:1px solid #cbd5e1;border-radius:10px;-webkit-overflow-scrolling:touch}.attendance-scroll table{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-variant-numeric:tabular-nums}.attendance-scroll caption{text-align:left;padding:12px;font-weight:700;background:#f8fafc}.attendance-scroll th,.attendance-scroll td{padding:4px;text-align:center;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;background:#fff}.attendance-scroll thead th{position:sticky;top:0;background:#172337;color:white;z-index:2;min-width:48px;font-size:14px}.attendance-scroll small{display:block;font-size:11px;font-weight:500}.attendance-scroll .attendance-name{position:sticky;left:0;z-index:1;text-align:left;min-width:84px;max-width:140px;white-space:normal;overflow-wrap:anywhere;padding:10px;font-size:15px;background:#f8fafc;box-shadow:2px 0 3px #0f172a12}.attendance-scroll thead .attendance-name{z-index:3;background:#172337}.attendance-scroll .attendance-total{min-width:68px;font-size:20px;font-weight:800;color:#172337}.attendance-cell{display:block;width:48px;min-height:48px;border:1px solid transparent;background:#f8fafc;border-radius:6px;color:#172337;font-size:25px;line-height:1.2;cursor:pointer}.attendance-cell.attendance-pending{background:#fff7df;border-color:#d6a344;color:#704407}.attendance-cell:disabled{opacity:.35;cursor:default}.attendance-cell:focus-visible{outline:3px solid #2454d6;outline-offset:1px}.attendance-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:440px;max-height:85dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:16px;padding:20px;color:#172337;background:white}.attendance-dialog::backdrop{background:#0f172a99}.attendance-dialog h2{font-size:21px;margin:0 0 12px}.attendance-dialog p{line-height:1.6}.attendance-dialog fieldset{border:0;padding:0;margin:16px 0}.attendance-choice{display:flex;align-items:center;gap:12px;padding:10px;margin:6px 0;border:1px solid #cbd5e1;border-radius:8px;min-height:44px}.attendance-choice input{width:20px!important;height:20px;margin:0!important;flex-shrink:0}.attendance-choice span{font-size:30px}.attendance-dialog-actions{display:flex;gap:10px}.attendance-dialog-actions button{flex:1;min-height:44px}.attendance-error{color:#9f271b}.attendance-dialog li{padding:5px 0}@media(max-width:600px){.attendance-controls{grid-template-columns:1fr 1fr}.attendance-controls>div:last-child{grid-column:1/-1}.attendance-actions button{flex:1 1 45%}.attendance-panel{min-width:0}.attendance-scroll .attendance-name{min-width:72px;max-width:110px}}

.attendance-legend{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.attendance-legend span{white-space:nowrap;font-weight:700}.attendance-legend small{grid-column:1/-1;font-size:13px;font-weight:400}
/* Keep day labels legible while scrolling the attendance summary. */
.attendance-scroll thead th{top:0;min-width:54px;padding:9px 5px;font-size:17px;line-height:1.3;white-space:nowrap;background:#172337!important;color:#fff!important}
.attendance-scroll thead th small{font-size:12px;color:#e2e8f0;font-weight:700;margin-top:3px}
.attendance-scroll thead .attendance-name{min-width:96px;z-index:5}
.attendance-scroll thead th:nth-child(2){position:sticky;left:96px;z-index:4;min-width:76px}
.attendance-scroll tbody .attendance-total{position:sticky;left:96px;z-index:2;background:#fff}
.attendance-scroll .attendance-name{min-width:96px}
@media(max-width:600px){.attendance-scroll thead th{font-size:17px;min-width:52px}.attendance-scroll .attendance-name,.attendance-scroll thead .attendance-name{min-width:78px}.attendance-scroll thead th:nth-child(2),.attendance-scroll tbody .attendance-total{left:78px}}
.attendance-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.attendance-time-fields label{font-weight:700}.attendance-time-fields input{display:block;width:100%;box-sizing:border-box;min-height:44px;margin-top:6px;font-size:18px}