html {
  font-size: 16px;
}

/* Gallery and user-account action polish. Kept in site.css so the layout survives even if optional fixes are cached. */
.gallery-page-heading {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 6px;
  text-align: center;
}

.gallery-page-heading h1 {
  color: #173642;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

.gallery-filter-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.gallery-filter-select {
  max-width: 260px;
}

.gallery-filter-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gallery-filter-pill {
  border: 1px solid #17a2b8;
  border-radius: 999px;
  color: #147183;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  min-width: 82px;
  padding: 8px 14px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-filter-pill:hover,
.gallery-filter-pill:focus-visible,
.gallery-filter-pill.active {
  background: #17a2b8;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.gallery-module .gallery-scroll-shell {
  max-height: calc(100vh - 250px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 8px 14px 2px;
}

.gallery-module .gallery-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.gallery-module .gallery-card {
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(18, 43, 53, .08);
  color: inherit !important;
  display: block !important;
  min-width: 0;
  overflow: hidden;
  text-decoration: none !important;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.gallery-module .gallery-card:hover,
.gallery-module .gallery-card:focus-visible {
  box-shadow: 0 16px 34px rgba(18, 43, 53, .16);
  outline: none;
  transform: translateY(-4px);
}

.gallery-module .gallery-a4-frame {
  align-items: center;
  aspect-ratio: 4 / 3 !important;
  background: #eef4f6;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.gallery-module .gallery-a4-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
  width: 100%;
}

.gallery-module .gallery-card:hover .gallery-a4-frame img,
.gallery-module .gallery-card:focus-visible .gallery-a4-frame img {
  transform: scale(1.035);
}

.gallery-module .gallery-card-body {
  padding: 10px;
}

.gallery-module .gallery-card-body h3 {
  color: #213943;
  font-size: .95rem;
  font-weight: 800;
  margin: 7px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-module .gallery-card-body p {
  color: #62757d;
  font-size: .86rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-actions-dropdown {
  display: inline-block;
  position: relative;
}

.user-actions-dropdown .dropdown-menu.show {
  bottom: 100% !important;
  display: block !important;
  left: auto !important;
  max-height: min(72vh, 390px);
  min-width: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute !important;
  right: 0 !important;
  top: auto !important;
  transform: none !important;
  z-index: 2060 !important;
}

.user-permission-form {
  padding: 0 16px 10px;
}

.user-permission-checklist {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.user-permission-checklist .custom-control-label {
  color: #213943;
  cursor: pointer;
  font-weight: 600;
  opacity: 1;
}

@media (max-width: 1199.98px) {
  .gallery-module .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991.98px) {
  .gallery-module .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .gallery-module .gallery-scroll-shell {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .gallery-module .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gallery-filter-select {
    max-width: none;
  }
}

@media (max-width: 479.98px) {
  .gallery-module .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

.teacher-experience-row,
.request-row {
  display: grid;
  gap: 8px;
  align-items: start;
}

.teacher-experience-row {
  grid-template-columns: 1.3fr 1fr .6fr;
  margin-bottom: 8px;
}

.request-row {
  grid-template-columns: 1fr auto;
  border-top: 1px solid #e9ecef;
  padding: 12px 0;
}

.request-row p {
  margin-bottom: 4px;
}

.id-print-page,
.letter-print-page,
.certificate-print-page {
  background: #f4f6f9;
  padding: 32px;
}

.school-id-card,
.school-letter,
.merit-certificate {
  background: #fff;
  color: #1f2933;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.school-id-card {
  width: 340px;
  min-height: 520px;
  border: 8px solid #176b68;
  text-align: center;
  padding: 24px;
}

.school-id-card header,
.merit-certificate header {
  display: grid;
  gap: 4px;
  color: #176b68;
}

.id-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #e8f3f2;
  display: grid;
  place-items: center;
  margin: 28px auto 16px;
  font-size: 48px;
  color: #176b68;
}

.school-id-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  text-align: left;
  margin-top: 24px;
}

.school-letter,
.merit-certificate {
  max-width: 820px;
  min-height: 940px;
  padding: 64px;
}

.school-letter header,
.school-letter footer {
  border-bottom: 2px solid #176b68;
  margin-bottom: 32px;
  padding-bottom: 16px;
}

.school-letter footer {
  border-bottom: 0;
  border-top: 2px solid #176b68;
  margin-top: 48px;
  padding-top: 16px;
}

.merit-certificate {
  border: 12px double #d4a72c;
  text-align: center;
}

.merit-certificate h1 {
  font-size: 34px;
}

.merit-certificate h2 {
  font-size: 42px;
  color: #176b68;
  margin: 36px 0 20px;
}

.merit-certificate footer {
  display: flex;
  justify-content: space-between;
  margin-top: 96px;
}

@media print {
  .id-print-page,
  .letter-print-page,
  .certificate-print-page {
    background: #fff;
    padding: 0;
  }

  .school-id-card,
  .school-letter,
  .merit-certificate {
    box-shadow: none;
  }
}

body {
  min-height: 100vh;
}

.main-header .navbar-nav.ml-auto {
  align-items: center;
  margin-left: auto !important;
}

.nav-user-link {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  line-height: 1.1;
  max-width: 240px;
  white-space: nowrap;
}

.nav-user-name,
.nav-user-role {
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-school-page {
  background: #f4f6f9;
  color: var(--school-public-text, #263841);
  font-family: var(--school-public-font, Arial, sans-serif);
  margin: 0;
  text-align: var(--school-public-align, left);
}

.public-school-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dfe5e7;
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  position: relative;
  z-index: 10;
}

.public-school-brand {
  align-items: center;
  color: #193743;
  display: flex;
  gap: 10px;
}

.public-school-brand:hover {
  color: #176b68;
  text-decoration: none;
}

.public-school-brand > span {
  align-items: center;
  background: #f4b942;
  border-radius: 6px;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.public-school-brand strong {
  font-size: 1.08rem;
}

.public-school-header nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.public-school-nav {
  width: 100%;
}

.public-school-nav .navbar-collapse {
  justify-content: flex-end;
}

.public-school-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-left: 14px;
}

.public-school-login {
  white-space: nowrap;
}

.public-school-header nav > a:not(.btn) {
  color: #415761;
  font-weight: 600;
}

.public-school-header nav > a:not(.btn):hover {
  color: var(--school-public-accent, #176b68);
  text-decoration: none;
}

.public-school-page h1,
.public-school-page h2,
.public-school-page h3 {
  color: var(--school-public-heading, #15383a);
}

.public-school-page .section-label {
  color: var(--school-public-accent, #176b68);
}

.public-school-footer {
  align-items: center;
  background: #173642;
  color: #dce7e9;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px clamp(18px, 5vw, 72px);
}

.public-school-footer a {
  color: #75d69a;
}

.public-policy-page {
  min-height: calc(100vh - 150px);
  padding: 48px 20px 64px;
  background: #f7f9f9;
}

.public-policy-page .container {
  max-width: 840px;
  padding: 32px;
  border-left: 4px solid #176b68;
  background: #fff;
}

.public-policy-page h1 {
  margin-bottom: 4px;
  color: #15383a;
  font-size: 2rem;
}

.public-contact-hero {
  background: linear-gradient(135deg, #e8f5f2, #fff7e1);
  padding: 58px 0 34px;
}

.public-contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 750;
  margin: 8px 0 12px;
}

.public-contact-hero p {
  color: #5e7179;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
}

.public-contact-section {
  padding: 34px 0 64px;
}

.public-contact-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.public-contact-form,
.public-contact-card {
  background: #fff;
  border: 1px solid #dfe7ea;
  box-shadow: 0 12px 28px rgba(25, 57, 67, 0.08);
  padding: 22px;
}

.public-contact-card {
  position: sticky;
  top: 88px;
}

.public-contact-side {
  display: grid;
  gap: 16px;
}

.public-contact-card > i {
  align-items: center;
  background: #e8f5f2;
  border-radius: 50%;
  color: #176b68;
  display: flex;
  font-size: 1.8rem;
  height: 62px;
  justify-content: center;
  margin-bottom: 14px;
  width: 62px;
}

.public-contact-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.public-contact-card a {
  color: #176b68;
  font-weight: 700;
}

.public-policy-page h2 {
  margin-top: 28px;
  color: #176b68;
  font-size: 1.15rem;
}

.public-policy-page p {
  line-height: 1.7;
}

.public-whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 8px 20px rgba(18, 76, 43, 0.28);
  color: #fff;
  display: flex;
  font-size: 1.6rem;
  height: 54px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 54px;
  z-index: 20;
}

.public-whatsapp-float:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.school-login-page {
  background:
    linear-gradient(120deg, rgba(16, 45, 63, 0.96), rgba(15, 80, 74, 0.9)),
    #16394a;
  padding: 24px;
}

.login-selection,
.school-login-box {
  width: min(100%, 760px);
}

.school-login-box {
  position: relative;
  width: min(100%, 420px);
}

.login-brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand-mark {
  align-items: center;
  background: #f4b942;
  border-radius: 8px;
  color: #173346;
  display: flex;
  font-size: 1.4rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 1.25rem;
}

.login-brand div > span {
  color: #c8d9dd;
  font-size: 0.86rem;
}

.login-selection-header {
  color: #fff;
  margin-bottom: 24px;
}

.login-selection-header h1 {
  font-size: 2rem;
  font-weight: 600;
}

.login-selection-header p {
  color: #c8d9dd;
  margin-bottom: 0;
}

.login-role-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.login-role-card {
  align-items: center;
  background: #fff;
  border-left: 4px solid transparent;
  border-radius: 8px;
  color: #20333d;
  display: grid;
  gap: 14px;
  grid-template-columns: 50px 1fr auto;
  min-height: 116px;
  padding: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-role-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #20333d;
  text-decoration: none;
  transform: translateY(-2px);
}

.login-role-admin {
  border-left-color: #007bff;
}

.login-role-management {
  border-left-color: #28a745;
}

.login-role-teacher {
  border-left-color: #ffc107;
}

.login-role-icon,
.role-login-icon {
  align-items: center;
  border-radius: 8px;
  display: flex;
  justify-content: center;
}

.login-role-icon {
  background: #edf3f5;
  font-size: 1.3rem;
  height: 50px;
  width: 50px;
}

.login-role-copy strong,
.login-role-copy small {
  display: block;
}

.login-role-copy small {
  color: #6c757d;
  margin-top: 4px;
}

.login-role-arrow {
  color: #82939b;
}

.login-card {
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.login-card .card-body {
  padding: 28px;
}

.role-login-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.role-login-heading h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.role-login-heading p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 3px 0 0;
}

.role-login-icon {
  color: #fff;
  flex: 0 0 46px;
  height: 46px;
}

.login-back {
  color: #d8e5e8;
  left: 0;
  position: absolute;
  top: 13px;
}

.login-back:hover {
  color: #fff;
}

.sidebar-user-icon {
  align-items: center;
  background: #f4b942;
  border-radius: 50%;
  color: #173346;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-link {
  min-height: 57px;
}

.content-wrapper {
  min-height: calc(100vh - 57px);
}

.small-box .icon > i {
  font-size: 64px;
  top: 18px;
}

.school-home-hero {
  min-height: clamp(430px, 58vh, 610px);
  overflow: hidden;
  position: relative;
}

.school-home-hero-image,
.school-home-hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.school-home-hero-image {
  object-fit: cover;
  object-position: center;
}

.school-home-hero-shade {
  background: linear-gradient(90deg, rgba(14, 34, 43, 0.92) 0%, rgba(14, 34, 43, 0.72) 42%, rgba(14, 34, 43, 0.12) 78%);
}

.school-home-hero-content {
  color: #fff;
  max-width: 680px;
  padding: clamp(70px, 10vh, 120px) clamp(24px, 6vw, 84px);
  position: relative;
  z-index: 1;
}

.school-home-kicker,
.section-label {
  color: #e9b949;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.school-home-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  font-weight: 700;
  margin: 10px 0 14px;
}

.school-home-hero p {
  color: #e5ecee;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 590px;
}

.school-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.school-home-image-note {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 18px;
}

.school-home-band {
  background: #fff;
  border-bottom: 1px solid #dce3e6;
}

.school-fact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.school-fact {
  align-items: center;
  border-right: 1px solid #e1e6e8;
  display: flex;
  gap: 13px;
  min-height: 104px;
  padding: 18px 24px;
}

.school-fact:last-child {
  border-right: 0;
}

.school-fact > i {
  color: #19706e;
  font-size: 1.45rem;
  width: 28px;
}

.school-fact strong,
.school-fact span {
  display: block;
}

.school-fact strong {
  color: #20343c;
  font-size: 1.05rem;
}

.school-fact span {
  color: #718087;
  font-size: 0.82rem;
  margin-top: 2px;
}

.school-home-content {
  background: #f4f7f8;
  padding: 54px 0 28px;
}

.school-about-section,
.school-leadership {
  height: 100%;
  padding: 10px 18px 24px;
}

.school-about-section h2,
.school-leadership h2 {
  color: #1d343d;
  font-size: 1.75rem;
  font-weight: 650;
  margin: 8px 0 18px;
}

.school-about-section > p {
  color: #53666e;
  line-height: 1.75;
}

.school-service-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.school-service-links a {
  align-items: center;
  background: #fff;
  border: 1px solid #dce4e6;
  border-left: 3px solid #19706e;
  color: #263b43;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px 1fr auto;
  padding: 15px 18px;
}

.school-service-links a:hover {
  border-color: #9fc8c6;
  color: #155e5c;
  text-decoration: none;
}

.school-service-links a > i:first-child {
  color: #19706e;
  font-size: 1.15rem;
}

.school-service-links strong,
.school-service-links small {
  display: block;
}

.school-service-links small {
  color: #74838a;
  margin-top: 2px;
}

.school-leadership {
  background: #fff;
  border-top: 3px solid #e9b949;
}

.leader-profile {
  align-items: center;
  border-bottom: 1px solid #e2e7e9;
  color: #243b45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 20px;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.leader-profile:hover {
  background: #fffaf0;
  color: #176b68;
  text-decoration: none;
  transform: translateY(-2px);
}

.leader-profile:last-child {
  border-bottom: 0;
}

.leader-icon {
  align-items: center;
  background: #fff2d2;
  border-radius: 6px;
  color: #9a6a00;
  display: flex;
  flex: 0 0 92px;
  height: 92px;
  justify-content: center;
  width: 72px;
}

.leader-icon-teal {
  background: #e6f4f2;
  color: #19706e;
}

.leader-photo {
  border: 1px solid #dbe3e6;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(18, 45, 54, 0.08);
  flex: 0 0 92px;
  height: 92px;
  object-fit: cover;
  object-position: top center;
  width: 72px;
}

.leader-details {
  max-width: 100%;
}

.leader-profile small {
  color: #19706e;
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.leader-profile h3 {
  color: #223840;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 3px 0 5px;
}

.leader-profile p {
  color: #66767d;
  font-size: 0.9rem;
  margin: 0;
}

.school-home-sidebar {
  background: #fff;
  border: 1px solid #dce5e8;
  margin-top: 18px;
  padding: 18px;
}

.school-home-sidebar-heading h2 {
  color: #1d343d;
  font-size: 1.35rem;
  font-weight: 650;
  margin: 4px 0 6px;
}

.school-home-sidebar-list {
  display: grid;
  gap: 12px;
}

.school-home-sidebar-card {
  background: #f8fbfc;
  border: 1px solid #dfe7ea;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 10px;
}

.school-home-sidebar-card img {
  border-radius: 6px;
  height: 96px;
  object-fit: cover;
  object-position: top center;
  width: 76px;
}

.school-home-sidebar-card h3 {
  color: #213943;
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0 5px;
}

.school-home-sidebar-card p {
  color: #62757d;
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.school-edit-link {
  margin: 8px 0 12px;
}

.settings-edit-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid #dce3e6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.dynamic-profile-manager {
  display: grid;
  gap: 12px;
}

.dynamic-profile-list {
  display: grid;
  gap: 12px;
}

.dynamic-profile-editor {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #dfe7ea;
  display: grid;
  gap: 14px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dynamic-profile-editor.is-uploading {
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.12);
}

.dynamic-profile-photo img,
.dynamic-profile-photo span {
  align-items: center;
  background: #e8eef1;
  border: 1px solid #ced8dd;
  color: #718188;
  display: flex;
  height: 145px;
  justify-content: center;
  object-fit: cover;
  object-position: top center;
  width: 116px;
}

.dynamic-profile-photo span {
  font-size: 2rem;
}

.dynamic-profile-fields label {
  color: #52606d;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.dynamic-profile-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dynamic-page-manager,
.dynamic-page-list {
  display: grid;
  gap: 12px;
}

.dynamic-page-editor {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #dfe7ea;
  display: grid;
  gap: 14px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dynamic-page-editor.is-uploading {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.dynamic-page-photo img,
.dynamic-page-photo span {
  align-items: center;
  background: #e8eef1;
  border: 1px solid #ced8dd;
  color: #718188;
  display: flex;
  height: 145px;
  justify-content: center;
  object-fit: cover;
  object-position: center;
  width: 116px;
}

.dynamic-page-photo span {
  font-size: 2rem;
}

.dynamic-page-fields label {
  color: #52606d;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.dynamic-sidebar-manager,
.dynamic-sidebar-list {
  display: grid;
  gap: 12px;
}

.dynamic-sidebar-editor {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #dfe7ea;
  display: grid;
  gap: 14px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dynamic-sidebar-editor.is-uploading {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.dynamic-sidebar-photo img,
.dynamic-sidebar-photo span {
  align-items: center;
  background: #e8eef1;
  border: 1px solid #ced8dd;
  color: #718188;
  display: flex;
  height: 145px;
  justify-content: center;
  object-fit: cover;
  object-position: center;
  width: 116px;
}

.dynamic-sidebar-photo span {
  font-size: 2rem;
}

.dynamic-sidebar-fields label {
  color: #52606d;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.settings-profile-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.settings-profile-editor {
  background: #f8fbfc;
  border: 1px solid #dfe7ea;
  border-radius: 8px;
  padding: 14px;
}

.settings-profile-editor h4 {
  color: #27424c;
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 12px;
}

.school-staff-section {
  background: #ffffff;
  border-top: 3px solid #19706e;
  margin-top: 34px;
  overflow: hidden;
  padding: 30px 18px 34px;
}

.school-staff-heading {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.school-staff-heading h2 {
  color: #1d343d;
  font-size: 1.75rem;
  font-weight: 650;
  margin: 8px 0 10px;
}

.school-staff-heading p {
  color: #5f7178;
  line-height: 1.7;
  margin: 0;
}

.school-staff-marquee {
  margin-top: 24px;
  overflow: hidden;
  padding: 14px 0 24px;
}

.school-staff-track {
  animation: staff-scroll 42s linear infinite;
  align-items: stretch;
  display: flex;
  gap: 22px;
  width: max-content;
}

.school-staff-marquee:hover .school-staff-track {
  animation-play-state: paused;
}

.staff-profile-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce5e8;
  border-radius: 12px;
  color: #243b45;
  display: flex;
  flex: 0 0 255px;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  padding: 10px 10px 14px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 24px rgba(25, 57, 67, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.staff-profile-card:hover {
  border-color: #19706e;
  box-shadow: 0 18px 36px rgba(25, 57, 67, 0.18);
  color: #176b68;
  text-decoration: none;
  transform: translateY(-10px) scale(1.04);
  z-index: 5;
}

.staff-profile-card img,
.staff-profile-fallback {
  border: 1px solid #dbe3e6;
  border-radius: 10px;
  flex: 0 0 150px;
  height: 150px;
  width: 100%;
}

.staff-profile-card img {
  object-fit: cover;
  object-position: top center;
}

.staff-profile-card > div {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 5px 0;
}

.staff-profile-fallback {
  align-items: center;
  background: #e6f4f2;
  color: #19706e;
  display: flex;
  justify-content: center;
}

.staff-profile-card small {
  color: #19706e;
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-profile-card h3 {
  color: #223840;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 4px 0 6px;
}

.staff-profile-card p {
  color: #64757c;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  max-height: 82px;
  overflow: hidden;
}

.profile-detail-page {
  background: #f4f7f8;
  min-height: calc(100vh - 68px);
  padding: 42px 18px 56px;
}

.profile-detail-shell {
  margin: 0 auto;
  max-width: 980px;
}

.profile-detail-back {
  color: #176b68;
  display: inline-flex;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-detail-back:hover {
  color: #124f4d;
  text-decoration: none;
}

.profile-detail {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce5e8;
  border-top: 4px solid #19706e;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  padding: 24px;
}

.profile-detail-photo img,
.profile-detail-photo span {
  align-items: center;
  background: #e8eef1;
  color: #718188;
  display: flex;
  font-size: 4rem;
  height: 100%;
  justify-content: center;
  min-height: 360px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.profile-detail-copy {
  align-self: center;
}

.profile-detail-copy h1 {
  color: #1d343d;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  margin: 8px 0 8px;
}

.profile-detail-copy strong {
  color: #176b68;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.profile-detail-copy p {
  color: #53666e;
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

.nav-user-link {
  align-items: center;
  display: inline-flex;
  max-width: min(260px, 34vw);
  white-space: nowrap;
}

.nav-user-name {
  display: inline-block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.nav-user-role {
  flex: 0 0 auto;
}

@keyframes staff-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.school-system-status {
  align-items: center;
  border-top: 1px solid #dce3e5;
  color: #3c5159;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding: 18px;
}

.school-system-status small {
  color: #75848a;
}

.contact-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

.student-form-card,
.contact-preview-card {
  border-radius: 8px;
}

.student-form-card .form-control {
  min-height: 42px;
}

.student-form-card textarea.form-control {
  min-height: 128px;
}

.contact-preview-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
  border-top: 3px solid #20c997;
}

.preview-icon {
  align-items: center;
  background: #20c997;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.preview-icon i {
  font-size: 24px;
}

.preview-chip {
  background: #e8f7ff;
  border: 1px solid #b9e8ff;
  border-radius: 999px;
  color: #09658a;
  display: inline-block;
  font-weight: 600;
  padding: 6px 12px;
}

.contact-info-box {
  border-radius: 8px;
}

.contact-form-sent {
  animation: contact-pulse 700ms ease;
}

@keyframes contact-pulse {
  0% {
    box-shadow: 0 0 0 rgba(40, 167, 69, 0);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.18);
  }
  100% {
    box-shadow: 0 0 0 rgba(40, 167, 69, 0);
  }
}

.admission-card {
  border-radius: 8px;
  margin-bottom: 12px;
}

.admission-card .card-title {
  font-weight: 600;
}

.hall-ticket-schedule {
  table-layout: fixed;
}

.hall-ticket-schedule th:nth-child(1) {
  width: 34%;
}

.hall-ticket-schedule th:nth-child(2),
.hall-ticket-schedule th:nth-child(3) {
  width: 26%;
}

.hall-ticket-schedule th:last-child {
  width: 64px;
}

.hall-ticket-schedule td {
  vertical-align: middle;
}

.supplementary-fee-panel {
  border-radius: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #d9c57a;
  border-left: 4px solid #c49a22;
  background: #fffdf5;
}

.student-fee-separate th,
.student-fee-separate td {
  background: #fffdf5;
  color: #6f5719;
}

.payment-export-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #d8e0e3;
  background: #fff;
}

.academic-year-filter {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 390px;
}

.academic-year-filter label {
  margin: 0;
  white-space: nowrap;
}

.payment-export-filter strong,
.payment-export-filter small,
.payment-export-filter label {
  display: block;
}

.academic-class-list,
.promotion-student-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.academic-class-item,
.promotion-student-list label {
  align-items: center;
  border: 1px solid #dbe3e5;
  display: flex;
  justify-content: space-between;
  margin: 0;
  min-height: 48px;
  padding: 8px 10px;
}

.academic-class-item small {
  color: #738086;
  display: block;
}

.promotion-student-list label {
  cursor: pointer;
  justify-content: flex-start;
  gap: 9px;
}

@media (max-width: 767px) {
  .academic-class-list,
  .promotion-student-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admission-actions .btn {
    width: 100%;
  }
}

.payment-export-filter small {
  margin-top: 3px;
  color: #69777d;
}

.payment-export-filter label {
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #59686e;
}

@media (max-width: 767px) {
  .payment-export-filter {
    grid-template-columns: 1fr;
  }
}

.fee-total-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(207, 244, 232, 0.85)),
    var(--admission-soft-green);
  border: 1px solid #bfe8dc;
  border-radius: 8px;
  color: #164c3d;
  display: flex;
  flex-direction: column;
  min-height: 68px;
  padding: 8px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(25, 98, 78, 0.08);
}

.fee-total-panel strong {
  font-size: 1.42rem;
}

.fee-total-panel small {
  color: #52766c;
}

.admission-actions {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--admission-line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 9;
}

.admission-search-panel {
  background: #f8fafb;
}

.student-suggestions {
  background: #fff;
  border: 1px solid #d9e1e5;
  border-radius: 6px;
  display: grid;
  max-height: 320px;
  overflow-y: auto;
}

.student-suggestion {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  color: #263740;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr auto;
  min-height: 64px;
  padding: 10px 14px;
}

.student-suggestion:last-of-type {
  border-bottom: 0;
}

.student-suggestion:hover,
.student-suggestion:focus {
  background: #eef7f5;
  color: #164c3d;
  text-decoration: none;
}

.student-suggestion-icon {
  align-items: center;
  background: #e7f0f4;
  border-radius: 50%;
  color: #26758a;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.student-suggestion-details strong,
.student-suggestion-details small {
  display: block;
}

.student-suggestion-details small {
  color: #6c757d;
  margin-top: 2px;
}

.student-suggestion-action {
  color: #26758a;
  font-size: 0.85rem;
  font-weight: 600;
}

.student-search-empty {
  color: #6c757d;
  padding: 22px;
  text-align: center;
}

.student-search-summary {
  align-items: center;
  color: #586970;
  display: flex;
  justify-content: space-between;
}

.student-profile-header {
  align-items: center;
  background: #fff;
  border-left: 4px solid #19706e;
  display: grid;
  gap: 18px;
  grid-template-columns: 72px 1fr auto;
  margin-bottom: 18px;
  padding: 20px;
}

.student-profile-avatar {
  align-items: center;
  background: #19706e;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.8rem;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  text-transform: uppercase;
  width: 72px;
}

.student-profile-title h2 {
  color: #243a42;
  font-size: 1.55rem;
  font-weight: 650;
  margin: 6px 0 2px;
}

.student-profile-title p {
  color: #74838a;
  margin: 0;
}

.student-profile-actions {
  display: flex;
  gap: 8px;
}

.student-profile-card .card-title {
  font-weight: 600;
}

.student-profile-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.student-profile-grid > div {
  border-bottom: 1px solid #e6ebed;
  min-height: 72px;
  padding: 12px;
}

.student-profile-grid > div:nth-child(odd) {
  border-right: 1px solid #e6ebed;
}

.student-profile-grid dt,
.student-profile-side-list dt {
  color: #77878e;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.student-profile-grid dd,
.student-profile-side-list dd {
  color: #263a42;
  margin: 0;
}

.student-profile-grid .student-profile-wide {
  border-right: 0;
  grid-column: 1 / -1;
}

.student-profile-card h4 {
  color: #344a52;
  font-size: 0.9rem;
  font-weight: 650;
}

.student-fee-table th {
  color: #4e626a;
  font-weight: 500;
}

.student-fee-table td {
  font-weight: 600;
  text-align: right;
}

.student-fee-total {
  background: #eaf5f3;
  color: #155e5c;
  font-size: 1.05rem;
}

.student-fee-balance {
  background: #fff0ec;
  color: #b84428;
  font-size: 1.05rem;
}

.student-profile-side-list {
  margin: 0;
}

.student-profile-side-list dd {
  border-bottom: 1px solid #e6ebed;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.student-profile-side-list dd:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fee-payment-card .card-title,
.fee-chart-card .card-title {
  font-weight: 600;
}

.fee-balance-preview {
  background: #f3f7f8;
  border: 1px solid #dce5e8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fee-balance-preview > div {
  border-right: 1px solid #dce5e8;
  padding: 12px;
}

.fee-balance-preview > div:last-child {
  border-right: 0;
}

.fee-balance-preview span,
.fee-balance-preview strong {
  display: block;
}

.fee-balance-preview span {
  color: #74838a;
  font-size: 0.75rem;
}

.fee-balance-preview strong {
  color: #263b43;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  margin-top: 3px;
  white-space: nowrap;
}

.fee-balance-preview .fee-preview-balance {
  background: #fff1ed;
}

.fee-balance-preview .fee-preview-balance strong {
  color: #bd4528;
}

.fee-student-finder {
  margin-bottom: 14px;
}

.fee-student-results {
  background: #fff;
  border: 1px solid #dce5e8;
  max-height: 250px;
  overflow-y: auto;
}

.fee-student-result {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e6ebed;
  color: #263b43;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px 1fr 20px;
  min-height: 60px;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}

.fee-student-result:last-of-type {
  border-bottom: 0;
}

.fee-student-result:hover,
.fee-student-result:focus {
  background: #f0f7f6;
  outline: 0;
}

.fee-student-result.is-selected {
  background: #e7f4f1;
  box-shadow: inset 3px 0 #1f8a70;
}

.fee-student-result-icon {
  align-items: center;
  background: #e8f0f3;
  border-radius: 50%;
  color: #2878a0;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.fee-student-result strong,
.fee-student-result small {
  display: block;
}

.fee-student-result small {
  color: #74838a;
  margin-top: 2px;
}

.fee-student-selected-icon {
  color: #1f8a70;
  opacity: 0;
}

.fee-student-result.is-selected .fee-student-selected-icon {
  opacity: 1;
}

.fee-student-empty {
  color: #74838a;
  padding: 18px;
  text-align: center;
}

.fee-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}

.fee-summary-box {
  border-radius: 4px;
  color: #fff;
  min-height: 116px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.fee-summary-box span,
.fee-summary-box strong {
  display: block;
  position: relative;
  z-index: 1;
}

.fee-summary-box span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.fee-summary-box strong {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  margin-top: 7px;
  white-space: nowrap;
}

.fee-summary-box > i {
  bottom: -12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 5rem;
  position: absolute;
  right: 18px;
}

.fee-summary-total {
  background: #2878a0;
}

.fee-summary-paid {
  background: #1f8a70;
}

.fee-summary-due {
  background: #c84f32;
}

.fee-summary-additional {
  background: #7b6249;
}

.fee-summary-all {
  background: #34495e;
}

.fee-summary-hostel {
  background: #5f8f3d;
}

.fee-summary-transport {
  background: #0f766e;
}

.fee-summary-supplementary {
  background: #2f64c9;
}

.fee-summary-books {
  background: #6d5b92;
}

.fee-summary-exam {
  background: #b45f06;
}

.fee-summary-uniform {
  background: #8a5a44;
}

.fee-accounting-note {
  background: #fff;
  border-left: 3px solid #2878a0;
  color: #52656d;
  margin-bottom: 14px;
  padding: 10px 13px;
}

.fee-receipt-action-card {
  align-items: center;
  background: #fff;
  border: 1px solid #cfe8df;
  border-left: 4px solid #1f8a70;
  box-shadow: 0 1px 4px rgba(18, 38, 63, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.fee-receipt-action-main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 240px;
}

.fee-receipt-action-main strong,
.fee-receipt-action-main span {
  display: block;
}

.fee-receipt-action-main span {
  color: #52656d;
}

.fee-receipt-icon {
  align-items: center;
  background: #e8f6f1;
  color: #176b68;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.fee-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fee-receipt-action-card small {
  color: #6b7c84;
  flex-basis: 100%;
}

.fee-selected-table-shell {
  border-top: 1px solid #e0e7ea;
}

.fee-selected-fee-table {
  table-layout: fixed;
}

.fee-selected-fee-table th:first-child,
.fee-selected-fee-table td:first-child {
  width: 62%;
}

.fee-selected-fee-table th:last-child,
.fee-selected-fee-table td:last-child {
  white-space: nowrap !important;
  width: 38%;
}

.fee-selected-fee-table thead th {
  background: #f3f8fa;
  border-bottom: 1px solid #dce5e8;
  color: #173642;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.fee-selected-fee-table td {
  border-top: 1px solid #e6ecef;
  vertical-align: middle;
}

.fee-selected-fee-table td:first-child {
  color: #334b55;
}

.fee-selected-fee-table td:last-child {
  color: #173642;
  font-variant-numeric: tabular-nums;
}

.fee-selected-table-committed td:last-child {
  color: #2878a0;
}

.fee-selected-table-paid td:last-child {
  color: #1f8a70;
}

.fee-selected-table-section td {
  background: #e8f6f1 !important;
  color: #173642 !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fee-selected-table-due td {
  background: #fff4f1;
}

.fee-selected-table-due td:last-child {
  color: #bd4528;
}

.fee-selected-table-note {
  color: #60727a;
  display: block;
  margin-top: 8px;
}

.fee-payment-lines {
  background: #f8fbfc;
  border: 1px solid #dce5e8;
  border-left: 4px solid #1f8a70;
  margin-bottom: 1rem;
  padding: 12px;
}

.fee-payment-lines > label {
  color: #173642;
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.fee-add-line-wide {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  margin: 8px 0 14px;
  min-height: 42px;
  width: 100%;
}

.fee-payment-table-wrap {
  margin-top: 10px;
}

.fee-payment-table {
  background: #fff;
  border: 1px solid #dce7ea;
  table-layout: fixed;
}

.fee-payment-table th {
  background: #f2f7f8;
  border-bottom: 1px solid #dce7ea;
  color: #173642;
  font-size: 0.82rem;
  padding: 9px 10px;
  text-transform: uppercase;
}

.fee-payment-table td {
  border-top: 1px solid #e3ecef;
  padding: 10px;
  vertical-align: middle;
}

.fee-payment-table th:nth-child(1),
.fee-payment-table td:nth-child(1) {
  width: 48%;
}

.fee-payment-table th:nth-child(2),
.fee-payment-table td:nth-child(2) {
  width: 42%;
}

.fee-payment-action-head,
.fee-payment-action-cell {
  text-align: center;
  width: 74px;
}

.fee-payment-action-cell .btn {
  height: 36px;
  padding-left: 0;
  padding-right: 0;
  width: 38px;
}

.fee-payment-line-total {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8eb;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 8px 10px;
}

.fee-payment-line-total span {
  color: #52656d;
  font-weight: 700;
}

.fee-payment-line-total strong {
  color: #1f8a70;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .fee-payment-table {
    table-layout: auto;
  }

  .fee-payment-table th,
  .fee-payment-table td {
    min-width: 150px;
  }

  .fee-payment-action-head,
  .fee-payment-action-cell {
    min-width: 62px;
  }
}

.fee-payment-success-modal .modal-header {
  background: #176b68;
  color: #fff;
}

.fee-payment-success-modal .close {
  color: #fff;
  opacity: 0.9;
}

.fee-payment-success-amount {
  background: #e8f6f1;
  border: 1px solid #cfe8df;
  margin-bottom: 14px;
  padding: 14px;
  text-align: center;
}

.fee-payment-success-amount span,
.fee-payment-success-amount strong {
  display: block;
}

.fee-payment-success-amount span {
  color: #52656d;
}

.fee-payment-success-amount strong {
  color: #176b68;
  font-size: 1.8rem;
}

.fee-payment-success-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.fee-payment-success-list > div {
  border: 1px solid #e0e6e8;
  padding: 8px 10px;
}

.fee-payment-success-list dt {
  color: #667982;
  font-size: 0.8rem;
  font-weight: 600;
}

.fee-payment-success-list dd {
  color: #1d2f38;
  font-weight: 700;
  margin-bottom: 0;
}

.fee-payment-workspace {
  align-items: flex-start;
}

.fee-payment-entry-card,
.fee-selected-detail-card {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(23, 54, 66, 0.1);
  overflow: hidden;
}

.fee-payment-entry-card > .card-header,
.fee-selected-detail-card > .card-header {
  background: linear-gradient(135deg, #ffffff, #f4fbfa);
  border-bottom: 1px solid #dce8ea;
  padding: 14px 18px;
}

.fee-payment-entry-card .card-title,
.fee-selected-detail-card .card-title {
  align-items: center;
  color: #173642;
  display: inline-flex;
  font-size: 1.08rem;
  gap: 8px;
}

.fee-payment-entry-card .card-body {
  background: linear-gradient(180deg, #fbfdfd 0%, #f5f8f9 100%);
}

.fee-form-section {
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px;
}

.fee-form-section .form-group:last-child,
.fee-student-finder .form-group {
  margin-bottom: 0;
}

.fee-payment-workspace label,
.fee-payment-line-label {
  color: #173642;
  font-weight: 700;
}

.fee-student-finder > label,
.fee-payment-lines-heading label {
  align-items: center;
  display: flex;
  font-size: 1rem;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fee-student-results {
  border-radius: 8px;
  max-height: 188px;
}

.fee-student-result {
  border-left: 4px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.fee-student-result.is-selected {
  background: #eaf7f4;
  border-left-color: #1f8a70;
  box-shadow: none;
}

.fee-balance-preview {
  background: transparent;
  border: 0;
  gap: 10px;
}

.fee-balance-preview > div {
  background: #fff;
  border: 1px solid #dfe8eb;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  padding: 12px;
}

.fee-balance-preview > div:nth-child(2) {
  border-left-color: #1f8a70;
}

.fee-balance-preview > div:last-child {
  background: #fff7f5;
  border-left-color: #c84f32;
}

.fee-balance-preview > div:not(:last-child) {
  border-right: 1px solid #dfe8eb;
}

.fee-balance-preview span {
  color: #6a7d84;
  font-weight: 700;
  text-transform: uppercase;
}

.fee-balance-preview strong {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.fee-balance-preview > div:first-child strong {
  color: #d97706;
}

.fee-balance-preview > div:nth-child(2) strong {
  color: #1f8a70;
}

.fee-balance-preview .fee-preview-balance strong {
  color: #c84f32;
}

.fee-payment-lines {
  background: #ffffff;
  border: 1px solid #dce7ea;
  border-left: 4px solid #176b68;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 54, 66, 0.06);
}

.fee-payment-lines-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fee-payment-lines-heading label {
  margin-bottom: 0;
}

.fee-payment-lines-heading span {
  color: #667982;
  font-size: 0.8rem;
  max-width: 290px;
  text-align: right;
}

.fee-payment-line .form-control {
  background-color: #fff;
}

.fee-payment-line-total {
  border-radius: 8px;
  border-left: 4px solid #1f8a70;
}

.fee-selected-detail-card .card-body {
  background: #fff;
}

.fee-selected-fee-table {
  border-collapse: separate;
  border-spacing: 0;
}

.fee-selected-fee-table thead th {
  background: #f7fafb;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.fee-selected-fee-table td,
.fee-selected-fee-table th {
  padding: 0.78rem 1.15rem;
}

.fee-selected-table-section td {
  background: #f2f7f7 !important;
  border-top: 1px solid #d9e5e7;
  color: #52656d !important;
}

.fee-selected-table-committed td {
  background: #fff8ed;
}

.fee-selected-table-committed td:last-child {
  color: #d97706;
}

.fee-selected-table-paid td {
  background: #f0faf5;
}

.fee-selected-table-paid td:last-child {
  color: #1f8a70;
}

.fee-selected-table-due td {
  background: #fff4f1;
}

.fee-selected-table-due td:last-child {
  color: #c84f32;
}

.fee-selected-fee-table td:last-child {
  font-size: 1.02rem;
}

@media (max-width: 1199.98px) {
  .fee-payment-lines-heading {
    display: block;
  }

  .fee-payment-lines-heading span {
    display: block;
    margin-top: 3px;
    max-width: none;
    text-align: left;
  }
}

.fee-payment-success-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-stability-table {
  min-width: 980px;
}

.system-stability-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.86rem;
  white-space: nowrap;
}

.system-stability-table td {
  vertical-align: top;
}

.system-stability-table td:nth-child(4),
.system-stability-table td:nth-child(5) {
  min-width: 240px;
}

.security-control-card,
.prepublish-gate-card {
  min-height: 100%;
}

.security-control-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.security-control-summary > div,
.prepublish-package-banner {
  background: #f7fafb;
  border: 1px solid #dce7ea;
  border-radius: 6px;
  padding: 10px 12px;
}

.security-control-summary span,
.prepublish-package-banner span {
  color: #61747d;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.security-control-summary strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
}

.security-control-table th,
.prepublish-gate-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.82rem;
  white-space: nowrap;
}

.security-control-table td,
.prepublish-gate-table td {
  vertical-align: top;
}

.security-control-table td:nth-child(3),
.prepublish-gate-table td:nth-child(3),
.prepublish-gate-table td:nth-child(4) {
  min-width: 220px;
}

.prepublish-package-banner {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.prepublish-package-banner strong,
.prepublish-package-banner code {
  display: block;
  overflow-wrap: anywhere;
}

.prepublish-gate-counts {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.backup-info-box small,
.backup-center-card .card-tools .badge {
  overflow-wrap: anywhere;
}

.backup-snapshot-table {
  min-width: 980px;
}

.backup-snapshot-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.84rem;
  white-space: nowrap;
}

.backup-snapshot-table td {
  vertical-align: middle;
}

.backup-hash {
  display: block;
  margin-top: 4px;
}

.backup-actions {
  min-width: 280px;
  white-space: nowrap;
}

.backup-restore-guidance {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.backup-restore-guidance > div {
  align-items: flex-start;
  background: #f7fafb;
  border: 1px solid #dce7ea;
  border-left: 4px solid #17a2b8;
  border-radius: 6px;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 12px;
}

.backup-restore-guidance i {
  color: #17a2b8;
  font-size: 1.1rem;
  grid-row: span 2;
  margin-top: 3px;
}

.backup-restore-guidance strong,
.backup-restore-guidance span {
  display: block;
}

.backup-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.backup-check-list li {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  padding: 7px 0;
}

.backup-restore-steps {
  margin: 0;
  padding-left: 20px;
}

.backup-restore-steps li {
  padding: 6px 0;
}

.live-error-hero {
  align-items: center;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.live-error-healthy {
  background: linear-gradient(135deg, #16875c, #20a76f);
}

.live-error-watch {
  background: linear-gradient(135deg, #b36b00, #e0a100);
}

.live-error-critical {
  background: linear-gradient(135deg, #9d1e2c, #cf3e4d);
}

.live-error-hero span,
.live-error-hero p {
  display: block;
  margin: 0;
}

.live-error-hero span {
  opacity: 0.9;
  text-transform: uppercase;
}

.live-error-hero strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.live-error-hero-count {
  text-align: right;
}

.live-error-signal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-error-signal {
  align-items: flex-start;
  background: #f7fafb;
  border: 1px solid #dce7ea;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 12px;
}

.live-error-signal > i {
  font-size: 1.2rem;
  margin-top: 3px;
}

.live-error-signal strong,
.live-error-signal p,
.live-error-signal small {
  display: block;
}

.live-error-signal p {
  margin: 6px 0 2px;
}

.live-error-module-table small,
.live-error-table small {
  color: #61747d;
}

.live-error-table {
  min-width: 1120px;
}

.live-error-table th,
.live-error-module-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.84rem;
  white-space: nowrap;
}

.live-error-table td,
.live-error-module-table td {
  vertical-align: top;
}

.live-error-row-critical td {
  background: #fff6f7;
}

.production-status-hero {
  align-items: center;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.production-status-success {
  background: linear-gradient(135deg, #16875c, #20a76f);
}

.production-status-warning {
  background: linear-gradient(135deg, #9f6800, #d39e00);
}

.production-status-danger {
  background: linear-gradient(135deg, #9d1e2c, #cf3e4d);
}

.production-status-secondary {
  background: linear-gradient(135deg, #58636a, #7a858c);
}

.production-status-hero span,
.production-status-hero p {
  display: block;
  margin: 0;
}

.production-status-hero > div > span {
  opacity: 0.9;
  text-transform: uppercase;
}

.production-status-hero strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.production-status-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.production-channel-card {
  min-height: 100%;
}

.production-channel-dl {
  display: grid;
  gap: 7px 12px;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0 0 12px;
}

.production-channel-dl dt {
  color: #62757d;
  font-weight: 700;
}

.production-channel-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.production-status-list {
  background: #f7fafb;
  border: 1px solid #dce7ea;
  border-radius: 6px;
  margin-top: 10px;
  padding: 10px;
}

.production-status-list strong,
.production-status-list span {
  display: block;
}

.production-status-list span {
  color: #4f626b;
  padding-top: 4px;
}

.production-status-missing {
  border-left: 4px solid #dc3545;
}

.production-signal-list {
  display: grid;
  gap: 10px;
}

.production-signal-list > div {
  background: #f7fafb;
  border: 1px solid #dce7ea;
  border-radius: 6px;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 24px auto minmax(0, 1fr);
  padding: 10px;
}

.production-signal-list p {
  grid-column: 2 / 4;
  margin: 0;
}

.production-audit-table {
  min-width: 760px;
}

.production-audit-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .security-control-summary,
  .prepublish-package-banner {
    display: block;
  }

  .security-control-summary > div + div,
  .prepublish-gate-counts {
    margin-top: 8px;
  }

  .prepublish-gate-counts {
    justify-content: flex-start;
  }

  .backup-restore-guidance {
    grid-template-columns: 1fr;
  }

  .live-error-hero {
    align-items: flex-start;
    display: block;
  }

  .live-error-hero-count {
    margin-top: 12px;
    text-align: left;
  }

  .live-error-signal-grid {
    grid-template-columns: 1fr;
  }

  .production-status-hero {
    align-items: flex-start;
    display: block;
  }

  .production-status-counts {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .production-channel-dl {
    grid-template-columns: 1fr;
  }
}

.fee-period-grid {
  background: #fff;
  border: 1px solid #dfe5e7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.fee-period-grid > div {
  border-right: 1px solid #e3e8ea;
  padding: 15px;
}

.fee-period-grid > div:last-child {
  border-right: 0;
}

.fee-period-grid span,
.fee-period-grid strong {
  display: block;
}

.fee-period-grid span {
  color: #78868b;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.fee-period-grid strong {
  color: #263b43;
  margin-top: 4px;
}

.fee-chart-card canvas {
  max-height: 340px;
}

@media (max-width: 575.98px) {
  .school-home-hero {
    min-height: 520px;
  }

  .school-home-hero-shade {
    background: rgba(14, 34, 43, 0.76);
  }

  .school-home-hero-content {
    padding: 70px 22px;
  }

  .school-home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .school-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .school-fact {
    border-bottom: 1px solid #e1e6e8;
    padding: 15px;
  }

  .school-system-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .login-role-grid {
    grid-template-columns: 1fr;
  }

  .login-selection-header h1 {
    font-size: 1.65rem;
  }

  .admission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .student-suggestion {
    grid-template-columns: 38px 1fr;
  }

  .student-suggestion-action {
    display: none;
  }

  .student-profile-header {
    grid-template-columns: 58px 1fr;
  }

  .student-profile-avatar {
    font-size: 1.4rem;
    height: 58px;
    width: 58px;
  }

  .student-profile-actions {
    grid-column: 1 / -1;
  }

  .student-profile-actions .btn {
    flex: 1;
  }

  .student-profile-grid {
    grid-template-columns: 1fr;
  }

  .student-profile-grid > div:nth-child(odd) {
    border-right: 0;
  }

  .student-profile-grid .student-profile-wide {
    grid-column: auto;
  }

  .fee-balance-preview {
    grid-template-columns: 1fr;
  }

  .fee-balance-preview > div {
    border-bottom: 1px solid #dce5e8;
    border-right: 0;
  }

  .fee-summary-grid {
    grid-template-columns: 1fr;
  }

  .fee-period-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fee-period-grid > div {
    border-bottom: 1px solid #e3e8ea;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .school-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .school-fact:nth-child(2) {
    border-right: 0;
  }

  .school-fact:nth-child(-n + 2) {
    border-bottom: 1px solid #e1e6e8;
  }
}

.progress-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.progress-tree-menu {
  padding-left: 14px;
}

.progress-tree-menu .nav-link {
  padding-left: 28px;
}

.progress-tree-menu .nav-icon {
  font-size: 0.62rem !important;
  margin-left: 5px;
}

.bulk-assessment-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.bulk-assessment-card {
  background: #fff;
  border-bottom: 3px solid #cbd4d8;
  color: #263841;
  min-height: 104px;
  padding: 13px;
}

.bulk-assessment-card:hover {
  color: #176b68;
  text-decoration: none;
}

.bulk-assessment-card.is-selected {
  background: #eaf5f3;
  border-bottom-color: #176b68;
}

.bulk-assessment-card span,
.bulk-assessment-card strong,
.bulk-assessment-card small {
  display: block;
}

.bulk-assessment-card span {
  color: #176b68;
  font-size: 0.75rem;
  font-weight: 700;
}

.bulk-assessment-card strong {
  font-size: 0.86rem;
  margin: 4px 0 7px;
}

.bulk-assessment-card small {
  color: #718188;
}

.bulk-whatsapp-filter {
  align-items: end;
  background: #fff;
  border: 1px solid #dce3e6;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
}

.bulk-whatsapp-filter .form-group {
  min-width: 220px;
}

.bulk-ready-count {
  margin-left: auto;
  text-align: right;
}

.bulk-ready-count strong,
.bulk-ready-count span {
  display: block;
}

.bulk-ready-count strong {
  color: #176b68;
  font-size: 1.3rem;
}

.bulk-ready-count span {
  color: #718188;
  font-size: 0.75rem;
}

.bulk-send-band {
  align-items: center;
  background: #173642;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 17px;
}

.bulk-send-band strong,
.bulk-send-band span {
  display: block;
}

.bulk-send-band span {
  color: #d3dfe2;
  font-size: 0.83rem;
  margin-top: 3px;
}

.bulk-send-actions {
  display: flex;
  gap: 8px;
}

.bulk-send-actions form {
  margin: 0;
}

.bulk-api-note {
  align-items: center;
  background: #fff4d6;
  border-left: 4px solid #d4a72c;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}

.bulk-api-note > i {
  color: #98720d;
  font-size: 1.4rem;
}

.bulk-api-note strong,
.bulk-api-note span {
  display: block;
}

.bulk-subject-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bulk-subject-marks span {
  background: #edf3f5;
  border-radius: 3px;
  font-size: 0.72rem;
  padding: 3px 6px;
}

.progress-kpi {
  background: #fff;
  border-left: 4px solid #176b68;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(25, 42, 52, 0.12);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 40px 1fr;
  padding: 16px;
}

.progress-kpi > i {
  align-items: center;
  background: #eaf5f3;
  border-radius: 6px;
  color: #176b68;
  display: flex;
  grid-row: span 2;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.progress-kpi span {
  color: #687981;
  font-size: 0.78rem;
}

.progress-kpi strong {
  color: #21343d;
  font-size: 1.35rem;
}

.progress-kpi-average {
  border-left-color: #2878a0;
}

.progress-kpi-average > i {
  background: #e9f3f8;
  color: #2878a0;
}

.progress-kpi-classes {
  border-left-color: #d4a72c;
}

.progress-kpi-classes > i {
  background: #fbf5e5;
  color: #98720d;
}

.progress-kpi-completed {
  border-left-color: #4f772d;
}

.progress-kpi-completed > i {
  background: #edf5e7;
  color: #4f772d;
}

.assessment-track {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow-x: auto;
}

.assessment-track-item {
  background: #fff;
  border-bottom: 3px solid #cbd4d8;
  color: #243841;
  min-width: 150px;
  padding: 13px;
}

.assessment-track-item:hover {
  background: #f7fafb;
  color: #176b68;
  text-decoration: none;
}

.assessment-track-item.is-complete {
  border-bottom-color: #4f772d;
}

.assessment-track-item > span,
.assessment-track-item strong,
.assessment-track-item small {
  display: block;
}

.assessment-track-item > span {
  color: #176b68;
  font-size: 0.75rem;
  font-weight: 700;
}

.assessment-track-item strong {
  font-size: 0.85rem;
  margin: 3px 0;
}

.assessment-track-item small {
  color: #718188;
}

.progress-filter-bar,
.marks-selector {
  align-items: end;
  background: #fff;
  border: 1px solid #dce3e6;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.progress-filter-bar .form-group,
.marks-selector .form-group {
  min-width: 190px;
}

.progress-search-field {
  flex: 1;
}

.progress-score {
  border-radius: 4px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 58px;
  padding: 5px 7px;
  text-align: center;
}

.progress-score-good {
  background: #e7f4ea;
  color: #26713a;
}

.progress-score-watch {
  background: #fff4d6;
  color: #856404;
}

.progress-score-focus {
  background: #fbe8e8;
  color: #a12d2d;
}

.marks-status {
  color: #7b6a2e;
  margin-left: auto;
  padding: 8px 0;
}

.marks-status.is-complete {
  color: #28743b;
}

.marks-entry-table {
  min-width: 980px;
}

.marks-entry-table th,
.marks-entry-table td {
  min-width: 116px;
  text-align: center;
  vertical-align: middle;
}

.marks-entry-table .marks-student-column {
  background: #fff;
  left: 0;
  min-width: 190px;
  position: sticky;
  text-align: left;
  z-index: 2;
}

.marks-entry-table thead .marks-student-column {
  background: #f4f6f9;
  z-index: 3;
}

.subject-name,
.subject-max-label {
  display: block;
}

.subject-name {
  color: #243b45;
  font-weight: 700;
}

.subject-max-label {
  color: #718188;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 5px 0 3px;
}

.subject-max-input {
  margin: 0 auto;
  max-width: 82px;
  text-align: center;
}

.mark-input {
  margin: 0 auto;
  max-width: 90px;
  text-align: center;
}

.student-row-average {
  color: #176b68;
  font-weight: 700;
}

.teacher-top-performers-card .card-body {
  overflow: hidden;
}

.teacher-top-scroll {
  overflow: hidden;
}

.teacher-top-track {
  animation: staff-scroll 32s linear infinite;
  display: flex;
  gap: 12px;
  width: max-content;
}

.teacher-top-scroll:hover .teacher-top-track {
  animation-play-state: paused;
}

.teacher-top-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5e8;
  border-left: 3px solid #28a745;
  color: #243b45;
  display: grid;
  flex: 0 0 270px;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 11px 13px;
}

.teacher-top-card:hover {
  background: #f6fbf8;
  color: #176b68;
  text-decoration: none;
}

.teacher-top-card > span {
  align-items: center;
  background: #e7f4ea;
  color: #26713a;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.teacher-top-card strong,
.teacher-top-card small {
  display: block;
}

.teacher-top-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-top-card small {
  color: #718188;
  margin-top: 2px;
}

.teacher-top-card b {
  color: #176b68;
  font-size: 1rem;
  white-space: nowrap;
}

.marks-actions,
.assessment-complete-band {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.assessment-complete-band {
  background: #eaf5f3;
  border-left: 4px solid #176b68;
  margin-bottom: 20px;
  padding: 16px;
}

.assessment-complete-band strong,
.assessment-complete-band span {
  display: block;
}

.assessment-complete-band span {
  color: #5f737b;
  font-size: 0.86rem;
  margin-top: 3px;
}

.student-progress-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.student-progress-identity {
  align-items: center;
  display: flex;
  gap: 14px;
}

.student-progress-identity > span {
  align-items: center;
  background: #176b68;
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: 1.2rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.student-progress-identity h1,
.student-progress-identity p {
  margin: 0;
}

.student-progress-identity p {
  color: #6d7d84;
  margin-top: 3px;
}

.student-progress-summary {
  background: #fff;
  border-top: 3px solid #176b68;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.student-progress-summary > div {
  border-right: 1px solid #e1e6e8;
  padding: 16px;
}

.student-progress-summary > div:last-child {
  border-right: 0;
}

.student-progress-summary span,
.student-progress-summary strong {
  display: block;
}

.student-progress-summary span {
  color: #687981;
  font-size: 0.78rem;
}

.student-progress-summary strong {
  font-size: 1.18rem;
  margin-top: 4px;
}

.student-assessment-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.student-assessment-card {
  background: #fff;
  border: 1px solid #dce3e6;
  border-top: 3px solid #b9c4c9;
}

.student-assessment-card.is-complete {
  border-top-color: #4f772d;
}

.student-assessment-card header {
  align-items: center;
  border-bottom: 1px solid #e2e7e9;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr auto;
  padding: 13px;
}

.student-assessment-card header > span {
  background: #eaf5f3;
  border-radius: 4px;
  color: #176b68;
  font-weight: 700;
  padding: 7px 5px;
  text-align: center;
}

.student-assessment-card header strong,
.student-assessment-card header small {
  display: block;
}

.student-assessment-card header small {
  color: #74838a;
  margin-top: 2px;
}

.student-assessment-card header > b {
  color: #176b68;
  font-size: 1.08rem;
}

.student-assessment-subjects {
  padding: 6px 13px 12px;
}

.student-assessment-subjects > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px 1fr 58px;
  padding-top: 9px;
}

.student-assessment-subjects .progress {
  margin: 0;
}

.student-assessment-subjects .progress-bar {
  background: #2878a0;
}

@media (max-width: 991.98px) {
  .bulk-assessment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-kpi-grid,
  .student-progress-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-assessment-grid {
    grid-template-columns: 1fr;
  }

  .profile-detail {
    grid-template-columns: 1fr;
  }

  .profile-detail-photo img,
  .profile-detail-photo span {
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .bulk-assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-whatsapp-filter,
  .bulk-send-band,
  .bulk-send-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-whatsapp-filter .form-group {
    min-width: 0;
    width: 100%;
  }

  .bulk-ready-count {
    margin-left: 0;
    text-align: left;
  }

  .public-school-header {
    height: auto;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .public-school-header nav {
    gap: 10px;
  }

  .public-school-nav {
    align-items: flex-start;
  }

  .public-school-actions {
    margin-left: auto;
  }

  .public-school-header nav > a:not(.btn) {
    display: none;
  }

  .public-school-actions .btn {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .public-school-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .staff-profile-card {
    flex-basis: min(76vw, 255px);
  }

  .staff-profile-card img,
  .staff-profile-fallback {
    height: 138px;
  }

  .dynamic-profile-editor {
    grid-template-columns: 1fr;
  }

  .dynamic-profile-photo img,
  .dynamic-profile-photo span {
    height: 112px;
    width: 88px;
  }

  .dynamic-page-editor {
    grid-template-columns: 1fr;
  }

  .dynamic-page-photo img,
  .dynamic-page-photo span {
    width: 100%;
  }

  .teacher-top-card {
    flex-basis: min(78vw, 270px);
  }

  .progress-kpi-grid,
  .student-progress-summary {
    grid-template-columns: 1fr;
  }

  .progress-filter-bar,
  .marks-selector,
  .marks-actions,
  .assessment-complete-band,
  .student-progress-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-filter-bar .form-group,
  .marks-selector .form-group {
    min-width: 0;
    width: 100%;
  }

  .marks-status {
    margin-left: 0;
  }

  .student-progress-actions {
    display: flex;
    gap: 8px;
  }

  .student-progress-actions .btn {
    flex: 1;
  }

  .student-assessment-subjects > div {
    grid-template-columns: 90px 1fr 50px;
  }
}

.password-card {
  max-width: 560px;
}

.permission-fieldset {
  border-top: 1px solid #dce3e6;
  margin-top: 20px;
  padding-top: 14px;
}

.permission-fieldset legend {
  color: #263b45;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
  width: auto;
}

.permission-option {
  position: relative;
}

.permission-option > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.permission-option > label {
  align-items: center;
  border: 1px solid #d9e1e4;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  margin-bottom: 8px;
  padding: 11px;
}

.permission-option > label > i {
  align-items: center;
  background: #edf3f5;
  color: #46616d;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.permission-option strong,
.permission-option small {
  display: block;
}

.permission-option small {
  color: #718188;
  margin-top: 2px;
}

.permission-option > input:checked + label {
  background: #eaf5f3;
  border-color: #176b68;
}

.permission-option > input:checked + label > i {
  background: #176b68;
  color: #fff;
}

.user-list-table td {
  vertical-align: middle;
}

.user-list-table td:first-child small {
  color: #74838a;
  display: block;
  margin-top: 3px;
}

.user-list-table .badge {
  margin: 1px;
}

.user-list-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.user-role-filter {
  align-items: center;
  display: flex;
  gap: 8px;
}

.user-role-filter select {
  min-width: 180px;
}

.user-role-badge {
  margin-right: 6px;
  min-width: 74px;
}

.user-role-admin {
  background: #155fb0;
  color: #fff;
}

.user-role-management {
  background: #176b68;
  color: #fff;
}

.user-role-teacher {
  background: #8a5a00;
  color: #fff;
}

.user-actions-dropdown .dropdown-menu {
  min-width: 260px;
}

.user-actions-dropdown form {
  margin: 0;
}

.user-permission-checklist {
  padding: 2px 18px 8px;
}

.user-permission-checklist .custom-control {
  margin-bottom: 6px;
}

.teacher-student-profile-photo {
  border: 1px solid #d9e1e4;
  max-height: 180px;
  max-width: 140px;
  object-fit: cover;
  width: 100%;
}

.reset-request-row {
  align-items: center;
  border-bottom: 1px solid #e2e7e9;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, auto) auto;
  padding: 12px 0;
}

.reset-request-row:last-child {
  border-bottom: 0;
}

.reset-request-row strong,
.reset-request-row span,
.reset-request-row small {
  display: block;
}

.reset-request-row span,
.reset-request-row small {
  color: #718188;
  margin-top: 2px;
}

.reset-request-row form {
  display: flex;
  gap: 8px;
}

.reset-request-row-detailed {
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto) auto;
}

.audit-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 720px;
}

.audit-table code {
  color: #176b68;
  white-space: nowrap;
}

.public-form-heading {
  align-items: center;
  background: #173642;
  color: #fff;
  display: flex;
  gap: 16px;
  padding: 34px max(20px, calc((100% - 1120px) / 2));
}

.public-form-heading > span {
  align-items: center;
  background: #f4b942;
  color: #173642;
  display: flex;
  font-size: 1.4rem;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.public-form-heading h1,
.public-form-heading p {
  margin: 0;
}

.public-form-heading p {
  color: #d4e0e3;
  margin-top: 4px;
}

.public-form-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  margin: 24px auto;
  max-width: 1120px;
  padding: 0 18px;
}

.public-service-card {
  border-radius: 6px;
}

.public-form-actions {
  display: flex;
  justify-content: space-between;
}

.public-service-aside {
  align-self: start;
  background: #fff;
  border-top: 4px solid #25d366;
  padding: 24px;
}

.public-service-aside > i {
  color: #25a957;
  font-size: 2rem;
}

.public-service-aside h2 {
  font-size: 1.25rem;
  margin-top: 12px;
}

.tracking-shell {
  margin: 24px auto;
  max-width: 1120px;
  padding: 0 18px;
}

.tracking-search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 720px;
}

.transport-track-summary,
.transport-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.transport-track-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transport-track-summary > div,
.transport-kpi-grid > div {
  background: #fff;
  border-left: 4px solid #176b68;
  padding: 16px;
}

.transport-track-summary span,
.transport-track-summary strong,
.transport-track-summary small,
.transport-kpi-grid span,
.transport-kpi-grid strong {
  display: block;
}

.transport-track-summary span,
.transport-kpi-grid span {
  color: #718188;
  font-size: 0.78rem;
}

.transport-track-summary strong,
.transport-kpi-grid strong {
  font-size: 1.15rem;
  margin-top: 3px;
}

.transport-kpi-grid i {
  color: #176b68;
  float: right;
  font-size: 1.4rem;
}

.transport-live-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 320px 1fr;
}

.transport-live-panel,
.transport-map,
.transport-map-placeholder {
  background: #fff;
  border: 1px solid #dce3e6;
  min-height: 360px;
}

.transport-live-panel {
  padding: 22px;
}

.live-indicator {
  background: #d93025;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 7px;
}

.transport-live-panel h2 {
  margin: 16px 0 4px;
}

.transport-live-panel dt {
  color: #718188;
  font-size: 0.75rem;
  margin-top: 12px;
}

.transport-live-panel dd {
  font-weight: 600;
}

.transport-map iframe {
  border: 0;
  height: 100%;
  min-height: 360px;
  width: 100%;
}

.transport-map > div,
.transport-map-placeholder {
  align-items: center;
  color: #6d7f87;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.transport-map > div i,
.transport-map-placeholder i {
  color: #2878a0;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.transport-map > div strong,
.transport-map > div span,
.transport-map-placeholder strong,
.transport-map-placeholder span {
  display: block;
}

.transport-review-form {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.transport-review-form select {
  border: 1px solid #ced4da;
  max-width: 130px;
}

.transport-ticket {
  align-items: center;
  border-bottom: 1px solid #e2e7e9;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr minmax(400px, auto);
  padding: 14px 0;
}

.transport-active-trips {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.transport-active-trips article {
  background: #fff;
  border-top: 3px solid #d93025;
  padding: 15px;
}

.transport-active-trips header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
}

.transport-active-trips header strong,
.transport-active-trips header small {
  display: block;
}

.transport-active-trips header small,
.transport-active-trips header time {
  color: #718188;
}

.transport-trip-progress {
  align-items: center;
  background: #f4f6f9;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 12px 0;
  padding: 10px;
}

.transport-parent-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transport-ticket span {
  color: #718188;
  display: block;
  font-size: 0.82rem;
}

.transport-ticket p {
  margin: 5px 0 0;
}

.transport-ticket form {
  display: flex;
  gap: 6px;
}

.route-stop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.route-stop-list li {
  align-items: center;
  border-bottom: 1px solid #e3e8ea;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr auto;
  padding: 10px 0;
}

.route-stop-list li > span {
  align-items: center;
  background: #176b68;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.route-stop-list strong,
.route-stop-list small {
  display: block;
}

.route-stop-list small,
.route-stop-list time {
  color: #718188;
}

.bulk-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  justify-content: flex-end;
}

.bulk-row-actions form {
  margin: 0;
}

.profile-photo-input {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 190px;
}

.profile-photo-input img,
.profile-photo-input > span {
  align-items: center;
  background: #e8eef1;
  border: 1px solid #ced8dd;
  display: flex;
  height: 78px;
  justify-content: center;
  object-fit: cover;
  width: 64px;
}

.profile-photo-link {
  display: inline-flex;
}

.profile-photo-link img {
  cursor: pointer;
}

.profile-photo-input > span {
  color: #718188;
  font-size: 1.25rem;
  text-align: center;
}

.profile-photo-input .form-control-file {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.admission-card textarea.form-control {
  min-height: 54px;
  resize: vertical;
}

.profile-photo-input-compact {
  max-width: 170px;
}

.profile-photo-input-compact img,
.profile-photo-input-compact > span {
  height: 78px;
  width: 64px;
}

.student-profile-avatar {
  overflow: hidden;
}

.student-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.student-profile-avatar .profile-photo-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.user-account-identity {
  align-items: center;
  display: flex;
  gap: 10px;
}

.user-account-identity img,
.user-account-identity > span {
  align-items: center;
  background: #e8eef1;
  border-radius: 50%;
  color: #718188;
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  object-fit: cover;
  width: 42px;
}

.user-account-identity strong,
.user-account-identity small {
  display: block;
}

.nav-profile-photo {
  border-radius: 50%;
  height: 24px;
  margin-right: 5px;
  object-fit: cover;
  width: 24px;
}

.sidebar-profile-photo {
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

@media (max-width: 767.98px) {
  .public-form-shell,
  .transport-live-grid {
    grid-template-columns: 1fr;
  }

  .public-form-actions,
  .tracking-search,
  .transport-review-form,
  .transport-ticket form {
    align-items: stretch;
    flex-direction: column;
  }

  .transport-track-summary,
  .transport-kpi-grid {
    grid-template-columns: 1fr;
  }

  .transport-ticket {
    grid-template-columns: 1fr;
  }

  .transport-active-trips {
    grid-template-columns: 1fr;
  }

  .route-stop-list li {
    grid-template-columns: 34px 1fr;
  }

  .route-stop-list time {
    grid-column: 2;
  }

  .reset-request-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .reset-request-row form {
    width: 100%;
  }

  .reset-request-row form .form-control {
    flex: 1;
  }
}
.records-filter-bar {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dee5;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px;
}

.records-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.records-filter-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
}

.fee-date-filter {
  align-items: end;
  display: flex;
  gap: 12px;
}

.fee-date-filter > div {
  min-width: 180px;
}

.fee-date-filter label {
  color: #52606d;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.fee-email-action {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dee5;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.fee-email-action small {
  color: #6c757d;
  display: block;
}

.fee-chart-card .card-body {
  overflow: hidden;
}

.fee-chart-shell {
  height: 260px;
  position: relative;
  width: 100%;
}

.fee-chart-shell-compact {
  height: 220px;
}

.fee-chart-shell-wide {
  height: 240px;
}

.fee-chart-shell canvas {
  height: 100% !important;
  max-height: 100%;
  width: 100% !important;
}

.records-filter-options label {
  margin: 0;
}

.records-filter-options input {
  position: absolute;
  opacity: 0;
}

.records-filter-options span {
  align-items: center;
  border: 1px solid #cbd3da;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
}

.records-filter-options input:checked + span {
  background: #176b68;
  border-color: #176b68;
  color: #fff;
}

.records-filter-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.records-integration-action {
  align-self: center;
  margin: 10px;
}

.records-preview-table {
  max-height: 420px;
}

.records-preview-table td {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-experience-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1.4fr) minmax(110px, 1fr) minmax(80px, .6fr) minmax(130px, 1.2fr);
  margin-bottom: 8px;
}

.admin-tool-card .card-header {
  background: #fff;
}

.help-list {
  display: grid;
  gap: 12px;
}

.help-question-card h3 {
  color: #243642;
  font-size: 1.15rem;
  margin: 8px 0;
}

.help-question-card p {
  color: #52606d;
  margin-bottom: 0;
  white-space: pre-line;
}

.help-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-question-meta span {
  background: #eef3f6;
  border: 1px solid #d8e1e7;
  color: #52606d;
  font-size: .78rem;
  padding: 4px 8px;
}

.results-table td,
.results-table th {
  vertical-align: middle;
}

.student-lookup-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.student-suggest-box {
  position: relative;
}

.student-suggest-list {
  background: #fff;
  border: 1px solid #ced8dd;
  box-shadow: 0 14px 32px rgba(22, 47, 57, .15);
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.student-suggest-list.is-open {
  display: block;
}

.student-suggest-list a {
  color: #223840;
  display: block;
  padding: 10px 12px;
}

.student-suggest-list a:hover {
  background: #eef6f5;
  text-decoration: none;
}

.student-suggest-list small {
  color: #6b7c84;
  display: block;
}

.student-profile-showcase {
  background: #fff;
  border: 1px solid #dbe5e8;
  box-shadow: 0 16px 38px rgba(18, 43, 53, .1);
  margin-bottom: 16px;
  overflow: hidden;
}

.student-profile-hero {
  align-items: center;
  background: linear-gradient(135deg, #173642, #176b68);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.student-readonly-header {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.student-readonly-header img,
.student-readonly-header span {
  align-items: center;
  background: #eaf5f3;
  border: 1px solid #cddde1;
  color: #176b68;
  display: flex;
  font-size: 2rem;
  height: 132px;
  justify-content: center;
  object-fit: cover;
  object-position: top center;
  width: 102px;
}

.student-readonly-header h2 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0 0 4px;
}

.student-readonly-header p {
  color: #d8e9ec;
  margin: 0;
}

.student-readonly-header span:not(:first-child) {
  color: #f4c95d;
  display: block;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.student-profile-balance {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  min-width: 240px;
  padding: 16px;
  text-align: right;
}

.student-profile-balance span {
  color: #d8e9ec;
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
}

.student-profile-balance strong {
  color: #fff;
  display: block;
  font-size: 1.55rem;
}

.student-profile-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  padding: 18px;
}

.student-profile-panels article {
  background: #f8fbfc;
  border: 1px solid #e0e8eb;
  padding: 16px;
}

.student-profile-panels h3 {
  color: #173642;
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 12px;
}

.student-readonly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.student-readonly-grid > div {
  background: #f8fafb;
  border: 1px solid #e0e7ea;
  padding: 11px 12px;
}

.student-readonly-grid .span-2 {
  grid-column: 1 / -1;
}

.student-readonly-grid dt {
  color: #60727a;
  font-size: .78rem;
  text-transform: uppercase;
}

.student-readonly-grid dd {
  margin: 0;
}

.student-fee-breakup {
  display: grid;
  gap: 8px;
  margin: 0;
}

.student-fee-breakup > div {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8eb;
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
}

.student-fee-breakup dt {
  color: #60727a;
  font-size: .76rem;
  text-transform: uppercase;
}

.student-fee-breakup dd {
  font-weight: 800;
  margin: 0;
}

.student-fee-breakup .total {
  border-color: #176b68;
}

.student-fee-breakup .balance {
  background: #173642;
  color: #fff;
}

.student-fee-breakup .balance dt {
  color: #b7d7dc;
}

.student-fee-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.student-fee-summary > div {
  background: #fff;
  border-left: 4px solid #176b68;
  box-shadow: 0 8px 18px rgba(20, 45, 55, .08);
  padding: 14px;
}

.student-fee-summary span {
  color: #63767d;
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
}

.student-fee-summary strong {
  color: #173642;
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.id-card-filter-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 180px minmax(220px, 1fr) 140px auto auto;
}

.id-card-filter-form .form-group {
  margin-bottom: 0;
}

.id-card-preview-shell {
  display: grid;
  justify-content: center;
  padding: 20px;
}

.id-card-batch {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 20px 0;
}

.student-id-card {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(10, 32, 40, .18);
  color: #1f333b;
  overflow: hidden;
  position: relative;
}

.student-id-card.portrait {
  min-height: 520px;
  width: 340px;
}

.student-id-card.landscape {
  height: 54mm;
  min-height: 0;
  width: 86mm;
}

.student-id-card.cr80 {
  height: 54mm;
  width: 86mm;
}

.student-id-card header {
  background: #66828b;
  color: #fff;
  display: grid;
  min-height: 13mm;
  padding: 4mm 7mm;
  position: relative;
  text-align: left;
  z-index: 2;
}

.student-id-card header strong {
  font-size: 5.5mm;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.student-id-card header span {
  font-size: 2.6mm;
}

.student-id-card main {
  display: grid;
  gap: 5mm;
  min-height: 33mm;
  padding: 4mm 6mm 3mm;
  position: relative;
  z-index: 1;
}

.student-id-card main::after {
  background: rgba(126, 207, 230, .32);
  border-radius: 50%;
  bottom: -28mm;
  content: "";
  height: 70mm;
  position: absolute;
  right: -20mm;
  width: 72mm;
  z-index: -1;
}

.student-id-card.portrait main {
  justify-items: center;
  text-align: center;
}

.student-id-card.landscape main {
  grid-template-columns: 24mm 1fr;
}

.student-id-photo {
  align-items: center;
  background: #eef6f5;
  border: 1px solid #66828b;
  border-radius: 3px;
  display: flex;
  height: 28mm;
  justify-content: center;
  overflow: hidden;
  width: 22mm;
}

.student-id-photo img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.student-id-details h2 {
  color: #111;
  font-size: 5mm;
  font-weight: 800;
  margin: 0 0 2mm;
}

.student-id-details dl {
  display: grid;
  gap: 1mm 3mm;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.student-id-details dt {
  color: #60727a;
  font-size: 2.1mm;
  text-transform: uppercase;
}

.student-id-details dd {
  font-size: 2.7mm;
  font-weight: 700;
  margin: 0;
}

.student-id-details .wide {
  grid-column: 1 / -1;
}

.student-id-card footer {
  align-items: center;
  border-top: 1px solid #d8e3e7;
  display: flex;
  justify-content: space-between;
  padding: 2mm 6mm;
  position: relative;
  z-index: 1;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  .no-print,
  .main-sidebar,
  .main-header,
  .main-footer {
    display: none !important;
  }

  .content-wrapper {
    margin: 0 !important;
  }

  body {
    background: #fff !important;
  }

  .id-card-preview-shell {
    padding: 0;
  }

  .student-id-card {
    border-radius: 3mm;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .id-card-batch {
    align-items: flex-start;
    display: grid;
    gap: 3mm;
    grid-auto-rows: 54mm;
    grid-template-columns: repeat(2, 86mm);
    justify-content: flex-start;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .student-lookup-form,
  .student-readonly-grid,
  .student-fee-summary,
  .id-card-filter-form,
  .student-profile-panels {
    grid-template-columns: 1fr;
  }

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

  .student-profile-balance {
    text-align: left;
    width: 100%;
  }

  .public-contact-grid,
  .school-home-sidebar-card,
  .dynamic-sidebar-editor {
    grid-template-columns: 1fr;
  }

  .public-contact-card {
    position: static;
  }

  .records-filter-bar,
  .records-filter-actions,
  .fee-date-filter,
  .fee-email-action {
    align-items: stretch;
    flex-direction: column;
  }

  .fee-date-filter > div {
    min-width: 0;
  }

  .teacher-experience-row {
    grid-template-columns: 1fr;
  }

  .fee-chart-shell,
  .fee-chart-shell-compact,
  .fee-chart-shell-wide {
    height: 220px;
  }
}

/* Stable module styling for Student Profile and CR80 ID cards. */
.student-readonly-profile {
  display: grid;
  gap: 18px;
}

.student-profile-showcase {
  border-radius: 8px;
}

.student-readonly-header > span,
.student-readonly-header img {
  border-radius: 8px;
  flex: 0 0 104px;
  width: 104px;
}

.student-readonly-header div span {
  color: #f4c95d;
  display: block;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.student-profile-panels article,
.student-readonly-grid > div,
.student-fee-breakup > div,
.student-fee-summary > div {
  border-radius: 7px;
}

.id-card-module .id-card-batch {
  align-items: flex-start !important;
  display: grid !important;
  gap: 3mm !important;
  grid-template-columns: repeat(2, 86mm) !important;
  justify-content: center !important;
  overflow-x: auto !important;
  padding: 18px 0 !important;
}

.id-card-module .student-id-card {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: 13mm 1fr 8mm !important;
  min-height: 0 !important;
  position: relative !important;
}

.id-card-module .student-id-card.cr80,
.id-card-module .student-id-card.landscape {
  height: 54mm !important;
  max-height: 54mm !important;
  max-width: 86mm !important;
  min-height: 54mm !important;
  min-width: 86mm !important;
  width: 86mm !important;
}

.id-card-module .student-id-card header {
  min-height: 0 !important;
  padding: 3mm 5mm !important;
}

.id-card-module .student-id-card header strong {
  font-size: 4.2mm !important;
  line-height: 1.05 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.id-card-module .student-id-card header span {
  font-size: 2.15mm !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.id-card-module .student-id-card main {
  display: grid !important;
  gap: 3.5mm !important;
  grid-template-columns: 21mm 1fr !important;
  min-height: 0 !important;
  padding: 3mm 5mm 1.5mm !important;
}

.id-card-module .student-id-photo {
  height: 27mm !important;
  width: 21mm !important;
}

.id-card-module .student-id-details h2 {
  font-size: 4mm !important;
  line-height: 1.08 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.id-card-module .student-id-details dl {
  gap: .7mm 2mm !important;
}

.id-card-module .student-id-details dt {
  font-size: 1.75mm !important;
  line-height: 1 !important;
}

.id-card-module .student-id-details dd {
  font-size: 2.25mm !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.id-card-module .student-id-card footer {
  font-size: 2.2mm !important;
  padding: 1.5mm 5mm !important;
}

.troubleshooting-table td,
.troubleshooting-table th {
  vertical-align: top;
}

@media print {
  .id-card-module .id-card-batch {
    display: grid !important;
    gap: 3mm !important;
    grid-auto-rows: 54mm !important;
    grid-template-columns: repeat(2, 86mm) !important;
    justify-content: start !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}

/* Stable public profile strips and portal document layouts. */
.leader-profile,
.leader-profile:visited,
.leader-profile:hover,
.leader-profile:focus,
.school-staff-section a,
.school-staff-section a:visited,
.school-staff-section a:hover,
.school-staff-section a:focus,
.staff-profile-card,
.staff-profile-card:visited,
.staff-profile-card:hover,
.staff-profile-card:focus {
  text-decoration: none;
}

.school-staff-section {
  overflow: hidden;
}

.school-staff-marquee {
  margin-top: 24px;
  overflow: hidden;
  padding: 14px 0 28px;
}

.school-staff-track {
  align-items: stretch;
  animation: staff-scroll 42s linear infinite;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.school-staff-marquee:hover .school-staff-track,
.school-staff-marquee:focus-within .school-staff-track {
  animation-play-state: paused;
}

.staff-profile-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(25, 57, 67, .08);
  color: #243b45;
  display: flex;
  flex: 0 0 clamp(190px, 17vw, 225px);
  flex-direction: column;
  min-height: 292px;
  overflow: hidden;
  padding: 10px 10px 14px;
  position: relative;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: normal;
}

.staff-profile-card:hover,
.staff-profile-card:focus {
  border-color: #19706e;
  box-shadow: 0 18px 36px rgba(25, 57, 67, .18);
  color: #176b68;
  transform: translateY(-10px) scale(1.04);
  z-index: 5;
}

.staff-profile-card img,
.staff-profile-fallback {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  flex: 0 0 145px;
  height: 145px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.staff-profile-fallback {
  align-items: center;
  background: #e6f4f2;
  color: #19706e;
  display: flex;
  font-size: 2rem;
  justify-content: center;
}

.staff-profile-card > div {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 5px 0;
}

.staff-profile-card small {
  color: #19706e;
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-profile-card h3 {
  color: #223840;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 4px 0 6px;
}

.staff-profile-card p {
  color: #64757c;
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
  max-height: 82px;
  overflow: hidden;
}

.leader-profile:hover,
.leader-profile:focus {
  text-decoration: none;
}

.student-readonly-profile {
  display: grid;
  gap: 18px;
}

.student-readonly-profile .student-profile-showcase {
  background: linear-gradient(180deg, #fff, #f5fafb);
  border: 1px solid #dbe5e8;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18, 43, 53, .12);
  overflow: hidden;
}

.student-readonly-profile .student-profile-hero {
  align-items: center;
  background: radial-gradient(circle at 92% 10%, rgba(244, 201, 93, .22), transparent 28%), linear-gradient(135deg, #173642, #176b68);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 174px;
  padding: 24px;
}

.student-readonly-profile .student-readonly-header {
  align-items: center;
  display: flex;
  gap: 18px;
}

.student-readonly-profile .student-readonly-header img,
.student-readonly-profile .student-readonly-header > span {
  align-items: center;
  background: #eaf5f3;
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .18);
  color: #176b68;
  display: flex;
  flex: 0 0 106px;
  font-size: 2rem;
  height: 132px;
  justify-content: center;
  object-fit: cover;
  object-position: top center;
  width: 106px;
}

.student-readonly-profile .student-readonly-header div span {
  color: #f4c95d;
  display: block;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.student-readonly-profile .student-readonly-header h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin: 3px 0 5px;
}

.student-readonly-profile .student-readonly-header p {
  color: #d8e9ec;
  font-size: 1rem;
  margin: 0;
}

.student-readonly-profile .student-profile-balance {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  min-width: 240px;
  padding: 16px;
  text-align: right;
}

.student-readonly-profile .student-profile-balance span {
  color: #d8e9ec;
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
}

.student-readonly-profile .student-profile-balance strong {
  color: #fff;
  display: block;
  font-size: 1.55rem;
}

.student-readonly-profile .student-profile-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  padding: 18px;
}

.student-readonly-profile .student-profile-panels article,
.student-readonly-profile .student-readonly-grid > div,
.student-readonly-profile .student-fee-breakup > div,
.student-readonly-profile .student-fee-summary > div {
  border-radius: 7px;
}

.student-readonly-profile .student-profile-panels article {
  background: #f8fbfc;
  border: 1px solid #e0e8eb;
  padding: 16px;
}

.student-readonly-profile .student-readonly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.student-readonly-profile .student-readonly-grid .span-2 {
  grid-column: 1 / -1;
}

.student-readonly-profile .student-fee-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.id-card-module .id-card-batch {
  align-items: flex-start;
  display: grid;
  gap: 3mm;
  grid-template-columns: repeat(2, 86mm);
  justify-content: center;
  overflow-x: auto;
  padding: 18px 0;
}

.id-card-module .student-id-card {
  background: #fff;
  border: 0;
  border-radius: 3mm;
  box-shadow: 0 16px 36px rgba(10, 32, 40, .18);
  box-sizing: border-box;
  color: #1f333b;
  display: grid;
  grid-template-rows: 13mm 1fr 8mm;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.id-card-module .student-id-card.cr80,
.id-card-module .student-id-card.landscape {
  height: 54mm;
  max-height: 54mm;
  max-width: 86mm;
  min-height: 54mm;
  min-width: 86mm;
  width: 86mm;
}

.id-card-module .student-id-card header {
  background: #66828b;
  color: #fff;
  display: grid;
  min-height: 0;
  padding: 3mm 5mm;
  position: relative;
  text-align: left;
  z-index: 2;
}

.id-card-module .student-id-card header strong {
  font-size: 4.2mm;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.id-card-module .student-id-card header span {
  font-size: 2.15mm;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-card-module .student-id-card main {
  display: grid;
  gap: 3.5mm;
  grid-template-columns: 21mm 1fr;
  min-height: 0;
  padding: 3mm 5mm 1.5mm;
  position: relative;
  z-index: 1;
}

.id-card-module .student-id-card main::after {
  background: rgba(126, 207, 230, .34);
  border-radius: 50%;
  bottom: -28mm;
  content: "";
  height: 70mm;
  position: absolute;
  right: -20mm;
  width: 72mm;
  z-index: -1;
}

.id-card-module .student-id-photo {
  align-items: center;
  background: #eef6f5;
  border: 1px solid #66828b;
  border-radius: 3px;
  display: flex;
  height: 27mm;
  justify-content: center;
  overflow: hidden;
  width: 21mm;
}

.id-card-module .student-id-photo img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.id-card-module .student-id-details h2 {
  color: #111;
  font-size: 4mm;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 2mm;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-card-module .student-id-details dl {
  display: grid;
  gap: .7mm 2mm;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.id-card-module .student-id-details dt {
  color: #60727a;
  font-size: 1.75mm;
  line-height: 1;
  text-transform: uppercase;
}

.id-card-module .student-id-details dd {
  font-size: 2.25mm;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-card-module .student-id-details .wide {
  grid-column: 1 / -1;
}

.id-card-module .student-id-card footer {
  align-items: center;
  border-top: 1px solid #d8e3e7;
  display: flex;
  font-size: 2.2mm;
  justify-content: space-between;
  padding: 1.5mm 5mm;
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .staff-profile-card {
    flex-basis: min(76vw, 255px);
  }

  .staff-profile-card img,
  .staff-profile-fallback {
    height: 138px;
  }

  .student-readonly-profile .student-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-readonly-profile .student-profile-balance {
    text-align: left;
    width: 100%;
  }

  .student-readonly-profile .student-readonly-grid,
  .student-readonly-profile .student-fee-summary,
  .student-readonly-profile .student-profile-panels {
    grid-template-columns: 1fr;
  }
}

@media print {
  .id-card-module .id-card-batch {
    display: grid;
    gap: 3mm;
    grid-auto-rows: 54mm;
    grid-template-columns: repeat(2, 86mm);
    justify-content: start;
    overflow: visible;
    padding: 0;
  }

  .id-card-module .student-id-card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* Codex profile carousel restore: keeps the existing homepage layout and restores sliding/hover for faculty and alumni. */
.public-school-page .school-staff-section {
  overflow: hidden !important;
}

.public-school-page .school-staff-marquee {
  display: block !important;
  margin-top: 24px !important;
  overflow: hidden !important;
  padding: 14px 0 28px !important;
  width: 100% !important;
}

.public-school-page .school-staff-track {
  align-items: stretch !important;
  animation: codex-profile-slide 42s linear infinite !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  min-width: max-content !important;
  transform: translate3d(0, 0, 0);
  white-space: nowrap !important;
  will-change: transform !important;
}

.public-school-page .school-staff-marquee:hover .school-staff-track,
.public-school-page .school-staff-marquee:focus-within .school-staff-track {
  animation-play-state: paused !important;
}

.public-school-page .staff-profile-card,
.public-school-page a.staff-profile-card,
.public-school-page a.staff-profile-card:visited,
.public-school-page a.staff-profile-card:hover,
.public-school-page a.staff-profile-card:focus {
  text-decoration: none !important;
}

.public-school-page .staff-profile-card {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 clamp(190px, 17vw, 225px) !important;
  flex-direction: column !important;
  max-width: 225px !important;
  min-height: 292px !important;
  position: relative !important;
  text-align: center !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease !important;
  vertical-align: top !important;
  white-space: normal !important;
}

.public-school-page .staff-profile-card:hover,
.public-school-page .staff-profile-card:focus {
  border-color: #19706e !important;
  box-shadow: 0 18px 36px rgba(25, 57, 67, 0.18) !important;
  color: #176b68 !important;
  transform: translateY(-10px) scale(1.04) !important;
  z-index: 5 !important;
}

.public-school-page .staff-profile-card img,
.public-school-page .staff-profile-fallback {
  border-radius: 10px !important;
  flex: 0 0 145px !important;
  height: 145px !important;
  object-fit: cover !important;
  object-position: top center !important;
  width: 100% !important;
}

.public-school-page .staff-profile-card > div {
  align-items: center !important;
  display: inline-flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 12px 5px 0 !important;
}

.public-school-page .staff-profile-card small,
.public-school-page .staff-profile-card h3,
.public-school-page .staff-profile-card p {
  max-width: 100% !important;
}

@keyframes codex-profile-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767.98px) {
  .public-school-page .staff-profile-card {
    flex-basis: min(76vw, 255px) !important;
    max-width: min(76vw, 255px) !important;
  }
}

/* Global layout reliability guard.
   Keeps modules inside the viewport without changing the AdminLTE visual language. */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

body,
.wrapper,
.content-wrapper,
.main-header,
.main-sidebar,
.main-footer {
  min-width: 0 !important;
}

.wrapper,
.content-wrapper,
.content,
.content .container-fluid,
.content-header .container-fluid {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.content .row,
.content-header .row,
.card .row {
  min-width: 0 !important;
}

.content [class*="col-"],
.content-header [class*="col-"] {
  min-width: 0 !important;
}

.card,
.card-body,
.card-header,
.card-footer,
.callout,
.alert {
  max-width: 100% !important;
  min-width: 0 !important;
}

.content-wrapper img,
.content-wrapper video,
.content-wrapper canvas,
.content-wrapper iframe {
  max-width: 100% !important;
}

.content-wrapper input,
.content-wrapper select,
.content-wrapper textarea,
.content-wrapper .form-control,
.content-wrapper .input-group {
  max-width: 100% !important;
  min-width: 0 !important;
}

.content-wrapper .table-responsive {
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.content-wrapper .table {
  margin-bottom: 0;
  max-width: 100% !important;
  table-layout: auto;
  width: 100% !important;
}

.content-wrapper .table th,
.content-wrapper .table td {
  max-width: 260px;
  overflow-wrap: anywhere;
  vertical-align: middle;
  white-space: normal !important;
  word-break: normal;
}

.content-wrapper .table td.text-right,
.content-wrapper .table th.text-right {
  text-align: right !important;
}

.content-wrapper .table .btn,
.content-wrapper .text-nowrap .btn {
  margin-bottom: 3px;
  white-space: nowrap;
}

.content-wrapper .text-nowrap {
  white-space: normal !important;
}

.content-wrapper .dropdown-menu {
  max-width: min(92vw, 420px);
  overflow-x: hidden !important;
}

.gallery-module .gallery-scroll-shell,
.public-info-sidebar,
.public-page-sidebar,
.settings-sidebar-preview {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (min-width: 768px) {
  .gallery-module .gallery-scroll-shell {
    max-height: none !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 767.98px) {
  .content-wrapper .table th,
  .content-wrapper .table td {
    max-width: none;
  }

  .content-wrapper .card-body.table-responsive {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .content-wrapper .table,
  .content-wrapper .table thead,
  .content-wrapper .table tbody,
  .content-wrapper .table tr,
  .content-wrapper .table th,
  .content-wrapper .table td {
    display: block;
    width: 100% !important;
  }

  .content-wrapper .table thead {
    display: none;
  }

  .content-wrapper .table tr {
    border-bottom: 1px solid #e5eaee;
    padding: .65rem 0;
  }

  .content-wrapper .table td,
  .content-wrapper .table th {
    border-top: 0;
    padding: .35rem .25rem;
    text-align: left !important;
  }
}

/* Internal portal header: keep navigation in the left sidebar, not in the top bar. */
.portal-layout .main-header {
  min-height: 54px;
}

.portal-layout .portal-header-title {
  color: #53656d;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.portal-layout .main-header .navbar-nav.ml-auto {
  align-items: center !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
  max-width: none !important;
  min-width: 104px !important;
  overflow: visible !important;
}

.portal-layout .main-header .btn-link.nav-link {
  border: 0;
  min-width: 38px;
}

.portal-layout .main-header .nav-user-link {
  align-items: center;
  color: #4f6068;
  display: inline-flex;
  gap: 6px;
  max-width: min(30vw, 220px);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.portal-layout .main-header .nav-user-name {
  display: inline-block;
  font-weight: 700;
  max-width: min(16vw, 120px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-layout .main-header .nav-user-role {
  color: #73828a;
  font-size: .78rem;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-layout .main-header .navbar-nav.ml-auto > .nav-item {
  flex: 0 0 auto;
}

.portal-layout .main-header .navbar-nav.ml-auto > .nav-item:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.public-school-actions .public-school-user span {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.portal-layout .main-sidebar,
.portal-layout .main-sidebar .sidebar {
  overflow-x: hidden;
}

.portal-layout .nav-sidebar .nav-link {
  align-items: center;
  display: flex;
  min-height: 40px;
}

.portal-layout .nav-sidebar .nav-link p {
  color: inherit;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.portal-layout .nav-sidebar .nav-treeview {
  background: rgba(0, 0, 0, .12);
}

@media (min-width: 992px) {
  .portal-layout:not(.sidebar-collapse) .main-sidebar {
    margin-left: 0 !important;
  }
}

.diagnostic-module-card {
  border-left-width: 4px;
  min-height: 245px;
}

.diagnostic-module-card .card-body {
  display: flex;
  flex-direction: column;
}

.diagnostic-result {
  flex: 1 1 auto;
  line-height: 1.35;
  max-height: 4.1em;
  overflow: hidden;
}

.diagnostic-module-card .btn-xs {
  min-width: 72px;
}

.diagnostic-progress-wrap {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  padding: 8px;
}

.diagnostic-code-map {
  background: #fbfdff;
  border-top: 1px solid #e4ebf3;
  padding-top: 8px;
}

.diagnostic-code-table {
  background: #fff;
  font-size: .78rem;
}

.diagnostic-code-table td {
  vertical-align: top;
}

#diagnosticCodeModal .modal-dialog {
  max-width: min(1180px, calc(100vw - 32px));
}

#diagnosticCodeModal .modal-body {
  max-height: 70vh;
  overflow: auto;
}

#diagnosticCodeModal .diagnostic-code-table {
  font-size: .88rem;
  min-width: 860px;
}

#diagnosticCodeModal .diagnostic-code-table th {
  background: #eef5fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

#diagnosticCodeModal .diagnostic-code-table code {
  white-space: normal;
  word-break: break-word;
}

#diagnosticCodeModal .diagnostic-code-row {
  cursor: pointer;
}

#diagnosticCodeModal .diagnostic-code-row-active td {
  background: #eef7ff;
  border-color: #9fd0ff !important;
}

#diagnosticCodeModal .diagnostic-code-snippet {
  border-color: #ccd8e5;
}

#diagnosticCodeModal .diagnostic-code-snippet pre {
  background: #101828;
  color: #eef4ff;
  font-size: .78rem;
  line-height: 1.45;
  max-height: 44vh;
  overflow: auto;
  padding: 14px;
  white-space: pre;
}

#diagnosticCodeModal .diagnostic-code-snippet code {
  color: inherit;
  white-space: pre;
}

#diagnosticCodeModal .diagnostic-code-snippet-problem {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, .12);
}

#diagnosticCodeModal .diagnostic-code-snippet-problem .card-header {
  background: #fff1f1;
  border-bottom-color: #f2b8b8;
  color: #8a1f17;
}

#diagnosticCodeModal .diagnostic-code-snippet-problem pre {
  background: #2b0f12;
  color: #ffd6d6;
}

#diagnosticCodeModal .diagnostic-correction-note {
  background: #fff7e6;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  color: #723b13;
  padding: 8px 10px;
}

#diagnosticCodeModal .diagnostic-correction-mini {
  color: #b42318;
  font-size: .82rem;
  font-weight: 700;
}

.diagnostic-problem-row td {
  background: #fff1f1;
  border-color: #f2b8b8 !important;
}

.diagnostic-problem-row code {
  color: #b42318;
  font-weight: 700;
}

.video-mini-player {
  bottom: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .35);
  max-width: min(420px, calc(100vw - 28px));
  position: fixed;
  right: 18px;
  width: 420px;
  z-index: 1050;
}

.video-mini-player video {
  max-height: 235px !important;
}

.file-manager-page .small-box {
  border-radius: 8px;
}

.file-manager-filter {
  display: block;
}

.file-manager-layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-manager-layer-tabs .btn {
  border-radius: 999px;
  font-weight: 700;
  min-width: 96px;
}

.file-manager-panel {
  min-height: 520px;
}

.file-manager-list {
  max-height: 520px;
  overflow: auto;
}

.file-manager-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.file-manager-records-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.file-manager-record-card {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  overflow: hidden;
}

.file-manager-record-card .card-header {
  background: #f5f9fc;
}

.file-manager-record-card .card-title {
  font-size: 1rem;
  font-weight: 800;
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-manager-record-preview {
  max-height: 220px;
  overflow: auto;
}

.file-manager-record-preview th {
  background: #eef5fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.file-manager-record-preview td,
.file-manager-record-preview th {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-manager-file {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 92px;
  overflow: hidden;
}

.file-manager-thumb {
  align-items: center;
  background: #eef4f9;
  display: flex;
  justify-content: center;
}

.file-manager-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.file-manager-thumb span {
  align-items: center;
  color: #476173;
  display: flex;
  font-size: 1.8rem;
  justify-content: center;
}

.file-manager-file-body {
  min-width: 0;
  padding: 10px;
}

.file-manager-file-body strong,
.file-manager-file-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-manager-preview {
  max-height: 560px;
  overflow: auto;
}

.file-manager-preview th {
  background: #f3f7fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 576px) {
  .video-mini-player {
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}

.dynamic-form-field {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #d8e2ef !important;
}

.dynamic-form-field:hover {
  border-color: #8ab4f8 !important;
  box-shadow: 0 8px 22px rgba(30, 64, 175, .08);
}

.code-review-toolbar .btn {
  min-height: 38px;
}

.code-review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.code-review-card {
  border-left: 4px solid #17a2b8;
  min-height: 214px;
}

.code-review-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.code-review-result {
  flex: 1 1 auto;
  line-height: 1.45;
}

.code-review-modal {
  align-items: stretch;
  background: rgba(15, 23, 42, .62);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2050;
}

.code-review-modal.d-none {
  display: none !important;
}

.code-review-modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .28);
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  min-height: 0;
  overflow: hidden;
  width: min(100%, 1320px);
}

.code-review-modal-header,
.code-review-modal-footer {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dce3ea;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 14px 18px;
}

.code-review-modal-footer {
  border-bottom: 0;
  border-top: 1px solid #dce3ea;
  justify-content: flex-end;
}

.code-review-modal-body {
  background: #f6f8fb;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

body.code-review-modal-open {
  overflow: hidden;
}

.code-review-code-section {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-left: 5px solid #6c757d;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.code-review-code-section.code-review-problem {
  border-left-color: #dc3545;
}

.code-review-code-heading {
  align-items: flex-start;
  background: #f8fafc;
  border-bottom: 1px solid #d9e2ec;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.code-review-code-heading code {
  color: #c2255c;
  display: block;
  font-size: .875rem;
  margin-top: 3px;
  white-space: normal;
  word-break: break-word;
}

.code-review-code-section p {
  padding-left: 14px;
  padding-right: 14px;
}

.code-review-suggestion {
  background: #fff8e1;
  border: 1px solid #ffe08a;
  border-radius: 6px;
  color: #614700;
  margin: 8px 14px;
  padding: 8px 10px !important;
}

.code-review-problem .code-review-suggestion {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.code-review-code-block {
  background: #0f172a;
  color: #e2e8f0;
  font-size: .82rem;
  line-height: 1.45;
  margin: 0;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  white-space: pre;
}

.code-review-problem .code-review-code-block {
  background: #2f1014;
  color: #ffe4e6;
}

.online-class-editor .form-group {
  margin-bottom: .85rem;
}

.online-class-table td {
  vertical-align: middle;
}

.teacher-online-class-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.teacher-online-class-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  border: 1px solid #d7e8f3;
  border-left: 4px solid #17a2b8;
  border-radius: 8px;
  padding: 14px;
}

.teacher-online-class-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

.student-online-class-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.student-online-class-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
  border: 1px solid #d9efdf;
  border-left: 4px solid #28a745;
  border-radius: 8px;
  padding: 14px;
}

.student-online-class-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 6px;
}

.online-class-join-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
}

.online-class-join-card .card-body {
  display: grid;
  gap: 14px;
}

.online-class-join-identity {
  align-items: center;
  background: #eefaf2;
  border: 1px solid #d8efdf;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.online-class-join-identity > span {
  align-items: center;
  background: #28a745;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.online-class-join-identity strong,
.online-class-join-identity small {
  display: block;
}

.online-class-join-details {
  margin-bottom: 0;
}

.online-class-muted-note {
  align-items: center;
  background: #fff8e1;
  border: 1px solid #f4d884;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.online-class-muted-note i {
  color: #b7791f;
  font-size: 1.2rem;
}

.online-class-join-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.online-class-join-tools label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.online-class-quality-select {
  min-width: 135px;
}

.online-class-data-hint {
  display: block;
}

.online-class-join-card:fullscreen {
  background: #fff;
  overflow: auto;
  padding: 16px;
}

.integration-page {
  background:
    linear-gradient(90deg, rgba(8, 122, 121, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(188, 122, 18, .04) 1px, transparent 1px),
    linear-gradient(135deg, #f6faf9 0%, #edf3f6 52%, #f9f6ef 100%);
  background-size: 44px 44px, 44px 44px, auto;
  padding-top: 8px;
}

.integration-page-header {
  background: #f6faf9;
  border-bottom: 1px solid #dbe4ea;
}

.integration-version-badge {
  color: #234d4f;
  font-weight: 700;
}

.integration-command-hero {
  background: linear-gradient(135deg, #12343b, #0b6d67 58%, #8f5c14);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  margin-bottom: 16px;
  overflow: hidden;
  padding: 22px 24px;
  position: relative;
}

.integration-command-hero::before {
  background-image: linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: .22;
  position: absolute;
}

.integration-command-hero > * {
  min-width: 0;
  position: relative;
}

.integration-command-hero h2 {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.integration-command-hero p {
  color: rgba(255,255,255,.84);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
  max-width: 780px;
}

.integration-hero-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.integration-hero-kpis div {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.integration-hero-kpis strong,
.integration-hero-kpis small {
  display: block;
}

.integration-hero-kpis strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.integration-hero-kpis small {
  color: rgba(255,255,255,.78);
  overflow-wrap: anywhere;
}

.integration-security-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 16px;
}

.integration-security-strip > div {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid #dbe4ea;
  border-left: 4px solid #087a79;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 48, 60, .07);
  display: flex;
  gap: 10px;
  min-height: 58px;
  min-width: 0;
  padding: 10px 12px;
}

.integration-security-strip i {
  color: #087a79;
  flex: 0 0 auto;
  font-size: 1.1rem;
}

.integration-security-strip span {
  color: #172330;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.integration-card {
  background: rgba(255,255,255,.97);
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(35, 48, 60, .10);
  overflow: hidden;
}

.integration-card.card-outline {
  border-top-width: 4px;
}

.integration-card .card-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dbe4ea;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.integration-card .card-title {
  align-items: center;
  display: flex;
  font-size: 1.08rem;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.integration-card .badge {
  flex: 0 0 auto;
}

.integration-card .card-body {
  background: rgba(255,255,255,.88);
}

.integration-status-box {
  background: linear-gradient(135deg, #f8fbfc, #eef5f4);
  border: 1px solid #d7e4e4;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  min-width: 0;
  padding: 12px;
}

.integration-status-box strong,
.integration-status-box small,
.integration-status-box span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.integration-status-box strong {
  color: #172330;
  font-size: 1.02rem;
}

.integration-status-box small,
.integration-status-box span {
  color: #5f6b7a;
}

.integration-update-actions {
  align-items: center;
  background: #fffaf0;
  border: 1px dashed #d9c38d;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
  padding: 10px;
}

.integration-update-actions .btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  white-space: normal;
}

.integration-update-actions small {
  color: #64748b;
  flex: 1 1 190px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.integration-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.integration-stepper button {
  background: #f7fafb;
  border: 1px solid #d7e0e7;
  border-radius: 999px;
  color: #526071;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  min-height: 36px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  white-space: normal;
}

.integration-stepper button.is-active {
  background: #12343b;
  border-color: #12343b;
  color: #fff;
}

.integration-step h4 {
  color: #172330;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.integration-step p,
.integration-step label,
.integration-step input,
.integration-step select {
  min-width: 0;
}

.integration-provider-guide {
  background: #eef8f6;
  border: 1px solid #cce7e4;
  border-left: 4px solid #087a79;
  border-radius: 8px;
  color: #234d4f;
  font-weight: 650;
  line-height: 1.4;
  margin-top: 4px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.integration-checklist,
.integration-final-check {
  display: grid;
  gap: 10px;
}

.integration-checklist label,
.integration-final-check p {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.integration-checklist input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.integration-card .card-footer {
  background: #fbfcfd;
  border-top: 1px solid #dbe4ea;
}

.integration-card .card-footer .btn {
  border-radius: 8px;
  font-weight: 700;
  min-height: 36px;
}

.integration-connection-doctor {
  background: #fff;
  border: 1px solid #dbe4ea;
  border-left: 5px solid #0c7489;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 44, 61, .08);
  margin-bottom: 18px;
  overflow: hidden;
}

.integration-connection-doctor.connection-pass {
  border-left-color: #168a4a;
}

.integration-connection-doctor.connection-fail {
  border-left-color: #c63f2f;
}

.doctor-summary {
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fbfc, #eef6f7);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.doctor-kicker {
  color: #0c7489;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.doctor-summary h3 {
  color: #12343b;
  font-size: 1.22rem;
  font-weight: 800;
  margin: 2px 0 6px;
}

.doctor-summary p {
  color: #526575;
  margin: 0;
}

.doctor-status {
  background: #12343b;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 8px 12px;
}

.connection-pass .doctor-status {
  background: #168a4a;
}

.connection-fail .doctor-status {
  background: #c63f2f;
}

.doctor-issues,
.doctor-attempts {
  display: grid;
  gap: 10px;
  padding: 14px 18px 0;
}

.doctor-attempts {
  padding-bottom: 18px;
}

.doctor-issue,
.doctor-attempt {
  background: #fbfcfd;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.doctor-issue strong,
.doctor-attempt strong {
  color: #152b36;
  font-weight: 800;
}

.doctor-issue span,
.doctor-attempt span {
  color: #334b59;
}

.doctor-issue small,
.doctor-attempt small {
  color: #667988;
}

.doctor-issue.severity-failed {
  background: #fff5f3;
  border-color: #efb4aa;
}

.doctor-issue.severity-warning {
  background: #fffaf0;
  border-color: #f0d28a;
}

.doctor-attempt.is-applied {
  background: #eef9f2;
  border-color: #95d2ad;
}

.integration-card-footer {
  display: grid !important;
  gap: 12px;
}

.integration-doctor-actions,
.integration-step-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.integration-doctor-actions {
  border-bottom: 1px dashed #d5e0e6;
  padding-bottom: 10px;
}

.integration-doctor-actions .btn-sm {
  min-width: 54px;
}

.integration-step-actions {
  justify-content: space-between;
}

@media (max-width: 991.98px) {
  .integration-command-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .integration-page-header .text-md-right {
    margin-top: 10px;
    text-align: left !important;
  }

  .integration-hero-kpis,
  .integration-stepper {
    grid-template-columns: 1fr;
  }

  .integration-card .card-header,
  .integration-card .card-footer,
  .integration-update-actions {
    align-items: stretch;
  }

  .integration-card .card-footer {
    display: grid !important;
    gap: 8px;
  }

  .integration-card .card-footer > div {
    display: grid;
    gap: 8px;
  }

  .doctor-summary {
    display: grid;
  }

  .doctor-status {
    justify-self: start;
  }
}

@media (max-width: 991.98px) {
  .online-class-join-shell {
    grid-template-columns: 1fr;
  }
}

.video-card-preview {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #111827;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.video-card-preview video,
.video-card-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-card-preview-badge {
  align-items: center;
  background: rgba(15, 23, 42, .78);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
}

.video-card-preview-empty {
  align-items: center;
  color: #cbd5e1;
  display: flex;
  font-size: 2.2rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

@media (max-width: 576px) {
  .code-review-modal {
    padding: 8px;
  }

  .code-review-modal-header,
  .code-review-modal-footer {
    padding: 10px;
  }

  .code-review-modal-body {
    padding: 10px;
  }
}

.permission-audit-hero {
  align-items: center;
  background: linear-gradient(135deg, #102a43, #0f766e);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.permission-audit-hero span,
.permission-role-card span {
  display: block;
  font-size: .86rem;
  opacity: .86;
}

.permission-audit-hero strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.permission-audit-hero p,
.permission-role-card p {
  margin: 6px 0 0;
}

.permission-audit-counts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.permission-role-card {
  border: 1px solid #d8e2ea;
  border-top: 3px solid #0ea5a4;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.permission-role-card strong {
  color: #102a43;
  display: block;
  font-size: 1.35rem;
}

.permission-role-card small {
  color: #536878;
  display: block;
  margin-top: 6px;
}

.permission-audit-card {
  overflow: hidden;
}

.permission-audit-table {
  min-width: 1180px;
}

.permission-audit-table th {
  background: #f4f7fa;
  color: #102a43;
  font-size: .86rem;
  white-space: nowrap;
}

.permission-audit-table td {
  vertical-align: top;
}

.permission-audit-table td:first-child strong,
.permission-audit-table td:first-child small {
  display: block;
}

.permission-audit-table td:first-child small {
  color: #64748b;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-row-risk {
  background: #fff8ed;
}

.permission-row-risk:hover {
  background: #fff2da !important;
}

.permission-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 420px;
}

.permission-chip {
  border: 1px solid #d7e2eb;
  border-radius: 999px;
  color: #172033;
  display: inline-flex;
  font-size: .78rem;
  line-height: 1.15;
  padding: 4px 8px;
}

.permission-chip-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
  font-weight: 700;
}

.permission-chip-warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
  font-weight: 700;
}

.permission-chip-info {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.permission-chip-secondary,
.permission-chip-muted {
  background: #f1f5f9;
  color: #475569;
}

.permission-audit-table td:nth-child(4) strong,
.permission-audit-table td:nth-child(4) span,
.permission-audit-table td:nth-child(4) small {
  display: block;
}

.permission-audit-table td:nth-child(4) strong {
  color: #b91c1c;
  font-size: 1.15rem;
}

.permission-audit-table td:nth-child(4) small {
  color: #64748b;
}

.permission-findings {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.permission-finding {
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  padding: 10px 12px;
}

.permission-finding-danger {
  background: #fff1f2;
  border-left-color: #dc2626;
}

.permission-finding-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.permission-finding-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.permission-finding strong,
.permission-finding small {
  display: block;
}

.permission-finding p {
  margin: 6px 0;
}

.permission-definition-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.permission-definition-list > div {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
}

.permission-definition-list strong,
.permission-definition-list small {
  display: block;
}

.permission-definition-list p {
  color: #64748b;
  margin: 5px 0 0;
}

@media (max-width: 767.98px) {
  .permission-audit-hero {
    align-items: flex-start;
    display: grid;
  }

  .permission-audit-counts {
    justify-content: flex-start;
  }
}

.migration-hero {
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #155e75);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px 24px;
}

.migration-hero span,
.migration-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.migration-hero strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 3px 0 6px;
}

.migration-kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 430px;
}

.migration-kpi-grid .badge {
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 9px 10px;
}

.migration-card {
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.migration-step-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.migration-step-card {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-left: 4px solid #64748b;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  margin: 0;
  min-height: 196px;
  padding: 14px;
}

.migration-step-card input:disabled {
  cursor: not-allowed;
}

.migration-step-primary {
  border-left-color: #2563eb;
}

.migration-step-success {
  border-left-color: #16a34a;
}

.migration-step-warning {
  border-left-color: #f59e0b;
}

.migration-step-danger {
  border-left-color: #dc2626;
}

.migration-step-secondary {
  border-left-color: #64748b;
}

.migration-step-check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.migration-step-card small,
.migration-step-card em {
  color: #64748b;
}

.migration-step-card p {
  margin: 0;
}

.migration-table-tags,
.migration-column-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.migration-table-tags span,
.migration-column-list code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #334155;
  font-size: 0.78rem;
  padding: 3px 6px;
}

.migration-schema-table th,
.migration-schema-table td {
  vertical-align: middle;
}

.migration-run-list {
  display: grid;
  gap: 0;
  max-height: 520px;
  overflow: auto;
}

.migration-run-item {
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.migration-run-item strong,
.migration-run-item small {
  display: block;
}

.migration-run-item small {
  color: #64748b;
}

.migration-run-item p {
  color: #475569;
  margin: 0;
}

@media (max-width: 767.98px) {
  .migration-hero {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .migration-kpi-grid {
    justify-content: flex-start;
    max-width: none;
  }
}

.activity-audit-hero {
  align-items: center;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px 24px;
}

.activity-audit-hero span,
.activity-audit-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.activity-audit-hero strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 3px 0 6px;
}

.activity-audit-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 460px;
}

.activity-audit-counts .badge {
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 9px 10px;
}

.activity-audit-filter-card,
.activity-audit-summary-card,
.activity-audit-table-card {
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.activity-audit-filter {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) auto;
}

.activity-audit-filter label {
  color: #334155;
  font-weight: 700;
}

.activity-audit-filter-actions {
  display: flex;
  gap: 8px;
}

.activity-module-row {
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-decoration: none;
}

.activity-module-row:hover {
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.activity-module-row strong,
.activity-module-row small,
.activity-audit-table strong,
.activity-audit-table small {
  display: block;
}

.activity-module-row small,
.activity-audit-table small {
  color: #64748b;
}

.activity-audit-table th,
.activity-audit-table td {
  vertical-align: top;
}

.activity-audit-table code {
  white-space: nowrap;
}

.activity-field-list {
  color: #475569;
  display: block;
  max-width: 280px;
}

@media (max-width: 991.98px) {
  .activity-audit-filter {
    grid-template-columns: 1fr;
  }

  .activity-audit-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .activity-audit-hero {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .activity-audit-counts {
    justify-content: flex-start;
    max-width: none;
  }
}

.file-quarantine-page .card {
  border-radius: 6px;
}

.quarantine-rule-card {
  border: 1px solid #dbe4ee;
  min-height: 100%;
}

.quarantine-rule-top {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr;
}

.quarantine-rule-icon {
  align-items: center;
  background: #e8f7ff;
  border: 1px solid #b9e6f7;
  border-radius: 8px;
  color: #087ea4;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.quarantine-rule-card h3 {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.quarantine-rule-card p {
  color: #475569;
  margin: 0;
}

.quarantine-rule-grid {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 96px 1fr;
  margin: 14px 0 0;
  overflow: hidden;
}

.quarantine-rule-grid dt,
.quarantine-rule-grid dd {
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
  padding: 8px 10px;
}

.quarantine-rule-grid dt {
  color: #334155;
  font-weight: 800;
}

.quarantine-rule-grid dd {
  background: #fff;
  color: #111827;
}

.quarantine-rule-grid dt:nth-last-of-type(1),
.quarantine-rule-grid dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.quarantine-event-table td,
.quarantine-event-table th {
  vertical-align: top;
}

@media (max-width: 575.98px) {
  .quarantine-rule-grid {
    grid-template-columns: 1fr;
  }
}

.update-history-page .card,
.update-history-box {
  border-radius: 6px;
}

.update-build-table td,
.update-build-table th {
  vertical-align: top;
}

.update-module-list {
  color: #111827;
  display: block;
  max-width: 620px;
}

.update-source-path {
  background: #f8fafc;
  color: #475569;
  display: block;
  max-width: 360px;
  overflow: hidden;
  padding: 3px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-module-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.update-module-option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  margin: 0;
  padding: 12px;
}

.update-module-option:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.update-module-option input {
  margin-top: 4px;
}

.update-module-option strong,
.update-module-option small {
  display: block;
}

.update-module-option small {
  color: #64748b;
}

.performance-center-page .card,
.performance-panel,
.performance-metric-card {
  border-radius: 6px;
}

.performance-hero {
  align-items: center;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.performance-success {
  background: linear-gradient(135deg, #116149, #1c9a70);
}

.performance-warning {
  background: linear-gradient(135deg, #8f6505, #d69716);
}

.performance-danger {
  background: linear-gradient(135deg, #983329, #d24a38);
}

.performance-secondary {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

.performance-hero span,
.performance-hero p {
  display: block;
  margin: 0;
}

.performance-hero > div > span {
  opacity: 0.88;
  text-transform: uppercase;
}

.performance-hero strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.performance-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.performance-warning-list {
  display: grid;
  gap: 5px;
}

.performance-warning-list span {
  display: block;
}

.performance-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.performance-metric-card {
  background: #fff;
  border: 1px solid #dce7ee;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  min-height: 142px;
  padding: 16px;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.performance-metric-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.performance-metric-card > i {
  color: #0f766e;
  font-size: 1.45rem;
  position: absolute;
  right: 16px;
  top: 16px;
}

.performance-metric-card span,
.performance-metric-card strong,
.performance-metric-card small {
  display: block;
  max-width: calc(100% - 44px);
}

.performance-metric-card span {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.performance-metric-card strong {
  color: #102a43;
  font-size: 1.65rem;
  line-height: 1.18;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.performance-metric-card small {
  color: #64748b;
  margin-top: 7px;
}

.performance-metric-card em {
  bottom: 12px;
  font-style: normal;
  position: absolute;
  right: 12px;
}

.performance-border-success {
  border-top: 4px solid #198754;
}

.performance-border-warning {
  border-top: 4px solid #ffc107;
}

.performance-border-danger {
  border-top: 4px solid #dc3545;
}

.performance-border-secondary {
  border-top: 4px solid #6c757d;
}

.performance-table {
  min-width: 700px;
}

.performance-table th {
  background: #f5f8fa;
  color: #173642;
  font-size: 0.84rem;
  white-space: nowrap;
}

.performance-table td {
  vertical-align: top;
}

.performance-table strong,
.performance-table small {
  display: block;
}

.performance-table small {
  color: #64748b;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.performance-image-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.performance-image-item {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  padding: 11px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.performance-image-item:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.performance-image-item strong,
.performance-image-item small,
.performance-image-item em {
  display: block;
}

.performance-image-item strong {
  color: #102a43;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.performance-image-item small,
.performance-image-item em {
  color: #64748b;
  font-style: normal;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .performance-hero {
    align-items: flex-start;
    display: block;
  }

  .performance-hero-meta {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .performance-table {
    min-width: 620px;
  }
}
