:root {
  --bg: #04070d;
  --panel: rgba(12, 18, 28, 0.86);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(225, 174, 77, 0.24);
  --line-soft: rgba(255, 255, 255, 0.11);
  --text: #fff8ea;
  --muted: #c7bdab;
  --gold: #d9a94e;
  --gold-2: #ffe19b;
  --blue: #0f2442;
  --green: #75d8ae;
  --red: #ff7f91;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(217, 169, 78, 0.13), transparent 28rem),
    radial-gradient(circle at 100% 0, rgba(31, 76, 139, 0.18), transparent 32rem),
    linear-gradient(135deg, #03050a, #08101b 55%, #03050a);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid rgba(217, 169, 78, 0.18);
  background: rgba(3, 5, 10, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img,
.portal-brand img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  border: 1.5px solid rgba(255, 225, 155, 0.78);
  box-shadow: 0 0 0 5px rgba(217, 169, 78, 0.08), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.brand strong,
.portal-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.brand small,
.portal-brand small {
  display: block;
  color: var(--gold-2);
  margin-top: 2px;
  font-size: 0.78rem;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-nav a,
.login-link,
.btn,
.portal-side a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.public-nav a.active,
.public-nav a:hover,
.login-link:hover,
.portal-side a.active,
.portal-side a:hover {
  color: #161006;
  border-color: rgba(255, 225, 155, 0.85);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.login-link,
.btn.glass {
  color: var(--gold-2);
  border-color: rgba(217, 169, 78, 0.46);
  background: rgba(0, 0, 0, 0.25);
}

.btn.gold {
  color: #120d05;
  border-color: rgba(255, 225, 155, 0.9);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 38px rgba(217, 169, 78, 0.2);
}

.site-main {
  padding: 0 clamp(18px, 4vw, 62px) 40px;
}

.home-hero,
.page-hero,
.portal-login {
  min-height: 610px;
  display: grid;
  align-items: center;
  gap: 36px;
  padding: clamp(36px, 6vw, 76px);
  border-bottom: 1px solid rgba(217, 169, 78, 0.16);
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.98), rgba(4, 7, 13, 0.72) 42%, rgba(4, 7, 13, 0.24)),
    linear-gradient(0deg, rgba(4, 7, 13, 0.95), transparent 56%),
    url("hero-campus.png") center / cover no-repeat;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.hero-copy,
.page-hero > div,
.portal-login > div:first-child {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 6.4rem);
}

h1 span,
h2 span {
  color: var(--gold);
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card,
.floating-award,
.panel,
.premium-form,
.role-grid,
.portal-trust,
.metrics article,
.programs article,
.ecosystem,
.values article,
.offerings article,
.mini-grid article,
.portal-main,
.portal-side,
.module-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 380px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 30px;
}

.hero-card img {
  width: 126px;
  height: 126px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.hero-card h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

.stars {
  color: var(--gold-2);
  font-size: 1.3rem;
}

.metrics,
.programs,
.mini-grid,
.values,
.process,
.module-grid,
.dashboard-split {
  display: grid;
  gap: 16px;
}

.metrics {
  grid-template-columns: repeat(4, 1fr);
  margin: -62px clamp(10px, 3vw, 34px) 34px;
  position: relative;
  z-index: 2;
}

.metrics article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(217, 169, 78, 0.28);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 225, 155, 0.2), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
}

.metrics article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(217, 169, 78, 0.16);
  border-radius: 50%;
  background: rgba(217, 169, 78, 0.055);
}

.metrics span,
.metrics strong,
.metrics small {
  display: block;
}

.metrics strong {
  color: #fff;
  font-size: 2.15rem;
  margin: 8px 0 4px;
}

.metrics small {
  color: var(--muted);
}

.programs {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.programs article,
.ecosystem,
.offerings article,
.mini-grid article,
.values article,
.module-grid article,
.panel {
  padding: 24px;
}

.icon-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  margin-bottom: 16px;
}

.programs strong,
.offerings strong,
.mini-grid strong,
.values strong,
.module-grid strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 8px;
}

.ecosystem {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.mini-grid {
  grid-template-columns: repeat(4, 1fr);
}

.page-hero {
  grid-template-columns: 1fr 280px;
}

.admissions-bg {
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.98), rgba(4, 7, 13, 0.72) 44%, rgba(4, 7, 13, 0.2)),
    url("hero-campus.png") center / cover no-repeat;
}

.floating-award {
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
}

.admission-suite,
.split-page,
.offerings,
.portal-login,
.portal-layout {
  display: grid;
  gap: 24px;
}

.admission-suite {
  grid-template-columns: 410px 1fr;
  margin-top: -38px;
}

.premium-form {
  display: grid;
  gap: 13px;
  padding: 28px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  padding: 0 13px;
  outline: 0;
}

textarea {
  min-height: 120px;
  padding: 12px 13px;
}

option {
  color: #111;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(117, 216, 174, 0.36);
  border-radius: 8px;
  color: var(--green);
  background: rgba(117, 216, 174, 0.08);
}

.process {
  grid-template-columns: repeat(4, 1fr);
}

.process article {
  padding: 26px;
  border-left: 1px solid var(--line-soft);
  text-align: center;
}

.process span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
}

.split-page {
  grid-template-columns: 1fr minmax(360px, 0.85fr);
  align-items: center;
  min-height: 640px;
  padding: clamp(34px, 5vw, 70px) 0;
}

.feature-img,
.offerings img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.feature-img {
  height: 420px;
}

.values {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.offerings {
  grid-template-columns: 0.75fr repeat(3, 1fr);
  align-items: start;
  padding: clamp(34px, 5vw, 70px) 0 28px;
}

.offerings article {
  overflow: hidden;
}

.offerings img {
  height: 165px;
  margin-bottom: 18px;
}

.wide {
  margin-bottom: 44px;
}

.portal-login {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  align-items: center;
}

.login-panel {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(217, 169, 78, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 22, 34, 0.94), rgba(5, 8, 14, 0.92));
  box-shadow: 0 28px 92px rgba(0, 0, 0, 0.54);
}

.secure-login-stack {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 28px;
}

.secure-login-stack article,
.login-alert,
.credential-hint {
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 169, 78, 0.12), rgba(7, 16, 30, 0.58));
}

.secure-login-stack article {
  padding: 16px 18px;
}

.secure-login-stack strong,
.secure-login-stack small {
  display: block;
}

.secure-login-stack strong {
  color: var(--gold);
  font-size: 1rem;
}

.secure-login-stack small {
  margin-top: 4px;
  color: var(--muted);
}

.login-alert {
  padding: 12px 14px;
  color: #ffe7a8;
  font-weight: 800;
}

.login-alert.danger {
  border-color: rgba(255, 114, 114, 0.42);
  color: #ffd2d2;
  background: linear-gradient(135deg, rgba(130, 31, 31, 0.38), rgba(7, 16, 30, 0.74));
}

.credential-hint {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.credential-hint span::before {
  content: "Secure username: ";
  color: var(--gold);
  font-weight: 900;
}

.login-panel img {
  width: 104px;
  height: 104px;
  justify-self: center;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.login-panel h2,
.login-panel > p {
  text-align: center;
}

.login-role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-role-select label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.login-role-select input {
  width: 18px;
  min-height: 18px;
}

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

.login-role-select small {
  color: var(--muted);
  margin-top: 4px;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-row input {
  width: 16px;
  min-height: 16px;
}

.login-row a {
  color: var(--gold-2);
  font-weight: 800;
}

.portal-trust {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  min-width: 0;
}

.portal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0, rgba(15, 36, 66, 0.36), transparent 34rem),
    linear-gradient(135deg, #020408, #07101c 54%, #020408);
}

.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 54px minmax(250px, 330px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(217, 169, 78, 0.22);
  background: #020407;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.nav-icon {
  width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 950;
}

.portal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 10px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar-actions .btn {
  white-space: nowrap;
}

.reminder-menu {
  position: relative;
}

.reminder-menu summary {
  list-style: none;
}

.reminder-menu summary::-webkit-details-marker {
  display: none;
}

.reminder-menu[open] summary {
  color: #151006;
  border-color: rgba(255, 225, 155, 0.76);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.reminder-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(217, 169, 78, 0.36);
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 169, 78, 0.2), transparent 10rem),
    linear-gradient(145deg, rgba(9, 15, 24, 0.98), rgba(3, 6, 11, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
}

.reminder-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(217, 169, 78, 0.36);
  border-top: 1px solid rgba(217, 169, 78, 0.36);
  background: #080d15;
  transform: rotate(45deg);
}

.reminder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-head strong {
  color: var(--gold-2);
}

.reminder-head a {
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.reminder-dropdown article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.reminder-dropdown article + article {
  margin-top: 9px;
}

.reminder-dropdown span,
.reminder-dropdown small {
  color: var(--muted);
}

.reminder-dropdown strong {
  color: var(--text);
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--gold);
}

.profile-menu[open] summary {
  background: rgba(217, 169, 78, 0.12);
}

.profile-menu > button,
.profile-menu > a {
  width: 210px;
  display: block;
  margin-top: 0;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  text-align: left;
  background: #05080e;
}

.profile-menu[open] > button,
.profile-menu[open] > a {
  position: absolute;
  right: 0;
  z-index: 40;
}

.profile-menu[open] > button:nth-of-type(1) {
  top: calc(100% + 8px);
}

.profile-menu[open] > button:nth-of-type(2) {
  top: calc(100% + 56px);
}

.profile-menu[open] > a {
  top: calc(100% + 104px);
}

.portal-search button,
.filter-bar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #141006;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.portal-layout {
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  min-height: calc(100vh - 87px);
  padding: 26px;
  gap: 26px;
}

