:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #687385;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f4f6f9;
  --nav: #172033;
  --blue: #2563c9;
  --green: #18735f;
  --amber: #a86408;
  --red: #b7354b;
  --cyan: #14798b;
  --shadow: 0 12px 28px rgba(21, 34, 56, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f6fa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 38, 0.72);
  backdrop-filter: blur(10px);
}

.login-overlay.hidden {
  display: none;
}

.login-panel {
  width: min(420px, 92vw);
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eef7ff);
  border: 1px solid rgba(30, 64, 175, 0.18);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #0f3f6d;
  font-weight: 800;
}

.login-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-panel h2 {
  margin: 0 0 18px;
  color: #0f172a;
}

.login-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: #334155;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.login-password-wrap {
  position: relative;
  display: block;
}

.login-password-wrap input {
  padding-right: 46px;
}

.login-panel .login-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  min-height: 32px;
  transform: translateY(-50%);
  border: 1px solid #d6e0ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #1e293b;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  box-shadow: none;
}

.login-panel .login-forgot-link {
  width: auto;
  min-height: 26px;
  margin: -4px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.login-panel .login-forgot-link:hover {
  text-decoration: underline;
}

.login-panel button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.login-error {
  min-height: 18px;
  margin: 2px 0 12px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  background: #172033;
  color: #f7fbff;
  overflow: hidden;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding-bottom: 9px;
  transition: background .18s ease, transform .18s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  transform: translateY(-1px);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.brand strong, .brand small { display: block; }
.brand span {
  min-width: 0;
}

.brand strong {
  max-width: 178px;
  overflow: hidden;
  color: #ffffff;
  font-size: .82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small { margin-top: 3px; color: #c5d4e4; }

.nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 239, 172, .4) transparent;
}

.nav > button,
.nav > .nav-group,
.nav > .session-control {
  flex: 0 0 auto;
}

.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(134, 239, 172, .36);
  border-radius: 999px;
}

.nav button {
  position: relative;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 30px 0 31px;
  background: transparent;
  color: #dbe8f5;
  text-align: left;
  font-weight: 800;
}

.nav button:before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fbbf24, #22c55e);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
  transform: translateY(-50%);
}

.nav button:hover { background: rgba(34, 197, 94, .12); }
.nav button.active { background: rgba(18, 128, 92, .42); color: #f7fff9; box-shadow: none; }

.nav button.active:before {
  background: linear-gradient(135deg, #ffffff, #facc15);
}

.nav-group {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-group.open {
  margin: 2px 0;
  background: linear-gradient(180deg, rgba(251, 191, 36, .18), rgba(20, 184, 166, .16));
  border-color: rgba(251, 191, 36, .42);
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, .95), 0 8px 18px rgba(2, 24, 18, .18);
}

.nav-group-title {
  position: relative;
  width: 100%;
}

.nav-group-title:after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #f8e7a2;
  border-bottom: 2px solid #f8e7a2;
  transform: translateY(-62%) rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}

.nav-group.open .nav-group-title {
  background: linear-gradient(90deg, rgba(251, 191, 36, .34), rgba(16, 185, 129, .28));
  color: #fff8db;
  border: 1px solid rgba(255, 235, 153, .26);
}

.nav-group.open .nav-group-title:after {
  border-color: #ffffff;
  transform: translateY(-38%) rotate(225deg);
}

.nav-sub {
  display: none;
  gap: 3px;
  margin-top: 2px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(9, 64, 47, .48);
  border: 1px solid rgba(251, 191, 36, .28);
  max-width: 100%;
}

.nav-group.open .nav-sub {
  display: grid;
}

.nav-sub button {
  min-height: 31px;
  padding: 0 9px 0 25px;
  font-size: .81rem;
  color: #fffbea;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sub button:before {
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .12);
}

#transportNavGroup .nav-sub {
  background: rgba(9, 64, 47, .52);
}

#transportNavGroup .nav-sub button {
  min-height: 29px;
  font-size: .78rem;
  font-weight: 800;
}

.nav-sub button.active {
  background: rgba(18, 128, 92, .58);
  color: #ffffff;
  box-shadow: none;
}

.nav-sub button:hover {
  background: rgba(134, 239, 172, .18);
  color: #ffffff;
}

#feesNavGroup .nav-sub {
  max-height: none;
  overflow: visible;
}

#feesNavGroup .nav-sub::-webkit-scrollbar {
  width: 0;
}

#feesNavGroup .nav-sub::-webkit-scrollbar-thumb {
  background: rgba(134, 239, 172, .42);
  border-radius: 999px;
}

#feesNavGroup .nav-sub button {
  min-height: 27px;
  font-size: .78rem;
  padding-left: 24px;
}

.rail-card {
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
}

.rail-card span, .rail-card small { color: #c5d4e4; }
.rail-card strong { font-size: 1.75rem; line-height: 1; }

.developer-credit {
  background: linear-gradient(135deg, rgba(251, 191, 36, .18), rgba(20, 184, 166, .18));
  border-color: rgba(251, 191, 36, .28);
}

.developer-credit strong {
  display: block;
  color: #fff8db;
  font-size: 1.28rem;
}

.developer-credit span {
  color: #facc15;
  font-weight: 950;
}

.developer-credit small {
  color: #dbeafe;
  font-weight: 850;
}

.workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px 20px 26px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(145px, .9fr) minmax(150px, 220px) minmax(520px, auto);
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding-bottom: 10px;
  background: rgba(243, 246, 250, .94);
  backdrop-filter: blur(14px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  place-items: center;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: var(--ink);
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
h2 { font-size: 1.15rem; }

.eyebrow {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: .82rem;
}

.topbar-system-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  grid-column: 4;
  grid-row: 1;
  min-width: 0;
}

.topbar-system-strip span,
.topbar-system-strip button,
.topbar-system-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #c8d9ee;
  border-radius: 999px;
  background: #fff;
  color: #173761;
  padding: 0 8px;
  font-size: .72rem;
  font-weight: 950;
  white-space: nowrap;
  text-decoration: none;
}

.topbar-new-admission,
.topbar-mobile-app {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b8f6a, #1768ac) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(23, 104, 172, .22);
  font-size: .88rem;
  white-space: nowrap;
}

.topbar-mobile-app {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
}

.topbar-system-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef8ff;
}

.topbar-save-status {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.topbar-save-status.saving {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.topbar-network-status {
  gap: 6px !important;
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}

.topbar-network-status i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(190, 18, 60, .12);
}

.topbar-network-status.online {
  border-color: #bbf7d0 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.topbar-network-status.online i {
  box-shadow: 0 0 0 4px rgba(4, 120, 87, .12);
}

.topbar-network-status.checking {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #b45309 !important;
}

.topbar-alert-status {
  background: #fffbeb !important;
  color: #92400e !important;
}

.topbar-alert-status.has-alerts {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

.topbar-logout {
  background: #f8fafc !important;
  color: #334155 !important;
}

.session-control {
  display: grid;
  grid-template-columns: auto minmax(86px, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rail-session {
  grid-template-columns: minmax(0, .9fr) minmax(0, .75fr) 22px;
  gap: 4px;
  min-height: 0;
  padding: 5px;
  border-color: rgba(197, 212, 228, .14);
  border-radius: 6px;
  background: rgba(8, 13, 23, .24);
}

.rail-session span {
  grid-column: 1 / -1;
  color: #9fb1c5;
  font-size: .64rem;
  line-height: 1;
  letter-spacing: 0;
}

.rail-session select {
  min-height: 24px;
  border: 1px solid rgba(197, 212, 228, .14);
  border-radius: 5px;
  background: #121b2b;
  color: #dbe8f5;
  padding: 0 4px;
  font-size: .72rem;
}

.rail-session button {
  width: 22px;
  height: 24px;
  border-color: rgba(197, 212, 228, .16);
  border-radius: 5px;
  background: #1f2d42;
  color: #dbe8f5;
  font-size: .82rem;
}

.session-control span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.session-control select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.rail-session input {
  min-width: 0;
  width: 100%;
  min-height: 24px;
  border: 1px solid rgba(197, 212, 228, .14);
  border-radius: 5px;
  background: #101827;
  color: #ffffff;
  padding: 0 5px;
  font-size: .72rem;
  outline: 0;
}

.rail-session input::placeholder {
  color: #7f93aa;
}

.session-control button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  background: #f7fafc;
  color: #1f4d8f;
  font-weight: 950;
}

.rail-session select {
  background: #121b2b;
  color: #dbe8f5;
}

.rail-session button {
  background: #1f2d42;
  color: #dbe8f5;
}

.primary-action, .ghost-action, .mini {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 900;
}

.primary-action {
  border: 0;
  padding: 0 15px;
  background: #1f4d8f;
  color: #fff;
}

.ghost-action, .mini {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
}

.mini {
  min-height: 30px;
  padding: 0 10px;
  font-size: .86rem;
}

.mini-input {
  min-height: 30px;
  width: min(150px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  font-size: .84rem;
  color: var(--ink);
  background: #fff;
}

.primary-mini {
  background: #173b78;
  border-color: #173b78;
  color: #fff;
}

.primary-mini:hover {
  background: #0f2e61;
  border-color: #0f2e61;
}

.map-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mini.active { background: #1f4d8f; border-color: #1f4d8f; color: #fff; }

.enable-student-action {
  border-color: #9fd4bf;
  background: #e9f7f1;
  color: #116b4e;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .7fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(15, 28, 48, .96), rgba(19, 87, 92, .92) 56%, rgba(177, 105, 13, .86)),
    #162033;
  color: #fff;
  box-shadow: 0 24px 70px rgba(18, 32, 51, .22);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 15px;
}

.hero-copy .eyebrow, .hero-copy p { color: #d9ebf6; }
.hero-copy h2 { max-width: 760px; font-size: clamp(2.05rem, 4vw, 4.25rem); line-height: .98; }
.hero-copy > p:last-of-type { max-width: 650px; line-height: 1.7; font-size: 1.02rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-panel .primary-action { background: #fff; color: #173761; }
.hero-panel .ghost-action { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }

.campus-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.pulse-ring {
  place-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(210px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, .16) 0 52%, transparent 53%),
    conic-gradient(#ffffff 0 75%, rgba(255, 255, 255, .22) 75% 100%);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .08), 0 18px 44px rgba(0, 0, 0, .18);
}

.pulse-ring span { font-size: 3rem; font-weight: 950; line-height: 1; }
.pulse-ring small { color: #e6f3f6; font-weight: 900; }

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

.campus-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .14);
}

.campus-list span { color: #d9ebf6; font-weight: 800; }
.campus-list strong { font-size: 1.05rem; }

.view { display: none; }
.view.active { display: grid; gap: 18px; }

.executive-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.executive-title h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.school-dashboard-title {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 58%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(29, 78, 216, .2);
}

.executive-title small {
  color: var(--muted);
  font-weight: 700;
}

.executive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.metric, .panel, .cards article, .control-card, .kpi-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.kpi-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 16px;
  border-left: 4px solid #1f4d8f;
}

.kpi-card:nth-child(2) { border-left-color: var(--amber); }
.kpi-card.warning { border-left-color: var(--red); }

.kpi-card.fees-kpi {
  grid-column: span 2;
  min-height: 136px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .12), transparent 42%),
    var(--paper);
}

.kpi-card.fees-kpi strong {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.due-students-kpi-card {
  border-left-color: #14798b;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 121, 139, .13), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eefdf8 100%);
}

.due-students-kpi-card small {
  overflow-wrap: anywhere;
}

.due-students-kpi-card small span:first-child {
  color: #14798b;
  font-weight: 950;
  text-transform: uppercase;
}

.kpi-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kpi-card strong {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1;
}

.kpi-card small {
  color: var(--muted);
  font-weight: 750;
}

.monthly-fee-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.monthly-fee-pill {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.monthly-fee-pill:hover,
.monthly-fee-pill.active {
  border-color: rgba(245, 158, 11, .72);
  box-shadow: 0 8px 18px rgba(245, 158, 11, .14);
  transform: translateY(-1px);
}

.monthly-fee-pill.active {
  background: linear-gradient(180deg, #fff3d0, #ffffff);
}

.kpi-card.fees-kpi .monthly-fee-pill span {
  color: #92400e;
  font-size: .72rem !important;
  font-weight: 950;
  line-height: 1;
}

.kpi-card.fees-kpi .monthly-fee-pill strong {
  color: #1f2937;
  font-size: .78rem !important;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.monthly-fee-details-modal {
  width: min(720px, calc(100vw - 24px));
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

#monthlyFeeDetailsBody {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #ffffff;
}

.monthly-fee-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.monthly-fee-detail-head strong {
  color: #111827;
  font-size: .86rem;
  font-weight: 950;
}

.monthly-fee-detail-head span {
  color: #64748b;
  font-size: .72rem !important;
  font-weight: 850;
  white-space: nowrap;
}

.monthly-fee-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.monthly-fee-detail-stats article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border-radius: 7px;
  background: #f8fafc;
}

.monthly-fee-detail-stats article span {
  color: #64748b;
  font-size: .68rem !important;
  font-weight: 850;
}

.monthly-fee-detail-stats article b {
  color: #0f172a;
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monthly-fee-head-list {
  display: grid;
  gap: 5px;
}

.monthly-fee-head-list div,
.monthly-fee-head-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(15, 23, 42, .06);
  color: #475569;
  font-size: .74rem;
  font-weight: 800;
}

.monthly-fee-head-list div.discount {
  color: #92400e;
}

.monthly-fee-head-list strong {
  color: #111827;
  white-space: nowrap;
}

.control-card {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f7fafc);
  border-color: #d6e0ec;
}

.control-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.control-card strong { font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1; }
.control-card small { color: var(--muted); }
.control-card.danger { border-color: #f1c4cd; background: linear-gradient(180deg, #fff, #fff5f7); }

.metric {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 16px;
  overflow: hidden;
}

.metric:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}

.metric.green:before { background: var(--green); }
.metric.amber:before { background: var(--amber); }
.metric.red:before { background: var(--red); }
.metric span, .metric small, .cards small, .cards span { color: var(--muted); }
.metric span, .cards span { font-weight: 900; }
.metric strong { font-size: 2rem; }

.dashboard-grid, .finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 18px;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr);
  gap: 16px;
}

.lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
}

.dashboard-grid-fresh {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .72fr);
}

.panel {
  min-width: 0;
  padding: 16px;
}

.chart-panel {
  background: #fff;
}

.collection-trend-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border-color: rgba(20, 121, 139, .22);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 201, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #f4fff9 100%);
}

.collection-trend-panel .panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.collection-trend-panel .panel-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 121, 139, .24);
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 950;
  white-space: nowrap;
}

.market-chart {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 220px;
  padding: 12px;
  border: 1px solid rgba(210, 224, 238, .86);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(148, 163, 184, .15) 0, rgba(148, 163, 184, .15) 1px, transparent 1px, transparent 42px),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 255, .94));
}

.daily-cash-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 196px;
  overflow-x: auto;
  padding: 12px 4px 2px;
  scrollbar-width: thin;
}

.daily-cash-bar {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr) auto;
  justify-items: center;
  gap: 7px;
  min-width: 42px;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.daily-cash-bar:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.daily-cash-bar:focus-visible {
  outline: 3px solid rgba(37, 99, 201, .34);
  outline-offset: 4px;
  border-radius: 8px;
}

.daily-cash-bar strong {
  min-height: 18px;
  color: #173761;
  font-size: .68rem;
  font-weight: 950;
  white-space: nowrap;
}

.daily-cash-bar span {
  align-self: end;
  width: clamp(18px, 54%, 34px);
  min-height: 10px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #22c55e 0%, #14798b 48%, #173761 100%);
  box-shadow: 0 12px 24px rgba(20, 121, 139, .16);
}

.daily-cash-bar.is-latest span {
  background: linear-gradient(180deg, #f59e0b 0%, #ec4899 50%, #7c3aed 100%);
}

.daily-cash-bar small {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 900;
  white-space: nowrap;
}

.pay-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border-color: #bfd8f1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(244, 250, 255, .96) 48%, rgba(255, 249, 236, .96) 100%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(30, 64, 104, .09);
}

.pay-panel > .panel-head {
  margin: -16px -16px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(191, 216, 241, .78);
  background: linear-gradient(110deg, #174f81 0%, #177e89 56%, #8a6b10 100%);
  color: #fff;
}

.pay-panel > .panel-head .eyebrow,
.pay-panel > .panel-head h2 {
  color: #fff;
}

.command-panel {
  border-color: var(--line);
  background: #fff;
}

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

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

.student-user-filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 14px 0 12px;
}

.student-user-filter-bar label {
  display: grid;
  gap: 6px;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.student-user-filter-bar select,
.student-user-filter-bar input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 214px;
  padding: 8px 4px 0;
  border-top: 1px solid #edf1f5;
}

.empty-chart {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
}

.bar {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 186px;
}

.bar i {
  display: block;
  min-height: 26px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2563c9, #14798b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.bar span {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.task-list, .bucket-list, .fee-form, .cards {
  display: grid;
  gap: 12px;
}

.student-fee-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.student-fee-card > div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  background: #f8fbfd;
}

.student-fee-card span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.student-fee-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .96rem;
}

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

.ledger-panel {
  background: #fff;
}

.ledger-search {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
}

.ledger-search select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 850;
}

.ledger-profile-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbfd, #ffffff);
}

.ledger-photo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 118px;
  border: 1px solid #cfe0ea;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9f7f1, #edf4ff);
  color: #14798b;
  font-size: 2rem;
  font-weight: 950;
  overflow: hidden;
}

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

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

.ledger-info-grid div {
  display: grid;
  gap: 5px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #e0e8ef;
  border-radius: 7px;
  background: #fff;
}

.ledger-info-grid div:nth-child(5),
.ledger-info-grid div:nth-child(6) {
  grid-column: span 2;
}

.ledger-info-grid span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ledger-info-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .96rem;
}

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

.ledger-summary article {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
  border-left: 4px solid #1f4d8f;
}

