:root {
  --blue-900: #0b2d4d;
  --blue-800: #123f6d;
  --blue-700: #155b9d;
  --blue-100: #eaf4ff;
  --orange-700: #d86400;
  --orange-600: #f57c00;
  --orange-100: #fff1df;
  --green-600: #128c4a;
  --ink: #17212b;
  --muted: #667085;
  --line: #d9e2ec;
  --soft: #f6f8fb;
  --white: #ffffff;
  --danger: #c62828;
  --shadow: 0 18px 50px rgba(15, 38, 67, 0.12);
  --shadow-strong: 0 26px 70px rgba(10, 35, 64, 0.22);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.has-mobile-app-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

.receipt-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.receipt-status.cancelled {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.lookup-secure-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.lookup-secure-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 800;
}

.lookup-secure-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.lookup-neutral-message {
  text-align: center;
}

.lookup-neutral-message .btn {
  margin-top: 12px;
}

.policy-page {
  max-width: 900px;
  margin-inline: auto;
}

.policy-page h2 {
  margin-top: 28px;
  color: var(--blue-900);
  font-size: 1.2rem;
}

.policy-page li {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .lookup-secure-form {
    grid-template-columns: 1fr;
  }

  .lookup-secure-form .btn {
    width: 100%;
    min-height: 44px;
  }
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.slip-logo,
.mini-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--blue-700);
  border: 3px solid var(--orange-600);
  border-radius: 50%;
  font-weight: 800;
}

.brand-mark.has-logo,
.slip-logo.has-logo,
.mini-logo.has-logo {
  overflow: hidden;
  padding: 0;
  background: var(--white);
}

.brand-mark.has-logo img,
.slip-logo.has-logo img,
.mini-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active,
.nav-button:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-900);
}

.mobile-app-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
  isolation: isolate;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 31, 58, 0.9), rgba(6, 31, 58, 0.72) 52%, rgba(6, 31, 58, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -34%;
  z-index: 2;
  height: 62%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.44;
  pointer-events: none;
  transform: rotateX(64deg) translateY(14px);
  transform-origin: center bottom;
  animation: heroGridMove 18s linear infinite;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero.three-ready .hero-3d-canvas {
  opacity: 0.88;
}

.hero.three-fallback .hero-3d-canvas,
.hero.three-paused .hero-3d-canvas {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: block;
  padding: 104px 0 62px;
}

.hero-copy {
  max-width: 820px;
  animation: heroCopyIn 0.5s var(--ease) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffbc70;
}

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

.hero h1 {
  margin-bottom: 18px;
  max-width: 900px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions,
.action-row,
.form-actions,
.dashboard-actions,
.profile-actions,
.id-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--orange-600);
  box-shadow: 0 10px 24px rgba(245, 124, 0, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 16px 34px rgba(245, 124, 0, 0.32);
}

.btn.secondary {
  color: var(--blue-800);
  background: var(--white);
  border-color: var(--line);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn.disabled-link,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  transform: none;
}

.btn.whatsapp {
  color: var(--white);
  background: var(--green-600);
}

.tap-animate {
  animation: buttonTap 220ms var(--ease);
}

@keyframes buttonTap {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.96);
  }

  75% {
    transform: scale(1.035);
  }

  100% {
    transform: scale(1);
  }
}

.btn.full {
  width: 100%;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-contact span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.quick-contact span:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-2px);
}

.home-proof-band {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, transparent 0, var(--white) 35%);
}

.director-section {
  background: #fff;
}

.director-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.director-portrait {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 7 / 8;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f5f8fb;
  box-shadow: 0 18px 46px rgba(16, 49, 82, 0.13);
}

.director-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.director-copy h2 {
  max-width: 760px;
  margin-bottom: 22px;
}

.director-copy blockquote {
  max-width: 780px;
  margin: 0 0 26px;
  padding: 20px 0 20px 24px;
  border-left: 4px solid var(--orange);
  color: #34475c;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.director-signoff {
  display: grid;
  gap: 4px;
  color: #5d6d80;
}

.director-signoff strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.director-signoff small {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .director-layout {
    grid-template-columns: 1fr;
  }

  .director-portrait {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .director-copy {
    text-align: center;
  }

  .director-copy blockquote {
    padding: 16px 0 16px 18px;
    text-align: left;
  }

  .director-copy .section-actions {
    justify-content: center;
  }
}

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

.proof-grid article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.1);
}

.proof-grid strong {
  color: var(--blue-900);
  font-size: 1rem;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 16px;
  max-width: 960px;
  margin-top: 44px;
  transform-style: preserve-3d;
  animation: heroPanelIn 0.85s var(--ease) 0.08s both;
}

.admission-card,
.hero-stats {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.admission-card:hover,
.hero-stats:hover {
  border-color: rgba(255, 207, 141, 0.52);
  transform: translateY(-4px) rotateX(2deg);
}

.admission-card {
  padding: 22px;
}

.admission-card h2 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
}

.admission-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-checks span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 207, 141, 0.38);
  border-radius: 999px;
  color: #ffcf8d;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-900);
  background: #ffcf8d;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.hero-stats div {
  padding: 22px 14px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.75rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
  background: var(--white);
}

.institute-section {
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.68), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.muted-section {
  background: var(--blue-100);
}

.section-heading {
  margin-bottom: 24px;
}

.compact-heading {
  margin-top: 34px;
}

.section-heading h2,
.two-column h2,
.contact-layout h2,
.page-title h1,
.dashboard-head h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-copy,
.page-title p,
.login-card p {
  color: var(--muted);
}

.feature-grid,
.track-grid {
  display: grid;
  gap: 16px;
}

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

.track-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-card,
.track-card,
.portal-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(15, 38, 67, 0.08);
}

.feature-card,
.track-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.feature-card::before,
.track-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-600), var(--blue-700));
}

.feature-card:hover,
.track-card:hover {
  border-color: rgba(21, 91, 157, 0.24);
  box-shadow: 0 22px 46px rgba(15, 38, 67, 0.12);
  transform: translateY(-5px);
}

.feature-card span,
.track-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3,
.track-card h3 {
  margin-bottom: 8px;
  color: var(--blue-900);
}

.feature-card p,
.track-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.track-card {
  background: linear-gradient(145deg, var(--white), #f8fbff);
}

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

.level-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(15, 38, 67, 0.07);
}

.level-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.level-card strong {
  color: var(--blue-900);
  line-height: 1.35;
}

.level-card.job span {
  background: var(--green-600);
}

.level-card.pro span {
  background: var(--orange-700);
}

.course-showcase {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.92)),
    var(--white);
  box-shadow: 0 22px 54px rgba(15, 38, 67, 0.08);
}

.course-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-category-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.course-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), #f8fbff);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-600), var(--blue-700));
}

.course-card:hover {
  border-color: rgba(21, 91, 157, 0.28);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.12);
  transform: translateY(-4px);
}

.course-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(21, 91, 157, 0.18);
}

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

.course-card-content {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.course-enquire-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid rgba(245, 124, 0, 0.35);
  border-radius: 6px;
  color: var(--orange-700);
  background: var(--orange-100);
  font-weight: 900;
}

.course-more-action {
  justify-content: center;
  margin-top: 24px;
}

.course-card span {
  width: fit-content;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.72rem;
  font-weight: 900;
}

.course-card strong {
  color: var(--blue-900);
  line-height: 1.25;
}

.course-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.course-accounting .course-mark {
  background: linear-gradient(135deg, var(--green-600), #0b6f3a);
}

.course-design .course-mark {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
}

.course-coding .course-mark {
  background: linear-gradient(135deg, #155b9d, #10345c);
}

.course-video .course-mark {
  background: linear-gradient(135deg, #7c3aed, #155b9d);
}

.course-diploma .course-mark {
  background: linear-gradient(135deg, #0f766e, var(--blue-700));
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  align-items: start;
}

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

.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), #f8fbff);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.05);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.batch-item:hover {
  border-color: rgba(245, 124, 0, 0.34);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.11);
  transform: translateY(-4px);
}

.batch-item span {
  display: grid;
  gap: 2px;
}

.batch-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.batch-item strong {
  color: var(--blue-900);
  font-weight: 950;
}

.batch-item a {
  color: var(--orange-600);
  font-weight: 900;
}

.batch-public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.batch-public-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.batch-public-actions a:first-child {
  color: var(--green-600);
  border-color: rgba(18, 140, 74, 0.28);
  background: #edf9f2;
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .batch-item,
  .batch-public-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-public-actions {
    width: 100%;
  }

  .batch-public-actions a {
    justify-content: center;
    min-height: 44px;
  }
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portal-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.portal-strip h2 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.12;
}

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

.portal-points span,
.portal-points a {
  padding: 14px 12px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  color: var(--blue-900);
  background: #fbfdff;
  font-weight: 900;
}

.portal-points a:hover {
  border-color: rgba(245, 124, 0, 0.36);
  color: var(--orange-700);
  background: var(--orange-100);
}

.contact-highlight {
  display: grid;
  gap: 4px;
  width: fit-content;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: var(--radius);
  background: #fff8ef;
}

.contact-highlight strong {
  color: var(--orange-700);
}

.contact-highlight span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card,
.form-card,
.panel,
.success-card,
.login-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}

.contact-card:hover,
.form-card:hover,
.panel:hover,
.success-card:hover,
.login-card:hover,
.stat-card:hover {
  border-color: rgba(21, 91, 157, 0.18);
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.contact-card {
  padding: 24px;
}

.contact-card p,
.success-summary p,
.detail-grid p {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card p:last-of-type,
.success-summary p:last-child,
.detail-grid p:last-child {
  border-bottom: 0;
}

.contact-card strong,
.success-summary strong,
.detail-grid strong {
  color: var(--blue-900);
}

.contact-actions {
  margin-top: 20px;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--blue-900);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.page-shell {
  padding: 48px 0 72px;
}

body[data-page="dashboard"] .page-shell {
  padding: 28px 0 34px;
}

.page-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.form-card {
  overflow: hidden;
}

.form-section {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-section-head h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.form-section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.filter-grid {
  margin-bottom: 20px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7e2;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.12);
}

.searchable-select {
  position: relative;
  display: block;
  width: 100%;
}

.searchable-select-input {
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--blue-700) 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--blue-700) 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    var(--white);
}

.native-search-select {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.searchable-select-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #bfd0df;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(10, 41, 72, 0.18);
}

.searchable-select-option,
.searchable-select-empty {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.searchable-select-option {
  display: block;
  cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.active {
  color: var(--blue-900);
  background: #eaf4ff;
}

.searchable-select-empty {
  color: var(--muted);
}

.form-grid > .wide,
.filter-grid > .wide,
label.wide {
  grid-column: 1 / -1;
}

.field-message,
.upload-box small {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-message.danger,
.form-error {
  color: var(--danger);
}

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

.upload-box {
  align-content: start;
  min-height: 220px;
  padding: 16px;
  border: 1px dashed #a9bbca;
  border-radius: var(--radius);
  background: #fbfdff;
}

.upload-box input {
  padding: 9px;
  background: var(--white);
}

.photo-preview {
  display: none;
  width: 112px;
  height: 132px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-100);
}

.photo-preview.show {
  display: block;
}

.form-actions {
  justify-content: flex-end;
  padding: 22px 26px;
  background: #fbfdff;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status.success {
  color: var(--green-600);
}

.form-status.error {
  color: var(--danger);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--blue-900);
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 31, 58, 0.74);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 30px;
}