.portal-side {
  position: sticky;
  top: 104px;
  height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  overflow: auto;
  background: #020407;
  border-color: rgba(217, 169, 78, 0.26);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.portal-side .portal-brand {
  margin-bottom: 16px;
}

.portal-side a:not(.portal-brand) {
  justify-content: flex-start;
}

.menu-group {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.menu-group summary {
  cursor: pointer;
  padding: 8px 10px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-group a {
  width: 100%;
  margin-top: 4px;
}

.portal-side a[data-icon]::before {
  content: attr(data-icon);
  width: 24px;
  margin-right: 10px;
  color: var(--gold-2);
  text-align: center;
}

.sidebar-collapsed .portal-layout {
  grid-template-columns: 104px minmax(0, 1fr);
}

.sidebar-collapsed .portal-side {
  padding: 16px 10px;
  align-items: stretch;
}

.sidebar-collapsed .portal-brand span,
.sidebar-collapsed .menu-group summary {
  display: none;
}

.sidebar-collapsed .menu-group {
  padding: 6px;
}

.sidebar-collapsed .portal-side a:not(.portal-brand) {
  width: 62px;
  min-height: 54px;
  padding: 0;
  justify-content: center;
  font-size: 0;
}

.sidebar-collapsed .portal-side a[data-icon]::before {
  margin-right: 0;
  font-size: 1rem;
}

.portal-main {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 38px;
  background:
    radial-gradient(circle at 18% 0, rgba(217, 169, 78, 0.14), transparent 24rem),
    radial-gradient(circle at 96% 10%, rgba(34, 84, 143, 0.18), transparent 28rem),
    linear-gradient(145deg, rgba(8, 13, 20, 0.94), rgba(2, 5, 10, 0.96));
  border: 1px solid rgba(217, 169, 78, 0.18);
  border-radius: 8px;
}

.portal-top {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: -8px -8px 30px;
  padding: 34px 24px 42px;
  border: 1px solid rgba(217, 169, 78, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.96), rgba(15, 36, 66, 0.44), rgba(2, 5, 10, 0.92)),
    radial-gradient(circle at 50% 0, rgba(255, 225, 155, 0.14), transparent 20rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.portal-top h1 {
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.portal-user {
  min-width: 160px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(135deg, rgba(217, 169, 78, 0.18), rgba(0, 0, 0, 0.34));
}

.portal-user.centered {
  display: inline-block;
  margin-top: 14px;
}

.portal-user span,
.portal-user small {
  display: block;
}

.search-result-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: -10px auto 28px;
  padding: 12px 18px;
  border: 1px solid rgba(217, 169, 78, 0.46);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(217, 169, 78, 0.16), rgba(15, 36, 66, 0.32));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.search-result-bar strong,
.search-result-bar span {
  color: var(--gold);
}

.dashboard-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
}

.dashboard-split.spacious {
  gap: 22px;
  margin-top: 22px;
}

.fee-overview-layout {
  grid-template-columns: minmax(0, 1fr);
}

.fee-overview-panel {
  padding: 34px;
}

.fee-overview-panel .filter-bar {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(150px, 0.4fr);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 30px;
}

.quick-actions a {
  position: relative;
  isolation: isolate;
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 11px;
  overflow: hidden;
  padding: 18px 18px 17px;
  border: 1px solid rgba(217, 169, 78, 0.32);
  border-radius: 8px;
  color: var(--gold-2);
  text-align: left;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 88% 12%, rgba(217, 169, 78, 0.18), transparent 7rem),
    rgba(5, 9, 15, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-actions a::before {
  content: "↗";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 225, 155, 0.54);
  border-radius: 8px;
  color: #151006;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 12px 28px rgba(217, 169, 78, 0.18);
}

.quick-actions a:nth-child(1)::before {
  content: "+";
}

.quick-actions a:nth-child(2)::before {
  content: "₹";
}

.quick-actions a:nth-child(3)::before {
  content: "≡";
}

.quick-actions a:nth-child(4)::before {
  content: "◎";
}

.quick-actions a:nth-child(5)::before {
  content: "✓";
}

.quick-actions a:nth-child(6)::before {
  content: "✎";
}

.quick-actions a:nth-child(7)::before {
  content: "ID";
  font-size: 0.72rem;
}

.quick-actions a::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -36px;
  z-index: -1;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(217, 169, 78, 0.14);
  border-radius: 50%;
  background: rgba(217, 169, 78, 0.055);
}

.quick-actions a:hover {
  color: #fff8ea;
  border-color: rgba(255, 225, 155, 0.66);
  background:
    linear-gradient(145deg, rgba(217, 169, 78, 0.16), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 88% 12%, rgba(255, 225, 155, 0.24), transparent 7rem),
    rgba(8, 13, 20, 0.92);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.filter-bar.compact {
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) 74px;
}

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

.line-list div {
  display: grid;
  grid-template-columns: 150px 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 36, 66, 0.28), rgba(255, 255, 255, 0.035));
}

.line-list strong,
.line-list span {
  color: var(--gold-2);
}

.line-list small {
  color: var(--muted);
}

.soft-chart {
  height: 250px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  padding: 20px 4px 38px;
}

.soft-chart span {
  position: relative;
  height: var(--h);
  min-height: 34px;
  border: 1px solid rgba(255, 225, 155, 0.42);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(255, 225, 155, 0.78), rgba(74, 113, 168, 0.5));
}

.soft-chart b {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.82rem;
}

.legend,
.summary-strip,
.wa-row,
.signature-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.legend span,
.summary-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
}

.legend span:first-child::before,
.legend span:last-child::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold-2);
}

.legend span:last-child::before {
  background: #4a71a8;
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  grid-column: 1 / -1;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid-3 label:has(textarea) {
  grid-column: span 2;
}

.admission-form-page {
  border-color: rgba(255, 225, 155, 0.32);
  background:
    linear-gradient(135deg, rgba(15, 36, 66, 0.4), rgba(0, 0, 0, 0.2)),
    rgba(6, 10, 16, 0.88);
}

.admission-saved-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  border-color: rgba(117, 216, 174, 0.38);
  background:
    linear-gradient(135deg, rgba(117, 216, 174, 0.12), rgba(217, 169, 78, 0.08)),
    rgba(6, 10, 16, 0.9);
}

.admission-saved-actions h3 {
  margin-bottom: 6px;
  color: var(--green);
}

.admission-saved-actions p:not(.eyebrow) {
  margin-bottom: 0;
}

.student-photo-upload {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(217, 169, 78, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 169, 78, 0.18), transparent 9rem),
    rgba(255, 255, 255, 0.035);
}

.student-photo-upload h4 {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 1.15rem;
}

.student-photo-upload p {
  margin: 0 0 12px;
  color: var(--muted);
}

.student-photo-preview {
  width: 112px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 78, 0.55);
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(15, 36, 66, 0.9), rgba(5, 8, 14, 0.98));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.035);
}

.student-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-photo-preview.mini {
  width: 104px;
  height: 124px;
  font-size: 2.2rem;
}

.view-students-panel {
  overflow: hidden;
}

.student-profile-filter {
  margin-top: 16px;
}

