.hero{position:relative}.enh-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.enh-heading h2{margin:0}.enh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.enh-grid .card{min-width:0;margin:0}.enh-section{margin-bottom:14px}.enh-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.enh-actions .btn{font-size:12px;padding:10px 12px}.enh-stat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.enh-stat .kpi{background:#f7fbfc}.enh-alert{border:1px solid #e8d1a4;background:#fffaf0;border-radius:12px;padding:12px;margin:9px 0;line-height:1.8;font-size:13px}.enh-list{max-height:380px;overflow:auto}.enh-tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.enh-tools .btn{flex:1}.enh-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:12px 0}.enh-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:4px}.enh-monthly{overflow:auto}.enh-class-chart{min-width:480px;display:flex;align-items:flex-end;gap:16px;height:205px;border-bottom:1px solid #c5d8db;padding:0 10px}.enh-class-group{flex:1;min-width:65px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;text-align:center}.enh-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:170px}.enh-bar{min-width:13px;max-width:25px;flex:1;border:1px solid #3c7788;border-radius:4px 4px 0 0;position:relative;min-height:2px}.enh-bar b{position:absolute;top:-18px;left:0;right:0;font-size:10px;color:#17363b}.enh-class-label{font-size:10px;min-height:25px;margin-top:7px}.enh-status{font-size:12px;font-weight:800;color:#88620b}.enh-status.done{color:#166646}.enh-file{display:flex;gap:8px;align-items:center;justify-content:space-between;border-bottom:1px solid #e3eded;padding:10px 0}.enh-file a{overflow-wrap:anywhere}.enh-dialog{max-height:90dvh;max-width:920px}.enh-dialog textarea{min-height:110px}.enh-dialog input[type=file]{padding:10px}.enh-busy{opacity:.65;pointer-events:none}.enh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.enh-student-summary{padding:12px;background:#eef8f7;border-radius:12px;margin:12px 0}.enh-log{font-size:12px;line-height:1.8;border-bottom:1px solid #e1ecee;padding:10px 0}.nav-inner{display:flex!important}.nav button{flex:1;min-width:0}.nav .nav-secondary{display:none!important}.enh-refresh{font-size:12px!important}.enh-modal-heading{font-size:18px;margin:12px 0}.enh-caption{font-size:12px;color:var(--muted);line-height:1.8}.enh-date{direction:ltr;text-align:right}.enh-print-document{display:none}.enh-count-badge{background:#b94150;color:white;border-radius:16px;padding:2px 6px;font-size:11px;margin-right:3px}#dashboard .kpi b{font-size:28px}.enh-search-list .student-row{padding:14px 2px}.enh-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.enh-empty{padding:15px;color:var(--muted);font-size:13px}.enh-dialog .field label{font-size:13px}.enh-dialog .notice{overflow-wrap:anywhere}#reportAdmin{min-width:150px}#repeatNotice{line-height:1.9}
@media(min-width:760px){.nav .nav-secondary{display:block!important}#dashboard{max-width:1100px;margin:auto}.enh-dialog{border-radius:20px}.modal{align-items:center}.enh-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.enh-grid{grid-template-columns:1fr}.enh-stat{grid-template-columns:repeat(2,minmax(0,1fr))}.enh-form-grid{grid-template-columns:1fr 1fr}.enh-dialog{padding:16px}.enh-actions .btn{flex:1}.hero .brand{font-size:25px}.login-card{width:calc(100vw - 32px)!important;max-width:420px!important;padding:25px!important}.login-card h1{font-size:23px!important}.login-card .field label{font-size:15px!important}.login-card input{font-size:16px!important;padding:13px!important}.login-card p,.login-card .role-note{font-size:12px!important}.login-gate{padding:16px!important}.nav button{font-size:11px}.enh-tools .btn{min-width:42%}}
@media print{body.enh-printing>.app,body.enh-printing>.nav,body.enh-printing>.modal,body.enh-printing>.login-gate{display:none!important}body.enh-printing .enh-print-document{display:block!important;direction:rtl;font-size:11px;color:#152b31}.enh-print-document .report-print-header,.enh-print-document .report-print-signatures{display:flex!important}.enh-print-document .report-print-signatures>div{width:50%}.enh-print-document table{width:100%;border-collapse:collapse;table-layout:fixed}.enh-print-document th,.enh-print-document td{border:1px solid #aabfc3;padding:6px;overflow-wrap:anywhere;white-space:normal;vertical-align:top}.enh-print-document thead{display:table-header-group}.enh-print-document tr{break-inside:avoid}.enh-print-document h2{text-align:center;font-size:16px}.enh-print-document .enh-stat{display:flex;justify-content:space-around;break-inside:avoid}.enh-print-document .report-print-signatures{break-inside:avoid;margin-top:14px}.enh-print-document .meta{font-size:11px}.enh-class-chart{min-width:0;break-inside:avoid}.enh-bar{print-color-adjust:exact;-webkit-print-color-adjust:exact}.enh-legend{break-inside:avoid}.enh-print-filters{font-size:11px;margin:8px 0}#report .enh-tools,#report .enh-report-filters{display:none!important}}

@media print{.enh-monthly,.enh-print-document .table-wrap{overflow:visible!important}.enh-monthly .enh-class-chart{display:none}.enh-monthly .table td,.enh-monthly .table th{white-space:normal}.enh-status{color:#333}#enhLastSaved{display:none!important}}
.nav button.role-hidden{display:none!important}
