:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#738097;--line:#e6eaf1;--brand:#1d5f6d;--brand2:#164a55;--ok:#16805c;--warn:#b7791f;--danger:#c2413c;--critical:#8e1b1b;--exceeded:#4a0707;--shadow:0 12px 30px rgba(16,38,60,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Times New Roman",Times,serif;background:var(--bg);color:var(--text)}body{direction:rtl}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#102d35;color:#eef8fa;padding:18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:8px 6px 20px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:14px}.brand .ico{width:40px;height:40px;background:#fff1;border-radius:12px;padding:8px}.brand strong{display:block;font-size:16px}.brand small{display:block;opacity:.72;margin-top:4px}.ico{display:inline-flex;width:21px;height:21px;align-items:center;justify-content:center}.ico svg{width:100%;height:100%;fill:currentColor}.nav-item{display:flex;gap:11px;align-items:center;padding:11px 12px;border-radius:11px;color:#d4e7ea;margin:2px 0}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.12);color:#fff}.sidebar nav{overflow:auto}.sidebar-foot{margin-top:auto;padding-top:12px}.user-chip{padding:12px;background:#ffffff0c;border-radius:12px;margin-bottom:8px}.user-chip strong,.user-chip small{display:block}.user-chip small{opacity:.72;margin-top:4px}.main{min-width:0}.topbar{height:72px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:10}.global-search{flex:1;max-width:760px;border:1px solid var(--line);background:#f9fbfd;border-radius:12px;padding:10px 13px;display:flex;align-items:center;gap:10px}.global-search input{width:100%;border:0;outline:0;background:transparent}.year-pill{margin-right:auto;background:#eef7f8;color:var(--brand);padding:8px 12px;border-radius:999px;font-size:13px}.menu-btn{display:none;border:0;background:transparent;font-size:24px}.content{padding:24px;max-width:1500px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.page-head h1{font-size:26px;margin:0}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.btn{border:1px solid transparent;border-radius:10px;padding:9px 14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand2)}.btn.secondary{background:#eaf3f5;color:var(--brand)}.btn.danger{background:#fff0ef;color:var(--danger);border-color:#ffd7d3}.btn.ghost{background:transparent;color:inherit;border-color:#ffffff22}.btn.full{width:100%}.btn.small{padding:6px 10px;font-size:13px}.card{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow);margin-bottom:16px}.card h2,.card h3{margin-top:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:17px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow)}.stat-card>.ico{width:42px;height:42px;border-radius:12px;padding:9px;background:#eef7f8;color:var(--brand)}.stat-card span,.stat-card small{display:block;color:var(--muted);font-size:13px}.stat-card strong{font-size:26px;display:block;margin:3px 0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.single{grid-template-columns:1fr}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid label{font-size:13px;color:#4d586d;display:flex;flex-direction:column;gap:6px}.form-grid input,.form-grid select,.form-grid textarea,.toolbar input,.toolbar select{width:100%;padding:10px 11px;border:1px solid #d9dfe8;border-radius:10px;background:#fff;outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.toolbar input:focus,.toolbar select:focus{border-color:#78aab4;box-shadow:0 0 0 3px #dcedf0}.span-2{grid-column:span 2}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px;background:#fff}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:11px 12px;text-align:right;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f7f9fc;font-size:13px;color:#536076;position:sticky;top:0}tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.badge.ok{background:#eaf8f2;color:var(--ok)}.badge.warn{background:#fff7df;color:var(--warn)}.badge.danger{background:#fff0ef;color:var(--danger)}.badge.critical{background:#fde4e4;color:var(--critical)}.badge.exceeded{background:var(--exceeded);color:#fff}.badge.muted{background:#eef1f5;color:#607086}.flash{padding:12px 14px;border-radius:11px;margin-bottom:14px;background:#eaf8f2;color:var(--ok);border:1px solid #cdeede}.flash.danger{background:#fff0ef;color:var(--danger);border-color:#ffd5d1}.flash.warn{background:#fff7df;color:var(--warn);border-color:#f2e2b0}.empty{padding:28px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #ccd4df;border-radius:13px}.muted{color:var(--muted)}.small-text{font-size:12px;color:var(--muted)}.check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.student-check{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff}.student-check input{width:20px;height:20px;accent-color:var(--danger)}.student-check.absent{background:#fff5f4;border-color:#efbbb7}.search-groups{display:grid;gap:16px}.result-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}.result-card strong{display:block;margin-bottom:4px}.auth-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#102d35,#1d5f6d);padding:20px}.auth-card{width:min(440px,100%);background:#fff;border-radius:20px;padding:28px;box-shadow:0 30px 70px #0004;text-align:center}.auth-mark{width:68px;height:68px;margin:0 auto 12px;background:#eaf4f6;color:var(--brand);border-radius:18px;display:grid;place-items:center}.auth-mark .ico{width:36px;height:36px}.auth-card h1{margin:4px 0}.auth-card p{color:var(--muted);margin-top:4px}.auth-card .form-grid{text-align:right}.muted-link{display:inline-block;margin-top:14px;color:var(--muted);font-size:13px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.tab{padding:8px 12px;background:#eef3f7;border-radius:9px;color:#526077}.tab.active{background:var(--brand);color:#fff}.kpi-row{display:flex;gap:8px;flex-wrap:wrap}.kpi{padding:8px 10px;border-radius:9px;background:#f3f6fa;color:#4d586d}.danger-text{color:var(--danger);font-weight:700}.critical-text{color:var(--critical);font-weight:800}@media print{.sidebar,.topbar,.toolbar,.no-print{display:none!important}.app-shell{display:block}.content{padding:0}.card{box-shadow:none;border:0}.table-wrap{overflow:visible;border:0}table{min-width:0}body{background:#fff}}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr 1fr}.check-list{grid-template-columns:1fr}}
@media(max-width:820px){.app-shell{display:block}.sidebar{position:fixed;z-index:50;right:-300px;width:280px;transition:.2s}.menu-open .sidebar{right:0}.menu-btn{display:block}.topbar{padding:0 12px}.content{padding:14px}.year-pill{display:none}.form-grid,.form-grid.three,.grid-2,.grid-3{grid-template-columns:1fr}.span-2{grid-column:auto}.stats{grid-template-columns:1fr 1fr}.global-search{max-width:none}.page-head h1{font-size:22px}}
@media(max-width:520px){.stats{grid-template-columns:1fr}.auth-card{padding:20px}.check-list{grid-template-columns:1fr}}
.action-link{color:var(--brand);border-color:var(--line);background:#fff}.student-profile{display:flex;align-items:center;justify-content:space-between;gap:16px}.filter-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px}.filter-panels fieldset{border:1px solid var(--line);border-radius:12px;padding:12px}.filter-panels legend{font-weight:700;padding:0 6px}.check-inline{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.filter-check{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.primary-check{background:#eef7f8;border-color:#cfe5e9}.filter-check input{width:17px;height:17px}
@media(max-width:820px){.filter-panels{grid-template-columns:1fr}.student-profile{align-items:flex-start;flex-direction:column}}


/* CENTRAL_V2 */
.central-body{
  background:#f5f7fb;
  min-height:100vh;
}
.central-content{
  max-width:1440px;
  margin:0 auto;
  padding:28px;
}
.central-body .page-head{
  background:#fff;
  border:1px solid #e6eaf0;
  border-radius:18px;
  padding:18px 20px;
  margin-bottom:20px;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}
.central-hero{
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);
  border:1px solid #e4eaf2;
  border-radius:22px;
  padding:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
  box-shadow:0 8px 30px rgba(15,23,42,.045);
}
.central-hero h2{
  margin:4px 0 6px;
  font-size:1.55rem;
}
.central-hero p{
  margin:0;
  color:#64748b;
}
.central-eyebrow{
  display:block;
  direction:ltr;
  text-align:right;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.08em;
  color:#0f7890;
}
.central-hero-actions,
.central-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.central-actions form{
  margin:0;
}
.central-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.central-kpi{
  background:#fff;
  border:1px solid #e5e9f0;
  border-radius:18px;
  padding:18px;
  box-shadow:0 4px 16px rgba(15,23,42,.035);
}
.central-kpi span{
  display:block;
  color:#64748b;
  font-size:.82rem;
  margin-bottom:8px;
}
.central-kpi strong{
  display:block;
  font-size:1.65rem;
  color:#0f172a;
}
.central-kpi.ok{border-bottom:3px solid #16a34a}
.central-kpi.warn{border-bottom:3px solid #f59e0b}
.central-kpi.danger{border-bottom:3px solid #dc2626}

.central-filter-card{
  padding:14px;
}
.central-filter{
  display:grid;
  grid-template-columns:minmax(240px,1fr) 190px auto auto;
  gap:10px;
  align-items:end;
}
.central-filter input,
.central-filter select{
  width:100%;
}
.central-add-card{
  margin:16px 0;
}
.central-add-card > summary,
.central-manage > summary{
  cursor:pointer;
  user-select:none;
}
.central-list-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:22px 2px 12px;
}
.central-list-head h2{
  margin:0 0 2px;
}
.central-university-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.central-uni-card{
  background:#fff;
  border:1px solid #e3e8ef;
  border-radius:20px;
  padding:18px;
  box-shadow:0 6px 22px rgba(15,23,42,.04);
}
.central-uni-card:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 28px rgba(15,23,42,.065);
}
.central-uni-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.central-uni-head h3{
  margin:0 0 7px;
  font-size:1.08rem;
}
.central-code-line{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  color:#64748b;
  font-size:.78rem;
  direction:ltr;
}
.central-code-line code{
  background:#f1f5f9;
  border-radius:7px;
  padding:3px 7px;
}
.central-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
}
.central-status.active{
  background:#ecfdf3;
  color:#15803d;
}
.central-status.expired{
  background:#fff7ed;
  color:#c2410c;
}
.central-status.suspended{
  background:#fef2f2;
  color:#b91c1c;
}
.central-mini-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:16px 0;
}
.central-mini-stats > div{
  background:#f8fafc;
  border-radius:12px;
  padding:10px;
  text-align:center;
}
.central-mini-stats strong{
  display:block;
  font-size:1rem;
}
.central-mini-stats span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:.72rem;
}
.central-expiry{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border-top:1px solid #eef2f6;
  border-bottom:1px solid #eef2f6;
  padding:11px 0;
  font-size:.8rem;
}
.central-expiry span{
  color:#64748b;
}
.central-link-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:7px;
  margin:13px 0;
}
.central-link-box input{
  width:100%;
  direction:ltr;
  text-align:left;
  font-size:.78rem;
  background:#f8fafc;
}
.central-actions{
  padding-top:2px;
}
.central-manage{
  margin-top:14px;
  border-top:1px solid #eef2f6;
  padding-top:12px;
}
.central-manage > summary{
  color:#334155;
  font-weight:700;
  font-size:.86rem;
}
.central-edit-form{
  margin-top:14px;
}
.central-save-cell{
  display:flex;
  align-items:end;
}