.student-profile-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.student-profile-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 36, 66, 0.32), rgba(217, 169, 78, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.student-profile-photo {
  display: grid;
  align-content: start;
  gap: 10px;
}

.student-profile-photo input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.student-edit-form {
  display: grid;
  gap: 14px;
}

.student-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.student-card-head h4 {
  margin: 3px 0 0;
  color: var(--paper);
  font-size: 1.35rem;
}

.student-card-head small {
  color: var(--gold-2);
  font-weight: 900;
}

.student-card-head span {
  padding: 8px 11px;
  border: 1px solid rgba(217, 169, 78, 0.32);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(217, 169, 78, 0.08);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-btn,
.mini-action.danger {
  color: #ffd7d7;
  border-color: rgba(255, 120, 120, 0.42);
  background: rgba(150, 20, 20, 0.18);
}

.wa-row label,
.inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wa-row input,
.inline-check input,
.template-grid input {
  width: 18px;
  min-height: 18px;
}

.signature-row {
  justify-content: space-between;
  margin: 12px 0;
}

.signature-row span {
  min-width: min(100%, 360px);
  padding-top: 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.form-actions {
  margin-top: 6px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.fees-workspace {
  align-items: start;
}

.fee-collection-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0, rgba(217, 169, 78, 0.2), transparent 18rem),
    radial-gradient(circle at 85% 25%, rgba(26, 54, 93, 0.32), transparent 20rem),
    linear-gradient(145deg, rgba(5, 9, 17, 0.98), rgba(14, 18, 27, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.fee-collection-hero h2 {
  margin: 4px 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: 0;
}

.fee-collection-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.fee-collection-kpis {
  margin-bottom: 22px;
}

.fee-account-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 169, 78, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 169, 78, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.fee-account-card div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(3, 5, 10, 0.34);
}

.fee-account-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fee-account-card strong {
  color: var(--gold-2);
  font-size: 1.05rem;
}

.teacher-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0, rgba(217, 169, 78, 0.2), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(26, 54, 93, 0.34), transparent 22rem),
    linear-gradient(145deg, rgba(4, 8, 15, 0.98), rgba(16, 20, 30, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.teacher-dashboard-hero h2 {
  margin: 4px 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

.teacher-dashboard-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.teacher-scope-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 169, 78, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.teacher-scope-card span,
.teacher-scope-card small {
  color: var(--muted);
  font-weight: 800;
}

.teacher-scope-card strong {
  color: var(--gold-2);
  font-size: 1.35rem;
}

.teacher-stat-strip,
.teacher-tool-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.teacher-stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-stat-strip article,
.teacher-tool-grid a {
  border: 1px solid rgba(217, 169, 78, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0, rgba(217, 169, 78, 0.14), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.teacher-stat-strip article {
  padding: 18px;
}

.teacher-stat-strip span,
.teacher-stat-strip small,
.teacher-tool-grid small {
  color: var(--muted);
}

.teacher-stat-strip strong {
  display: block;
  margin: 8px 0;
  color: var(--gold-2);
  font-size: 1.35rem;
}

.teacher-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-tool-grid a {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  color: var(--paper);
  text-decoration: none;
}

.teacher-tool-grid a span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #070b12;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.teacher-tool-grid strong {
  color: var(--gold-2);
}

.teacher-tool-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 220, 144, 0.5);
}

.fee-structure-card {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 36, 66, 0.32), rgba(217, 169, 78, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.fee-structure-card h4 {
  margin: 0 0 12px;
  color: var(--gold-2);
}

.fee-settings-panel {
  margin-bottom: 22px;
}

.fee-structure-editor {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.fee-structure-editor .btn {
  min-height: 46px;
  align-self: end;
}

.fee-structure-card p,
.student-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 7px 0;
}

.fee-structure-card span,
.fee-structure-card strong {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.fee-structure-card strong {
  color: var(--gold-2);
  text-align: right;
}

.wide-label {
  grid-column: span 2;
}

.student-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.student-summary span {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 900;
  background: rgba(217, 169, 78, 0.08);
}

.student-table strong {
  color: var(--paper);
}

.student-list-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.finance-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.finance-kpis article {
  padding: 18px;
  border: 1px solid rgba(217, 169, 78, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 0, rgba(217, 169, 78, 0.15), transparent 10rem),
    rgba(255, 255, 255, 0.035);
}

.finance-kpis span,
.finance-kpis small {
  color: var(--muted);
}

.finance-kpis strong {
  display: block;
  margin: 8px 0;
  color: var(--gold-2);
  font-size: 1.3rem;
}

.premium-fee-chart {
  margin: 24px 0;
  padding: 28px;
  border: 1px solid rgba(217, 169, 78, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0, rgba(217, 169, 78, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.chart-head strong {
  display: block;
  color: var(--paper);
  font-size: 1.38rem;
}

.chart-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--paper);
  font-weight: 900;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #b87621;
  box-shadow: 0 0 0 1px rgba(217, 169, 78, 0.45);
}

.chart-legend span:nth-child(2)::before {
  background: #f2a10f;
}

.chart-stage {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
}

.chart-y {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: start;
  padding-top: 4px;
  color: #c9ddd7;
  font-size: 0.82rem;
  font-weight: 800;
}

.chart-plot {
  min-height: 430px;
  position: relative;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px) 0 0 / 20% 100%,
    rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.chart-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 32px);
}

.chart-area {
  fill: url(#feeArea);
}

.chart-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.chart-line.target {
  stroke: #b87621;
}

.chart-line.recovery {
  stroke: #f2a10f;
}

.chart-dot {
  position: absolute;
  left: calc((var(--x) / 1000) * 100%);
  top: calc((var(--y) / 320) * (100% - 32px));
  width: 14px;
  height: 14px;
  border: 5px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(217, 169, 78, 0.52), 0 8px 22px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.target-dot {
  background: #b87621;
}

.recovery-dot {
  background: #f2a10f;
}

.chart-x-label {
  position: absolute;
  left: calc((var(--x) / 1000) * 100%);
  bottom: 0;
  width: 140px;
  color: #c9ddd7;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.report-graph {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.report-graph span {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--paper);
}

.report-graph span::after {
  content: "";
  height: 22px;
  border: 1px solid rgba(217, 169, 78, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(90deg, #d9a94e 0 var(--paid), #1d3558 var(--paid) 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.24);
}

.pink-panel {
  border-color: rgba(255, 160, 206, 0.38);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 160, 206, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(55, 13, 42, 0.54), rgba(8, 13, 20, 0.92));
}

.pink-panel h3 {
  color: #ffd9eb;
}

.pink-panel .student-summary span,
.pink-panel .mini-action {
  border-color: rgba(255, 160, 206, 0.3);
  color: #ffd9eb;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 900;
  text-decoration: none;
}

.two-column-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.two-column-report > div {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.net-total {
  display: block;
  color: var(--gold-2);
  font-size: 1.35rem;
}

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

.template-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.template-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.id-card-workspace {
  align-items: start;
}

.signature-upload-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(217, 169, 78, 0.28);
  border-radius: 10px;
  background: rgba(217, 169, 78, 0.07);
}

.signature-upload-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.signature-upload-panel span {
  color: var(--muted);
  font-weight: 800;
}

.signature-upload-panel strong,
.id-card-footer strong {
  display: grid;
  place-items: center;
}

.signature-upload-panel img,
.id-card-footer img {
  width: 132px;
  max-height: 44px;
  object-fit: contain;
}

.signature-upload-panel p {
  margin: 0;
  color: var(--muted);
}

.id-preview-panel {
  display: grid;
  place-items: center;
}

.id-card-print {
  width: min(100%, 560px);
  color: #0f172a;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 78, 0.52);
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.id-card-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: #fff8ea;
  background:
    linear-gradient(135deg, #06152a, #0f2442 68%, #07101e);
  border-bottom: 4px solid #d9a94e;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.id-card-header img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 2px solid #d9a94e;
  border-radius: 50%;
  background: #fff;
}

.id-card-header h2 {
  margin: 0 0 5px;
  color: #fff8ea;
  font-size: 1.55rem;
}

.id-card-header div {
  color: #ffe19b;
  font-weight: 900;
}

.id-card-body {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px 10px;
}

.id-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  border: 2px solid #0f2442;
  border-radius: 14px;
  color: #0f2442;
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 28%, rgba(15, 36, 66, 0.12), transparent 3rem),
    #eef5ff;
}

.id-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-details h3 {
  margin: 0 0 10px;
  color: #0f2442;
  font-size: 1.55rem;
}

.id-details p,
.id-address {
  margin: 7px 0;
  color: #17202c;
  font-size: 0.95rem;
}

.id-address {
  margin: 4px 24px 16px;
  padding-top: 12px;
  border-top: 1px dashed #b9c2d0;
}

.id-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 18px 24px;
  color: #0f2442;
  background: linear-gradient(135deg, rgba(15, 36, 66, 0.08), rgba(217, 169, 78, 0.16));
}

.id-card-footer strong {
  min-width: 150px;
  padding-top: 24px;
  border-top: 2px solid #0f2442;
  text-align: center;
}

.bulk-id-panel {
  margin-top: 22px;
}

.bulk-id-helper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.bulk-id-helper span {
  padding: 12px;
  border: 1px solid rgba(217, 169, 78, 0.26);
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 900;
  background: rgba(217, 169, 78, 0.08);
}

.bulk-id-print {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(217, 169, 78, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.bulk-id-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reference-id-card {
  overflow: hidden;
  min-height: 218px;
  border: 1.5px solid #0f2442;
  border-radius: 10px;
  color: #101820;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 36, 66, 0.12);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.reference-id-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #06152a, #0f2442 72%, #07101e);
  border-bottom: 2px solid #d9a94e;
}

.reference-logo-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid #d9a94e;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 5px 14px rgba(0, 0, 0, 0.16);
}

.reference-logo-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 0;
}

.empty-state,
.empty-row td {
  width: 100%;
  padding: 24px !important;
  text-align: center;
  color: rgba(255, 248, 232, 0.78);
  border: 1px dashed rgba(217, 169, 78, 0.34) !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 169, 78, 0.08), rgba(9, 22, 42, 0.52));
  font-weight: 800;
}

.student-profile-grid .empty-state,
.bulk-id-grid .empty-state {
  grid-column: 1 / -1;
}

.print-document .empty-row td {
  color: #263449;
  background: #fff9ea;
  border: 1px dashed #d9a94e !important;
}

.reference-id-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.reference-id-header p {
  margin: 3px 0 0;
  color: #fff6d6;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-id-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 12px 6px;
}

.reference-photo {
  height: 86px;
  display: grid;
  place-items: center;
  border: 1.5px solid #0f2442;
  border-radius: 7px;
  color: #0f2442;
  font-size: 0.72rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 28%, rgba(15, 36, 66, 0.12), transparent 3rem),
    #eef5ff;
}

.reference-details h3 {
  margin: 0 0 6px;
  color: #101820;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: capitalize;
}

.reference-details p,
.reference-contact p {
  margin: 2px 0;
  color: #101820;
  font-size: 0.62rem;
  line-height: 1.16;
}

.reference-details b,
.reference-contact b {
  font-weight: 950;
}

.reference-contact {
  margin: 0 12px;
  padding: 7px 0 6px;
  border-top: 1px dashed #9fb9c8;
}

.reference-contact p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-id-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(15, 36, 66, 0.08), rgba(217, 169, 78, 0.16));
}

.reference-id-footer span {
  padding: 6px 10px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 950;
  background: #0f2442;
}

.reference-id-footer strong {
  display: grid;
  place-items: center;
  min-width: 92px;
  color: #0f2442;
  font-size: 0.62rem;
  text-align: center;
}

.reference-id-footer img,
.bulk-sheet-footer img {
  width: 88px;
  max-height: 30px;
  object-fit: contain;
}

.bulk-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #06152a, #0f2442 72%, #07101e);
}

.bulk-sheet-footer span {
  color: #ffffff;
  font-weight: 800;
}

.bulk-sheet-footer strong {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.bulk-sheet-footer b {
  min-width: 160px;
  padding: 10px 18px;
  border-radius: 7px;
  color: #0f2442;
  text-align: center;
  background: #ffffff;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.reminder-panel {
  margin-top: 22px;
}

.reminder-note {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 225, 155, 0.36);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(217, 169, 78, 0.08);
}

.editor-preview {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
  gap: 22px;
  align-items: start;
}

.document-preview {
  position: sticky;
  top: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 14, 22, 0.98), rgba(2, 4, 7, 0.96));
  box-shadow: var(--shadow);
}

