:root{--hm-navy:#101a36;--hm-pink:#d91868;--hm-border:#e4e9f2;--hm-muted:#64748b}
body{background:#f5f7fc!important;color:#17233d;font-size:16px;line-height:1.55}
button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #ec4899;outline-offset:3px}
button:disabled{opacity:.6;cursor:wait}input,select,textarea{min-height:44px;font-size:16px!important}
.text-xs,.text-\[11px\],.text-\[10px\]{font-size:.875rem!important;line-height:1.5!important}
.text-\[9px\]{font-size:.75rem!important}
#sidebarNav{background:var(--hm-navy)!important;width:250px}
#sidebarMenu button{border-radius:12px;min-height:48px;font-size:14px;color:#bdc8df}
#sidebarMenu button.bg-blue-700,#hmBottomNav .active{background:var(--hm-pink)!important;color:white!important}
#sidebarNav .text-blue-400{color:white!important}
#appScreen main>header{background:#fff!important;box-shadow:none;min-height:72px}
#appScreen main>div{scroll-padding-top:20px}
#appScreen [class*="rounded-[2rem]"],#appScreen [class*="rounded-[1.75rem]"]{border-radius:18px}
#appScreen .shadow-xl{box-shadow:0 5px 18px #16284b12}
#appScreen table{font-size:14px;line-height:1.6}
#appScreen th{background:#f3f6fb;color:#53617b;letter-spacing:0;text-transform:none}
#appScreen td{border-bottom:1px solid #edf0f5}
#appScreen button.bg-blue-700,#appScreen button.bg-emerald-600,#btnLogin,#btnParentLookup,#btnSubmitBulkPay,#viewDiemDanh>button{background:var(--hm-pink)!important;background-image:none!important;color:#fff}
#viewDashboard>div:first-child{background:linear-gradient(120deg,#123875,#28276b)!important;border-radius:20px!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(1){background:linear-gradient(120deg,#168df4,#2563eb)}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(2){background:linear-gradient(120deg,#08b887,#08786f)}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(3){background:linear-gradient(120deg,#f42c87,#c31960)}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(4){background:linear-gradient(120deg,#6653f5,#343698)}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(5){background:linear-gradient(120deg,#ed990a,#c3610b)}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(6){background:linear-gradient(120deg,#a43ef4,#7325b4)}
#loginScreen{background:#f5f7fc!important;align-items:flex-start;padding:48px 20px}
#loginScreen>.absolute{display:none}
#loginScreen>.glass-card{max-width:1060px;border-radius:24px;box-shadow:0 12px 50px #14264b12;padding:32px}
#loginScreen>.glass-card>div:first-child{background:var(--hm-navy);color:white;border-radius:18px;padding:24px;margin-bottom:24px}
#loginScreen h1{color:white!important}#loginScreen>.glass-card>div:first-child>div{width:72px;height:72px}
#parentAuthBlock{max-width:100%;}#parentResultBlock{max-height:none;overflow:visible;padding-top:24px}
#parentStudentInfo{background:var(--hm-navy)!important}
.hm-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}
.hm-shortcuts button{padding:18px 12px;border-radius:14px;background:#e5f1ff;color:#1454a2;text-align:left;font-weight:700;min-height:72px}
.hm-shortcuts button:nth-child(2){background:#def6ed;color:#086348}.hm-shortcuts button:nth-child(3){background:#fff0d9;color:#94540a}.hm-shortcuts button:nth-child(4){background:#f0e5ff;color:#7038a8}
.hm-shortcuts i{display:block;font-size:22px;margin-bottom:8px}
.hm-footer{text-align:center;border-top:1px solid var(--hm-border);padding:26px 12px 8px;margin-top:24px;color:var(--hm-muted);font-size:14px}.hm-footer-title{font-size:16px;font-weight:800;color:#174a86;margin-bottom:4px}.hm-footer-note{margin-bottom:14px}.hm-footer-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.hm-footer-actions a{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border-radius:11px;background:#197ddb;color:#fff;font-weight:800;text-decoration:none;box-shadow:0 7px 16px #197ddb22}.hm-footer-actions a:nth-child(2){background:#1683c8}.hm-footer-address{display:inline-flex;align-items:center;gap:7px;color:#475569;font-weight:700;text-decoration:none;line-height:1.5}.hm-footer-address:hover{color:#197ddb}
.hm-portal-links{display:flex;justify-content:center;gap:20px;margin:16px 0;color:var(--hm-pink);font-weight:700}
.hm-card{background:#fff;border:1px solid var(--hm-border);border-radius:16px;padding:24px;margin-bottom:20px}
.hm-card h3{font-size:20px;font-weight:800;margin-bottom:16px}.hm-card label{display:block;margin:12px 0 6px;font-weight:600}.hm-card select,.hm-card textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px}
.hm-primary{display:block;background:var(--hm-pink);color:white;font-weight:700;border-radius:12px;padding:13px 22px;margin-top:16px;width:100%}
.hm-status{border-radius:99px;background:#fff0cd;color:#874c00;padding:6px 12px;display:inline-block;margin-bottom:12px;font-size:14px}
.hm-attendance-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;transition:border-color .2s,box-shadow .2s,transform .2s}
.hm-attendance-row:hover{border-color:#bfdbfe;box-shadow:0 8px 22px #183d7010;transform:translateY(-1px)}
.hm-student-identity{display:flex;align-items:center;gap:12px;min-width:0}.hm-student-identity strong{display:block;color:#14213d;font-size:15px}.hm-student-number{width:34px;height:34px;border-radius:11px;background:#eef4ff;color:#2466c8;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}
.att-select{min-width:178px!important;border-radius:12px!important;border:2px solid #b7c3d4!important;padding:9px 38px 9px 13px!important;font-size:14px!important;font-weight:800!important;box-shadow:0 2px 8px #172b4d0a;cursor:pointer}
.att-select[data-status="Có mặt"]{color:#066b42!important;background-color:#d9f9e8!important;border-color:#22b573!important;box-shadow:0 0 0 4px #21b57318}
.att-select[data-status="Nghỉ phép"]{color:#8a5200!important;background-color:#fff4ce!important;border-color:#eeb52c!important}.att-select[data-status="Nghỉ không phép"]{color:#a5133d!important;background-color:#ffe3ec!important;border-color:#ef5c87!important}.att-select[data-status="Đi trễ"]{color:#9a4500!important;background-color:#ffead7!important;border-color:#f58b36!important}
.hm-empty-state{padding:32px;text-align:center;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;background:#f8fafc}
#hmBottomNav{display:none}.hm-bulk-row{display:grid;grid-template-columns:1fr 150px;gap:12px;padding:12px 0;border-bottom:1px solid var(--hm-border)}
.hm-bulk-row input{width:100%;border:1px solid #cbd5e1;padding:8px;border-radius:8px}.hm-bulk-row small{display:block;color:#64748b}
#bulkPayModal>div{max-height:90dvh;overflow:auto;max-width:650px}
body[data-portal="parent"] #tabAdminAuth{display:none}body[data-portal="parent"] #tabParentAuth{background:var(--hm-pink)!important}
body:not([data-portal="parent"]) #tabParentAuth{display:none}body:not([data-portal="parent"]) #loginScreen>.glass-card{max-width:540px}
#hmPublicHeader{height:86px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100% - 1240px)/2));border-bottom:1px solid #e5eaf3;position:relative;z-index:2}
.hm-public-brand{display:flex;align-items:center;gap:14px;color:#113e7c;text-decoration:none;min-width:0}.hm-public-brand b{font-size:20px;display:block;line-height:1.15;letter-spacing:-.02em}.hm-public-brand small{font-size:12px;display:block;margin-top:4px;color:#214d86}.hm-public-logo{width:64px;height:64px;object-fit:contain;border-radius:50%;flex:none;filter:drop-shadow(0 3px 8px #113e7c18)}
#hmPublicHeader nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700;color:#173e78}#hmPublicHeader nav a{text-decoration:none}#hmPublicHeader nav a:last-child{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(135deg,#2788df,#1474ce);color:#fff;border-radius:14px;padding:13px 18px;box-shadow:0 8px 18px #1474ce26}
#hmParentHero{min-height:238px;padding:42px max(32px,calc((100% - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#e9f6ff,#dceeff 60%,#f8fbff);color:#113b74;overflow:hidden}
#hmParentHero>div:first-child{max-width:760px}#hmParentHero h1{font-size:40px;font-weight:900;line-height:1.12;margin:8px 0 12px;text-transform:uppercase}#hmParentHero p{font-size:17px;color:#37577c}.hm-eyebrow{font-size:13px;font-weight:900;color:#e02373;letter-spacing:.12em}.hm-trust{display:flex;gap:28px;margin-top:22px;font-size:14px;font-weight:700}.hm-trust i{color:#e02373;margin-right:7px}.hm-hero-mark{font-size:170px;color:#ffd038;opacity:.82;transform:rotate(-8deg);line-height:.8;margin-right:7vw}
body[data-portal="parent"] #loginScreen{min-height:0;padding:0 24px 48px;margin-top:-24px;background:transparent!important;overflow:visible}
body[data-portal="parent"] #loginScreen>.glass-card{max-width:1240px;padding:28px;border-radius:20px;box-shadow:0 12px 35px #173d7217;border:1px solid #dde7f3}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child{background:#fff;color:#123b73;padding:0 0 20px;border-radius:0;border-bottom:1px solid #e4ebf5;text-align:left;display:grid;grid-template-columns:64px 1fr;align-items:center}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child>div{grid-row:1/3;width:52px;height:52px;margin:0;background:#1677d2;border:0;padding:7px}body[data-portal="parent"] #loginScreen>.glass-card>div:first-child h1{color:#123b73!important;font-size:24px}body[data-portal="parent"] #loginScreen>.glass-card>div:first-child p{grid-column:2;margin:0;color:#64748b!important;text-transform:none!important;letter-spacing:0!important}
body[data-portal="parent"] #loginScreen>.glass-card>.flex.bg-slate-100{display:none}body[data-portal="parent"] #btnParentLookup{background:#197ddb!important}
body[data-portal="parent"] #parentAuthBlock{background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:2px 0 0!important}
body[data-portal="parent"] #parentAuthBlock label{color:#173e78!important;font-size:14px!important}body[data-portal="parent"] #parentAuthBlock input{height:50px;border:1px solid #ccd9ea!important;border-radius:10px!important;box-shadow:0 2px 7px #173d7208!important;font-weight:600!important}
body[data-portal="parent"] #parentAuthBlock input:focus{border-color:#2182df!important;box-shadow:0 0 0 4px #2182df16!important}body[data-portal="parent"] #btnParentLookup{height:52px;border-radius:10px!important;font-size:15px!important;letter-spacing:.03em;box-shadow:0 8px 18px #197ddb2e!important}
body[data-portal="parent"] #parentResultBlock>div:not(#parentStudentInfo):not(#parentCoordinationBlock):not(#hmParentShortcuts){background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 5px 20px #173d7208}
body[data-portal="parent"] #parentStudentInfo{padding:20px!important;border-radius:16px!important;box-shadow:0 8px 24px #101a3622!important}body[data-portal="parent"] #parentResultBlock h4{font-size:15px!important;letter-spacing:0!important;text-transform:none!important}
body[data-portal="parent"] .hm-portal-links{margin-top:26px}body[data-portal="parent"] .hm-portal-links a:first-child{display:none}
@media(min-width:900px){body[data-portal="parent"] #parentAuthBlock{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}body[data-portal="parent"] #parentAuthBlock>div:not(#parentResultBlock){max-width:none;margin:0}body[data-portal="parent"] #parentAuthBlock>#btnParentLookup{grid-column:1/-1;max-width:none;margin:0;display:flex}body[data-portal="parent"] #parentLookupError,body[data-portal="parent"] #parentResultBlock{grid-column:1/-1}#parentResultBlock{display:grid;grid-template-columns:1fr 1fr;gap:20px}#parentResultBlock.hidden{display:none}#parentResultBlock>div:first-child,#parentStudentInfo,#hmParentShortcuts,#parentCoordinationBlock{grid-column:1/-1}}
@media(max-width:767px){
 #hmPublicHeader{height:74px;padding:0 12px}.hm-public-brand{gap:9px}.hm-public-logo{width:48px;height:48px}.hm-public-brand b{font-size:14px;white-space:nowrap}.hm-public-brand small{font-size:9px;margin-top:2px;white-space:nowrap}#hmPublicHeader nav{gap:0}#hmPublicHeader nav a:not(:last-child){display:none}#hmPublicHeader nav a:last-child{font-size:11px;padding:10px 11px;border-radius:11px;white-space:nowrap} #hmPublicHeader nav a:last-child i{display:none}.hm-footer-actions{display:grid;grid-template-columns:1fr 1fr}.hm-footer-actions a{justify-content:center;padding:11px 8px;font-size:12px}.hm-footer-address{font-size:12px}
 #hmParentHero{min-height:205px;padding:28px 18px 42px}#hmParentHero h1{font-size:27px}#hmParentHero p{font-size:14px}.hm-hero-mark{display:none}.hm-trust{gap:13px;font-size:12px;flex-wrap:wrap;margin-top:16px}
 body[data-portal="parent"] #loginScreen{margin-top:-22px;padding:0 10px 30px}body[data-portal="parent"] #loginScreen>.glass-card{padding:18px}
 #loginScreen{padding:12px}#loginScreen>.glass-card{padding:16px;border-radius:18px}#loginScreen>.glass-card>div:first-child{padding:20px 12px}
 #loginScreen h1{font-size:22px}#appScreen main{height:100dvh}#appScreen main>header{padding:10px 12px;min-height:68px;height:auto;gap:8px}
 #pageTitle{font-size:14px}#globalMonthSelect{padding:8px;font-size:14px!important}#appScreen main>div{padding:16px 12px 100px}
 #hmBottomNav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid var(--hm-border);padding:8px 6px max(8px,env(safe-area-inset-bottom));z-index:35;gap:4px}
 #hmBottomNav button{border-radius:10px;padding:8px 2px;font-size:12px;color:#566580;min-height:54px}#hmBottomNav i{display:block;font-size:20px;margin-bottom:4px}
 #appScreen.hidden #hmBottomNav{display:none}.hm-shortcuts{grid-template-columns:1fr 1fr;gap:10px}.hm-shortcuts button{padding:14px}
 #viewDiemDanh .att-select{min-width:150px!important;max-width:165px}.hm-attendance-row{gap:10px;padding:13px 12px}.hm-student-number{display:none}.hm-student-identity strong{font-size:14px}
 #viewHocPhi table,#viewHocPhi tbody,#viewHocPhi tr,#viewHocPhi td{display:block;width:100%}#viewHocPhi thead{display:none}
 #viewHocPhi tbody tr{margin:12px 0;border:1px solid var(--hm-border);border-radius:14px;padding:12px;background:#fff}
 #viewHocPhi tbody td{padding:6px 0;border:0;text-align:left;white-space:normal}#viewHocPhi td[data-label]::before{content:attr(data-label);color:#64748b;display:inline-block;min-width:100px;font-weight:500}
 #viewHocPhi table{min-width:0!important}.hm-card{padding:18px}.hm-bulk-row{grid-template-columns:1fr 120px}
 [id$="Modal"]{padding:12px!important}[id$="Modal"]>div{max-height:90dvh;overflow:auto}
}


/* ===== FIX 2026-09: logo header + footer parent ===== */
#hmPublicHeader{
  overflow:hidden;
}
#hmPublicHeader .hm-public-brand{
  flex:1 1 auto;
  max-width:720px;
  overflow:hidden;
}
#hmPublicHeader .hm-public-logo-box{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  overflow:hidden!important;
  border-radius:50%!important;
  flex:0 0 64px!important;
  background:#fffdf2;
  box-shadow:0 3px 12px rgba(17,62,124,.10);
}
#hmPublicHeader img.hm-public-logo{
  display:block!important;
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:50%!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
.hm-public-brand-text{display:block;min-width:0;overflow:hidden}

.hm-footer{
  position:relative;
  overflow:hidden;
  margin:28px 0 0!important;
  padding:26px 24px!important;
  border:0!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#0f4f9e 0%,#1679d3 52%,#0d63b9 100%)!important;
  box-shadow:0 16px 36px rgba(15,79,158,.20)!important;
  color:#fff!important;
  text-align:center;
}
.hm-footer:before{
  content:"";
  position:absolute;
  width:180px;height:180px;
  border-radius:50%;
  right:-70px;top:-95px;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}
.hm-footer:after{
  content:"";
  position:absolute;
  width:130px;height:130px;
  border-radius:50%;
  left:-55px;bottom:-80px;
  background:rgba(255,255,255,.07);
  pointer-events:none;
}
.hm-footer>*{position:relative;z-index:1}
.hm-footer-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 12px;
  margin-bottom:9px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
}
.hm-footer-title{
  color:#fff!important;
  font-size:18px!important;
  font-weight:900!important;
  margin-bottom:3px!important;
}
.hm-footer-note{
  color:rgba(255,255,255,.86)!important;
  font-size:13px!important;
  margin-bottom:18px!important;
}
.hm-footer-actions{
  display:flex!important;
  justify-content:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-bottom:14px!important;
}
.hm-footer-actions a{
  min-width:210px;
  min-height:58px;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:11px!important;
  padding:10px 16px!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#0f4f9e!important;
  text-decoration:none!important;
  box-shadow:0 8px 20px rgba(6,37,76,.18)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
.hm-footer-actions a:hover{transform:translateY(-2px);box-shadow:0 11px 24px rgba(6,37,76,.24)!important}
.hm-footer-actions a>i{
  width:34px;height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#e8f3ff;
  color:#1474ce;
  font-size:15px;
  flex:none;
}
.hm-footer-actions a span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2}
.hm-footer-actions a small{font-size:10px;color:#71839b;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.hm-footer-actions a strong{font-size:14px;color:#123f78;font-weight:900;margin-top:2px}
.hm-footer-address{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  max-width:100%;
  padding:9px 14px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.hm-footer-address:hover{background:rgba(255,255,255,.16)!important;color:#fff!important}

@media(max-width:767px){
  #hmPublicHeader .hm-public-logo-box{
    width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important;
  }
  #hmPublicHeader img.hm-public-logo{
    width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;
  }
  .hm-footer{padding:22px 14px!important;border-radius:18px!important}
  .hm-footer-title{font-size:16px!important}
  .hm-footer-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
  .hm-footer-actions a{min-width:0!important;min-height:54px!important;padding:9px 10px!important;gap:8px!important}
  .hm-footer-actions a>i{width:31px;height:31px;border-radius:9px}
  .hm-footer-actions a strong{font-size:12px!important}
  .hm-footer-actions a small{font-size:9px!important}
  .hm-footer-address{width:100%;font-size:12px!important;line-height:1.45!important}
}
@media(max-width:390px){
  .hm-footer-actions{grid-template-columns:1fr!important}
}

/* ===== BLUE PORTAL 2026 - giao dien phu huynh theo mau tham chieu ===== */
:root{
  --hm-pink:#1976d2;
  --hm-primary:#1976d2;
  --hm-primary-dark:#0f4f9e;
  --hm-primary-soft:#eaf4ff;
  --hm-navy:#0e3f78;
  --hm-border:#dfe8f3;
  --hm-muted:#60728d;
}
body{background:#f4f9ff!important;color:#16355f}
button:focus-visible,a:focus-visible{outline-color:#4da3ee}
#sidebarMenu button.bg-blue-700,#hmBottomNav .active{background:linear-gradient(135deg,#2587df,#126fc9)!important}
#appScreen button.bg-blue-700,#appScreen button.bg-emerald-600,#btnLogin,#btnParentLookup,#btnSubmitBulkPay,#viewDiemDanh>button,.hm-primary{background:linear-gradient(135deg,#2587df,#1172cf)!important;background-image:linear-gradient(135deg,#2587df,#1172cf)!important}

/* Header */
#hmPublicHeader{
  height:88px!important;
  padding:0 max(36px,calc((100% - 1180px)/2))!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #dce7f4!important;
  box-shadow:0 2px 10px rgba(20,73,125,.04);
  position:sticky!important;top:0!important;z-index:50!important;
  overflow:visible!important;
}
#hmPublicHeader .hm-public-brand{gap:12px;max-width:520px!important}
#hmPublicHeader .hm-public-logo-box{
  width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;flex-basis:58px!important;
  box-shadow:none!important;border:1px solid #e4edf7;
}
#hmPublicHeader img.hm-public-logo{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important}
.hm-public-brand b{font-size:20px!important;color:#0d417c!important;font-weight:900!important;letter-spacing:-.02em!important}
.hm-public-brand small{font-size:11px!important;color:#315d91!important;font-weight:600!important}
#hmPublicHeader nav{display:flex!important;gap:8px!important;align-items:center!important}
#hmPublicHeader nav a{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  min-height:42px;padding:0 13px!important;border-radius:11px!important;
  color:#174c86!important;background:transparent!important;box-shadow:none!important;
  font-size:13px!important;font-weight:800!important;white-space:nowrap!important;
}
#hmPublicHeader nav a:hover{background:#edf6ff!important;color:#0d6fc8!important}
#hmPublicHeader nav a.hm-teacher-link{background:linear-gradient(135deg,#2487df,#1475cf)!important;color:#fff!important;padding:0 17px!important;box-shadow:0 8px 20px rgba(24,118,210,.18)!important}

/* Hero */
#hmParentHero{
  min-height:250px!important;
  padding:38px max(36px,calc((100% - 1180px)/2)) 58px!important;
  background:
    radial-gradient(circle at 10% 90%,rgba(75,170,223,.12) 0 4%,transparent 4.2%),
    radial-gradient(circle at 18% 86%,rgba(75,170,223,.09) 0 2.8%,transparent 3%),
    linear-gradient(120deg,#eaf7ff 0%,#dcedff 54%,#eef8ff 100%)!important;
  border-bottom:1px solid #d4e6f6;
  position:relative!important;
}
#hmParentHero:before{content:"";position:absolute;left:-45px;bottom:-45px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(49,143,202,.16);box-shadow:0 0 0 34px rgba(49,143,202,.05),0 0 0 68px rgba(49,143,202,.025)}
.hm-hero-copy{position:relative;z-index:2;max-width:720px}
#hmParentHero h1{font-size:38px!important;line-height:1.08!important;color:#0b427e!important;margin:8px 0 10px!important;letter-spacing:-.025em!important}
#hmParentHero p{font-size:16px!important;color:#2e5d8e!important;font-weight:600!important}
.hm-eyebrow{color:#1780d7!important;font-size:12px!important;letter-spacing:.13em!important}
.hm-trust{gap:26px!important;margin-top:20px!important;color:#1b4d82!important}
.hm-trust i{color:#0d6fcb!important;background:#fff!important;width:30px;height:30px;border-radius:10px;display:inline-grid;place-items:center;margin-right:7px!important;box-shadow:0 4px 12px rgba(15,92,163,.08)}
.hm-hero-illustration{width:330px;height:178px;position:relative;display:flex;align-items:center;justify-content:center;flex:none}
.hm-hero-circle{width:175px;height:175px;border-radius:50%;background:linear-gradient(145deg,#fff,#cfe9ff);box-shadow:0 18px 45px rgba(34,120,191,.18);display:grid;place-items:center;position:relative;color:#1976d2}
.hm-hero-circle i:first-child{font-size:70px}.hm-hero-circle i:last-child{font-size:36px;position:absolute;right:22px;bottom:29px;color:#0a4e90;background:#fff;border-radius:50%;padding:12px}
.hm-hero-quote{position:absolute;right:-12px;top:4px;font-size:13px;line-height:1.45;color:#194c82;font-style:italic;font-weight:700;text-align:right;border-bottom:3px solid #f1c516;padding:0 2px 8px 18px;transform:rotate(-2deg)}

/* Search card */
body[data-portal="parent"] #loginScreen{
  padding:0 24px 34px!important;margin-top:-50px!important;background:transparent!important;position:relative;z-index:5!important;
}
body[data-portal="parent"] #loginScreen>.glass-card{
  max-width:1120px!important;padding:0!important;border-radius:18px!important;border:1px solid #dbe6f2!important;
  box-shadow:0 18px 45px rgba(19,79,139,.13)!important;background:#fff!important;overflow:hidden;
}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child{
  display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:14px!important;
  padding:18px 28px 12px!important;margin:0!important;border:0!important;background:#fff!important;text-align:left!important;
}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child>div{width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important}
.hm-search-head-icon{width:50px!important;height:50px!important;min-width:50px!important;border-radius:50%!important;background:linear-gradient(145deg,#2a92e7,#0d6fc9)!important;color:#fff!important;display:grid!important;place-items:center!important;box-shadow:0 8px 18px rgba(26,124,210,.25)!important}
.hm-search-head-icon i{font-size:20px}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child h1{color:#0c427e!important;font-size:21px!important;font-weight:900!important;margin:0!important}
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child p{color:#5a7392!important;font-size:12px!important;font-weight:600!important;margin:2px 0 0!important}
body[data-portal="parent"] #parentAuthBlock{
  margin:0!important;padding:10px 28px 26px!important;border:0!important;background:#fff!important;box-shadow:none!important;border-radius:0!important;
}
body[data-portal="parent"] #parentAuthBlock label{color:#1f3854!important;font-size:12px!important;margin-bottom:6px!important;font-weight:800!important}
body[data-portal="parent"] #parentAuthBlock label i{color:#197bd5!important}
body[data-portal="parent"] #parentAuthBlock input{height:48px!important;border-radius:9px!important;border:1px solid #cddcec!important;background:#fbfdff!important;font-size:13px!important;padding:0 16px!important}
body[data-portal="parent"] #parentAuthBlock input+span{display:none!important}
body[data-portal="parent"] #btnParentLookup{height:50px!important;border-radius:9px!important;font-size:15px!important;margin-top:2px!important;background:linear-gradient(90deg,#2589e3,#1478d2)!important;box-shadow:0 10px 21px rgba(24,120,211,.18)!important}
body[data-portal="parent"] #parentLookupError{grid-column:1/-1!important;background:#fff0f3;padding:9px 12px;border-radius:9px;border:1px solid #ffd1dc}

/* Result dashboard */
body[data-portal="parent"] #parentResultBlock{
  grid-column:1/-1!important;padding:16px 0 0!important;margin-top:2px!important;border-top:1px solid #e9eef5!important;gap:16px!important;background:#f5faff!important;
}
body[data-portal="parent"] #parentResultBlock>*{scroll-margin-top:105px}
#hmParentMonthBar{margin:0 18px!important;padding:8px 12px!important;border-radius:10px!important;box-shadow:none!important;border:1px solid #dbe9f5!important;background:#fff!important}
#hmParentMonthBar span{font-size:12px!important}#hmParentMonthBar select{min-height:36px!important;font-size:12px!important;padding:4px 10px!important}
#parentStudentInfo{margin:0 18px!important;padding:0!important;border-radius:13px!important;background:#fff!important;color:#17365d!important;border:1px solid #d9e7f3!important;box-shadow:0 8px 24px rgba(13,76,133,.07)!important;overflow:hidden!important}
.hm-student-card-head{min-height:44px;padding:0 16px;background:linear-gradient(90deg,#edf9f5,#f4fcf8);border-bottom:1px solid #d7eee4;display:flex;align-items:center;justify-content:space-between;color:#126a56;font-size:12px;font-weight:900}
.hm-student-card-head i{width:23px;height:23px;border-radius:50%;background:#13a777;color:#fff;display:inline-grid;place-items:center;margin-right:7px;font-size:11px}.hm-student-card-head span{font-weight:600;color:#487268;font-size:11px}
.hm-student-card-body{display:grid;grid-template-columns:105px 1fr 260px;align-items:center;gap:18px;padding:18px 22px}
.hm-student-avatar{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d8efff,#b7ddff);border:6px solid #eff8ff;color:#0f6fc8;font-size:40px;box-shadow:0 4px 14px rgba(14,100,174,.1)}
.hm-student-copy h3{font-size:20px!important;margin:0 0 7px!important;color:#0a3e7a!important;font-weight:900!important}.hm-student-copy p{font-size:12px!important;margin:2px 0!important;color:#33577e!important}.hm-student-copy b{color:#102f54}
.hm-student-quote{justify-self:end;min-width:225px;min-height:78px;padding:15px 18px;background:linear-gradient(135deg,#f4f9ff,#eef7ff);border-radius:14px;color:#4a6e96;font-style:italic;display:flex;align-items:center;gap:12px;box-shadow:inset 0 0 0 1px #e6f0fa}.hm-student-quote i{font-size:30px;color:#c8e4ff}.hm-student-quote span{font-size:13px;line-height:1.6;font-weight:700}

/* 4 shortcut cards */
.hm-shortcuts{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important;margin:0 18px!important}
.hm-shortcut-card{min-height:155px!important;padding:16px!important;border-radius:12px!important;border:1px solid transparent!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;transition:.2s ease!important;box-shadow:none!important}
.hm-shortcut-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(23,78,128,.08)!important}.hm-shortcut-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;margin-bottom:8px;font-size:20px}.hm-shortcut-card strong{font-size:13px!important;color:#0d3f78!important}.hm-shortcut-card small{font-size:11px!important;line-height:1.45!important;color:#57708c!important;min-height:32px;margin-top:5px}.hm-shortcut-more{margin-top:auto;font-size:10px!important;font-weight:800!important;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.7)}
.hm-shortcut-card.tone-blue{background:linear-gradient(145deg,#eef8ff,#e6f3ff);border-color:#d6eaff!important}.tone-blue .hm-shortcut-icon{background:#d6ecff;color:#1679d3}.tone-blue .hm-shortcut-more{color:#1679d3}
.hm-shortcut-card.tone-green{background:linear-gradient(145deg,#f0fbf6,#e7f8ef);border-color:#d5f0e1!important}.tone-green .hm-shortcut-icon{background:#d6f4e5;color:#0d9a65}.tone-green .hm-shortcut-more{color:#0b8b5b}
.hm-shortcut-card.tone-gold{background:linear-gradient(145deg,#fffaf0,#fff4dc);border-color:#f9e9c4!important}.tone-gold .hm-shortcut-icon{background:#ffebbc;color:#e69300}.tone-gold .hm-shortcut-more{color:#d48200}
.hm-shortcut-card.tone-rose,.hm-shortcut-card.tone-red{background:linear-gradient(145deg,#fff5f7,#fff0f2);border-color:#f8dde2!important}.tone-rose .hm-shortcut-icon,.tone-red .hm-shortcut-icon{background:#ffe0e5;color:#ef4f67}.tone-rose .hm-shortcut-more,.tone-red .hm-shortcut-more{color:#df455d}

/* Panels */
body[data-portal="parent"] #parentResultBlock>div.hm-parent-panel,
body[data-portal="parent"] #parentCoordinationBlock{margin:0 18px!important;background:#fff!important;border:1px solid #dae6f1!important;border-radius:12px!important;padding:0!important;box-shadow:0 5px 18px rgba(16,74,125,.05)!important;overflow:hidden}
.hm-parent-panel>h4,#parentCoordinationBlock>h4{min-height:42px;margin:0!important;padding:0 14px!important;border-bottom:1px solid #e8eef5!important;background:#fbfdff!important;display:flex!important;align-items:center!important;font-size:12px!important;color:#103f77!important;font-weight:900!important;letter-spacing:.01em!important;text-transform:none!important}
.hm-parent-panel>h4:before{font-family:"Font Awesome 6 Free";font-weight:900;margin-right:9px;color:#1678d2}
#hmParentClassesPanel>h4:before{content:"\f02d"}#hmParentTuitionPanel>h4:before{content:"\f555"}#hmParentNoticePanel>h4:before{content:"\f0f3";color:#ef5266}
#parentClassesContainer,#parentTuitionInfo,#parentNotificationsContainer{padding:12px!important}
#hmParentClassesPanel{grid-column:1/-1!important}
#hmParentTuitionPanel{grid-column:1/2!important}
#hmParentNoticePanel{grid-column:2/3!important}
#parentCoordinationBlock{grid-column:1/-1!important;border-color:#f5d8aa!important;background:#fffdf8!important}
#parentCoordinationBlock>h4{background:#fff7e8!important;color:#96550b!important;border-color:#f8e0b9!important}.hm-attention-item{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid #f4e5cf}.hm-attention-item:last-child{border-bottom:0}.hm-attention-icon{width:36px;height:36px;border-radius:10px;background:#fff0d4;color:#e39715;display:grid;place-items:center}.hm-attention-item b{font-size:12px;color:#7a4b12}.hm-attention-item b span{color:#2c6aa5}.hm-attention-item p{font-size:11px;color:#755f43;margin:2px 0}.hm-attention-item>strong{font-size:11px;color:#c43e4f;background:#fff0f2;border:1px solid #ffd9df;padding:5px 8px;border-radius:8px}

/* Classes/attendance */
.hm-class-row{border:1px solid #e0eaf4;border-radius:11px;padding:12px;margin-bottom:9px;background:#fff}.hm-class-row:last-child{margin-bottom:0}.hm-class-main{display:flex;align-items:center;gap:10px}.hm-class-icon{width:38px;height:38px;border-radius:10px;background:#e7f3ff;color:#1575cf;display:grid;place-items:center}.hm-class-main b{display:block;color:#113f76;font-size:12px}.hm-class-main small{display:block;color:#6b7e94;font-size:10px;margin-top:2px}.hm-class-schedule{margin:8px 0;font-size:11px;color:#345e87;background:#f5f9fd;border-radius:8px;padding:7px 9px}.hm-class-schedule i{margin-right:6px;color:#1780d7}.hm-att-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hm-att-stats span{font-size:9px;text-align:center;background:#f7fafc;border-radius:8px;padding:6px;color:#61748a}.hm-att-stats b{display:block;font-size:13px;color:#167d5a}.hm-att-stats .danger b{color:#e05567}.hm-class-row details{margin-top:8px}.hm-class-row summary{cursor:pointer;font-size:10px;font-weight:800;color:#2b6fae}.hm-att-history{margin-top:6px;background:#f8fbfe;border-radius:8px;padding:4px 8px}.hm-att-history>div{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #e9f0f6;font-size:10px}.hm-att-history>div:last-child{border:0}.hm-att-history b.ok{color:#0a9464}.hm-att-history b.bad{color:#d84c61}

/* Fees */
.hm-fee-summary{border-radius:10px;padding:11px 12px;margin-bottom:10px;border:1px solid}.hm-fee-summary>div{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:900}.hm-fee-summary strong{display:block;font-size:16px;margin:3px 0}.hm-fee-summary small{display:block;font-size:9px;line-height:1.5;opacity:.8}.hm-fee-summary.clear{background:#effaf5;color:#087650;border-color:#d5efe2}.hm-fee-summary.has-debt{background:#fff3f5;color:#b63b51;border-color:#f7d8de}.hm-fee-table-wrap{overflow:auto}.hm-fee-table{width:100%;border-collapse:collapse;font-size:10px!important;min-width:560px}.hm-fee-table th{padding:8px!important;background:#f3f8fd!important;color:#355d84!important;text-align:left!important;font-size:10px!important}.hm-fee-table td{padding:8px!important;border-bottom:1px solid #edf2f7!important;color:#294c70!important}.hm-fee-status{display:inline-flex;padding:4px 7px;border-radius:7px;font-size:9px;font-weight:900;white-space:nowrap}.hm-fee-status.paid{background:#e4f7ee;color:#0a8d5f}.hm-fee-status.debt{background:#ffe5e9;color:#d6455b}.hm-fee-status.waiting{background:#fff3d8;color:#a66b00}.hm-pay-link{display:inline-flex;padding:4px 7px;border-radius:7px;background:#e6f2ff;color:#1676d1!important;font-weight:900;text-decoration:none}

/* Notices */
.hm-notice-row{display:grid;grid-template-columns:32px 1fr 10px;gap:8px;align-items:start;padding:10px 3px;border-bottom:1px solid #edf2f6}.hm-notice-row:last-child{border-bottom:0}.hm-notice-dot{width:8px;height:8px;border-radius:50%;background:#2a8be1;color:transparent;display:block;margin:7px auto 0}.hm-notice-dot.hot{width:30px;height:18px;border-radius:5px;background:#ef5266;color:#fff;font-size:8px;font-weight:900;display:grid;place-items:center;margin:1px 0 0}.hm-notice-row b{display:block;color:#194774;font-size:11px}.hm-notice-row small{display:block;color:#8291a1;font-size:9px;margin:2px 0}.hm-notice-row p{font-size:10px;line-height:1.45;color:#60748a;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hm-notice-row>i{color:#2f7cc2;font-size:9px;margin-top:8px}

/* Compact footer */
body[data-portal="parent"] .hm-footer{
  width:100%!important;margin:0!important;padding:18px max(24px,calc((100% - 1180px)/2)) 8px!important;border-radius:0!important;border-top:1px solid #d6e7f5!important;background:linear-gradient(110deg,#edf8ff,#e3f2ff)!important;box-shadow:none!important;color:#194d82!important;text-align:left!important;
}
body[data-portal="parent"] .hm-footer:before,body[data-portal="parent"] .hm-footer:after{display:none!important}
.hm-footer-main{display:grid;grid-template-columns:1.1fr 1.6fr 1fr;gap:24px;align-items:center}.hm-footer-brand{display:flex;align-items:center;gap:10px}.hm-footer-brand img{width:54px;height:54px;object-fit:contain;border-radius:50%;background:#fff;border:1px solid #d6e5f2}.hm-footer-brand b{display:block;color:#0d427d;font-size:15px}.hm-footer-brand small{display:block;color:#53749a;font-size:9px;margin-top:2px}.hm-footer-contact{display:grid;grid-template-columns:auto 1fr;gap:3px 12px}.hm-footer-contact>b{grid-column:1/-1;color:#174b82;font-size:10px;margin-bottom:2px}.hm-footer-contact a{font-size:10px;color:#305b86!important;text-decoration:none!important;display:inline-flex;align-items:center;gap:6px}.hm-footer-contact a i{color:#126fc8;width:11px;text-align:center}.hm-footer-security{display:flex;gap:9px;align-items:flex-start;background:#f7fcff;border:1px solid #d5e9f7;border-radius:10px;padding:9px;color:#456684}.hm-footer-security i{color:#1288b3;font-size:18px}.hm-footer-security span{font-size:9px;line-height:1.5}.hm-footer-copy{margin-top:10px;padding-top:7px;border-top:1px solid #d3e4f2;text-align:left;font-size:9px;color:#617d9b}

/* Timetable viewer */
.hm-tkb-modal{position:fixed;inset:0;background:rgba(8,31,58,.68);backdrop-filter:blur(5px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px}.hm-tkb-dialog{width:min(1050px,96vw);height:min(760px,92vh);background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 28px 80px rgba(0,0,0,.25)}.hm-tkb-dialog-head{padding:15px 18px;border-bottom:1px solid #e3ebf3;display:flex;justify-content:space-between;align-items:flex-start}.hm-kicker{font-size:9px;font-weight:900;letter-spacing:.12em;color:#1980d6}.hm-tkb-dialog-head h3{font-size:17px;margin:2px 0;color:#0f447d}.hm-tkb-dialog-head p{font-size:10px;color:#718196}.hm-tkb-dialog-head button{width:36px;height:36px;border-radius:10px;background:#f0f5fa;color:#526b87}.hm-tkb-preview-frame{border:0;width:100%;flex:1;background:#eef3f8}.hm-tkb-image-wrap{flex:1;overflow:auto;background:#f4f8fc;display:flex;align-items:flex-start;justify-content:center;padding:16px}.hm-tkb-image-wrap img{max-width:100%;height:auto;box-shadow:0 5px 18px rgba(17,64,107,.1)}.hm-tkb-no-preview{flex:1;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#51708f}.hm-tkb-no-preview i{font-size:54px;color:#24a065}.hm-tkb-no-preview b{font-size:16px}.hm-tkb-no-preview span{font-size:12px}.hm-tkb-dialog-foot{padding:10px 18px;border-top:1px solid #e4ebf2;text-align:right}.hm-tkb-dialog-foot a{display:inline-flex;align-items:center;gap:7px;background:#197ad3;color:#fff!important;text-decoration:none;padding:9px 13px;border-radius:9px;font-size:11px;font-weight:800}

/* Admin timetable */
.hm-admin-tkb-hero{background:linear-gradient(135deg,#0f4e93,#1683db);border-radius:18px;padding:24px;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 28px rgba(15,78,147,.15)}.hm-admin-tkb-hero span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#cbe9ff}.hm-admin-tkb-hero h3{font-size:22px;margin:4px 0}.hm-admin-tkb-hero p{font-size:12px;color:#e1f2ff}.hm-admin-tkb-hero>i{font-size:50px;opacity:.25}.hm-tkb-upload-card{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.hm-tkb-upload-card label{font-size:12px;color:#294d72;margin:0!important}.hm-tkb-upload-card input{width:100%;border:1px solid #cbd9e8;border-radius:10px;padding:10px;background:#fff}.hm-tkb-help{grid-column:1/-1;font-size:10px;color:#6b7f94}.hm-tkb-upload-card .hm-primary{grid-column:1/-1;margin:0!important;max-width:280px}.hm-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.hm-section-title h3{margin:0!important}.hm-section-title p{font-size:11px;color:#728299}.hm-section-title button{border:1px solid #d7e2ee;background:#fff;padding:8px 10px;border-radius:9px;color:#35658f;font-size:11px;font-weight:800}.hm-tkb-admin-list{display:flex;flex-direction:column;gap:8px}.hm-tkb-admin-row{display:grid;grid-template-columns:40px 1fr auto auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e0e8f1;border-radius:11px}.hm-tkb-admin-row.active{border-color:#a6d2f6;background:#f1f8ff}.hm-file-icon{width:36px;height:36px;border-radius:9px;background:#eaf4ff;color:#197bd4;display:grid;place-items:center}.hm-tkb-admin-row b{display:block;font-size:12px;color:#183e65}.hm-tkb-admin-row small{display:block;font-size:9px;color:#7b8b9d;margin-top:2px}.hm-tkb-admin-row button,.hm-tkb-admin-row a{border:1px solid #d7e3ee;border-radius:8px;padding:6px 8px;background:#fff;color:#276aab!important;text-decoration:none;font-size:10px;font-weight:800}.hm-tkb-admin-row button.danger{color:#cf4b5e!important}.hm-active-badge{font-size:9px;font-weight:900;color:#0a875b;background:#dcf6e9;padding:5px 7px;border-radius:7px}

@media(min-width:900px){
  body[data-portal="parent"] #parentAuthBlock{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px 16px!important}
  body[data-portal="parent"] #parentAuthBlock>div:not(#parentResultBlock){max-width:none!important;margin:0!important}
  body[data-portal="parent"] #parentAuthBlock>#btnParentLookup{grid-column:1/-1!important;max-width:none!important}
  body[data-portal="parent"] #parentResultBlock{display:grid!important;grid-template-columns:1fr 1fr!important}
  body[data-portal="parent"] #parentResultBlock.hidden{display:none!important}
  #hmParentMonthBar,#parentStudentInfo,#hmParentShortcuts,#parentCoordinationBlock,#hmParentClassesPanel{grid-column:1/-1!important}
}

@media(max-width:900px){
  #hmPublicHeader{height:78px!important;padding:0 14px!important}.hm-public-brand b{font-size:16px!important}.hm-public-brand small{display:none!important}
  #hmPublicHeader .hm-public-logo-box,#hmPublicHeader img.hm-public-logo{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important}
  #hmPublicHeader nav{gap:2px!important}#hmPublicHeader nav a{padding:0 9px!important;font-size:11px!important}#hmPublicHeader nav a i{display:none!important}#hmPublicHeader nav a.hm-teacher-link{padding:0 11px!important}
  .hm-hero-illustration{width:230px}.hm-hero-quote{display:none}.hm-student-card-body{grid-template-columns:90px 1fr}.hm-student-quote{display:none}.hm-footer-main{grid-template-columns:1fr 1.4fr}.hm-footer-security{display:none}
}

@media(max-width:680px){
  #hmPublicHeader{height:68px!important}.hm-public-brand b{font-size:13px!important}.hm-public-brand{gap:7px!important}
  #hmPublicHeader .hm-public-logo-box,#hmPublicHeader img.hm-public-logo{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important}
  #hmPublicHeader nav a{font-size:10px!important;padding:0 7px!important;min-height:34px!important}#hmPublicHeader nav a:first-child{display:none!important}#hmPublicHeader nav a.hm-teacher-link span{display:none!important}#hmPublicHeader nav a.hm-teacher-link:before{content:"GV"}
  #hmParentHero{min-height:205px!important;padding:28px 18px 58px!important}.hm-hero-illustration{display:none!important}#hmParentHero h1{font-size:27px!important}.hm-trust{gap:11px!important;font-size:10px!important}.hm-trust i{width:24px;height:24px;border-radius:8px}
  body[data-portal="parent"] #loginScreen{padding:0 8px 22px!important;margin-top:-42px!important}body[data-portal="parent"] #loginScreen>.glass-card>div:first-child{padding:15px 16px 10px!important}.hm-search-head-icon{width:42px!important;height:42px!important;min-width:42px!important}body[data-portal="parent"] #loginScreen>.glass-card>div:first-child h1{font-size:17px!important}body[data-portal="parent"] #parentAuthBlock{padding:8px 16px 20px!important}
  #parentStudentInfo,#hmParentMonthBar,.hm-shortcuts,body[data-portal="parent"] #parentResultBlock>div.hm-parent-panel,body[data-portal="parent"] #parentCoordinationBlock{margin-left:9px!important;margin-right:9px!important}
  .hm-student-card-head{padding:0 10px;font-size:10px}.hm-student-card-head span{font-size:9px}.hm-student-card-body{grid-template-columns:72px 1fr;gap:12px;padding:14px}.hm-student-avatar{width:68px;height:68px;font-size:30px;border-width:4px}.hm-student-copy h3{font-size:16px!important}.hm-student-copy p{font-size:10px!important}
  .hm-shortcuts{grid-template-columns:1fr 1fr!important;gap:8px!important}.hm-shortcut-card{min-height:136px!important;padding:12px!important}.hm-shortcut-icon{width:36px;height:36px;font-size:17px}.hm-shortcut-card strong{font-size:11px!important}.hm-shortcut-card small{font-size:9px!important}.hm-shortcut-more{font-size:9px!important}
  #hmParentTuitionPanel,#hmParentNoticePanel{grid-column:1/-1!important}.hm-att-stats{grid-template-columns:1fr 1fr}.hm-attention-item{grid-template-columns:34px 1fr}.hm-attention-item>strong{grid-column:2;justify-self:start}
  body[data-portal="parent"] .hm-footer{padding:14px 14px 7px!important}.hm-footer-main{grid-template-columns:1fr;gap:12px}.hm-footer-brand img{width:44px;height:44px}.hm-footer-contact{grid-template-columns:1fr 1fr}.hm-footer-contact>b{grid-column:1/-1}.hm-footer-copy{text-align:center}
  .hm-tkb-dialog{width:98vw;height:94vh}.hm-tkb-dialog-head h3{font-size:14px}.hm-tkb-upload-card{grid-template-columns:1fr}.hm-tkb-upload-card>*{grid-column:1!important}.hm-tkb-admin-row{grid-template-columns:34px 1fr auto}.hm-tkb-admin-row a,.hm-tkb-admin-row button{grid-row:2}.hm-active-badge{grid-column:3}.hm-admin-tkb-hero{padding:18px}.hm-admin-tkb-hero h3{font-size:18px}
}
/* Cascade guards for legacy Tailwind utility classes in the parent template. */
body[data-portal="parent"] #loginScreen>.glass-card>div:first-child>.hm-search-head-icon{
  width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;min-height:50px!important;max-height:50px!important;
  border-radius:50%!important;background:linear-gradient(145deg,#2a92e7,#0d6fc9)!important;color:#fff!important;
  display:grid!important;place-items:center!important;padding:0!important;box-shadow:0 8px 18px rgba(26,124,210,.25)!important;
}
body[data-portal="parent"] #parentResultBlock>*{margin-top:0!important}
body[data-portal="parent"] #parentCoordinationBlock>*{margin-top:0!important}
body[data-portal="parent"] #parentClassesContainer>*+*,body[data-portal="parent"] #parentTuitionInfo>*+*,body[data-portal="parent"] #parentNotificationsContainer>*+*{margin-top:0!important}
@media(max-width:680px){body[data-portal="parent"] #loginScreen>.glass-card>div:first-child>.hm-search-head-icon{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important}}

/* ===== FINAL POLISH 2026-09: parent hero/photo, centered lookup tab, footers ===== */
body[data-portal="parent"] .hm-parent-tabbar{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  max-width:100%!important;
  margin:0 0 10px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body[data-portal="parent"] #tabParentAuth{
  flex:0 1 360px!important;
  width:min(360px,100%)!important;
  max-width:360px!important;
  min-height:42px!important;
  margin:0 auto!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#1478d2,#258be3)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(22,120,210,.20)!important;
  letter-spacing:.025em!important;
  font-size:11px!important;
  font-weight:900!important;
}

/* Mother & child image in the parent portal hero */
.hm-hero-photo{
  width:370px!important;
  height:210px!important;
  position:relative!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  flex:none!important;
  margin-right:4px!important;
}
.hm-hero-photo:before{
  content:"";
  position:absolute;
  width:225px;height:225px;
  border-radius:50%;
  right:42px;bottom:-38px;
  background:rgba(255,255,255,.55);
  box-shadow:0 0 0 25px rgba(77,163,238,.07),0 18px 45px rgba(18,103,177,.13);
}
.hm-hero-photo-frame{
  position:relative;
  z-index:2;
  width:315px;
  height:205px;
  border-radius:34px 34px 18px 18px;
  overflow:hidden;
  border:5px solid rgba(255,255,255,.78);
  box-shadow:0 16px 34px rgba(16,88,150,.16);
  background:#dff1ff;
}
.hm-hero-photo-frame img{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center top;
  transform:scale(1.02);
}
.hm-hero-photo .hm-hero-quote{
  z-index:3!important;
  right:-2px!important;
  top:0!important;
  padding:7px 7px 8px 13px!important;
  background:rgba(255,255,255,.72)!important;
  border-radius:10px!important;
  border-bottom:3px solid #f3ca15!important;
  backdrop-filter:blur(5px);
}

/* Parent footer: compact, but more visible */
body[data-portal="parent"] .hm-footer{
  border-top:3px solid #2589df!important;
  background:linear-gradient(110deg,#eef8ff 0%,#dceeff 55%,#eaf7ff 100%)!important;
  box-shadow:0 -10px 30px rgba(18,103,177,.09)!important;
}
body[data-portal="parent"] .hm-footer-brand img{
  box-shadow:0 6px 16px rgba(15,91,158,.13)!important;
}
body[data-portal="parent"] .hm-footer-contact a{
  padding:3px 0!important;
  font-weight:700!important;
}
body[data-portal="parent"] .hm-footer-security{
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 5px 16px rgba(18,103,177,.06)!important;
}

/* Admin & teacher login footer: compact and consistent */
body:not([data-portal="parent"]) #loginScreen .hm-footer{
  margin-top:18px!important;
  padding:18px 16px!important;
  border-radius:16px!important;
  box-shadow:0 12px 28px rgba(15,79,158,.15)!important;
}
body:not([data-portal="parent"]) #loginScreen .hm-footer-title{font-size:15px!important}
body:not([data-portal="parent"]) #loginScreen .hm-footer-note{font-size:11px!important;margin-bottom:12px!important}
body:not([data-portal="parent"]) #loginScreen .hm-footer-actions{gap:8px!important;margin-bottom:10px!important}
body:not([data-portal="parent"]) #loginScreen .hm-footer-actions a{min-width:170px!important;min-height:48px!important;padding:8px 11px!important}
body:not([data-portal="parent"]) #loginScreen .hm-footer-address{font-size:11px!important;padding:7px 10px!important}

/* Admin / teacher footer inside the working dashboard */
.hm-internal-footer{
  grid-column:1/-1;
  width:100%;
  margin-top:8px;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(120deg,#0b386b 0%,#0f5ba8 52%,#1478cf 100%);
  color:#fff;
  box-shadow:0 12px 28px rgba(11,56,107,.13);
  border:1px solid rgba(255,255,255,.15);
}
.hm-internal-footer-main{
  display:grid;
  grid-template-columns:1.05fr 1.7fr auto;
  gap:20px;
  align-items:center;
  padding:16px 18px 13px;
}
.hm-internal-brand{display:flex;align-items:center;gap:10px;min-width:0}
.hm-internal-brand img{width:46px;height:46px;object-fit:contain;border-radius:50%;background:#fff;border:2px solid rgba(255,255,255,.75);flex:none}
.hm-internal-brand b{display:block;font-size:13px;font-weight:900;letter-spacing:.02em;color:#fff}
.hm-internal-brand span{display:block;font-size:9px;color:#cfe8ff;margin-top:2px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.hm-internal-contact{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.hm-internal-contact span{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:6px 9px;border-radius:9px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);color:#e8f5ff;font-size:9px}
.hm-internal-contact i{color:#8fd1ff}.hm-internal-contact b{font-weight:800}
.hm-internal-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.hm-internal-actions a,.hm-internal-actions button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:7px 9px;border-radius:9px;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.10);color:#fff!important;text-decoration:none;font-size:9px;font-weight:800;cursor:pointer}
.hm-internal-actions a:hover,.hm-internal-actions button:hover{background:#fff;color:#0f5ba8!important}
.hm-internal-footer-copy{padding:7px 18px;border-top:1px solid rgba(255,255,255,.13);background:rgba(3,28,57,.14);font-size:8px;color:#c7e3fb;text-align:center;letter-spacing:.02em}

@media(max-width:1000px){
  .hm-hero-photo{width:300px!important}
  .hm-hero-photo-frame{width:270px;height:190px}
  .hm-internal-footer-main{grid-template-columns:1fr 1.5fr}.hm-internal-actions{grid-column:1/-1;justify-content:center}
}
@media(max-width:680px){
  body[data-portal="parent"] .hm-parent-tabbar{margin-bottom:5px!important}
  body[data-portal="parent"] #tabParentAuth{max-width:300px!important;min-height:38px!important;font-size:9px!important}
  #hmParentHero{overflow:hidden!important}
  .hm-hero-photo{
    display:block!important;
    position:absolute!important;
    width:190px!important;height:155px!important;
    right:-38px!important;bottom:0!important;
    opacity:.30;
    margin:0!important;
  }
  .hm-hero-photo:before,.hm-hero-photo .hm-hero-quote{display:none!important}
  .hm-hero-photo-frame{width:190px;height:155px;border:0;border-radius:50px 0 0 0;box-shadow:none}
  .hm-hero-copy{max-width:86%!important;z-index:4!important}
  .hm-internal-footer-main{grid-template-columns:1fr;gap:12px;text-align:center;padding:14px}
  .hm-internal-brand{justify-content:center}.hm-internal-contact{justify-content:center}.hm-internal-actions{justify-content:center;grid-column:auto}
  .hm-internal-footer-copy{padding:7px 10px}
}

/* ===== INTERNAL LOGIN REFINEMENT 2026-09-06 ===== */
body[data-portal="admin"] #loginScreen,
body[data-portal="teacher"] #loginScreen{
  min-height:100dvh!important;
  align-items:flex-start!important;
  padding:26px 14px 34px!important;
  background:linear-gradient(180deg,#f5f8fc 0%,#eef4fb 100%)!important;
  overflow:auto!important;
}
body[data-portal="admin"] #loginScreen>.glass-card,
body[data-portal="teacher"] #loginScreen>.glass-card{
  max-width:500px!important;
  padding:18px!important;
  border-radius:26px!important;
  border:1px solid #e4ebf4!important;
  background:#fff!important;
  box-shadow:0 18px 50px rgba(16,49,88,.10)!important;
}
body[data-portal="admin"] #loginScreen>.glass-card>div:first-child,
body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child{
  padding:20px 18px 18px!important;
  margin-bottom:16px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#123f78 0%,#174f8c 100%)!important;
  box-shadow:none!important;
}
body[data-portal="admin"] #loginScreen>.glass-card>div:first-child>div,
body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child>div{
  width:66px!important;
  height:66px!important;
  margin-bottom:10px!important;
}
body[data-portal="admin"] #loginScreen h1,
body[data-portal="teacher"] #loginScreen h1{
  font-size:24px!important;
  line-height:1.15!important;
  letter-spacing:-.025em!important;
}
body[data-portal="admin"] #loginScreen>.glass-card>div:first-child p:first-of-type,
body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child p:first-of-type{
  font-size:11px!important;
  color:#f59e0b!important;
}
body[data-portal="admin"] #loginScreen>.glass-card>div:first-child p:last-child,
body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child p:last-child{
  font-size:10px!important;
  color:rgba(255,255,255,.72)!important;
}
body[data-portal="admin"] #loginScreen>.glass-card>.flex.bg-slate-100,
body[data-portal="teacher"] #loginScreen>.glass-card>.flex.bg-slate-100{
  margin-bottom:16px!important;
  padding:4px!important;
  border-radius:16px!important;
  background:#edf2f7!important;
  border:1px solid #dce5ef!important;
  box-shadow:inset 0 1px 3px rgba(20,55,90,.05)!important;
}
body[data-portal="admin"] #tabAdminAuth,
body[data-portal="teacher"] #tabAdminAuth{
  min-height:48px!important;
  padding:10px 14px!important;
  border-radius:13px!important;
  background:#101a36!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:800!important;
  box-shadow:0 6px 14px rgba(16,26,54,.15)!important;
}
body[data-portal="admin"] #adminAuthBlock,
body[data-portal="teacher"] #adminAuthBlock{
  padding:18px!important;
  border-radius:20px!important;
  border:1px solid #dce5ef!important;
  background:#f8fbfe!important;
  box-shadow:0 7px 22px rgba(20,60,100,.06)!important;
}
.hm-internal-login-heading{
  margin:0 0 2px;
  padding:0 0 12px;
  border-bottom:1px solid #e4ebf3;
}
.hm-internal-login-kicker{
  display:block;
  margin-bottom:3px;
  color:#1976d2;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.hm-internal-login-heading h2{
  margin:0;
  color:#173e78;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}
.hm-internal-login-heading p{
  margin:4px 0 0;
  color:#70839a;
  font-size:10px;
  line-height:1.45;
  font-weight:600;
}
body[data-portal="admin"] #adminAuthBlock label,
body[data-portal="teacher"] #adminAuthBlock label{
  margin-bottom:6px!important;
  color:#263b55!important;
  font-size:12px!important;
  font-weight:800!important;
}
body[data-portal="admin"] #adminAuthBlock input,
body[data-portal="teacher"] #adminAuthBlock input{
  height:48px!important;
  min-height:48px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  border:1px solid #cfdae6!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#17283d!important;
  font-size:14px!important;
  font-weight:600!important;
  box-shadow:0 2px 6px rgba(28,69,110,.03)!important;
}
body[data-portal="admin"] #adminAuthBlock input:focus,
body[data-portal="teacher"] #adminAuthBlock input:focus{
  border-color:#2484db!important;
  box-shadow:0 0 0 4px rgba(36,132,219,.12)!important;
}
.hm-password-wrap{position:relative}
.hm-password-wrap #loginPassword{padding-right:48px!important}
.hm-password-toggle{
  position:absolute;
  top:50%;right:7px;
  width:38px;height:38px;
  min-height:38px!important;
  transform:translateY(-50%);
  display:grid;place-items:center;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#6b7f96;
  cursor:pointer;
}
.hm-password-toggle:hover,.hm-password-toggle:focus-visible{background:#edf5fc;color:#126fc8}
body[data-portal="admin"] #btnLogin,
body[data-portal="teacher"] #btnLogin{
  min-height:50px!important;
  margin-top:4px!important;
  border-radius:13px!important;
  background:linear-gradient(90deg,#2589e3,#1478d2)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:0 9px 20px rgba(20,120,210,.20)!important;
}
body[data-portal="admin"] #btnLogin:hover,
body[data-portal="teacher"] #btnLogin:hover{filter:brightness(.96)}
body[data-portal="admin"] .hm-portal-links,
body[data-portal="teacher"] .hm-portal-links{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:7px!important;
  margin:14px 0 0!important;
  padding:0!important;
}
body[data-portal="admin"] .hm-portal-links a,
body[data-portal="teacher"] .hm-portal-links a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:7px 11px!important;
  border-radius:10px!important;
  color:#4c6682!important;
  font-size:12px!important;
  font-weight:800!important;
  text-decoration:none!important;
  transition:.18s ease!important;
}
body[data-portal="admin"] .hm-portal-links a:hover,
body[data-portal="teacher"] .hm-portal-links a:hover{background:#edf5fc!important;color:#126fc8!important}
body[data-portal="admin"] .hm-portal-links a.is-active,
body[data-portal="teacher"] .hm-portal-links a.is-active{
  background:#e4f2ff!important;
  color:#116fc8!important;
  box-shadow:inset 0 0 0 1px #c9e3f8!important;
}
body[data-portal="admin"] #loginScreen .hm-footer,
body[data-portal="teacher"] #loginScreen .hm-footer{
  margin-top:14px!important;
  padding:13px 14px 12px!important;
  border-radius:16px!important;
  box-shadow:0 9px 22px rgba(15,79,158,.13)!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-badge,
body[data-portal="teacher"] #loginScreen .hm-footer-badge{
  margin-bottom:7px!important;
  padding:5px 10px!important;
  font-size:9px!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-title,
body[data-portal="teacher"] #loginScreen .hm-footer-title{
  margin-bottom:8px!important;
  font-size:13px!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-note,
body[data-portal="teacher"] #loginScreen .hm-footer-note{display:none!important}
body[data-portal="admin"] #loginScreen .hm-footer-actions,
body[data-portal="teacher"] #loginScreen .hm-footer-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  margin-bottom:0!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-actions a,
body[data-portal="teacher"] #loginScreen .hm-footer-actions a{
  min-width:0!important;
  min-height:40px!important;
  padding:6px 9px!important;
  border-radius:11px!important;
  gap:7px!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-actions a>i,
body[data-portal="teacher"] #loginScreen .hm-footer-actions a>i{
  width:27px!important;height:27px!important;border-radius:8px!important;font-size:12px!important;
}
body[data-portal="admin"] #loginScreen .hm-footer-actions a small,
body[data-portal="teacher"] #loginScreen .hm-footer-actions a small{display:none!important}
body[data-portal="admin"] #loginScreen .hm-footer-actions a strong,
body[data-portal="teacher"] #loginScreen .hm-footer-actions a strong{font-size:11px!important;margin:0!important;white-space:nowrap}
body[data-portal="admin"] #loginScreen .hm-footer-address,
body[data-portal="teacher"] #loginScreen .hm-footer-address{display:none!important}

@media(max-width:520px){
  body[data-portal="admin"] #loginScreen,
  body[data-portal="teacher"] #loginScreen{padding:10px 8px 22px!important}
  body[data-portal="admin"] #loginScreen>.glass-card,
  body[data-portal="teacher"] #loginScreen>.glass-card{padding:10px!important;border-radius:22px!important}
  body[data-portal="admin"] #loginScreen>.glass-card>div:first-child,
  body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child{padding:15px 12px 14px!important;margin-bottom:10px!important;border-radius:17px!important}
  body[data-portal="admin"] #loginScreen>.glass-card>div:first-child>div,
  body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child>div{width:58px!important;height:58px!important;margin-bottom:7px!important}
  body[data-portal="admin"] #loginScreen h1,
  body[data-portal="teacher"] #loginScreen h1{font-size:20px!important}
  body[data-portal="admin"] #loginScreen>.glass-card>div:first-child p:first-of-type,
  body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child p:first-of-type{font-size:9px!important}
  body[data-portal="admin"] #loginScreen>.glass-card>div:first-child p:last-child,
  body[data-portal="teacher"] #loginScreen>.glass-card>div:first-child p:last-child{font-size:9px!important}
  body[data-portal="admin"] #loginScreen>.glass-card>.flex.bg-slate-100,
  body[data-portal="teacher"] #loginScreen>.glass-card>.flex.bg-slate-100{margin-bottom:10px!important}
  body[data-portal="admin"] #tabAdminAuth,
  body[data-portal="teacher"] #tabAdminAuth{min-height:43px!important;font-size:13px!important}
  body[data-portal="admin"] #adminAuthBlock,
  body[data-portal="teacher"] #adminAuthBlock{padding:14px!important;border-radius:17px!important}
  .hm-internal-login-heading{padding-bottom:9px!important}
  .hm-internal-login-heading h2{font-size:16px!important}
  .hm-internal-login-heading p{font-size:9px!important}
  body[data-portal="admin"] #adminAuthBlock input,
  body[data-portal="teacher"] #adminAuthBlock input{height:45px!important;min-height:45px!important}
  body[data-portal="admin"] #btnLogin,
  body[data-portal="teacher"] #btnLogin{min-height:46px!important;font-size:13px!important}
  body[data-portal="admin"] .hm-portal-links,
  body[data-portal="teacher"] .hm-portal-links{margin-top:10px!important;gap:3px!important}
  body[data-portal="admin"] .hm-portal-links a,
  body[data-portal="teacher"] .hm-portal-links a{min-height:33px!important;padding:6px 8px!important;font-size:11px!important}
  body[data-portal="admin"] #loginScreen .hm-footer,
  body[data-portal="teacher"] #loginScreen .hm-footer{margin-top:10px!important;padding:10px!important;border-radius:14px!important}
  body[data-portal="admin"] #loginScreen .hm-footer-title,
  body[data-portal="teacher"] #loginScreen .hm-footer-title{font-size:11px!important;margin-bottom:6px!important}
  body[data-portal="admin"] #loginScreen .hm-footer-badge,
  body[data-portal="teacher"] #loginScreen .hm-footer-badge{font-size:8px!important;margin-bottom:5px!important}
}

/* ===== ADMIN + TEACHER MOBILE REFINEMENT V5 - 2026-09-06 ===== */
/* Calmer KPI palette: keep strong identity but reduce visual noise. */
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(1){background:linear-gradient(135deg,#2b82da,#275fbd)!important;box-shadow:0 8px 20px rgba(37,99,235,.15)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(2){background:linear-gradient(135deg,#19a980,#0d8172)!important;box-shadow:0 8px 20px rgba(13,129,114,.14)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(3){background:linear-gradient(135deg,#e54872,#bd3159)!important;box-shadow:0 8px 20px rgba(190,49,89,.14)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(4){background:linear-gradient(135deg,#5b61d8,#3c429f)!important;box-shadow:0 8px 20px rgba(60,66,159,.14)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(5){background:linear-gradient(135deg,#e79b1d,#c87516)!important;box-shadow:0 8px 20px rgba(200,117,22,.14)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(6){background:linear-gradient(135deg,#8d55d4,#6b3fb2)!important;box-shadow:0 8px 20px rgba(107,63,178,.14)!important}

/* Teacher schedule: desktop table + mobile cards. */
.hm-teacher-schedule-mobile{display:none}
.hm-teacher-schedule-hint{max-width:310px;line-height:1.35!important}
.hm-teacher-shift-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #dbe9f7;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 4px 12px rgba(18,70,125,.06)}
.hm-teacher-shift-time{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:62px;min-height:58px;padding:7px;border-radius:11px;background:#eaf4ff;color:#154d88;font-size:10px}
.hm-teacher-shift-time b{font-size:11px;white-space:nowrap}
.hm-teacher-shift-main{min-width:0}
.hm-teacher-shift-title{display:flex;align-items:center;gap:7px;min-width:0}
.hm-teacher-shift-title strong{font-size:12px;color:#173f73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-teacher-shift-title span{font-size:9px;font-weight:800;color:#2d71b7;background:#eaf4ff;border-radius:999px;padding:2px 6px;white-space:nowrap}
.hm-teacher-shift-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px;font-size:9px;color:#64748b}
.hm-teacher-shift-meta span{display:inline-flex;align-items:center;gap:4px}
.hm-teacher-shift-meta .hm-shift-status{color:#9a5b00;background:#fff4cf;border:1px solid #f4d887;border-radius:999px;padding:2px 6px;font-weight:800}
.hm-teacher-shift-card>button{min-height:34px!important;padding:7px 9px!important;border-radius:10px!important;background:#174b83!important;color:#fff!important;font-size:9px!important;font-weight:800!important;white-space:nowrap}
.hm-teacher-schedule-empty{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:12px;border-radius:13px;background:#f6f9fc;border:1px dashed #cddbea;color:#7b8ba0;font-size:11px;font-weight:700}

/* Empty attention state becomes a compact positive status instead of a large empty table. */
.hm-attention-card.hm-is-empty{padding:16px 18px!important;gap:8px!important}
.hm-attention-card.hm-is-empty thead{display:none}
.hm-attention-card.hm-is-empty .hm-attention-table-wrap{overflow:visible!important}
.hm-attention-card.hm-is-empty table{min-width:0!important}
.hm-attention-empty{padding:11px 12px!important;border:0!important;text-align:left!important;color:#39785f!important;background:#f2fbf7!important;border-radius:11px!important;font-weight:700!important}
.hm-attention-empty i{margin-right:7px;color:#10a36e}

/* Activity log: show more items on one screen. */
.hm-log-item{padding:9px 10px;gap:9px}
.hm-log-icon{width:30px;height:30px;border-radius:9px;font-size:10px}
.hm-log-head span:first-child{font-size:11px}
.hm-log-head span:last-child{font-size:9px!important}
.hm-log-detail{font-size:10px!important;margin-top:2px}
.hm-log-user{font-size:9px!important;margin-top:2px}
#systemLogsList{gap:7px!important}

/* Internal footer: contact info stays readable but no longer behaves like a second banner. */
.hm-internal-footer{margin-top:4px!important;border-radius:15px!important;box-shadow:0 8px 20px rgba(11,56,107,.10)!important}
.hm-internal-footer-main{grid-template-columns:auto 1fr auto!important;gap:12px!important;padding:11px 13px 9px!important}
.hm-internal-brand{gap:8px!important}
.hm-internal-brand img{width:38px!important;height:38px!important}
.hm-internal-brand b{font-size:11px!important}
.hm-internal-brand span{font-size:8px!important;margin-top:1px!important}
.hm-internal-contact{gap:6px!important}
.hm-internal-contact a,.hm-internal-contact span{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 8px;border-radius:8px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#e8f5ff!important;font-size:8px;text-decoration:none!important}
.hm-internal-contact a:hover{background:rgba(255,255,255,.16)}
.hm-internal-actions{gap:5px!important}
.hm-internal-actions a,.hm-internal-actions button{min-height:29px!important;padding:5px 7px!important;border-radius:8px!important;font-size:8px!important}
.hm-internal-footer-copy{padding:5px 10px!important;font-size:7px!important}

@media(max-width:680px){
  .hm-teacher-schedule-card{padding:14px!important;border-radius:18px!important;gap:10px!important}
  .hm-teacher-schedule-head{display:block!important;padding-bottom:9px!important}
  .hm-teacher-schedule-head h4{font-size:12px!important;white-space:nowrap!important;margin:0!important}
  .hm-teacher-schedule-hint{display:block!important;max-width:none!important;margin-top:4px!important;text-align:left!important;font-size:9px!important;line-height:1.35!important}
  .hm-teacher-schedule-table{display:none!important}
  .hm-teacher-schedule-mobile{display:grid!important;gap:8px!important}
  .hm-teacher-shift-card{grid-template-columns:56px minmax(0,1fr);padding:10px;gap:9px}
  .hm-teacher-shift-time{min-width:56px;min-height:54px;padding:6px}
  .hm-teacher-shift-card>button{grid-column:2;justify-self:start;min-height:30px!important;padding:5px 8px!important}

  .hm-attention-card.hm-is-empty{padding:13px 14px!important;border-width:1.5px!important}
  .hm-attention-card.hm-is-empty h4{font-size:11px!important}
  .hm-attention-empty{padding:9px 10px!important;font-size:10px!important;text-align:center!important}

  #systemLogsList{max-height:265px}
  .hm-log-item{padding:8px;gap:8px}
  .hm-log-icon{width:27px;height:27px}
  .hm-log-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px!important}
  .hm-log-head span:first-child{font-size:10px!important}
  .hm-log-head span:last-child{font-size:8px!important}
  .hm-log-detail{font-size:9px!important}
  .hm-log-user{font-size:8px!important}

  .hm-internal-footer{border-radius:13px!important;margin-top:2px!important}
  .hm-internal-footer-main{grid-template-columns:1fr!important;gap:7px!important;text-align:center!important;padding:9px 10px 7px!important}
  .hm-internal-brand{justify-content:center!important;gap:7px!important}
  .hm-internal-brand img{width:32px!important;height:32px!important}
  .hm-internal-brand b{font-size:10px!important}
  .hm-internal-brand span{font-size:7px!important}
  .hm-internal-contact{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;width:100%!important}
  .hm-internal-contact a,.hm-internal-contact span{justify-content:center!important;min-height:26px!important;padding:4px 6px!important;font-size:7.5px!important}
  .hm-internal-contact .hm-internal-address{grid-column:1/-1!important}
  .hm-internal-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;width:100%!important}
  .hm-internal-actions a,.hm-internal-actions button{justify-content:center!important;min-height:27px!important;padding:4px 5px!important;font-size:7.5px!important}
  .hm-internal-actions i{font-size:8px!important}
  .hm-internal-footer-copy{padding:4px 8px!important;font-size:6.5px!important}
}
.hm-log-refresh{display:inline-flex;align-items:center;gap:5px;font-size:10px!important;padding:4px 7px;border-radius:8px;background:#eff6ff;color:#1d5fb8!important;white-space:nowrap}
.hm-log-refresh:hover{background:#dbeafe;text-decoration:none!important}
@media(max-width:680px){.hm-log-refresh{font-size:9px!important;padding:3px 6px}}

/* ===== LOGIN TITLE ALIGNMENT V6 - 2026-09-06 ===== */
/* Admin and teacher login titles stay centered on desktop and mobile. */
body[data-portal="admin"] .hm-internal-login-heading,
body[data-portal="teacher"] .hm-internal-login-heading{
  text-align:center!important;
}
body[data-portal="admin"] .hm-internal-login-kicker,
body[data-portal="teacher"] .hm-internal-login-kicker,
body[data-portal="admin"] .hm-internal-login-heading h2,
body[data-portal="teacher"] .hm-internal-login-heading h2,
body[data-portal="admin"] .hm-internal-login-heading p,
body[data-portal="teacher"] .hm-internal-login-heading p{
  width:100%!important;
  text-align:center!important;
}
body[data-portal="admin"] #tabAdminAuth,
body[data-portal="teacher"] #tabAdminAuth{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

/* ===== ADMIN DASHBOARD REFINEMENT V11 - 2026-09-06 ===== */
/* Keep blue as the dominant tone; reserve red for debt/urgent items. */
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(1){background:linear-gradient(135deg,#397fca,#2f5fa8)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(2){background:linear-gradient(135deg,#3a8fb4,#2e708f)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(3){background:linear-gradient(135deg,#df5477,#b83a5c)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(4){background:linear-gradient(135deg,#5274b5,#3b5791)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(5){background:linear-gradient(135deg,#60758d,#46596f)!important}
#viewDashboard .grid:has(#kpiStudents)>div:nth-child(6){background:linear-gradient(135deg,#6773b9,#4f5896)!important}
#viewDashboard .grid:has(#kpiStudents)>div{box-shadow:0 7px 18px rgba(29,62,116,.12)!important}
#globalMonthSelect{min-width:92px;text-align:center}

/* V12: selector ky thang/nam */
#globalMonthSelect{min-width:58px;text-align:center}
#globalYearSelect{min-width:78px;text-align:center}
@media(max-width:640px){#globalMonthSelect{min-width:54px;padding-left:8px!important;padding-right:8px!important}#globalYearSelect{min-width:72px;padding-left:8px!important;padding-right:8px!important}}


/* V12.1 - hien ro ky lam viec tren iPhone/Safari */
#globalMonthSelect,#globalYearSelect{
  color:#1D3E74!important;background:#fff!important;font-size:14px!important;font-weight:800!important;
  line-height:1.25!important;text-align:center!important;-webkit-text-fill-color:#1D3E74!important;
}
#globalMonthSelect{min-width:76px!important}
#globalYearSelect{min-width:96px!important}
@media(max-width:640px){
  #globalMonthSelect{min-width:72px!important;padding:8px 24px 8px 10px!important}
  #globalYearSelect{min-width:92px!important;padding:8px 24px 8px 10px!important}
}


/* V12.2 - sửa bộ chọn Kỳ làm việc trên Safari/iPhone */
#globalMonthSelect,#globalYearSelect{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  -webkit-appearance:menulist!important;
  appearance:auto!important;
  color:#1D3E74!important;
  -webkit-text-fill-color:#1D3E74!important;
  background-color:#fff!important;
  border:1px solid #dbe4ef!important;
  text-align:left!important;
  text-align-last:center!important;
  overflow:visible!important;
}
#globalMonthSelect{width:82px!important;min-width:82px!important}
#globalYearSelect{width:104px!important;min-width:104px!important}
#globalMonthSelect option,#globalYearSelect option{color:#1D3E74!important;background:#fff!important}
@media(max-width:640px){
  #globalMonthSelect{width:78px!important;min-width:78px!important;padding:8px 8px!important}
  #globalYearSelect{width:100px!important;min-width:100px!important;padding:8px 8px!important}
}