.login-brand {
  margin-bottom: 24px;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.link-button {
  justify-self: center;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-head,
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

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

.settings-wide {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.course-builder {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

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

.course-builder-head h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 1rem;
}

.course-builder-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.additional-courses {
  display: grid;
  gap: 12px;
}

.additional-course-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.7fr) minmax(170px, 0.8fr) minmax(104px, auto);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.13);
  border-radius: var(--radius);
  background: var(--white);
}

.icon-text-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--blue-800);
  background: var(--white);
  font-weight: 900;
}

.additional-course-row .icon-text-button {
  align-self: end;
  white-space: nowrap;
}

.icon-text-button.danger {
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.28);
  background: rgba(190, 18, 60, 0.06);
}

.logo-preview {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--orange-600);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-700);
  font-size: 2rem;
  font-weight: 900;
}

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

.database-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.9rem;
  font-weight: 900;
}

.database-badge.online {
  color: var(--green-600);
  background: #e8f7ee;
}

.database-badge.warning {
  color: var(--orange-700);
  background: var(--orange-100);
  border-color: rgba(245, 124, 0, 0.35);
}

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

.setup-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.setup-steps strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.9rem;
  line-height: 1;
}

.setup-steps span {
  color: var(--ink);
  font-weight: 800;
}

.firebase-config-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.firebase-config-form textarea {
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}

.setup-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: var(--radius);
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
}

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

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  min-height: 48px;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  color: var(--blue-800);
  font-size: 2.2rem;
  line-height: 1;
}

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

.panel {
  padding: 22px;
  box-shadow: none;
}

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

.panel-head h2 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

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

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

.mini-chart {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(120px, 1fr) 32px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}

.chart-row span {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-600);
}

.chart-row strong {
  color: var(--blue-800);
  text-align: right;
}

.count-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.count-item span {
  min-width: 0;
}

.count-item strong {
  color: var(--orange-600);
}

body[data-page="dashboard"] .dashboard-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: 16px;
  margin-bottom: 16px;
}

body[data-page="dashboard"] .dashboard-head h1 {
  max-width: 360px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

body[data-page="dashboard"] .dashboard-actions {
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="dashboard"] .dashboard-actions .btn,
body[data-page="dashboard"] .dashboard-actions .database-badge {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

body[data-page="dashboard"] .dashboard-tool-panel {
  margin-bottom: 16px;
  border-color: rgba(25, 118, 210, 0.15);
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(245, 124, 0, 0.05)),
    var(--white);
}

.tool-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.tool-action-grid .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
}

.backup-activity-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.backup-health-panel {
  border-color: rgba(46, 125, 50, 0.18);
  background:
    linear-gradient(135deg, rgba(46, 125, 50, 0.06), rgba(25, 118, 210, 0.04)),
    var(--white);
}

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

.backup-health-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(15, 38, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.backup-health-card span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.backup-health-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-900);
  font-size: 1rem;
  line-height: 1.25;
}

.backup-health-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.backup-health-card.success {
  border-color: rgba(25, 135, 84, 0.24);
  background: #f1fbf5;
}

.backup-health-card.warning {
  border-color: rgba(245, 124, 0, 0.28);
  background: #fff8ec;
}

.activity-log-panel {
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(255, 255, 255, 0.9)),
    var(--white);
}

.activity-log-list {
  display: grid;
  gap: 9px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-log-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(15, 38, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.activity-log-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.84rem;
  font-weight: 900;
}

.activity-log-item[data-type="fee"] .activity-log-icon {
  color: #9a4b00;
  background: #fff1dd;
}

.activity-log-item[data-type="backup"] .activity-log-icon {
  color: #0f6b37;
  background: #e8f7ee;
}

.activity-log-item[data-type="certificate"] .activity-log-icon {
  color: #5b3aa8;
  background: #f0ebff;
}

.activity-log-main {
  min-width: 0;
}

.activity-log-main strong {
  display: block;
  color: var(--blue-900);
  line-height: 1.25;
}

.activity-log-main p {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-log-main small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

body[data-page="dashboard"] .stats-grid {
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .stat-card {
  min-height: 112px;
  padding: 16px;
}

body[data-page="dashboard"] .stat-card span {
  min-height: 34px;
  font-size: 0.94rem;
}

body[data-page="dashboard"] .stat-card strong {
  font-size: 2rem;
}

body[data-page="dashboard"] .panel {
  padding: 18px;
}

body[data-page="dashboard"] .panel-head {
  margin-bottom: 14px;
}

body[data-page="dashboard"] .filter-grid {
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="dashboard"] .dashboard-analytics {
  margin-top: 16px;
  margin-bottom: 0;
}

body[data-page="dashboard"] .dashboard-analytics .count-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page="dashboard"] .dashboard-student-panel {
  display: block !important;
  margin: 0 0 16px;
}

body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
  max-height: min(620px, calc(100vh - 300px));
  overflow: auto;
}

body[data-page="dashboard"] .dashboard-student-panel .student-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mobile-student-list {
  display: none;
}

.student-table {
  width: 100%;
  min-width: 1140px;
  border-collapse: collapse;
  background: var(--white);
}

.student-table th,
.student-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.student-table th {
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 0.88rem;
}

.student-table tr:last-child td {
  border-bottom: 0;
}

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

.table-actions a,
.table-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--blue-800);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-action,
.standalone-fee-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 124, 0, 0.52);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(245, 124, 0, 0.18);
}

.fee-action:hover,
.standalone-fee-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(245, 124, 0, 0.26);
}

.reminder-action {
  border-color: rgba(18, 140, 74, 0.5);
  background: linear-gradient(135deg, #14a85d, var(--green-600));
  box-shadow: 0 8px 18px rgba(18, 140, 74, 0.18);
}

.reminder-action:hover {
  box-shadow: 0 12px 22px rgba(18, 140, 74, 0.24);
}

.disabled-action {
  color: var(--muted);
  border-color: var(--line);
  background: #eef2f6;
  box-shadow: none;
  cursor: not-allowed;
}

.report-quick-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(21, 91, 157, 0.09);
  backdrop-filter: blur(12px);
}

.report-nav-button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.report-nav-button span {
  font-size: 0.76rem;
  font-weight: 850;
}

.report-nav-button strong {
  color: var(--blue-900);
  font-size: 0.94rem;
  line-height: 1.1;
}

.report-nav-button.active,
.report-nav-button:hover {
  border-color: rgba(245, 124, 0, 0.3);
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  box-shadow: 0 10px 20px rgba(245, 124, 0, 0.11);
}

.report-tab-panel {
  animation: reportPanelIn 180ms ease both;
}

.report-tab-panel[hidden] {
  display: none !important;
}

@keyframes reportPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-overview-panel {
  margin-bottom: 18px;
}

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

.compact-collection-grid {
  margin: 18px 0;
}

.collection-stat-card {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    var(--white);
  box-shadow: 0 16px 30px rgba(21, 91, 157, 0.07);
}

.collection-stat-card span {
  color: var(--muted);
  font-weight: 900;
}

.collection-stat-card strong {
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1;
}

.collection-stat-card.cash {
  border-color: rgba(245, 124, 0, 0.24);
}

.collection-stat-card.upi {
  border-color: rgba(25, 118, 210, 0.22);
}

.collection-stat-card.today {
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.report-overview-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  border-color: rgba(25, 118, 210, 0.16);
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.09), rgba(245, 124, 0, 0.08)),
    var(--white);
}

.report-overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: end;
}

.report-overview-title {
  display: grid;
  gap: 6px;
}

.report-overview-title h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.35rem;
}

.report-overview-title span {
  color: var(--muted);
  font-weight: 800;
}

.report-control-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.report-control-card label {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 900;
}

.report-control-card input[type="month"] {
  width: 100%;
  min-width: 0;
}

.report-control-card .btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel-status {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.panel-status[data-state="error"] {
  color: #b91c1c;
}

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

.report-money-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(25, 118, 210, 0.16);
  border-radius: var(--radius);
  background: var(--white);
}

.report-money-card span {
  color: var(--muted);
  font-weight: 900;
}

.report-money-card strong {
  color: var(--blue-800);
  font-size: 2rem;
  line-height: 1;
}

.report-money-card.received {
  border-color: rgba(21, 128, 61, 0.2);
  background: #f3fbf6;
}

.report-money-card.received strong {
  color: var(--green-600);
}

.report-money-card.pending {
  border-color: rgba(245, 124, 0, 0.28);
  background: #fff8ef;
}

.report-money-card.pending strong {
  color: var(--orange-700);
}

.report-mini-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-mini-stats article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.report-mini-stats span {
  color: var(--muted);
  font-weight: 900;
}

.report-mini-stats strong {
  color: var(--blue-800);
  font-size: 1.45rem;
}

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

.balance-summary-grid article:last-child {
  border-color: rgba(245, 124, 0, 0.26);
  background: #fff8ef;
}

.balance-summary-grid article:last-child strong {
  color: var(--orange-700);
}

.compact-report-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.balance-report-table th:nth-child(1),
.balance-report-table td:nth-child(1) {
  min-width: 220px;
}

.balance-report-table th:nth-child(4),
.balance-report-table td:nth-child(4) {
  min-width: 330px;
}

.balance-course-list,
.balance-month-list {
  display: grid;
  gap: 8px;
}

.balance-course-list > span,
.balance-month-list > span {
  display: grid;
  gap: 4px;
  align-items: start;
}

.balance-course-list > span {
  grid-template-columns: minmax(120px, auto) max-content;
  justify-content: start;
}

.balance-month-list strong {
  color: var(--blue-800);
}

.balance-month-list span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.report-action-row .btn {
  min-height: 42px;
}

.report-summary-visuals,
.monthly-pending-panel {
  margin-bottom: 18px;
}

.batch-report-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.batch-report-picker {
  min-width: 260px;
}

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

.batch-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: #fbfdff;
}

.batch-summary-card.highlight {
  border-color: rgba(245, 124, 0, 0.32);
  background: linear-gradient(145deg, #fff8ef, #ffffff);
}

.batch-summary-card span {
  color: var(--muted);
  font-weight: 900;
}

.batch-summary-card strong {
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1;
}

.batch-count-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.batch-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(21, 91, 157, 0.06);
  cursor: pointer;
}

.batch-chip span {
  font-weight: 900;
}

.batch-chip strong {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-800);
  text-align: center;
}

.batch-chip.active {
  border-color: rgba(245, 124, 0, 0.36);
  background: #fff8ef;
}

.batch-chip.active strong {
  background: var(--orange-700);
}

.batch-report-table {
  min-width: 900px;
}

.compact-link {
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.report-audit-panel {
  margin-top: 18px;
}

.report-export-panel {
  margin-bottom: 18px;
}

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

.report-export-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--blue-900);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    var(--white);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.07);
  text-align: left;
  cursor: pointer;
}

.report-export-card:hover {
  border-color: rgba(245, 124, 0, 0.28);
  transform: translateY(-1px);
}

.report-export-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--orange-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-export-card strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.report-export-card small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.duplicate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 124, 0, 0.28);
  border-radius: var(--radius);
  background: #fff8ef;
}

.duplicate-card > div {
  display: grid;
  gap: 4px;
}

.duplicate-card strong {
  color: var(--blue-900);
}

.duplicate-card span {
  color: var(--muted);
  font-weight: 800;
}

.duplicate-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duplicate-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--white);
}

.duplicate-card a {
  color: var(--blue-700);
  font-weight: 900;
}

.report-print-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.report-print-summary p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.report-print-summary strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.report-print-table {
  min-width: 0;
}

.table-actions button[data-action="delete"],
.table-actions button[data-fee-action="delete"] {
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.28);
  background: rgba(190, 18, 60, 0.06);
}