.ledger-summary article:nth-child(2) { border-left-color: #18735f; }
.ledger-summary article:nth-child(3) { border-left-color: #a86408; }
.ledger-summary article:nth-child(4) { border-left-color: #b7354b; }

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

.ledger-summary strong {
  font-size: 1.35rem;
}

.fee-breakdown-wrap {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.student-name-link {
  border: 0;
  background: transparent;
  color: #1f4d8f;
  padding: 0;
  text-align: left;
  font-weight: 950;
}

.student-name-link:hover {
  color: #14798b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.task-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-list b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #edf3fb;
  color: #1f4d8f;
}

.task-list small { color: var(--muted); }
.task-list em {
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff2d6;
  color: #8b5207;
  font-style: normal;
  font-size: .72rem;
  font-weight: 950;
}

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

.module-status article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  background: #f9fbfd;
}

.module-status strong,
.module-status small {
  display: block;
}

.module-status small {
  margin-top: 4px;
  color: var(--muted);
}

.notice-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 16px;
}

.notice-list-panel,
.notice-integration-note {
  grid-column: 1 / -1;
}

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

.notice-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.notice-form .wide {
  grid-column: 1 / -1;
}

.notice-form input,
.notice-form select,
.notice-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0 10px;
}

.notice-form textarea {
  min-height: 120px;
  padding: 10px;
  resize: vertical;
}

.notice-form select[multiple] {
  min-height: 128px;
  padding: 8px;
}

.notice-target-field {
  border: 1px solid #dce8f5;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.notice-target-field[hidden] {
  display: none;
}

.notice-app-preview {
  display: grid;
  gap: 10px;
  min-height: 250px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7e7d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5fbf8, #ffffff);
}

.notice-app-preview span,
.notice-app-preview small,
.notice-integration-note {
  color: var(--muted);
}

.notice-app-preview strong {
  font-size: 1.1rem;
}

.homework-attachment-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #bfd7ff;
  border-radius: 6px;
  background: #eef6ff;
  color: #174ea6;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e7efff;
  color: #2455bd;
  font-size: .72rem;
  font-weight: 950;
}

.status-pill.stable { background: #e4f4ee; color: #116b4e; }
.status-pill.live { background: #e7efff; color: #2455bd; }
.status-pill.watch { background: #fff2d6; color: #8b5207; }
.status-pill.pending { background: #ffe5eb; color: #a42e45; }

.compact-table th,
.compact-table td {
  padding: 11px 10px;
}

#dueTable td {
  vertical-align: top;
}

#dueTable td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #1f4d8f;
  padding: 0;
}

.icon-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.icon-action:hover {
  border-color: #9fb8df;
  background: #edf3fb;
}

.icon-action.fees {
  color: #18735f;
}

.icon-action.fees:hover {
  border-color: #9fd4bf;
  background: #e9f7f1;
}

.icon-action.disable {
  color: #8b5207;
}

.icon-action.disable:hover {
  border-color: #e7c778;
  background: #fff7df;
}

.icon-action.delete {
  color: #b7354b;
}

.icon-action.delete:hover {
  border-color: #efbdc7;
  background: #fff5f7;
}

.transport-village-table .icon-action.delete {
  width: 30px;
  min-width: 30px;
  padding: 0;
}

.student-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.student-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.excel-action {
  width: 30px;
  height: 30px;
  color: #13744e;
  border-color: #b9dec9;
  background: #f0fff6;
}

.excel-action.import {
  color: #185ca8;
  border-color: #bfd5f3;
  background: #f1f7ff;
}

.excel-action svg {
  width: 16px;
  height: 16px;
}

.hidden-file-input {
  display: none;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; }

.student-transport-fee-table-wrap {
  max-height: 62vh;
  overflow: auto;
  border: 1px solid #cfe2f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 30px rgba(31, 50, 72, .08);
}

.student-transport-fee-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(135deg, #e6f4ff 0%, #eafbf2 56%, #fff4d8 100%);
  color: #174f81;
  box-shadow: 0 1px 0 #c8d9ee, 0 8px 14px rgba(31, 50, 72, .08);
}

.student-transport-fee-table-wrap tbody tr:nth-child(odd) td {
  background: rgba(238, 248, 255, .56);
}

.student-transport-fee-table-wrap tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .92);
}

.student-transport-fee-table-wrap tbody tr:hover td {
  background: #fff7df;
}

.student-transport-fee-table-wrap tbody tr.transport-fee-matched-row td {
  background: #ecfdf3;
}

.student-transport-fee-table-wrap tbody tr.transport-fee-matched-row:hover td {
  background: #dcfce7;
}

.student-transport-fee-table-wrap td:nth-child(9) strong {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #146c43;
  box-shadow: inset 0 0 0 1px #b9e2c6;
}

.transport-match-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #cfd9e6;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: .74rem;
  font-weight: 950;
  cursor: pointer;
}

.transport-match-check input {
  width: 14px;
  height: 14px;
  accent-color: #16a34a;
}

.transport-fee-matched-row .transport-match-check {
  border-color: #9bd7ae;
  background: #dff8e8;
  color: #146c43;
}

.transport-village-form {
  grid-template-columns: minmax(190px, 1fr) 120px 140px 160px 150px auto;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #cfe1f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #f7fff7 58%, #fff8e9 100%);
}

.transport-village-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #b8dfd7;
  border-left: 5px solid #14798b;
  border-radius: 8px;
  background: linear-gradient(90deg, #ebfbff, #f1fff6);
  color: #0f5f55;
  box-shadow: 0 8px 18px rgba(20, 121, 139, .08);
}

.transport-village-summary span {
  color: var(--muted);
  font-size: .86rem;
}

.transport-village-search {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 10px;
}

.transport-village-search label {
  display: grid;
  gap: 5px;
  width: min(320px, 100%);
  color: #173761;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transport-village-search input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #b8d5ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(20, 121, 139, .05);
}

.transport-village-search input:focus {
  border-color: #14798b;
  outline: 3px solid rgba(20, 121, 139, .14);
}

.transport-village-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.transport-village-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.transport-village-table th {
  background: #173761;
  color: #f7fbff;
  padding: 10px 9px;
  font-size: .7rem;
  letter-spacing: 0;
}

.transport-village-table th:first-child {
  border-top-left-radius: 8px;
}

.transport-village-table th:last-child {
  border-top-right-radius: 8px;
}

.transport-village-table tbody tr:nth-child(odd) td {
  background: #f8fbff;
}

.transport-village-table tbody tr:nth-child(even) td {
  background: #f3fff8;
}

.transport-village-table tbody tr:hover td {
  background: #fff8df;
}

.transport-village-name-input {
  width: min(300px, 100%);
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #bfd3ec;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(31, 77, 143, .04);
}

.transport-village-name-input:focus {
  border-color: #1f4d8f;
  background: #fff;
  outline: 3px solid rgba(31, 77, 143, .14);
}

.transport-distance-field {
  display: inline-grid;
  grid-template-columns: 82px auto;
  align-items: center;
  gap: 6px;
}

.transport-distance-field input {
  width: 82px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.transport-fee-field input {
  width: 100px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #c8d9ee;
  border-radius: 6px;
  background: #fffdf7;
  color: #1f4d8f;
  font-weight: 850;
}

.transport-distance-field span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.transport-fine-panel {
  border-color: #cfe1f7;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.transport-fine-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #cfe1f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #f7fff7 62%, #fff8e9 100%);
}

.transport-fine-form label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .8rem;
  font-weight: 950;
}

.transport-fine-form input {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 0 10px;
  font-weight: 900;
}

.transport-fine-example {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.transport-fine-example strong {
  grid-column: 1 / -1;
  color: #123456;
  font-size: 1rem;
}

.transport-fine-example div {
  padding: 10px;
  border: 1px solid #ead29b;
  border-radius: 8px;
  background: #fff8e8;
}

.transport-fine-example span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.transport-fine-example b {
  display: block;
  margin-top: 4px;
  color: #123456;
}

.staff-master-layout {
  display: grid;
  gap: 16px;
}

.staff-master-panel {
  border-color: #cfe1f7;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.staff-details-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #cfe1f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #f7fff7 62%, #fff8e9 100%);
}

.staff-details-form label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .8rem;
  font-weight: 950;
}

.staff-details-form input,
.staff-details-form select,
.staff-details-form textarea {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.staff-photo-field {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding: 10px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.staff-photo-field .photo-upload {
  grid-template-columns: 92px minmax(160px, 1fr);
  align-items: center;
}

.staff-photo-preview {
  width: 92px;
  height: 112px;
}

.staff-address-field {
  grid-column: span 3;
}

.staff-details-form .primary-action {
  align-self: end;
}

.hr-setup-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #d8e7d2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fff0 0%, #eef8ff 58%, #fff7df 100%);
}

.hr-setup-form label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .8rem;
  font-weight: 950;
}

.hr-setup-form input,
.hr-setup-form select {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.hr-option-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.hr-setup-panel[hidden] {
  display: none;
}

.compact-head {
  margin-top: 4px;
}

.hr-setup-form .primary-action {
  align-self: end;
}

.hr-setup-table td strong {
  color: #15355c;
}

.staff-details-table small {
  color: var(--muted);
  font-weight: 800;
}

.staff-details-table table {
  min-width: 1080px;
  table-layout: fixed;
}

.staff-details-table th,
.staff-details-table td {
  padding: 9px 7px;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.24;
}

.staff-details-table th {
  font-size: .68rem;
  letter-spacing: 0;
}

.staff-details-table td {
  font-size: .82rem;
}

.staff-details-table th:nth-child(1),
.staff-details-table td:nth-child(1) {
  width: 96px;
}

.staff-details-table th:nth-child(2),
.staff-details-table td:nth-child(2) {
  width: 190px;
}

.staff-details-table th:nth-child(3),
.staff-details-table td:nth-child(3) {
  width: 110px;
}

.staff-details-table th:nth-child(4),
.staff-details-table td:nth-child(4) {
  width: 130px;
}

.staff-details-table th:nth-child(5),
.staff-details-table td:nth-child(5) {
  width: 112px;
}

.staff-details-table th:nth-child(6),
.staff-details-table td:nth-child(6),
.staff-details-table th:nth-child(8),
.staff-details-table td:nth-child(8) {
  width: 112px;
}

.staff-details-table th:nth-child(7),
.staff-details-table td:nth-child(7) {
  width: 150px;
}

.staff-details-table th:nth-child(9),
.staff-details-table td:nth-child(9) {
  width: 78px;
}

.staff-details-table th:nth-child(10),
.staff-details-table td:nth-child(10) {
  width: 112px;
}

.staff-attendance-layout {
  display: grid;
  gap: 16px;
}

.staff-attendance-tools {
  display: grid;
  grid-template-columns: minmax(120px, .6fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(145px, .8fr) minmax(118px, auto) minmax(96px, auto);
  gap: 10px;
  align-items: end;
  min-width: 0;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d7e6f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbff 0%, #f8fff1 100%);
}

.staff-attendance-tools label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #314154;
  font-size: .78rem;
  font-weight: 950;
}

.staff-attendance-tools input,
.staff-attendance-tools select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 36px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.staff-attendance-tools .ghost-action {
  min-width: 96px;
  white-space: nowrap;
}

.staff-csv-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #13744e;
  border-color: #b9dec9;
  background: #f0fff6;
}

.staff-csv-upload-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.student-report-panel {
  overflow: hidden;
  border-color: #bfd8f1;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 46%, #fff9ec 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.student-report-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(185, 210, 234, .75);
  background: linear-gradient(110deg, #174f81 0%, #177e89 58%, #8a6b10 100%);
  color: #fff;
}

.student-report-panel .panel-head .eyebrow,
.student-report-panel .panel-head h2,
.student-report-panel .panel-head small {
  color: #fff;
}

.homework-panel {
  overflow: hidden;
  border-color: #c7e7dd;
  background:
    radial-gradient(circle at top right, rgba(255, 210, 92, .22), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eefcf8 52%, #f7fbff 100%);
  box-shadow: 0 18px 42px rgba(20, 114, 102, .1);
}

.homework-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(173, 220, 207, .76);
  background: linear-gradient(112deg, #0f766e 0%, #0ea5a4 55%, #f59e0b 100%);
  color: #fff;
}

.homework-panel .panel-head .eyebrow,
.homework-panel .panel-head h2,
.homework-panel .panel-head small {
  color: #fff;
}

.homework-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, .8fr);
  gap: 12px;
  align-items: end;
}

.homework-form label {
  display: grid;
  gap: 8px;
  color: #164e63;
  font-size: .84rem;
  font-weight: 950;
}

.homework-form .wide {
  grid-column: 1 / -1;
}

.homework-form input,
.homework-form select,
.homework-form textarea {
  width: 100%;
  border: 1px solid #badbd4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #102a43;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.homework-form input,
.homework-form select {
  min-height: 42px;
  padding: 10px 12px;
}

.homework-form select {
  min-width: 0;
}

.homework-form textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.45;
}

#addHomework .homework-panel {
  border-color: #c9ddf2;
  background:
    radial-gradient(circle at 100% 0%, rgba(36,107,254,.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(34,200,166,.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

#addHomework .homework-panel .panel-head {
  background:
    radial-gradient(circle at 88% 8%, rgba(248,189,69,.28), transparent 26%),
    linear-gradient(135deg, #10233f 0%, #185ca8 58%, #0f766e 100%);
  border-bottom-color: rgba(255,255,255,.24);
}

#addHomework .homework-form {
  grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 1.2fr) minmax(180px, .8fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #d6e6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 35, 63, .07);
}

#addHomework .homework-form input,
#addHomework .homework-form select {
  min-height: 48px;
  border-color: #c7d9ed;
  background: #fdfefe;
  font-size: .94rem;
}

#addHomework .homework-form textarea {
  min-height: 150px;
  border-color: #c7d9ed;
  background: #fdfefe;
  font-size: .94rem;
}

#addHomework .homework-form .primary-action {
  min-height: 44px;
  padding-inline: 20px;
  background: linear-gradient(135deg, #185ca8, #0f766e);
}

#addHomework .homework-preview {
  border-color: #d6e6f4;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 58%, #eefbf7 100%);
  color: #213b56;
  box-shadow: 0 12px 28px rgba(16,35,63,.06);
}

.homework-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bee8dd;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,253,245,.9));
  color: #24515a;
  font-weight: 800;
}

.homework-preview strong,
.homework-preview span,
.homework-preview p {
  display: block;
  margin: 0 0 5px;
}

.teacher-homework-review {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d7e6f4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 4%, rgba(245, 158, 11, .16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 16px 34px rgba(16, 35, 63, .07);
}

.teacher-homework-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #d7e6f4;
  background: linear-gradient(135deg, rgba(24, 92, 168, .1), rgba(15, 118, 110, .08));
}

.teacher-homework-review-head h3 {
  margin: 2px 0 4px;
  color: #10233f;
  font-size: 1.05rem;
  line-height: 1.2;
}

.teacher-homework-review-head small {
  color: #526b86;
  font-weight: 800;
}

.teacher-homework-count {
  flex: 0 0 auto;
  border: 1px solid #b9d7f1;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #185ca8;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(24, 92, 168, .1);
}

.teacher-homework-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(160px, .8fr) minmax(150px, .7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid #e1edf8;
  background: rgba(255,255,255,.78);
}

.teacher-homework-filters label {
  display: grid;
  gap: 7px;
  color: #15395f;
  font-size: .78rem;
  font-weight: 950;
}

.teacher-homework-filters select,
.teacher-homework-filters input {
  min-height: 40px;
  width: 100%;
  border: 1px solid #c8daed;
  border-radius: 8px;
  background: #fff;
  color: #10233f;
  font-weight: 900;
  padding: 9px 11px;
}

.teacher-homework-filters .ghost-action {
  min-height: 40px;
  padding-inline: 16px;
}

.teacher-homework-table-wrap {
  max-height: 360px;
  background: rgba(255,255,255,.86);
}

.teacher-homework-table-wrap table {
  min-width: 920px;
}

.teacher-homework-table-wrap th {
  background: #eef6ff;
  color: #14365f;
  font-size: .76rem;
}

.teacher-homework-table-wrap td {
  vertical-align: top;
}

.teacher-homework-text {
  max-width: 360px;
  color: #223b53;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.homework-doubts-panel .teacher-homework-review {
  border-color: #f1d2a7;
  background:
    radial-gradient(circle at 96% 0%, rgba(249, 115, 22, .18), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff8ed 48%, #f7fbff 100%);
}

.homework-doubt-list {
  display: grid;
  gap: 12px;
  padding: 14px 16px 18px;
  background: rgba(255,255,255,.82);
}

.homework-doubt-card {
  border: 1px solid #f0d2a5;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.9)),
    radial-gradient(circle at 100% 0%, rgba(24, 92, 168, .12), transparent 32%);
  box-shadow: 0 12px 28px rgba(102, 62, 18, .08);
}

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

.homework-doubt-head h3 {
  margin: 4px 0 6px;
  color: #10233f;
  font-size: 1rem;
  line-height: 1.22;
}

.homework-doubt-head h3 small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
}

.homework-doubt-head p {
  margin: 0;
  color: #253f5c;
  font-weight: 850;
  line-height: 1.4;
}

.homework-doubt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.homework-doubt-meta span {
  border: 1px solid #d9e7f6;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f8fbff;
  color: #15395f;
  font-size: .74rem;
  font-weight: 900;
}

.homework-doubt-replies {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.homework-doubt-reply {
  border: 1px solid #d6e9df;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f5fff9;
}

.homework-doubt-reply strong {
  color: #116b4e;
  font-size: .8rem;
}

.homework-doubt-reply p {
  margin: 4px 0;
  color: #213b56;
  font-weight: 850;
}

.homework-doubt-reply small,
.homework-doubt-card > small {
  color: #64748b;
  font-weight: 850;
}

.teacher-notice-panel {
  overflow: hidden;
  border-color: #d8c7ff;
  background:
    radial-gradient(circle at top right, rgba(255, 190, 118, .24), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f5f0ff 52%, #eff9ff 100%);
  box-shadow: 0 18px 42px rgba(85, 62, 160, .1);
}

.teacher-notice-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(216, 199, 255, .76);
  background: linear-gradient(112deg, #4f46e5 0%, #0ea5e9 54%, #f59e0b 100%);
  color: #fff;
}

.teacher-notice-panel .panel-head .eyebrow,
.teacher-notice-panel .panel-head h2,
.teacher-notice-panel .panel-head small {
  color: #fff;
}

.teacher-notice-request-grid {
  display: grid;
  gap: 12px;
}

.teacher-notice-request-card,
.teacher-notice-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d9ddff;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(63, 81, 181, .08);
}

.teacher-notice-request-card h3 {
  margin: 4px 0 6px;
  color: #1e2875;
}

.teacher-notice-request-card p {
  margin: 0 0 8px;
  color: #28455f;
  font-weight: 750;
}

.teacher-notice-meta {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-notice-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 140px;
}

.teacher-advisory-panel {
  overflow: hidden;
  border-color: #c5d9ff;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .15), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, .14), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef6ff 100%);
  box-shadow: 0 18px 44px rgba(30, 64, 175, .1);
}

.teacher-advisory-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(197, 217, 255, .78);
  background: linear-gradient(112deg, #0f766e 0%, #2563eb 58%, #7c3aed 100%);
  color: #fff;
}

.teacher-advisory-panel .panel-head .eyebrow,
.teacher-advisory-panel .panel-head h2,
.teacher-advisory-panel .panel-head small {
  color: #fff;
}

.teacher-advisory-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
}

.teacher-advisory-form textarea {
  min-height: 92px;
}

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

.teacher-advisory-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d8e5ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
}

.teacher-advisory-card h3 {
  margin: 4px 0 6px;
  color: #17337a;
}

.teacher-advisory-card p {
  margin: 0 0 8px;
  color: #263f5f;
  font-weight: 760;
  line-height: 1.45;
}

