/* LMS Al Binaa V932 — targeted UI fixes; no CBT, editors, formula or business logic changes. */

/* Registration modal on the PUBLIC template homepage. Theme is inherited via --p. */
body:has(main.hero) #regDlg {
  width:min(420px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:min(625px,calc(100dvh - 24px));
  overflow-y:auto;
  overscroll-behavior:contain;
  border-radius:13px;
}
body:has(main.hero) #regDlg .dlghead {
  padding:12px 16px!important;
  min-height:46px!important;
  border-top-width:3px!important;
  font-size:14px!important;
}
body:has(main.hero) #regDlg .dlghead .x { font-size:20px!important;line-height:1!important;min-height:25px;min-width:25px }
body:has(main.hero) #regDlg .dlgbody {padding:14px 17px!important}
body:has(main.hero) #regDlg .field {margin-bottom:10px!important}
body:has(main.hero) #regDlg .field label {
  font-size:12.8px!important;font-weight:700!important;
  line-height:1.35!important;margin-bottom:4px!important;
}
body:has(main.hero) #regDlg .field input {
  box-sizing:border-box!important;width:100%!important;height:39px!important;
  min-height:39px!important;padding:7px 11px!important;
  border-radius:9px!important;font-size:13px!important;
}
body:has(main.hero) #regDlg button.btn {
  min-height:36px!important;height:auto!important;
  padding:8px 12px!important;border-radius:9px!important;
  font-size:13px!important;line-height:1.35!important;
}
body:has(main.hero) #regDlg .notice{padding:9px 12px!important;font-size:12px!important}
@media(max-width:575.98px){
  body:has(main.hero) #regDlg{max-height:calc(100dvh - 16px)}
  body:has(main.hero) #regDlg .dlgbody{padding:12px 14px!important}
}

/* Theme the intended operational headers only; do not recolor warning/danger UI. */
body.v129-tenant-portal .v932-portal-header,
body[data-page="teacher_recap"].v129-tenant-portal .v932-portal-header,
body[data-page="manage_courses"].v129-tenant-portal .v932-portal-header,
body[data-page="supervisor_dashboard"].v129-tenant-portal .v932-portal-header {
  background-color:var(--v932-portal-primary,var(--p,#0d6efd))!important;
  border-color:var(--v932-portal-primary,var(--p,#0d6efd))!important;
  color:#fff!important;
}
body.v129-tenant-portal .v932-portal-header .navbar-brand,
body.v129-tenant-portal .v932-portal-header .text-white-50 {color:#fff!important}
body.v129-tenant-portal .v932-portal-header .btn-light {
  background:#fff!important;
  color:var(--v932-portal-primary,#0d6efd)!important;
  border-color:#fff!important;
}
