/* style.css — extracted from Mudarrisi Pro index.html, content unchanged, just relocated */

*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial;background:#f4f7fb;color:#172033;overflow-x:hidden;max-width:100vw;touch-action:manipulation}
button,a,[onclick]{touch-action:manipulation}header{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 18px;padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top));position:sticky;top:0;z-index:9;box-sizing:border-box;overflow:hidden}.brand{font-size:19px;font-weight:800;color:#1d4ed8;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}.wrap{display:flex;min-height:calc(100vh - 64px)}aside{width:250px;background:#fff;border-left:1px solid #e5e7eb;padding:14px;position:fixed;right:0;top:64px;bottom:0;z-index:20;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}main{margin-right:250px;width:calc(100% - 250px);padding:18px;max-width:1300px}
.sideProfile{display:flex;align-items:center;gap:11px;padding:12px;margin-bottom:14px;background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #e5e7eb;border-radius:16px}
.sideAvatar{width:44px;height:44px;min-width:44px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px #2563eb33}
.sideProfileInfo{overflow:hidden}
.sideProfileName{font-weight:800;font-size:14px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sideProfileRole{font-size:11px;color:#3730a3;background:#eef2ff;display:inline-block;padding:2px 8px;border-radius:999px;margin-top:3px;font-weight:700}
nav{flex:1}
nav button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:right;padding:11px 12px;border-radius:11px;margin:3px 0;font-weight:700;font-size:13.5px;color:#475569;cursor:pointer;transition:background .15s ease,color .15s ease,transform .1s ease;position:relative}
nav button:hover{background:#f1f5f9;color:#1d4ed8}
nav button:active{transform:scale(.98)}
nav button.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 4px 14px #2563eb2e}
nav button.active::before{content:"";position:absolute;right:-14px;top:50%;transform:translateY(-50%);width:4px;height:60%;background:#1d4ed8;border-radius:4px 0 0 4px}
.sideFoot{padding:10px 6px 4px;font-size:10.5px;color:#94a3b8;text-align:center;border-top:1px solid #eef0f4;margin-top:8px}.page{display:none}.page.active{display:block}h2{margin:0 0 14px}h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.card,.stat{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:15px;box-shadow:0 2px 10px #00000007}.stat small{color:#64748b}.stat b{font-size:26px;display:block;margin-top:6px}input,select,textarea{width:100%;padding:11px;border:1px solid #d7dee9;border-radius:10px;font:inherit;background:#fff}.field{margin-bottom:11px}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px}button{font:inherit}.primary,.ghost,.danger,.success,.warn,.info{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.primary{background:#2563eb;color:white}.success{background:#16a34a;color:white}.danger{background:#fee2e2;color:#b91c1c}.ghost{background:#eef2f7;color:#334155}.warn{background:#fef3c7;color:#92400e}.info{background:#eef2ff;color:#3730a3}.primary:active,.ghost:active,.danger:active,.success:active,.warn:active,.info:active{transform:scale(.96)}.quickStatus button.sel{box-shadow:0 0 0 2px #111827 inset}.lessonActions button.sel{box-shadow:0 0 0 2px #111827 inset}.actions{display:flex;gap:7px;flex-wrap:wrap}.search{margin-bottom:12px}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #edf0f4;text-align:right;font-size:13px}th{background:#f8fafc}.badge{padding:4px 8px;border-radius:20px;font-size:11px}.p{background:#dcfce7;color:#166534}.a{background:#fee2e2;color:#991b1b}.l{background:#fef3c7;color:#92400e}.empty{text-align:center;padding:25px;color:#64748b}.muted{color:#64748b;font-size:13px}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#111827;color:#fff;padding:11px 16px;border-radius:10px;display:none;z-index:100}.modal{position:fixed;inset:0;background:#0007;display:none;align-items:center;justify-content:center;padding:15px;z-index:60}.modal>div{background:#fff;border-radius:16px;padding:18px;width:min(760px,100%);max-height:90vh;overflow:auto}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}.loginbox{width:min(440px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;box-shadow:0 10px 35px #0001}.loginbox h1{margin:0 0 6px;color:#1d4ed8}.hidden{display:none!important}.menuBtn{display:none}.overlay{display:none}.role{font-size:12px;background:#eef2ff;color:#3730a3;padding:5px 8px;border-radius:15px}.qrbox{text-align:center}.qrbox img{max-width:260px;width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:8px;background:#fff}.code{font-family:monospace;font-size:22px;font-weight:800;letter-spacing:2px}.schedule-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:end;margin-bottom:8px}.printOnly{display:none}.lessonHead{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:12px}.lessonHead .field{flex:1;min-width:140px;margin:0}.lessonCard{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;margin:10px 0;box-shadow:0 4px 16px #00000008}.lessonTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.studentName{font-size:18px;font-weight:800}.studentMeta{color:#64748b;font-size:12px;margin-top:4px}.lessonMoney{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0}.moneyTag{background:#fee2e2;color:#b91c1c;border-radius:9px;padding:6px 9px;font-weight:800;font-size:12px}.freeTag{background:#dcfce7;color:#166534;border-radius:9px;padding:6px 9px;font-weight:800;font-size:12px}.sessionTag{background:#eef2ff;color:#3730a3;border-radius:9px;padding:6px 9px;font-weight:800;font-size:12px}.lessonActions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.lessonActions button{min-height:42px}.bottomNav{display:none}.quickStatus{display:flex;gap:6px;margin:9px 0}.quickStatus button{flex:1}.attCircle{width:48px;height:48px;border-radius:50%;border:2px solid #cbd5e1;background:#fff;font-size:24px;font-weight:900;cursor:pointer}.attCircle.present{background:#dcfce7;border-color:#22c55e;color:#15803d}.attCircle.absent{background:#fee2e2;border-color:#ef4444;color:#b91c1c}.attCircle.late{background:#fef3c7;border-color:#f59e0b;color:#b45309}.scanBox{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px}.scanResult{font-size:18px;font-weight:800;text-align:center;padding:12px;margin-top:10px;border-radius:12px;background:#f8fafc}.scanMode{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scanMode button.active{background:#2563eb;color:#fff}
@media(max-width:800px){header{height:60px;padding:0 12px;padding-top:env(safe-area-inset-top);height:calc(60px + env(safe-area-inset-top));position:sticky;top:0}.bottomNav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;height:76px;background:#eef3ff;border-top:1px solid #dbe4f2;z-index:50;padding:8px 5px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #0000000d}.bottomNav button{border:0;background:transparent;color:#64748b;font-size:11.5px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px}.bottomNav button.active{background:#dbe7ff;color:#1d4ed8}.bottomNav .ico{font-size:27px;line-height:1}.lessonActions{grid-template-columns:repeat(2,1fr)}.menuBtn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:0;border-radius:12px;background:#eef2ff;font-size:22px;cursor:pointer}aside{width:280px;right:-300px;top:0;z-index:80;padding:72px 14px 18px;box-shadow:-8px 0 30px #0002;transition:right .22s ease}aside.open{right:0}.overlay{display:none;position:fixed;inset:0;background:#0006;z-index:70}.overlay.show{display:block}main{margin-right:0;width:100%;max-width:none;padding:12px 12px 96px}.grid{grid-template-columns:1fr}.schedule-row{grid-template-columns:1fr 1fr}.schedule-row button{grid-column:1/-1}.brand{font-size:17px}}
@media print{body{background:#fff}.noPrint,header,aside,.overlay{display:none!important}main{margin:0!important;width:100%!important;padding:0!important}.printOnly{display:block!important}.page{display:none!important}.page.active{display:block!important}.card{box-shadow:none;border:0}.report-actions{display:none!important}}

.certificate71,.student-card71{background:#fff;border:1px solid #cbd5e1;border-radius:18px;padding:22px;text-align:center;max-width:560px;margin:10px auto}
.listRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5e7eb}.listRow:last-child{border-bottom:0}.examPaper{background:#fff;padding:24px;border:1px solid #e5e7eb;border-radius:14px}.examPaper ol{padding-right:24px} @media(max-width:700px){.listRow{flex-direction:column;align-items:stretch}.examPaper{padding:14px}}
body[data-theme="dark"]{background:#0f172a;color:#e2e8f0}
body[data-theme="dark"] header{background:#111827;border-color:#1f2937;color:#e2e8f0}
body[data-theme="dark"] aside{background:#111827;border-color:#1f2937;color:#e2e8f0}
body[data-theme="dark"] main{background:#0f172a}
body[data-theme="dark"] .card,body[data-theme="dark"] .stat,body[data-theme="dark"] .lessonCard,body[data-theme="dark"] .scanBox{background:#1e293b;border-color:#334155;color:#e2e8f0;box-shadow:0 2px 10px #0004}
body[data-theme="dark"] input,body[data-theme="dark"] select,body[data-theme="dark"] textarea{background:#0f172a;border-color:#334155;color:#e2e8f0}
body[data-theme="dark"] th{background:#1e293b;color:#e2e8f0}
body[data-theme="dark"] td,body[data-theme="dark"] th{border-color:#334155}
body[data-theme="dark"] .ghost{background:#334155;color:#e2e8f0}
body[data-theme="dark"] .muted{color:#94a3b8}
body[data-theme="dark"] .empty{color:#94a3b8}
body[data-theme="dark"] .loginbox{background:#1e293b;border-color:#334155;color:#e2e8f0}
body[data-theme="dark"] .login{background:linear-gradient(135deg,#0f172a,#1e293b)}
body[data-theme="dark"] .bottomNav{background:#111827;border-color:#1f2937}
body[data-theme="dark"] .bottomNav button{color:#94a3b8}
body[data-theme="dark"] .bottomNav button.active{background:#1d4ed8;color:#fff}
body[data-theme="dark"] .side-header,body[data-theme="dark"] .sideFoot{color:#94a3b8;border-color:#334155}
body[data-theme="dark"] .modal>div{background:#1e293b;color:#e2e8f0}
body[data-theme="dark"] .empty,body[data-theme="dark"] h2,body[data-theme="dark"] h3{color:#e2e8f0}
body[data-theme="dark"] table{color:#e2e8f0}
.themeToggleBtn{border:0;border-radius:12px;background:#eef2ff;font-size:18px;cursor:pointer;width:38px;height:38px}
.timeRow{display:flex;gap:8px;margin-bottom:8px;align-items:center}
.timeRow select,.timeRow input{flex:1;margin:0}
.timeRow button{flex:0 0 auto;padding:8px 10px}
body[data-theme="dark"] .timeRow select,body[data-theme="dark"] .timeRow input{background:#0f172a;border-color:#334155;color:#e2e8f0}
.stuList{display:flex;flex-direction:column}
.stuRow{border-bottom:1px solid #edf0f4;padding:14px 0}
.stuRow:last-child{border-bottom:0}
.stuInfo{margin-bottom:10px;line-height:1.9}
body[data-theme="dark"] .stuRow{border-color:#334155}
body[data-theme="dark"] .themeToggleBtn{background:#334155}
.dashQuickActions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.dashQuickActions button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer;font-weight:700;font-size:12px}
.dashQuickActions button .ico{font-size:24px}
body[data-theme="dark"] .dashQuickActions button{background:#1e293b;border-color:#334155;color:#e2e8f0}
.navBadge{position:absolute;top:2px;left:calc(50% - 20px);background:#dc2626;color:#fff;border-radius:10px;font-size:9px;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 3px;font-weight:800}
.bottomNav button{position:relative}
.syncStatusBtn{border:0;border-radius:12px;background:#eef2ff;font-size:16px;cursor:pointer;width:38px;height:38px;position:relative}
body[data-theme="dark"] .syncStatusBtn{background:#334155}
.syncDot{position:absolute;top:4px;left:4px;width:9px;height:9px;border-radius:50%;background:#94a3b8;border:2px solid #fff}
body[data-theme="dark"] .syncDot{border-color:#1e293b}
.syncDot.on{background:#16a34a}
.syncDot.pending{background:#f59e0b}
.globalSearchBtn{border:0;border-radius:12px;background:#eef2ff;font-size:16px;cursor:pointer;width:38px;height:38px}
body[data-theme="dark"] .globalSearchBtn{background:#334155}
body[data-theme="dark"] #nav button{color:#e2e8f0}
body[data-theme="dark"] #nav button.active{background:#1d4ed8;color:#fff}
body[data-theme="dark"] .sideProfile{background:linear-gradient(135deg,#1e293b,#111827);border-color:#334155}
body[data-theme="dark"] .sideProfileName{color:#e2e8f0}
body[data-theme="dark"] .sideProfileRole{background:#334155;color:#c7d2fe}
body[data-theme="dark"] .field label{color:#cbd5e1}
body[data-theme="dark"] label{color:#cbd5e1}
body[data-theme="dark"] .stat b,body[data-theme="dark"] .stat small{color:#e2e8f0}
body[data-theme="dark"] .brand{color:#93c5fd}
body[data-theme="dark"] p,body[data-theme="dark"] span,body[data-theme="dark"] div{color:inherit}
body[data-theme="dark"] .studentName{color:#e2e8f0}
body[data-theme="dark"] .studentMeta{color:#94a3b8}
body[data-theme="dark"] .lessonTop,body[data-theme="dark"] .lessonMoney{color:#e2e8f0}
body[data-theme="dark"] .role{background:#334155;color:#c7d2fe}
body[data-theme="dark"] .toast{background:#334155;color:#fff}
body[data-theme="dark"] .qrbox img{background:#fff}
body[data-theme="dark"] .code{color:#e2e8f0}
body[data-theme="dark"] .schedule-row label{color:#cbd5e1}
body[data-theme="dark"] .card *,body[data-theme="dark"] .stat *,body[data-theme="dark"] .lessonCard *{color:#e2e8f0}
body[data-theme="dark"] .card .muted,body[data-theme="dark"] .stat .muted,body[data-theme="dark"] .lessonCard .muted{color:#94a3b8}
body[data-theme="dark"] .card .moneyTag{color:#b91c1c}
body[data-theme="dark"] .card .freeTag{color:#166534}
body[data-theme="dark"] .card .sessionTag{color:#3730a3}
body[data-theme="dark"] .card .danger,body[data-theme="dark"] .stat .danger,body[data-theme="dark"] .lessonCard .danger{background:#7f1d1d;color:#fecaca}
body[data-theme="dark"] .card .primary,body[data-theme="dark"] .stat .primary,body[data-theme="dark"] .lessonCard .primary{color:#fff}
body[data-theme="dark"] .card .success,body[data-theme="dark"] .stat .success,body[data-theme="dark"] .lessonCard .success{color:#fff}
body[data-theme="dark"] .card .warn,body[data-theme="dark"] .stat .warn,body[data-theme="dark"] .lessonCard .warn{background:#78350f;color:#fde68a}
body[data-theme="dark"] .card .info,body[data-theme="dark"] .stat .info,body[data-theme="dark"] .lessonCard .info{background:#312e81;color:#c7d2fe}
body[data-theme="dark"] .card .ghost,body[data-theme="dark"] .stat .ghost,body[data-theme="dark"] .lessonCard .ghost{background:#334155;color:#e2e8f0}
body[data-theme="dark"] .modal>div .danger{background:#7f1d1d;color:#fecaca}
body[data-theme="dark"] .modal>div .primary,body[data-theme="dark"] .modal>div .success{color:#fff}
body[data-theme="dark"] .modal>div .ghost{background:#334155;color:#e2e8f0}
body[data-theme="dark"] .listRow{border-color:#334155}
body[data-theme="dark"] .card .reportPro,body[data-theme="dark"] .card .reportPro *{color:#1e293b}
body[data-theme="dark"] .card .reportPro th{background:#eff6ff;color:#1e293b}
body[data-theme="dark"] .card .reportPro td{background:#fff}
body[data-theme="dark"] .smartStat,body[data-theme="dark"] .expenseStat{background:#1e293b!important;border-color:#334155}
body[data-theme="dark"] .smartStat small,body[data-theme="dark"] .smartStat b,body[data-theme="dark"] .expenseStat small,body[data-theme="dark"] .expenseStat b{color:#e2e8f0}
body[data-theme="dark"] .v9stat{background:#1e293b!important;border-color:#334155}
body[data-theme="dark"] .v9stat small,body[data-theme="dark"] .v9stat b{color:#e2e8f0}
body[data-theme="dark"] .v9risk{background:#1e293b;border-color:#334155;color:#e2e8f0}
body[data-theme="dark"] .toast{background:#334155;color:#fff}
@media(max-width:800px){
 aside{right:0!important;left:0;top:auto!important;bottom:-100%;width:100%;max-height:78vh;border-radius:20px 20px 0 0;transition:bottom .25s ease;padding-bottom:24px}
 aside.open{bottom:0!important}
}

.gsResults{max-height:50vh;overflow:auto;margin-top:10px}.gsResultRow{padding:10px;border-bottom:1px solid #e5e7eb;cursor:pointer}.gsResultRow:hover{background:#f8fafc}body[data-theme="dark"] .gsResultRow{border-color:#334155}body[data-theme="dark"] .gsResultRow:hover{background:#334155}

.bulkGradeGrid{display:grid;gap:8px;margin:12px 0}.bulkRow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #e2e8f0;border-radius:10px}.bulkRow input{width:100px;padding:8px;border:1px solid #cbd5e1;border-radius:8px}

.v9two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v9stats{margin:12px 0;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.v9stat{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;box-shadow:0 2px 10px #00000008}.v9stat small{display:block;color:#64748b;font-weight:700}.v9stat b{display:block;font-size:25px;margin-top:6px}.v9stat.blue{border-top:4px solid #2563eb}.v9stat.green{border-top:4px solid #16a34a}.v9stat.red{border-top:4px solid #dc2626}.v9stat.amber{border-top:4px solid #d97706}.v9stat.purple{border-top:4px solid #7c3aed}.v9stat.cyan{border-top:4px solid #0891b2}.v9risk{display:grid;grid-template-columns:minmax(150px,1.2fr) 2fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf0f4}.v9risk:last-child{border-bottom:0}.riskDots{display:flex;gap:6px;flex-wrap:wrap}.riskPill{font-size:11px;border-radius:999px;padding:4px 8px;background:#f1f5f9}.riskPill.red{background:#fee2e2;color:#991b1b}.riskPill.amber{background:#fef3c7;color:#92400e}.riskPill.purple{background:#f3e8ff;color:#6b21a8}.riskPill.blue{background:#dbeafe;color:#1e40af}.v9rem{padding:10px;border-radius:12px;margin:8px 0;background:#f8fafc;border:1px solid #e5e7eb;display:flex;justify-content:space-between;gap:8px;align-items:center}.v9assist{padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb;margin:8px 0}.v9assist b{display:block;margin-bottom:4px}.expenseGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.expenseStat{border-radius:13px;padding:12px;background:#f8fafc;border:1px solid #e5e7eb}.expenseStat b{display:block;font-size:21px;margin-top:4px}.serverBadge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800;margin:3px}.serverBadge.ok{background:#dcfce7;color:#166534}.serverBadge.need{background:#fef3c7;color:#92400e}canvas{width:100%;max-width:100%;background:#fff;border-radius:12px}.quickGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:12px}.quickTile{border:1px solid #e5e7eb;background:#fff;border-radius:15px;padding:13px;cursor:pointer;text-align:inherit}.quickTile:hover{box-shadow:0 5px 20px #0001}.quickTile b{display:block;margin-top:7px}.agendaItem{display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:10px;padding:11px;border-radius:13px;background:#fff;border:1px solid #e5e7eb;margin:8px 0}.agendaTime{font-weight:900;color:#1d4ed8;font-size:17px}.agendaDot{width:10px;height:10px;border-radius:50%;background:#2563eb;display:inline-block;margin-inline-end:7px}.financeV9Section{margin-top:14px}.smallBtn{padding:7px 9px;font-size:12px}@media(max-width:780px){.v9two{grid-template-columns:1fr}.v9risk{grid-template-columns:1fr}.agendaItem{grid-template-columns:70px 1fr}.agendaItem button{grid-column:1/-1}}

body{font-family:Arial;padding:30px;line-height:1.8}.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.noPrint{display:none}@media print{body{padding:10mm}}

  body{font-family:Arial;padding:25px;text-align:center}.certificate71,.student-card71{border:2px solid #222;border-radius:18px;padding:30px;max-width:560px;margin:20px auto}.noPrint{display:none!important}.code{font-family:monospace;font-size:22px;font-weight:800;letter-spacing:2px}

    @page{size:85.6mm 54mm;margin:0}
    *{box-sizing:border-box}
    body{margin:0;background:#fff;font-family:Arial,sans-serif}
    .card{width:85.6mm;height:54mm;border:1.5px solid #222;border-radius:5mm;
      padding:5mm;text-align:center;position:relative;overflow:hidden;margin:10mm auto}
    .brand{font-size:14px;font-weight:800;margin-bottom:1mm}
    .title{font-size:11px;color:#666}
    .name{font-size:18px;font-weight:800;margin:3mm 0 1mm}
    .year{font-size:11px;margin-bottom:2mm}
    .qr{width:30mm;height:30mm;object-fit:contain}
    .code{font-family:monospace;font-size:9px;letter-spacing:1px;margin-top:1mm}
    .print{margin:10px;padding:10px 18px;font-size:16px;cursor:pointer}
    @media print{.print{display:none}.card{margin:0}}
  

  body{font-family:Arial;padding:20px}table{width:100%;border-collapse:collapse}th,td{border:1px solid #999;padding:7px;text-align:center}th{font-weight:800}.card{margin-bottom:15px}
  

:root{--smart-blue:#2563eb;--smart-green:#16a34a;--smart-amber:#d97706;--smart-red:#dc2626;--smart-purple:#7c3aed;--smart-cyan:#0891b2;--smart-slate:#475569}
.smartHero{background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #dbeafe;border-radius:18px;padding:16px;margin-bottom:12px}.smartHero h3{margin:0 0 6px}.smartHero .actions{margin-top:12px}
.smartStats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.smartStat{border-radius:16px;padding:14px;border:1px solid #e5e7eb;background:#fff}.smartStat b{display:block;font-size:24px;margin-top:6px}.smartStat.blue{border-top:4px solid var(--smart-blue)}.smartStat.green{border-top:4px solid var(--smart-green)}.smartStat.amber{border-top:4px solid var(--smart-amber)}.smartStat.red{border-top:4px solid var(--smart-red)}.smartStat.purple{border-top:4px solid var(--smart-purple)}.smartStat.cyan{border-top:4px solid var(--smart-cyan)}
.smartAttention{border-inline-start:5px solid #cbd5e1}.smartAttention.red{border-inline-start-color:var(--smart-red);background:#fff7f7}.smartAttention.amber{border-inline-start-color:var(--smart-amber);background:#fffbeb}.smartAttention.purple{border-inline-start-color:var(--smart-purple);background:#faf5ff}.smartAttention.blue{border-inline-start-color:var(--smart-blue);background:#eff6ff}
.filterBar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin-bottom:12px}.smartTabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.smartTabs button.active{background:#2563eb;color:#fff}.gradeQuiz{border-inline-start:5px solid var(--smart-cyan)}.gradeMonthly{border-inline-start:5px solid var(--smart-purple)}.gradeExam{border-inline-start:5px solid var(--smart-amber)}
.reportPro{border:1px solid #dbeafe;border-radius:18px;overflow:hidden;background:#fff}.reportProHead{padding:20px;background:#eff6ff}.reportProHead h2{margin:0}.reportSection{padding:16px 20px;border-top:1px solid #e5e7eb}.issueRow{padding:9px 11px;border-radius:10px;margin:6px 0}.issueRow.bad{background:#fef2f2}.issueRow.warn2{background:#fffbeb}.issueRow.good2{background:#f0fdf4}.reportMeta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px;font-size:13px}.reportMeta div{background:#fff;border:1px solid #dbeafe;border-radius:10px;padding:8px}
#financeUnified{margin-top:12px}.sectionDivider{margin:18px 0 10px;padding-top:8px;border-top:2px solid #e2e8f0}.typePill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.typePill.quiz{background:#cffafe;color:#155e75}.typePill.monthly{background:#ede9fe;color:#5b21b6}.typePill.exam{background:#fef3c7;color:#92400e}
@media(max-width:800px){.filterBar{grid-template-columns:1fr}.reportMeta{grid-template-columns:1fr}.smartHero .actions button{flex:1}.smartStats{grid-template-columns:1fr 1fr}}
@media print{.reportPro{border:0}.reportProHead{background:#fff!important;border-bottom:2px solid #111}.issueRow{border:1px solid #ddd;background:#fff!important}}

body{font-family:Arial;padding:30px;color:#172033}table{width:100%;border-collapse:collapse}td,th{border-bottom:1px solid #ddd;padding:8px;text-align:${APP_LANG==='ar'?'right':'left'}}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.s{border:1px solid #ddd;padding:12px;border-radius:10px}

${printStyle}