.teacher-advisory-explanation {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #bfe3d8;
  border-radius: 8px;
  background: #effdf7;
  color: #134e4a;
  font-weight: 750;
}

.teacher-advisory-explanation small {
  display: block;
  margin-bottom: 4px;
  color: #0f766e;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .teacher-advisory-card {
    grid-template-columns: 1fr;
  }

  .teacher-advisory-card .teacher-notice-actions {
    justify-items: stretch;
  }
}

.report-option-strip {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #d8e7f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.report-option-strip button {
  position: relative;
  transform: translateY(0);
  border-radius: 7px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  box-shadow:
    0 10px 0 rgba(31, 50, 72, .12),
    0 18px 28px rgba(31, 50, 72, .12),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

.report-option-strip button:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow:
    0 12px 0 rgba(31, 50, 72, .12),
    0 24px 34px rgba(31, 50, 72, .16),
    inset 0 1px 0 rgba(255, 255, 255, .82);
}

.report-option-strip button:active {
  transform: translateY(6px);
  box-shadow:
    0 3px 0 rgba(31, 50, 72, .16),
    0 10px 18px rgba(31, 50, 72, .12),
    inset 0 2px 8px rgba(31, 50, 72, .12);
}

.report-option-strip button:nth-child(1) {
  border-color: #b8d8ff;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 100%);
  color: #174f81;
}

.report-option-strip button:nth-child(2) {
  border-color: #cce8d8;
  background: linear-gradient(135deg, #effbf4 0%, #ffffff 100%);
  color: #116149;
}

.report-option-strip button:nth-child(3) {
  border-color: #efdca9;
  background: linear-gradient(135deg, #fff7df 0%, #ffffff 100%);
  color: #7b5710;
}

.report-option-strip button.active {
  transform: translateY(4px);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #123f66 0%, #177e89 58%, #8a6b10 100%);
  box-shadow:
    0 4px 0 rgba(18, 63, 102, .35),
    0 14px 24px rgba(23, 126, 137, .24),
    inset 0 2px 10px rgba(0, 0, 0, .12);
}

.report-table-panel[hidden] {
  display: none;
}

.report-table-panel {
  border: 1px solid #d6e4f1;
  border-radius: 8px;
  background: #ffffff;
  transform: perspective(1100px) rotateX(.35deg);
  box-shadow:
    0 3px 0 #c4d8eb,
    0 18px 34px rgba(31, 50, 72, .12),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

.report-total-chip {
  display: inline-flex;
  margin: 12px 12px 0;
  padding: 8px 14px;
  border: 1px solid #bfd8f1;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef8ff 0%, #f4fff7 100%);
  color: #174f81;
  font-size: .9rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(31, 50, 72, .08);
}

.class-section-report-table table {
  min-width: 620px;
}

.gender-ratio-report-table table {
  min-width: 760px;
}

.student-teacher-ratio-report-table table {
  min-width: 720px;
}

.class-section-report-table th,
.gender-ratio-report-table th,
.student-teacher-ratio-report-table th {
  color: #ffffff;
  background: linear-gradient(90deg, #174f81 0%, #177e89 55%, #6d8f20 100%);
  font-size: .78rem;
  letter-spacing: .02em;
}

.class-section-report-table th,
.class-section-report-table td,
.gender-ratio-report-table th,
.gender-ratio-report-table td,
.student-teacher-ratio-report-table th,
.student-teacher-ratio-report-table td {
  padding: 11px 10px;
}

.class-section-report-table tbody tr:nth-child(odd) td,
.gender-ratio-report-table tbody tr:nth-child(odd) td,
.student-teacher-ratio-report-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.class-section-report-table tbody tr:nth-child(even) td,
.gender-ratio-report-table tbody tr:nth-child(even) td,
.student-teacher-ratio-report-table tbody tr:nth-child(even) td {
  background: #fbfff6;
}

.class-section-report-table tbody tr:hover td,
.gender-ratio-report-table tbody tr:hover td,
.student-teacher-ratio-report-table tbody tr:hover td {
  background: #fff8df;
}

.class-section-report-table td:first-child,
.gender-ratio-report-table td:nth-child(2),
.gender-ratio-report-table td:nth-child(3),
.gender-ratio-report-table td:nth-child(4),
.student-teacher-ratio-report-table td:nth-child(2),
.student-teacher-ratio-report-table td:nth-child(3) {
  color: #174f81;
  font-weight: 950;
}

.class-section-report-table .icon-action.fees {
  background: linear-gradient(135deg, #0f766e 0%, #174f81 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.gender-ratio-chip,
.teacher-ratio-chip {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #b8d8ff;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 100%);
  color: #174a84;
  font-weight: 950;
}

.teacher-ratio-chip {
  border-color: #d8e8b5;
  background: linear-gradient(135deg, #f4fbdf 0%, #ffffff 100%);
  color: #4f7118;
}

.daily-collection-report-panel {
  overflow: hidden;
  border-color: #bfd8f1;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 46%, #fff9ec 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.bank-book-panel {
  overflow: hidden;
  border-color: #bed8ee;
  background: linear-gradient(135deg, #ffffff 0%, #f2f9ff 48%, #fff8e8 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.bank-account-manager {
  margin-bottom: 14px;
  border: 1px solid #c7ddf2;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(31, 50, 72, .06);
  overflow: hidden;
}

.bank-account-manager summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: #173761;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bank-account-manager summary::-webkit-details-marker { display: none; }
.bank-account-manager summary span:first-child { display: grid; gap: 2px; }
.bank-account-manager summary strong { font-size: .92rem; }
.bank-account-manager summary small { color: #60758a; font-size: .76rem; font-weight: 750; }

.bank-account-manager-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: #e8f4ff;
  color: #174f81;
  font-size: .76rem;
  font-weight: 950;
}

.bank-account-manager[open] .bank-account-manager-action::after { content: "  ▲"; }
.bank-account-manager:not([open]) .bank-account-manager-action::after { content: "  ▼"; }

.bank-account-manager-body {
  padding: 12px;
  border-top: 1px solid #d8e7f4;
}

.book-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 10px;
}

.book-section-title h3 { margin: 2px 0 0; color: #173761; font-size: 1.05rem; }
.book-section-title small { color: #60758a; font-size: .76rem; font-weight: 800; }

.entire-school-fees-panel {
  overflow: hidden;
  border-color: #bfd8f1;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 46%, #fff9ec 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.daily-collection-report-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(185, 210, 234, .75);
  background: linear-gradient(110deg, #174f81 0%, #177e89 58%, #8a6b10 100%);
  color: #fff;
}

.bank-book-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(185, 210, 234, .75);
  background: linear-gradient(110deg, #123f66 0%, #157d85 58%, #8a6b10 100%);
  color: #fff;
}

.entire-school-fees-panel .panel-head {
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(185, 210, 234, .75);
  background: linear-gradient(110deg, #174f81 0%, #177e89 58%, #8a6b10 100%);
  color: #fff;
}

.daily-collection-report-panel .panel-head .eyebrow,
.daily-collection-report-panel .panel-head h2,
.daily-collection-report-panel .panel-head small {
  color: #fff;
}

.bank-book-panel .panel-head .eyebrow,
.bank-book-panel .panel-head h2,
.bank-book-panel .panel-head small {
  color: #fff;
}

.entire-school-fees-panel .panel-head .eyebrow,
.entire-school-fees-panel .panel-head h2,
.entire-school-fees-panel .panel-head small {
  color: #fff;
}

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

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

.daily-collection-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff4d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 18px rgba(31, 50, 72, .06);
}

.bank-book-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff4d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 18px rgba(31, 50, 72, .06);
}

.bank-reconciliation-upload {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #c5ddf1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 58%, #fff5dc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 20px rgba(31, 50, 72, .07);
}

.bank-reconciliation-upload label {
  display: grid;
  gap: 7px;
  min-width: 280px;
  color: #50657b;
  font-size: .8rem;
  font-weight: 950;
}

.bank-reconciliation-upload input[type="file"] {
  min-height: 42px;
  border: 1px dashed #8ab2d4;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 9px 10px;
  font: inherit;
  font-weight: 850;
}

.bank-reconciliation-help {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 4px solid #177e89;
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  color: #50657b;
  font-size: .84rem;
  font-weight: 800;
}

.daily-collection-filter label {
  display: grid;
  gap: 7px;
  min-width: 190px;
  color: #50657b;
  font-size: .8rem;
  font-weight: 950;
}

.bank-book-filter label {
  display: grid;
  gap: 7px;
  min-width: 190px;
  color: #50657b;
  font-size: .8rem;
  font-weight: 950;
}

.daily-collection-filter input {
  min-height: 40px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.bank-book-filter input,
.bank-book-filter select {
  min-height: 40px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.entire-school-fees-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.entire-school-fees-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #d8e7f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.entire-school-fees-options button {
  border-radius: 7px;
  box-shadow:
    0 8px 0 rgba(31, 50, 72, .1),
    0 16px 24px rgba(31, 50, 72, .1),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

.entire-school-fees-options button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #123f66 0%, #177e89 58%, #8a6b10 100%);
  transform: translateY(3px);
  box-shadow:
    0 4px 0 rgba(18, 63, 102, .35),
    0 14px 24px rgba(23, 126, 137, .18),
    inset 0 2px 10px rgba(0, 0, 0, .1);
}

.daily-collection-summary article {
  padding: 13px;
  border: 1px solid #d6e4f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff5dd 100%);
  box-shadow: 0 10px 22px rgba(31, 50, 72, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.bank-book-summary article {
  padding: 13px;
  border: 1px solid #d6e4f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff5dd 100%);
  box-shadow: 0 10px 22px rgba(31, 50, 72, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.entire-school-fees-summary article {
  padding: 13px;
  border: 1px solid #d6e4f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff5dd 100%);
  box-shadow: 0 10px 22px rgba(31, 50, 72, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.daily-collection-summary span {
  display: block;
  color: #50657b;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bank-book-summary span {
  display: block;
  color: #50657b;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.entire-school-fees-summary span {
  display: block;
  color: #50657b;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-collection-summary strong {
  display: block;
  margin-top: 5px;
  color: #173761;
  font-size: 1.14rem;
  font-weight: 950;
}

.bank-book-summary strong {
  display: block;
  margin-top: 5px;
  color: #173761;
  font-size: 1.14rem;
  font-weight: 950;
}

.entire-school-fees-summary strong {
  display: block;
  margin-top: 5px;
  color: #173761;
  font-size: 1.08rem;
  font-weight: 950;
}

.entire-school-fees-filter {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 10px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff4d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 18px rgba(31, 50, 72, .06);
}

.entire-school-fees-filter label {
  display: grid;
  gap: 7px;
  color: #50657b;
  font-size: .8rem;
  font-weight: 950;
}

.entire-school-fees-filter select {
  min-height: 40px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.daily-collection-report-table table {
  min-width: 820px;
}

.bank-book-table table {
  min-width: 1180px;
}

.bank-book-table {
  max-height: min(62vh, 680px);
  overflow: auto;
  border: 1px solid #c7ddf2;
  border-radius: 9px;
  overscroll-behavior: contain;
}

.bank-book-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.bank-book-table tbody td { white-space: nowrap; }

.bank-reconciliation-table table {
  min-width: 1320px;
}

.bank-reconciliation-table th:nth-child(5),
.bank-reconciliation-table td:nth-child(5) {
  width: 260px;
  max-width: 260px;
}

.entire-school-fees-table table {
  min-width: 1380px;
}

.entire-school-fees-table.yearly-fees-table table {
  min-width: 720px;
}

.daily-collection-report-table th {
  color: #ffffff;
  background: linear-gradient(90deg, #174f81 0%, #177e89 55%, #6d8f20 100%);
}

.bank-book-table th {
  color: #ffffff;
  background: linear-gradient(90deg, #123f66 0%, #177e89 55%, #6d8f20 100%);
}

.entire-school-fees-table th {
  color: #ffffff;
  background: linear-gradient(90deg, #174f81 0%, #177e89 55%, #6d8f20 100%);
}

.daily-collection-report-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.bank-book-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.entire-school-fees-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.daily-collection-report-table tbody tr:nth-child(even) td {
  background: #fbfff6;
}

.bank-book-table tbody tr:nth-child(even) td {
  background: #fbfff6;
}

.entire-school-fees-table tbody tr:nth-child(even) td {
  background: #fbfff6;
}

.daily-collection-report-table tbody tr:hover td {
  background: #fff8df;
}

.bank-book-table tbody tr:hover td {
  background: #fff8df;
}

.entire-school-fees-table tbody tr:hover td {
  background: #fff8df;
}

.daily-collection-report-table td:first-child,
.daily-collection-report-table td:last-child {
  color: #174f81;
  font-weight: 950;
}

.bank-book-table td:first-child,
.bank-book-table td:nth-child(8),
.bank-book-table td:nth-child(9) {
  color: #174f81;
  font-weight: 950;
}

.bank-recon-status {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: #64748b;
  font-size: .76rem;
  font-weight: 950;
}

.bank-recon-reference {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 250px;
  line-height: 1.25;
}

.bank-recon-reference strong {
  display: block;
  color: #123f66;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-recon-reference span {
  display: block;
  max-height: 36px;
  overflow: auto;
  color: #475569;
  font-size: .74rem;
}

.bank-recon-reference details {
  max-width: 100%;
}

.bank-recon-reference summary {
  cursor: pointer;
  color: #177e89;
  font-size: .72rem;
  font-weight: 900;
}

.bank-recon-reference small {
  display: block;
  max-height: 76px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d8e6f2;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: .72rem;
  white-space: normal;
  word-break: break-word;
}

.bank-recon-matched .bank-recon-status,
.bank-recon-confirmed .bank-recon-status {
  background: #167b45;
}

.bank-recon-review .bank-recon-status,
.bank-recon-need-review .bank-recon-status {
  background: #a16207;
}

.bank-recon-unmatched .bank-recon-status,
.bank-recon-extra-bank-credit .bank-recon-status,
.bank-recon-not-found-in-bank .bank-recon-status {
  background: #b42318;
}

.bank-recon-matched td,
.bank-recon-confirmed td {
  background: #f1fbf4 !important;
}

.bank-recon-review td,
.bank-recon-need-review td {
  background: #fff8e6 !important;
}

.bank-recon-unmatched td,
.bank-recon-extra-bank-credit td,
.bank-recon-not-found-in-bank td {
  background: #fff1f1 !important;
}

.daily-collection-date-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b7d6ef;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf5ff 100%);
  color: #174f81;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(31, 50, 72, .08);
}

.daily-collection-date-action:hover {
  border-color: #177e89;
  background: linear-gradient(135deg, #fff8df 0%, #e9fbff 100%);
  color: #123f66;
}

.daily-collection-detail-card {
  border: 1px solid #bfd8f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #fff8e8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 12px 24px rgba(31, 50, 72, .08);
  overflow: hidden;
}

.daily-collection-open-row td {
  background: #fff8df !important;
}

.daily-collection-dropdown-row td {
  padding: 0 !important;
  background: #f7fbff !important;
}

.daily-collection-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #d8e7f4;
  background: linear-gradient(90deg, #174f81 0%, #177e89 58%, #6d8f20 100%);
  color: #fff;
}

.daily-collection-detail-head strong,
.daily-collection-detail-head span,
.daily-collection-detail-head em {
  color: #fff;
}

.daily-collection-detail-head strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
}

.daily-collection-detail-head span {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 800;
}

.daily-collection-detail-head em {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 950;
}

.daily-collection-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
}

.daily-collection-detail-summary article,
.daily-collection-detail-remarks {
  border: 1px solid #d8e7f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eff8ff 65%, #fff7e8 100%);
  padding: 12px;
}

.daily-collection-detail-summary span,
.daily-collection-detail-remarks span {
  display: block;
  color: #50657b;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-collection-detail-summary strong {
  display: block;
  margin-top: 4px;
  color: #173761;
  font-size: 1.05rem;
  font-weight: 950;
}

.daily-collection-detail-table {
  margin: 0 14px 14px;
  border-radius: 8px;
  max-height: 360px;
  overflow: auto;
}

.daily-collection-detail-table table {
  min-width: 920px;
}

.daily-collection-detail-table th {
  color: #fff;
  background: linear-gradient(90deg, #174f81 0%, #177e89 56%, #6d8f20 100%);
}

.daily-collection-detail-table td {
  background: #fff;
}

.daily-collection-detail-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.daily-collection-detail-remarks {
  margin: 0 14px 14px;
}

.daily-collection-detail-remarks p {
  margin: 5px 0 0;
  color: #173761;
  font-weight: 800;
}

.entire-school-fees-table td:first-child,
.entire-school-fees-table td:nth-child(9),
.entire-school-fees-table td:nth-child(10),
.entire-school-fees-table td:nth-child(11),
.entire-school-fees-table td:last-child {
  color: #174f81;
  font-weight: 950;
}

.entire-school-fees-table.yearly-fees-table td:nth-child(3),
.entire-school-fees-table.yearly-fees-table td:nth-child(4),
.entire-school-fees-table.yearly-fees-table td:last-child {
  color: #174f81;
  font-weight: 950;
}

.entire-school-fees-table td span {
  display: block;
  color: #5a7085;
  font-size: .72rem;
  font-weight: 900;
}

.entire-school-fees-table td strong {
  display: block;
  margin-top: 3px;
}

.class-section-setup-layout {
  display: grid;
  gap: 16px;
}

.class-section-options-panel {
  margin-bottom: 14px;
  border-color: #d7e4f4;
}

.class-section-option-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-section-setup-panel[hidden] {
  display: none;
}

.class-section-setup-panel {
  border-color: #d7e4f4;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.class-section-setup-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d7e6f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fbff 0%, #f8fff1 100%);
}

.class-section-setup-form label {
  display: grid;
  gap: 6px;
  color: #314154;
  font-size: .78rem;
  font-weight: 950;
}

.class-section-setup-form input {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.class-section-setup-form select {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.subject-assign-form {
  grid-template-columns: minmax(170px, 220px) 1fr auto;
  align-items: stretch;
}

.subject-assign-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .75);
}

.class-section-setup-form .subject-assign-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d9e7f3;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
  color: #173761;
  font-size: .8rem;
  font-weight: 950;
}

.class-section-setup-form .subject-assign-choice input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #0f766e;
}

.subject-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.subject-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #115e44;
  font-size: .72rem;
  font-weight: 950;
}

.class-section-setup-table th,
.class-section-setup-table td {
  padding: 10px 9px;
}

.class-timetable-layout {
  display: grid;
  gap: 16px;
}

.class-timetable-panel {
  border-color: #bfd8f1;
  background: linear-gradient(180deg, #ffffff 0, #f2f8ff 52%, #fbfff5 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.class-timetable-builder {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 50%, #f4fff1 100%);
}

.class-timetable-builder h3 {
  margin: 4px 0 0;
  padding: 11px 13px;
  border-left: 5px solid #177e89;
  border-radius: 7px;
  background: linear-gradient(90deg, #e9f8ff 0%, #f8fff2 100%);
  color: #173761;
  font-size: 1.08rem;
  font-weight: 950;
}

.timetable-selector-row,
.timetable-quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.timetable-selector-row {
  grid-template-columns: repeat(2, minmax(180px, 280px));
  padding: 12px;
  border: 1px solid #d2e5f6;
  border-radius: 8px;
  background: #ffffff;
}

.timetable-quick-row {
  padding: 14px;
  border: 1px solid #d9e7c9;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff9ea 0%, #f1fbff 100%);
}

.timetable-interval-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(170px, 220px) auto 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid #efd6a5;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4dc 0%, #fffdf6 55%, #edf8ff 100%);
}

.timetable-interval-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px dashed #d2b36b;
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
  color: #73510c;
  font-size: .82rem;
  font-weight: 950;
}

.timetable-interval-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0c7;
  color: #6b4300;
}

.timetable-interval-list button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.timetable-interval-status {
  width: 100%;
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 900;
}

.timetable-interval-status.ok {
  background: #e5f8ee;
  color: #106342;
}

.timetable-interval-status.error {
  background: #ffe7ea;
  color: #a32138;
}

.class-timetable-builder label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #24384e;
  font-size: .86rem;
  font-weight: 950;
}

.class-timetable-builder input,
.class-timetable-builder select {
  min-height: 38px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #b9d2ea;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
}

.class-timetable-builder input:focus,
.class-timetable-builder select:focus {
  outline: 3px solid rgba(23, 126, 137, .16);
  border-color: #177e89;
}

.timetable-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #ffffff;
}

.timetable-day-tabs button {
  min-height: 42px;
  border: 1px solid #d6e3ee;
  border-bottom: 3px solid transparent;
  border-radius: 7px;
  background: #f8fbff;
  color: #314154;
  padding: 9px 16px;
  font-weight: 950;
  cursor: pointer;
}

.timetable-day-tabs button.active {
  border-color: #174f81;
  color: #ffffff;
  background: linear-gradient(135deg, #174f81 0%, #177e89 100%);
  box-shadow: 0 10px 24px rgba(23, 79, 129, .18);
}

.timetable-builder-head,
.timetable-builder-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(190px, 1.35fr) minmax(112px, .8fr) minmax(112px, .8fr) minmax(105px, .7fr) 54px;
  gap: 9px;
  align-items: center;
}

.timetable-builder-head {
  color: #ffffff;
  font-size: .82rem;
  font-weight: 950;
  padding: 10px 11px;
  border-radius: 8px;
  background: linear-gradient(90deg, #174f81 0%, #177e89 48%, #8f6a13 100%);
}

.timetable-builder-rows {
  display: grid;
  gap: 9px;
}

.timetable-builder-row {
  padding: 9px;
  border: 1px solid #cfe0f0;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 42%, #fffaf0 100%);
  box-shadow: 0 10px 24px rgba(31, 50, 72, .06);
}

.timetable-builder-row:nth-child(even) {
  background: linear-gradient(90deg, #fbfff7 0%, #ffffff 45%, #f2f8ff 100%);
}

.timetable-builder-row .icon-action[disabled] {
  opacity: .45;
  pointer-events: none;
}

.timetable-builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.timetable-builder-saved {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.timetable-builder-saved-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.timetable-builder-saved-head h3 {
  margin: 0 0 4px;
  font-size: .9rem;
}

.timetable-saved-day-filter {
  display: grid;
  gap: 5px;
  min-width: 155px;
  color: #314154;
  font-size: .78rem;
  font-weight: 950;
}

.timetable-saved-day-filter select {
  min-height: 34px;
  border: 1px solid #bfd4e8;
  border-radius: 7px;
  background: #ffffff;
  color: #173761;
  padding: 7px 9px;
  font: inherit;
  font-weight: 900;
}

.timetable-builder-saved-list {
  display: grid;
  gap: 8px;
}

.timetable-builder-saved-row {
  display: grid;
  grid-template-columns: .85fr .7fr 1.1fr 1.1fr .8fr 72px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #f8fbff;
  font-size: .78rem;
  font-weight: 850;
}

.timetable-builder-saved-row.header {
  background: #eef5ff;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timetable-builder-saved-row .inline-actions {
  justify-content: flex-end;
}

.timetable-overview-panel {
  border-color: #d8e7d2;
}

.teacher-timetable-layout {
  display: grid;
  gap: 16px;
}

.teacher-timetable-panel {
  border-color: #bfd8f1;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 48%, #fff9ec 100%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.teacher-timetable-filter {
  display: grid;
  grid-template-columns: minmax(240px, 420px);
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 58%, #fff4d8 100%);
}

.teacher-timetable-filter label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .84rem;
  font-weight: 950;
}

.teacher-timetable-filter select {
  min-height: 42px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 9px 11px;
  font: inherit;
  font-weight: 850;
}

.teacher-timetable-board {
  margin-top: 14px;
}

.teacher-period-card {
  border-left: 4px solid #177e89;
}

.teacher-timetable-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
}

.class-teacher-layout {
  display: grid;
  gap: 16px;
}

.class-teacher-panel {
  border-color: #c6ddf7;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,248,255,.96)),
    radial-gradient(circle at 0 0, rgba(36,107,254,.14), transparent 36%);
  box-shadow: 0 18px 42px rgba(30, 64, 104, .08);
}

.class-teacher-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) minmax(240px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #cfe1f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 54%, #fff6dc 100%);
}

.class-teacher-form label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .82rem;
  font-weight: 950;
}

.class-teacher-form select {
  min-height: 42px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 9px 11px;
  font: inherit;
  font-weight: 850;
}

.class-teacher-list-panel {
  border-color: #d8e7d2;
  background: linear-gradient(135deg, #ffffff 0%, #f7fff9 54%, #f7fbff 100%);
}

.class-teacher-table table {
  min-width: 760px;
}

.class-teacher-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ff;
  color: #123456;
  font-size: .78rem;
  font-weight: 950;
}

.class-teacher-chip.section {
  background: #fff4d8;
  color: #6b4a00;
}

@media (max-width: 980px) {
  .class-teacher-form {
    grid-template-columns: 1fr;
  }
}

.settings-access-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.school-management-layout .user-access-panel {
  border-top: 4px solid #0f766e;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 46%);
}

.school-management-layout .role-permission-panel {
  border-top: 4px solid #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 45%);
}

.school-management-table-wrap table th {
  background: #0f172a;
  color: #f8fafc;
}

.school-management-table-wrap table td:first-child strong {
  color: #0f766e;
  letter-spacing: .02em;
}

.user-access-panel,
.student-user-panel,
.role-permission-panel {
  background: linear-gradient(135deg, #ffffff 0%, #eef8ff 54%, #fff5d8 100%);
  border-color: #c8def0;
  box-shadow: 0 16px 36px rgba(31, 50, 72, .1);
}

.user-access-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.user-access-form label,
.permission-role-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
}

.user-access-form input,
.user-access-form select,
.permission-role-bar select {
  min-height: 38px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.user-access-form button {
  align-self: end;
  min-height: 38px;
}

.student-user-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  padding: 12px;
  border: 1px solid #d3e5f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
}

.student-user-form > label {
  min-width: 0;
}

.student-user-form > label:first-child {
  grid-column: span 2;
}

.student-user-form > label:nth-child(2) {
  grid-column: span 1;
}

.student-user-form input,
.student-user-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.student-user-form > button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 180px;
}

.student-app-permissions {
  grid-column: 1 / -1;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #f7fbff;
  max-width: 100%;
}

.student-app-permissions summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #174f81;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 950;
  list-style: none;
}

.student-app-permissions summary::-webkit-details-marker {
  display: none;
}

.student-app-permissions summary::after {
  content: "▾";
  margin-left: auto;
  color: #1f4d8f;
  transition: transform .16s ease;
}

.student-app-permissions[open] summary::after {
  transform: rotate(180deg);
}

.student-app-permission-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0 9px 9px;
  border-top: 1px solid #d7e5f4;
}

.student-app-permission-list label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #174f81;
  font-size: .78rem;
  font-weight: 900;
}

.student-app-permission-list input {
  width: 14px;
  height: 14px;
  accent-color: #0f766e;
}

.student-app-global-panel {
  border-top: 4px solid #2563eb;
}

.student-app-global-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.student-app-global-form .switch-line {
  margin: 0;
}

.student-app-global-form button {
  min-height: 42px;
  white-space: nowrap;
}

.student-user-panel {
  overflow: hidden;
}

.student-user-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.student-user-panel table {
  min-width: 860px;
}

.mobile-activity-panel {
  background: linear-gradient(135deg, #ffffff 0%, #eefdf8 52%, #fff3d4 100%);
}

.mobile-activity-table table {
  min-width: 920px;
}

.mobile-activity-table td:nth-child(5),
.mobile-activity-table td:nth-child(6),
.mobile-activity-table td:nth-child(7) {
  white-space: nowrap;
  font-weight: 850;
}

.id-card-layout {
  display: grid;
  gap: 16px;
}

.id-card-control-panel {
  background: linear-gradient(135deg, #ffffff 0%, #edf8ff 58%, #fff4d7 100%);
  border-color: #c8def0;
}

.id-card-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.id-card-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
}

.id-card-tools select,
.id-card-tools input {
  min-height: 40px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.id-card-preview-shell {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 22px;
  border: 1px solid #d5e3f2;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(23, 126, 137, .09), rgba(255, 255, 255, .82)),
    repeating-linear-gradient(45deg, rgba(29, 78, 216, .04) 0 10px, rgba(15, 118, 110, .04) 10px 20px);
}

.student-id-card-empty {
  color: var(--muted);
  font-weight: 900;
}

.student-id-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--student-card-width-mm, 86mm), 100%);
  min-width: min(520px, 100%);
  aspect-ratio: var(--student-card-ratio, 86 / 54);
  overflow: hidden;
  border: 1px solid #b7cce5;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .08), transparent 38%),
    #fff;
  color: #10233f;
  box-shadow: 0 22px 46px rgba(20, 45, 78, .18);
}

.student-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("./assets/anps-logo.png") center 58% / 42% auto no-repeat;
  opacity: .075;
}

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

.teacher-id-card {
  width: min(390px, 100%);
  min-width: 0;
  aspect-ratio: 56 / 88;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, .08), transparent 42%),
    #fff;
}

.id-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 11px 14px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
  text-align: center;
}

.teacher-id-card-top {
  background: linear-gradient(135deg, #7c3aed, #0f766e);
}

.teacher-id-card .id-card-photo {
  background: #f2edff;
  color: #6d28d9;
}

.teacher-id-card .id-card-footer {
  background: #f2edff;
  color: #5b21b6;
}

.id-card-top img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
}

.id-card-top strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.id-card-top small {
  display: block;
  margin-top: 2px;
  font-weight: 850;
  opacity: .9;
}

.id-card-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 86px;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px 8px;
}

.id-card-photo {
  display: grid;
  place-items: center;
  width: 116px;
  height: 136px;
  overflow: hidden;
  border: 1px solid #c7ddf2;
  border-radius: 11px;
  background: #eaf3ff;
  color: #1d4ed8;
  font-size: 1.8rem;
  font-weight: 950;
}

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

.id-card-info {
  min-width: 0;
  overflow: hidden;
}

.id-card-info h3 {
  margin: 0 0 8px;
  color: #10233f;
  font-size: 1.18rem;
  line-height: 1.15;
}

.id-card-info p {
  display: grid;
  gap: 1px;
  margin: 4px 0;
}

.id-card-info span,
.id-card-address span {
  color: #5b6b82;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.id-card-info strong,
.id-card-address strong {
  font-size: .76rem;
  color: #10233f;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.id-card-code {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px dashed #9bb6d3;
  border-radius: 12px;
  background: rgba(246, 248, 251, .9);
  text-align: center;
}

.id-card-barcode {
  width: 62px;
  height: 62px;
  border: 4px solid #10233f;
  border-radius: 9px;
  background:
    linear-gradient(90deg, #10233f 0 5px, transparent 5px 9px, #10233f 9px 13px, transparent 13px 18px, #10233f 18px 22px, transparent 22px 30px, #10233f 30px 35px, transparent 35px 40px, #10233f 40px 44px, transparent 44px 50px, #10233f 50px 55px, transparent 55px),
    linear-gradient(#fff, #fff);
  box-shadow: inset 0 0 0 5px #fff;
}

.id-card-code span {
  color: #5b6b82;
  font-size: .56rem;
  font-weight: 950;
  text-transform: uppercase;
}

.id-card-code strong {
  color: #10233f;
  font-size: .62rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.id-card-address {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  margin: 0 12px 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #f6f8fb;
}

.id-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 14px;
  background: #fff7db;
  color: #7c4a03;
  font-size: .68rem;
  font-weight: 950;
}

.teacher-id-card .id-card-body {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 12px 8px;
}

.teacher-id-card .id-card-photo {
  width: 104px;
  height: 124px;
}

.teacher-id-card .id-card-code {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  min-height: 72px;
  text-align: left;
}

.teacher-id-card .id-card-barcode {
  width: 70px;
  height: 42px;
  border-width: 3px;
}

.syllabus-layout {
  display: grid;
  gap: 16px;
}

.syllabus-entry-panel {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, .09), rgba(255, 255, 255, .94) 48%, rgba(15, 118, 110, .1)),
    #fff;
  border-color: #c8def0;
}

.syllabus-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
}

.syllabus-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
}