.preview-label {
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.print-document {
  display: none;
}

.print-document.is-preview {
  display: block;
}

.print-sheet-designed {
  color: #17202c;
  background:
    radial-gradient(circle at 85% 8%, rgba(217, 169, 78, 0.18), transparent 16rem),
    linear-gradient(180deg, #fffdf7, #ffffff 42%, #fffaf0);
  border: 1px solid rgba(19, 16, 10, 0.18);
  border-radius: 14px;
  padding: 42px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  position: relative;
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-sheet-designed::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(217, 169, 78, 0.58);
  border-radius: 10px;
  pointer-events: none;
}

.print-sheet-designed::after {
  content: "B";
  position: absolute;
  right: 32px;
  bottom: 14px;
  color: rgba(15, 36, 66, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13rem;
  line-height: 1;
  pointer-events: none;
}

.print-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -42px -42px 34px;
  padding: 24px 32px;
  border-bottom: 4px solid #d9a94e;
  color: #fff8ea;
  background:
    linear-gradient(135deg, #020407, #09121f 72%, #020407);
  position: relative;
  z-index: 1;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-header img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d9a94e;
}

.print-header h2,
.print-header p {
  margin: 0;
  color: #fff8ea;
}

.print-header h2 {
  font-size: 1.45rem;
  letter-spacing: 0.03em;
}

.print-header p {
  margin-top: 5px;
  color: #ffe19b;
  font-weight: 700;
}

.print-header span {
  padding: 11px 16px;
  border: 1px solid rgba(255, 225, 155, 0.76);
  border-radius: 999px;
  color: #ffe19b;
  font-weight: 900;
  background: rgba(255, 225, 155, 0.08);
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}

.print-grid p,
.print-sheet-designed p,
.print-sheet-designed li,
.print-sheet-designed td,
.print-sheet-designed th {
  color: #17202c;
  font-size: 0.95rem;
  line-height: 1.65;
}

.print-sheet-designed .print-header h2,
.print-sheet-designed .print-header p {
  color: #fff8ea;
}

.print-sheet-designed .print-header p {
  color: #ffe19b;
  opacity: 1;
}

.print-sheet-designed .print-header span {
  color: #ffe19b;
}

.print-grid p {
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e3d6b9;
  border-radius: 10px;
  background: rgba(246, 223, 159, 0.18);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-sheet-designed table {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #d8c391;
  position: relative;
  z-index: 1;
  table-layout: auto;
}

.print-sheet-designed th {
  color: #fff;
  background: #0b111c;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-sheet-designed td,
.print-sheet-designed th {
  padding: 14px 16px;
}

.marks-studio {
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1fr);
  gap: 18px;
}

.marks-studio .premium-form {
  min-height: auto;
}

.marks-studio .form-grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marks-studio .document-preview {
  min-width: 0;
  overflow: hidden;
}

.report-card {
  min-height: 760px;
}

.report-card.is-preview:not(.is-printing) {
  padding: 30px;
}

.report-card.is-preview:not(.is-printing) .print-header {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  margin: -30px -30px 26px;
  padding: 22px 24px;
}

.report-card.is-preview:not(.is-printing) .print-header img {
  width: 64px;
  height: 64px;
}

.report-card.is-preview:not(.is-printing) .print-header h2 {
  font-size: 1.18rem;
}

.report-card.is-preview:not(.is-printing) .print-header p {
  max-width: 220px;
}

.report-card.is-preview:not(.is-printing) .print-header span {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 9px 13px;
}

.report-student-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  position: relative;
  z-index: 1;
}

.report-student-band div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid #e2d0a9;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 249, 234, 0.96), rgba(255, 244, 218, 0.82));
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.report-student-band b {
  display: block;
  color: #8f6a1d;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-student-band strong {
  display: block;
  margin-top: 8px;
  color: #0f2442;
  font-size: 1rem;
}

.marks-table {
  width: 100%;
  border-collapse: collapse;
}

.marks-table th:nth-child(n+2),
.marks-table td:nth-child(n+2) {
  text-align: center;
}

.result-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 12px;
  color: #ffe19b;
  background: linear-gradient(135deg, #020407, #09121f 68%, #0f2442);
  box-shadow: inset 0 -2px 0 rgba(217, 169, 78, 0.65);
  position: relative;
  z-index: 1;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.result-band span {
  color: #ffe19b;
  font-weight: 950;
}

.report-card .print-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e2d0a9;
  border-radius: 12px;
  background: rgba(255, 249, 234, 0.72);
  position: relative;
  z-index: 1;
}

.report-card .print-signatures {
  margin-top: 58px;
}

@media (min-width: 1560px) {
  .marks-studio {
    grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1fr);
  }

  .report-student-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.print-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.print-signatures span {
  padding-top: 18px;
  border-top: 2px solid #0f2442;
  color: #17202c;
  font-weight: 800;
}

.print-signatures.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.print-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #d8c391;
  border-radius: 10px;
  color: #17202c;
  font-weight: 850;
  background: #fff7e5;
  position: relative;
  z-index: 1;
}

.report-print .print-header {
  margin-bottom: 24px;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}

.report-kpi-grid p {
  min-height: 104px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e3d2aa;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9ea, #fffdf7);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.report-kpi-grid b,
.report-kpi-grid strong,
.report-kpi-grid small {
  display: block;
}

.report-kpi-grid b {
  color: #8f6a1d;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-kpi-grid strong {
  margin-top: 8px;
  color: #0f2442;
  font-size: 1.22rem;
  line-height: 1.2;
}

.report-kpi-grid small {
  margin-top: 7px;
  color: #526071;
  font-weight: 750;
}

.professional-print-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
}

.professional-print-table tbody tr:nth-child(even) {
  background: rgba(255, 249, 234, 0.72);
}

.report-print .print-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #e3d2aa;
  border-radius: 12px;
  color: #17202c;
  background: rgba(255, 249, 234, 0.76);
  position: relative;
  z-index: 1;
}

.print-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e0cf9d;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.92);
  position: relative;
  z-index: 1;
}

.print-section h3 {
  margin: 0 0 14px;
  color: #0f2442;
  font-size: 1rem;
  text-transform: uppercase;
}

.print-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.print-fields p {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #dac79b;
}

.print-fields b,
.print-fields span {
  display: block;
}

.print-fields b {
  margin-bottom: 5px;
  color: #8a6a24;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.print-paragraph,
.declaration {
  margin: 0;
  color: #17202c;
}

.check-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.check-row span {
  padding: 10px 12px;
  border: 1px solid #dac79b;
  border-radius: 999px;
  color: #17202c;
}

.check-row span::before {
  content: "✓";
  margin-right: 8px;
  color: #9a741e;
  font-weight: 950;
}

.declaration {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #d9a94e;
  background: rgba(217, 169, 78, 0.12);
  position: relative;
  z-index: 1;
}

#admissionPrint::after {
  content: none;
}

#admissionPrint .print-signatures {
  margin-top: 48px;
}

.admission-signatures {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.finance-summary-cards p {
  margin: 0;
  padding: 18px;
  border: 1px solid #d8c391;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7e5, #fffdf8);
}

.finance-summary-cards b,
.finance-summary-cards span {
  display: block;
}

.finance-summary-cards b {
  color: #8a6a24;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.finance-summary-cards span {
  margin-top: 8px;
  color: #0f2442;
  font-size: 1.25rem;
  font-weight: 950;
}

.finance-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.finance-print-grid > div {
  padding: 20px;
  border: 1px solid #e0cf9d;
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.94);
}

.finance-print-grid h3 {
  margin: 0 0 12px;
  color: #0f2442;
  text-transform: uppercase;
}

.finance-balance-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  color: #fff8ea;
  background: linear-gradient(135deg, #020407, #0f2442);
  position: relative;
  z-index: 1;
}

.finance-balance-band strong {
  color: #ffe19b;
}

.question-list {
  display: grid;
  gap: 16px;
  padding-left: 26px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.exam-paper {
  display: none;
  color: #111827;
  background: #fff;
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.exam-paper.is-preview {
  display: block;
}

.exam-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 3px double #111827;
}

.exam-header img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #111827;
  border-radius: 50%;
}

.exam-header h2,
.exam-header p,
.exam-title h1,
.exam-title p {
  margin: 0;
  color: #111827;
}

.exam-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.exam-title {
  text-align: center;
  padding: 16px 0 12px;
  border-bottom: 1px solid #111827;
}

.exam-title h1 {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.exam-title p {
  margin-top: 8px;
  font-weight: 800;
}

.exam-meta {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.8fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #111827;
  color: #111827;
  font-weight: 800;
}

.exam-instructions {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #111827;
  color: #111827;
  line-height: 1.55;
}

.exam-instructions b {
  display: block;
  margin-bottom: 6px;
}

.exam-section {
  margin-top: 18px;
}

.exam-section h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #111827;
  color: #111827;
  font-size: 1rem;
  text-transform: uppercase;
  background: #f3f4f6;
}

.exam-section ol {
  margin: 0;
  padding-left: 24px;
  color: #111827;
}

.exam-section li {
  margin-bottom: 12px;
  color: #111827;
  line-height: 1.55;
}

.answer-lines {
  height: 54px;
  margin-top: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 25px, #cbd5e1 26px);
}

.answer-lines.tall {
  height: 82px;
}

.net-total,
.print-note {
  position: relative;
  z-index: 1;
}

#feesPrint {
  max-width: 148mm;
}

#feesPrint.fee-receipt-print,
#feeRecordsPrint.fee-records-print {
  background:
    radial-gradient(circle at 86% 9%, rgba(217, 169, 78, 0.14), transparent 15rem),
    linear-gradient(180deg, #fffdf8, #fffaf0 100%);
}

#feesPrint.fee-receipt-print .print-header,
#feeRecordsPrint.fee-records-print .print-header {
  min-height: 128px;
  overflow: hidden;
  background:
    linear-gradient(125deg, #03060b 0%, #081421 55%, #0f2442 100%);
}

#feesPrint.fee-receipt-print .print-header::after,
#feeRecordsPrint.fee-records-print .print-header::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -38px;
  width: 160px;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 225, 155, 0.26), rgba(217, 169, 78, 0));
  transform: rotate(18deg);
  pointer-events: none;
}

#feesPrint.fee-receipt-print .print-header > *,
#feeRecordsPrint.fee-records-print .print-header > * {
  position: relative;
  z-index: 2;
}

#feesPrint.fee-receipt-print .print-header h2,
#feeRecordsPrint.fee-records-print .print-header h2 {
  font-size: 1.68rem;
  letter-spacing: 0.01em;
}

#feesPrint .print-header {
  grid-template-columns: 70px minmax(0, 1fr);
}

#feesPrint .print-header span {
  grid-column: 1 / -1;
  justify-self: start;
}

#feesPrint .print-grid {
  grid-template-columns: 1fr 1fr;
}

#feesPrint .print-signatures {
  margin-top: 64px;
}

.receipt-meta {
  margin-bottom: 16px;
}

.receipt-grid p {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
}

.receipt-grid b {
  color: #8f6a1d;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-grid span {
  color: #17202c;
  font-weight: 800;
}

.receipt-table td:last-child,
.receipt-table th:last-child {
  text-align: right;
}

.receipt-balance-row td {
  color: #0f2442;
  font-weight: 900;
  background: rgba(246, 223, 159, 0.2);
}

#feeRecordsPrint .print-header {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.report-meta {
  align-items: center;
  margin-bottom: 18px;
  background: rgba(246, 223, 159, 0.22);
}

.print-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

.print-summary-cards p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8c391;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(255, 244, 218, 0.76));
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-summary-cards b {
  display: block;
  color: #8f6a1d;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-summary-cards strong {
  display: block;
  margin-top: 7px;
  color: #0f2442;
  font-size: 1.18rem;
}

.spacious-print-table td,
.spacious-print-table th {
  padding: 17px 16px;
}

.spacious-print-table td:nth-child(4),
.spacious-print-table td:nth-child(5),
.spacious-print-table th:nth-child(4),
.spacious-print-table th:nth-child(5) {
  text-align: right;
}

