:root{--paper:#f5f2e8;--surface:#fffef9;--ink:#243d38;--muted:#58675d;--green:#123d39;--line:#d2dbd1;--soft:#e7eee4;--alert:#9a4426;--focus:#327b6a;font:16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-weight:600;transition:background .16s,border-color .16s}button:hover{background:var(--soft);border-color:#8ca390}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button.primary{color:#fff;background:var(--green);border-color:var(--green)}button.primary:hover{background:#26584d}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-height:44px;border:1px solid #9eafa0;border-radius:6px;background:#fff;padding:9px 11px;font-weight:400}input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:var(--green);flex-shrink:0}textarea{resize:vertical;line-height:1.6}h1,h2,h3,p{margin:0}h1{font:700 clamp(28px,4vw,36px)/1.4 "Songti SC","STSong",serif;letter-spacing:.02em}h2{font-size:21px;line-height:1.5}h3{font-size:17px}.muted,small{color:var(--muted)}small{font-size:13px;line-height:1.6}label{font-weight:600}
.app-header{min-height:86px;border-bottom:1px solid var(--line);padding:18px max(24px,calc((100vw - 1400px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--surface);gap:20px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-weight:700;font-family:"Songti SC",serif;font-size:20px}.brand img{object-fit:contain}.brand small{display:block;font:400 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.08em}.back-link{padding:10px 0;min-height:44px;font-size:14px}main{max-width:1448px;margin:0 auto;padding:34px 24px 150px}.page-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:26px}.page-heading p{color:var(--muted);margin-top:7px}.private-label{font-size:13px;border:1px solid #a6b5a1;color:var(--green);padding:5px 11px;border-radius:20px;white-space:nowrap}.date-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:23px}.date-bar label{font-size:14px}.date-bar input{max-width:172px}.date-bar #previous-date,.date-bar #next-date{font-size:24px;font-weight:400;line-height:1;padding:8px 13px}.quiet{background:transparent}.workspace-nav{display:flex;gap:0;border-bottom:2px solid var(--line);overflow-x:auto}.workspace-nav button{border:0;background:none;white-space:nowrap;border-radius:0;padding:14px 24px;position:relative;font-size:16px}.workspace-nav button[aria-current=page]{color:var(--green);background:var(--soft);box-shadow:inset 0 -3px var(--green)}#notice{min-height:24px;margin:14px 0;font-size:14px;overflow-wrap:anywhere}#notice.error{background:#fff0e7;color:var(--alert);border-left:4px solid var(--alert);padding:12px}#notice:empty{margin:8px 0;min-height:8px}.attendance-layout{display:grid;grid-template-columns:186px minmax(0,1fr);gap:30px;align-items:start}.attendance-layout.summary-mode{grid-template-columns:minmax(0,1fr)}aside{position:sticky;top:20px}.sidebar-label{font-size:14px;color:var(--muted);padding:0 12px 12px}#class-list{display:grid;gap:5px}#class-list button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;background:transparent;gap:8px;padding:11px 12px}#class-list button[aria-current=true]{background:var(--green);color:#fff}#class-list button small{font-size:12px;color:inherit;opacity:.85}#class-list .no-roster{color:var(--muted)}.sidebar-note{font-size:13px;color:var(--muted);padding:16px 12px}.mobile-class{display:none}.workspace-content{min-width:0}.class-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}.class-heading h2{font:700 26px/1.5 "Songti SC",serif}.class-heading p{font-size:14px;color:var(--muted);margin-top:4px}.class-heading button{font-size:14px;white-space:nowrap}.category-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.category-nav button{font-size:14px;padding:8px 14px;min-height:44px}.category-nav button[aria-current=true]{background:var(--soft);border-color:#4d735c;color:var(--green)}.task-heading{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:8px}.task-heading p{font-size:14px;color:var(--muted);margin-top:5px;max-width:700px}.selected-count{font-size:14px;white-space:nowrap;background:var(--soft);padding:6px 12px;border-radius:6px}.report-state{font-size:13px;color:var(--muted);min-height:25px;margin-bottom:12px}.report-state.late{color:var(--alert)}.selection-toolbar{display:flex;align-items:end;gap:24px;margin:16px 0 20px}.selection-toolbar>label:first-child{max-width:360px;flex:1;font-size:13px}.selection-toolbar input[type=search]{margin-top:5px}.selected-filter{display:flex;gap:9px;align-items:center;font-size:14px;min-height:44px;white-space:nowrap}.student-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.student-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.student-card.is-selected{border-color:#79967b;background:#fbfdf8}.student-choice{display:flex;align-items:center;gap:12px;min-height:70px;padding:13px 16px;cursor:pointer}.student-name{min-width:0;font-size:17px}.student-name small{display:block;font-weight:400;font-size:12px;letter-spacing:.03em}.other-mode{font-size:12px;color:var(--muted);margin-left:auto;max-width:64px;line-height:1.5}.student-fields{padding:0 16px 16px;display:grid;gap:12px}.student-fields label{font-size:13px;display:grid;gap:5px}.student-fields textarea{min-height:84px;font-size:15px}.standing-dates{display:grid;gap:10px;grid-template-columns:1fr 1fr}.standing-dates input{min-width:0;font-size:13px!important;padding:8px!important}.proof-actions{display:flex;flex-wrap:wrap;gap:8px}.proof-actions button,.upload-label{font-size:13px;font-weight:600;min-height:44px;padding:9px 10px;background:#fff;border:1px solid var(--line);border-radius:5px}.upload-label{position:relative;overflow:hidden;display:inline-flex;align-items:center;cursor:pointer}.upload-label input[type=file]{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.upload-label:focus-within{outline:3px solid var(--focus);outline-offset:2px}.proof-hint{font-size:12px;color:var(--muted)}.daily-extra{border-top:1px solid var(--line);margin-top:28px;padding-top:22px;display:grid;gap:18px}.daily-extra label{display:grid;gap:6px;font-size:14px}.daily-extra #present-wrap{max-width:330px}.daily-extra textarea{max-width:800px}.warning{border-left:3px solid var(--alert);background:#fff2e7;color:#76381f;font-size:14px;padding:14px 16px;margin-bottom:20px;white-space:pre-line;overflow-wrap:anywhere}.warning a{color:inherit}.empty-state{padding:50px 24px;border:1px dashed #a3b29f;text-align:center;color:var(--muted);background:var(--surface);border-radius:8px}
#save-bar{position:fixed;inset:auto 0 0;background:rgba(255,254,249,.97);border-top:1px solid #b3c0ad;padding:14px 24px calc(14px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -4px 16px rgba(26,54,38,.04)}#save-bar>div{max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}#save-state{font-size:14px;overflow-wrap:anywhere}#save-state.dirty{color:var(--alert)}.save-actions,.export-actions{display:flex;gap:10px}.summary-controls{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 16px}.summary-controls button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.summary-definition{font-size:14px;color:var(--muted);max-width:1100px;line-height:1.8}.table-help{font-size:13px;color:var(--muted);margin:14px 0 9px}.summary-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #bfccba;background:var(--surface);border-radius:7px}.summary-table-wrap table{border-collapse:collapse;min-width:2100px;width:100%;font-size:14px}.summary-table-wrap th,.summary-table-wrap td{padding:13px 14px;text-align:right;border-bottom:1px solid var(--line);border-right:1px solid #e2e8dd;min-width:95px;vertical-align:top}.summary-table-wrap th{background:#e3eadf;font-size:13px;text-align:right;font-weight:600}.summary-table-wrap th:first-child,.summary-table-wrap td:first-child{position:sticky;left:0;text-align:left;min-width:145px;background:var(--surface);z-index:1}.summary-table-wrap th:first-child{background:#e3eadf}.summary-table-wrap tbody tr:nth-child(even) td{background:#f1f4ed}.summary-table-wrap td.missing{color:var(--muted);font-size:12px}.summary-table-wrap td.warn{color:var(--alert);font-weight:700}.summary-table-wrap caption{text-align:left;padding:14px;font-weight:700}.class-detail{border:1px solid var(--line);border-radius:8px;margin-top:18px;background:var(--surface)}.class-detail summary{cursor:pointer;padding:18px;font-weight:700;font-size:18px;min-height:56px}.class-detail-content{padding:0 18px 18px}.detail-table{width:100%;border-collapse:collapse;font-size:14px}.detail-table th,.detail-table td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.detail-table th{width:190px;font-weight:600}.detail-table td{white-space:pre-line;overflow-wrap:anywhere}.detail-table td:last-child{min-width:0}.detail-status{font-size:12px;color:var(--muted);font-weight:400;display:block}.detail-note{margin-top:12px;font-size:14px;color:var(--muted)}dialog{max-width:860px;width:calc(100% - 32px);max-height:90vh;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:24px;color:var(--ink)}dialog::backdrop{background:rgba(16,37,30,.5)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px}dialog>.muted{font-size:13px;margin:6px 0 18px}#proof-images{display:grid;gap:18px}#proof-images img{width:100%;height:auto;display:block}body.is-busy{cursor:progress}
@media(max-width:1120px){.student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-layout{grid-template-columns:165px minmax(0,1fr);gap:20px}.workspace-nav button{padding:13px 19px}.export-actions{flex-wrap:wrap;justify-content:end}}
@media(max-width:760px){.app-header{padding:14px 16px;min-height:76px}.brand{font-size:18px;gap:9px}.brand img{width:34px;height:34px}.back-link{font-size:13px}.brand small{font-size:12px}main{padding:25px 16px 160px}.page-heading{margin-bottom:20px}.page-heading p{font-size:14px}.date-bar{gap:7px}.date-bar input{max-width:155px}.date-bar label{width:100%}.date-bar #reload-record{margin-left:auto;font-size:13px;padding:8px 10px}.workspace-nav{margin:0 -16px;padding:0 10px}.workspace-nav button{font-size:14px;padding:13px 14px;flex-shrink:0}.attendance-layout{display:block}aside{position:static;margin-bottom:23px}.sidebar-label,#class-list,.sidebar-note{display:none}.mobile-class{display:flex;align-items:center;gap:12px;font-size:14px}.mobile-class select{flex:1;min-width:0}.class-heading h2{font-size:24px}.class-heading>button{font-size:13px;padding:9px 11px}.category-nav{gap:7px;margin-bottom:22px}.category-nav button{font-size:13px;flex-grow:1;padding:8px 9px}.task-heading{gap:10px}.task-heading h2{font-size:19px}.task-heading p{font-size:13px}.selected-count{padding:5px 8px;font-size:13px}.student-grid{gap:9px}.student-choice{padding:12px;min-height:72px;gap:9px}.student-name{font-size:16px}.student-name small{font-size:12px}.student-fields{padding:0 12px 14px}.standing-dates{grid-template-columns:1fr}.selection-toolbar{gap:14px}.selection-toolbar>label:first-child{max-width:none}.selected-filter{font-size:13px}.other-mode{display:none}#save-bar{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}#save-bar>div{align-items:stretch;gap:9px;flex-direction:column}#save-state{font-size:13px}.save-actions{justify-content:stretch}.save-actions button{flex:1;min-height:48px}.summary-mode .class-heading{display:block}.summary-mode .export-actions{margin-top:16px;justify-content:start}.summary-definition{font-size:13px}.detail-table th{width:115px;padding:10px 8px}.detail-table td{padding:10px 6px}.class-detail-content{padding:0 12px 12px}.class-detail summary{padding:14px;font-size:17px}.warning{font-size:13px;padding:12px}dialog{padding:18px}}
@media(max-width:390px){.student-grid{grid-template-columns:1fr}.student-choice{min-height:65px}.standing-dates{grid-template-columns:1fr 1fr}.private-label{font-size:12px;padding:4px 8px}.date-bar #today{padding:9px 10px}.date-bar #reload-record{font-size:12px;padding:9px 7px}.brand small{letter-spacing:0}.back-link{max-width:88px;text-align:right}}
.compact-label{display:none}.pending-choice>span{display:flex;align-items:center;gap:8px;font-weight:400}.pending-choice small{font-weight:400}
.attendance-layout.single-class{grid-template-columns:minmax(0,1fr)}.access-gate{width:calc(100% - 32px);max-width:520px;margin:50px auto 100px;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.gate-intro p{margin:10px 0 26px;color:var(--muted)}#access-form{display:grid;gap:19px}#access-form label{display:grid;gap:7px;font-size:14px}#access-form button{min-height:48px}#gate-status{color:var(--alert);font-size:14px;min-height:22px}.gate-hint{font-size:13px;color:var(--muted);margin-top:14px}.student-fields select{font-size:15px}#switch-access{font-size:14px}.app-header:has(#switch-access:not([hidden])) .back-link{margin-left:auto}
@media(max-width:760px){.wide-label{display:none}.compact-label{display:inline}.date-bar{gap:6px}.date-bar label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.date-bar input{max-width:135px;font-size:14px}.date-bar #reload-record{margin-left:0;min-width:44px;padding:9px 7px}.date-bar #today{min-width:44px;padding:9px 7px}.workspace-nav{margin:0;padding:0;overflow:visible}.workspace-nav button{flex:1;min-width:0;font-size:13px;padding:12px 5px}.category-nav button{flex-basis:calc(33.33% - 7px);font-size:13px;padding:8px 7px}.private-label{font-size:12px}main{padding-top:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.student-card{height:84px;display:grid;grid-template-columns:minmax(108px,.9fr) minmax(0,1fr);align-items:center}.student-card.is-selected{background:#e2eddf;border-color:#789774;box-shadow:inset 3px 0 #52744e}.student-choice{min-width:0;height:82px;min-height:0;padding:12px;gap:9px}.student-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.student-preview{border:0;background:transparent;min-width:0;width:100%;max-width:100%;height:60px;min-height:44px;padding:10px 12px 10px 2px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;font-size:13px;font-weight:400;color:#365b3a}.student-preview:hover{background:#d5e4d1;text-decoration:underline}.other-mode{padding-right:12px;margin-left:auto}.candidate-note{font-size:13px;color:var(--muted);margin:-4px 0 18px}.selection-toolbar{flex-wrap:wrap}.selection-toolbar #add-student{margin-left:auto;font-size:14px}.manual-count{display:block;font-size:12px;color:#8c4e2d;white-space:nowrap}.cell-names{display:grid;gap:4px;min-width:115px;margin-top:7px}.summary-student{font-size:14px;min-height:44px;padding:6px 8px;border-color:#bdceba;text-align:left;background:#f5f9f1;font-weight:500;white-space:nowrap}.summary-table-wrap td strong{font-weight:500}.summary-table-wrap .summary-warning{min-width:250px;max-width:350px;text-align:left;font-size:12px}.cell-note{display:block;min-width:150px;text-align:left;white-space:pre-wrap;max-width:260px;overflow-wrap:anywhere}.summary-table-wrap .detailed-view td{min-width:140px}.picker-students{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:20px;max-height:55vh;overflow:auto;padding:4px}.picker-students button{text-align:left}.picker-students small{display:block;font-weight:400}#picker-dialog>label{display:grid;gap:7px;margin-top:16px}#student-dialog{max-width:600px}#student-dialog .student-fields{padding:20px 0}#student-dialog .student-fields p{white-space:pre-wrap;overflow-wrap:anywhere}#student-dialog .fixed-choice{display:flex;align-items:center;gap:10px;font-size:14px}#detail-done{width:100%;margin-bottom:10px}#detail-hint{margin-bottom:0}.student-fields textarea{min-height:110px}
@media(max-width:760px){.student-grid{grid-template-columns:1fr 1fr}.student-card{grid-template-columns:minmax(80px,.9fr) minmax(0,1fr)}.student-choice{padding:9px 7px;gap:7px}.student-name{font-size:15px}.student-name small{font-size:11px}.student-preview{font-size:12px;padding-right:7px}.brand{font-size:17px}.brand small{font-size:11px;letter-spacing:0}.app-header{gap:10px}.picker-students{grid-template-columns:1fr 1fr}.selection-toolbar{gap:10px}.selection-toolbar #add-student{margin-left:0}.student-fields .standing-dates{grid-template-columns:1fr 1fr}}
@media(max-width:440px){.student-grid{grid-template-columns:1fr}.student-card{grid-template-columns:minmax(120px,.8fr) minmax(0,1fr)}.student-name{font-size:16px}.student-preview{font-size:13px}.student-choice{padding:12px}.app-header .back-link{display:none}}
#access-form .remember-device{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}.remember-hint{font-size:13px;color:var(--muted);margin-top:-12px;line-height:1.6}
.medical-warning{white-space:normal}.medical-warning p{margin:8px 0 0;font-size:13px}#medical-warning-names{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#medical-warning-names button{min-height:44px;font-size:13px;color:#76381f;border-color:#d9b69d;background:#fffaf4}#medical-warning-names>span{font-size:13px;padding:10px 0}.medical-status{font-size:12px;font-weight:600;white-space:nowrap}.medical-status.is-missing{color:#8a3e18}.medical-status.is-uploaded{color:#29562d}.has-proof-status{display:grid;align-content:center;gap:3px;white-space:normal}.has-proof-status .medical-status,.has-proof-status .student-note{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-note{font-weight:400}.proof-feedback{font-size:14px;line-height:1.7;color:#76381f}.proof-feedback:empty{display:none}.upload-label:has(input:disabled){opacity:.6;cursor:default}
.date-mode-note{font-size:13px;color:var(--muted);margin:-12px 0 20px}#day-rollover p{margin-bottom:10px}#class-history{margin-top:32px;padding-top:28px;border-top:1px solid var(--line)}.history-filters{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:14px;align-items:end;margin:20px 0}.history-filters label{display:grid;gap:6px;font-size:14px;min-width:0}.history-filters input,.history-filters select{min-width:0}#class-history h3{margin:22px 0 12px}.history-daily-wrap{max-height:500px;overflow:auto}.history-events-wrap{max-height:540px;overflow:auto}.history-events-wrap table{min-width:850px}.history-daily-wrap table{min-width:1400px}.history-daily-wrap thead th,.history-events-wrap thead th{position:sticky;top:0;z-index:2}.history-daily-wrap thead th:first-child,.history-events-wrap thead th:first-child{z-index:3}.history-daily-wrap button{white-space:nowrap;min-height:44px;padding:7px 9px}.history-note{max-width:350px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;min-height:44px;font-weight:400;font-size:14px}.history-selected td{background:var(--soft)!important}.history-events-wrap th,.history-events-wrap td{text-align:left}.history-events-wrap td:last-child{min-width:220px}
@media(max-width:760px){.history-filters{grid-template-columns:1fr 1fr;gap:12px}.history-filters label:nth-child(3){grid-column:1/-1}.history-filters button{grid-column:1/-1}.date-mode-note{font-size:12px;margin:-10px 0 14px}#class-history .class-heading{display:block}#history-export{margin-top:12px}#class-history h3{font-size:17px}}

/* Show receipt candidates from every class without a disclosure step. */
.receipt-help,#receipt-progress{font-size:14px;color:var(--muted);margin:0 0 14px}.receipt-help{max-width:1000px}.receipt-class{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:18px;margin:0 0 18px;min-width:0}.receipt-class-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.receipt-class-heading h3{font:700 21px/1.5 "Songti SC",serif}.receipt-class-heading p{font-size:13px;color:var(--muted);margin-top:4px}.receipt-class-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.receipt-class-tools strong{font-size:14px;color:var(--green);font-weight:600}.receipt-class-tools button,.receipt-class-footer button{font-size:14px}.receipt-class-status{font-size:13px;color:var(--muted);margin:10px 0 14px;overflow-wrap:anywhere}.receipt-class-status.error{color:var(--alert)}.receipt-students{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.receipt-student{display:grid;grid-template-columns:minmax(110px,.9fr) minmax(0,1fr);align-items:center;gap:10px;border:1px solid var(--line);border-radius:7px;padding:10px 12px;min-width:0;min-height:84px}.receipt-student.is-selected{background:#e2eddf;border-color:#789774;box-shadow:inset 3px 0 #52744e}.receipt-choice{display:flex;align-items:center;gap:9px;min-width:0;min-height:60px;cursor:pointer}.receipt-choice>span{min-width:0}.receipt-choice strong,.receipt-choice small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.receipt-choice strong{font-size:16px}.receipt-choice small{font-size:12px;color:var(--muted);margin-top:4px}.receipt-note{display:grid;gap:3px;min-width:0;font-size:12px;color:var(--muted)}.receipt-note input{min-width:0;width:100%;font-size:14px;min-height:44px;padding:8px;text-overflow:ellipsis}.receipt-note input:disabled{background:#f0f1ea;opacity:.8}.receipt-empty,.receipt-manual{font-size:14px;color:var(--muted);margin:12px 0}.receipt-manual{color:var(--alert)}.receipt-class-footer{display:flex;gap:16px;align-items:end;justify-content:space-between;margin-top:14px}.receipt-class-footer>label{display:grid;gap:4px;font-size:12px;color:var(--muted);width:100%;max-width:480px;min-width:0}.receipt-class-footer input{font-size:14px;min-height:44px;padding:8px 10px}.receipt-class-footer>div{display:flex;gap:8px;flex-shrink:0}.receipt-class-footer [data-receipt-submit]{background:var(--soft);border-color:#789774;color:var(--green)}
@media(max-width:1100px){.receipt-students{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.receipt-class{padding:14px;margin-bottom:14px}.receipt-class-heading{flex-direction:column;gap:8px}.receipt-class-tools{justify-content:space-between;width:100%}.receipt-students{grid-template-columns:minmax(0,1fr)}.receipt-class-heading h3{font-size:20px}.receipt-class-footer{align-items:stretch;flex-direction:column;gap:10px}.receipt-class-footer>label{max-width:none}.receipt-class-footer>div>button{flex:1}.receipt-help,#receipt-progress{font-size:13px}#receipts-board>.class-heading{flex-direction:column}#receipts-board>.class-heading>button{align-self:start}.receipt-student{grid-template-columns:minmax(105px,.85fr) minmax(0,1fr)}}

.duty-student{align-items:stretch;min-height:152px}.duty-person{display:flex;flex-direction:column;justify-content:space-between;min-width:0}.duty-person .receipt-choice{min-height:64px}.duty-check-fields{display:grid;align-content:center;gap:8px;min-width:0}.duty-check-fields>label{display:grid;gap:3px;min-width:0;font-size:12px;color:var(--muted)}.duty-check-fields select{min-height:44px;width:100%;min-width:0;font-size:14px;padding:7px 8px}.board-proof-button{font-size:12px;font-weight:500;line-height:1.5;min-height:44px;padding:6px 8px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#fffaf4}.board-proof-button.is-missing{color:#8a3e18;border-color:#d9b69d}.board-proof-button.is-uploaded{color:#29562d;border-color:#a1b79c;background:#f5f9f1}.board-medical-warning{font-size:13px;color:#8a3e18;background:#fff2e7;border-left:3px solid var(--alert);padding:9px 12px;margin:0 0 12px;overflow-wrap:anywhere}.board-medical-warning button{font-size:13px;margin:4px;min-height:44px}.board-medical-warning p{margin-top:5px}

.receipt-reason-student{min-height:152px}.receipt-reason-fields{display:grid;align-content:center;gap:8px;min-width:0}.receipt-reason-fields>label{display:grid;gap:3px;min-width:0;font-size:12px;color:var(--muted)}.receipt-reason-fields select{min-height:44px;width:100%;min-width:0;font-size:14px;padding:7px 8px}

.reconciliation-progress{padding:12px 14px;background:var(--soft);border-left:3px solid var(--green);font-size:14px;margin:12px 0}.reconciliation-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.reconciliation-class{min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.reconciliation-class h3{display:flex;justify-content:space-between;gap:12px;font-size:17px}.reconciliation-class h3 span{font-size:13px;font-weight:500;white-space:nowrap}.reconciliation-class p{font-size:13px;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.reconciliation-class.issue{border-left:4px solid #aa4937}.reconciliation-class.pending{border-left:4px solid #bb9346}.reconciliation-state.issue{color:#9b2f26;background:#fceeea}.reconciliation-state.pending{color:#805a16;background:#fff5df}.receipt-class-tools strong{max-width:100%;white-space:normal}.receipt-class-heading>div{min-width:0}@media(max-width:760px){.reconciliation-findings{grid-template-columns:minmax(0,1fr)}.reconciliation-progress{font-size:13px}}

#student-dialog .fixed-choice{min-height:44px}.fixed-help{font-size:13px;color:var(--muted);margin:0;line-height:1.6}

/* The board navigation stays above the save bar; selecting a class only scrolls. */
.attendance-layout.summary-mode.board-jump-mode{grid-template-columns:186px minmax(0,1fr)}
.board-jump-mode .workspace-content{grid-column:2}
.receipt-class{scroll-margin-top:18px}
#board-jump{position:fixed;left:max(16px,calc((100vw - 1448px)/2 + 24px));bottom:var(--jump-bottom,96px);z-index:12;width:186px;border:1px solid #bdccbb;border-radius:10px;background:var(--surface);box-shadow:0 7px 24px rgba(26,54,38,.14);overflow:hidden}
#board-jump-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:0;padding:10px 12px;color:var(--green);font-size:14px;text-align:left}
#board-jump-toggle span{font-size:19px;line-height:1}
#board-jump-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;max-height:min(60vh,calc(100vh - var(--jump-bottom,96px) - 66px));overflow:auto;border-top:1px solid var(--line)}
#board-jump-list button{min-width:0;min-height:44px;padding:6px 3px;font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap}
#board-jump-list button[aria-current=location]{background:var(--green);border-color:var(--green);color:#fff}
@media(max-width:760px){.attendance-layout.summary-mode.board-jump-mode{grid-template-columns:minmax(0,1fr)}.board-jump-mode .workspace-content{grid-column:1}#board-jump{left:12px;width:min(260px,calc(100vw - 24px))}#board-jump:has(#board-jump-list[hidden]){width:auto}#board-jump-list button{font-size:14px}}

/* The status dialog leaves the current receipt selections in place. */
#submission-dialog{width:min(1100px,calc(100% - 32px));max-width:1100px;max-height:90vh;padding:22px}
.submission-help{font-size:14px;color:var(--muted);margin:12px 0 16px;line-height:1.7}
.submission-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.submission-toolbar p{font-size:14px;color:var(--muted)}.submission-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.submission-toolbar button{font-size:14px}
.submission-result{font-size:14px;color:var(--green);margin:10px 0;min-height:22px}.submission-result:empty{margin:0;min-height:0}
.submission-errors{background:#fff2e7;border-left:3px solid var(--alert);color:#76381f;padding:10px 12px;margin:12px 0;font-size:14px;overflow-wrap:anywhere}.submission-errors p+p{margin-top:5px}
.submission-table-wrap{max-height:min(58vh,570px);overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:14px}
.submission-table-wrap table{width:100%;border-collapse:collapse;font-size:14px}.submission-table-wrap th,.submission-table-wrap td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.submission-table-wrap thead th{position:sticky;top:0;background:#e3eadf;z-index:1;white-space:nowrap}.submission-table-wrap tbody th{min-width:125px}.submission-table-wrap tbody th small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.submission-table-wrap td{min-width:150px}.submission-status{display:block;line-height:1.5}.submission-status.is-draft{color:#884b1f;font-weight:600}.submission-status.is-done{color:#245b40}.submission-status.is-waiting{color:var(--muted)}.submission-table-wrap td button{font-size:13px;margin-top:6px;padding:6px 10px;min-height:44px}.submission-cell-error{display:block;color:var(--alert);font-size:12px;margin-top:5px}
@media(max-width:760px){#submission-dialog{padding:16px;max-height:92vh}.submission-help{font-size:13px}.submission-toolbar>div{width:100%}.submission-toolbar>div button{flex:1}.submission-table-wrap{max-height:54vh}.submission-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.submission-table-wrap table,.submission-table-wrap tbody{display:block}.submission-table-wrap tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:10px}.submission-table-wrap tbody th{grid-column:1/-1;min-width:0;padding:4px 6px 8px;border:0}.submission-table-wrap td{min-width:0;padding:8px 6px;border:0}.submission-table-wrap td::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}}
/* The center's summary uses the full available browser width. */
body.full-summary main{max-width:none;width:100%;padding-left:24px;padding-right:24px}
body.full-summary .summary-table-wrap{max-height:72vh;overflow:auto}
body.full-summary .summary-table-wrap thead th{position:sticky;top:0;z-index:2}
body.full-summary .summary-table-wrap thead th:first-child{z-index:3}
.summary-table-wrap .reconciliation-state{min-width:220px;max-width:300px;text-align:left;white-space:normal}
.row-findings{display:block;margin-top:7px;font-weight:400;color:#4d6254;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.summary-cell-value{display:inline-flex;justify-content:center;align-items:center;min-width:52px;min-height:40px;padding:5px 9px;border-color:#b7cbb5;background:#f5f9f2;font-weight:600}
.summary-cell-value:hover{background:#e1eddf}
#summary-cell-dialog,#center-preview-dialog{width:min(1040px,calc(100% - 32px));max-width:1040px}
.summary-cell-list{white-space:normal;line-height:1.7;max-height:160px;overflow:auto}
.summary-search,.summary-input{display:grid;gap:5px;font-size:14px;margin:12px 0}
.summary-cell-students{max-height:40vh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:3px}
.summary-edit-student{background:#f6f9f3;border:1px solid var(--line);border-radius:7px;padding:9px}
.summary-edit-student>label{display:flex;align-items:center;gap:8px;min-height:42px}
.summary-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.summary-edit-fields label{display:grid;gap:4px;font-size:13px;min-width:0}
.summary-edit-fields input,.summary-edit-fields select{min-width:0}
.summary-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.summary-cell-error{color:var(--alert);white-space:pre-wrap;margin-top:8px}
.center-preview-rows{max-height:62vh;overflow:auto;border:1px solid var(--line);border-radius:8px}
.center-preview-row{display:grid;grid-template-columns:140px minmax(0,1fr) 100px;gap:12px;align-items:start;padding:12px;border-bottom:1px solid var(--line)}
.center-preview-row:last-child{border-bottom:0}.center-preview-row small{display:block;color:var(--muted);margin-top:4px}
.center-preview-row>label:not(.red-choice){display:grid;gap:4px;font-size:13px}.red-choice{display:flex;align-items:center;gap:6px;min-height:44px;font-size:14px}
@media(max-width:760px){body.full-summary main{padding-left:12px;padding-right:12px}.summary-cell-students{grid-template-columns:1fr}.center-preview-row{grid-template-columns:1fr auto}.center-preview-row>label:not(.red-choice){grid-column:1/-1;grid-row:2}.summary-dialog-actions button{flex:1}}

/* The report is deliberately a wide editable table; keep class names visible while scrolling. */
#center-preview-dialog{width:calc(100% - 24px);max-width:1600px;max-height:94vh;padding:20px 22px}
.report-preview-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:16px 0 8px}.report-preview-toolbar label{display:grid;gap:3px;font-size:13px;min-width:230px}.report-preview-tabs{display:flex;gap:8px}.report-preview-tabs [aria-selected="true"]{background:var(--green);border-color:var(--green);color:#fff}
.report-table-wrap{overflow:auto;max-height:60vh;border:1px solid #b9ccbe;border-radius:8px;background:#fff;margin-top:12px}.report-table{border-collapse:separate;border-spacing:0;min-width:1900px;width:100%;font-size:13px}.report-table th,.report-table td{padding:7px;border-right:1px solid #d8e2d9;border-bottom:1px solid #d8e2d9;vertical-align:top}.report-table thead th{position:sticky;top:0;z-index:2;background:#dcebe2;color:#173d33;text-align:left;min-width:95px}.report-table thead th:first-child,.report-table tbody th{position:sticky;left:0;z-index:3;min-width:135px;max-width:150px;background:#eef5ef}.report-table thead th:first-child{z-index:4;background:#dcebe2}.report-table tbody td{background:#fff}.report-table tbody tr:nth-child(even) td{background:#f7faf7}.report-table td.report-note{min-width:320px}.report-table td.report-detail{min-width:220px}.report-table textarea{font-size:13px;line-height:1.45;min-height:44px;padding:7px;resize:vertical}.report-table .note-red{background:#fff0ee!important}.report-table .red-choice{margin-top:5px;font-size:12px}.report-actions{flex-wrap:wrap}.report-preview-status{margin-top:6px}
@media(max-width:760px){#center-preview-dialog{width:calc(100% - 12px);max-height:96vh;padding:14px}.report-preview-toolbar{align-items:stretch;flex-direction:column}.report-preview-toolbar label{width:100%}.report-preview-tabs button{flex:1}.report-table-wrap{max-height:51vh}.report-actions button{flex:1 1 100%}}

.report-table td.image-note{min-width:280px;background:#f1f7f4}.report-table td.image-note.note-red{background:#fff0ee!important}

#weekly-dialog{width:min(820px,calc(100% - 24px));max-width:820px}.weekly-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:18px}.weekly-toolbar label{display:grid;gap:5px}.weekly-toolbar input{width:110px}.weekly-table-wrap{overflow:auto;max-height:58vh;border:1px solid #aaa}.weekly-table-wrap table{border-collapse:collapse;width:100%;min-width:540px;text-align:center}.weekly-table-wrap th,.weekly-table-wrap td{border:1px solid #aaa;padding:10px}.weekly-table-wrap thead{position:sticky;top:0;background:white}.weekly-green{background:#e2efd9}.weekly-orange{background:#f8cbad}@media(max-width:760px){.weekly-toolbar button{flex:1}.weekly-toolbar label{width:100%}}

/* Save failures remain visible beside the action on mobile and desktop. */
#save-bar > #save-error{display:block;max-height:24vh;overflow:auto;margin:0 auto 10px;padding:10px 12px;border:1px solid #b14434;border-left:4px solid #a42d20;border-radius:6px;background:#fff0eb;color:#79271e;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
#save-bar > #save-error[hidden]{display:none}
