/* RadhinPAUD V1.9.0 — Institution Portal */
body.is-institution{background:#f3f6fa;color:#172c49}.institution-topbar{background:linear-gradient(90deg,#061938,#09285a 58%,#071d43);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 28px rgba(5,21,49,.18);position:sticky;top:0;z-index:80}.institution-topbar .topbar-inner{max-width:1500px;padding:10px 24px}.institution-nav{display:flex;align-items:center;gap:5px;margin-left:auto}.institution-nav a{display:flex;align-items:center;gap:7px;color:#cbd7e8;font-size:12px;font-weight:800;padding:10px 12px;border-radius:9px}.institution-nav a:hover,.institution-nav a.active{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 -3px 0 #dca239}.institution-user{display:grid;line-height:1.2;color:#fff;text-align:right}.institution-user strong{font-size:11px}.institution-user small{font-size:9px;color:#aabbd2}.institution-topbar form{margin:0}.institution-shell{max-width:1500px;margin:22px auto 46px;padding:0 22px;display:grid;gap:18px}.institution-hero,.institution-page-title{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-radius:16px;color:#fff;background:linear-gradient(110deg,#071f4a,#0e407f);box-shadow:0 14px 34px rgba(8,36,80,.15)}.institution-hero:after,.institution-page-title:after{content:"";position:absolute;right:-80px;top:-120px;width:260px;height:260px;border-radius:50%;border:15px solid rgba(220,162,57,.28)}.institution-hero>*,.institution-page-title>*{position:relative;z-index:1}.institution-hero h1,.institution-page-title h1{margin:7px 0 5px;font-size:29px}.institution-hero p,.institution-page-title p{margin:0;color:#c9d7e9;font-size:12px}.portal-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.portal-stat{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e1e7ef;border-radius:14px;padding:17px;box-shadow:0 7px 20px rgba(8,38,81,.055)}.portal-stat>span{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#174f8f,#09295a)}.portal-stat div{display:grid;gap:4px}.portal-stat small{color:#718096;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.portal-stat strong{font-size:22px;color:#0b2d60}.portal-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.panel-title-row h2{margin:0}.panel-title-row p{margin:5px 0 0;color:#728096;font-size:11px}.panel-title-row>strong{color:#0d3a77;font-size:24px}.completion-bar{height:10px;background:#e8edf4;border-radius:99px;overflow:hidden;margin:18px 0}.completion-bar span{display:block;height:100%;background:linear-gradient(90deg,#0ea5a8,#25b56b);border-radius:inherit}.profile-checks{display:flex;flex-wrap:wrap;gap:8px}.profile-checks span{padding:7px 10px;border-radius:99px;font-size:10px;font-weight:800}.profile-checks .done{background:#e5f7e9;color:#27813d}.profile-checks .pending{background:#fff0d4;color:#aa5a16}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.quick-grid a{display:grid;grid-template-columns:35px 1fr;column-gap:10px;align-items:center;padding:13px;border:1px solid #e2e8f0;border-radius:11px;color:#123867;background:#f8fafc}.quick-grid a svg{grid-row:1/3}.quick-grid a strong{font-size:12px}.quick-grid a span{font-size:9px;color:#77859a}.announcement-list,.announcement-admin-list{display:grid;gap:10px;margin-top:14px}.announcement{padding:14px 16px;border-left:4px solid #2b70bd;border-radius:10px;background:#f5f9ff}.announcement.level-success{border-color:#2f9d52;background:#f0fbf3}.announcement.level-warning{border-color:#d89221;background:#fff8e9}.announcement.level-danger{border-color:#d94444;background:#fff1f1}.announcement>div{display:flex;justify-content:space-between;gap:12px}.announcement strong{font-size:13px}.announcement span{font-size:9px;color:#7b8798}.announcement p{margin:7px 0 0;font-size:11px;line-height:1.55;color:#526176}.readonly-identity{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:20px;padding:15px;border-radius:11px;background:#f5f8fc}.readonly-identity div{display:grid;gap:5px}.readonly-identity label{font-size:9px;color:#78869a;text-transform:uppercase;font-weight:800}.readonly-identity strong{font-size:13px}.student-portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-filter{display:flex;align-items:end;gap:10px}.portal-filter .field{flex:1}.danger-panel{border-color:#ffd0d0!important;background:#fffafa!important}.danger-panel form{display:flex;gap:9px;max-width:600px}.danger-panel input{flex:1;border:1px solid #efb6b6;border-radius:10px;padding:11px}.password-panel{max-width:680px}.password-panel form{display:grid;gap:14px;margin-top:18px}.login-links{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-card{padding:18px!important}.account-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0f5;padding-bottom:13px}.account-card-head h3{margin:6px 0 0}.account-settings{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:end;margin-top:14px}.check-row{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#46566d}.account-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:13px 0;color:#758297;font-size:10px}.account-actions{display:flex;flex-wrap:wrap;gap:8px}.reset-inline{display:flex;gap:7px;flex:1}.reset-inline input{min-width:150px;flex:1;border:1px solid #dbe2eb;border-radius:9px;padding:8px 10px}.status-warning{background:#fff0d1;color:#a85c12}.danger-text{color:#c33b3b!important;font-weight:800}.announcement-admin-list .announcement-card{display:flex;justify-content:space-between;gap:16px;border-left:4px solid #2b70bd}.announcement-card.level-warning{border-left-color:#d89221}.announcement-card.level-danger{border-left-color:#d94444}.announcement-card.level-success{border-left-color:#2f9d52}.announcement-card h3{margin:5px 0}.announcement-card p{margin:5px 0;color:#56657a;font-size:11px}.activity-list{display:grid}.activity-list article{display:flex;gap:13px;padding:13px 4px;border-bottom:1px solid #edf0f4}.activity-dot{width:11px;height:11px;border:3px solid #dca239;border-radius:50%;margin-top:4px;box-shadow:0 0 0 4px #fff2cf}.activity-list strong{font-size:12px}.activity-list p{margin:3px 0;color:#5f6e82;font-size:11px}.activity-list small{font-size:9px;color:#8793a3}
@media(max-width:1100px){.institution-nav span{display:none}.portal-stat-grid{grid-template-columns:1fr 1fr}.account-grid{grid-template-columns:1fr}.institution-topbar .brand-copy span{display:none}}
@media(max-width:760px){.institution-topbar .topbar-inner{padding:9px 12px}.institution-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:90;background:#071f45;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:7px;justify-content:space-around;box-shadow:0 14px 35px rgba(0,0,0,.3)}.institution-nav a{padding:9px}.institution-topbar .institution-user{display:none}.institution-shell{padding:0 11px;margin-top:12px;margin-bottom:90px}.institution-hero,.institution-page-title{padding:20px;align-items:flex-start;flex-direction:column}.institution-hero h1,.institution-page-title h1{font-size:23px}.portal-dashboard-grid,.student-portal-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.readonly-identity{grid-template-columns:1fr}.portal-filter,.danger-panel form{align-items:stretch;flex-direction:column}.account-settings{grid-template-columns:1fr}.reset-inline{flex-direction:column}.portal-stat-grid{grid-template-columns:1fr 1fr}.institution-page-title .actions{display:flex;flex-wrap:wrap}.login-links{grid-template-columns:1fr}}
@media(max-width:480px){.portal-stat-grid{grid-template-columns:1fr}.institution-topbar .brand-copy{display:none}.institution-topbar .brand-logo{width:42px;height:42px}.institution-topbar .nav-actions .nav-btn span{display:none}}
.public-admin-link{display:inline-flex;align-items:center;justify-content:center;color:#dce7f5;font-size:10px;font-weight:800;padding:8px 9px;border:1px solid rgba(255,255,255,.14);border-radius:8px;margin-left:5px}.public-admin-link:hover{color:#fff;background:rgba(255,255,255,.09)}
body.is-institution .institution-login-page{min-height:100vh;background:linear-gradient(90deg,rgba(4,20,48,.96),rgba(7,34,76,.74)),url('hero-radhin-paud.jpg') center/cover no-repeat;padding:24px;place-items:center}body.is-institution .institution-login-page .login-card{width:min(460px,100%);background:#fff;border:1px solid rgba(220,162,57,.4);border-radius:18px;box-shadow:0 30px 85px rgba(0,0,0,.38)}body.is-institution .institution-login-page .login-mark{color:#fff;background:linear-gradient(145deg,#174f8f,#09295a);border:2px solid #dca239;border-radius:16px}
@media(max-width:820px){.public-admin-link{display:none}}

/* V1.9.1 — Institution portal header hardening
   Prevent the generic glass navbar rules from enlarging the logo and lowering contrast. */
body.is-institution .institution-topbar{
  top:0!important;
  margin:0!important;
  max-width:none!important;
  width:100%!important;
  border-radius:0!important;
  color:#fff!important;
  background:linear-gradient(90deg,#061938 0%,#09285a 58%,#071d43 100%)!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 8px 28px rgba(5,21,49,.18)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
body.is-institution .institution-topbar .topbar-inner{
  width:100%;
  max-width:1500px!important;
  min-height:76px;
  margin:0 auto!important;
  padding:10px 24px!important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
body.is-institution .institution-topbar .brand{
  flex:0 1 310px;
  min-width:225px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff!important;
}
body.is-institution .institution-topbar .brand-logo{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  flex:0 0 50px!important;
  padding:3px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:#fff!important;
  border:2px solid #dca239!important;
  box-shadow:0 6px 18px rgba(0,0,0,.24)!important;
}
body.is-institution .institution-topbar .brand-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
body.is-institution .institution-topbar .brand-copy{
  min-width:0;
  display:grid;
  gap:2px;
}
body.is-institution .institution-topbar .brand-copy strong{
  display:block;
  color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1.15;
  letter-spacing:0!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.is-institution .institution-topbar .brand-copy span{
  display:block;
  color:#9fb2cf!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.is-institution .institution-nav{
  flex:1 1 auto;
  min-width:0;
  margin-left:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
body.is-institution .institution-nav a{
  min-height:42px;
  color:#cbd7e8!important;
  background:transparent!important;
  border:1px solid transparent;
  border-radius:9px!important;
  padding:9px 11px!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.15;
  white-space:nowrap;
  box-shadow:none!important;
  transform:none!important;
}
body.is-institution .institution-nav a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.08)!important;
}
body.is-institution .institution-nav a.active{
  color:#fff!important;
  background:rgba(255,255,255,.11)!important;
  border-color:rgba(255,255,255,.05)!important;
  box-shadow:inset 0 -3px 0 #dca239!important;
}
body.is-institution .institution-topbar .nav-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
body.is-institution .institution-user{
  max-width:145px;
  color:#fff!important;
}
body.is-institution .institution-user strong{
  color:#fff!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.is-institution .institution-user small{
  color:#aabbd2!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.is-institution .institution-topbar .nav-btn{
  min-height:40px;
  padding:9px 13px!important;
  border-radius:9px!important;
  color:#fff!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  font-size:11px!important;
  font-weight:800!important;
  box-shadow:none!important;
  transform:none!important;
}
body.is-institution .institution-topbar .nav-btn:hover{
  color:#fff!important;
  background:rgba(255,255,255,.14)!important;
  box-shadow:inset 0 -3px 0 #dca239!important;
}

@media(max-width:1220px){
  body.is-institution .institution-topbar .topbar-inner{padding-left:18px!important;padding-right:18px!important;gap:11px}
  body.is-institution .institution-topbar .brand{flex-basis:245px;min-width:205px}
  body.is-institution .institution-topbar .brand-copy span{display:none}
  body.is-institution .institution-nav a{padding-left:9px!important;padding-right:9px!important}
}
@media(max-width:1040px){
  body.is-institution .institution-topbar .brand{flex-basis:auto;min-width:0}
  body.is-institution .institution-topbar .brand-copy strong{font-size:14px!important}
  body.is-institution .institution-nav a span{display:none}
  body.is-institution .institution-nav a{width:42px;justify-content:center;padding:9px!important}
  body.is-institution .institution-user{max-width:120px}
}
@media(max-width:760px){
  body.is-institution .institution-topbar .topbar-inner{min-height:64px;padding:7px 12px!important}
  body.is-institution .institution-topbar .brand-logo{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;flex-basis:44px!important}
  body.is-institution .institution-topbar .brand-copy strong{font-size:13px!important}
  body.is-institution .institution-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:90;background:#071f45!important;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:7px;justify-content:space-around;box-shadow:0 14px 35px rgba(0,0,0,.3)}
  body.is-institution .institution-nav a{width:auto;flex:1;min-width:0;justify-content:center;padding:9px 6px!important}
  body.is-institution .institution-nav a span{display:none}
  body.is-institution .institution-topbar .institution-user{display:none}
  body.is-institution .institution-topbar .nav-btn{width:42px;padding:9px!important;justify-content:center}
  body.is-institution .institution-topbar .nav-btn span{display:none}
}
@media(max-width:430px){
  body.is-institution .institution-topbar .brand-copy span{display:none!important}
  body.is-institution .institution-topbar .brand-copy strong{max-width:150px}
}

/* V1.9.2 — Global institution header guard
   The student list and print form use shared routes (students/student-print),
   so the header must remain correct even before/without a body context class. */
.institution-topbar{
  top:0!important;
  margin:0!important;
  max-width:none!important;
  width:100%!important;
  border-radius:0!important;
  color:#fff!important;
  background:linear-gradient(90deg,#061938 0%,#09285a 58%,#071d43 100%)!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 8px 28px rgba(5,21,49,.18)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
.institution-topbar .topbar-inner{
  width:100%!important;
  max-width:1500px!important;
  min-height:76px!important;
  margin:0 auto!important;
  padding:10px 24px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
.institution-topbar .brand{
  flex:0 1 310px!important;
  min-width:225px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  color:#fff!important;
}
.institution-topbar .brand-logo{
  box-sizing:border-box!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  max-width:50px!important;
  max-height:50px!important;
  flex:0 0 50px!important;
  padding:3px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:#fff!important;
  border:2px solid #dca239!important;
  box-shadow:0 6px 18px rgba(0,0,0,.24)!important;
}
.institution-topbar .brand-logo img{
  display:block!important;
  width:42px!important;
  height:42px!important;
  min-width:0!important;
  min-height:0!important;
  max-width:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
.institution-topbar .brand-copy strong{color:#fff!important}
.institution-topbar .brand-copy span{color:#9fb2cf!important}
.institution-topbar .institution-nav a{color:#cbd7e8!important}
.institution-topbar .institution-nav a:hover,
.institution-topbar .institution-nav a.active{color:#fff!important}
.institution-topbar .institution-user,
.institution-topbar .institution-user strong{color:#fff!important}
.institution-topbar .institution-user small{color:#aabbd2!important}
.institution-topbar .nav-btn{
  color:#fff!important;
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.is-institution.is-student-print-page .student-print-config,
body.is-institution.is-student-page .container{
  max-width:1500px;
}
@media(max-width:760px){
  .institution-topbar .topbar-inner{min-height:64px!important;padding:7px 12px!important}
  .institution-topbar .brand-logo{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important}
  .institution-topbar .brand-logo img{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important}
}
