@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#182338;--muted:#778197;--line:#e8edf4;--paper:#fff;--bg:#f5f7fb;--blue:#365fe7;--navy:#18243c;--green:#188b70;--red:#d84b5b;--shadow:0 10px 30px rgba(28,43,77,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 34px}.brand-icon,.art-mark{display:grid;place-items:center;width:42px;height:42px;background:linear-gradient(145deg,#416cf0,#2546b8);color:#fff;border-radius:13px;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-1px;box-shadow:0 7px 16px #365fe72e}.brand b{font:800 17px Manrope,sans-serif;letter-spacing:-.5px;display:block}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.nav-label,.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#98a2b5}.nav-label{padding:0 12px 11px;margin-top:3px}.nav{height:44px;display:flex;align-items:center;gap:12px;padding:0 13px;border-radius:10px;color:#657087;margin-bottom:5px;font-size:13px;font-weight:600;transition:.15s}.nav span{font-size:17px;width:20px;text-align:center}.nav:hover,.nav:focus{background:#f0f4ff;color:var(--blue)}.nav[href="index.php"]{background:#edf2ff;color:var(--blue)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 5px 0;display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#edf2ff;color:var(--blue);font-weight:800}.profile{min-width:0;flex:1}.profile b,.profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile b{font-size:12px}.profile small{font-size:10px;color:var(--muted);margin-top:4px;text-transform:capitalize}.logout{color:#8d97a8;font-size:20px;padding:4px}.main{margin-left:248px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:100px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between}.topbar h1{font:800 23px Manrope,sans-serif;margin:5px 0 0;letter-spacing:-.7px}.top-actions{display:flex;align-items:center;gap:16px}.year-pill{font-size:11px;font-weight:700;color:#596985;background:#f2f5fa;padding:9px 13px;border-radius:8px}.content{padding:29px 38px 40px;flex:1;max-width:1600px;width:100%;margin:0 auto}.footer{border-top:1px solid var(--line);padding:18px 38px;color:#929bad;font-size:11px}.footer span{float:right}.welcome{border-radius:16px;padding:27px 30px;background:linear-gradient(110deg,#243b7a,#365fe7);color:#fff;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden;margin-bottom:22px}.welcome .eyebrow{color:#c2d0ff}.welcome h2{font:800 25px Manrope,sans-serif;margin:10px 0 7px;letter-spacing:-.7px}.welcome p{margin:0;color:#d7e0ff;font-size:13px}.welcome-symbol{width:104px;height:104px;border:1px solid #ffffff3a;border-radius:35px;display:grid;place-items:center;font-size:46px;color:#ffffffad;transform:rotate(14deg);margin-right:24px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat-card{padding:20px;min-width:0}.stat-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:18px;margin-bottom:17px}.blue{background:#edf2ff;color:#4164e8}.purple{background:#f3edff;color:#8756d8}.orange{background:#fff2e7;color:#db8b37}.green{background:#e6f8f1;color:#1c9b78}.stat-card>span{font-size:12px;color:#758097;display:block}.stat-card strong{display:block;font:800 29px Manrope,sans-serif;letter-spacing:-1px;margin:5px 0}.stat-card small{font-size:10px;color:#a0a8b7;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{padding:22px;margin-bottom:20px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.panel-head h3,.panel h3{font:800 16px Manrope,sans-serif;margin:0;letter-spacing:-.3px}.panel-head p{font-size:12px;color:var(--muted);margin:6px 0 0}.quick-links a{display:flex;align-items:center;gap:13px;padding:14px 4px;border-top:1px solid #f0f2f7}.quick-links a:first-child{border-top:0}.quick-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-size:16px;flex-shrink:0}.quick-links b,.quick-links small{display:block}.quick-links b{font-size:12px}.quick-links small{font-size:11px;color:var(--muted);margin-top:4px}.quick-links .arrow{margin-left:auto;color:#9ca6b8;font-size:18px}.steps>div{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2f7}.steps>div:last-child{border-bottom:0}.steps>div>span{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#f1f4fb;color:#5e72ad;font-weight:800;font-size:11px;flex-shrink:0}.steps b,.steps small{display:block}.steps b{font-size:12px}.steps small{font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px}.btn{border:0;border-radius:8px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-weight:700;font-size:12px;white-space:nowrap;transition:.15s}.btn.primary{background:var(--blue);color:white;box-shadow:0 4px 10px #365fe725}.btn.primary:hover{background:#274ed0}.btn.light{background:#f1f4f9;color:#58657b}.btn.danger{background:#fff0f1;color:#cf4352}.btn.small{padding:7px 10px;font-size:11px}.btn.full{width:100%;margin-top:22px;padding:13px}.status-pill,.badge{border-radius:20px;padding:6px 10px;font-size:10px;font-weight:700;white-space:nowrap}.status-pill{background:#edf2ff;color:#4966cf}.badge.done{background:#e7f8f1;color:#168562}.badge.pending{background:#fff4e4;color:#b77a1d}.filter-row{display:flex;align-items:flex-end;gap:14px;padding:17px;background:#f8f9fc;border-radius:11px;margin-bottom:20px;flex-wrap:wrap}.filter-row>div{min-width:170px;flex:1}.filter-row label,.form-grid label,.login-card label{display:block;font-size:11px;font-weight:700;color:#59657a;margin-bottom:7px}.filter-meta{align-self:center!important;min-width:210px!important}.filter-meta span,.filter-meta small{display:block}.filter-meta span{font-weight:700;font-size:12px}.filter-meta small{font-size:10px;color:var(--muted);margin-top:5px}input,select{width:100%;border:1px solid #dfe5ee;border-radius:8px;background:#fff;color:var(--ink);padding:10px 11px;outline:none;min-height:39px}input:focus,select:focus{border-color:#7e98fa;box-shadow:0 0 0 3px #365fe714}input::placeholder{color:#aab2c0}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f8f9fc;color:#7c879a;font-size:10px;text-transform:uppercase;letter-spacing:.55px;padding:12px 13px;font-weight:700}td{padding:12px 13px;border-bottom:1px solid #edf0f5;font-size:12px;color:#5e687b}td b{color:#26334a;font-weight:700}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}.grade-form{display:contents}.grade-form input[type=number]{width:104px;min-height:34px;padding:7px}.note-input{min-height:34px;padding:7px;min-width:140px}.actions{display:flex;gap:6px;align-items:center}.actions form{display:inline-flex}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 20px}.form-grid .span-2{grid-column:span 2}.form-actions{display:flex;gap:9px;padding-top:3px}.check-label{display:flex!important;align-items:center;gap:9px;min-height:38px}.check-label input{width:auto;min-height:auto}.empty{padding:24px;text-align:center;color:var(--muted);font-size:12px;white-space:normal}.alert{padding:12px 15px;border-radius:9px;margin-bottom:18px;font-size:12px;font-weight:600}.alert.ok{background:#e9f8f0;color:#187b5e}.alert.error{background:#fff0f1;color:#bc3447}.report-paper{width:min(100%,850px);min-height:950px;margin:0 auto;background:#fff;color:#111;padding:48px 58px;box-shadow:0 8px 40px #1e2a4212;border:1px solid #e8e8e8;font-family:'Times New Roman',serif;font-size:13px}.report-school{text-align:center;line-height:1.35;padding-bottom:13px;border-bottom:2px solid #111;display:flex;flex-direction:column}.report-school b{font-size:14px}.report-school .school-name{font-size:17px}.report-school span{font-size:10px;margin-top:3px}.report-paper h2{text-align:center;font-size:16px;margin:25px 0 20px;text-decoration:underline}.report-intro{line-height:1.55;margin:0 0 22px}.report-identity{margin:0 0 20px}.report-identity div{display:flex;line-height:1.8}.report-identity span{width:100px}.report-identity b{font-weight:normal}.report-paper>p:not(.report-intro){margin:0 0 10px}.report-table{font-size:12px;width:100%;white-space:normal}.report-table th{background:white;color:#111;text-transform:none;letter-spacing:0;font: bold 12px 'Times New Roman',serif;padding:8px;border:1px solid #111}.report-table td{color:#111;border:1px solid #111;padding:7px 9px;font-size:12px}.report-table td:first-child,.report-table th:first-child{width:55px;text-align:center}.report-table td:last-child,.report-table th:last-child{width:75px;text-align:center}.report-table .report-group td{font-weight:bold;background:#fafafa}.report-total td{font-weight:bold}.report-sign{display:flex;justify-content:space-between;margin-top:38px;gap:30px;line-height:1.5}.signature{text-align:center;min-width:210px;font-size:12px}.signature:last-child{margin-left:auto}.signature b{font-weight:bold}.login-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:#f4f6fb}.login-wrap{width:min(920px,100%);min-height:550px;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 25px 80px #20305b19}.login-art{padding:52px 44px;background:linear-gradient(145deg,#1e3267,#345ce2);color:#fff;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden}.login-art:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #ffffff26;border-radius:50%;right:-120px;bottom:-90px;box-shadow:0 0 0 35px #ffffff0a,0 0 0 75px #ffffff08}.art-mark{background:#ffffff20;border:1px solid #ffffff38;box-shadow:none;width:56px;height:56px;font-size:18px;margin-bottom:75px}.login-art .eyebrow{color:#c3d1ff}.login-art h1{font:800 32px/1.25 Manrope,sans-serif;letter-spacing:-1px;margin:15px 0}.login-art p{font-size:13px;line-height:1.8;color:#d7e1ff;max-width:300px}.art-bottom{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#b8c8ff;margin-top:auto}.login-card{padding:65px 47px;align-self:center}.login-card h2{font:800 25px Manrope,sans-serif;letter-spacing:-.8px;margin:12px 0 7px}.muted{font-size:12px;color:var(--muted);line-height:1.7}.login-card form{margin-top:30px}.login-card label{margin-top:17px}.login-note{font-size:10px;color:#9aa3b3;text-align:center;margin-top:24px}.mobile-logo{display:none}.login-card .alert{margin-top:15px}
@media(max-width:1100px){.sidebar{width:220px}.main{margin-left:220px}.content{padding:25px}.topbar{padding:0 25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:1fr}.report-paper{padding:35px}.login-card{padding:45px 32px}.login-art{padding:40px 30px}}
@media(max-width:720px){.sidebar{position:static;width:auto;height:auto;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{padding:0 3px 12px}.nav-label,.sidebar-bottom{display:none}.sidebar .nav{display:inline-flex;height:35px;padding:0 9px;margin:0 2px 0 0;font-size:11px;gap:5px}.sidebar .nav span{font-size:14px;width:auto}.main{margin:0}.topbar{height:82px;padding:0 18px}.topbar h1{font-size:20px}.top-actions .year-pill{display:none}.content{padding:17px 13px 25px}.welcome{padding:22px 20px}.welcome h2{font-size:21px}.welcome-symbol{display:none}.stats{gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:25px}.panel{padding:16px;margin-bottom:14px}.panel-head{align-items:flex-start}.filter-row{padding:12px;gap:10px}.filter-row>div{min-width:100%;}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.footer{padding:15px;font-size:10px}.footer span{float:none;display:block;margin-top:5px}.login-wrap{grid-template-columns:1fr;max-width:430px}.login-art{display:none}.login-card{padding:35px 26px}.mobile-logo{display:block;color:var(--blue);font:800 18px Manrope,sans-serif;margin-bottom:40px}.mobile-logo b{color:var(--ink)}.report-paper{padding:25px 18px;min-height:0;font-size:12px}.report-school b{font-size:12px}.report-school .school-name{font-size:15px}.report-school span{font-size:9px}.report-paper h2{font-size:14px}.report-table td,.report-table th{padding:6px 4px;font-size:10px}.report-sign{gap:12px}.signature{min-width:0;font-size:10px}.report-identity span{width:70px}.actions{white-space:normal}.top-actions .avatar{display:none}}
@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff!important;font-family:'Times New Roman',serif!important;color:#111!important}.sidebar,.topbar,.footer,.no-print,.alert{display:none!important}.main{margin:0!important;display:block}.content{padding:0!important;max-width:none!important;width:100%!important}.report-paper{width:100%!important;min-height:0!important;margin:0!important;padding:8mm 8mm!important;border:0!important;box-shadow:none!important}.report-school{border-bottom:2px solid #111}.report-paper h2{margin-top:18px}.report-table tr{break-inside:avoid}.report-sign{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.report-school{position:relative;min-height:86px;display:flex;align-items:center;justify-content:center;padding:0 68px 13px}.report-school-text{display:flex;flex-direction:column;align-items:center;line-height:1.35}.report-logo{position:absolute;top:2px;width:54px;height:58px;object-fit:contain}.logo-left{left:2px}.logo-right{right:2px}@media(max-width:720px){.report-school{padding-left:44px;padding-right:44px;min-height:76px}.report-logo{width:36px;height:42px}.report-school span{font-size:8px}}@media print{.report-school{padding-left:65px;padding-right:65px;min-height:80px}.report-logo{width:55px;height:58px}}

.report-table .report-subject-heading td{font-weight:bold;background:#fff;border-top:1px solid #111;border-bottom:1px solid #111}

/* Perapian cetak A4 dan cetak massal per kelas */
.print-actions{display:flex;gap:8px;flex-wrap:wrap}
@media print{
 @page{size:A4 portrait;margin:10mm}
 html,body{width:100%!important;margin:0!important;padding:0!important;background:#fff!important;font-family:"Times New Roman",serif!important;color:#111!important}
 .app,.main,.content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .report-paper{width:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;font-size:10.5pt!important;break-after:page;page-break-after:always}
 .report-paper:last-of-type{break-after:auto!important;page-break-after:auto!important}
 .report-school{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:95px!important;padding:0 82px 10px!important;border-bottom:3px double #111!important;line-height:1.25!important}
 .report-school-text{width:100%!important;line-height:1.25!important}
 .report-school b{font-size:12pt!important}.report-school .school-name{font-size:16pt!important;font-weight:800!important}.report-school span{font-size:9pt!important}
 .report-logo{position:absolute!important;top:3px!important;width:70px!important;height:76px!important;object-fit:contain!important}.logo-left{left:2px!important}.logo-right{right:2px!important}
 .report-paper h2{font-size:12pt!important;margin:12px 0 10px!important}.report-intro{font-size:10pt!important;line-height:1.35!important;margin-bottom:10px!important}.report-identity{margin-bottom:9px!important;font-size:10pt!important}.report-paper>p:not(.report-intro){margin-bottom:7px!important;font-size:10pt!important}
 .report-table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;white-space:normal!important;font-size:9.5pt!important}.report-table th{font-size:9.5pt!important;padding:4px 6px!important}.report-table td{font-size:9.5pt!important;padding:3.5px 6px!important;line-height:1.2!important;overflow-wrap:break-word!important}
 .report-table th:first-child,.report-table td:first-child{width:12%!important;text-align:center!important}.report-table th:nth-child(2),.report-table td:nth-child(2){width:70%!important}.report-table th:last-child,.report-table td:last-child{width:18%!important;text-align:center!important}
 .report-sign{margin-top:24px!important;gap:20px!important;font-size:10pt!important}.signature{min-width:0!important;width:45%!important;font-size:9.5pt!important}.report-paper tr{break-inside:avoid!important;page-break-inside:avoid!important}
}

/* Penugasan banyak kelas dan tabel raport lebih ringkas saat dicetak */
.class-multi-select{min-height:150px!important;padding:8px!important} .field-help{display:block;color:var(--muted);font-size:11px;margin-top:7px;line-height:1.5}
@media print{.report-table th,.report-table td{font-size:8.8pt!important;padding:3px 5px!important}.report-table th:first-child,.report-table td:first-child{width:8%!important}.report-table th:nth-child(2),.report-table td:nth-child(2){width:78%!important}.report-table th:last-child,.report-table td:last-child{width:14%!important}.report-table td:nth-child(2){font-size:8.6pt!important}}

/* Revisi akhir cetak: tabel lebih kompak, logo kop lebih besar, tanpa footer pada kertas */
.report-table{width:90%!important;margin:0 auto!important;table-layout:fixed!important;border-collapse:collapse!important}
.report-table th:first-child,.report-table td:first-child{width:9%!important;text-align:center!important}
.report-table th:nth-child(2),.report-table td:nth-child(2){width:77%!important}
.report-table th:last-child,.report-table td:last-child{width:14%!important;text-align:center!important}
.report-table th,.report-table td{padding:4px 6px!important}
.report-logo{width:72px!important;height:76px!important}
.report-school{padding-left:88px!important;padding-right:88px!important}
@media print{
 @page{size:A4 portrait;margin:8mm}
 .footer,.sidebar,.topbar,.no-print{display:none!important;visibility:hidden!important}
 .report-table{width:90%!important;margin-left:auto!important;margin-right:auto!important}
 .report-table th,.report-table td{padding:3px 4px!important;font-size:8.5pt!important;line-height:1.15!important}
 .report-table th:first-child,.report-table td:first-child{width:9%!important}
 .report-table th:nth-child(2),.report-table td:nth-child(2){width:77%!important}
 .report-table th:last-child,.report-table td:last-child{width:14%!important}
 .report-school{padding-left:94px!important;padding-right:94px!important;min-height:100px!important}
 .report-logo{width:82px!important;height:86px!important;top:2px!important}
 .report-paper{padding:0!important}
}

/* Penyesuaian kop, teks pengantar, dan posisi tanda tangan cetak */
.report-summary{width:100%;text-align:center;margin:0 auto 10px}
.report-summary h2{text-align:center}
.report-summary .report-intro{max-width:100%;text-align:center;margin-left:auto;margin-right:auto}
.report-summary .report-identity{display:flex;flex-direction:column;align-items:center;text-align:left;width:max-content;max-width:100%;margin:0 auto 12px}
.report-summary .report-identity div{width:100%}
.report-summary .report-grade-intro{text-align:center;margin:0 0 10px!important}
@media print{
 @page{size:A4 portrait;margin:12mm}
 .report-paper{height:273mm!important;min-height:273mm!important;display:flex!important;flex-direction:column!important;padding:0!important;overflow:visible!important}
 .report-school{flex:0 0 auto!important}
 .report-summary{flex:0 0 auto!important;margin-bottom:7px!important}
 .report-summary h2{margin:10px 0 8px!important;text-align:center!important}
 .report-summary .report-intro{margin:0 auto 8px!important;text-align:center!important}
 .report-summary .report-identity{margin:0 auto 8px!important;align-items:flex-start!important}
 .report-summary .report-grade-intro{margin:0 0 8px!important;text-align:center!important}
 .report-table{flex:0 0 auto!important;margin-left:auto!important;margin-right:auto!important}
 .report-sign{margin-top:auto!important;margin-bottom:0!important;padding-top:16px!important;flex:0 0 auto!important;break-inside:avoid!important;page-break-inside:avoid!important}
}


/* Finalisasi format cetak agar mengikuti dokumen contoh asesmen */
.report-summary{ text-align:left; }
.report-summary h2{ text-align:center; }
.report-summary .report-intro{ text-align:left; margin-left:0; margin-right:0; }
.report-summary .report-identity{ align-items:flex-start; text-align:left; width:100%; margin-left:0; margin-right:0; }
.report-summary .report-grade-intro{ text-align:left; }
.report-sign{ justify-content:flex-end; }
.report-sign .signature{ width:45%; min-width:0; text-align:center; }
@media print{
 .report-summary{ text-align:left!important; }
 .report-summary .report-intro{ text-align:left!important; }
 .report-summary .report-identity{ align-items:flex-start!important; width:100%!important; margin-left:0!important; margin-right:0!important; }
 .report-summary .report-grade-intro{ text-align:left!important; }
 .report-sign{ justify-content:flex-end!important; }
 .report-sign .signature{ width:45%!important; margin-left:auto!important; }
}

/* Penyesuaian akhir: blok keterangan sejajar dengan tepi kiri tabel dan tabel lebih terbaca */
.report-summary .report-intro,
.report-summary .report-identity,
.report-summary .report-grade-intro{
  width:90%!important;
  max-width:90%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.report-summary .report-intro{ text-align:left!important; }
.report-summary .report-identity{ align-items:stretch!important; }
.report-summary .report-identity div{ width:100%!important; }
.report-summary .report-grade-intro{ text-align:left!important; }
.report-table{ width:90%!important; margin-left:auto!important; margin-right:auto!important; font-size:10.5pt!important; }
.report-table th,.report-table td{ font-size:10.5pt!important; padding:5px 7px!important; line-height:1.25!important; }
.report-table th:first-child,.report-table td:first-child{ width:9%!important; text-align:center!important; }
.report-table th:nth-child(2),.report-table td:nth-child(2){ width:77%!important; }
.report-table th:last-child,.report-table td:last-child{ width:14%!important; text-align:center!important; }
@media print{
 .report-summary .report-intro,
 .report-summary .report-identity,
 .report-summary .report-grade-intro{ width:90%!important; max-width:90%!important; margin-left:auto!important; margin-right:auto!important; }
 .report-table{ width:90%!important; margin-left:auto!important; margin-right:auto!important; font-size:10pt!important; }
 .report-table th,.report-table td{ font-size:10pt!important; padding:4.5px 7px!important; line-height:1.22!important; }
}
@media(max-width:720px){
 .report-summary .report-intro,.report-summary .report-identity,.report-summary .report-grade-intro{width:100%!important;max-width:100%!important}
 .report-table{width:100%!important}
 .report-table th,.report-table td{font-size:10pt!important;padding:4px 4px!important}
}

/* Penyempurnaan KOP surat: logo kiri-kanan seimbang dan teks tepat di tengah */
.report-school{
  display:grid!important;
  grid-template-columns:80px minmax(0,1fr) 80px!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:10px!important;
  position:relative!important;
  min-height:94px!important;
  padding:0 0 10px!important;
  border-bottom:2px solid #111!important;
  box-sizing:border-box!important;
  text-align:center!important;
}
.report-school-text{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  line-height:1.25!important;
  text-align:center!important;
}
.report-school-text b{
  display:block!important;
  font-size:12pt!important;
  line-height:1.25!important;
  font-weight:700!important;
}
.report-school-text .school-name{font-size:14pt!important;}
.report-school-text span{
  display:block!important;
  margin-top:4px!important;
  font-size:8.5pt!important;
  line-height:1.25!important;
}
.report-school .report-logo{
  position:static!important;
  display:block!important;
  width:66px!important;
  height:70px!important;
  max-width:100%!important;
  object-fit:contain!important;
  justify-self:center!important;
  align-self:center!important;
  grid-row:1!important;
}
.report-school .logo-left{grid-column:1!important;left:auto!important;}
.report-school .logo-right{grid-column:3!important;right:auto!important;}
@media print{
 .report-school{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) 72px!important;
  min-height:80px!important;
  padding:0 0 8px!important;
  gap:8px!important;
 }
 .report-school .report-logo{position:static!important;width:62px!important;height:66px!important;top:auto!important;}
 .report-school-text b{font-size:11.5pt!important;}
 .report-school-text .school-name{font-size:13.5pt!important;}
 .report-school-text span{font-size:8pt!important;}
}
@media(max-width:720px){
 .report-school{grid-template-columns:42px minmax(0,1fr) 42px!important;gap:4px!important;min-height:70px!important;}
 .report-school .report-logo{width:38px!important;height:44px!important;}
 .report-school-text b{font-size:9pt!important;}
 .report-school-text .school-name{font-size:10pt!important;}
 .report-school-text span{font-size:6.5pt!important;}
}

/* Pastikan baris Jumlah memiliki garis penutup tabel yang jelas saat dicetak. */
.report-table{border-collapse:collapse!important;border:1px solid #111!important;}
.report-table .report-total td{border-bottom:1px solid #111!important;border-top:1px solid #111!important;}
.report-table tbody tr:last-child td{border-bottom:1px solid #111!important;}
@media print{
 .report-table{border-collapse:collapse!important;border:1px solid #111!important;}
 .report-table .report-total td,
 .report-table tbody tr:last-child td{border-bottom:1px solid #111!important;}
}


/* Perbaikan proporsi logo pada kop cetak raport: logo Provinsi Lampung lebih besar, tanpa kotak/bayangan. */
.report-school .report-logo.logo-left{
  width:84px!important;
  height:88px!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  padding:0!important;
}
.report-school .report-logo.logo-right{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}
@media print{
  .report-school .report-logo.logo-left{
    width:82px!important;
    height:86px!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    filter:none!important;
  }
  .report-school .report-logo.logo-right{
    box-shadow:none!important;
    filter:none!important;
  }
}
@media(max-width:720px){
  .report-school .report-logo.logo-left{width:46px!important;height:52px!important;}
}


/* KOP RAPOR diselaraskan dengan contoh kop resmi sekolah */
.report-school{grid-template-columns:88px minmax(0,1fr) 88px!important;gap:8px!important;min-height:108px!important;padding:0 0 5px!important;border-bottom:4px double #111!important;align-items:center!important;}
.report-school .report-logo.logo-left,.report-school .report-logo.logo-right{width:84px!important;height:96px!important;object-fit:contain!important;box-shadow:none!important;filter:none!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;}
.report-school-text{gap:0!important;line-height:1.12!important;}
.report-school-text b{font-size:12pt!important;line-height:1.12!important;font-weight:500!important;margin:0!important;}
.report-school-text .province-name{font-size:12.5pt!important;font-weight:500!important;letter-spacing:.1px!important;}
.report-school-text .school-name{font-size:17pt!important;font-weight:800!important;line-height:1.12!important;}
.report-school-text span{font-size:8.5pt!important;line-height:1.12!important;margin-top:2px!important;}
.report-school-text .school-ids,.report-school-text .school-status{font-size:8.5pt!important;}
.report-school-text .school-address,.report-school-text .school-contact{font-size:7.8pt!important;}
@media print{
 .report-school{grid-template-columns:88px minmax(0,1fr) 88px!important;min-height:108px!important;padding-bottom:5px!important;gap:8px!important;border-bottom:4px double #111!important;}
 .report-school .report-logo.logo-left,.report-school .report-logo.logo-right{width:84px!important;height:96px!important;}
 .report-school-text .province-name{font-size:12pt!important;}
 .report-school-text .school-name{font-size:16pt!important;}
 .report-school-text .school-ids,.report-school-text .school-status{font-size:8pt!important;}
 .report-school-text .school-address,.report-school-text .school-contact{font-size:7.3pt!important;}
}
@media(max-width:720px){.report-school{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:3px!important;min-height:78px!important;}.report-school .report-logo.logo-left,.report-school .report-logo.logo-right{width:42px!important;height:52px!important;}.report-school-text .province-name{font-size:8pt!important;}.report-school-text .school-name{font-size:9.5pt!important;}.report-school-text span{font-size:6pt!important;}}

/* Kop raport menggunakan gambar asli dari pengguna */
.report-school-image{display:block!important;width:100%;margin:0 0 12px;padding:0;border:0;background:transparent;box-shadow:none}
.report-school-image .report-kop-image{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;filter:none}
@media print{.report-school-image{width:100%;margin:0 0 10px;break-inside:avoid}.report-school-image .report-kop-image{width:100%;height:auto;max-height:none}}
@media(max-width:600px){.report-school-image .report-kop-image{width:100%;height:auto}}

/* Hilangkan garis panjang bawaan kop gambar */
.report-school-image .report-kop-image{border:0!important;outline:0!important;box-shadow:none!important}

/* Pemetaan Mapel Cetak: kontrol lebih ringkas dan responsif tanpa mengubah halaman lain */
.mapping-level{min-width:0;margin:18px 0 24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.mapping-level>h3{margin:0 0 7px!important}
.mapping-level>.muted,.mapping-level>p{margin:6px 0 13px;max-width:780px}
.mapping-level .table-wrap{border:1px solid var(--line);border-radius:9px;overflow-x:auto;overscroll-behavior-x:contain}
.mapping-level table{min-width:760px;white-space:normal;table-layout:auto}
.mapping-level th{padding:9px 10px;font-size:9px;white-space:normal}
.mapping-level td{padding:8px 10px;font-size:11px;vertical-align:middle}
.mapping-level td:first-child,.mapping-level th:first-child{text-align:center;width:58px}
.mapping-level input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;margin:0;vertical-align:middle;accent-color:var(--blue);cursor:pointer}
.mapping-level input[type=number]{width:62px!important;min-width:0;min-height:32px;padding:5px 7px;font-size:12px;border-radius:6px}
.mapping-level input[type=text]{width:100%;min-width:120px!important;min-height:32px;padding:6px 8px;font-size:11px;border-radius:6px}
.mapping-level td:nth-child(3){min-width:155px;white-space:normal;line-height:1.45}
.mapping-level td:nth-child(4),.mapping-level td:nth-child(5){min-width:155px}
.panel:has(>.panel-head h3){min-width:0}
@media(max-width:900px){.mapping-level{padding:12px}.mapping-level table{min-width:700px}.mapping-level th,.mapping-level td{padding:7px 8px}}
@media(max-width:600px){.content{padding:16px 12px 28px}.panel{padding:14px}.panel-head{align-items:flex-start}.panel-head h3{font-size:15px}.mapping-level{margin:14px 0;padding:10px}.mapping-level>h3{font-size:14px!important}.mapping-level>.muted,.mapping-level>p{font-size:11px;line-height:1.5}.mapping-level .table-wrap{margin:0 -1px}.mapping-level table{min-width:660px}.mapping-level th{font-size:8px;padding:7px 6px}.mapping-level td{font-size:10px;padding:6px}.mapping-level input[type=text]{min-width:125px!important;font-size:10px}.mapping-level input[type=number]{width:54px!important}.form-actions{flex-wrap:wrap}.form-actions .btn{white-space:normal}}

/* Progres nilai per kelas dan komponen impor yang responsif */
.progress-class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;margin:4px 0 18px}
.progress-class-card{border:1px solid #e2e8f0;border-radius:12px;padding:14px;background:#fff;min-width:0}
.progress-class-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.progress-class-top b{font-size:14px;overflow-wrap:anywhere}.progress-class-top strong{font-size:15px;color:#2563eb;white-space:nowrap}
.progress-track{height:8px;border-radius:99px;background:#e9eef5;overflow:hidden;margin-bottom:8px}.progress-track span{display:block;height:100%;background:#2563eb;border-radius:99px;transition:width .2s ease}
.progress-class-card small{font-size:12px;color:#64748b;line-height:1.5}
@media(max-width:600px){.progress-class-grid{grid-template-columns:1fr}.progress-class-card{padding:12px}}

/* Dashboard progress chart */
.progress-summary{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:16px;margin-bottom:20px}
.progress-summary>div{border:1px solid #e7edf5;border-radius:12px;background:#f9fbff;padding:16px;min-width:0}
.progress-summary span,.progress-summary small{display:block;color:#778197;font-size:11px}
.progress-summary strong{display:block;font:800 27px Manrope,sans-serif;letter-spacing:-.8px;margin:6px 0 10px;color:#263b73}
.progress-summary small{margin-top:8px;line-height:1.5}
.progress-summary-number{display:flex;flex-direction:column;justify-content:center}
.progress-chart{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}
.progress-chart-row{min-width:0;border-bottom:1px solid #edf1f6;padding:0 0 13px}
.progress-chart-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.progress-chart-label b{font-size:12px;overflow-wrap:anywhere}.progress-chart-label span{font-size:12px;font-weight:800;color:#365fe7;white-space:nowrap}
.progress-chart-row small{display:block;color:#7a8598;font-size:10px;margin-top:7px}
@media(max-width:720px){.progress-summary{grid-template-columns:1fr}.progress-chart{grid-template-columns:1fr}.dashboard-progress .panel-head{flex-wrap:wrap}.progress-summary-number{min-height:100px}}

/* Input nilai: kolom nilai mudah dibaca dan disentuh di HP */
.bulk-grade-form{min-width:0;width:100%}
.bulk-grade-form .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.bulk-grade-form table{width:100%;min-width:640px;table-layout:auto}
.bulk-grade-form th,.bulk-grade-form td{vertical-align:middle}
.bulk-grade-form td input[type=number]{display:block;width:100%;min-width:92px;max-width:130px;min-height:42px;box-sizing:border-box;padding:8px 10px;font-size:16px;line-height:1.3}
@media(max-width:600px){
 .bulk-grade-form .table-wrap{margin:0 -2px;width:calc(100% + 4px)}
 .bulk-grade-form table{min-width:640px}
 .bulk-grade-form th,.bulk-grade-form td{padding:9px 10px;font-size:13px;white-space:normal}
 .bulk-grade-form td input[type=number]{min-width:100px;width:100px;min-height:44px;font-size:16px;padding:9px 10px}
 .bulk-grade-form .form-actions .btn{width:auto;min-height:42px;font-size:14px;padding:10px 14px}
}