.signature-room {
  margin-top: 88px;
}

.signature-room span {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
}

.portal-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #070b12;
  padding: 24px;
}

.portal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.portal-dialog form {
  display: grid;
  gap: 14px;
}

.light-mode {
  --bg: #efe7d8;
  --panel: rgba(255, 252, 246, 0.92);
  --text: #17120a;
  --muted: #554a3a;
  --line: rgba(151, 105, 32, 0.28);
  --line-soft: rgba(35, 28, 18, 0.14);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0, rgba(184, 118, 33, 0.14), transparent 24rem),
    linear-gradient(135deg, #f1e8d8, #ddd5c7 58%, #f8f1e6);
}

.light-mode .portal-shell {
  background:
    radial-gradient(circle at 80% 0, rgba(184, 118, 33, 0.14), transparent 32rem),
    linear-gradient(135deg, #ece3d4, #d7d1c5 54%, #f5ebdd);
}

.light-mode .portal-navbar {
  background: rgba(255, 248, 235, 0.94);
  border-bottom-color: rgba(151, 105, 32, 0.22);
  box-shadow: 0 18px 42px rgba(72, 56, 34, 0.16);
}

.light-mode .portal-main {
  background:
    radial-gradient(circle at 18% 0, rgba(184, 118, 33, 0.15), transparent 24rem),
    radial-gradient(circle at 96% 12%, rgba(15, 36, 66, 0.08), transparent 28rem),
    linear-gradient(145deg, rgba(255, 252, 246, 0.9), rgba(232, 224, 211, 0.92));
  border-color: rgba(151, 105, 32, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.light-mode .portal-top {
  background:
    linear-gradient(90deg, rgba(34, 28, 18, 0.9), rgba(94, 70, 34, 0.52), rgba(34, 28, 18, 0.86)),
    radial-gradient(circle at 50% 0, rgba(255, 225, 155, 0.2), transparent 20rem);
}

.light-mode .portal-top h1,
.light-mode .portal-top .eyebrow,
.light-mode .portal-user,
.light-mode .portal-user small {
  color: #fff8ea;
}

.light-mode .premium-form,
.light-mode .panel,
.light-mode .portal-side,
.light-mode .module-grid article,
.light-mode .metrics article,
.light-mode .quick-actions a,
.light-mode .finance-kpis article {
  color: var(--text);
  border-color: rgba(151, 105, 32, 0.22);
  background:
    radial-gradient(circle at 90% 0, rgba(184, 118, 33, 0.1), transparent 12rem),
    linear-gradient(145deg, rgba(255, 252, 246, 0.92), rgba(236, 227, 213, 0.82));
  box-shadow: 0 20px 52px rgba(82, 65, 42, 0.13);
}

.light-mode .portal-side a,
.light-mode .menu-group summary,
.light-mode .quick-actions a,
.light-mode .module-grid strong,
.light-mode .metrics strong,
.light-mode .finance-kpis strong,
.light-mode .fee-overview-panel h3 {
  color: #17120a;
}

.light-mode .metrics span,
.light-mode .metrics small,
.light-mode p,
.light-mode td,
.light-mode th,
.light-mode label,
.light-mode .clean-list li,
.light-mode .finance-kpis span,
.light-mode .finance-kpis small {
  color: #514535;
}

.light-mode .fee-collection-hero,
.light-mode .fee-account-card div,
.light-mode .teacher-dashboard-hero,
.light-mode .teacher-scope-card,
.light-mode .teacher-stat-strip article,
.light-mode .teacher-tool-grid a {
  color: #17120a;
  border-color: rgba(151, 105, 32, 0.22);
  background:
    radial-gradient(circle at 12% 0, rgba(184, 118, 33, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(255, 252, 246, 0.94), rgba(237, 227, 211, 0.88));
}

.light-mode .fee-collection-hero h2 {
  color: #17120a;
}

.light-mode .fee-collection-hero p:not(.eyebrow),
.light-mode .fee-account-card span,
.light-mode .teacher-dashboard-hero p:not(.eyebrow),
.light-mode .teacher-scope-card span,
.light-mode .teacher-scope-card small,
.light-mode .teacher-stat-strip span,
.light-mode .teacher-stat-strip small,
.light-mode .teacher-tool-grid small {
  color: #514535;
}

.light-mode .teacher-dashboard-hero h2,
.light-mode .teacher-tool-grid strong {
  color: #17120a;
}

.light-mode input,
.light-mode select,
.light-mode textarea {
  color: #17120a;
  border-color: rgba(35, 28, 18, 0.16);
  background: rgba(255, 255, 255, 0.64);
}

.light-mode .nav-icon,
.light-mode .profile-menu summary {
  color: #8a641e;
  border-color: rgba(151, 105, 32, 0.28);
  background: rgba(255, 252, 246, 0.62);
}

.light-mode .reminder-dropdown {
  color: #17120a;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 118, 33, 0.18), transparent 10rem),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(239, 230, 216, 0.98));
  box-shadow: 0 28px 72px rgba(82, 65, 42, 0.22);
}

.light-mode .reminder-dropdown::before {
  background: #fff8eb;
}

.light-mode .reminder-dropdown article {
  border-color: rgba(151, 105, 32, 0.16);
  background: rgba(255, 255, 255, 0.52);
}

.light-mode .reminder-dropdown strong,
.light-mode .reminder-head strong,
.light-mode .reminder-head a {
  color: #8a641e;
}

.light-mode .reminder-dropdown span,
.light-mode .reminder-dropdown small {
  color: #5d5141;
}

.donut-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.donut {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
  background:
    radial-gradient(circle at center, #0a101a 48%, transparent 49%),
    conic-gradient(var(--gold) 0 72%, rgba(255, 255, 255, 0.12) 72% 100%);
}

.donut.warm {
  background:
    radial-gradient(circle at center, #0a101a 48%, transparent 49%),
    conic-gradient(#d96d6d 0 48%, var(--gold) 48% 72%, rgba(255, 255, 255, 0.12) 72% 100%);
}

.chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 12px;
  padding: 18px 0 34px;
}

.chart span {
  position: relative;
  height: var(--h);
  min-height: 38px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--gold-2), var(--gold), #744a12);
}

.chart b {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.clean-list li {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.module-grid {
  grid-template-columns: repeat(4, 1fr);
}

.module-grid p {
  margin-bottom: 0;
}

.wide-form {
  max-width: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: left;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(18px, 4vw, 62px);
  border-top: 1px solid rgba(217, 169, 78, 0.18);
  color: var(--muted);
  background: rgba(3, 5, 10, 0.7);
}

@media (max-width: 1180px) {
  .topbar,
  .home-hero,
  .page-hero,
  .admission-suite,
  .split-page,
  .offerings,
  .portal-login,
  .portal-layout,
  .portal-navbar,
  .ecosystem,
  .dashboard-split,
  .finance-grid,
  .student-profile-card {
    grid-template-columns: 1fr;
  }

  .public-nav {
    flex-wrap: wrap;
  }

  .portal-side {
    position: static;
    height: auto;
  }

  .role-grid,
  .module-grid,
  .programs,
  .metrics,
  .quick-actions,
  .form-grid-3,
  .template-grid,
  .compact-grid,
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .fee-structure-editor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fee-account-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-dashboard-hero,
  .teacher-stat-strip,
  .teacher-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-main,
  .portal-layout {
    padding: 12px;
  }

  .topbar,
  .home-hero,
  .page-hero,
  .portal-login {
    padding: 18px;
  }

  .topbar {
    position: relative;
    gap: 14px;
  }

  .brand,
  .portal-brand {
    min-width: 0;
  }

  .brand img,
  .portal-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
  }

  .brand span,
  .portal-brand span {
    min-width: 0;
  }

  .brand strong,
  .portal-brand strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .brand small,
  .portal-brand small {
    display: none;
  }

  .public-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .public-nav a,
  .login-link,
  .btn,
  .portal-side a {
    min-height: 44px;
    padding: 0 12px;
    text-align: center;
  }

  .login-link {
    width: 100%;
  }

  .home-hero,
  .page-hero,
  .portal-login {
    min-height: auto;
    align-items: start;
    background-position: center top;
  }

  .hero-card,
  .floating-award {
    min-height: 220px;
  }

  .hero-card img {
    width: 96px;
    height: 96px;
  }

  .hero-card h2 {
    font-size: 1.45rem;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  p {
    line-height: 1.58;
  }

  .actions,
  .form-actions,
  .button-row,
  .wa-row,
  .summary-strip,
  .legend {
    align-items: stretch;
  }

  .actions .btn,
  .form-actions .btn,
  .button-row .btn,
  .wa-row .btn,
  .premium-form button,
  .filter-bar button {
    width: 100%;
  }

  .role-grid,
  .login-role-select,
  .module-grid,
  .programs,
  .metrics,
  .mini-grid,
  .values,
  .process,
  .portal-trust,
  .quick-actions,
  .donut-row,
  .form-grid-3,
  .template-grid,
  .compact-grid,
  .filter-bar,
  .filter-bar.compact,
  .fee-structure-editor,
  .fee-account-card,
  .teacher-dashboard-hero,
  .teacher-stat-strip,
  .teacher-tool-grid,
  .line-list div,
  .two-column-report {
    grid-template-columns: 1fr;
  }

  .feature-img {
    height: 260px;
  }

  .portal-top {
    flex-direction: column;
  }

  .portal-navbar {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    z-index: 100;
  }

  .portal-navbar > .nav-icon {
    grid-column: 1;
  }

  .portal-navbar > .portal-brand {
    grid-column: 2;
  }

  .portal-navbar > .navbar-actions {
    grid-column: 3;
  }

  .portal-navbar > .portal-search {
    grid-column: 1 / -1;
  }

  .portal-main {
    padding: 14px;
  }

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

  .student-profile-photo {
    justify-items: start;
  }

  .admission-suite {
    margin-top: 16px;
  }

  .metrics {
    margin: 12px 0 22px;
  }

  .programs article,
  .ecosystem,
  .offerings article,
  .mini-grid article,
  .values article,
  .module-grid article,
  .panel,
  .premium-form {
    padding: 18px;
  }

  .split-page,
  .offerings {
    min-height: auto;
    padding: 24px 0;
  }

  .portal-navbar {
    gap: 10px;
  }

  .fee-collection-hero {
    display: grid;
    align-items: stretch;
  }

  .portal-search {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
  }

  .navbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    justify-content: end;
    gap: 6px;
  }

  .reminder-menu,
  .profile-menu,
  .reminder-menu summary,
  .profile-menu summary {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .profile-menu summary {
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
  }

  .profile-menu summary span {
    display: none;
  }

  .profile-menu img {
    width: 34px;
    height: 34px;
  }

  .reminder-dropdown {
    left: 0;
    right: auto;
    width: min(330px, calc(100vw - 24px));
  }

  .profile-menu[open] > button,
  .profile-menu[open] > a {
    position: absolute;
    right: 0;
    width: 210px;
  }

  .portal-side {
    display: none;
    position: fixed;
    top: 82px;
    left: 10px;
    right: 10px;
    z-index: 90;
    max-height: calc(100dvh - 96px);
    padding: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(217, 169, 78, 0.34);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  }

  .sidebar-collapsed .portal-side {
    display: block;
  }

  .sidebar-collapsed::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(3px);
  }

  .menu-group {
    padding: 6px;
  }

  .menu-group a {
    min-height: 42px;
  }

  .sidebar-collapsed .portal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-collapsed .portal-side {
    padding: 14px;
  }

  .sidebar-collapsed .portal-brand span,
  .sidebar-collapsed .menu-group summary {
    display: block;
  }

  .sidebar-collapsed .portal-side a:not(.portal-brand) {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    justify-content: flex-start;
    font-size: inherit;
  }

  .sidebar-collapsed .portal-side a[data-icon]::before {
    margin-right: 10px;
  }

  .portal-main {
    overflow: visible;
  }

  .portal-top h1 {
    font-size: clamp(1.55rem, 8.5vw, 2.45rem);
  }

  .quick-actions a {
    min-height: 72px;
  }

  .portal-top,
  .teacher-dashboard-hero,
  .fee-collection-hero {
    padding: 18px;
  }

  .teacher-tool-grid a,
  .quick-actions a {
    min-height: 96px;
  }

  .table-wrap,
  .panel:has(table),
  .premium-form:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 680px;
  }

  .student-profile-card,
  .student-photo-upload,
  .admission-saved-actions,
  .chart-head,
  .signature-upload-panel div,
  .id-card-body,
  .id-card-footer,
  .bulk-sheet-footer,
  .finance-balance-band {
    display: grid;
    grid-template-columns: 1fr;
  }

  .student-card-head,
  .chart-head {
    align-items: stretch;
  }

  .student-summary,
  .fee-structure-card p,
  .finance-kpis,
  .report-kpi-grid,
  .finance-summary-cards,
  .print-summary-cards,
  .bulk-id-helper,
  .bulk-id-grid,
  .report-student-band,
  .print-grid,
  .print-fields,
  .finance-print-grid,
  .check-row {
    grid-template-columns: 1fr;
  }

  .chart-stage {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .chart-plot {
    min-height: 260px;
  }

  .chart-x-label {
    width: 72px;
    font-size: 0.68rem;
  }

  .editor-preview,
  .marks-studio {
    grid-template-columns: 1fr;
  }

  .document-preview {
    position: static;
    overflow-x: auto;
  }

  .print-sheet-designed,
  .exam-paper {
    min-width: 640px;
  }

  .id-card-print {
    width: 100%;
    border-radius: 12px;
  }

  .id-card-header {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .id-card-header img {
    width: 54px;
    height: 54px;
  }

  .id-card-header h2,
  .id-details h3 {
    font-size: 1.2rem;
  }

  .id-card-body,
  .id-card-footer {
    padding: 16px;
  }

  .id-address {
    margin: 0 16px 14px;
  }
}

@media (max-width: 430px) {
  .site-main,
  .portal-layout {
    padding: 10px;
  }

  .topbar,
  .home-hero,
  .page-hero,
  .portal-login {
    padding: 14px;
  }

  .public-nav {
    grid-template-columns: 1fr;
  }

  .public-nav a,
  .login-link,
  .btn,
  .portal-side a,
  input,
  select,
  textarea {
    min-height: 46px;
  }

  h1 {
    font-size: clamp(2.25rem, 15vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.7rem, 11vw, 2.5rem);
  }

  .portal-main,
  .login-panel,
  .premium-form,
  .panel {
    padding: 16px;
  }

  .metrics article,
  .programs article,
  .ecosystem,
  .offerings article,
  .mini-grid article,
  .values article,
  .module-grid article {
    padding: 16px;
  }

  .portal-navbar {
    padding: 12px;
  }

  .nav-icon {
    width: 44px;
    min-height: 44px;
  }

  .profile-menu summary {
    border-radius: 8px;
  }

  .search-result-bar {
    width: 100%;
    border-radius: 8px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 5mm;
  }

  @page receipt {
    size: A5 portrait;
    margin: 7mm;
  }

  @page idcard {
    size: 100mm 70mm;
    margin: 4mm;
  }

  body {
    background: #fff;
    color: #111;
    margin: 0;
  }

  body.printing > *:not(.portal-shell):not(.is-printing),
  body.printing .portal-navbar,
  body.printing .portal-side,
  body.printing .portal-top,
  body.printing .premium-form,
  body.printing .panel,
  body.printing .finance-grid,
  body.printing .module-grid,
  body.printing .quick-actions,
  body.printing .document-preview > *:not(.is-printing),
  body.printing .preview-label {
    display: none !important;
  }

  body.printing .portal-layout,
  body.printing .portal-main,
  body.printing .document-preview,
  body.printing .print-document.is-printing,
  body.printing .exam-paper.is-printing {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
    color: #111;
  }

  body.printing .print-document:not(.is-printing) {
    display: none !important;
  }

  body.printing .exam-paper.is-printing {
    width: 200mm;
    min-height: 287mm;
    margin: 0 auto;
    padding: 9mm;
    color: #111827;
  }

  body.printing .exam-header {
    padding-bottom: 4mm;
  }

  body.printing .exam-title {
    padding: 5mm 0 4mm;
  }

  body.printing .exam-meta {
    padding: 4mm 0;
  }

  body.printing .exam-section {
    margin-top: 5mm;
    page-break-inside: avoid;
  }

  body.printing .print-sheet-designed {
    width: 200mm;
    min-height: 287mm;
    margin: 0 auto;
    border: 1px solid rgba(19, 16, 10, 0.18);
    border-radius: 0;
    padding: 9mm;
    box-shadow: none;
    page: auto;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing .print-sheet-designed > * {
    position: relative;
    z-index: 1;
    max-width: 100%;
  }

  body.printing .print-sheet-designed table {
    width: 100%;
    table-layout: fixed;
  }

  body.printing .print-sheet-designed td,
  body.printing .print-sheet-designed th {
    overflow-wrap: anywhere;
    vertical-align: middle;
  }

  body.printing .print-sheet-designed::before {
    inset: 4mm;
    border-radius: 0;
    border-width: 0.35mm;
  }

  body.printing .print-sheet-designed::after {
    right: 10mm;
    bottom: 4mm;
    font-size: 38mm;
  }

  body.printing .print-header {
    grid-template-columns: 20mm minmax(0, 1fr) auto;
    gap: 5mm;
    margin: 0 0 7mm;
    padding: 5.5mm 7mm;
    border: 1.6mm solid #05080e;
    border-bottom: 1.8mm solid #d9a94e;
    page-break-inside: avoid;
  }

  body.printing .print-header h2 {
    color: #fff8ea;
    -webkit-text-stroke: 0.01px #05080e;
  }

  body.printing .print-header p,
  body.printing .print-header span {
    color: #ffe19b;
  }

  body.printing .print-header img {
    width: 18mm;
    height: 18mm;
  }

  body.printing .print-sheet-designed .print-header h2 {
    font-size: 15pt;
    line-height: 1.15;
  }

  body.printing .print-sheet-designed .print-header span {
    max-width: 52mm;
    padding: 2.8mm 4.4mm;
    text-align: center;
    font-size: 8.2pt;
    line-height: 1.2;
    white-space: normal;
  }

  body.printing .print-grid {
    gap: 4mm;
    margin-bottom: 6mm;
  }

  body.printing .print-grid p {
    min-height: 13mm;
    padding: 3.2mm 3.8mm;
    font-size: 8.6pt;
  }

  body.printing .print-sheet-designed td,
  body.printing .print-sheet-designed th,
  body.printing .print-sheet-designed p,
  body.printing .print-sheet-designed li {
    font-size: 8.4pt;
    line-height: 1.45;
  }

  body.printing .print-signatures {
    margin-top: 16mm;
  }

  body.printing .report-print {
    width: 200mm;
    min-height: 287mm;
    padding: 9mm;
  }

  body.printing .report-print .print-header {
    min-height: 27mm;
    margin: 0 0 5mm;
    padding: 5mm 7mm;
  }

  body.printing .report-print .print-header img {
    width: 16mm;
    height: 16mm;
  }

  body.printing .report-print .print-header h2 {
    font-size: 13pt;
  }

  body.printing .report-print .print-header span {
    padding: 2.7mm 4.2mm;
    font-size: 8pt;
  }

  body.printing .report-print .print-meta {
    margin-bottom: 4mm;
    padding: 2.8mm 3.4mm;
    font-size: 8pt;
  }

  body.printing .report-print .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
    margin-bottom: 5mm;
  }

  body.printing .report-print .report-kpi-grid p {
    min-height: 20mm;
    padding: 3.4mm 4mm;
  }

  body.printing .report-print .report-kpi-grid b {
    font-size: 6.8pt;
  }

  body.printing .report-print .report-kpi-grid strong {
    margin-top: 1.2mm;
    font-size: 13pt;
  }

  body.printing .report-print .report-kpi-grid small {
    margin-top: 1mm;
    font-size: 7.2pt;
  }

  body.printing .report-print .professional-print-table {
    margin-top: 4mm;
    width: 100%;
  }

  body.printing .report-print .professional-print-table td,
  body.printing .report-print .professional-print-table th {
    padding: 3.5mm 3.2mm;
    font-size: 8pt;
  }

  body.printing .report-print .print-note {
    margin-top: 5mm;
    padding: 3.3mm 4mm;
    font-size: 8pt;
    line-height: 1.55;
  }

  body.printing .report-print .print-signatures {
    margin-top: 20mm;
    gap: 7mm;
  }

  body.printing .report-print .print-signatures span {
    min-height: 18mm;
    padding-top: 4mm;
  }

  body.printing .signature-room {
    margin-top: 18mm;
  }

  body.printing .signature-room span {
    min-height: 18mm;
  }

  body.printing #admissionPrint {
    width: 200mm;
    min-height: auto;
    padding: 5.5mm 7mm;
  }

  body.printing #admissionPrint::after {
    content: none;
  }

  body.printing #admissionPrint::before {
    content: "";
    inset: 4mm;
  }

  body.printing #admissionPrint .print-header {
    grid-template-columns: 16mm minmax(0, 1fr) 34mm;
    gap: 3.5mm;
    margin-bottom: 3mm;
    padding: 3.2mm 5mm;
    border-width: 1mm;
    border-bottom-width: 1.2mm;
  }

  body.printing #admissionPrint .print-header img {
    width: 14mm;
    height: 14mm;
  }

  body.printing #admissionPrint .print-header h2 {
    font-size: 12pt;
    line-height: 1.05;
  }

  body.printing #admissionPrint .print-header span {
    max-width: 34mm;
    padding: 1.8mm 2.6mm;
    font-size: 6.8pt;
  }

  body.printing #admissionPrint .print-meta {
    margin-bottom: 2.2mm;
    padding: 1.8mm 2.4mm;
    font-size: 6.8pt;
  }

  body.printing #admissionPrint .print-section {
    margin-top: 1.8mm;
    padding: 2.1mm 2.5mm;
    page-break-inside: avoid;
  }

  body.printing #admissionPrint .print-section h3 {
    margin-bottom: 1.8mm;
    font-size: 7.4pt;
  }

  body.printing #admissionPrint .print-fields {
    gap: 1.8mm 3mm;
  }

  body.printing #admissionPrint .print-fields p {
    min-height: 11mm;
    padding: 1.6mm 2mm;
    font-size: 6.9pt;
  }

  body.printing #admissionPrint .print-fields b {
    margin-bottom: 1mm;
    font-size: 5.8pt;
  }

  body.printing #admissionPrint .print-paragraph,
  body.printing #admissionPrint .check-row span,
  body.printing #admissionPrint .declaration {
    font-size: 6.8pt;
    line-height: 1.28;
  }

  body.printing #admissionPrint .check-row {
    gap: 1.8mm;
  }

  body.printing #admissionPrint .check-row span {
    padding: 1.7mm 2.1mm;
  }

  body.printing #admissionPrint .declaration {
    margin-top: 2mm;
    padding: 2mm 2.8mm;
  }

  body.printing #admissionPrint .print-signatures {
    margin-top: 5mm;
    padding-top: 1mm;
    gap: 5mm;
  }

  body.printing #admissionPrint .print-signatures span {
    min-height: 11mm;
    padding-top: 2.2mm;
    font-size: 7pt;
  }

  body.printing #financePrint .finance-summary-cards {
    gap: 5mm;
    margin-bottom: 8mm;
  }

  body.printing #financePrint {
    width: 200mm;
    min-height: 287mm;
    padding-left: 9mm;
    padding-right: 9mm;
  }

  body.printing #financePrint .finance-summary-cards p {
    padding: 4.2mm;
  }

  body.printing #financePrint .finance-print-grid {
    gap: 6mm;
    margin-top: 7mm;
  }

  body.printing #financePrint .finance-print-grid > div {
    padding: 4.5mm;
  }

  body.printing #financePrint .finance-balance-band {
    margin-top: 8mm;
    padding: 4.5mm 5mm;
  }

  body.printing #financePrint .print-note {
    margin-top: 5mm;
    max-width: 160mm;
    line-height: 1.6;
  }

  body.printing #financePrint .print-signatures {
    margin-top: 18mm;
    gap: 8mm;
  }

  body.printing #feesPrint {
    page: receipt;
    width: 134mm;
    min-height: 0;
    padding: 6mm;
  }

  body.printing #feesPrint .print-header {
    min-height: 30mm;
    margin: 0 0 5mm;
    padding: 5mm 6mm;
    border: 1.1mm solid #05080e;
    border-bottom: 1.4mm solid #d9a94e;
  }

  body.printing #feesPrint .print-grid {
    gap: 3mm;
    margin-bottom: 4mm;
  }

  body.printing #feesPrint .print-grid p {
    min-height: 10mm;
    padding: 2.2mm 2.6mm;
    font-size: 0.76rem;
  }

  body.printing #feesPrint td,
  body.printing #feesPrint th {
    padding: 2.7mm 3mm;
    font-size: 0.76rem;
  }

  body.printing #feesPrint .print-note {
    margin-top: 3mm;
    font-size: 0.74rem;
  }

  body.printing #feesPrint .print-signatures {
    margin-top: 13mm;
  }

  body.printing #feesPrint .print-signatures span {
    min-height: 13mm;
  }

  body.printing #feeRecordsPrint {
    width: 200mm;
    min-height: 287mm;
    padding: 9mm;
  }

  body.printing #feeRecordsPrint .print-header {
    min-height: 32mm;
    margin: 0 0 7mm;
    padding: 7mm 9mm;
  }

  body.printing #feeRecordsPrint .print-summary-cards {
    gap: 3mm;
    margin-bottom: 5mm;
  }

  body.printing #feeRecordsPrint .print-summary-cards p {
    padding: 3.2mm;
  }

  body.printing #feeRecordsPrint .spacious-print-table td,
  body.printing #feeRecordsPrint .spacious-print-table th {
    padding: 3mm 3.2mm;
    font-size: 0.76rem;
  }

  body.printing #feeRecordsPrint .print-note {
    margin-top: 5mm;
    line-height: 1.55;
  }

  body.printing #feeRecordsPrint .print-signatures {
    margin-top: 22mm;
  }

  body.printing #marksPrint {
    width: 200mm;
    min-height: 287mm;
    padding: 9mm;
  }

  body.printing #marksPrint .print-header {
    margin-bottom: 6mm;
    padding: 6mm 8mm;
  }

  body.printing #marksPrint .print-meta {
    margin-bottom: 4mm;
    padding: 3mm 4mm;
  }

  body.printing #marksPrint .report-student-band {
    gap: 3mm;
    margin: 5mm 0;
  }

  body.printing #marksPrint .report-student-band div {
    min-height: 16mm;
    padding: 3mm;
  }

  body.printing #marksPrint table {
    margin-top: 5mm;
  }

  body.printing #marksPrint td,
  body.printing #marksPrint th {
    padding: 3.2mm 3mm;
    font-size: 0.82rem;
  }

  body.printing #marksPrint .result-band {
    margin-top: 5mm;
    padding: 4mm;
  }

  body.printing #marksPrint .print-note {
    margin-top: 5mm;
    padding: 3mm 4mm;
  }

  body.printing #marksPrint .print-signatures {
    margin-top: 18mm;
    gap: 7mm;
  }

  body.printing .id-preview.is-printing {
    width: 86mm;
    min-height: 54mm;
    margin: 0 auto;
  }

  body.printing #idPrint {
    page: idcard;
    display: block;
    width: 92mm;
    min-height: 62mm;
    margin: 0 auto;
    border-radius: 3mm;
    box-shadow: none;
  }

  body.printing #idPrint .id-card-header {
    grid-template-columns: 16mm minmax(0, 1fr);
    gap: 4mm;
    padding: 4mm 5mm;
    border-bottom-width: 1mm;
  }

  body.printing #idPrint .id-card-header img {
    width: 15mm;
    height: 15mm;
  }

  body.printing #idPrint .id-card-header h2 {
    font-size: 13pt;
  }

  body.printing #idPrint .id-card-body {
    grid-template-columns: 25mm minmax(0, 1fr);
    gap: 4mm;
    padding: 4mm 5mm 2mm;
  }

  body.printing #idPrint .id-details h3 {
    font-size: 12pt;
  }

  body.printing #idPrint .id-details p,
  body.printing #idPrint .id-address {
    font-size: 7.6pt;
    line-height: 1.35;
  }

  body.printing #idPrint .id-address {
    margin: 1mm 5mm 2mm;
    padding-top: 2mm;
  }

  body.printing #idPrint .id-card-footer {
    padding: 3mm 5mm;
    font-size: 7.6pt;
  }

  body.printing #bulkIdPrint {
    width: 186mm;
    min-height: 260mm;
    margin: 0 auto;
    padding: 5mm;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.printing #bulkIdPrint .bulk-id-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
  }

  body.printing #bulkIdPrint .bulk-id-card {
    width: 100%;
    min-height: 57mm;
    border-radius: 2mm;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing #bulkIdPrint .reference-id-header {
    grid-template-columns: 10.5mm minmax(0, 1fr);
    gap: 2mm;
    min-height: 12mm;
    padding: 1.4mm 2mm;
  }

  body.printing #bulkIdPrint .reference-logo-box {
    width: 9.5mm;
    height: 9.5mm;
    border-radius: 1.2mm;
  }

  body.printing #bulkIdPrint .reference-logo-box img {
    width: 7mm;
    height: 7mm;
  }

  body.printing #bulkIdPrint .reference-id-header h2 {
    font-size: 7.4pt;
  }

  body.printing #bulkIdPrint .reference-id-header p {
    font-size: 4.6pt;
  }

  body.printing #bulkIdPrint .reference-id-body {
    grid-template-columns: 14.5mm minmax(0, 1fr);
    gap: 2mm;
    padding: 2mm 2.3mm 1mm;
  }

  body.printing #bulkIdPrint .reference-photo {
    height: 16.5mm;
    font-size: 5pt;
  }

  body.printing #bulkIdPrint .reference-details h3 {
    margin-bottom: 1mm;
    font-size: 7.2pt;
  }

  body.printing #bulkIdPrint .reference-details p,
  body.printing #bulkIdPrint .reference-contact p {
    margin: 0.4mm 0;
    font-size: 4.7pt;
    line-height: 1.18;
  }

  body.printing #bulkIdPrint .reference-contact {
    margin: 0 2.3mm;
    padding: 1.2mm 0;
  }

  body.printing #bulkIdPrint .reference-id-footer {
    min-height: 7.5mm;
    padding: 1.4mm 2.3mm;
  }

  body.printing #bulkIdPrint .reference-id-footer span,
  body.printing #bulkIdPrint .reference-id-footer strong {
    font-size: 4.8pt;
  }

  body.printing #bulkIdPrint .reference-id-footer img {
    width: 17mm;
    max-height: 6mm;
  }

  body.printing #bulkIdPrint .bulk-sheet-footer {
    margin-top: 4mm;
    padding: 3mm 4mm;
    font-size: 7pt;
  }

  body.printing #bulkIdPrint .bulk-sheet-footer b {
    min-width: 34mm;
    padding: 2mm 4mm;
  }