.empty-state {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.loading-skeleton-block {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.loading-skeleton-block p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.skeleton-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card p {
  display: block;
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3f8 0%, #f8fbff 45%, #edf3f8 100%);
  background-size: 220% 100%;
  animation: skeletonFlow 1.15s ease-in-out infinite;
}

.skeleton-card span {
  width: 36%;
}

.skeleton-card strong {
  width: 78%;
  height: 18px;
}

.skeleton-card p {
  width: 58%;
}

@keyframes skeletonFlow {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.success-layout {
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.success-card {
  width: min(860px, 100%);
  padding: 28px;
}

.success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-600);
  font-weight: 900;
}

.success-summary {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lookup-panel {
  display: grid;
  gap: 20px;
}

.lookup-privacy-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.lookup-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.lookup-note {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid #ffd6a3;
  border-radius: 6px;
  color: #8a4a00;
  background: #fff7ec;
  font-weight: 800;
}

.lookup-card.stacked-result + .lookup-card.stacked-result {
  margin-top: 14px;
}

.certificate-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(245, 124, 0, 0.09), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #eef5fb 100%);
}

.certificate-title {
  max-width: 820px;
}

.certificate-verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.certificate-search-panel,
.certificate-qr-panel {
  position: relative;
  overflow: hidden;
}

.certificate-search-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.certificate-search-panel::before,
.certificate-qr-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(21, 91, 157, 0.08), transparent 42%, rgba(245, 124, 0, 0.08));
}

.certificate-seal {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--orange-600));
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.22);
}

.certificate-search-panel h2,
.certificate-qr-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.certificate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.certificate-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 900;
}

.certificate-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #c8d7e8;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.certificate-form input:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.13);
}

.certificate-entry-panel {
  overflow: hidden;
}

.certificate-entry-form {
  display: grid;
  gap: 18px;
}

.certificate-preview-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: #fbfdff;
}

.certificate-preview-box strong {
  color: var(--blue-900);
}

.certificate-preview-box a {
  color: var(--blue-700);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.certificate-guide-panel {
  margin-top: 18px;
}

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

.certificate-guide-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.certificate-guide-grid strong {
  color: var(--blue-900);
}

.certificate-guide-grid span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.certificate-verify-status {
  min-height: 28px;
  color: var(--blue-800);
  font-weight: 800;
}

.certificate-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.38);
  animation: certificatePulse 1s ease-in-out infinite;
}

.certificate-qr-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.certificate-qr-wrap {
  width: 228px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(15, 38, 67, 0.12);
}

.certificate-qr-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.certificate-link-text {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-weight: 800;
}

@keyframes certificatePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.38);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(245, 124, 0, 0);
  }
}

.registration-slip {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98)),
    var(--white);
  box-shadow: 0 22px 50px rgba(11, 45, 77, 0.12);
}

.fee-receipt::before {
  content: "MICE";
  position: absolute;
  right: 26px;
  bottom: 42px;
  z-index: 0;
  color: rgba(21, 91, 157, 0.055);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.registration-slip::before {
  content: "";
  position: absolute;
  inset: auto 26px 26px auto;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(21, 91, 157, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 124, 0, 0.08), transparent 58%),
    rgba(255, 255, 255, 0);
  pointer-events: none;
}

.slip-header,
.id-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-900);
}

.registration-slip > *,
.fee-receipt > * {
  position: relative;
  z-index: 1;
}

.registration-slip .slip-header,
.fee-receipt .slip-header,
.report-print-slip .slip-header {
  margin: -14px -14px 0;
  padding: 18px;
  color: var(--white);
  border-bottom: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 45, 77, 0.98), rgba(21, 91, 157, 0.94)),
    var(--blue-900);
}

.registration-slip .slip-header h2,
.registration-slip .slip-header p,
.fee-receipt .slip-header h2,
.fee-receipt .slip-header p,
.report-print-slip .slip-header h2,
.report-print-slip .slip-header p {
  color: var(--white);
}

.slip-header h2,
.id-card-top h2 {
  margin-bottom: 4px;
  color: var(--blue-900);
  font-size: 1.45rem;
}

.slip-header p,
.id-card-top p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.slip-title {
  margin: 18px 0;
  padding: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.slip-meta-strip,
.receipt-amount-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.slip-meta-strip p,
.receipt-amount-band p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.07);
}

.slip-meta-strip strong,
.receipt-amount-band strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.slip-meta-strip span,
.receipt-amount-band span {
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 900;
}

.receipt-amount-band p:nth-child(2) {
  border-color: rgba(18, 140, 74, 0.26);
  background: linear-gradient(135deg, rgba(18, 140, 74, 0.09), var(--white));
}

.premium-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 14px;
  color: var(--blue-900);
  border: 2px solid var(--orange-600);
  border-radius: 999px;
  background: #fff8ed;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slip-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 138px;
  gap: 18px;
}

.public-admission-details .slip-body {
  grid-template-columns: minmax(0, 1fr) 138px;
}

.slip-photo,
.profile-photo-block,
.id-photo,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-100);
}

.slip-photo {
  width: 150px;
  height: 180px;
  border-radius: var(--radius);
}

.slip-photo img,
.profile-photo-block img,
.id-photo img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slip-photo span,
.profile-photo-block span,
.id-photo span,
.profile-avatar span {
  color: var(--blue-800);
  font-weight: 900;
}

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

.slip-body th,
.slip-body td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.slip-body th {
  width: 220px;
  color: var(--blue-900);
  background: #fbfdff;
}

.slip-qr {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--blue-900);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.slip-qr img {
  width: 118px;
  height: 118px;
}

.admission-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--orange-100);
}

.admission-check span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue-900);
  border-radius: 4px;
  background: var(--white);
}

.admission-check p {
  margin: 0;
  color: var(--blue-900);
  font-weight: 800;
}

.terms-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.terms-box h3 {
  margin-bottom: 10px;
}

.terms-box ol {
  margin: 0;
  padding-left: 22px;
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.signature-row span,
.id-signature span {
  display: block;
  height: 1px;
  background: var(--ink);
}

.signature-row p,
.id-signature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.profile-main {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 18px;
}

.profile-photo-block {
  width: 180px;
  height: 220px;
  border-radius: var(--radius);
}

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

.compact-form {
  margin-bottom: 16px;
}

.fee-form {
  display: grid;
  gap: 16px;
}

.field-note {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

.registration-fee-field[hidden] {
  display: none;
}

.quick-fee-panel {
  margin-bottom: 20px;
  border-color: rgba(245, 124, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 241, 223, 0.86), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.quick-fee-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-top: 4px solid rgba(245, 124, 0, 0.9);
  background:
    linear-gradient(135deg, rgba(244, 248, 252, 0.96), rgba(255, 255, 255, 0.98) 42%, rgba(255, 247, 237, 0.9)),
    #ffffff;
}

.quick-fee-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 49, 88, 0.08), rgba(245, 124, 0, 0.1));
}

.quick-fee-panel > .panel-head {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.quick-fee-panel > .panel-head h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.32rem;
}

.quick-fee-panel > .panel-head span {
  color: #64748b;
  font-weight: 800;
}

.quick-fee-panel .fee-form {
  position: relative;
  z-index: 1;
  padding: 18px 22px 22px;
}

.quick-fee-panel .form-grid {
  grid-template-columns: 1.35fr 0.78fr 0.96fr 0.82fr;
  gap: 14px;
  align-items: stretch;
}

.quick-fee-panel .form-grid label {
  align-content: start;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 9px;
  color: #27486b;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 38, 67, 0.04);
}

.quick-fee-panel .form-grid label:focus-within {
  border-color: rgba(21, 91, 157, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.08);
}

.quick-fee-panel .form-grid input,
.quick-fee-panel .form-grid select,
.quick-fee-panel .form-grid textarea,
.quick-fee-panel .searchable-select-input {
  min-height: 42px;
  border-color: rgba(21, 91, 157, 0.16);
  background-color: #fbfdff;
  font-weight: 850;
}

.quick-fee-panel #quickFeeAmount,
.quick-fee-panel #quickRegistrationFee,
.quick-fee-panel #quickRegistrationDiscount {
  color: var(--blue-900);
  background: #fffaf4;
  font-size: 1.05rem;
  font-weight: 950;
}

.quick-fee-panel #quickPaymentMode {
  color: #0f7a41;
}

.quick-fee-panel .field-note {
  min-height: 0;
  color: #64748b;
}

.quick-fee-panel .quick-student-summary,
.quick-fee-panel .fee-due-preview,
.quick-fee-panel .family-fee-panel {
  margin-top: 2px;
}

.quick-fee-panel .compact-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.quick-fee-panel #quickFeeButton {
  min-width: 220px;
  min-height: 52px;
  border-radius: 9px;
  font-size: 1rem;
  box-shadow: 0 14px 28px rgba(245, 124, 0, 0.2);
}

.fee-view-switch {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(21, 91, 157, 0.07);
}

.fee-view-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.fee-view-tab.active {
  border-color: rgba(245, 124, 0, 0.3);
  color: var(--blue-900);
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  box-shadow: 0 10px 20px rgba(245, 124, 0, 0.12);
}

.quick-student-summary {
  min-height: 58px;
}

.quick-student-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.05);
}

.quick-student-card p {
  margin: 0;
}

.quick-student-card strong,
.quick-student-card span {
  display: block;
}

.quick-student-card strong {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-student-card span {
  color: var(--blue-900);
  font-weight: 900;
}

.quick-course-status-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.04);
}

.quick-course-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
  background: #f4f8fc;
}

.quick-course-status-head > div,
.quick-course-status-info {
  display: grid;
  gap: 4px;
}

.quick-course-status-head strong,
.quick-course-status-info strong {
  color: var(--blue-900);
}

.quick-course-status-head span,
.quick-course-status-info > span,
.quick-course-completed {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.quick-course-status-list {
  display: grid;
}

.quick-course-status-item {
  display: grid;
  grid-template-columns: 34px minmax(190px, 1fr) minmax(270px, auto);
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.quick-course-status-item:last-child {
  border-bottom: 0;
}

.quick-course-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 950;
}

.quick-course-status-info > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-course-status-action {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.quick-course-month {
  display: grid;
  gap: 4px;
  min-width: 148px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.quick-course-month input {
  min-height: 38px;
  padding: 7px 9px;
}

.quick-course-status-action .primary-action {
  border-color: var(--orange-600);
  color: #fff;
  background: var(--orange-600);
}

.disabled-link {
  opacity: 0.52;
  pointer-events: none;
}

.fee-due-preview {
  min-height: 58px;
}

.fee-due-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(245, 124, 0, 0.22);
  border-radius: 9px;
  background: #fffaf4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.fee-due-card p {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(245, 124, 0, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.fee-due-card strong,
.fee-due-card span {
  display: block;
}

.fee-due-card strong {
  color: var(--muted);
  font-size: 0.8rem;
}

.fee-due-card span {
  color: var(--orange-700);
  margin-top: 4px;
  font-size: 1.02rem;
  font-weight: 950;
}

.fee-due-card p:last-child span {
  color: var(--blue-900);
}

.registration-fee-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgba(18, 140, 74, 0.25);
  background: #f3fbf6;
}

.registration-fee-card p:first-child span,
.registration-fee-card p:last-child span {
  color: var(--green-600);
}

.fee-helper-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.family-fee-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 140, 74, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(18, 140, 74, 0.08), rgba(255, 255, 255, 0.94)),
    var(--white);
  box-shadow: 0 14px 28px rgba(15, 38, 67, 0.05);
}

.family-fee-panel[hidden] {
  display: none;
}

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

.family-fee-head strong,
.family-fee-head span {
  display: block;
}

.family-fee-head strong {
  color: var(--blue-900);
  font-size: 1.02rem;
}