.syllabus-form input,
.syllabus-form select,
.syllabus-form textarea {
  width: 100%;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-weight: 850;
}

.syllabus-form input,
.syllabus-form select {
  min-height: 40px;
}

.syllabus-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.35;
}

.syllabus-full {
  grid-column: 1 / -1;
}

.syllabus-form .primary-action {
  justify-self: start;
}

.front-office-layout {
  display: grid;
  gap: 16px;
}

.front-office-panel,
.complaint-desk-panel {
  background:
    linear-gradient(135deg, rgba(23, 104, 172, .1), rgba(255, 255, 255, .94) 45%, rgba(255, 247, 219, .7)),
    #fff;
  border-color: #c8def0;
}

.complaint-panel {
  background:
    linear-gradient(135deg, rgba(138, 18, 32, .08), rgba(255, 255, 255, .94) 48%, rgba(15, 118, 110, .08)),
    #fff;
}

.front-office-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.front-office-form label,
.complaint-filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
}

.front-office-form input,
.front-office-form select,
.front-office-form textarea,
.complaint-filter-row select {
  width: 100%;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-weight: 850;
}

.front-office-form input,
.front-office-form select,
.complaint-filter-row select {
  min-height: 40px;
}

.front-office-form textarea {
  min-height: 88px;
  resize: vertical;
}

.front-office-full {
  grid-column: 1 / -1;
}

.front-office-form .primary-action {
  justify-self: start;
}

.complaint-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 10px;
  margin-bottom: 12px;
}

.complaint-preview-box {
  width: 100%;
  min-width: 230px;
  border: 1px solid #b9d8f1;
  border-left: 5px solid #1d7ed0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2f8ff 0%, #ffffff 58%, #fff7df 100%);
  color: #17324d;
  padding: 9px 10px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(29, 126, 208, .12);
  cursor: pointer;
}

.complaint-preview-box:hover {
  border-color: #1d7ed0;
  box-shadow: 0 12px 26px rgba(29, 126, 208, .18);
}

.complaint-preview-box strong,
.complaint-preview-box span {
  display: block;
}

.complaint-preview-box strong {
  font-size: .82rem;
  margin-bottom: 3px;
}

.complaint-preview-box span {
  color: #475569;
  font-size: .76rem;
  line-height: 1.35;
}

.complaint-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 950;
}