body.printing #bulkIdPrint .bulk-sheet-footer img {
  width: 28mm;
  max-height: 8mm;
}
}

@media screen and (max-width: 768px) {
  body:not(.printing),
  body:not(.printing) .portal-shell {
    overflow-x: hidden !important;
  }

  body:not(.printing) .portal-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 140px !important;
    gap: 8px !important;
    padding: 9px !important;
  }

  body:not(.printing) .portal-navbar > .nav-icon {
    grid-column: 1 !important;
    width: 42px !important;
    min-height: 42px !important;
  }

  body:not(.printing) .portal-navbar > .portal-brand {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  body:not(.printing) .portal-navbar > .portal-brand img {
    width: 42px !important;
    height: 42px !important;
  }

  body:not(.printing) .portal-navbar > .portal-brand strong {
    font-size: 0.98rem !important;
    line-height: 1.1 !important;
  }

  body:not(.printing) .portal-navbar > .portal-brand small,
  body:not(.printing) .profile-menu summary span {
    display: none !important;
  }

  body:not(.printing) .portal-navbar > .navbar-actions {
    grid-column: 3 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 42px) !important;
    gap: 5px !important;
    justify-content: end !important;
  }

  body:not(.printing) .reminder-menu,
  body:not(.printing) .profile-menu,
  body:not(.printing) .reminder-menu summary,
  body:not(.printing) .profile-menu summary,
  body:not(.printing) .navbar-actions .nav-icon {
    width: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  body:not(.printing) .profile-menu summary {
    padding: 4px !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  body:not(.printing) .profile-menu img {
    width: 32px !important;
    height: 32px !important;
  }

  body:not(.printing) .portal-search {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    gap: 8px !important;
  }

  body:not(.printing) .portal-layout {
    display: block !important;
    padding: 10px !important;
  }

  body:not(.printing) .portal-side {
    position: fixed !important;
    top: 78px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 100 !important;
    display: block !important;
    max-height: calc(100dvh - 92px) !important;
    overflow: auto !important;
    padding: 12px !important;
    border: 1px solid rgba(217, 169, 78, 0.34) !important;
    border-radius: 8px !important;
    background: linear-gradient(145deg, rgba(6, 10, 17, 0.98), rgba(2, 4, 8, 0.98)) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58) !important;
    transform: translateY(-12px) scale(0.98) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.18s ease, opacity 0.18s ease !important;
  }

  body.sidebar-collapsed:not(.printing) .portal-side {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.sidebar-collapsed:not(.printing)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(3px) !important;
  }

  body:not(.printing) .portal-side .portal-brand span,
  body:not(.printing) .menu-group summary {
    display: block !important;
  }

  body:not(.printing) .portal-side a:not(.portal-brand) {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    justify-content: flex-start !important;
    font-size: 0.9rem !important;
    text-align: left !important;
  }

  body:not(.printing) .portal-side a[data-icon]::before {
    margin-right: 10px !important;
    font-size: 0.92rem !important;
  }

  body:not(.printing) .portal-main {
    padding: 12px !important;
    overflow: visible !important;
  }

  body:not(.printing) .portal-top,
  body:not(.printing) .teacher-dashboard-hero,
  body:not(.printing) .fee-collection-hero,
  body:not(.printing) .panel,
  body:not(.printing) .premium-form {
    padding: 16px !important;
    border-radius: 8px !important;
  }

  body:not(.printing) .portal-top h1 {
    font-size: clamp(1.45rem, 8vw, 2.15rem) !important;
    line-height: 1.08 !important;
  }

  body:not(.printing) .metrics,
  body:not(.printing) .quick-actions,
  body:not(.printing) .teacher-tool-grid,
  body:not(.printing) .teacher-stat-strip,
  body:not(.printing) .finance-kpis,
  body:not(.printing) .form-grid-3,
  body:not(.printing) .filter-bar,
  body:not(.printing) .fee-account-card,
  body:not(.printing) .dashboard-split,
  body:not(.printing) .finance-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body:not(.printing) .quick-actions a,
  body:not(.printing) .teacher-tool-grid a {
    min-height: 88px !important;
    padding: 16px !important;
  }

  body:not(.printing) table {
    min-width: 620px !important;
  }
}

