/* Academic reports share every screen color with the selected theme. */
:root{--report-gap:20px;--report-cell-pad:13px;--report-content-width:1280px;--report-label-width:110px}
.report-workspace{max-width:var(--report-content-width);margin-inline:auto;min-width:0}
.report-workspace .page-heading h1{font-size:1.7rem;line-height:1.7}
.report-workspace .page-heading p{font-size:.85rem;line-height:1.9}
.report-workspace .page-heading>div,.report-workspace .breadcrumb{min-width:0;overflow-wrap:anywhere}
.report-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.report-actions .button,.report-filters .button{min-height:44px;white-space:normal;text-align:center}
.report-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-block:20px;padding-bottom:10px}
.report-tabs a{padding:12px 18px;border-radius:var(--radius-sm);font-size:.87rem;min-height:44px;text-align:center}
.report-tabs a[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);font-weight:bold}
.report-tabs a:hover{background:var(--surface-soft)}
.report-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-block:20px;padding:20px}
.report-filters .field{flex:1 1 260px;margin:0;max-width:460px;min-width:0}
.report-filters .field select{width:100%;max-width:100%;min-height:46px}
.report-filters .text-link{font-size:.85rem;padding:12px 0}
.report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--report-gap);margin-block:24px}
.report-stats>div{padding:18px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);display:flex;align-items:center;gap:14px}
.report-stats strong{font-size:1.7rem;font-variant-numeric:tabular-nums;color:var(--accent-text)}
.report-stats span{font-size:.78rem;line-height:1.9;color:var(--muted)}
.report-note{font-size:.8rem;line-height:2;color:var(--muted);padding-inline:4px;margin-block:18px}
.report-table-panel{padding:20px;min-width:0}
.report-table-panel>.section-heading h2{font-size:1rem;line-height:1.8;overflow-wrap:anywhere}
.report-table-panel>.section-heading>.muted{font-size:.75rem;white-space:nowrap}
.report-table{font-size:.78rem;min-width:700px;width:100%;border-collapse:collapse}
.report-table th{font-size:.73rem;line-height:1.8;padding:var(--report-cell-pad);white-space:nowrap}
.report-table td{padding:var(--report-cell-pad);vertical-align:top;line-height:1.9;overflow-wrap:anywhere;max-width:350px;min-width:90px;white-space:pre-wrap}
.report-table td:last-child{min-width:160px}
.report-secondary{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}
.report-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:24px;font-size:.8rem}
.report-pagination .button{min-height:44px}
.report-generated{font-size:.75rem;line-height:2;color:var(--muted);margin-top:24px}
.report-course-card h2{overflow-wrap:anywhere}.report-course-card .card-actions{flex-wrap:wrap}
.import-workspace{max-width:1100px}
.import-steps{list-style:none;display:flex;gap:14px;padding:0;margin:0 0 28px;color:var(--muted)}
.import-steps li{display:flex;align-items:center;gap:9px;font-size:.82rem;flex:1;padding-bottom:12px;border-bottom:2px solid var(--border)}
.import-steps li>span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--surface-soft)}
.import-steps li[aria-current=step]{border-color:var(--accent);color:var(--accent-text);font-weight:bold}
.import-steps li[aria-current=step]>span{background:var(--accent);color:var(--accent-fg)}
.import-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:var(--report-gap);align-items:start}
.import-guide,.import-upload{padding:26px;min-width:0}
.import-guide h2,.import-upload h2{font-size:1.1rem;line-height:1.8;margin-block:8px 12px}
.import-guide>p{font-size:.85rem;line-height:2;color:var(--muted)}
.import-guide .report-actions{margin-block:20px}.import-guide .report-actions .text-link{font-size:.85rem}
.import-rules{padding-inline-start:22px;margin:24px 0 0;font-size:.79rem;line-height:2.1;color:var(--muted)}.import-rules li{padding-bottom:12px}
.import-upload>.muted{font-size:.8rem}
.import-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:30px 18px;margin-block:22px;background:var(--surface-soft);border:1px dashed var(--border);border-radius:var(--radius)}
.import-dropzone>svg{width:28px;height:28px;color:var(--accent-text)}.import-dropzone>strong{font-size:.95rem}.import-dropzone>span{font-size:.78rem;line-height:1.9;color:var(--muted)}
.import-dropzone .import-filename{overflow-wrap:anywhere;max-width:100%}
.report-file-input{position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden}
.report-file-input:focus-visible+.import-file-label{outline:3px solid var(--focus);outline-offset:4px}
.import-file-label{cursor:pointer;min-height:44px}.import-next{width:100%;min-height:46px;justify-content:center}
.import-reassurance,.import-progress{font-size:.75rem;text-align:center;line-height:2;margin-top:14px;color:var(--muted)}
.import-file-error{font-size:.8rem;line-height:1.9}
.import-errors{padding:18px;border:1px solid var(--danger);border-radius:var(--radius-sm);background:var(--danger-bg);color:var(--danger);font-size:.85rem;line-height:2;margin-block:20px;overflow-wrap:anywhere}
.import-errors p{margin-block:8px}.import-errors .text-link{color:inherit;text-decoration:underline}.import-errors .errorlist{margin:0;padding-inline-start:22px}
.import-success{display:flex;flex-direction:column;gap:8px;background:var(--success-bg);color:var(--success);padding:20px;border-radius:var(--radius-sm);line-height:2;font-size:.85rem;margin-block:20px}
.import-source{overflow-wrap:anywhere}
.import-review-action{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;margin-block:20px;flex-wrap:wrap}
.import-review-action strong{font-size:.93rem}.import-review-action p{font-size:.78rem;line-height:2;margin-block:8px 0}
.import-table td{white-space:normal;min-width:70px}.import-table td:nth-child(2){min-width:180px}.import-table td:last-child{min-width:220px;max-width:420px}
.import-table tr.import-invalid{background:var(--danger-bg)}.import-row-errors{color:var(--danger);font-size:.78rem;padding-inline-start:20px;margin:0}
.import-feedback{margin-top:10px;font-size:.78rem}.import-feedback summary{cursor:pointer;min-height:44px;padding-block:8px;color:var(--accent-text)}
.import-feedback dl{display:grid;gap:6px;margin:0}.import-feedback dt{color:var(--muted)}.import-feedback dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;padding-bottom:12px}
.import-blocked p{line-height:2;font-size:.9rem;margin-bottom:20px}
/* Standalone private print report; its screen preview follows the current theme. */
.report-print-body{padding:24px;background:var(--bg);color:var(--text)}
.report-print-toolbar{max-width:1400px;margin:0 auto 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.report-print-toolbar p{flex-basis:100%;font-size:.8rem;line-height:2;color:var(--muted);margin:0}
.report-sheet{max-width:1400px;margin:auto;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.report-print-heading{border-bottom:2px solid var(--border);padding-bottom:18px;margin-bottom:18px}
.report-print-heading>span{font-size:.85rem;color:var(--muted)}.report-print-heading h1{font-size:1.5rem;margin-block:8px}.report-print-heading h2{font-size:1.1rem;margin-block:8px}.report-print-heading p,.report-print-note,.report-print-footer{font-size:.77rem;line-height:2}
.report-print-note,.report-print-footer{color:var(--muted)}.report-print-footer{margin-top:22px;text-align:center}
@media(max-width:1100px){.import-layout{grid-template-columns:minmax(0,1fr)}.import-guide{order:2}.import-upload{order:1}.report-stats{gap:12px}.report-stats>div{padding:16px;gap:10px}}
@media(max-width:600px){
  :root{--report-gap:14px;--report-label-width:94px}
  .report-workspace .page-heading h1{font-size:1.4rem}.report-workspace .page-heading{align-items:stretch;flex-direction:column}.report-workspace .page-heading>.button{align-self:flex-start;min-height:44px}.report-workspace .page-heading .report-actions{width:100%}
  .report-actions .button{flex:1;font-size:.8rem;padding-inline:14px}.report-tabs{gap:4px}.report-tabs a{flex:1;padding-inline:10px;font-size:.8rem}
  .report-filters{padding:16px;gap:12px}.report-filters .field{flex-basis:100%;max-width:none}.report-filters .button{width:100%;justify-content:center}.report-filters select{font-size:16px}
  .report-stats{gap:8px;margin-block:18px}.report-stats>div{flex-direction:column;align-items:start;padding:12px;gap:5px;border-radius:12px}.report-stats strong{font-size:1.35rem}.report-stats span{font-size:.7rem}
  .report-table-panel{padding:16px}.report-table-panel>.section-heading{align-items:flex-start}.report-table-panel>.section-heading>.muted{font-size:.7rem}
  .report-workspace .report-table{min-width:0;display:block}.report-workspace .report-table thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
  .report-workspace .report-table tbody{display:block}.report-workspace .report-table tr{display:block;border:1px solid var(--border);border-radius:12px;padding:10px 14px;margin-block:12px;background:var(--surface-soft)}
  .report-workspace .report-table td{display:grid;grid-template-columns:var(--report-label-width) minmax(0,1fr);gap:10px;border:0;border-bottom:1px solid var(--border);min-width:0;max-width:none;padding:9px 0;font-size:.78rem;text-align:start}
  .report-workspace .report-table td:last-child{border-bottom:0;min-width:0;max-width:none}.report-workspace .report-table td:before{content:attr(data-label);font-size:.71rem;color:var(--muted)}
  .report-workspace .report-table td.empty-cell{display:block}.report-workspace .report-table td.empty-cell:before{content:none}
  .report-workspace .import-table td>strong,.report-workspace .import-table td>.report-secondary,.report-workspace .import-table td>.import-feedback{grid-column:2}
  .report-workspace .import-table td>.report-secondary{margin:0}.report-workspace .import-table td>strong{grid-row:1}.report-workspace .import-table td>.badge{justify-self:start}
  .report-workspace .report-table tr.import-invalid{background:var(--danger-bg)}
  .import-steps{gap:8px;margin-bottom:18px}.import-steps li{font-size:.7rem;gap:6px;align-items:flex-start;flex-direction:column}.import-steps li>span{height:26px;width:26px;flex-basis:26px}
  .import-guide,.import-upload{padding:18px}.import-dropzone{padding:24px 12px}.import-review-action{padding:18px}.import-review-action>.report-actions{width:100%}.import-review-action form{flex:1}.import-review-action button{width:100%;justify-content:center}
  .report-pagination{gap:10px;font-size:.72rem}.report-pagination .button{font-size:.75rem;padding-inline:12px}
  .report-print-body{padding:12px}.report-sheet{padding:16px}.report-print-toolbar .button{flex:1;font-size:.8rem;text-align:center}
}
@page{size:A4 landscape;margin:13mm}
@media print{
  .report-print-toolbar{display:none!important}
  .report-print-body{background:#fff!important;color:#111!important;padding:0;margin:0;--text:#111;--muted:#444;--border:#aaa;--surface:#fff;--surface-soft:#f4f4f4}
  .report-sheet{padding:0;max-width:none;border:0;border-radius:0;background:#fff!important}
  .report-print-heading{break-after:avoid}.report-print-heading h1{font-size:16pt}.report-print-heading h2{font-size:12pt}.report-print-heading p,.report-print-note{font-size:9pt}
  .report-sheet .table-wrap{overflow:visible}.report-sheet .report-table{display:table;width:100%;min-width:0;table-layout:fixed;font-size:8pt}
  .report-sheet .report-table th,.report-sheet .report-table td{padding:7px 5px;min-width:0;max-width:none;font-size:8pt;line-height:1.8;white-space:pre-wrap;border:1px solid #bbb;color:#111!important}
  .report-sheet .report-table th{background:#f1f1f1!important;font-weight:bold}
  .report-sheet .report-table thead{display:table-header-group}.report-sheet .report-table tr{break-inside:avoid}
  .report-print-note,.report-print-footer,.report-print-heading>span{color:#444!important}
}

.grade-transfer-actions{margin-block:0 24px}
