.template-help{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:13px 15px;border-left:3px solid var(--lime);background:#f7faec;border-radius:7px;font-size:14px}.template-help span{color:var(--muted)}
.detailed-panel{margin-top:18px}.detailed-panel .subject-grid{margin-bottom:18px}.grade-chips{display:flex;flex-wrap:wrap;gap:4px}.grade-chip{font-size:11px;border-radius:5px;background:var(--green2);padding:3px 6px;color:var(--green);font-weight:700}
.student-actions{display:flex!important;gap:9px!important}.student-actions select{min-width:230px}.student-report-card{border:1px solid var(--line);border-radius:12px;overflow:hidden}.student-report-head{background:#123d31;color:white;padding:22px;display:flex;justify-content:space-between;align-items:flex-start}.student-report-head h4{font:800 23px Manrope;margin:3px 0}.student-report-head p{margin:0;color:#c9ddd5}.student-position{text-align:center;background:var(--lime);color:#17382e;border-radius:10px;padding:10px 16px}.student-position strong{display:block;font:800 25px Manrope}.student-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.student-meta div{background:white;padding:15px 18px}.student-meta span{display:block;color:var(--muted);font-size:12px}.student-meta strong{display:block;margin-top:4px;font:700 18px Manrope}.student-subjects{padding:12px 18px 18px}.student-subjects table td:last-child{color:var(--muted);white-space:normal}.performance-note{margin:12px 18px 20px;padding:13px 15px;background:#f4f8f6;border-radius:8px;color:#43544d;font-size:14px;line-height:1.5}
@media(max-width:800px){.student-meta{grid-template-columns:1fr 1fr}.student-panel .panel-head{align-items:flex-start;gap:14px;flex-direction:column}.student-actions{width:100%}.student-actions select{min-width:0;flex:1}}
@media(max-width:520px){.template-help{flex-direction:column}.student-actions{flex-direction:column}.student-report-head{gap:15px;flex-direction:column}.student-meta{grid-template-columns:1fr}}
@media print{body.print-student .report-toolbar,body.print-student .summary-grid,body.print-student .report-grid,body.print-student .detailed-panel,body.print-student .subject-grid{display:none!important}body.print-student .student-panel{border:0;padding:0}body.print-student .student-panel>.panel-head{display:none}body.print-student #studentReports{display:block!important}}
@media print{body.print-all-students .report-toolbar,body.print-all-students .summary-grid,body.print-all-students .report-grid,body.print-all-students .detailed-panel,body.print-all-students .subject-grid,body.print-all-students .student-panel{display:none!important}body.print-all-students #allStudentReports{display:block!important}.all-student-print-page{break-after:page;page-break-after:always;padding:0}.all-student-print-page:last-child{break-after:auto;page-break-after:auto}.all-student-print-page .student-report-card{border:0}.all-student-print-page .student-report-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.all-student-print-page .student-position{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.analysis-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:14px}.analysis-panel{margin-bottom:0}.bar-chart{display:flex;flex-direction:column;gap:13px}.bar-row{display:grid;grid-template-columns:110px 1fr 54px;gap:10px;align-items:center}.bar-label{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.bar-track{height:11px;border-radius:999px;background:#edf2ef;overflow:hidden}.bar-fill{height:100%;min-width:3px;border-radius:999px;background:var(--green)}.bar-row:nth-child(2n) .bar-fill{background:#92ad2f}.bar-value{text-align:right;font-size:13px;font-weight:700}.metric-list{display:flex;flex-direction:column;gap:9px}.metric-row{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:10px 12px;background:#f6f9f7;border-radius:8px}.metric-row strong{font-size:14px}.metric-row span{color:var(--muted);font-size:13px}.insight-panel,.intervention-panel{margin-top:14px}.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.insight-card{border:1px solid var(--line);border-radius:10px;padding:15px;background:#fbfcfb}.insight-card.good{border-top:3px solid var(--green)}.insight-card.watch{border-top:3px solid #d19a2b}.insight-card strong{display:block;font:700 15px Manrope;margin-bottom:5px}.insight-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.intervention-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.intervention-group{background:#f7f9f8;border-radius:10px;padding:15px}.intervention-group h4{margin:0 0 10px;font:700 15px Manrope}.student-tag{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #e5ebe8;font-size:13px}.student-tag:last-child{border:0}.student-tag span{color:var(--muted)}
@media(max-width:800px){.analysis-dashboard{grid-template-columns:1fr}.insight-grid,.intervention-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.insight-grid,.intervention-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:85px 1fr 45px}}
@media print{body.print-student .analysis-dashboard,body.print-student .insight-panel,body.print-student .intervention-panel,body.print-all-students .analysis-dashboard,body.print-all-students .insight-panel,body.print-all-students .intervention-panel{display:none!important}}
@media print{
  @page{size:A4 portrait;margin:8mm}
  body{font-size:10px!important;line-height:1.25}
  main{max-width:none!important;padding:0!important}
  .report-toolbar{margin:0 0 8px!important}
  .report-toolbar h2{font-size:17px!important;letter-spacing:-.01em}
  .eyebrow{font-size:8px!important;margin-bottom:3px!important}
  .panel{padding:10px!important;margin-bottom:7px!important;border-radius:5px!important;box-shadow:none!important;break-inside:avoid}
  .panel-head{margin-bottom:8px!important}
  .panel-head h2,.panel-head h3{font-size:13px!important}
  .badge{font-size:8px!important;padding:3px 6px!important}
  .summary-grid{gap:6px!important;margin-bottom:7px!important}
  .summary-card{padding:9px!important;border-radius:5px!important}
  .summary-card small{font-size:8px!important;margin-bottom:3px!important}
  .summary-card strong{font-size:17px!important}
  .analysis-dashboard{gap:6px!important}
  .bar-chart{gap:5px!important}.bar-row{grid-template-columns:82px 1fr 42px!important;gap:5px!important}.bar-label,.bar-value{font-size:8px!important}.bar-track{height:6px!important}
  .metric-list{gap:4px!important}.metric-row{padding:5px 7px!important;gap:6px!important}.metric-row strong,.metric-row span{font-size:8px!important}
  .insight-panel,.intervention-panel{margin-top:7px!important}
  .insight-grid,.intervention-grid{gap:5px!important}
  .insight-card,.intervention-group{padding:7px!important;border-radius:4px!important}
  .insight-card strong,.intervention-group h4{font-size:9px!important;margin-bottom:3px!important}.insight-card p,.student-tag{font-size:8px!important;line-height:1.25!important}.student-tag{padding:3px 0!important}
  table{font-size:8px!important}th{font-size:7px!important;padding:4px!important}td{padding:4px!important}
  body:not(.print-student):not(.print-all-students) .student-panel,body:not(.print-student):not(.print-all-students) #allStudentReports{display:none!important}
  body:not(.print-student):not(.print-all-students) .report-grid{break-before:page;page-break-before:always}
  body:not(.print-student):not(.print-all-students) .report-grid .panel{break-inside:auto}
  body:not(.print-student):not(.print-all-students) .detailed-panel{break-before:page;page-break-before:always;break-inside:auto;margin-top:0!important}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin-bottom:7px!important}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-card{padding:7px!important;border-radius:4px!important;break-inside:avoid}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-card h4{font-size:10px!important;margin-bottom:5px!important}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-stats{gap:4px!important}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-stats span{font-size:7px!important}
  body:not(.print-student):not(.print-all-students) .detailed-panel .subject-stats strong{font-size:11px!important;margin-top:1px!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table{margin-top:3px!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table table{table-layout:fixed!important;width:100%!important;height:auto!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table thead{display:table-header-group!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table tbody{height:auto!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table tr{display:table-row!important;height:22px!important;min-height:0!important;break-inside:avoid!important;page-break-inside:avoid!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table th,body:not(.print-student):not(.print-all-students) .subject-detail-table td{height:auto!important;min-height:0!important;padding:3px 4px!important;line-height:1.15!important;white-space:normal!important;vertical-align:middle!important}
  body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(1){width:14%}body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(2),body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(3),body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(4),body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(5){width:9%}body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(6){width:25%}body:not(.print-student):not(.print-all-students) .subject-detail-table th:nth-child(7){width:25%}
  body:not(.print-student):not(.print-all-students) .subject-detail-table .grade-chips{gap:2px!important}body:not(.print-student):not(.print-all-students) .subject-detail-table .grade-chip{font-size:6px!important;padding:1px 3px!important}
  .student-report-head{padding:10px!important}.student-report-head h4{font-size:15px!important}.student-report-head p{font-size:8px!important}.student-position{padding:6px 9px!important}.student-position strong{font-size:16px!important}.student-position span{font-size:8px!important}
  .student-meta div{padding:7px 9px!important}.student-meta span{font-size:8px!important}.student-meta strong{font-size:12px!important}.student-subjects{padding:6px 9px!important}.performance-note{margin:6px 9px 8px!important;padding:7px 9px!important;font-size:8px!important}
}
.gender-subject-panel{margin-top:18px}.gender-subject-table table{table-layout:fixed}.gender-subject-table th,.gender-subject-table td{text-align:center}.gender-subject-table th:first-child,.gender-subject-table td:first-child{text-align:left}.gender-subject-table tbody tr:nth-child(4n+1),.gender-subject-table tbody tr:nth-child(4n+2){background:#f8faf9}.gender-label{display:inline-block;min-width:58px;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.gender-label.male{background:#e8f1fa;color:#285b86}.gender-label.female{background:#f8eaf1;color:#8a3d65}
@media print{body.print-student .gender-subject-panel,body.print-all-students .gender-subject-panel{display:none!important}body:not(.print-student):not(.print-all-students) .gender-subject-panel{break-before:page;page-break-before:always;break-inside:auto;margin-top:0!important}body:not(.print-student):not(.print-all-students) .gender-subject-table table{table-layout:fixed!important;width:100%!important}body:not(.print-student):not(.print-all-students) .gender-subject-table tr{height:19px!important;break-inside:avoid!important}body:not(.print-student):not(.print-all-students) .gender-subject-table th,body:not(.print-student):not(.print-all-students) .gender-subject-table td{padding:3px!important;font-size:7px!important;white-space:normal!important}body:not(.print-student):not(.print-all-students) .gender-label{min-width:40px!important;padding:1px 3px!important;font-size:7px!important}}
.topbar{background:#fff!important;color:var(--ink)!important;border-bottom:1px solid var(--line)}.brand-logo{display:block;width:170px;height:49px;object-fit:contain}.brand small{color:var(--muted)!important}.brand strong{color:var(--ink)}.local-note{color:var(--green)!important;border-color:#c8d9d2!important;background:var(--green2)}.report-heading{display:flex!important;align-items:center!important;gap:16px!important}.report-logo{display:block;width:128px;height:37px;object-fit:contain;flex:none}
@media(max-width:700px){.brand-logo{width:135px;height:39px}.brand>div{display:none}.report-heading{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}.report-logo{width:110px;height:32px}}
@media print{.report-logo{width:82px!important;height:24px!important}.report-heading{gap:8px!important;align-items:center!important;flex-direction:row!important}}
.school-logo-picker{display:flex;align-items:center;gap:10px;min-height:46px}.school-logo-picker button{white-space:nowrap}.school-logo-picker img{width:46px;height:46px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff}.school-logo-picker span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.school-report-brand{display:flex;align-items:center;gap:7px;padding:5px 10px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.school-report-brand>img{width:38px;height:38px;object-fit:contain}.school-report-brand small{display:block;color:var(--muted);font-size:8px;letter-spacing:.12em}.school-report-brand strong{display:block;max-width:130px;font-size:12px;line-height:1.15}.student-brand-line{display:flex;align-items:center;gap:12px}.student-school-logo{width:58px;height:58px;padding:4px;object-fit:contain;background:#fff;border-radius:8px;flex:none}.student-report-head .student-school-name{color:#fff;font-weight:800}
@media(max-width:700px){.school-report-brand{border:0;padding:0}.school-report-brand strong{max-width:none}.school-logo-picker{align-items:flex-start;flex-wrap:wrap}}
@media print{.school-report-brand{padding:2px 5px!important;gap:4px!important}.school-report-brand>img{width:24px!important;height:24px!important}.school-report-brand strong{font-size:8px!important;max-width:90px!important}.school-report-brand small{font-size:6px!important}.student-school-logo{width:38px!important;height:38px!important;padding:2px!important}.student-brand-line{gap:7px!important}}