.store-sync-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 169, 78, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 169, 78, 0.14), rgba(13, 18, 27, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-sync-card span,
.store-sync-card small {
  display: block;
  color: var(--muted);
}

.store-sync-card strong {
  display: block;
  margin: 4px 0;
  color: var(--gold-soft);
}

body.mobile-portal:not(.printing) {
  background: #02050a !important;
  color: #fff7e8 !important;
  overflow-x: hidden !important;
}

body.mobile-portal:not(.printing) .portal-shell {
  min-height: 100dvh !important;
  overflow-x: hidden !important;
}

body.mobile-portal:not(.printing) .portal-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 220 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 138px !important;
  gap: 8px !important;
  padding: 8px !important;
  background: rgba(2, 5, 10, 0.96) !important;
  border-bottom: 1px solid rgba(217, 169, 78, 0.22) !important;
  backdrop-filter: blur(18px) !important;
}

body.mobile-portal:not(.printing) .portal-navbar > .nav-icon {
  grid-column: 1 !important;
  width: 42px !important;
  min-height: 42px !important;
}

body.mobile-portal:not(.printing) .portal-navbar > .portal-brand {
  grid-column: 2 !important;
  min-width: 0 !important;
  gap: 8px !important;
}

body.mobile-portal:not(.printing) .portal-navbar > .portal-brand img {
  width: 40px !important;
  height: 40px !important;
}