.complaint-status-pill.open { background: #fff2d6; color: #8b5207; }
.complaint-status-pill.review { background: #ffe5eb; color: #a42e45; }
.complaint-status-pill.progress { background: #e3efff; color: #2455bd; }
.complaint-status-pill.done { background: #e4f4ee; color: #116b4e; }
.complaint-status-pill.cancelled { background: #ffe5eb; color: #a42e45; }

.holiday-layout,
.annual-calendar-layout {
  display: grid;
  gap: 16px;
}

.holiday-entry-panel,
.annual-calendar-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .1), rgba(255, 255, 255, .92) 48%, rgba(255, 247, 219, .75)),
    #fff;
  border-color: #c8def0;
}

.holiday-form {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) 180px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.holiday-form label,
.annual-calendar-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
}

.holiday-form input,
.holiday-form select,
.annual-calendar-filter select {
  min-height: 40px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.annual-calendar-filter {
  min-width: 180px;
}

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

.annual-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-week-head {
  padding: 9px 8px;
  border-radius: 8px;
  background: #10233f;
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  text-align: center;
}

.calendar-day {
  min-height: 104px;
  padding: 9px;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(16, 35, 63, .06);
}

.calendar-day.blank {
  background: rgba(234, 242, 251, .45);
  box-shadow: none;
}

.calendar-day.sunday {
  background: #fff7ed;
  border-color: #ffd7a8;
}

.calendar-day.holiday {
  background: linear-gradient(135deg, #fff1f2, #fff7db);
  border-color: #f5b2b8;
}

.calendar-day strong {
  display: block;
  color: #10233f;
  font-size: 1rem;
  font-weight: 950;
}

.calendar-day > span {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: .64rem;
  font-weight: 900;
}

.calendar-day em {
  display: block;
  margin-top: 8px;
  color: #8a1220;
  font-style: normal;
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.15;
}

.calendar-day small {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #7c4a03;
  font-size: .56rem;
  font-weight: 950;
}

.security-dashboard {
  display: grid;
  gap: 16px;
}

.security-hero-panel,
.security-actions-panel,
.security-panels-grid .panel {
  border-color: #c9d9ee;
  background: linear-gradient(135deg, #ffffff 0%, #eef8ff 52%, #fff7df 100%);
  box-shadow: 0 16px 34px rgba(31, 50, 72, .1);
}

.security-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.security-status-grid article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #c8d9ee;
  border-radius: 9px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.security-status-grid article small {
  color: #52647a;
  font-size: .74rem;
  font-weight: 850;
}

.security-status-grid .safety-light-card {
  position: relative;
  overflow: hidden;
  border-width: 2px;
}

.security-status-grid .safety-light-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .7), 0 0 18px currentColor;
}

.security-status-grid .safety-blue {
  border-color: #7dd3fc;
  background: linear-gradient(135deg, #e0f7ff 0%, #ffffff 100%);
  color: #0369a1;
}

.security-status-grid .safety-yellow {
  border-color: #facc15;
  background: linear-gradient(135deg, #fff7d6 0%, #ffffff 100%);
  color: #a16207;
}

.security-status-grid .safety-red {
  border-color: #fb7185;
  background: linear-gradient(135deg, #ffe4e6 0%, #ffffff 100%);
  color: #be123c;
}

.security-status-grid span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.security-status-grid strong {
  color: #12345d;
  font-size: 1.05rem;
  line-height: 1.15;
}

.security-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
}

.security-action-grid button {
  min-height: 38px;
}

.danger-lite {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

.security-panels-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
  gap: 16px;
}

.security-output {
  min-height: 240px;
  padding: 12px;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #16345b;
  font-weight: 850;
  line-height: 1.5;
  overflow: auto;
}

.security-output ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.smart-engine-page {
  gap: 18px;
}

.smart-engine-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 128px;
  border: 0;
  background: linear-gradient(135deg, #10213d 0%, #145064 56%, #176b57 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 33, 61, .2);
}

.smart-engine-hero .eyebrow,
.smart-engine-hero small {
  color: rgba(255, 255, 255, .78);
}

.smart-engine-hero h2 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

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

.smart-engine-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #e9fbff;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.smart-engine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.smart-engine-panel,
.smart-engine-side-panel {
  border-color: #cbdbea;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(31, 50, 72, .08);
}

.smart-engine-output {
  min-height: 420px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.smart-engine-side-panel h3 {
  margin: 2px 0 12px;
  color: #10213d;
  font-size: 1.05rem;
}

.smart-engine-side-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smart-engine-side-panel li {
  padding: 10px 11px;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: .82rem;
  font-weight: 850;
}

.smart-engine-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #cbdbea;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.smart-engine-result-header.warning {
  border-color: #f6d98f;
  background: linear-gradient(135deg, #fff7df, #ffffff);
}

.smart-engine-result-header.danger {
  border-color: #fecdd3;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.smart-engine-result-header span,
.smart-engine-score span,
.smart-engine-metrics span {
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.smart-engine-result-header strong {
  display: block;
  margin: 3px 0;
  color: #10213d;
  font-size: 1.3rem;
  line-height: 1.1;
}

.smart-engine-result-header small {
  color: #64748b;
  font-size: .76rem;
}

.smart-engine-score {
  display: grid;
  place-items: center;
  min-width: 106px;
  min-height: 78px;
  border-radius: 10px;
  background: #10213d;
  color: #ffffff;
}

.smart-engine-score strong,
.smart-engine-score span {
  color: #ffffff;
}

.smart-engine-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.smart-engine-metrics.setup {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.smart-engine-metrics article {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: #ffffff;
}

.smart-engine-metrics strong {
  color: #0f3b67;
  font-size: 1.05rem;
}

.smart-engine-check-note,
.smart-engine-empty {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
}

.smart-engine-check-note b,
.smart-engine-empty strong {
  color: #172033;
}

.smart-engine-check-note span,
.smart-engine-empty span {
  color: #52647a;
  font-size: .8rem;
}

.smart-engine-issue-group {
  margin-top: 12px;
  border: 1px solid #d9e6f2;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.smart-engine-issue-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #e2eaf4;
  background: #f8fbff;
}

.smart-engine-issue-group header strong {
  color: #12345d;
}

.smart-engine-issue-group header span,
.smart-engine-issue-group small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
}

.smart-engine-issues {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.smart-engine-issues article {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-left: 4px solid #94a3b8;
  border-radius: 7px;
  background: #f8fafc;
}

.smart-engine-issues article.danger {
  border-left-color: #dc2626;
  background: #fff1f2;
}

.smart-engine-issues article.warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.smart-engine-issues article.info {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.smart-engine-issues b {
  color: #172033;
}

.smart-engine-issues span {
  color: #64748b;
  font-size: .78rem;
}

.system-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.system-health-summary article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d4e2f0;
  border-radius: 8px;
  background: #ffffff;
}

.system-health-summary span {
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.system-health-summary strong {
  color: #0f3b67;
  font-size: 1rem;
}

.system-health-group {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #fff;
}

.system-health-group > strong {
  display: block;
  margin-bottom: 6px;
  color: #12345d;
}

.system-health-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-health-group li {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
}

.system-health-group li.danger {
  border-left-color: #dc2626;
  background: #fff1f2;
}

.system-health-group li.warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.system-health-group li.info {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.system-health-group li b {
  color: #172033;
}

.system-health-group li span {
  color: #64748b;
  font-size: .76rem;
}

.security-json-output {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.45;
}

.duplicate-receipt-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.duplicate-receipt-summary article {
  border: 1px solid #d7e5f2;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #f3f9ff 100%);
  box-shadow: 0 10px 20px rgba(31, 50, 72, .07);
}

.duplicate-receipt-summary article.wide {
  grid-column: 1 / -1;
}

.duplicate-receipt-summary span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duplicate-receipt-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.05rem;
}

.duplicate-receipt-table-wrap table {
  min-width: 760px;
}

.duplicate-chip {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff4d8;
  color: #6d4a00;
  font-weight: 900;
  font-size: .78rem;
}

.alert-solver-input-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.alert-solver-input {
  min-height: 150px;
  resize: vertical;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.45;
  text-transform: none;
}

.alert-solver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.alert-solver-output {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 12px;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #16345b;
  font-weight: 850;
}

.alert-solver-card {
  display: grid;
  gap: 9px;
  border: 1px solid #d7e5f2;
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 50, 72, .07);
}

.alert-solver-card span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.alert-solver-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.alert-solver-card p {
  margin: 0;
  color: #52647a;
}

.alert-solver-card code {
  display: inline-flex;
  margin: 2px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf7ff;
  color: #075985;
  font-weight: 900;
}

.alert-solver-card ol {
  margin: 0;
  padding-left: 20px;
}

.alert-solver-card li {
  margin: 4px 0;
}

.alert-solver-card.solver-danger {
  border-left-color: #fb7185;
  background: linear-gradient(135deg, #fff 0%, #fff1f2 100%);
}

.alert-solver-card.solver-warning {
  border-left-color: #facc15;
  background: linear-gradient(135deg, #fff 0%, #fff9db 100%);
}

.role-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.role-health-summary article {
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #f4fbff 100%);
  box-shadow: 0 10px 20px rgba(31, 50, 72, .07);
}

.role-health-summary span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-health-summary strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.role-health-summary small,
.role-health-table-wrap small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.role-health-table-wrap table {
  min-width: 820px;
}

.role-health-issues {
  display: grid;
  gap: 10px;
  min-height: 170px;
  background: #f8fbff;
}

.role-health-issue {
  border: 1px solid #d7e5f2;
  border-left-width: 5px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.role-health-issue span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-health-issue strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.role-health-issue p {
  margin: 5px 0 0;
  color: #52647a;
  font-weight: 750;
}

.role-health-critical {
  border-left-color: #fb7185;
  background: linear-gradient(135deg, #fff 0%, #fff1f2 100%);
}

.role-health-warning {
  border-left-color: #facc15;
  background: linear-gradient(135deg, #fff 0%, #fff9db 100%);
}

.role-health-info {
  border-left-color: #60a5fa;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.permission-role-bar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(96px, 120px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.permission-all-toggle {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff8dc;
  color: #7c4a03;
  align-content: center;
}

.permission-all-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.permission-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.permission-table th,
.permission-table td {
  text-align: center;
  vertical-align: middle;
}

.permission-table th:first-child,
.permission-table td:first-child {
  text-align: left;
  min-width: 190px;
}

.permission-group-row td {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.permission-group-row td:last-child {
  text-align: right;
}

.permission-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
}

.permission-group-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #facc15;
}

.permission-check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 7px;
  background: #eef6ff;
  border: 1px solid #c7ddf2;
}

.permission-check input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.timetable-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timetable-filter select {
  min-height: 34px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  padding: 7px 10px;
  font-weight: 850;
}

.timetable-criteria {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #fff9eb 100%);
}

.timetable-criteria h3 {
  margin: 0;
  color: #26394f;
  font-size: 1rem;
}

.timetable-criteria-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.timetable-criteria-grid label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .84rem;
  font-weight: 950;
}

.timetable-criteria-grid select {
  min-height: 42px;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #fff;
  color: #123456;
  padding: 9px 11px;
  font: inherit;
  font-weight: 850;
}

.class-timetable-week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(155px, 1fr));
  gap: 8px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 6px;
}

.timetable-day-column {
  min-width: 155px;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 7px;
}

.timetable-day-column h3 {
  margin: 0 0 7px;
  padding: 8px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #174f81 0%, #177e89 100%);
  color: #ffffff;
  font-size: .86rem;
  font-weight: 950;
  text-align: center;
}

.timetable-day-cards {
  display: grid;
  gap: 7px;
  grid-auto-rows: minmax(96px, auto);
}

.timetable-period-card,
.timetable-empty-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 96px;
  align-content: start;
  padding: 9px 31px 9px 9px;
  border: 1px solid #cfdff0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 58%, #fbfff3 100%);
  box-shadow: 0 8px 16px rgba(31, 50, 72, .07);
  overflow: hidden;
}

.timetable-empty-card {
  min-height: 96px;
  align-content: center;
  justify-items: center;
  border-color: #eadbd2;
  background: linear-gradient(180deg, #fffaf5 0%, #fff5f5 100%);
  color: #9f441d;
  font-weight: 950;
  font-size: .78rem;
}

.timetable-card-line {
  color: #23613f;
  font-size: .77rem;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timetable-card-line.subject {
  color: #164e87;
  font-size: .8rem;
  font-weight: 950;
}

.timetable-card-line.time,
.timetable-card-line.teacher,
.timetable-card-line.room {
  color: #315944;
}

.timetable-card-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  background: #b4232d;
  color: #fff;
}

.class-timetable-table table {
  min-width: 1120px;
}

.class-timetable-table th,
.class-timetable-table td {
  padding: 10px 8px;
}

.timetable-type {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 950;
}

.timetable-type.lesson {
  background: #eaf3ff;
  color: #1f4d8f;
}

.timetable-type.break {
  background: #fff3d8;
  color: #8b5207;
}

.class-section-detail-card {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 110px);
}

.class-section-detail-card .receipt-preview-hero {
  flex-shrink: 0;
}

.class-section-detail-table {
  max-height: calc(100vh - 255px);
  overflow: auto;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
}

.class-section-detail-table table {
  min-width: 920px;
}

.class-section-detail-table th,
.class-section-detail-table td {
  padding: 9px 8px;
}

.staff-attendance-table table {
  min-width: 980px;
}

.staff-attendance-table th,
.staff-attendance-table td {
  padding: 10px 9px;
}

.biometric-ready-panel {
  border-color: #d8e7d2;
  background: linear-gradient(180deg, #ffffff 0, #f8fff4 100%);
}

.staff-table-profile {
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.staff-details-table td:first-child,
.staff-details-table th:first-child {
  white-space: normal;
}

.student-filter-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.student-filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: .86rem;
  font-weight: 800;
}

.transport-student-filter {
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid #d5e7f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf8ff 0%, #ffffff 58%, #fff6dc 100%);
}

.transport-student-filter select {
  border-color: #bdd8ee;
  background: #ffffff;
  color: #173761;
  font-weight: 900;
}

.student-filter-bar select {
  min-width: 170px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.staff-table-photo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #c8d9ee;
  border-radius: 7px;
  background: #edf4ff;
  color: #2455bd;
  font-size: .72rem;
  font-weight: 950;
}

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

#dueFeesSearchRows .due-student-row td {
  border-bottom-color: rgba(112, 128, 144, .22);
}

#dueFeesSearchRows .due-student-row td:first-child {
  border-left: 5px solid transparent;
}

#dueFeesSearchRows .due-student-separator td {
  border-top: 4px solid #d0d8e4;
}

#dueFeesSearchRows .due-student-tone-0 td {
  background: #f2f8ff;
}

#dueFeesSearchRows .due-student-tone-0 td:first-child {
  border-left-color: #2563c9;
}

#dueFeesSearchRows .due-student-tone-1 td {
  background: #f1faf5;
}

#dueFeesSearchRows .due-student-tone-1 td:first-child {
  border-left-color: #18735f;
}

#dueFeesSearchRows .due-student-tone-2 td {
  background: #fff8e8;
}

#dueFeesSearchRows .due-student-tone-2 td:first-child {
  border-left-color: #a86408;
}

#dueFeesSearchRows .due-student-tone-3 td {
  background: #fff4f7;
}

#dueFeesSearchRows .due-student-tone-3 td:first-child {
  border-left-color: #b7354b;
}

#dueFeesSearchRows .due-student-row:hover td {
  filter: brightness(.985);
}

.repeat-student-cell {
  color: #8a98aa;
  font-size: .72rem;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: .78rem;
  font-weight: 900;
}

.badge.green { background: #e3f5ee; color: #116b4e; }
.badge.amber { background: #fff2d6; color: #8b5207; }
.badge.red { background: #ffe5eb; color: #a42e45; }
.badge.blue { background: #e7efff; color: #2455bd; }

.fee-period {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 180px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7f1;
  color: #176348;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

.period-details {
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: min(660px, calc(100vw - 42px));
}

#ledgerFeeRows td {
  vertical-align: top;
}

#ledgerFeeRows td:nth-child(n + 3) {
  padding-top: 14px;
}

#ledgerFeeRows td:nth-child(2) {
  position: relative;
  z-index: 1;
}

.period-details summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

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

.period-details summary .fee-period:after {
  content: "▾";
  margin-left: 7px;
  font-size: .68rem;
}

.period-details[open] summary .fee-period:after {
  content: "▴";
}

.period-breakdown {
  width: min(640px, calc(100vw - 42px));
  padding: 8px;
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 46, 36, .12);
  color: var(--ink);
}

.period-breakdown-head,
.period-breakdown-row {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr 1fr 58px;
  gap: 6px;
  align-items: center;
  padding: 6px 5px;
  font-size: .75rem;
  white-space: nowrap;
}

.month-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.month-collect-action,
.month-preview-action,
.payment-receipt-action,
.payment-edit-action,
.payment-delete-action {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: #176348;
  color: #fff;
  cursor: pointer;
}

.month-collect-action {
  grid-auto-flow: column;
  gap: 4px;
  width: auto;
  min-width: 52px;
  padding: 0 8px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.month-collect-action svg,
.month-preview-action svg,
.payment-receipt-action svg,
.payment-edit-action svg,
.payment-delete-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.month-collect-action svg {
  width: 13px;
  height: 13px;
}

.month-collect-action:hover {
  background: #0f4e38;
}

.month-preview-action,
.payment-receipt-action {
  background: #fff2cf;
  color: #8b5207;
}

.payment-edit-action {
  background: #dbeafe;
  color: #1d4ed8;
}

.payment-delete-action {
  background: #fee2e2;
  color: #b91c1c;
}

.month-preview-action:hover,
.payment-receipt-action:hover {
  background: #ffe3a3;
}

.payment-edit-action:hover {
  background: #bfdbfe;
}

.payment-delete-action:hover {
  background: #fecaca;
}

.period-breakdown-head {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.period-breakdown-row {
  font-weight: 800;
  border-bottom: 1px solid #eef2f5;
}

.period-breakdown-row:last-child {
  border-bottom: 0;
}

.ledger-payment-breakdown {
  width: min(640px, calc(100vw - 42px));
  overflow-x: visible;
}

.ledger-payment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.print-period-payments {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #172033;
  color: #fff;
  cursor: pointer;
}

.print-period-payments svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.print-period-payments:hover {
  background: #24426d;
}

.ledger-payment-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.fee-book-back-action.hidden {
  display: none;
}

#studentTable tr.student-return-highlight td {
  background: #fff7db;
  box-shadow: inset 0 0 0 9999px rgba(251, 191, 36, .12);
}

#studentTable tr.student-return-highlight-pulse td {
  animation: studentReturnPulse 1.4s ease;
}

@keyframes studentReturnPulse {
  0% { box-shadow: inset 0 0 0 9999px rgba(34, 197, 94, .24); }
  100% { box-shadow: inset 0 0 0 9999px rgba(251, 191, 36, .12); }
}

.ledger-payment-select {
  width: 14px;
  height: 14px;
  accent-color: #d92332;
}

.ledger-payment-breakdown .ledger-payment-row {
  grid-template-columns: 22px minmax(76px, .9fr) minmax(96px, 1.1fr) minmax(86px, 1fr) 58px;
  gap: 5px;
  padding: 5px 4px;
  font-size: .74rem;
  min-height: 32px;
  align-items: center;
}

.ledger-payment-breakdown .ledger-payment-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.ledger-payment-breakdown .ledger-payment-row > span:first-child,
.ledger-payment-breakdown .ledger-payment-row > span:last-child {
  justify-content: center;
}

.ledger-payment-breakdown .period-month-row {
  grid-template-columns: minmax(46px, .72fr) minmax(58px, .86fr) minmax(76px, 1fr) minmax(46px, .72fr) minmax(58px, .86fr) minmax(52px, 54px);
  min-width: 0;
}

.paid-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 950;
}

.payment-split-details {
  position: relative;
}

.payment-split-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #cfe3eb;
  border-radius: 7px;
  background: #f5fbff;
  color: #164f75;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.payment-split-details summary::-webkit-details-marker {
  display: none;
}

.payment-split-details summary:after {
  content: "v";
  margin-left: 6px;
  font-size: .68rem;
}

.payment-split-details[open] summary:after {
  content: "^";
}

.payment-split-panel {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + 5px);
  display: grid;
  gap: 5px;
  min-width: 142px;
  padding: 8px;
  border: 1px solid #d6e5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(21, 34, 56, .16);
}

.payment-split-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .76rem;
}

.payment-split-panel span {
  color: var(--muted);
  font-weight: 950;
}

.payment-split-panel strong {
  color: #123456;
}

.period-breakdown-row.paid-month {
  border-color: #c8ead6;
  border-radius: 7px;
  background: #e8f8ef;
  color: #146c43;
}

.period-breakdown-row.paid-month span:first-child {
  font-weight: 950;
}

.period-breakdown-row.partial-month,
.combined-fee-row.partial-fee-row {
  border-color: #f0cf88;
  background: #fff3cf;
  color: #8b5207;
}

.period-breakdown-row.partial-month span:first-child,
.combined-fee-row.partial-fee-row label span {
  font-weight: 950;
}

.period-breakdown-row.partial-month .month-collect-action {
  background: #d88a08;
}

.period-breakdown-row.partial-month .month-collect-action:hover {
  background: #b87305;
}

.period-breakdown-row.paid-month .month-collect-action,
.month-collect-action:disabled {
  background: #b8dcca;
  color: #146c43;
  cursor: not-allowed;
  opacity: .75;
}

.month-collect-action:disabled:hover {
  background: #b8dcca;
}

.fee-date {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #284a9f;
  font-size: .76rem;
  font-weight: 850;
}

.date-details summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

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

.date-details summary .fee-date:after {
  content: "▾";
  margin-left: 7px;
  font-size: .68rem;
}

.date-details[open] summary .fee-date:after {
  content: "▴";
}

.date-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  width: 190px;
  padding: 9px;
  border: 1px solid #d7def5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 57, 119, .12);
}

.date-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .76rem;
  font-weight: 850;
}

.date-breakdown small {
  color: var(--muted);
  font-weight: 850;
}

.fee-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.fee-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.fee-form input, .fee-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.collection-module {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 12px 28px rgba(21, 34, 56, .06);
}

