/* Report card (A4, 794x1122). Shared by the Admin Hub and the Student Portal. */
.rc-sheet{--navy:#002A62;--line:rgba(0,42,98,.1);--muted:#6B7488;--ink:#0E1A33;--panel-tint:#F4F6FC;--red:#FF1833;--red-dark:#D8102A;--yellow:#FFBC00;--blue:#003ECD;--pending:#C98A00;--serif:'Poppins',sans-serif;font-family:'Inter',-apple-system,sans-serif}
.rc-sheet *{box-sizing:border-box}
.rc-sheet h2{margin:0;font-family:var(--serif)}
.rc-sheet p{margin:0}
.rc-sheet table{border-collapse:collapse}
/* Report card = exact A4 portrait page (794 x 1122 px). Same on screen and in the PDF. */
.rc-fit{width:100%; overflow:hidden;}
.rc-sheet{width:794px; height:1122px; background:#fff; border:1px solid var(--line); display:flex; flex-direction:column; overflow:hidden; margin:0 auto; box-sizing:border-box; color:var(--ink);}
.rc-letterhead{display:flex; align-items:center; gap:20px; padding:22px 30px 12px;}
.rc-letterhead .crest-big{width:84px; height:84px; object-fit:contain; flex-shrink:0;}
.rc-letterhead .mid{flex:1; text-align:center;}
.rc-letterhead .mid h2{color:var(--navy); font-size:1.6rem; letter-spacing:0.02em;}
.rc-letterhead .mid .addr{color:var(--blue); font-weight:700; font-size:0.72rem; letter-spacing:0.04em; margin-top:4px;}
.rc-letterhead .mid .motto{font-family:'Caveat',cursive; color:var(--blue); font-size:1.35rem; margin-top:4px;}
.rc-photo{width:84px; height:98px; border-radius:6px; border:2px solid var(--navy); background:var(--panel-tint); flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.rc-photo img{width:100%; height:100%; object-fit:cover; display:block;}
.rc-photo svg{width:62%; height:62%; opacity:0.45;}
.rc-stripe{height:5px; background:linear-gradient(90deg, var(--red) 0 33%, var(--navy) 33% 66%, var(--yellow) 66% 100%);}
.rc-title-bar{background:var(--navy); color:#fff; text-align:center; font-family:var(--serif); font-weight:800; font-size:1.1rem; letter-spacing:0.03em; padding:10px; margin:16px 30px 0; border-radius:8px;}
.rc-subtitle{text-align:center; font-size:0.72rem; letter-spacing:0.25em; color:var(--muted); font-weight:700; margin:10px 30px 10px; display:flex; align-items:center; gap:10px;}
.rc-subtitle::before,.rc-subtitle::after{content:""; flex:1; height:1px; background:var(--line);}
.rc-info{display:grid; grid-template-columns:1fr 1fr; gap:2px 24px; background:var(--panel-tint); margin:0 30px 14px; padding:10px 16px; border-radius:8px; font-size:0.82rem;}
.rc-info .r{display:flex; gap:8px; padding:3px 0;}
.rc-info .r .k{width:92px; flex-shrink:0; color:var(--muted); font-weight:700; font-size:0.7rem; letter-spacing:0.04em;}
.rc-info .r .v{font-weight:700; color:var(--navy);}
.rc-table-wrap{padding:0 30px;}
.rc-table{width:100%; border-collapse:collapse; font-size:0.8rem;}
.rc-table thead th{background:var(--navy); color:#fff; font-size:0.68rem; letter-spacing:0.03em; padding:8px; text-align:left;}
.rc-table tbody td{padding:6px 8px; border-bottom:1px solid var(--line);}
.rc-table tbody tr:nth-child(even){background:var(--panel-tint);}
.rc-grade-A{color:var(--red); font-weight:800;}
.rc-grade-Bp,.rc-grade-B{color:var(--navy); font-weight:800;}
.rc-grade-Cp,.rc-grade-C{color:var(--pending); font-weight:800;}
.rc-grade-Dp,.rc-grade-D,.rc-grade-E,.rc-grade-F{color:var(--red-dark); font-weight:800;}
.rc-summary{display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); margin:14px 30px; border-radius:8px; overflow:hidden;}
.rc-summary.four{grid-template-columns:repeat(3,1fr);}
.rc-summary .cell{background:var(--panel-tint); text-align:center; padding:10px 8px;}
.rc-summary .cell .l{font-size:0.6rem; letter-spacing:0.04em; color:var(--muted); font-weight:700; text-transform:uppercase;}
.rc-summary .cell .v{font-family:var(--serif); font-weight:800; font-size:1.2rem; color:var(--navy); margin-top:4px;}
.rc-comments{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 30px 14px;}
.rc-comment-box{border:1px solid var(--line); border-radius:8px; overflow:hidden;}
.rc-comment-box .hd{background:var(--navy); color:#fff; font-size:0.68rem; font-weight:800; letter-spacing:0.03em; padding:7px 12px;}
.rc-comment-box p{margin:0; padding:10px 12px; font-size:0.76rem; color:var(--ink); line-height:1.45;}
.rc-sign-row{display:flex; justify-content:space-between; align-items:flex-end; margin:6px 30px 14px; gap:16px;}
.rc-sign{text-align:left; flex:1; max-width:300px;}
.rc-sign .script{height:46px; display:flex; align-items:flex-end; border-bottom:1px solid var(--ink); padding-bottom:2px; margin-bottom:4px; min-width:140px;}
.rc-sign .script img{max-height:44px; max-width:100%; object-fit:contain;}
.rc-sign .nm{font-weight:700; font-size:0.78rem;} .rc-sign .rl{font-size:0.68rem; color:var(--muted);}
.rc-foot{background:var(--navy); color:#fff; text-align:center; font-size:0.68rem; font-weight:700; letter-spacing:0.03em; padding:9px; margin-top:auto;}
.rc-contacts{font-weight:600; font-size:.64rem; letter-spacing:0; padding-bottom:5px; opacity:.95;}
/* ---- report card v2: header exactly as the school design ---- */
.rc-sheet{--rcb:#0d15ac; --rct:#0b45ca;}
.rc-topbars{height:22px; flex-shrink:0; display:block; width:100%;}
.rc-topbars svg{display:block; width:100%; height:100%;}
.rc-letterhead{padding:14px 34px 10px; gap:22px; align-items:center;}
.rc-letterhead .crest-big{width:96px; height:112px; object-fit:contain;}
.rc-letterhead .mid h2{font-family:'Poppins',sans-serif; font-weight:700; color:var(--rct); font-size:1.78rem; letter-spacing:0.01em; line-height:1.15; white-space:nowrap;}
.rc-letterhead .mid .po{font-family:'Poppins',sans-serif; font-weight:400; color:var(--rct); font-size:1.02rem; letter-spacing:0.05em; margin-top:6px;}
.rc-letterhead .mid .addr{font-family:'Poppins',sans-serif; font-weight:400; color:var(--rct); font-size:0.86rem; letter-spacing:0.07em; margin-top:3px; white-space:nowrap;}
.rc-letterhead .mid .motto{font-family:'Playfair Display',serif; font-style:italic; font-weight:700; color:var(--rct); font-size:1.12rem; letter-spacing:0.01em; margin-top:5px;}
.rc-photo{width:92px; height:108px; border-radius:10px; border:2px solid #0b1f5c; background:#fff;}
.rc-rule{height:2px; margin:0 0 0; background:linear-gradient(90deg,#0d15ac 0,#0d15ac 18%,#6268c9 62%,#6268c9 71.5%,#fdd38c 72%,#fdd38c 82.5%,#f47277 82.8%,#f47277 100%);}
.rc-stripe{display:none;}
.rc-title-bar{background:var(--rcb); font-family:'Poppins',sans-serif; font-weight:700; font-size:1.2rem; margin:22px 34px 0; border-radius:9px; padding:13px 10px;}
.rc-subtitle{color:var(--rct); letter-spacing:0.3em; font-size:0.7rem; margin:14px 34px 12px;}
.rc-info{margin:0 34px 16px; padding:12px 18px;}
.rc-table-wrap{padding:0 34px;} .rc-table thead th{background:var(--rcb);}
.rc-summary{margin:16px 34px; background:var(--line);} .rc-summary .cell .v{color:var(--rcb);}
.rc-comments{margin:0 34px 14px;} .rc-comment-box .hd{background:var(--rcb);}
.rc-sign-row{margin:6px 34px 14px;} .rc-foot{background:var(--rcb);}
.rc-grade-A{color:var(--red);}
/* ---- report card: many subjects must still fit one A4 page ---- */
.rc-comment-box p{overflow-wrap:anywhere;}
.rc-sheet.d1 .rc-table tbody td{padding:4px 8px; font-size:.78rem;}
.rc-sheet.d1 .rc-table thead th{padding:6px 8px;}
.rc-sheet.d1 .rc-info{margin-bottom:10px; padding:8px 18px;}
.rc-sheet.d2 .rc-table tbody td{padding:3px 8px; font-size:.74rem;}
.rc-sheet.d2 .rc-table thead th{padding:5px 8px;}
.rc-sheet.d2 .rc-letterhead{padding-top:8px; padding-bottom:6px;} .rc-sheet.d2 .rc-letterhead .crest-big{height:92px;width:80px;} .rc-sheet.d2 .rc-photo{height:92px;width:78px;}
.rc-sheet.d2 .rc-title-bar{margin-top:12px; padding:9px 10px;} .rc-sheet.d2 .rc-subtitle{margin:8px 34px 8px;}
.rc-sheet.d2 .rc-info{margin-bottom:8px; padding:6px 18px;} .rc-sheet.d2 .rc-info .r{padding:1px 0;}
.rc-sheet.d2 .rc-summary{margin:10px 34px;} .rc-sheet.d2 .rc-summary .cell{padding:6px 8px;}
.rc-sheet.d3 .rc-table tbody td, .rc-sheet.d4 .rc-table tbody td{padding:1.5px 7px; font-size:.7rem; line-height:1.2;}
.rc-sheet.d3 .rc-table thead th, .rc-sheet.d4 .rc-table thead th{padding:4px 7px; font-size:.64rem;}
.rc-sheet.d3 .rc-letterhead, .rc-sheet.d4 .rc-letterhead{padding-top:6px; padding-bottom:4px;} .rc-sheet.d3 .rc-letterhead .crest-big, .rc-sheet.d4 .rc-letterhead .crest-big{height:78px;width:68px;} .rc-sheet.d3 .rc-photo, .rc-sheet.d4 .rc-photo{height:78px;width:66px;}
.rc-sheet.d3 .rc-letterhead .mid h2, .rc-sheet.d4 .rc-letterhead .mid h2{font-size:1.5rem;}
.rc-sheet.d3 .rc-title-bar, .rc-sheet.d4 .rc-title-bar{margin-top:8px; padding:6px 10px; font-size:1.05rem;} .rc-sheet.d3 .rc-subtitle, .rc-sheet.d4 .rc-subtitle{margin:6px 34px 6px;}
.rc-sheet.d3 .rc-info, .rc-sheet.d4 .rc-info{margin-bottom:6px; padding:4px 16px; font-size:.76rem;} .rc-sheet.d3 .rc-info .r, .rc-sheet.d4 .rc-info .r{padding:0;}
.rc-sheet.d3 .rc-summary, .rc-sheet.d4 .rc-summary{margin:7px 34px;} .rc-sheet.d3 .rc-summary .cell, .rc-sheet.d4 .rc-summary .cell{padding:4px 6px;} .rc-sheet.d3 .rc-summary .cell .v, .rc-sheet.d4 .rc-summary .cell .v{font-size:1.02rem; margin-top:1px;}
.rc-sheet.d3 .rc-comments, .rc-sheet.d4 .rc-comments{margin-bottom:8px;} .rc-sheet.d3 .rc-comment-box p, .rc-sheet.d4 .rc-comment-box p{font-size:.7rem; line-height:1.3; padding:6px 10px;} .rc-sheet.d3 .rc-comment-box .hd, .rc-sheet.d4 .rc-comment-box .hd{padding:4px 10px;}
.rc-sheet.d3 .rc-sign .script, .rc-sheet.d4 .rc-sign .script{height:30px;} .rc-sheet.d3 .rc-sign .script img, .rc-sheet.d4 .rc-sign .script img{max-height:28px;} .rc-sheet.d3 .rc-sign-row, .rc-sheet.d4 .rc-sign-row{margin-top:2px; margin-bottom:8px;}
.rc-sheet.d4 .rc-table tbody td{padding:0 7px; font-size:.66rem; line-height:1.15;} .rc-sheet.d4 .rc-table thead th{padding:3px 7px;}
/* ---- final design: big header, sections, state rows ---- */
.rc-fit{margin-bottom:6px}
.rc-sheet.sci{--rcb:#0b7a3b}
.rc-sheet.arts{--rcb:#d8102a}
.rc-letterhead .mid .tel{font-family:'Poppins',sans-serif;font-weight:500;color:var(--rct);font-size:.84rem;letter-spacing:.05em;margin-top:3px;white-space:nowrap}
.rc-sheet.d2 .rc-letterhead .mid .tel,.rc-sheet.d3 .rc-letterhead .mid .tel,.rc-sheet.d4 .rc-letterhead .mid .tel{font-size:.78rem;margin-top:2px}
.rc-sheet.d2 .rc-letterhead .mid .po,.rc-sheet.d3 .rc-letterhead .mid .po{margin-top:3px}
.rc-sheet.d3 .rc-letterhead .mid .motto,.rc-sheet.d4 .rc-letterhead .mid .motto{margin-top:2px}
.rc-sec{display:inline-block;background:#fff;color:var(--rcb);border-radius:99px;font-size:.66rem;letter-spacing:.12em;padding:2px 10px;margin-left:10px;vertical-align:middle}
.rc-table tbody td.blank{background:repeating-linear-gradient(135deg,transparent 0 6px,rgba(0,42,98,.045) 6px 12px)}
.rc-sign .script span{font-family:'Caveat',cursive;font-size:1.7rem;color:#0b1f5c;line-height:1;padding-bottom:2px}
.rc-summary .cell .v.nr{font-size:.9rem;color:var(--red-dark)}
.rc-fit .rc-sheet .rc-letterhead{padding:8px 24px 6px;gap:14px}
.rc-fit .rc-sheet .rc-letterhead .mid{min-width:0}
.rc-fit .rc-sheet .rc-letterhead .crest-big{width:92px;height:108px}
.rc-fit .rc-sheet .rc-letterhead .mid h2{font-family:'Montserrat','Poppins',sans-serif;font-weight:900;font-size:1.9rem;line-height:1.08;letter-spacing:0;text-align:center;display:block;white-space:nowrap}
.rc-fit .rc-sheet .rc-letterhead .mid .po{font-size:.88rem;letter-spacing:.03em;margin-top:5px;white-space:nowrap;font-weight:700}
.rc-fit .rc-sheet .rc-letterhead .mid .addr{font-size:.78rem;letter-spacing:.04em;margin-top:2px;font-weight:700}
.rc-fit .rc-sheet .rc-letterhead .mid .motto{font-size:1.3rem;margin-top:3px}
.rc-fit .rc-sheet .rc-photo{width:86px;height:102px;border-radius:10px}
.rc-sheet.alevel .rc-title-bar{box-shadow:0 4px 0 #fdb949}
.rc-fit .rc-sheet .rc-topbars{height:16px}
.rc-fit .rc-sheet .rc-title-bar{margin-top:12px;padding:8px 10px;font-size:1.05rem}
.rc-fit .rc-sheet .rc-subtitle{margin-top:8px;margin-bottom:8px}
.rc-fit .rc-sheet .rc-comment-box p{padding:6px 10px;font-size:.74rem;line-height:1.35}
.rc-fit .rc-sheet .rc-comment-box .hd{padding:5px 10px}
.rc-table tbody tr.nd td{color:#6b7488}
.rc-table tbody tr.nd td.rm{color:#D8102A;font-weight:700;font-style:italic}
.rc-table tbody tr.no td{color:#8a93a6;background:#f3f4f7}
.rc-table tbody tr.no td.rm{font-style:italic;font-weight:600}
.rc-legend{margin:5px 34px 0;font-size:.62rem;color:#6b7488;line-height:1.35}
.rc-legend b{color:#D8102A}
.sig-row .pic{width:150px;height:52px;background:#fff}
.sig-row input[type=file]{font-size:.78rem;max-width:210px}
.rc-subtitle{color:var(--rcb)!important}
.rc-title-bar+.rc-info{margin-top:14px}
.rc-fit .rc-sheet:not(.alevel) .rc-table tbody td{padding-top:var(--rp,4px)!important;padding-bottom:var(--rp,4px)!important;font-size:var(--rf,.78rem)!important}
.rc-fit .rc-sheet:not(.alevel) .rc-table thead th{padding-top:calc(var(--rp,4px)*.8)!important;padding-bottom:calc(var(--rp,4px)*.8)!important}
.rc-fit .rc-sheet:not(.alevel) .rc-comment-box p{font-size:var(--rf,.74rem)!important;min-height:var(--cm,0px)}
.rc-sheet.alevel .rc-title-bar{box-shadow:0 4px 0 #fdb949}
.rc-sheet .rc-sign .script span{font-family:Caveat,cursive}
.rc-fit .rc-sheet .rc-letterhead .mid h2{font-family:'Montserrat','Poppins',sans-serif}
.rc-sign .script.blank{border-bottom:1px solid var(--ink)}
.rc-note{font-size:.7rem;color:#6b7488;text-align:center;margin:4px 34px 0}
@media print{.rc-fit{overflow:visible!important}.rc-zoom{zoom:1!important}}
.rc-sheet img{max-width:none;display:block}
.rc-sheet .rc-sign .script img{max-width:100%}
.rc-sheet table td,.rc-sheet table th{border-left:0;border-right:0}

.rc-sheet .rc-table tbody tr.nd td{color:#9aa3b5}.rc-sheet .rc-table tbody tr.nd td.rm{color:#9aa3b5;font-style:italic;font-weight:500}
.rc-sheet .rc-summary .v.rc-grade-–{color:#9aa3b5}