body.mobile-portal:not(.printing) .portal-navbar > .portal-brand strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.96rem !important;
}

body.mobile-portal:not(.printing) .portal-navbar > .portal-brand small,
body.mobile-portal:not(.printing) .profile-menu summary span {
  display: none !important;
}

body.mobile-portal:not(.printing) .navbar-actions {
  grid-column: 3 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 42px) !important;
  justify-content: end !important;
  gap: 4px !important;
}

body.mobile-portal:not(.printing) .portal-search {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 74px !important;
  gap: 8px !important;
}

body.mobile-portal:not(.printing) .portal-search input,
body.mobile-portal:not(.printing) .portal-search button {
  min-height: 42px !important;
}

body.mobile-portal:not(.printing) .portal-layout {
  display: block !important;
  padding: 8px !important;
}

body.mobile-portal:not(.printing) .portal-side {
  position: fixed !important;
  top: 76px !important;
  left: 8px !important;
  right: 8px !important;
  z-index: 210 !important;
  display: block !important;
  max-height: calc(100dvh - 88px) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px !important;
  border: 1px solid rgba(217, 169, 78, 0.36) !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, rgba(5, 8, 14, 0.99), rgba(1, 3, 7, 0.99)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.66) !important;
  transform: translateY(-10px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.mobile-portal.mobile-drawer-open:not(.printing) .portal-side,
body.mobile-portal.sidebar-collapsed:not(.printing) .portal-side {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.mobile-portal.mobile-drawer-open:not(.printing)::before,
body.mobile-portal.sidebar-collapsed:not(.printing)::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 200 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

body.mobile-portal:not(.printing) .portal-side .portal-brand span,
body.mobile-portal:not(.printing) .menu-group summary {
  display: block !important;
}

body.mobile-portal:not(.printing) .portal-side a:not(.portal-brand) {
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  font-size: 0.9rem !important;
}

body.mobile-portal:not(.printing) .portal-main {
  padding: 8px !important;
  overflow: visible !important;
}

body.mobile-portal:not(.printing) .portal-top {
  min-height: auto !important;
  padding: 18px 14px !important;
  margin-bottom: 12px !important;
  border-radius: 8px !important;
}

body.mobile-portal:not(.printing) .portal-top h1 {
  font-size: clamp(1.5rem, 8vw, 2rem) !important;
  line-height: 1.08 !important;
}

body.mobile-portal:not(.printing) .portal-user {
  display: none !important;
}

body.mobile-portal:not(.printing) .metrics,
body.mobile-portal:not(.printing) .finance-kpis,
body.mobile-portal:not(.printing) .teacher-stat-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.mobile-portal:not(.printing) .quick-actions,
body.mobile-portal:not(.printing) .teacher-tool-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.mobile-portal:not(.printing) .quick-actions a,
body.mobile-portal:not(.printing) .teacher-tool-grid a {
  min-height: 82px !important;
  padding: 13px !important;
  border-radius: 8px !important;
}

body.mobile-portal:not(.printing) .dashboard-split,
body.mobile-portal:not(.printing) .finance-grid,
body.mobile-portal:not(.printing) .form-grid-3,
body.mobile-portal:not(.printing) .filter-bar,
body.mobile-portal:not(.printing) .fee-account-card,
body.mobile-portal:not(.printing) .teacher-dashboard-hero {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body.mobile-portal:not(.printing) .panel,
body.mobile-portal:not(.printing) .premium-form,
body.mobile-portal:not(.printing) .fee-collection-hero,
body.mobile-portal:not(.printing) .teacher-dashboard-hero {
  padding: 14px !important;
  border-radius: 8px !important;
}

body.mobile-portal:not(.printing) .student-list-table,
body.mobile-portal:not(.printing) .table-wrap,
body.mobile-portal:not(.printing) .panel:has(table),
body.mobile-portal:not(.printing) .premium-form:has(table) {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media screen and (max-width: 430px) {
  body.mobile-portal:not(.printing) .portal-navbar {
    grid-template-columns: 42px minmax(0, 1fr) 92px !important;
  }

  body.mobile-portal:not(.printing) .navbar-actions {
    grid-template-columns: repeat(2, 42px) !important;
  }

  body.mobile-portal:not(.printing) .profile-menu {
    display: none !important;
  }

  body.mobile-portal:not(.printing) .metrics,
  body.mobile-portal:not(.printing) .finance-kpis,
  body.mobile-portal:not(.printing) .teacher-stat-strip,
  body.mobile-portal:not(.printing) .quick-actions,
  body.mobile-portal:not(.printing) .teacher-tool-grid {
    grid-template-columns: 1fr !important;
  }
}
