/* V62: role-aware header guardrails. Keep page CSS from resizing or reflowing portal headers. */
.jawda-header-v19,
.teacher-portal-topbar,
.acc-header{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
}
.jawda-header-v19 .topbar-inner,
.teacher-portal-topbar .teacher-topbar-inner{
  width:min(100%,1440px)!important;
  min-height:72px!important;
  height:auto!important;
  margin-inline:auto!important;
  padding:9px 12px!important;
  display:flex!important;
  align-items:center!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  box-sizing:border-box!important;
}
.jawda-header-v19 .brand-link,
.teacher-portal-topbar .teacher-brand{
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  min-width:0!important;
}
.jawda-header-v19 .brand-logo{
  display:block!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:48px!important;
  max-height:48px!important;
  padding:4px!important;
  object-fit:contain!important;
  border-radius:15px!important;
}
.jawda-header-v19 .profile-wrap,
.teacher-portal-topbar .teacher-profile-dropdown{
  position:relative!important;
  flex:0 1 auto!important;
  min-width:0!important;
}
.jawda-header-v19 .profile-trigger{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  width:auto!important;
  max-width:180px!important;
  min-height:46px!important;
  padding:5px 8px!important;
  gap:8px!important;
}
.jawda-header-v19 .profile-avatar,
.jawda-header-v19 .profile-avatar img{
  display:block!important;
  flex:0 0 38px!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
.jawda-header-v19 .profile-avatar{display:grid!important;place-items:center!important;overflow:hidden!important}
.jawda-header-v19 .profile-meta{display:block!important;min-width:0!important;overflow:hidden!important}
.jawda-header-v19 .profile-name,
.jawda-header-v19 .profile-role{display:block;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jawda-header-v19 .jawda-main-nav{min-width:0!important;align-self:center!important}
.jawda-header-v19 .language-switcher,
.jawda-header-v19 .student-notification-btn,
.teacher-portal-topbar :is(.teacher-language-switcher,.teacher-header-alert,.staff-header-menu-toggle){flex:0 0 auto!important}

.teacher-portal-topbar .teacher-brand img,
.teacher-portal-topbar .teacher-profile-trigger img{
  display:block!important;
  object-fit:cover!important;
  margin:0!important;
}
.teacher-portal-topbar .teacher-brand img{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;max-height:48px!important}
.teacher-portal-topbar .teacher-profile-trigger{display:flex!important;align-items:center!important;width:auto!important;min-width:0!important;max-width:190px!important;min-height:44px!important}
.teacher-portal-topbar .teacher-profile-trigger img{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;max-height:38px!important;border-radius:12px!important}
.teacher-portal-topbar :is(.teacher-top-links,.responsible-primary-nav){min-width:0!important}

.acc-header{min-height:72px!important;height:auto!important}
.acc-header .acc-brand img{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;max-height:48px!important;object-fit:contain!important}
.acc-header .acc-user-avatar{display:block!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;max-height:38px!important;object-fit:cover!important}

@media(max-width:1199.98px){
  .jawda-header-v19 .topbar-inner,.teacher-portal-topbar .teacher-topbar-inner{min-height:64px!important;padding-block:7px!important}
  .jawda-header-v19 .brand-logo,.teacher-portal-topbar .teacher-brand img{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;max-height:42px!important}
}
@media(max-width:767.98px){
  .jawda-header-v19 .topbar-inner,.teacher-portal-topbar .teacher-topbar-inner{gap:6px!important;padding-inline:8px!important}
  .jawda-header-v19 .profile-meta{display:none!important}
  .jawda-header-v19 .profile-trigger{max-width:44px!important;padding:4px!important}
  .jawda-header-v19 .profile-avatar,.jawda-header-v19 .profile-avatar img{flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important}
  .teacher-portal-topbar .teacher-profile-trigger span{display:none!important}
  .teacher-portal-topbar .teacher-profile-trigger{max-width:44px!important;padding:3px!important}
  .teacher-portal-topbar .teacher-profile-trigger img{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;max-height:34px!important}
}