@media (max-width:1000px){
  .central-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .central-university-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:720px){
  .central-content{
    padding:12px;
  }
  .central-hero{
    align-items:flex-start;
    flex-direction:column;
    padding:18px;
  }
  .central-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .central-filter{
    grid-template-columns:1fr;
  }
  .central-link-box{
    grid-template-columns:1fr 1fr;
  }
  .central-link-box input{
    grid-column:1/-1;
  }
  .central-expiry{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
}

.pin-input{position:absolute;opacity:0;pointer-events:none}.pin-dots{display:flex;direction:ltr;justify-content:center;gap:14px;margin:22px}.pin-dots i{width:17px;height:17px;border:2px solid #9aa3af;border-radius:50%}.pin-dots i.filled{background:#102d35}.pin-keypad{display:grid;direction:ltr;grid-template-columns:repeat(3,1fr);gap:10px}.pin-keypad button{min-height:58px;border:1px solid #d9dfe8;border-radius:14px;background:#f7f9fc;font-size:20px;font-weight:800}


/* REPORT_BUILDER_V2 */
.report-builder-head,.report-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.report-preset-tabs{display:flex;gap:8px;flex-wrap:wrap}.report-switches{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.report-advanced{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcfe}.report-advanced summary{cursor:pointer}.report-advanced-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-top:12px}.report-advanced fieldset{border:1px solid var(--line);border-radius:12px;padding:12px}.report-advanced legend{font-weight:700;padding:0 6px}.report-student-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:320px;overflow:auto;margin-top:10px;padding-left:4px}.report-student-option{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}.report-student-option input{width:18px;height:18px;flex:0 0 auto}.report-student-option span{min-width:0}.report-student-option strong,.report-student-option small{display:block}.report-student-option small{color:var(--muted);margin-top:2px}.report-student-option[hidden]{display:none!important}.report-custom-muted{opacity:.58}.report-actions{margin-top:14px}.absence-detail-list{display:grid;gap:4px;min-width:230px;font-size:12px}.absence-detail-list div{padding:4px 0;border-bottom:1px dashed #e1e6ed}.absence-detail-list div:last-child{border-bottom:0}.toolbar.compact{margin:8px 0}.report-print-page{background:#e9edf2!important;direction:rtl}.report-print-actions{max-width:1200px;margin:14px auto;display:flex;gap:8px;justify-content:flex-start;padding:0 12px}.report-sheet{background:#fff;margin:0 auto;min-height:297mm;padding:12mm 10mm 16mm;box-shadow:0 4px 24px rgba(0,0,0,.08)}.report-sheet.report-landscape{width:297mm;min-height:210mm}.report-sheet.report-portrait{width:210mm;min-height:297mm}.report-print-header{display:flex;justify-content:space-between;gap:16px;border-bottom:2px solid #1d5f6d;padding-bottom:8px;margin-bottom:10px}.report-print-header>div>strong,.report-print-header>div>span{display:block}.report-print-header>div>strong{font-size:17px}.report-print-header>div>span,.report-print-meta span{font-size:11px;color:#596579}.report-print-meta{text-align:left;display:grid;gap:3px}.report-sheet h1{font-size:18px;margin:8px 0}.report-print-summary{font-size:11px;color:#596579;margin:0 0 8px}.report-sheet .table-wrap{overflow:visible;border:1px solid #cfd6df;border-radius:0}.report-sheet table{min-width:0;table-layout:auto}.report-sheet th,.report-sheet td{padding:6px 7px;font-size:10.5px;vertical-align:top;overflow-wrap:anywhere}.report-sheet th{position:static;background:#eef3f6;color:#263445}.report-sheet thead{display:table-header-group}.report-sheet tr{break-inside:avoid;page-break-inside:avoid}.report-sheet .badge{padding:3px 6px;font-size:10px;white-space:nowrap}.report-sheet .absence-detail-list{min-width:180px;font-size:9.5px}
@media(max-width:820px){.report-builder-head,.report-result-head{flex-direction:column}.report-advanced-grid{grid-template-columns:1fr}.report-student-list{grid-template-columns:1fr}.report-preset-tabs{width:100%}.report-preset-tabs .btn{flex:1}.report-print-page{overflow:auto}.report-print-actions{position:sticky;top:0;z-index:10;background:#fff;padding:10px;margin:0}.report-sheet{transform-origin:top right}}
@media print{@page{margin:0}.report-print-page{background:#fff!important}.report-print-actions{display:none!important}.report-sheet{width:auto!important;min-height:0!important;margin:0!important;padding:10mm 9mm 12mm!important;box-shadow:none!important}.report-sheet .table-wrap{overflow:visible!important}.report-sheet table{min-width:0!important}.report-sheet thead{display:table-header-group}.report-sheet tr{break-inside:avoid;page-break-inside:avoid}.report-sheet th{position:static!important}.report-sheet a{text-decoration:none;color:inherit}}

/* REPORT_UI_CLEAN_V3 */
.report-builder{
  padding:18px;
}

.report-builder-head{
  padding-bottom:15px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}

.report-builder-head h2{
  margin-top:0;
  margin-bottom:5px;
}

.report-preset-tabs{
  background:#f4f7f9;
  border:1px solid var(--line);
  border-radius:12px;
  padding:6px;
}

.report-preset-tabs .btn{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.report-builder form>.form-grid.three{
  background:#f8fafb;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  gap:12px;
}

.report-builder .filter-panels{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.report-builder .filter-panels fieldset{
  margin:0;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.report-builder .filter-panels legend{
  padding:0 7px;
  font-weight:800;
}

.report-advanced{
  margin-top:12px;
  background:#f8fafb;
}

.report-advanced summary{
  padding:3px 0;
  font-weight:700;
}

.report-actions{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px!important;
  align-items:stretch;
  padding-top:15px;
  margin-top:15px!important;
  border-top:1px solid var(--line);
}

.report-actions .btn{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.report-actions .small-text{
  grid-column:1/-1;
  padding:10px 12px;
  border-radius:10px;
  background:#fff8e5;
  border:1px solid #ead8a1;
}

.report-result{
  margin-top:14px;
}

@media(max-width:820px){
  .report-builder{
    padding:13px;
  }

  .report-builder-head{
    gap:10px;
  }

  .report-builder-head .small-text{
    line-height:1.7;
  }

  .report-preset-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:6px;
  }

  .report-preset-tabs .btn{
    width:100%;
    min-width:0;
  }

  .report-builder form>.form-grid.three{
    display:grid;
    grid-template-columns:1fr!important;
    padding:11px;
  }

  .report-builder .filter-panels{
    grid-template-columns:1fr;
  }

  .report-switches{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .report-advanced{
    padding:10px;
  }

  .report-actions{
    grid-template-columns:1fr 1fr;
  }

  .report-actions .btn:first-child{
    grid-column:1/-1;
  }

  .report-result{
    padding:12px;
    overflow:hidden;
  }

  .report-result .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}
/* REPORT_UI_CLEAN_V3_END */


/* OFFICIAL_REPORTS_UI_V2 */

.official-reports-page{
  max-width:1120px;
  margin-inline:auto;
  display:grid;
  gap:18px;
}

.official-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:26px 28px;
  border-radius:22px;
  color:#fff;
  background:
    linear-gradient(135deg,#123f49 0%,#176170 58%,#237789 100%);
  box-shadow:0 14px 34px rgba(18,63,73,.16);
}

.official-hero::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  left:-70px;
  bottom:-120px;
  border-radius:50%;
  background:rgba(255,255,255,.07);
}

.official-hero-copy,
.official-hero-year{
  position:relative;
  z-index:1;
}

.official-kicker{
  display:inline-block;
  margin-bottom:6px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.03em;
  opacity:.82;
}

.official-hero h2{
  margin:0 0 7px;
  color:#fff;
  font-size:1.7rem;
}

.official-hero p{
  max-width:650px;
  margin:0;
  line-height:1.8;
  color:rgba(255,255,255,.86);
}

.official-hero-year{
  min-width:175px;
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(4px);
}

.official-hero-year span,
.official-hero-year strong{
  display:block;
}

.official-hero-year span{
  margin-bottom:3px;
  font-size:.78rem;
  opacity:.78;
}

.official-hero-year strong{
  font-size:1.02rem;
}

.official-report-form{
  display:grid;
  gap:16px;
}

.official-section{
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 20px rgba(24,50,56,.045);
}

.official-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.official-section-eyebrow{
  display:block;
  margin-bottom:4px;
  color:#247082;
  font-size:.78rem;
  font-weight:800;
}

.official-section-heading h3{
  margin:0;
  font-size:1.08rem;
}

.official-section-hint{
  max-width:420px;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.6;
}

.official-flow-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.official-field{
  display:grid;
  align-content:start;
  gap:8px;
  min-width:0;
}

.official-field-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}

.official-field-title b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:8px;
  background:#eaf4f6;
  color:#176170;
  font-size:.78rem;
}

.official-field select,
.official-field input[type="date"]{
  width:100%;
  min-height:48px;
  border:1px solid #d7e0e3;
  border-radius:12px;
  background:#fbfcfc;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.official-field select:focus,
.official-field input[type="date"]:focus{
  outline:none;
  border-color:#438c9b;
  background:#fff;
  box-shadow:0 0 0 3px rgba(67,140,155,.12);
}

.official-field select:disabled{
  color:#8a9699;
  background:#f3f5f5;
  cursor:not-allowed;
}

.official-field small{
  color:var(--muted);
  font-size:.77rem;
}

.official-period-section{
  background:
    linear-gradient(180deg,#fff 0%,#fbfdfd 100%);
}

.official-date-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);
  align-items:end;
  gap:10px;
  max-width:720px;
}

.official-date-label{
  font-weight:800;
}

.official-date-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  height:48px;
  color:#5c747a;
  font-size:1.25rem;
  font-weight:800;
}

.official-period-note{
  margin:14px 0 0;
  padding:11px 13px;
  border-radius:11px;
  background:#f4f8f9;
  color:#52666b;
  font-size:.83rem;
  line-height:1.75;
}

.official-level-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.official-level{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #dce4e6;
  border-radius:12px;
  background:#fbfcfc;
  cursor:pointer;
  font-weight:700;
  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.official-level:hover{
  border-color:#a9c5cb;
  background:#f7fbfb;
  transform:translateY(-1px);
}

.official-level input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.official-level-check{
  position:relative;
  width:20px;
  height:20px;
  flex:0 0 20px;
  border:1.5px solid #9aabad;
  border-radius:6px;
  background:#fff;
}

.official-level input:checked + .official-level-check{
  border-color:#176170;
  background:#176170;
}

.official-level input:checked + .official-level-check::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
}

.official-level:has(input:checked){
  border-color:#a9cdd4;
  background:#f2f9fa;
}

.official-export-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 22px;
  border:1px solid #d8e3e5;
  border-radius:18px;
  background:#f8fbfb;
}

.official-export-copy{
  display:grid;
  gap:4px;
}

.official-export-copy strong{
  font-size:1rem;
}

.official-export-copy span{
  max-width:480px;
  color:var(--muted);
  font-size:.83rem;
  line-height:1.6;
}

.official-export-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  min-width:430px;
}

.official-export-actions .btn{
  min-height:54px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  border-radius:12px;
}

.official-export-actions .btn span{
  font-weight:800;
}

.official-export-actions .btn small{
  font-size:.72rem;
  opacity:.72;
}

@media(max-width:900px){

  .official-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .official-hero-year{
    min-width:0;
  }

  .official-flow-grid{
    grid-template-columns:1fr 1fr;
  }

  .official-flow-grid .official-field:last-child{
    grid-column:1/-1;
  }

  .official-level-grid{
    grid-template-columns:1fr 1fr;
  }

  .official-export-panel{
    align-items:stretch;
    flex-direction:column;
  }

  .official-export-actions{
    width:100%;
    min-width:0;
  }
}

@media(max-width:620px){

  .official-reports-page{
    gap:12px;
  }

  .official-hero{
    padding:20px 18px;
    border-radius:16px;
  }

  .official-hero h2{
    font-size:1.4rem;
  }

  .official-section{
    padding:16px;
    border-radius:15px;
  }

  .official-section-heading{
    flex-direction:column;
    gap:7px;
  }

  .official-flow-grid{
    grid-template-columns:1fr;
  }

  .official-flow-grid .official-field:last-child{
    grid-column:auto;
  }

  .official-date-grid{
    grid-template-columns:1fr;
  }

  .official-date-arrow{
    display:none;
  }

  .official-level-grid{
    grid-template-columns:1fr 1fr;
  }

  .official-export-actions{
    grid-template-columns:1fr;
  }
}

@media(max-width:390px){
  .official-level-grid{
    grid-template-columns:1fr;
  }
}

/* OFFICIAL_REPORTS_UI_V2_END */

[data-student-attendance] [hidden]{display:none!important}
[data-student-attendance] .check-list{max-height:320px;overflow:auto;margin:10px 0 16px}
[data-student-attendance] [data-attendance-subject]{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:10px}
[data-student-attendance] input[type=checkbox]{width:18px;height:18px;flex:0 0 auto}