.family-fee-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.family-fee-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 140, 74, 0.2);
  border-radius: 8px;
  background: var(--white);
}

.family-fee-total span {
  color: var(--muted);
  font-weight: 900;
}

.family-fee-total strong {
  color: var(--green-600);
  font-size: 1.15rem;
}

.family-due-list {
  display: grid;
  gap: 8px;
}

.family-due-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.family-due-item input {
  width: 18px;
  height: 18px;
}

.family-due-item strong,
.family-due-item small {
  display: block;
}

.family-due-item strong {
  color: var(--blue-900);
}

.family-due-item small {
  color: var(--muted);
  font-weight: 800;
}

.family-due-amount-editor {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 150px;
}

.family-due-amount-editor small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.family-due-amount-editor input {
  width: 140px;
  min-height: 42px;
  border-color: rgba(245, 124, 0, 0.32);
  color: var(--orange-700);
  background: #fffaf4;
  font-weight: 950;
  text-align: right;
}

.compact-actions {
  justify-content: flex-end;
  padding: 0;
  background: transparent;
}

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

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

.ledger-summary-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), #f7fbff);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.06);
}

.ledger-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-summary-card strong {
  color: var(--blue-900);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.ledger-summary-card small {
  color: var(--muted);
  font-weight: 800;
}

.ledger-summary-card.success {
  border-color: rgba(18, 140, 74, 0.22);
  background: linear-gradient(135deg, #ffffff, #effaf3);
}

.ledger-summary-card.success strong {
  color: var(--green-600);
}

.ledger-summary-card.warning {
  border-color: rgba(245, 124, 0, 0.24);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.ledger-summary-card.warning strong {
  color: var(--orange-700);
}

.fee-history-table {
  min-width: 820px;
}

.student-timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 1px rgba(21, 91, 157, 0.22);
}

.timeline-item.fee .timeline-dot {
  background: var(--orange-600);
}

.timeline-item.certificate .timeline-dot {
  background: var(--green-600);
}

.timeline-item > div {
  padding: 13px 14px;
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.06);
}

.timeline-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 1rem;
}

.timeline-item span:last-child {
  color: var(--ink);
  font-weight: 760;
}

.student-ledger-table {
  min-width: 1180px;
}

.fee-ledger-table {
  min-width: 1060px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.fee-summary-stack {
  display: grid;
  gap: 4px;
  min-width: 138px;
}

.fee-summary-stack span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.fee-summary-stack strong {
  color: var(--blue-900);
  white-space: nowrap;
}

.fee-summary-stack span:nth-child(2) strong {
  color: #0f8a4b;
}

.fee-summary-stack span:nth-child(3) strong {
  color: var(--orange-700);
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(21, 91, 157, 0.1);
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 900;
}

.inline-status-select {
  width: min(160px, 100%);
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(21, 91, 157, 0.22);
  border-radius: 6px;
  color: var(--blue-900);
  background: #fbfdff;
  font-size: 0.84rem;
  font-weight: 900;
}

.remark-cell {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.monthly-pending-table {
  min-width: 980px;
}

.multi-course-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 124, 0, 0.25);
  border-radius: 999px;
  color: var(--orange-700);
  background: #fff8ef;
  font-size: 0.72rem;
  font-weight: 900;
}

.due-course-stack {
  display: grid;
  gap: 0;
  min-width: 115px;
}

.due-course-stack > span {
  display: grid;
  align-content: center;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.due-course-stack > span:last-child {
  border-bottom: 0;
}

.due-course-stack small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.due-course-stack > .due-course-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--blue-900);
  font-weight: 900;
}

.due-course-name .course-status-pill,
.mobile-course-status-title .course-status-pill {
  padding: 3px 6px;
  font-size: 0.62rem;
}

.mobile-course-status-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.due-amount {
  color: var(--orange-700);
}

.due-group-total {
  display: block;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid rgba(245, 124, 0, 0.25);
  color: var(--orange-700);
  white-space: nowrap;
}

.due-action-stack {
  display: grid;
  gap: 8px;
  min-width: 142px;
}

.due-action-stack > div:not(.due-reminder-row) {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.due-action-stack > div > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.due-action-stack .fee-action {
  width: 100%;
  text-align: center;
}

.due-reminder-row {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.mobile-course-due-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid rgba(21, 91, 157, 0.14);
}

.mobile-course-due-list > div {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
}

.mobile-course-due-list > div > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.mobile-course-due-list .fee-action {
  justify-self: start;
  margin-top: 3px;
}

.mobile-due-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: 6px;
  color: var(--orange-700);
  background: #fff8ef;
  font-weight: 900;
}

.due-mobile-actions {
  margin-top: 10px;
}

.fee-due-section {
  margin-bottom: 0;
}

.fee-due-note {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 124, 0, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff8ef;
  font-weight: 800;
}

.fee-due-note strong {
  color: var(--orange-700);
}

.compact-fee-stack {
  margin-bottom: 8px;
}

.compact-fee-stack span {
  justify-content: flex-start;
}

.month-picker {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.monthly-fee-panel {
  margin-bottom: 20px;
}

.monthly-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.fee-summary-visuals {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.fee-chart-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.mini-panel-head,
.pending-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mini-panel-head h3,
.pending-head h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
}

.mini-panel-head span,
.pending-head span,
.pending-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-progress-bars {
  display: grid;
  gap: 14px;
}

.fee-progress-row {
  display: grid;
  gap: 8px;
}

.fee-progress-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.fee-progress-row strong {
  color: var(--blue-900);
}

.dashboard-fee-status {
  min-width: 220px;
  gap: 6px;
}

.dashboard-fee-status > span {
  justify-content: flex-start;
}

.inline-active-course-select {
  width: min(230px, 100%);
  min-height: 38px;
  border-color: rgba(15, 138, 75, 0.28);
  color: #09683a;
  background: #f1faf5;
  font-weight: 850;
}

.active-course-cell {
  min-width: 250px;
}

.active-course-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.inline-active-course-select:disabled {
  color: var(--muted);
  background: #f5f7f9;
  opacity: 0.82;
}

.mobile-course-status-control {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.mobile-course-status-control > strong,
.mobile-status-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.mobile-course-status-control .inline-active-course-select,
.mobile-student-card > .inline-status-select {
  width: 100%;
}

.fee-progress-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: var(--blue-100);
}

.fee-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
}

.pending-row .fee-progress-track i {
  background: var(--orange-600);
}

.fee-mode-split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fee-mode-split span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.fee-trend-chart {
  display: grid;
  gap: 11px;
}

.trend-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.trend-row > span {
  color: var(--muted);
  font-weight: 800;
}

.trend-row > strong {
  color: var(--blue-900);
  text-align: right;
}

.trend-bars {
  display: grid;
  gap: 3px;
}

.trend-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.trend-bars .expected,
.trend-legend .expected {
  background: var(--blue-700);
}

.trend-bars .received,
.trend-legend .received {
  background: var(--green-600);
}

.trend-bars .pending,
.trend-legend .pending {
  background: var(--orange-600);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.fee-mobile-card strong {
  color: var(--blue-900);
}

.print-only-grid {
  display: none;
}

.detail-grid a {
  color: var(--blue-700);
  font-weight: 800;
}

.profile-print-area {
  display: grid;
  gap: 18px;
}

.course-progress-list {
  border-top: 1px solid rgba(21, 91, 157, 0.14);
}

.course-progress-item {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) minmax(240px, auto);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
}

.course-order {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 950;
}

.course-progress-info {
  display: grid;
  gap: 6px;
}

.course-progress-info > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.course-progress-info h3,
.course-progress-info p {
  margin: 0;
}

.course-progress-info h3 {
  color: var(--blue-900);
  font-size: 1rem;
}

.course-progress-info p,
.course-completed-month {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.course-status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
}

.course-status-pill.active {
  border-color: rgba(15, 138, 75, 0.24);
  color: #0f8a4b;
  background: #eefaf3;
}

.course-status-pill.waiting {
  border-color: rgba(245, 124, 0, 0.26);
  color: var(--orange-700);
  background: #fff8ef;
}

.course-status-pill.completed {
  border-color: rgba(21, 91, 157, 0.22);
  color: var(--blue-900);
  background: #f1f7fd;
}

.course-progress-action {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.course-progress-month {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.course-progress-month input {
  min-height: 40px;
  padding: 8px 10px;
}

@media (max-width: 760px) {
  .quick-course-status-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-course-status-head .fee-action {
    width: 100%;
    text-align: center;
  }

  .quick-course-status-item {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    padding: 13px 12px;
  }

  .quick-course-status-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .quick-course-status-action .fee-action {
    min-height: 38px;
  }

  .course-progress-item {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .course-progress-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .course-progress-action .btn {
    min-height: 40px;
  }
}

.id-card-page {
  display: grid;
  justify-items: center;
}

#idCardMount {
  width: min(520px, 100%);
}

.id-card-actions {
  margin-bottom: 18px;
}

.student-id-card {
  width: min(480px, 100%);
  min-height: 300px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    var(--white);
  box-shadow: var(--shadow);
}

.student-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(245, 124, 0, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(21, 91, 157, 0.1), transparent 38%);
  pointer-events: none;
}

.student-id-card > * {
  position: relative;
  z-index: 1;
}

.student-id-card .id-card-top {
  margin: -8px -8px 0;
  padding: 12px;
  color: var(--white);
  border-bottom: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.student-id-card .id-card-top h2,
.student-id-card .id-card-top p {
  color: var(--white);
}

.fee-receipt {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(11, 45, 77, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98)),
    var(--white);
  box-shadow: 0 22px 50px rgba(11, 45, 77, 0.12);
}

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

.receipt-table th,
.receipt-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.receipt-table th {
  width: 230px;
  color: var(--blue-900);
  background: #fbfdff;
}

.id-card-sheet {
  display: grid;
  gap: 18px;
}

.id-card-top {
  align-items: flex-start;
  padding-bottom: 12px;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-width: 2px;
}

.id-card-top h2 {
  font-size: 1.05rem;
}

.id-card-top p {
  font-size: 0.72rem;
}

.id-card-body {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.id-photo {
  width: 124px;
  height: 146px;
  border-radius: var(--radius);
}

.id-details .detail-grid p,
.id-details p {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 6px 0;
  font-size: 0.86rem;
}

.id-signature {
  width: 180px;
  margin: 24px 0 0 auto;
}

.id-card-back {
  min-height: 300px;
}

.id-rules {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.id-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.id-qr img {
  width: 90px;
  height: 90px;
}

.desktop-only {
  display: flex;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes heroGridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 58px, 58px 0;
  }
}

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px) rotateX(3deg);
  transition:
    opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.55s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::after,
  .hero-3d-canvas {
    display: none !important;
  }

  .course-card:hover,
  .batch-item:hover,
  .contact-card:hover,
  .form-card:hover,
  .panel:hover,
  .success-card:hover,
  .login-card:hover,
  .stat-card:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .two-column,
  .contact-layout,
  .analytics-grid,
  .profile-main,
  .fee-summary-visuals,
  .report-overview-main,
  .portal-strip {
    grid-template-columns: 1fr;
  }

  .certificate-verify-layout {
    grid-template-columns: 1fr;
  }

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

  .report-export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid,
  .feature-grid,
  .track-grid,
  .course-grid,
  .level-grid,
  .certificate-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .monthly-stats-grid,
  .collection-stats-grid,
  .batch-report-grid,
  .report-mini-stats,
  .setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-section-head,
  .form-grid,
  .filter-grid,
  .additional-course-row,
  .upload-grid,
  .detail-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-wide {
    grid-column: auto;
  }

  .profile-photo-block {
    width: 160px;
    height: 196px;
  }
}