.collection-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.collection-row label {
  color: #314154;
  font-size: .86rem;
  font-weight: 950;
}

.collection-row input,
.collection-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfd8e5;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 850;
  outline: 0;
}

.collection-row input[readonly] {
  background: #eef5f1;
  color: #116b4e;
}

.fee-amount-row input[readonly] {
  border-color: #b8d8c8;
  background: linear-gradient(180deg, #f5fff9, #eaf7ef);
  color: #0f6b46;
  font-size: 1rem;
  font-weight: 950;
}

.fine-payment-row input {
  border-color: #f1cf8d;
  background: #fffaf0;
  color: #8a5400;
}

.split-payment-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.split-payment-box label {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #cfe3eb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f3fbfd);
}

.split-payment-box label:first-child {
  border-color: #b9d9ee;
  background: linear-gradient(180deg, #ffffff, #f0f8ff);
}

.split-payment-box label:last-child {
  border-color: #d6e8c1;
  background: linear-gradient(180deg, #ffffff, #f6fbef);
}

.split-payment-box span {
  color: #375067;
  font-size: .74rem;
  font-weight: 950;
}

.split-payment-box input {
  min-height: 34px;
  border-radius: 6px;
  background: #fff;
}

.split-payment-box select {
  min-height: 34px;
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 850;
}

.bank-account-manager {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d9e5ec;
  border-radius: 12px;
  background: #f8fbfd;
}

.collection-module .primary-action {
  width: min(220px, 100%);
  margin-left: 172px;
  background: #14798b;
}

.hidden-collection-module {
  display: none !important;
}

.collection-history {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(250, 253, 255, .96) 0%, rgba(244, 249, 252, .92) 100%);
  box-shadow: 0 14px 30px rgba(31, 50, 72, .08);
}

.collection-history .panel-head {
  align-items: center;
  margin: -2px -2px 14px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid #dbe7f3;
}

.collection-history .panel-head h2 {
  color: #173761;
}

.collection-history .panel-head .ghost-action {
  border-color: #b8d8ff;
  background: linear-gradient(135deg, #eaf5ff 0%, #ffffff 100%);
  color: #174f81;
  box-shadow: 0 8px 18px rgba(31, 50, 72, .08);
}

.collection-history-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, .9fr)) minmax(150px, .86fr) repeat(2, minmax(160px, 1fr)) repeat(2, minmax(92px, auto));
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4faff 0%, #ffffff 54%, #f8fbef 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 22px rgba(31, 50, 72, .07);
}

.collection-history-filter label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #526982;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.collection-history-filter input,
.collection-history-filter select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #c2d5e9;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.collection-history-filter select {
  cursor: pointer;
}

.collection-history-filter .history-date-field input {
  padding-right: 76px;
  background:
    linear-gradient(90deg, transparent calc(100% - 72px), rgba(232, 242, 252, .95) calc(100% - 72px)),
    #fff;
}

.collection-history-filter .history-date-field {
  position: relative;
}

.collection-history-filter .history-date-field::after {
  content: "Auto M/Y";
  position: absolute;
  right: 9px;
  bottom: 12px;
  color: #5c7084;
  font-size: .62rem;
  font-weight: 950;
  pointer-events: none;
}

.collection-history-filter input:focus,
.collection-history-filter select:focus {
  outline: 3px solid rgba(23, 126, 137, .14);
  border-color: #177e89;
}

.collection-by-filter {
  max-width: none;
}

.collection-admission-filter {
  max-width: none;
}

.collection-receipt-filter {
  max-width: none;
}

.collection-history-filter button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.payment-quick-total {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #bfd8f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8ff 58%, #fff3d4 100%);
  box-shadow: 0 12px 26px rgba(31, 50, 72, .12), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.payment-quick-total div {
  padding: 8px 9px;
  border: 1px solid #d6e4f1;
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
}

.payment-quick-total span {
  display: block;
  color: #50657b;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-quick-total strong {
  display: block;
  margin-top: 3px;
  color: #174f81;
  font-size: .92rem;
  font-weight: 950;
}

.payment-total-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.payment-total-selector input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.payment-total-selector span {
  font-weight: 950;
}

.collection-history .compact-table tbody tr.selected-payment-row td {
  background: #dff7eb;
}

.collection-history .compact-table {
  border: 1px solid #d6e4f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 50, 72, .06);
  overflow-x: auto;
}

.collection-history .compact-table table {
  min-width: 1260px;
  border-collapse: separate;
  border-spacing: 0;
}

.collection-history .compact-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #ffffff;
  background: linear-gradient(90deg, #174f81 0%, #177e89 55%, #6d8f20 100%);
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: .02em;
}

.collection-history .compact-table tbody tr:nth-child(odd) td {
  background: #f4f9ff;
}

.collection-history .compact-table tbody tr:nth-child(even) td {
  background: #fbfff6;
}

.collection-history .compact-table tbody tr:hover td {
  background: #fff6d9;
}

.collection-history .compact-table td:first-child,
.collection-history .compact-table td:nth-child(2),
.collection-history .compact-table td:nth-child(3),
.collection-history .compact-table td:nth-child(8) {
  color: #174f81;
  font-weight: 950;
}

.collection-history .compact-table td:nth-child(11) {
  min-width: 140px;
  max-width: 220px;
  color: #50657b;
  font-size: .78rem;
  font-weight: 850;
  white-space: normal;
}

.collection-history .icon-action.edit {
  background: linear-gradient(135deg, #eaf5ff 0%, #d8f1ff 100%);
  color: #174f81;
  box-shadow: 0 6px 14px rgba(23, 79, 129, .12);
}

.collection-history .icon-action.delete {
  background: linear-gradient(135deg, #fff0f2 0%, #ffe1e8 100%);
  color: #a42e45;
  box-shadow: 0 6px 14px rgba(164, 46, 69, .1);
}

.fee-filter-bar {
  display: grid;
  grid-template-columns: 180px 180px minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.fee-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.fee-filter-bar input,
.fee-filter-bar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

#dueFeesSearch .fee-filter-bar {
  grid-template-columns: minmax(132px, .8fr) minmax(112px, .65fr) minmax(128px, .75fr) 108px minmax(230px, 1.4fr);
  align-items: end;
}

#dueFeesSearch .panel-head {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: -20px -20px 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(216, 224, 234, .92);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

#dueFeesSearch .fee-filter-bar {
  position: sticky;
  top: 80px;
  z-index: 23;
  margin: 0 -20px 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(216, 224, 234, .92);
  background: rgba(248, 251, 255, .97);
  backdrop-filter: blur(10px);
}

#dueFeesSearch .fee-filter-bar .due-fees-student-search-label {
  color: #0f5f67;
  padding: 8px 10px;
  border: 1px solid rgba(20, 121, 139, .26);
  border-radius: 8px;
  background: linear-gradient(135deg, #e8fbf7, #eef7ff);
  box-shadow: 0 10px 22px rgba(20, 121, 139, .1);
}

#dueFeesSearch #dueFeesStudentSearch {
  min-height: 44px;
  border-color: rgba(20, 121, 139, .42);
  background: #ffffff;
  color: #0f172a;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(20, 121, 139, .08);
}

#dueFeesSearch #dueFeesStudentSearch::placeholder {
  color: #4d7382;
  font-weight: 800;
}

#dueFeesSearch #dueFeesStudentSearch:focus {
  outline: 3px solid rgba(20, 121, 139, .18);
  border-color: #14798b;
}

#dueFeesSearch .table-wrap {
  max-height: calc(100vh - 270px);
  overflow: auto;
  border: 1px solid rgba(216, 224, 234, .9);
  border-radius: 8px;
}

#dueFeesSearch table thead th {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(190, 202, 218, .95);
  background: #f7fbff;
  box-shadow: 0 1px 0 rgba(216, 224, 234, .9);
}

#dueFeesSearch .due-fees-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#dueFeesSearch .due-fees-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 121, 139, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5, #eef7ff);
  color: #0f5f67;
  font-size: .78rem;
  font-weight: 950;
  white-space: nowrap;
}

#dueFeesSearch .due-fees-month-filter select {
  min-width: 0;
}

.fee-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .35fr);
  gap: 16px;
}

.fee-side-panel {
  align-content: start;
  display: grid;
  gap: 8px;
}

.fee-side-panel h2 {
  font-size: 1.65rem;
}

.fee-side-panel small {
  color: var(--muted);
  line-height: 1.55;
}

.fee-master-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.class-fee-setup {
  display: grid;
}

.class-fee-panel {
  border-color: #cfe0ea;
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 62%, #f7fbf9 100%);
}

.class-fee-panel .panel-head {
  margin: -2px -2px 16px;
  padding: 14px 16px;
  border: 1px solid #d8e9e1;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef8f3, #edf4ff);
}

.class-fee-panel .panel-head h2 {
  color: #172033;
  font-size: 1.28rem;
}

.class-fee-panel .panel-head small {
  display: block;
  margin-top: 3px;
  color: #526171;
  font-size: .88rem;
  font-weight: 750;
}

.class-fee-panel .fee-master-form {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: start;
  gap: 12px 28px;
  margin: 0 0 14px;
  padding: 12px 10px 14px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fbfdff;
}

.class-fee-panel .fee-master-form label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #243044;
  font-size: .9rem;
  font-weight: 950;
  text-transform: none;
}

.class-fee-panel .fee-master-form label:nth-child(1) { grid-column: 1; grid-row: 1; }
.class-fee-panel .fee-master-form label:nth-child(2) { grid-column: 2; grid-row: 1; }
.class-fee-panel .fee-master-form label:nth-child(3) { grid-column: 1; grid-row: 2; }
.class-fee-panel .fee-master-form label:nth-child(4) { grid-column: 2; grid-row: 2; }
.class-fee-panel .fee-master-form label:nth-child(5) { grid-column: 1; grid-row: 3; }
.class-fee-panel .fee-master-form label:nth-child(6) { grid-column: 2; grid-row: 3; }
.class-fee-panel .fee-master-form label:nth-child(7) { grid-column: 1; grid-row: 4; }
.class-fee-panel .fee-master-form label:nth-child(8) { grid-column: 2; grid-row: 4; }
.class-fee-panel .fee-master-form label:nth-child(9) { grid-column: 1; grid-row: 5; }

.fee-master-dynamic-fields {
  grid-column: 2;
  grid-row: 5;
  display: grid;
  gap: 10px;
}

.fee-master-dynamic-fields small {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.fee-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef7ff;
  color: #1f4d8f;
  font-size: .76rem;
  font-weight: 900;
}

.system-lock-note {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a5a00;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-action:disabled,
.primary-action:disabled,
.ghost-action:disabled {
  cursor: not-allowed;
  opacity: .45;
  filter: grayscale(.25);
}

.class-fee-panel .fee-master-form input,
.class-fee-panel .fee-master-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfdbe7;
  border-radius: 7px;
  background: #ffffff;
  color: #172033;
  font-size: .92rem;
  font-weight: 850;
  padding: 0 11px;
}

.class-fee-panel .fee-master-form button {
  grid-column: 1 / -1;
  grid-row: 6;
  width: min(240px, 100%);
  min-height: 40px;
  font-size: .92rem;
  background: #172033;
  justify-self: end;
  margin-right: 90px;
}

.class-fee-table {
  margin-top: 2px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.class-fee-table table {
  min-width: 980px;
}

.class-fee-table th {
  background: #eef5f1;
  color: #223047;
  font-size: .72rem;
}

.class-fee-table th,
.class-fee-table td {
  padding: 10px;
}

.class-fee-table td:nth-child(7) {
  color: #116b4e;
  background: #f2fbf6;
}

#feeMasterSummary {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2455bd;
  font-size: .78rem;
  font-weight: 900;
}

.fee-master-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.fee-master-form input,
.fee-master-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.transport-route-form,
.transport-vehicle-form,
.transport-assign-form,
.transport-route-pickup-form {
  grid-template-columns: repeat(2, minmax(330px, 430px));
  align-items: center;
  gap: 10px 22px;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fbfdff;
}

.transport-route-form label,
.transport-vehicle-form label,
.transport-assign-form label,
.transport-route-pickup-form label {
  display: grid;
  grid-template-columns: 150px 220px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: #243044;
  font-size: .86rem;
  font-weight: 950;
}

.transport-route-form input,
.transport-route-form select,
.transport-vehicle-form input,
.transport-vehicle-form select,
.transport-assign-form input,
.transport-assign-form select,
.transport-route-pickup-form input,
.transport-route-pickup-form select {
  width: 220px;
  min-height: 36px;
  font-size: .86rem;
  font-weight: 850;
}

.transport-route-form button,
.transport-vehicle-form button,
.transport-assign-form button,
.transport-route-pickup-form button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 170px;
  min-height: 38px;
}

.transport-route-count-panel {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #d5e6f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #eef8f4);
}

.route-pickup-helper {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #cfe6f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fbff, #ecfdf5);
  color: #244057;
  font-size: .84rem;
  font-weight: 850;
}

.transport-backend-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 7px 11px;
  border: 1px solid #d5e6f0;
  border-radius: 8px;
  background: #f8fbfd;
  color: #526173;
  font-size: .8rem;
  font-weight: 850;
}

.transport-backend-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}

.transport-backend-status.saving {
  border-color: #f5d58b;
  background: #fffbeb;
  color: #855f12;
}

.transport-backend-status.saving::before {
  background: #d97706;
}

.transport-backend-status.saved {
  border-color: #bfe8d3;
  background: #f0fdf4;
  color: #166534;
}

.transport-backend-status.saved::before {
  background: #22c55e;
}

.transport-backend-status.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.transport-backend-status.error::before {
  background: #e11d48;
}

.route-pickup-tabs {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 4px 0 12px;
  padding: 5px;
  border: 1px solid #d5e6f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.route-pickup-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #415268;
  padding: 0 14px;
  font-size: .82rem;
  font-weight: 950;
  cursor: pointer;
}

.route-pickup-tabs button.active {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 118, 110, .16);
}

.route-pickup-tab-panel[hidden] {
  display: none;
}

.route-pickup-report-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 320px);
  gap: 12px;
  align-items: end;
  margin: 2px 0 12px;
  padding: 12px;
  border: 1px solid #d6e8ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #f0fdfa);
}

.route-pickup-report-head h3 {
  margin: 0;
  color: #17334c;
  font-size: 1rem;
}

.route-pickup-report-head label {
  display: grid;
  gap: 5px;
  color: #26384f;
  font-size: .78rem;
  font-weight: 950;
}

.route-pickup-report-head select {
  min-height: 36px;
  border: 1px solid #cbdde9;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  font-weight: 850;
}

.route-pickup-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.route-pickup-report-summary > div,
.route-pickup-report-summary > span {
  padding: 10px 12px;
  border: 1px solid #d8e8f0;
  border-radius: 8px;
  background: #fff;
}

.route-pickup-report-summary strong,
.route-pickup-report-summary span {
  display: block;
}

.route-pickup-report-summary strong {
  color: #0f766e;
  font-size: 1.2rem;
  line-height: 1;
}

.route-pickup-report-summary span {
  color: #53657a;
  font-size: .74rem;
  font-weight: 900;
}

.route-pickup-village-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 170px;
  max-width: 100%;
  min-height: 32px;
  border: 1px solid #c7dbea;
  border-radius: 7px;
  background: #f8fcff;
  color: #123047;
  padding: 0 10px;
  font-size: .82rem;
  font-weight: 950;
  cursor: pointer;
}

.route-pickup-village-toggle span {
  color: #0f766e;
  transition: transform .15s ease;
}

.route-pickup-village-toggle.open span {
  transform: rotate(180deg);
}

.route-pickup-student-dropdown[hidden] {
  display: none;
}

.route-pickup-student-dropdown > td {
  padding: 0 !important;
  background: #f8fbfd;
}

.route-pickup-student-list {
  margin: 8px 10px 12px;
  border: 1px solid #d8e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.route-pickup-student-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.route-pickup-student-list th,
.route-pickup-student-list td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.route-pickup-student-list th {
  background: #eef8f4;
  color: #27435c;
  font-size: .72rem;
  text-transform: uppercase;
}

.route-pickup-student-list tr:last-child td {
  border-bottom: 0;
}

.route-pickup-inline-select,
.route-pickup-inline-input {
  width: 100%;
  min-width: 130px;
  min-height: 34px;
  border: 1px solid #cbdde9;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  padding: 0 9px;
  font-size: .82rem;
  font-weight: 850;
}

.route-pickup-inline-select.small {
  min-width: 160px;
}

.route-pickup-inline-input.tiny {
  min-width: 74px;
}

.route-pickup-mapped td:first-child {
  border-left: 4px solid #0f766e;
}

.route-pickup-unmapped td:first-child {
  border-left: 4px solid #e2e8f0;
}

.route-pickup-more {
  display: inline-block;
  margin-top: 3px;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
}

.transport-route-count-panel label {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
  align-items: center;
  color: #17334c;
  font-size: .86rem;
  font-weight: 950;
}

.transport-route-count-panel select {
  min-height: 36px;
  border: 1px solid #c9dce9;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  font-weight: 850;
}

.transport-route-count-summary {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(340px, 1fr);
  gap: 8px;
  align-items: center;
}

.transport-route-count-summary > span {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border: 1px dashed #bdd3e2;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-weight: 850;
}

.transport-route-count-total {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #cde2ee;
  border-radius: 8px;
  background: #ffffff;
}

.transport-route-count-total strong {
  color: #0f766e;
  font-size: 1.35rem;
  line-height: 1;
}

.transport-route-count-total span {
  color: #526171;
  font-size: .72rem;
  font-weight: 850;
}

.transport-route-count-summary table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #fff;
  font-size: .8rem;
}

.transport-route-count-summary th,
.transport-route-count-summary td {
  padding: 7px 9px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}

.transport-route-count-summary th {
  background: #edf7f4;
  color: #27435c;
  font-size: .72rem;
  text-transform: uppercase;
}

.transport-route-count-summary td:not(:first-child),
.transport-route-count-summary th:not(:first-child) {
  text-align: center;
}

.transport-route-count-summary tr:last-child td {
  border-bottom: 0;
}

.route-student-view-btn {
  min-width: 58px;
  padding: 5px 9px;
  font-size: .72rem;
}

.transport-route-student-details {
  margin: -4px 0 14px;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.transport-route-student-details[hidden] {
  display: none;
}

.transport-route-student-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #f1f8fb;
  border-bottom: 1px solid #dce9f1;
}

.transport-route-student-head strong,
.transport-route-student-head span {
  display: block;
}

.transport-route-student-head strong {
  color: #123047;
  font-size: .95rem;
}

.transport-route-student-head span {
  color: #0f766e;
  font-size: .78rem;
  font-weight: 900;
}

.transport-route-student-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.transport-route-student-details th,
.transport-route-student-details td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.transport-route-student-details th {
  background: #fbfdff;
  color: #334155;
  font-size: .74rem;
  text-transform: uppercase;
}

.transport-route-student-details tr:last-child td {
  border-bottom: 0;
}

