/* Teacher reports: compact tables, clear numeric hierarchy, visible audit context. */
.admin-page{--muted:#62675f;background:#f2f4f1;color:#25312a;font-size:14px}
.admin-page .site-header{max-width:1560px;padding:20px 32px}.admin-page .page{max-width:1500px;margin:0 auto;padding:28px 32px 48px}.admin-page .site-footer{max-width:1436px;margin:auto}.admin-page .topline{margin-bottom:18px}.admin-page .topline h1{font-size:28px}.admin-page .eyebrow{margin-bottom:6px;font-size:10px}.admin-page h2{font-size:19px}.admin-page [hidden]{display:none!important}
.admin-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid #d9ded8;margin-bottom:22px;padding-bottom:12px}.admin-tabs a{margin-left:auto;text-decoration:none;font-weight:600}.tab-button{background:transparent;border-color:transparent;color:#62675f;padding:8px 16px;min-height:40px}.tab-button:hover{background:#e7ece6;color:#25312a}.tab-button[aria-pressed=true]{background:#263f34;border-color:#263f34;color:white}
.report-panel{margin-top:0;min-width:0}.report-panel .results-heading{min-height:38px}.report-panel .results-heading h2{font-size:18px}.admin-page .inline-actions{display:flex;gap:8px}.admin-page .stats{gap:12px;margin:18px 0}.admin-page .stat{border-radius:10px;padding:16px 18px;box-shadow:0 2px 3px #17281c03}.admin-page .stat strong{font-size:28px;line-height:1.45;font-weight:650}.admin-page .stat small{display:block;color:#72776e;font-size:11px;min-height:18px}.admin-page .stat:nth-child(2){border-top:3px solid #41785b;padding-top:14px}.admin-page .stat:nth-child(3){border-top:3px solid #b08645;padding-top:14px}
.exam-picker{margin:8px 0 12px}.exam-picker select{max-width:640px}.report-toolbar{display:flex;gap:8px;align-items:center;margin:18px 0 10px}.report-toolbar input{max-width:360px;min-width:190px;flex:1}.report-toolbar select{width:auto;max-width:320px}.report-toolbar input,.report-toolbar select{font-size:13px;padding:9px 12px;min-height:40px}.table-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:10px 1px}.table-caption .help{margin:0}
.report-table-wrap{max-height:67vh;overflow:auto;border-radius:10px;border-color:#d9dfd7;scroll-padding-top:46px;isolation:isolate}.report-table-wrap table{border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}.report-table-wrap th,.report-table-wrap td{padding:10px 12px;border-bottom:1px solid #eaf0e9}.report-table-wrap thead th{position:sticky;top:0;z-index:3;background:#e9eee8;border-bottom:1px solid #cfd9ce;color:#49574c;font-weight:600}.report-table-wrap tbody th{font-weight:600;background:white;color:#25312a;text-align:left}.report-table-wrap tbody tr:nth-child(even) td,.report-table-wrap tbody tr:nth-child(even) th{background:#fafcf9}.report-table-wrap tbody tr:hover td,.report-table-wrap tbody tr:hover th{background:#f0f5ee}.report-table-wrap .frozen{position:sticky;left:0;z-index:2;background:#fff;border-right:1px solid #dfe6dc;min-width:100px}.report-table-wrap thead .frozen{z-index:4;background:#e9eee8}.report-table-wrap .student-name{font-size:14px}.sort-button{background:transparent;color:inherit;border:0;padding:0;min-height:26px;font-size:12px;font-weight:600;border-radius:2px;white-space:pre-line;text-align:left;justify-content:flex-start;gap:8px;width:100%}.sort-button:hover{background:transparent;color:#7d2332}.sort-button span{color:#8a9587;font-size:12px}.sort-button:focus-visible{outline-offset:0}.report-table-wrap th[aria-sort=ascending] .sort-button,.report-table-wrap th[aria-sort=descending] .sort-button{color:#7d2332}
.mono{font-variant-numeric:tabular-nums;font-size:12px}.numeric{text-align:right}.score-value,.final-score{font-weight:700;font-size:14px}.positive-text{color:#2e6845}.danger-text{color:#a13e3d}.cell-note{display:block;font-size:10px;margin-top:2px}.pill{display:inline-flex;align-items:center;justify-content:center;padding:3px 9px;font-size:11px;line-height:1.6;border-radius:5px;background:#edf0eb;color:#626d61;white-space:nowrap}.pill.positive{background:#e5f1e7;color:#2e6645}.pill.danger{background:#fae8e7;color:#9c3e3b}.pill.warning{background:#fbf0d9;color:#86631f}.duplicate-link{display:inline-flex;flex-direction:column;align-items:flex-start;gap:0;min-height:0;padding:3px 7px;background:#fff0de;color:#8c5b20;border:1px solid #efd7ad;border-radius:5px;font-size:11px}.duplicate-link small{font-size:10px;font-weight:400}.duplicate-link:hover{background:#f7e6cd;color:#724711}.admin-page button.small,.admin-page .button.small{font-size:12px;min-height:34px;padding:6px 10px}
.audit-panel{background:white;border:1px solid #d9dfd7;border-radius:10px;margin-top:16px;padding:0 18px}.audit-panel>summary{font-weight:600;cursor:pointer;padding:15px 0}.audit-panel[open]{padding-bottom:18px}.duplicate-group{border-top:1px solid #e4e9e0;padding:14px 0 0}.duplicate-group h3{font-size:14px}.duplicate-group ol{margin:10px 0 12px;padding-left:24px}.duplicate-group li{padding:7px 0;font-size:12px}.duplicate-group li>span,.duplicate-group li>strong{margin-right:18px}.duplicate-group li .help{margin-top:3px}.seat-legend,.attendance-legend{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0;font-size:12px}.seat-platform{text-align:center;border-radius:5px;background:#e5eae2;margin:14px auto;width:50%;max-width:450px;color:#5c6c58;font-size:12px;padding:6px}.seat-scroll{overflow-x:auto}.teacher-seat-grid{display:grid;gap:6px;min-width:550px;max-width:900px;margin:auto}.seat-cell{min-height:54px;flex-direction:column;gap:0;padding:5px 2px;background:#f3f5f1;border:1px solid #dfe5da;color:#7b8476;font-size:11px}.seat-cell strong{font-size:12px}.seat-cell.occupied{background:#e6f2e6;border-color:#a3c5a5;color:#2c6740}.seat-cell.unclaimed{background:#fff2cc;border-color:#d8b761;color:#81601c}.seat-cell.invalid{background:#fbe8e6;border-color:#d99e97;color:#9b4037}.seat-cell:hover{outline:2px solid #6f796a;outline-offset:0;background:#e5e9df;color:#344030}.reconcile-note{font-size:13px;margin-top:16px;color:#7e5b20}
.attendance-table th{min-width:70px;white-space:nowrap}.attendance-table .sort-button{justify-content:center}.attendance-table th:nth-child(-n+3) .sort-button{justify-content:flex-start}.attendance-table td{padding:8px 12px}.attendance-table .frozen{min-width:132px}.attendance-table .avatar-button{font-size:13px;min-height:32px;gap:8px;padding:0}.attendance-table .private-avatar,.attendance-table .avatar-placeholder{width:28px;height:28px;font-size:11px}.attendance-table .attendance-cell{text-align:center;padding:6px 9px}.attendance-status{min-width:36px;min-height:30px;font-weight:700;padding:3px 9px;border:1px solid transparent;border-radius:6px;font-size:15px}.attendance-status.present{background:#e5f2e6;color:#326a43;border-color:#d1e4d3}.attendance-status.excused{background:#eef1dc;color:#586b31;border-color:#dce3c4}.attendance-status.absent{background:#f9e9e6;color:#a3473a;border-color:#eed2ca}.attendance-status.pending{background:#fff1d7;color:#936e21;border-color:#eedeb8}.attendance-status:hover{filter:brightness(.95)}.attendance-table .total-cell{background:#f3f6f0;font-weight:600}.rate-cell{font-weight:700;color:#37664a}.attendance-table tfoot th,.attendance-table tfoot td{background:#edf2e9;border-bottom:1px solid #dce5d7;font-size:12px;font-weight:600}.attendance-table tfoot .frozen{background:#e6eddf}.attendance-table tfoot tr:first-child th,.attendance-table tfoot tr:first-child td{border-top:2px solid #c0d0b8}
@media(max-width:1000px){.admin-page .page{padding:22px 20px 40px}.report-toolbar{flex-wrap:wrap}.report-toolbar input{max-width:none}.report-toolbar select{flex:1;max-width:none}.report-table-wrap{max-height:70vh}.table-caption{flex-wrap:wrap}.grade-table{min-width:1380px}.attendance-table{min-width:1150px}}
@media(max-width:600px){.admin-page .site-header{padding:16px}.admin-page .page{padding:20px 12px 35px}.admin-page .topline h1{font-size:23px}.admin-page .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-page .stat{padding:12px}.admin-page .stat:nth-child(2),.admin-page .stat:nth-child(3){padding-top:10px}.admin-page .stat strong{font-size:25px}.admin-page .stat small{font-size:10px}.admin-tabs{gap:4px;flex-wrap:wrap}.admin-tabs .tab-button{font-size:12px;padding:7px 10px}.admin-tabs a{font-size:12px}.report-toolbar input{flex-basis:100%;min-width:0}.report-toolbar select{min-width:110px;width:42%;padding:8px}.report-table-wrap .frozen{min-width:86px;max-width:110px}.attendance-table .frozen{min-width:112px}.report-table-wrap th,.report-table-wrap td{padding:8px 9px}.report-panel .results-heading{align-items:center}.admin-page .inline-actions{gap:4px}.report-panel .results-heading h2{font-size:16px}.audit-panel{padding:0 12px}.audit-panel>summary{font-size:13px}.duplicate-group li>span,.duplicate-group li>strong{margin-right:8px}.duplicate-group li{line-height:2}.attendance-legend{gap:8px;font-size:11px}.admin-page .site-footer{margin:0 16px}}
.admin-page .site-header{padding-top:13px;padding-bottom:13px}.admin-page .page{padding-top:18px}.admin-page .topline .eyebrow{display:none}.admin-page .topline{margin-bottom:12px}.admin-page .topline h1{font-size:25px}.admin-page .identity{margin-top:3px}.admin-tabs{margin-bottom:16px;padding-bottom:9px}.admin-page .stats{margin:12px 0}.admin-page .stat{padding-top:12px;padding-bottom:12px}.admin-page .stat:nth-child(2),.admin-page .stat:nth-child(3){padding-top:10px}.report-toolbar{margin-top:12px}
.editable-value{display:inline-flex;align-items:flex-start;justify-content:flex-start;gap:0;min-height:28px;padding:2px 0;border:0;border-bottom:1px dashed #b8c7b2;border-radius:0;background:transparent;color:inherit;font-size:inherit;font-weight:inherit;text-align:left}.editable-value:hover{background:#e7eee1;color:#374e32;border-bottom-color:#617d55}.editable-value.score-value{font-size:14px;font-weight:700}.editable-value.positive-text{color:#2e6845}.editable-value.danger-text{color:#a13e3d}.seat-edit{flex-direction:column}.editor-dialog{width:min(600px,calc(100vw - 24px));max-height:90vh;overflow:auto}.editor-dialog h2{clear:both}.editor-dialog .dialog-close{margin-bottom:8px}.editor-dialog select{margin-top:8px}.editor-dialog>button:last-child{margin-top:18px}.linked-attendance{padding:0 14px 14px;background:#f1f5ed;border-radius:7px}.edit-date{min-height:20px;padding:1px 4px;border:0;background:transparent;color:#667d5c;font-size:10px;font-weight:400;text-decoration:underline;text-underline-offset:3px;display:block;margin:auto}.edit-date:hover{background:#dce6d5;color:#3e6131}.editor-dialog[open]~.notice{display:none}
.editor-dialog div.field{display:block;margin-top:20px;font-weight:600}.editor-dialog div.field label{display:block}.editor-dialog div.field input,.editor-dialog div.field textarea,.editor-dialog div.field select{margin-top:8px;font-weight:400}