@media (max-width: 740px) {
  .ledger-summary-grid {
    grid-template-columns: 1fr;
  }

  .ledger-summary-card {
    min-height: 0;
  }

  body.has-mobile-app-nav {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: min(100% - 22px, 1160px);
  }

  .mobile-app-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    min-height: 70px;
    padding: 8px;
    border: 1px solid rgba(11, 45, 77, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(11, 45, 77, 0.2);
    backdrop-filter: blur(16px);
  }

  .mobile-app-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-app-nav a.active {
    color: var(--blue-800);
    background: var(--blue-100);
  }

  .mobile-app-nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .mobile-app-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .navbar {
    min-height: 64px;
    gap: 10px;
  }

  .brand-mark,
  .slip-logo,
  .mini-logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 11px;
    left: 11px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links a,
  .nav-button {
    min-height: 46px;
    text-align: left;
  }

  .nav-links.open {
    display: flex;
  }

  .report-quick-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
  }

  .report-nav-button {
    min-height: 52px;
  }

  .report-export-grid {
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    bottom: -28%;
    height: 48%;
    opacity: 0.28;
  }

  .hero.three-ready .hero-3d-canvas {
    opacity: 0.54;
  }

  .hero-grid {
    padding: 70px 0 42px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-panel,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .feature-grid,
  .track-grid,
  .course-grid,
  .level-grid,
  .certificate-guide-grid,
  .portal-points,
  .quick-student-card,
  .fee-due-card {
    grid-template-columns: 1fr;
  }

  .home-proof-band {
    margin-top: 0;
    padding: 18px 0 28px;
    background: var(--white);
  }

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

  .section {
    padding: 52px 0;
  }

  .page-shell {
    padding: 28px 0 110px;
  }

  body[data-page="dashboard"] .page-shell {
    padding: 18px 0 92px;
  }

  .page-title {
    margin-bottom: 18px;
  }

  .page-title h1,
  .dashboard-head h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .dashboard-head {
    gap: 14px;
  }

  body[data-page="dashboard"] .dashboard-head {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  body[data-page="dashboard"] .dashboard-head h1 {
    max-width: none;
    font-size: 1.9rem;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .database-badge {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  body[data-page="dashboard"] .database-badge {
    grid-column: 1 / -1;
  }

  .site-footer .container,
  .dashboard-head,
  .profile-head,
  .profile-title {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .monthly-stats-grid,
  .collection-stats-grid,
  .backup-activity-grid,
  .batch-report-grid,
  .report-money-grid,
  .report-mini-stats,
  .report-print-summary,
  .slip-meta-strip,
  .receipt-amount-band,
  .signature-row,
  .slip-body,
  .id-card-body,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .certificate-form {
    grid-template-columns: 1fr;
  }

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

  .form-section,
  .panel,
  .success-card,
  .login-card,
  .registration-slip {
    padding: 18px;
  }

  .panel,
  .form-card,
  .success-card,
  .login-card,
  .stat-card,
  .mobile-student-card {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 38, 67, 0.1);
  }

  input,
  select,
  textarea,
  .btn,
  .nav-button,
  .fee-view-tab,
  .report-nav-button {
    min-height: 48px;
  }

  .form-actions,
  .dashboard-actions,
  .profile-actions,
  .action-row,
  .report-action-row,
  .id-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  .fee-view-switch {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .fee-view-tab {
    width: 100%;
  }

  .fee-due-note {
    flex-direction: column;
  }

  .family-fee-head,
  .family-fee-total {
    align-items: stretch;
    flex-direction: column;
  }

  .family-due-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .family-due-amount-editor {
    grid-column: 2;
    justify-items: stretch;
    min-width: 0;
  }

  .family-due-amount-editor input {
    width: 100%;
  }

  .report-control-card {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .mini-panel-head,
  .pending-head,
  .course-builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .month-picker {
    min-width: 0;
  }

  .batch-report-picker {
    min-width: 0;
  }

  .trend-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .trend-row > strong {
    grid-column: 2;
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
  }

  body[data-page="dashboard"] .database-badge {
    grid-column: auto;
  }

  body[data-page="dashboard"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="dashboard"] .stat-card {
    min-height: 0;
    padding: 14px;
  }

  body[data-page="dashboard"] .stat-card span {
    min-height: 0;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .stat-card strong {
    font-size: 1.65rem;
  }

  body[data-page="dashboard"] .dashboard-analytics .count-list {
    max-height: 220px;
  }

  body[data-page="dashboard"] .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="dashboard"] .filter-grid > .wide {
    grid-column: 1 / -1;
  }

  body[data-page="dashboard"] .filter-grid label {
    gap: 0;
    font-size: 0;
  }

  body[data-page="dashboard"] .filter-grid input,
  body[data-page="dashboard"] .filter-grid select {
    min-height: 44px;
    font-size: 0.9rem;
  }

  body[data-page="dashboard"] .panel-head h2 {
    font-size: 1.02rem;
  }

  .contact-card p,
  .success-summary p,
  .detail-grid p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .slip-photo,
  .profile-photo-block,
  .id-photo,
  .slip-qr {
    justify-self: center;
  }

  .table-wrap {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
    max-height: none;
  }

  .fee-table-wrap {
    display: block;
    overflow-x: auto;
  }

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

  .mobile-student-card {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .mobile-student-card h3 {
    margin-bottom: 6px;
  }

  .mobile-student-card p {
    margin-bottom: 6px;
    color: var(--muted);
  }

  .card-check {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }

  .card-check input {
    width: auto;
    min-height: auto;
  }

  .id-signature {
    margin-left: auto;
  }

  body[data-page="dashboard"] .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body[data-page="dashboard"] .dashboard-actions .btn,
  body[data-page="dashboard"] .dashboard-actions .database-badge {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  body[data-page="dashboard"] .dashboard-actions .database-badge {
    grid-column: 1 / -1;
  }
}

/* Professional polish layer */
body {
  color: #111827;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 45%, #eef4fa 100%);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(11, 45, 77, 0.06);
}

.navbar {
  min-height: 68px;
}

.brand {
  gap: 13px;
}

.brand-mark,
.slip-logo,
.mini-logo {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 10px 22px rgba(21, 91, 157, 0.18);
}

.brand strong {
  color: var(--blue-900);
  font-weight: 950;
}

.brand small {
  color: #64748b;
  font-weight: 800;
}

.nav-links a,
.nav-button {
  border: 1px solid transparent;
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 850;
}

.nav-links a:hover,
.nav-links a.active,
.nav-button:hover {
  border-color: rgba(21, 91, 157, 0.14);
  background: #edf6ff;
  color: var(--blue-800);
}

.page-shell {
  padding-top: 38px;
}

.dashboard-head {
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.dashboard-head h1,
.section-heading h2,
.hero h1 {
  color: var(--blue-900);
  font-weight: 950;
}

.hero h1 {
  color: var(--white);
}

.dashboard-head p,
.section-copy,
.panel-head span {
  color: #5f6f86;
  font-weight: 650;
}

.eyebrow {
  color: var(--orange-700);
  font-weight: 950;
  letter-spacing: 0;
}

.database-badge,
.status-pill {
  border-radius: var(--radius);
  font-weight: 900;
}

.database-badge {
  border-color: rgba(18, 140, 74, 0.18);
  background: #eefaf3;
  color: #087a3b;
  box-shadow: 0 10px 22px rgba(18, 140, 74, 0.07);
}

.btn,
.fee-action,
.report-nav-button,
.fee-view-tab,
.batch-chip,
.report-export-card,
.icon-text-button {
  border-radius: var(--radius);
  font-weight: 900;
}

.btn.primary {
  background: linear-gradient(135deg, #ff8a00, var(--orange-600));
  box-shadow: 0 14px 28px rgba(245, 124, 0, 0.23);
}

.btn.secondary,
.report-nav-button,
.fee-view-tab,
.report-export-card {
  border-color: rgba(21, 91, 157, 0.16);
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.btn.secondary:hover,
.report-nav-button:hover,
.fee-view-tab:hover,
.report-export-card:hover {
  border-color: rgba(245, 124, 0, 0.28);
  box-shadow: 0 14px 28px rgba(21, 91, 157, 0.08);
}

.panel,
.stat-card,
.collection-stat-card,
.batch-summary-card,
.mobile-student-card,
.feature-card,
.track-card,
.level-card,
.course-card,
.batch-item,
.contact-card,
.portal-strip,
.hero-panel,
.admission-card,
.report-export-card,
.ledger-summary-card {
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 40px rgba(15, 38, 67, 0.08);
}

.panel:hover,
.stat-card:hover,
.course-card:hover,
.batch-item:hover,
.report-export-card:hover {
  box-shadow: 0 22px 48px rgba(15, 38, 67, 0.11);
}

.panel-head,
.mini-panel-head,
.course-builder-head {
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.panel-head h2,
.mini-panel-head h3 {
  color: var(--blue-900);
  font-weight: 950;
}

.stats-grid .stat-card,
.collection-stat-card {
  position: relative;
  overflow: hidden;
}

.stats-grid .stat-card::before,
.collection-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--orange-600));
}

.stat-card span,
.collection-stat-card span,
.batch-summary-card span,
.ledger-summary-card span {
  color: #64748b;
}

.stat-card strong,
.collection-stat-card strong,
.batch-summary-card strong {
  color: var(--blue-900);
  font-weight: 950;
}

.quick-fee-panel,
.monthly-pending-panel,
.collection-overview-panel,
.report-overview-panel,
.dashboard-student-panel {
  border-top: 4px solid rgba(245, 124, 0, 0.85);
}

.filter-grid,
.form-grid {
  align-items: end;
}

label {
  color: var(--blue-900);
  font-weight: 850;
}

input,
select,
textarea {
  border-color: #cddced;
  border-radius: var(--radius);
  background: #ffffff;
  color: #111827;
  font-weight: 750;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 91, 157, 0.55);
  box-shadow: 0 0 0 4px rgba(21, 91, 157, 0.1);
  outline: 0;
}

.searchable-select {
  position: relative;
}

.searchable-select-input {
  background: #fbfdff;
}

.searchable-select-list {
  border-color: rgba(21, 91, 157, 0.16);
  box-shadow: 0 18px 38px rgba(15, 38, 67, 0.13);
}

.table-wrap,
.fee-table-wrap {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.student-table th {
  background: #f2f7fc;
  color: #27486b;
  font-size: 0.82rem;
  font-weight: 950;
}

.student-table td {
  background: #ffffff;
}

.student-table tbody tr:hover td {
  background: #fbfdff;
}

.student-table th:first-child,
.student-table td:first-child {
  padding-left: 18px;
}

.student-table th:last-child,
.student-table td:last-child {
  padding-right: 18px;
}

.fee-view-switch,
.report-quick-nav {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 38, 67, 0.07);
}

.fee-view-tab.active,
.report-nav-button.active {
  border-color: rgba(245, 124, 0, 0.45);
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  color: var(--blue-900);
}

.report-nav-button span,
.fee-view-tab {
  color: #5f6f86;
}

.report-nav-button.active span,
.report-nav-button.active strong {
  color: var(--blue-900);
}

.hero {
  min-height: 590px;
}

.hero::before {
  background: linear-gradient(90deg, rgba(6, 31, 58, 0.93), rgba(6, 31, 58, 0.74) 56%, rgba(6, 31, 58, 0.58));
}

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.admission-card h2,
.track-card h3,
.feature-card h3,
.course-card strong {
  color: var(--blue-900);
}

.course-category-strip,
.hero-checks span,
.portal-points span,
.portal-points a {
  border-color: rgba(21, 91, 157, 0.14);
  background: #f8fbff;
}

.mobile-student-card {
  box-shadow: 0 12px 28px rgba(15, 38, 67, 0.08);
}

.registration-slip,
.fee-receipt,
.student-id-card {
  box-shadow: 0 18px 40px rgba(15, 38, 67, 0.1);
}

.bulk-reminder-status {
  display: block;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #cfe0f1;
  border-radius: 6px;
  background: #f5f9fd;
  color: var(--blue-900);
  font-weight: 700;
}

.bulk-reminder-status[data-tone="success"] {
  border-color: #b9dfca;
  background: #eefaf3;
  color: #107843;
}

.bulk-reminder-status[data-tone="error"] {
  border-color: #f0c3c3;
  background: #fff4f4;
  color: #b42318;
}

.bulk-reminder-help {
  display: block;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.bulk-reminder-status[hidden],
.bulk-reminder-cancel[hidden] {
  display: none !important;
}

@media (max-width: 740px) {
  .page-shell {
    padding-top: 24px;
  }

  .dashboard-head {
    gap: 16px;
    margin-bottom: 18px;
  }

  .dashboard-head h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .fee-view-switch,
  .report-quick-nav {
    padding: 7px;
  }

  .mobile-student-card {
    border-radius: var(--radius);
  }
}

/* Professional table layout pass for admin records, fees, and reports. */
.table-wrap,
.fee-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-color: rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.student-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.student-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.15);
  background: #eef5fc;
  color: #24486b;
  font-size: 0.8rem;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

.student-table tbody td {
  padding: 16px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.13);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.student-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.student-table tbody tr:hover td {
  background: #f7fbff;
}

.student-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

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

.table-subtext {
  display: block;
  margin-top: 5px;
  color: #66758d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.table-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  align-items: stretch;
  gap: 8px;
  min-width: 236px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  min-height: 38px;
  border-radius: 7px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.table-actions button[data-action="delete"],
.table-actions button[data-fee-action="delete"] {
  grid-column: span 2;
}

.inline-status-select {
  width: 100%;
  max-width: 210px;
  min-height: 38px;
}

.active-course-cell {
  min-width: 230px;
}

.dashboard-fee-status {
  gap: 4px;
  margin-bottom: 8px;
}

body[data-page="dashboard"] .dashboard-student-panel .table-wrap {
  max-height: min(650px, calc(100vh - 250px));
}

body[data-page="dashboard"] .student-ledger-table {
  min-width: 1360px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(1),
body[data-page="dashboard"] .student-ledger-table td:nth-child(1) {
  width: 58px;
  text-align: center;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(2),
body[data-page="dashboard"] .student-ledger-table td:nth-child(2) {
  width: 230px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(3),
body[data-page="dashboard"] .student-ledger-table td:nth-child(3) {
  width: 250px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(4),
body[data-page="dashboard"] .student-ledger-table td:nth-child(4) {
  width: 235px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(5),
body[data-page="dashboard"] .student-ledger-table td:nth-child(5) {
  width: 145px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(6),
body[data-page="dashboard"] .student-ledger-table td:nth-child(6) {
  width: 230px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 270px;
}

.fee-ledger-table {
  min-width: 1240px;
}

.fee-ledger-table th:nth-child(1),
.fee-ledger-table td:nth-child(1) {
  width: 150px;
}

.fee-ledger-table th:nth-child(2),
.fee-ledger-table td:nth-child(2) {
  width: 210px;
}

.fee-ledger-table th:nth-child(3),
.fee-ledger-table td:nth-child(3) {
  width: 210px;
}

.fee-ledger-table th:nth-child(4),
.fee-ledger-table td:nth-child(4) {
  width: 160px;
}

.fee-ledger-table th:nth-child(5),
.fee-ledger-table td:nth-child(5) {
  width: 180px;
}

.fee-ledger-table th:nth-child(6),
.fee-ledger-table td:nth-child(6) {
  width: 140px;
}

.fee-ledger-table th:nth-child(7),
.fee-ledger-table td:nth-child(7) {
  width: 170px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 210px;
}

.monthly-pending-table {
  min-width: 1180px;
}

.monthly-pending-table th:nth-child(1),
.monthly-pending-table td:nth-child(1) {
  width: 230px;
}

.monthly-pending-table th:nth-child(2),
.monthly-pending-table td:nth-child(2) {
  width: 230px;
}

.monthly-pending-table th:nth-child(3),
.monthly-pending-table td:nth-child(3),
.monthly-pending-table th:nth-child(4),
.monthly-pending-table td:nth-child(4),
.monthly-pending-table th:nth-child(5),
.monthly-pending-table td:nth-child(5) {
  width: 170px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 240px;
}

.due-course-stack {
  gap: 2px;
}

.due-course-stack > span {
  min-height: 48px;
  padding: 7px 0;
}

.due-action-stack {
  min-width: 190px;
}

.due-action-stack > div:not(.due-reminder-row) {
  grid-template-columns: 1fr;
}

.due-reminder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.due-reminder-row:empty {
  display: none;
}

.batch-report-table {
  min-width: 980px;
}

.batch-report-table th:nth-child(1),
.batch-report-table td:nth-child(1) {
  width: 250px;
}

.batch-report-table th:nth-child(2),
.batch-report-table td:nth-child(2) {
  width: 230px;
}

.batch-report-table th:nth-child(3),
.batch-report-table td:nth-child(3) {
  width: 170px;
}

.batch-report-table th:nth-child(4),
.batch-report-table td:nth-child(4) {
  width: 160px;
}

.batch-report-table th:nth-child(5),
.batch-report-table td:nth-child(5) {
  width: 170px;
}

body[data-page="fees"] .student-ledger-table,
body[data-page="reports"] .student-ledger-table,
body[data-page="student-profile"] .student-ledger-table {
  min-width: 980px;
}

/* Final table fit pass: keep all main admin tables readable without clipped right-side actions. */
.student-table,
.student-table *,
.table-actions,
.fee-action,
.standalone-fee-action {
  box-sizing: border-box;
}

.student-table thead th,
.student-table tbody td {
  padding: 13px 14px;
}

.student-table thead th {
  white-space: normal;
}

.student-table tbody td {
  min-width: 0;
}

.table-actions {
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  gap: 7px;
  min-width: 0;
}

.table-actions a,
.table-actions button {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
}

.fee-action,
.standalone-fee-action {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 9px;
  white-space: normal;
  overflow: visible;
}

.inline-status-select {
  min-width: 0;
}

body[data-page="dashboard"] .student-ledger-table {
  min-width: 1160px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(1),
body[data-page="dashboard"] .student-ledger-table td:nth-child(1) {
  width: 46px;
  padding-left: 10px;
  padding-right: 8px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(2),
body[data-page="dashboard"] .student-ledger-table td:nth-child(2) {
  width: 200px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(3),
body[data-page="dashboard"] .student-ledger-table td:nth-child(3) {
  width: 200px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(4),
body[data-page="dashboard"] .student-ledger-table td:nth-child(4) {
  width: 205px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(5),
body[data-page="dashboard"] .student-ledger-table td:nth-child(5) {
  width: 128px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(6),
body[data-page="dashboard"] .student-ledger-table td:nth-child(6) {
  width: 195px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 186px;
}

body[data-page="dashboard"] .student-ledger-table .table-actions {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.fee-ledger-table {
  min-width: 1120px;
}

.fee-ledger-table th:nth-child(1),
.fee-ledger-table td:nth-child(1) {
  width: 145px;
}

.fee-ledger-table th:nth-child(2),
.fee-ledger-table td:nth-child(2) {
  width: 190px;
}

.fee-ledger-table th:nth-child(3),
.fee-ledger-table td:nth-child(3) {
  width: 185px;
}

.fee-ledger-table th:nth-child(4),
.fee-ledger-table td:nth-child(4) {
  width: 140px;
}

.fee-ledger-table th:nth-child(5),
.fee-ledger-table td:nth-child(5) {
  width: 155px;
}

.fee-ledger-table th:nth-child(6),
.fee-ledger-table td:nth-child(6) {
  width: 110px;
}

.fee-ledger-table th:nth-child(7),
.fee-ledger-table td:nth-child(7) {
  width: 135px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 160px;
}

.fee-ledger-table td:nth-child(1) strong,
.fee-ledger-table td:nth-child(1) {
  overflow-wrap: anywhere;
}

.monthly-pending-table {
  min-width: 980px;
}

.monthly-pending-table th:nth-child(1),
.monthly-pending-table td:nth-child(1) {
  width: 195px;
}

.monthly-pending-table th:nth-child(2),
.monthly-pending-table td:nth-child(2) {
  width: 190px;
}

.monthly-pending-table th:nth-child(3),
.monthly-pending-table td:nth-child(3) {
  width: 145px;
}

.monthly-pending-table th:nth-child(4),
.monthly-pending-table td:nth-child(4),
.monthly-pending-table th:nth-child(5),
.monthly-pending-table td:nth-child(5) {
  width: 130px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 190px;
  padding-right: 14px;
}

.monthly-pending-table .due-course-stack > span {
  min-height: 44px;
}

.monthly-pending-table .due-action-stack {
  width: 100%;
  min-width: 0;
  gap: 9px;
}

.monthly-pending-table .due-action-stack > div:not(.due-reminder-row) {
  padding-bottom: 10px;
}

.monthly-pending-table .due-action-stack .fee-action {
  min-height: 44px;
}

.batch-report-table {
  min-width: 900px;
}

.batch-report-table th:nth-child(1),
.batch-report-table td:nth-child(1) {
  width: 230px;
}

.batch-report-table th:nth-child(2),
.batch-report-table td:nth-child(2) {
  width: 205px;
}

.batch-report-table th:nth-child(3),
.batch-report-table td:nth-child(3),
.batch-report-table th:nth-child(4),
.batch-report-table td:nth-child(4) {
  width: 145px;
}

.batch-report-table th:nth-child(5),
.batch-report-table td:nth-child(5) {
  width: 175px;
}

/* Pin action columns so controls never disappear outside the scroll area. */
.student-table th:last-child,
.student-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #ffffff;
  box-shadow: -10px 0 18px rgba(15, 38, 67, 0.08);
}

.student-table thead th:last-child {
  z-index: 7;
  background: #e8f1fa;
}

.student-table tbody tr:nth-child(even) td:last-child {
  background: #fcfdff;
}

.student-table tbody tr:hover td:last-child {
  background: #f7fbff;
}

.student-table th:last-child,
.student-table td:last-child,
.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6),
.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child,
body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  min-width: 185px;
}

.monthly-pending-table th:nth-child(6),
.monthly-pending-table td:nth-child(6) {
  width: 205px;
}

.fee-ledger-table th:last-child,
.fee-ledger-table td:last-child {
  width: 180px;
}

body[data-page="dashboard"] .student-ledger-table th:nth-child(7),
body[data-page="dashboard"] .student-ledger-table td:nth-child(7) {
  width: 205px;
}

.monthly-pending-table .due-action-stack,
.student-table td:last-child .table-actions {
  max-width: 100%;
}

.monthly-pending-table .due-action-stack .fee-action,
.student-table td:last-child .fee-action,
.student-table td:last-child .standalone-fee-action {
  font-size: 0.82rem;
}

.fee-ledger-table td:last-child .table-actions {
  grid-template-columns: 1fr;
}

.fee-ledger-table td:last-child .table-actions button,
.fee-ledger-table td:last-child .table-actions a {
  min-height: 34px;
}

/* Final professional polish: calm admin look, compact rows, and balanced action controls. */
body {
  background:
    linear-gradient(180deg, #f7fafd 0, #eef4f9 100%);
}

.site-header {
  border-bottom-color: rgba(21, 91, 157, 0.12);
  box-shadow: 0 8px 24px rgba(15, 38, 67, 0.05);
}

.page-shell {
  padding-top: 28px;
}

.dashboard-head {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.1);
}

.dashboard-head h1 {
  letter-spacing: 0;
}

.panel,
.stat-card {
  border: 1px solid rgba(21, 91, 157, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 38, 67, 0.07);
}

.panel:hover,
.stat-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(15, 38, 67, 0.09);
}

.stats-grid .stat-card::before {
  height: 3px;
  background: linear-gradient(90deg, #1f6fae, #f28a12);
}

.stat-card {
  min-height: 116px;
}

.stat-card span {
  font-size: 0.9rem;
  line-height: 1.25;
}

.stat-card strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.table-wrap,
.fee-table-wrap {
  border: 1px solid rgba(21, 91, 157, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 38, 67, 0.05);
}

.student-table {
  color: #1d2733;
}

.student-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(21, 91, 157, 0.14);
  background: #f1f6fb;
  color: #284766;
  font-size: 0.78rem;
  font-weight: 900;
}

.student-table tbody td {
  padding: 13px 14px;
  border-bottom-color: rgba(21, 91, 157, 0.11);
  font-size: 0.88rem;
  line-height: 1.32;
}

.student-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.student-table tbody tr:hover td {
  background: #f5f9fd;
}

.student-table strong {
  color: #17212b;
  font-weight: 850;
}

.table-subtext,
.student-table small {
  color: #66758a;
  font-weight: 750;
}

.payment-pill,
.course-status-pill,
.multi-course-badge {
  border-radius: 999px;
  box-shadow: none;
}

.table-actions {
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 6px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: none;
}

.table-actions a,
.table-actions button {
  border-color: rgba(21, 91, 157, 0.2);
  color: #123f6d;
  background: #ffffff;
}

.table-actions a:hover,
.table-actions button:hover {
  border-color: rgba(21, 91, 157, 0.36);
  background: #f3f8fc;
}

.fee-action,
.standalone-fee-action {
  border-color: rgba(245, 124, 0, 0.34);
  color: #a34e00;
  background: #fff7ed;
}

.fee-action:hover,
.standalone-fee-action:hover {
  transform: none;
  color: #873f00;
  background: #ffefd9;
  box-shadow: none;
}

.reminder-action,
.btn.whatsapp {
  border-color: rgba(18, 140, 74, 0.24);
  color: #0f7a41;
  background: #eefaf3;
  box-shadow: none;
}

.reminder-action:hover,
.btn.whatsapp:hover {
  background: #e0f6e9;
  box-shadow: none;
}

.btn.primary {
  box-shadow: 0 10px 22px rgba(245, 124, 0, 0.16);
}

.inline-status-select {
  border-color: rgba(21, 91, 157, 0.18);
  background-color: #ffffff;
  font-size: 0.82rem;
}

.student-table th:last-child,
.student-table td:last-child {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -6px 0 14px rgba(15, 38, 67, 0.05);
}

.student-table thead th:last-child {
  background: #edf5fc;
}

.student-table tbody tr:nth-child(even) td:last-child {
  background: #fbfdff;
}

.student-table tbody tr:hover td:last-child {
  background: #f5f9fd;
}

.filter-action-cell {
  display: flex;
  align-items: flex-end;
}

.filter-action-cell .btn {
  width: 100%;
  min-height: 48px;
}

.student-pagination-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 2px 2px;
  color: #617187;
  font-size: 0.86rem;
  font-weight: 800;
}

.student-pagination,
.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.student-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(21, 91, 157, 0.2);
  border-radius: 7px;
  color: #123f6d;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

.student-pagination button:hover:not(:disabled),
.student-pagination button.active {
  border-color: #1f6fae;
  color: #ffffff;
  background: #1f6fae;
}

.student-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-size-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.page-size-control select {
  width: 74px;
  min-height: 40px;
  padding: 7px 10px;
}

@media (max-width: 760px) {
  .student-pagination-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .student-pagination {
    flex-wrap: wrap;
  }

  .page-size-control {
    justify-content: center;
  }
}

.monthly-pending-table .due-action-stack {
  gap: 7px;
}

.monthly-pending-table .due-action-stack > div:not(.due-reminder-row) {
  padding-bottom: 7px;
}

.monthly-pending-table .due-action-stack .fee-action {
  min-height: 36px;
}

.due-course-stack > span {
  min-height: 40px;
}

.due-group-total,
.mobile-due-total {
  background: #fff7ed;
  border-color: rgba(245, 124, 0, 0.18);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 24, 40, 0.52);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(21, 91, 157, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(8, 24, 40, 0.24);
}

.settings-auth-panel {
  width: min(480px, 100%);
  padding: 24px;
}

.settings-auth-panel h2 {
  margin: 4px 0 10px;
}

.settings-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.settings-auth-form .action-row {
  margin-top: 6px;
}

.fee-edit-panel {
  padding: 18px;
}

.status-pill.left {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(205, 38, 38, 0.18);
  border-radius: 999px;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 850;
  background: #fff1f2;
}

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

.audit-summary-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 38, 67, 0.04);
}

.audit-summary-card span {
  color: #66758a;
  font-weight: 850;
}

.audit-summary-card strong {
  color: #0b3158;
  font-size: 2rem;
  line-height: 1;
}

.audit-summary-card.success {
  border-color: rgba(18, 140, 74, 0.2);
  background: #f4fbf7;
}

.audit-summary-card.warning {
  border-color: rgba(245, 124, 0, 0.24);
  background: #fffaf3;
}

.data-audit-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.data-audit-card {
  overflow: hidden;
  border: 1px solid rgba(21, 91, 157, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.data-audit-card.warning {
  border-color: rgba(245, 124, 0, 0.3);
}

.data-audit-card.danger {
  border-color: rgba(205, 38, 38, 0.3);
}

.data-audit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f3f8fc;
  border-bottom: 1px solid rgba(21, 91, 157, 0.12);
}

.data-audit-card.warning .data-audit-card-head {
  background: #fff7ed;
}

.data-audit-card.danger .data-audit-card-head {
  background: #fff1f2;
}

.data-audit-card-head div {
  display: grid;
  gap: 4px;
}

.data-audit-card-head strong {
  color: #102b46;
  font-size: 1rem;
}

.data-audit-card-head span,
.data-audit-row small,
.data-audit-more {
  color: #66758a;
  font-weight: 750;
}

.data-audit-card-head b {
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b3158;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(21, 91, 157, 0.14);
}

.data-audit-row-list {
  display: grid;
}

.data-audit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.8fr) minmax(260px, 1.5fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(21, 91, 157, 0.08);
}

.data-audit-row:first-child {
  border-top: 0;
}

.data-audit-row strong {
  color: #17212b;
}

.data-audit-row span {
  color: #24384d;
  font-weight: 700;
}

.data-audit-more {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(21, 91, 157, 0.08);
}

@media (max-width: 860px) {
  .table-wrap,
  .fee-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .student-table {
    min-width: 960px;
  }

  .table-actions {
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    min-width: 0;
  }

  .mobile-student-card {
    border: 1px solid rgba(21, 91, 157, 0.13);
  }

  .quick-fee-panel > .panel-head,
  .quick-fee-panel .fee-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-fee-panel .form-grid,
  .quick-student-card,
  .fee-due-card,
  .registration-fee-card {
    grid-template-columns: 1fr;
  }

  .quick-fee-panel .form-grid label {
    min-height: auto;
  }

  .quick-fee-panel #quickFeeButton {
    width: 100%;
  }

  .audit-summary-grid,
  .data-audit-row {
    grid-template-columns: 1fr;
  }

  .data-audit-card-head {
    align-items: stretch;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    color: #000;
    background: #fff;
  }

  .no-print,
  .site-header,
  .site-footer,
  .success-card,
  .page-title,
  .id-card-actions,
  .profile-actions {
    display: none !important;
  }

  .print-only-grid {
    display: grid;
  }

  .page-shell,
  .section {
    padding: 0;
  }

  .container {
    width: 100%;
  }

  .printable-block,
  .registration-slip,
  .fee-receipt,
  .student-id-card,
  .panel {
    box-shadow: none !important;
  }

  .registration-slip,
  .fee-receipt {
    width: 100%;
    border: 2px solid #000;
    border-radius: 0;
    padding: 16px;
  }

  .slip-title {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .registration-slip .slip-header,
  .fee-receipt .slip-header,
  .student-id-card .id-card-top,
  .slip-meta-strip p,
  .receipt-amount-band p,
  .premium-stamp {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .student-id-card {
    width: 86mm;
    min-height: 54mm;
    border: 2px solid #000;
    page-break-inside: avoid;
  }

  .id-card-sheet {
    grid-template-columns: repeat(2, 86mm);
    gap: 8mm;
    align-items: start;
    page-break-inside: avoid;
  }

  .bulk-print-page .registration-slip,
  .bulk-print-page .fee-receipt,
  .bulk-print-page .id-card-sheet {
    margin-bottom: 10mm;
    page-break-inside: avoid;
  }

  body[data-page="id-card"] .container {
    display: grid;
    place-items: center;
  }

  .profile-print-area {
    gap: 10px;
  }

  .panel {
    border: 1px solid #aaa;
    break-inside: avoid;
    padding: 12px;
  }
}
/* Accounts */
.account-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.account-stat{min-height:118px;padding:20px;border:1px solid #d6e2ef;border-top:4px solid #1f6098;background:#fff;border-radius:8px;display:flex;flex-direction:column;gap:8px}
.account-stat span,.account-stat small{color:#667085;font-weight:700}.account-stat strong{font-size:clamp(1.55rem,2.4vw,2.3rem);color:#10395f}
.account-stat.income{border-top-color:#149451;background:#f5fcf8}.account-stat.income strong,.money-income{color:#138a4b}
.account-stat.expense{border-top-color:#d64545;background:#fff8f8}.account-stat.expense strong,.money-expense{color:#c93636}
.account-stat.profit{border-top-color:#ff7a00;background:#fff9f2}.account-stat.profit strong{color:#d85f00}
.account-income-breakdown{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.account-income-breakdown span{flex:1;min-width:190px;padding:13px 15px;background:#eef5fb;border:1px solid #d5e3ef;border-radius:6px;display:flex;justify-content:space-between}
.account-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.account-entry-grid .panel{margin:0}
.accounts-layout{display:flex;flex-direction:column}.accounts-layout>.dashboard-head{order:0}.accounts-layout>.operator-access-banner{order:1}.accounts-layout>.account-entry-grid{order:2}.accounts-layout>.account-control-panel{order:3}.accounts-layout>.account-ledger-panel{order:4}.accounts-layout>.panel:last-child{order:5}
.account-entry-grid>.expense-entry-panel{order:-1;border-top:4px solid #ff7a00;background:linear-gradient(180deg,#fffaf4 0,#fff 150px);box-shadow:0 14px 34px rgba(16,57,95,.1)}
.expense-entry-panel .panel-head{padding-bottom:16px;border-bottom:1px solid #f0dfcb}.expense-entry-panel .eyebrow{margin:0 0 5px}.expense-entry-panel #saveExpenseButton{min-width:170px}
.category-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.category-input-row input{min-width:0}.category-add-button{min-height:48px;padding:0 14px;white-space:nowrap}.field-hint{display:block;margin-top:6px;color:#69758a;font-weight:600;font-size:.78rem}
.expense-operator-mode .account-entry-grid{grid-template-columns:minmax(0,820px);justify-content:center;margin-top:20px}.expense-operator-mode .expense-entry-panel{width:100%}
.account-table td small{display:block;color:#69758a;margin-top:5px}.account-row-actions{display:flex;gap:7px;flex-wrap:wrap}
.account-type-pill{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eaf2fa;color:#123f68;font-weight:800;font-size:.78rem}.account-type-pill.expense{background:#fff0f0;color:#b92323}.account-type-pill.income{background:#eaf9f0;color:#137640}
.account-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.account-category-card{padding:16px;border:1px solid #d8e2ec;border-left:4px solid #199055;border-radius:7px;background:#fff;display:grid;gap:7px}.account-category-card.expense{border-left-color:#d64040}.account-category-card strong{font-size:1.35rem;color:#123f68}.account-category-card small{color:#69758a}
.compact-account-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-account-stats .account-stat{min-height:96px}
.operator-access-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px 18px;border:1px solid #f0c98e;border-left:4px solid #ff7a00;border-radius:7px;background:#fff8ed;color:#713d08}.operator-access-banner span{font-weight:700}
.expense-operator-mode .account-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.operator-list{display:grid;gap:10px;margin-top:16px}.operator-list-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #d7e2ed;border-radius:7px;background:#f8fbfe}.operator-list-item div{display:grid;gap:4px}.operator-list-item span,.operator-list-item small{color:#667085;font-weight:700}
@media(max-width:600px){.operator-access-banner,.operator-list-item{align-items:stretch;flex-direction:column}}
@media(max-width:900px){.account-entry-grid{grid-template-columns:1fr}.account-stats-grid,.compact-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.account-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.account-stats-grid,.compact-account-stats,.account-category-grid{grid-template-columns:1fr}.account-stat{min-height:94px;padding:16px}.account-income-breakdown{display:grid}.account-income-breakdown span{min-width:0}.account-table-wrap{display:none}.account-filters{grid-template-columns:1fr}.account-filters .wide{grid-column:auto}.category-input-row{grid-template-columns:1fr}.category-add-button{width:100%}}

/* Public institute photography */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.01);
}

.hero::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 25, 48, 0.94) 0%, rgba(5, 25, 48, 0.84) 48%, rgba(5, 25, 48, 0.48) 100%);
}

.hero::after {
  display: none;
}

.hero-grid {
  padding-top: 94px;
}

.hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  max-width: 900px;
}

.institute-gallery-section {
  background: #f5f9fd;
}

.institute-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.institute-intro h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--blue-900);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.institute-intro > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.institute-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--white);
  background: var(--blue-900);
  box-shadow: 0 14px 34px rgba(15, 45, 76, 0.12);
  cursor: zoom-in;
  text-align: left;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item-portrait {
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}

.gallery-item-portrait img {
  object-position: center 28%;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 25, 47, 0.9));
  pointer-events: none;
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 3px;
}

.gallery-item strong {
  font-size: 1rem;
}

.gallery-item small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--orange-600);
  outline-offset: 3px;
}

.gallery-lightbox {
  width: min(94vw, 1080px);
  max-height: 92vh;
  overflow: auto;
  border: 0;
  border-radius: 6px;
  padding: 14px;
  color: var(--white);
  background: #071d33;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox::backdrop {
  background: rgba(3, 15, 29, 0.82);
  backdrop-filter: blur(4px);
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #071d33;
}

.gallery-lightbox p {
  margin: 12px 46px 2px 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.gallery-lightbox-close {
  position: sticky;
  z-index: 2;
  top: 8px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 4px 4px -48px 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 25, 48, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .institute-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institute-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }
}

@media (max-width: 640px) {
  .hero-media img {
    object-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 25, 48, 0.9) 0%, rgba(5, 25, 48, 0.83) 70%, rgba(5, 25, 48, 0.92) 100%);
  }

  .hero-grid {
    padding: 58px 0 38px;
  }

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

  .hero-panel {
    display: none;
  }

  .quick-contact {
    display: grid;
  }

  .institute-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 235px;
  }

  .gallery-item-wide,
  .gallery-item-portrait {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item-portrait {
    min-height: 320px;
  }
}
.verified-receipt-card{border-top:4px solid #159455;background:linear-gradient(180deg,#f3fcf7 0,#fff 180px)}.verification-badge{display:inline-flex;padding:7px 11px;border:1px solid #a9dec1;border-radius:999px;background:#e9f9f0;color:#117242;font-weight:900;font-size:.8rem}
.receipt-image-container{max-width:920px}.receipt-image-panel{text-align:center;background:#edf4fa}.receipt-image-panel>img{display:block;width:min(100%,700px);height:auto;margin:0 auto;border:1px solid #cbd9e6;box-shadow:0 16px 38px rgba(16,57,95,.16)}.receipt-image-panel .action-row{justify-content:center;margin-top:18px}@media print{.receipt-image-page{padding:0}.receipt-image-panel{border:0;box-shadow:none;padding:0;background:#fff}.receipt-image-panel>img{width:100%;border:0;box-shadow:none}}
.receipt-image-panel>[hidden]{display:none!important}

/* Unified portal button system */
button,
.btn,
.fee-action,
.standalone-fee-action,
.report-nav-button,
.fee-view-tab,
.batch-chip,
.report-export-card,
.icon-text-button,
.table-actions a {
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
.btn:focus-visible,
.fee-action:focus-visible,
.standalone-fee-action:focus-visible,
.report-nav-button:focus-visible,
.fee-view-tab:focus-visible,
.batch-chip:focus-visible,
.report-export-card:focus-visible,
.icon-text-button:focus-visible,
.table-actions a:focus-visible {
  outline: 3px solid rgba(21, 91, 157, 0.2);
  outline-offset: 2px;
}

.btn {
  min-height: 42px;
  gap: 8px;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.fee-action:active,
.standalone-fee-action:active,
.table-actions a:active,
.table-actions button:active,
.report-nav-button:active,
.fee-view-tab:active,
.report-export-card:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  border-color: #e86f00;
  color: #ffffff;
  background: #f57c00;
  box-shadow: 0 6px 14px rgba(245, 124, 0, 0.18);
}

.btn.primary:hover {
  border-color: #ce6200;
  background: #df6d00;
  box-shadow: 0 8px 18px rgba(245, 124, 0, 0.22);
}

.btn.secondary {
  border-color: #cbd9e6;
  color: #123f6d;
  background: #ffffff;
}

.btn.secondary:hover {
  border-color: #8fb0ce;
  color: #0b2d4d;
  background: #f3f8fc;
  box-shadow: 0 5px 12px rgba(21, 91, 157, 0.08);
}

.btn.whatsapp {
  border-color: #128c4a;
  color: #ffffff;
  background: #128c4a;
}

.btn.whatsapp:hover {
  border-color: #0d733c;
  color: #ffffff;
  background: #0f7c41;
  box-shadow: 0 6px 14px rgba(18, 140, 74, 0.16);
}

.btn.danger,
.danger-button,
button[data-action="delete"],
button[data-fee-action="delete"] {
  border-color: #efb2b7;
  color: #b4232d;
  background: #fff5f5;
}

.btn.danger:hover,
.danger-button:hover,
button[data-action="delete"]:hover,
button[data-fee-action="delete"]:hover {
  border-color: #dc737c;
  color: #971923;
  background: #ffe9ea;
}

.compact-link {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.84rem;
}

.panel-actions,
.dashboard-actions,
.form-actions,
.action-row {
  gap: 8px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.table-actions a,
.table-actions button,
.fee-action,
.standalone-fee-action {
  width: auto;
  min-width: 68px;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.fee-action,
.standalone-fee-action {
  border: 1px solid #f1b06d;
  color: #9a4800;
  background: #fff7ed;
}

.fee-action:hover,
.standalone-fee-action:hover {
  border-color: #e58c32;
  color: #783700;
  background: #ffedd7;
}

.secondary-fee-action {
  border-color: #aac3d9;
  color: #123f6d;
  background: #f4f8fc;
}

.secondary-fee-action:hover {
  border-color: #789fbe;
  color: #0b2d4d;
  background: #eaf3fa;
}

.reminder-action {
  border-color: #9fd8b9;
  color: #0f7040;
  background: #eefaf3;
}

.reminder-action:hover {
  border-color: #62bb8a;
  color: #095c33;
  background: #def5e8;
}

.fee-view-switch {
  gap: 4px;
  padding: 5px;
  border-color: #d1deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 38, 67, 0.06);
}

.fee-view-tab,
.report-nav-button {
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 14px;
  color: #596a7f;
  font-size: 0.86rem;
  font-weight: 850;
  background: transparent;
  box-shadow: none;
}

.fee-view-tab:hover,
.report-nav-button:hover {
  border-color: #c1d3e2;
  color: #123f6d;
  background: #f3f8fc;
  box-shadow: none;
}

.fee-view-tab.active,
.report-nav-button.active,
.report-nav-button[aria-selected="true"] {
  border-color: #155b9d;
  color: #ffffff;
  background: #155b9d;
  box-shadow: 0 4px 10px rgba(21, 91, 157, 0.16);
}

.due-action-stack {
  min-width: 156px;
  gap: 7px;
}

.due-action-stack .fee-action {
  width: 100%;
}

.due-reminder-row {
  gap: 7px;
}

.report-export-card {
  min-height: 138px;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(15, 38, 67, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.report-export-card:hover {
  border-color: #9bb9d2;
  box-shadow: 0 12px 26px rgba(15, 38, 67, 0.1);
}

.btn:disabled,
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 700px) {
  .panel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-actions .btn,
  .panel-actions button,
  .panel-actions a {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .fee-view-switch {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-view-tab {
    width: 100%;
    padding: 9px 8px;
    font-size: 0.8rem;
  }

  .due-mobile-actions .fee-action,
  .mobile-actions .fee-action {
    flex: 1 1 120px;
  }
}

/* Workflow toolbars and account quick entry */
.fee-due-section > .panel-head {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(560px, 1.28fr);
  align-items: end;
}

.due-header-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(390px, 1.3fr);
  gap: 10px;
  align-items: end;
}

.due-month-picker {
  min-width: 0;
}

.due-month-picker input {
  width: 100%;
  min-height: 42px;
}

.due-header-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 8px;
}

.due-header-actions .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.account-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-form .form-grid .wide {
  grid-column: 1 / -1;
}

.expense-entry-panel {
  scroll-margin-top: 88px;
}

.accounts-quick-expense {
  min-width: 132px;
}

.quick-batch-label {
  margin: 5px 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.inline-batch-select {
  width: 100%;
  min-width: 170px;
  border-color: #b6cada;
  color: #123f6d;
  background-color: #f8fbfe;
}

.mobile-batch-control {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .fee-due-section > .panel-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .due-header-toolbar {
    grid-template-columns: minmax(170px, 0.65fr) minmax(360px, 1.35fr);
  }
}

@media (max-width: 700px) {
  body[data-page="accounts"] .accounts-layout > .dashboard-head {
    padding-bottom: 8px;
  }

  body[data-page="accounts"] .dashboard-head > div:first-child p:last-child {
    display: none;
  }

  body[data-page="accounts"] .dashboard-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .accounts-quick-expense {
    width: 100%;
    min-height: 46px;
  }

  .accounts-layout > .account-entry-grid {
    margin-top: 8px;
  }

  .account-form .form-grid,
  .due-header-toolbar {
    grid-template-columns: 1fr;
  }

  .due-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .due-header-actions .btn {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .expense-entry-panel .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .expense-entry-panel .form-actions .btn {
    width: 100%;
  }
}
.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9d8e8;
  border-radius: 6px;
  background: #eef4fa;
  color: #123d68;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