.transport-fee-summary {
  display: inline-flex;
  margin: 10px 2px 0;
  padding: 7px 12px;
  border: 1px solid #cfe2f5;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef8ff 0%, #f4fff7 100%);
  color: #24536f;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.fee-cards article {
  min-height: 134px;
}

.fee-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.fee-card-actions .mini {
  min-height: 28px;
  padding: 0 10px;
  font-size: .76rem;
}

.danger-mini {
  border-color: #f0b8c2;
  background: #fff5f6;
  color: #b42337;
}

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

.student-due-control-panel {
  overflow: hidden;
  border-color: #d6e5f3;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96)),
    radial-gradient(circle at 100% 0%, rgba(36,107,254,.12), transparent 34%);
}

.student-due-control-panel .panel-head {
  margin: -18px -18px 14px;
  padding: 18px;
  border-bottom: 1px solid #e0eaf5;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 58%, #fff8ea 100%);
}

.student-due-control-panel .panel-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 850;
}

.student-due-access-form {
  display: grid;
  gap: 12px;
}

.switch-line {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #d7e5f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 35, 72, .06);
}

.switch-line i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #124071;
  background: #eaf5ff;
  font-size: .78rem;
  font-style: normal;
  font-weight: 950;
}

.switch-line strong,
.switch-line small {
  display: block;
}

.switch-line strong {
  color: #182b45;
  font-size: .98rem;
}

.switch-line small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.switch-line input[type="checkbox"] {
  width: 42px;
  height: 24px;
  accent-color: var(--navy);
}

.student-due-access-bottom {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 2px;
}

.student-due-access-bottom label {
  display: grid;
  gap: 7px;
  color: #314154;
  font-size: .8rem;
  font-weight: 950;
}

.student-due-access-bottom .primary-action {
  min-height: 40px;
  padding-inline: 18px;
}

.student-due-access-preview {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #cfe1f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #10233f 0%, #173f72 100%);
  color: #fff;
  font-weight: 850;
}

.student-due-access-preview strong {
  color: #cdeaff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.student-due-access-preview span {
  display: inline-block;
  width: fit-content;
  margin-right: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .78rem;
}

.student-due-access-preview small {
  color: #dbeafe;
  line-height: 1.4;
}

.smart-bus-panel {
  overflow: hidden;
  border-color: #d5e5f4;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.smart-bus-hero {
  margin: -18px -18px 16px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.34);
  background:
    radial-gradient(circle at 8% 8%, rgba(34,200,166,.36), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(248,189,69,.34), transparent 26%),
    linear-gradient(135deg, #10233f 0%, #185ca8 54%, #0f766e 100%);
  color: #fff;
}

.smart-bus-hero .eyebrow,
.smart-bus-hero h2,
.smart-bus-hero small {
  color: #fff;
}

.smart-bus-hero h2 {
  font-size: 1.7rem;
}

.smart-bus-hero small {
  display: block;
  max-width: 760px;
  margin-top: 6px;
  color: #dceeff;
  font-weight: 850;
  line-height: 1.45;
}

.smart-bus-hero .inline-actions {
  align-items: center;
}

.smart-bus-hero .primary-action {
  background: #fff;
  color: #124071;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.smart-bus-hero .ghost-action {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.44);
}

.smart-bus-flow {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #d7e7f7;
  border-radius: 8px;
  background: #f8fbff;
  color: #174064;
  font-size: .82rem;
  font-weight: 950;
}

.smart-bus-flow i {
  height: 2px;
  min-width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c8a6, #246bfe);
}

.smart-bus-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.smart-bus-cards article {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #d8e7f6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f3fbff 74%),
    radial-gradient(circle at 100% 0%, rgba(36,107,254,.12), transparent 36%);
  box-shadow: 0 16px 34px rgba(16, 35, 63, .08);
}

.smart-bus-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #1bb6d9);
  font-size: .86rem;
  font-weight: 950;
}

.smart-bus-card-icon.route {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.smart-bus-card-icon.gps {
  background: linear-gradient(135deg, #0f766e, #22c8a6);
}

.smart-bus-cards strong {
  display: block;
  color: #10233f;
  font-size: 1.7rem;
  line-height: 1;
}

.smart-bus-cards small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-weight: 850;
  white-space: normal;
}

.smart-bus-cards em {
  grid-column: 1 / -1;
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f6ef;
  color: #0f766e;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
}

.smart-bus-cards em.setup {
  background: #fff3d8;
  color: #92400e;
}

.smart-bus-cards em.danger {
  background: #ffe4e6;
  color: #b42337;
}

.smart-bus-cards em.ready {
  background: #ddf8ea;
  color: #0f766e;
}

.smart-bus-status {
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #d5e5f5;
  border-left: 5px solid #246bfe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  color: #334155;
  font-weight: 900;
}

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

.smart-bus-setup article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.smart-bus-setup b {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
}

.smart-bus-setup strong {
  color: #12344a;
  font-size: .94rem;
}

.smart-bus-setup span {
  color: #64748b;
  font-size: .82rem;
  line-height: 1.35;
}

.smart-bus-setup button {
  width: max-content;
  min-height: 30px;
  margin-top: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f766e;
  font-weight: 900;
  cursor: pointer;
}

.smart-bus-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.smart-bus-alert.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.smart-bus-table-wrap {
  max-height: 58vh;
  border: 1px solid #d7e7f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 35, 63, .08);
}

.smart-bus-table-wrap table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #10233f;
  color: #e6f3ff;
  border-bottom-color: #10233f;
}

.smart-bus-table-wrap tbody tr:nth-child(odd) td {
  background: #fbfdff;
}

.smart-bus-table-wrap tbody tr:hover td {
  background: #eef7ff;
}

.smart-bus-table-wrap td:first-child strong {
  color: #185ca8;
}

.smart-bus-table-wrap .mini-action {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #c7d8ec;
  border-radius: 8px;
  background: #f8fbff;
  color: #185ca8;
  font-size: .76rem;
  font-weight: 950;
  cursor: pointer;
}

.smart-bus-table-wrap .mini-action:hover {
  border-color: #185ca8;
  background: #eaf4ff;
}

.receipt {
  margin-top: 14px;
  min-height: 86px;
  padding: 14px;
  border: 1px dashed #b8c7da;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.danger-note {
  border-color: #f0bdc7;
  background: #fff5f7;
  color: #7f2535;
  margin: 0 0 14px;
}

.bucket-list article {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.bucket-list i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--w), #e8eef5 var(--w));
}

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

.cards article {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 18px;
}

.cards strong { font-size: 1.35rem; }

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 300px;
  align-items: center;
  overflow: hidden;
}

.map-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
}

.route-map article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-map article:before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(18, 128, 92, .16);
}

.route-map span, .route-map small { color: var(--muted); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #172238;
  color: #fff;
  box-shadow: 0 18px 44px rgba(21, 34, 56, .28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #b91c1c;
  box-shadow: 0 18px 44px rgba(185, 28, 28, .28);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 39, .48);
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[aria-hidden="false"] {
  display: grid;
}

.admission-modal {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #bfd0df;
  background: linear-gradient(180deg, #f6fbff 0, #ffffff 120px);
  box-shadow: 0 24px 80px rgba(16, 24, 39, .28);
}

.disable-reason-modal {
  width: min(520px, 100%);
  border-radius: 8px;
  border: 1px solid #bfd0df;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 24, 39, .28);
}

.receipt-preview-modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #bfd0df;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 24, 39, .28);
}

.complaint-review-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #b6d9ee;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
    linear-gradient(135deg, #e8f8ff 0%, #edfdf5 45%, #fff7ed 100%);
  box-shadow: 0 30px 95px rgba(16, 24, 39, .34);
}

.complaint-review-head {
  background: linear-gradient(135deg, rgba(15, 118, 110, .96) 0%, rgba(29, 126, 208, .94) 50%, rgba(168, 85, 247, .9) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.28);
}

.complaint-review-head .eyebrow,
.complaint-review-head small {
  color: rgba(255, 255, 255, .82);
}

.complaint-review-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(239, 248, 255, .58), rgba(255, 255, 255, .2));
}

.complaint-review-card {
  border: 1px solid rgba(186, 215, 235, .95);
  border-left: 5px solid #2aa88f;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,249,255,.92));
  padding: 12px;
  box-shadow: 0 12px 28px rgba(31, 50, 72, .1);
}

.complaint-review-card:nth-child(2) { border-left-color: #f97316; }
.complaint-review-card:nth-child(3) { border-left-color: #2563eb; }
.complaint-review-card:nth-child(4) { border-left-color: #8b5cf6; }
.complaint-review-card:nth-child(5) { border-left-color: #0ea5e9; }
.complaint-review-card:nth-child(6) { border-left-color: #14b8a6; }
.complaint-review-card:nth-child(7) { border-left-color: #e11d48; }

.complaint-review-card.full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.complaint-review-card span {
  display: block;
  color: #516273;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.complaint-review-card strong,
.complaint-review-card p {
  margin: 5px 0 0;
  color: #142033;
  font-weight: 900;
  line-height: 1.45;
}

.complaint-review-reason {
  display: grid;
  gap: 7px;
  margin: 0 16px 14px;
  color: #334155;
  font-size: .8rem;
  font-weight: 950;
  padding: 10px 12px;
  border: 1px solid #d7e7f2;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #f2fbff);
}

.complaint-review-reason textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c5dceb;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 850;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .04);
}

.complaint-review-reason.compact {
  max-width: 420px;
  margin-top: -2px;
  background: linear-gradient(135deg, #fff8f5, #ffffff);
  border-color: #f2d0c2;
}

.complaint-review-reason.compact textarea {
  min-height: 54px;
  max-height: 92px;
  padding: 8px 10px;
}

.complaint-review-actions {
  padding: 0 16px 16px;
  gap: 8px;
}

.complaint-review-actions .ghost-action,
.complaint-review-actions .primary-action {
  border-radius: 8px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(31, 50, 72, .08);
}

.complaint-review-actions .ghost-action:nth-child(1) {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.complaint-review-actions .ghost-action:nth-child(2) {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.complaint-review-actions .ghost-action:nth-child(3) {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.modal-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.receipt-preview-modal:has(.fee-book-monthly-report) {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.receipt-preview-modal:has(.class-section-detail-card) {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.combined-collection-modal {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #bcd2df;
  border-radius: 10px;
  background: #f8fbfd;
  box-shadow: 0 28px 90px rgba(16, 24, 39, .32);
}

.combined-collection-hero {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #0f3d4e, #14798b 48%, #f2b544);
  color: #fff;
}

.combined-collection-hero .eyebrow,
.combined-collection-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.combined-collection-hero h2 {
  margin: 4px 0;
  font-size: 1.55rem;
}

.combined-collection-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.combined-student-strip,
.combined-total-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.combined-student-strip div,
.combined-total-card div,
.combined-entry-grid label {
  padding: 9px 10px;
  border: 1px solid #dbe8ef;
  border-radius: 8px;
  background: #fff;
}

.combined-student-strip span,
.combined-total-card span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.combined-student-strip strong,
.combined-total-card strong {
  display: block;
  margin-top: 4px;
  color: #123456;
}

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

.combined-entry-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.combined-entry-grid input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbdce6;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 850;
}

.combined-entry-grid input:focus,
.combined-entry-grid select:focus {
  border-color: #14798b;
  box-shadow: 0 0 0 3px rgba(20, 121, 139, .14);
  outline: 0;
}

.combined-bank-select-field {
  position: relative;
  overflow: hidden;
  border-color: #9bcbd2 !important;
  background: linear-gradient(145deg, #f2fcfd, #e9f7f8) !important;
  box-shadow: 0 8px 20px rgba(20, 121, 139, .08);
}

.combined-bank-select-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0f5f6c;
}

.combined-bank-select-field small {
  color: #5f7b82;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.combined-bank-select-field select {
  width: 100%;
  min-height: 36px;
  appearance: none;
  border: 1px solid #8fc4cc;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #14798b 50%) calc(100% - 17px) 15px / 6px 6px no-repeat,
    linear-gradient(135deg, #14798b 50%, transparent 50%) calc(100% - 11px) 15px / 6px 6px no-repeat,
    #fff;
  color: #183b45;
  padding: 8px 38px 8px 12px;
  font-weight: 950;
  cursor: pointer;
}

.combined-bank-select-field select:hover {
  border-color: #14798b;
  background-color: #fbffff;
}

.calendar-input-shell {
  position: relative;
  display: block;
}

.calendar-input-shell input {
  padding-right: 36px;
}

.calendar-input-button {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #e8f6f1;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.calendar-input-button:hover,
.calendar-input-button:focus-visible {
  background: #c9eadf;
  outline: 2px solid rgba(15, 118, 110, .2);
}

.calendar-input-icon {
  width: 18px;
  height: 18px;
  fill: #0f766e;
}

.date-picker-popover {
  position: fixed;
  z-index: 1200;
  width: min(260px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #cfe0e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 52, 86, .22);
}

.date-picker-popover[hidden] {
  display: none;
}

.date-picker-popover strong {
  display: block;
  margin-bottom: 8px;
  color: #123456;
  font-size: .82rem;
}

.date-picker-popover input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbdce6;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 850;
}

.date-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.date-picker-actions button {
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.date-picker-actions .ghost {
  background: #eef5f8;
  color: #123456;
}

.date-picker-actions .primary {
  background: #0f766e;
  color: #fff;
}

.combined-remarks-field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #dbe8ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.combined-remarks-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbdce6;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 850;
  text-transform: none;
}

.combined-fee-panel {
  overflow: hidden;
  border: 1px solid #d5e5ed;
  border-radius: 8px;
  background: #fff;
}

.combined-fee-head,
.combined-fee-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) .75fr .75fr .8fr;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
}

.combined-fee-head {
  background: #edf7fb;
  color: #123456;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.combined-fee-row {
  border-top: 1px solid #edf2f5;
  font-size: .85rem;
  font-weight: 850;
}

.combined-fee-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #123456;
}

.combined-fee-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #d92332;
}

.combined-total-card {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.combined-total-card div {
  border-color: #f0cf88;
  background: #fff8e8;
}

.combined-total-card div:last-child {
  background: #123456;
}

.combined-total-card div:last-child span,
.combined-total-card div:last-child strong {
  color: #fff;
}

.receipt-preview-card {
  margin: 18px;
  overflow: hidden;
  border: 1px solid #cfe0ea;
  border-radius: 10px;
  background: #fff;
}

.receipt-preview-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #123456, #14798b 55%, #f2b544);
  color: #fff;
}

.receipt-preview-banner h3 {
  margin: 2px 0 4px;
  font-size: 1.35rem;
}

.receipt-preview-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-weight: 850;
}

.receipt-preview-stamp {
  align-self: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-weight: 950;
}

.receipt-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  background: #f8fbfd;
}

.receipt-preview-grid div,
.receipt-preview-total {
  padding: 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.receipt-preview-grid span,
.receipt-preview-total span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.receipt-preview-grid strong,
.receipt-preview-total strong {
  display: block;
  margin-top: 4px;
  color: #123456;
}

.receipt-preview-total {
  margin: 0 16px 16px;
  border-color: #f0cf88;
  background: #fff8e8;
}

.combined-receipt-total-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.combined-receipt-total-row div {
  min-width: 0;
}

.receipt-due-balance strong {
  color: #b7354b;
}

.receipt-clear-balance strong {
  color: #18735f;
}

.yearly-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  background: #f8fbfd;
}

.yearly-preview-meta div {
  padding: 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.yearly-preview-meta span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.yearly-preview-meta strong {
  display: block;
  margin-top: 4px;
  color: #123456;
}

.yearly-preview-table-wrap {
  margin: 0 16px 16px;
  overflow-x: auto;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.yearly-preview-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.admission-form-preview-card {
  max-width: 980px;
}

.admission-preview-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #dce8ef;
  background: #f8fbfd;
}

.admission-preview-photo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d2e4ef;
  border-radius: 10px;
  background: #fff;
  color: #123456;
  font-weight: 950;
}

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

.admission-preview-profile h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.admission-preview-profile p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.admission-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.admission-preview-grid section,
.admission-preview-fees {
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.admission-preview-grid h4,
.admission-preview-fees h4 {
  margin: 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, #edf7fb, #fff8e8);
  color: #123456;
  font-size: .82rem;
  text-transform: uppercase;
}

.admission-preview-grid table,
.admission-preview-fees table {
  width: 100%;
  border-collapse: collapse;
}

.admission-preview-grid th,
.admission-preview-grid td,
.admission-preview-fees th,
.admission-preview-fees td {
  padding: 8px 10px;
  border-top: 1px solid #edf2f6;
  text-align: left;
  vertical-align: top;
}

.admission-preview-grid th,
.admission-preview-fees th {
  width: 42%;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

.admission-preview-fees {
  margin: 0 16px 16px;
}

.month-wise-review-table {
  min-width: 0;
  table-layout: fixed;
}

.month-wise-review-table th:nth-child(1),
.month-wise-review-table td:nth-child(1) {
  width: 105px;
}

.month-wise-review-table th:nth-child(2),
.month-wise-review-table td:nth-child(2) {
  width: 82px;
}

.month-wise-review-table th:nth-child(3),
.month-wise-review-table td:nth-child(3) {
  width: auto;
}

.month-wise-review-table th:nth-child(n+4),
.month-wise-review-table td:nth-child(n+4) {
  width: 64px;
  white-space: nowrap;
  text-align: right;
}

.receipt-preview-modal:has(.month-wise-review-card) {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}

.month-wise-review-card {
  margin: 6px;
}

.month-wise-review-card .receipt-preview-banner {
  padding: 7px 10px;
  gap: 8px;
}

.month-wise-review-card .receipt-preview-banner h3 {
  margin: 1px 0 2px;
  font-size: .98rem;
}

.month-wise-review-card .receipt-preview-banner p {
  font-size: .72rem;
  line-height: 1.25;
}

.month-wise-review-card .receipt-preview-stamp {
  padding: 4px 8px;
  font-size: .75rem;
}

.month-wise-review-card .month-review-filter {
  padding: 5px 8px 0;
}

.month-wise-review-card .month-review-filter label {
  gap: 3px;
  font-size: .64rem;
}

.month-wise-review-card .month-review-filter select {
  min-height: 26px;
  min-width: 118px;
  padding: 3px 7px;
  font-size: .72rem;
}

.month-wise-review-card .yearly-preview-table-wrap {
  margin: 5px 8px 8px;
  overflow: hidden;
}

.month-wise-review-card .yearly-preview-table th,
.month-wise-review-card .yearly-preview-table td {
  padding: 3px 4px;
  font-size: .62rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-wise-review-card .yearly-preview-table th {
  font-size: .56rem;
}

.month-review-filter {
  padding: 14px 16px 0;
  background: #f8fbfd;
}

.month-review-filter label {
  display: inline-grid;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.month-review-filter select {
  min-width: 170px;
  min-height: 36px;
  border: 1px solid #cbdce6;
  border-radius: 7px;
  padding: 7px 10px;
  color: #123456;
  font-weight: 850;
}

.yearly-preview-table th,
.yearly-preview-table td {
  padding: 10px;
  border-bottom: 1px solid #e6edf2;
  text-align: left;
  font-size: .8rem;
}

.yearly-preview-table th {
  background: #edf7fb;
  color: #123456;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.yearly-preview-table tfoot td {
  border-bottom: 0;
  background: #fff8e8;
  color: #123456;
  font-weight: 950;
}

.yearly-fee-statement-preview .statement-section-title {
  margin: 16px 16px 8px;
  color: #123456;
  font-size: .95rem;
}

.yearly-fee-statement-preview table {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  border-collapse: collapse;
  background: #fff;
}

.yearly-fee-statement-preview th,
.yearly-fee-statement-preview td {
  border: 1px solid #dce8ef;
  padding: 8px;
  text-align: left;
  font-size: .78rem;
}

.yearly-fee-statement-preview th {
  background: #edf7fb;
  color: #123456;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fee-book-monthly-report {
  margin: 8px;
  overflow: hidden;
  border: 1px solid #cfe0ea;
  border-radius: 10px;
  background: #f8fbfd;
}

.monthly-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, #123456, #14798b 58%, #a77b14);
  color: #fff;
}

.monthly-report-hero p,
.monthly-report-hero h3,
.monthly-report-hero small {
  margin: 0;
}

.monthly-report-hero p {
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 950;
}

.monthly-report-hero h3 {
  margin-top: 2px;
  font-size: 1.22rem;
}

.monthly-report-hero small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 850;
}

.monthly-report-month {
  display: grid;
  gap: 4px;
  min-width: 118px;
  color: rgba(255, 255, 255, .88);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.monthly-report-month select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  padding: 5px 9px;
  font-size: .9rem;
  font-weight: 950;
}

.monthly-report-month option {
  color: #123456;
}

.monthly-report-summary span {
  display: block;
  color: inherit;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.monthly-report-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.monthly-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.monthly-report-summary div {
  padding: 8px 9px;
  border: 1px solid #ead29b;
  border-radius: 8px;
  background: #fff8e8;
  color: #123456;
}

.monthly-report-table {
  width: calc(100% - 20px);
  margin: 10px 10px 8px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.monthly-report-table th,
.monthly-report-table td {
  padding: 7px 6px;
  border: 1px solid #e1e8ef;
  color: #172033;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.22;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monthly-report-table th:first-child,
.monthly-report-table td:first-child {
  width: 104px;
  text-align: left;
}

.monthly-report-table th:nth-child(2),
.monthly-report-table td:nth-child(2) {
  width: 136px;
  text-align: left;
}

.monthly-report-table th:nth-child(3),
.monthly-report-table td:nth-child(3) {
  width: 138px;
  text-align: left;
}

.monthly-report-table th {
  background: #edf7fb;
  color: #123456;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.monthly-report-table tfoot td {
  background: #fff8e8;
  color: #123456;
  font-weight: 950;
}

.monthly-report-table .paid-month td {
  background: #edf8ef;
}

.monthly-report-table .partial-month td {
  background: #fff7dd;
}

.monthly-report-table .due-month td {
  background: #fff;
}

.preview-print-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(90deg, #173761, #14798b 58%, #18735f);
  color: #fff;
}

.modal-head small {
  display: block;
  margin-top: 5px;
  color: #d7eef2;
  font-weight: 700;
}

.modal-head .eyebrow {
  color: #bdebd9;
}

.icon-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.admission-form {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}

.admission-form fieldset {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 34, 56, .06);
}

.admission-form fieldset:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: #2563c9;
}

.admission-form fieldset:nth-of-type(2):before {
  background: #6d5bd7;
}

.admission-form fieldset:nth-of-type(3):before {
  background: #18735f;
}

.admission-form fieldset:nth-of-type(4):before {
  background: #0f8b8d;
}

.admission-form fieldset:nth-of-type(5):before {
  background: #a86408;
}

.admission-form fieldset:nth-of-type(6):before {
  background: #b7354b;
}

.admission-form fieldset.other-fees-fieldset {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.admission-form fieldset.transport-section-focus {
  outline: 3px solid rgba(20, 121, 139, .22);
  box-shadow: 0 0 0 6px rgba(20, 121, 139, .08), 0 16px 36px rgba(20, 121, 139, .12);
}

.other-fees-fieldset label,
.other-fees-fieldset .fee-months {
  min-height: 74px;
}

.other-fees-fieldset .fee-months {
  padding: 0;
}

.fee-row {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.day-boarding-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.transport-fee-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.robotics-fee-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
}

.transport-fee-row label,
.transport-fee-row .fee-months {
  min-height: 74px;
}

.robotics-fee-row label,
.robotics-fee-row .fee-months {
  min-height: 74px;
}

.day-boarding-row label,
.day-boarding-row .fee-months {
  min-height: 74px;
}

.admission-form legend {
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2455bd;
  font-weight: 950;
  box-shadow: 0 4px 12px rgba(31, 77, 143, .08);
}

.admission-form fieldset:nth-of-type(2) legend {
  background: #f1efff;
  color: #5946bc;
}

.admission-form fieldset:nth-of-type(3) legend {
  background: #e9f7f1;
  color: #116b4e;
}

.admission-form fieldset:nth-of-type(4) legend {
  background: #e8fbfb;
  color: #0b6c70;
}

.admission-form fieldset:nth-of-type(5) legend {
  background: #fff4db;
  color: #8b5207;
}

.admission-form fieldset:nth-of-type(6) legend {
  background: #fff0f3;
  color: #a42e45;
}

.admission-form label {
  position: relative;
  display: grid;
  gap: 7px;
  color: #526171;
  font-size: .82rem;
  font-weight: 950;
}

.admission-form label:has(input[required]),
.admission-form label:has(select[required]),
.admission-form label:has(textarea[required]) {
  padding-top: 2px;
}

.admission-form label:has(input[required])::after,
.admission-form label:has(select[required])::after,
.admission-form label:has(textarea[required])::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d7263d;
  box-shadow: 0 0 0 3px rgba(215, 38, 61, .12);
}

.admission-number-field {
  gap: 3px;
  padding-top: 2px;
}

.admission-number-field > span:first-child {
  justify-self: start;
  margin-left: 0;
  padding: 0;
  color: #1f4d8f;
  line-height: 1.2;
}

.admission-number-combo {
  display: grid;
  grid-template-columns: max-content minmax(68px, 1fr);
  align-items: center;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admission-number-prefix {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #edf6ff;
  color: #0f3f6d;
  font-weight: 800;
  white-space: nowrap;
  border-right: 1px solid #cbd5e1;
}

.admission-number-combo input {
  border: 0;
  border-radius: 0;
  min-height: 36px;
  padding: 8px 10px;
  font-weight: 800;
}

.admission-number-preview {
  display: block;
  min-height: 16px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.admission-number-field input {
  padding-top: 0;
}

.admission-form .admission-number-field:has(input[required])::after {
  top: 3px;
  right: 3px;
}

.admission-form .check-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fbfdff;
}

.admission-form .check-field input {
  width: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: #14798b;
}

.service-checks input {
  width: 19px;
  min-height: 19px;
  flex: 0 0 19px;
  padding: 0;
  accent-color: #d7263d;
}

.service-checks {
  display: grid;
  grid-template-columns: max-content repeat(5, 132px);
  gap: 8px;
  align-items: center;
  justify-content: start;
  padding: 8px 10px;
  border: 1px solid #b9d9ee;
  border-left: 4px solid #14798b;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1fbff 0%, #f7fff9 100%);
  box-shadow: 0 6px 14px rgba(20, 121, 139, .06);
}

.service-checks > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #0f5f55;
  font-size: .78rem;
  font-weight: 950;
  white-space: nowrap;
}

.service-checks label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 132px;
  min-width: 132px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  color: #9a6500;
  font-size: .76rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

.service-checks label:has(input:checked) {
  border-color: #f0c957;
  background: #fff7d6;
  color: #9a6500;
}

.local-guardian-same {
  grid-template-columns: max-content repeat(2, minmax(120px, 150px));
  gap: 10px;
  padding: 10px 12px;
  border-color: #c4e5d8;
  border-left-color: #18735f;
  background: linear-gradient(135deg, #f4fff9 0%, #f2fbff 100%);
}

.local-guardian-same label {
  width: auto;
  min-width: 120px;
  justify-content: center;
  background: #ffffff;
  color: #116b4e;
}

.local-guardian-same label:has(input:checked) {
  border-color: #21a67a;
  background: #dffaf0;
  color: #0d5e48;
}

.local-guardian-field {
  min-height: 68px;
  padding: 10px;
  border: 1px solid #d7eadf;
  border-radius: 8px;
  background: #fbfffd;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admission-form fieldset input[type="number"] {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.admission-form fieldset input[type="number"]::placeholder {
  color: #9aa6b2;
  font-weight: 700;
  opacity: 1;
}

.admission-form .service-checks input[type="checkbox"] {
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  transform: none;
  transition: none;
  accent-color: #d7263d;
}

.admission-form .service-checks input[type="checkbox"]:focus {
  box-shadow: none;
  outline: 2px solid rgba(215, 38, 61, .18);
  outline-offset: 2px;
}

.admission-form textarea {
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
  border-color: #14798b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 121, 139, .14);
}

.disable-reason-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.disable-reason-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.disable-reason-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  padding: 10px;
  outline: 0;
}

.disable-reason-form textarea:focus {
  border-color: #14798b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 121, 139, .14);
}

.disable-reason-form small {
  color: var(--muted);
}

.admission-form input.locked-fee-field {
  border-color: #d5dce7;
  background: #eef3f7;
  color: #667085;
  cursor: not-allowed;
}

.admission-form input.locked-fee-field:focus {
  border-color: #d5dce7;
  box-shadow: none;
}

.admission-form input.field-error {
  border-color: #b7354b;
  box-shadow: 0 0 0 3px rgba(183, 53, 75, .12);
}

.form-error {
  min-height: 22px;
  color: #a42e45;
  font-weight: 900;
}

.admission-form .wide {
  grid-column: span 2;
}

.photo-field {
  align-content: start;
  max-width: 430px;
}

.photo-upload {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.photo-upload input {
  min-height: 40px;
  padding: 8px 10px;
}

.photo-preview {
  display: grid;
  place-items: center;
  width: 86px;
  height: 108px;
  border: 1px dashed #9fb8df;
  border-radius: 8px;
  background: #edf4ff;
  color: #2455bd;
  font-size: .75rem;
  font-weight: 950;
  overflow: hidden;
}

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

.fee-months {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fee-months > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
}

.month-dropdown {
  position: relative;
}

.month-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.month-dropdown summary::-webkit-details-marker {
  display: none;
}

.month-dropdown summary:after {
  content: "v";
  color: #687385;
  font-size: .72rem;
}

.month-dropdown[open] summary:after {
  content: "^";
}

.month-check-grid {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  width: min(330px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 9px;
  border: 1px solid #cfe0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(21, 34, 56, .18);
}

.month-check-grid label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid #d3e2ee;
  border-radius: 6px;
  background: #fff;
  color: #314154;
  font-size: .74rem;
  font-weight: 900;
}

.month-check-grid input {
  width: 13px;
  min-height: 13px;
  accent-color: #18735f;
}

.month-check-grid label:has(input:checked) {
  border-color: #9fd4bf;
  background: #e9f7f1;
  color: #116b4e;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.admission-form .modal-actions .primary-action {
  background: #14798b;
}

.admission-form .modal-actions .ghost-action {
  background: #ffffff;
  border-color: #cfdbe7;
}

.academic-profile-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #fff7ed 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.academic-profile-photo {
  width: 132px;
  height: 152px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 2rem;
  font-weight: 900;
}

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

.academic-profile-card h2 {
  margin: 4px 0 6px;
  color: #0f172a;
}

.academic-profile-card p {
  margin: 4px 0;
  color: #475569;
}

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

.academic-profile-grid .task-list article {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 282px;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.nav-open .rail { transform: translateX(0); }
  .menu-button { display: block; }
  .metrics, .control-strip, .kpi-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card.fees-kpi { grid-column: 1 / -1; }
  .monthly-fee-breakdown { grid-template-columns: repeat(4, minmax(72px, 1fr)); }
  .hero-panel, .dashboard-grid, .operations-grid, .finance-grid, .fee-admin-grid { grid-template-columns: 1fr; }
  .class-fee-panel .fee-master-form { grid-template-columns: 1fr; }
  .class-fee-panel .fee-master-form label {
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-columns: 130px minmax(0, 1fr);
  }
  .class-fee-panel .fee-master-form button {
    grid-column: auto;
    grid-row: auto;
    margin-left: 142px;
  }
  .executive-band { align-items: flex-start; flex-direction: column; }
  .staff-attendance-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timetable-criteria-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .timetable-quick-row { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .timetable-interval-row { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .transport-route-form,
  .transport-vehicle-form,
  .transport-assign-form,
  .transport-route-pickup-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .transport-route-count-panel {
    grid-template-columns: 1fr;
  }
  .route-pickup-report-head {
    grid-template-columns: 1fr;
  }
  .route-pickup-report-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .smart-bus-setup {
    grid-template-columns: 1fr;
  }
  .transport-route-count-summary {
    grid-template-columns: 1fr;
  }
  .timetable-builder-head,
  .timetable-builder-row { grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.2fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(100px, .65fr) 62px; }
  .timetable-builder-saved-row { grid-template-columns: minmax(90px, .8fr) minmax(60px, .55fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(115px, .85fr) 72px; overflow-x: auto; }
  .class-section-setup-layout { grid-template-columns: 1fr; }
  .student-user-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .id-card-tools { grid-template-columns: minmax(220px, 1fr) auto auto; }
  .security-panels-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto minmax(145px, .9fr) minmax(150px, 220px) minmax(520px, auto); }
  .topbar-system-strip { grid-column: 4; grid-row: 1; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .workspace { padding: 14px; }
  .topbar { grid-template-columns: auto 1fr; }
  .search, .topbar-system-strip { grid-column: 1 / -1; }
  .monthly-fee-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-system-strip { grid-row: auto; }
  .topbar-system-strip { justify-content: flex-start; }
  .hero-panel { padding: 18px; }
  .signal-board, .metrics, .control-strip, .kpi-grid, .module-status, .cards, .route-map { grid-template-columns: 1fr; }
  .notice-board-layout, .notice-form { grid-template-columns: 1fr; }
  .fee-form, .fee-filter-bar, .collection-history-filter, .payment-quick-total, .reminder-form, .staff-details-form, .hr-setup-form, .staff-attendance-tools, .student-user-form { grid-template-columns: 1fr; }
  .switch-line { grid-template-columns: 34px 1fr; }
  .switch-line input[type="checkbox"] { grid-column: 2; justify-self: start; }
  .student-due-access-bottom { grid-template-columns: 1fr; }
  .student-due-access-bottom .primary-action { width: 100%; }
  .smart-bus-hero { margin: -18px -18px 14px; }
  .smart-bus-hero .inline-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .smart-bus-flow { grid-template-columns: 1fr; }
  .smart-bus-flow i { display: none; }
  .smart-bus-cards { grid-template-columns: 1fr; }
  .student-user-form > label:first-child,
  .student-user-form > label:nth-child(2) { grid-column: auto; }
  .id-card-tools { grid-template-columns: 1fr; }
  .security-action-grid,
  .security-status-grid { grid-template-columns: 1fr; }
  .smart-engine-hero { align-items: stretch; flex-direction: column; }
  .smart-engine-hero-actions { justify-content: flex-start; }
  .smart-engine-layout { grid-template-columns: 1fr; }
  .smart-engine-result-header { align-items: stretch; flex-direction: column; }
  .smart-engine-score { width: 100%; }
  .smart-engine-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-health-summary,
  .role-health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timetable-selector-row,
  .timetable-criteria-grid,
  .timetable-quick-row,
  .timetable-interval-row,
  .timetable-builder-head,
  .timetable-builder-row { grid-template-columns: 1fr; }
  .class-section-setup-form { grid-template-columns: 1fr; }
  .homework-form { grid-template-columns: 1fr; }
  .subject-assign-form { grid-template-columns: 1fr; }
  .subject-assign-list { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .transport-village-form, .transport-fine-form, .transport-fine-example { grid-template-columns: 1fr; }
  .transport-route-form label,
  .transport-vehicle-form label,
  .transport-assign-form label,
  .transport-route-pickup-form label {
    grid-template-columns: 1fr;
  }
  .transport-route-form input,
  .transport-route-form select,
  .transport-vehicle-form input,
  .transport-vehicle-form select,
  .transport-assign-form input,
  .transport-assign-form select,
  .transport-route-pickup-form input,
  .transport-route-pickup-form select {
    width: 100%;
  }
  .transport-route-count-panel label {
    grid-template-columns: 1fr;
  }
  .route-pickup-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .route-pickup-tabs button {
    width: 100%;
  }
  .route-pickup-report-summary {
    grid-template-columns: 1fr;
  }
  .staff-address-field { grid-column: auto; }
  .collection-row { grid-template-columns: 1fr; }
  .split-payment-box { grid-template-columns: 1fr; }
  .collection-module .primary-action { margin-left: 0; }
  .class-fee-panel .fee-master-form label { grid-template-columns: 1fr; }
  .class-fee-panel .fee-master-form button { margin-left: 0; }
  .student-fee-card, .ledger-summary, .ledger-profile-card, .ledger-info-grid { grid-template-columns: 1fr; }
  .academic-profile-card,
  .academic-profile-grid { grid-template-columns: 1fr; }
  .academic-profile-photo { width: 104px; height: 122px; }
  .ledger-info-grid div:nth-child(5),
  .ledger-info-grid div:nth-child(6) { grid-column: auto; }
  .modal-backdrop { padding: 10px; }
  .admission-form fieldset { grid-template-columns: 1fr; }
  .admission-form fieldset.other-fees-fieldset { grid-template-columns: 1fr; }
  .day-boarding-row, .transport-fee-row, .robotics-fee-row { grid-template-columns: 1fr; }
  .admission-form .wide { grid-column: auto; }
  .photo-upload { grid-template-columns: 78px minmax(0, 1fr); }
  .photo-preview { width: 78px; height: 98px; }
  .month-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .combined-student-strip,
  .combined-entry-grid,
  .combined-total-card { grid-template-columns: 1fr; }
  .combined-fee-head,
  .combined-fee-row {
    grid-template-columns: minmax(120px, 1.2fr) .75fr .7fr .8fr;
    gap: 6px;
    font-size: .74rem;
  }
  .receipt-preview-grid { grid-template-columns: 1fr; }
  .receipt-preview-banner { grid-template-columns: 1fr; }
  .service-checks { grid-template-columns: 1fr; }
  .service-checks label { width: 100%; justify-content: flex-start; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .bars { gap: 7px; }
  .bar span { writing-mode: vertical-rl; justify-self: center; }
}
