:root {
  --primary: #0f766e;
  --secondary: #1d4ed8;
  --accent: #f59e0b;
  --ink: #0f172a;
}
body {
  background:
    radial-gradient(1000px 500px at 90% -10%, #a7f3d0 0%, transparent 50%),
    radial-gradient(800px 420px at 0% 0%, #bfdbfe 0%, transparent 45%),
    #f8fafc;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
}
.login-language-picker,
.app-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #e8f3f1;
  border: 1px solid #c7e4df;
}
.login-language-picker {
  display: flex;
  width: 100%;
}
.login-language-picker label {
  flex: 1;
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  background: #fff;
}
.login-language-picker input {
  accent-color: var(--primary);
}
.app-language-switch a {
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.app-language-switch a.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, .22);
}
@media (max-width: 575.98px) {
  .app-topbar {
    flex-wrap: wrap;
  }
  .app-language-switch {
    order: 3;
    margin-inline-start: auto;
  }
  .app-language-switch a {
    min-width: 48px;
    padding: 5px 8px;
  }
}
.app-layout {
  display: flex;
  min-height: 100vh;
}
.app-sidebar {
  width: 290px;
  flex: 0 0 290px;
  background: linear-gradient(180deg, #0f172a 0%, #102a63 45%, #0f766e 100%);
  color: #fff;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width .22s ease, flex-basis .22s ease, transform .22s ease;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
  z-index: 1000;
}
.app-main {
  min-width: 0;
  flex: 1 1 auto;
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 20px 0;
}
.app-topbar-title {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.app-topbar-title strong {
  font-size: 18px;
  color: #0f172a;
}
.app-topbar-title span {
  font-size: 13px;
  color: #475569;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-brand-text strong {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-brand-text span {
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.sidebar-logo,
.sidebar-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sidebar-logo-fallback {
  font-size: 22px;
}
.sidebar-toggle {
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.desktop-toggle {
  display: none;
}
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 14px;
  transition: .18s ease;
  white-space: nowrap;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.sidebar-link i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex: 0 0 22px;
}
.sidebar-user {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.sidebar-user-meta,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-meta {
  margin-bottom: 10px;
}
.sidebar-user-meta i,
.sidebar-logout i {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
.sidebar-user-text {
  display: flex;
  flex-direction: column;
}
.sidebar-user-text strong {
  font-size: 14px;
}
.sidebar-user-text span {
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.sidebar-logout {
  text-decoration: none;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}
.app-content {
  padding-top: 12px !important;
}
.app-footer {
  padding: 10px 20px 18px;
  text-align: center;
  color: #475569;
  font-size: 14px;
}
@media (min-width: 992px) {
  .desktop-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-toggle {
    display: none;
  }
  .topbar-toggle {
    display: inline-flex;
  }
  body.sidebar-collapsed .app-sidebar {
    width: 94px;
    flex-basis: 94px;
    padding-left: 10px;
    padding-right: 10px;
  }
  body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
  }
  body.sidebar-collapsed .sidebar-brand-text,
  body.sidebar-collapsed .sidebar-link span,
  body.sidebar-collapsed .sidebar-user-text,
  body.sidebar-collapsed .sidebar-logout span,
  body.sidebar-collapsed .desktop-toggle {
    display: none;
  }
  body.sidebar-collapsed .sidebar-brand-link,
  body.sidebar-collapsed .sidebar-link,
  body.sidebar-collapsed .sidebar-user-meta,
  body.sidebar-collapsed .sidebar-logout {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .dashboard-hero,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-sidebar {
    position: fixed;
    right: 0;
    transform: translateX(100%);
    width: 290px;
    max-width: calc(100vw - 32px);
  }
  body.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }
  .app-topbar {
    padding: 14px 14px 0;
  }
  .topbar-toggle {
    display: none;
  }
  .student-filters {
    grid-template-columns: 1fr;
  }
  .fee-due-filters {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .dashboard-hero {
    padding: 18px;
    border-radius: 22px;
  }
  .dashboard-title {
    font-size: 28px;
  }
  .dashboard-hero-grid,
  .dashboard-stats,
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-panel-head,
  .dashboard-feed-item,
  .dashboard-grade-item {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-feed-item-side,
  .dashboard-grade-item-side {
    text-align: right;
  }
}
.top-nav {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  backdrop-filter: blur(6px);
  padding: 8px 0;
}
.top-nav .nav-link,
.top-nav .navbar-brand { color: #fff !important; }
.top-nav .navbar-brand {
  font-size: 18px;
  line-height: 1.1;
  max-width: calc(100% - 130px);
}
.top-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px !important;
  border-radius: 12px;
  transition: .2s ease;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.top-nav .nav-link:hover {
  background: rgba(255,255,255,.16);
}
.top-nav .navbar-nav {
  gap: 6px;
  padding-top: 8px;
}
.top-nav .navbar-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-nav .nav-link i {
  font-size: 16px;
}
.top-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}
.top-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .16);
}
.top-nav .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
.top-nav .navbar-collapse {
  max-height: 76vh;
  overflow-y: auto;
  margin-top: 10px;
  background: rgba(7, 18, 47, .22);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 12px;
}
.top-nav-user {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 10px;
  padding-top: 12px;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .top-nav {
    padding: 10px 0;
  }
  .top-nav .navbar-brand {
    font-size: 20px;
  }
  .top-nav .nav-link {
    font-size: 15px;
  }
}
.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.45);
}
.card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.card .card-body { padding: 1.2rem; }
.stat-box {
  background: linear-gradient(150deg, #fff, #eef6ff);
  border-right: 5px solid #0ea5e9;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, .06);
}
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(135deg, #0f172a, #123a7a 52%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .16);
}
.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.dashboard-hero::before {
  width: 260px;
  height: 260px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.dashboard-hero::after {
  width: 280px;
  height: 280px;
  bottom: -170px;
  right: -60px;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%);
}
.dashboard-hero-copy,
.dashboard-hero-side {
  position: relative;
  z-index: 1;
}
.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.dashboard-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.dashboard-subtitle {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.95;
}
.dashboard-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 800;
}
.dashboard-hero-side {
  display: grid;
  gap: 12px;
}
.dashboard-spotlight {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.dashboard-spotlight span,
.dashboard-spotlight small {
  display: block;
}
.dashboard-spotlight span {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}
.dashboard-spotlight strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 32px;
  font-weight: 900;
}
.dashboard-spotlight small {
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.dashboard-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-mini-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.14);
}
.dashboard-mini-card strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}
.dashboard-mini-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
  border: 1px solid rgba(214, 228, 241, .95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.dashboard-stat-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 4px;
  background: var(--dashboard-tone, linear-gradient(90deg, #0f766e, #38bdf8));
}
.dashboard-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
  color: #0f3d74;
  font-size: 22px;
  margin-bottom: 14px;
}
.dashboard-stat-copy span,
.dashboard-stat-copy small {
  display: block;
}
.dashboard-stat-copy span {
  color: #516275;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.dashboard-stat-copy strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}
.dashboard-stat-copy small {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}
.tone-students { --dashboard-tone: linear-gradient(90deg, #0ea5e9, #2563eb); }
.tone-employees { --dashboard-tone: linear-gradient(90deg, #14b8a6, #0f766e); }
.tone-income { --dashboard-tone: linear-gradient(90deg, #22c55e, #16a34a); }
.tone-expense { --dashboard-tone: linear-gradient(90deg, #f97316, #ef4444); }
.tone-net { --dashboard-tone: linear-gradient(90deg, #a855f7, #6366f1); }
.tone-grades { --dashboard-tone: linear-gradient(90deg, #f59e0b, #d97706); }
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.dashboard-left-column,
.dashboard-right-column {
  display: grid;
  gap: 18px;
}
.dashboard-panel {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.95));
  border: 1px solid rgba(214, 228, 241, .95);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
}
.dashboard-panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0f2f57;
}
.dashboard-panel-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}
.dashboard-action-card {
  text-decoration: none;
  color: #0f172a;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(214,228,241,.95);
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(15,23,42,.08);
  border-color: #93c5fd;
}
.dashboard-action-card i {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  color: #0f3d74;
  font-size: 20px;
  margin-bottom: 12px;
}
.dashboard-action-card strong,
.dashboard-action-card span {
  display: block;
}
.dashboard-action-card strong {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
}
.dashboard-action-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}
.dashboard-table-wrap {
  padding: 0 12px 12px;
}
.dashboard-table thead th {
  background: linear-gradient(180deg, #edf5ff, #f7fbff);
  color: #12344d;
  font-size: 13px;
}
.dashboard-table tbody td {
  font-size: 13px;
}
.dashboard-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.dashboard-status-chip.warning {
  background: #fef3c7;
  color: #92400e;
}
.dashboard-status-chip.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.dashboard-alert-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}
.dashboard-alert-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(214,228,241,.95);
  background: linear-gradient(135deg, #fff, #f8fbff);
}
.dashboard-alert-card strong,
.dashboard-alert-card span {
  display: block;
}
.dashboard-alert-card strong {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}
.dashboard-alert-card span {
  font-size: 13px;
  font-weight: 700;
}
.dashboard-alert-card.danger {
  background: linear-gradient(135deg, #fff5f5, #fff);
  color: #b91c1c;
}
.dashboard-alert-card.warning {
  background: linear-gradient(135deg, #fff9eb, #fff);
  color: #9a3412;
}
.dashboard-alert-card.info {
  background: linear-gradient(135deg, #eff6ff, #fff);
  color: #1d4ed8;
}
.dashboard-feed,
.dashboard-grade-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}
.dashboard-feed-item,
.dashboard-grade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(214,228,241,.95);
  background: linear-gradient(135deg, #fff, #f8fbff);
}
.dashboard-feed-item-main strong,
.dashboard-grade-item strong,
.dashboard-feed-item-side strong,
.dashboard-grade-item-side strong {
  display: block;
  font-weight: 900;
}
.dashboard-feed-item-main strong,
.dashboard-grade-item strong {
  color: #0f2f57;
  font-size: 14px;
}
.dashboard-feed-item-main span,
.dashboard-feed-item-side span,
.dashboard-grade-item span,
.dashboard-grade-item-side span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.dashboard-feed-item-side,
.dashboard-grade-item-side {
  text-align: left;
}
.dashboard-feed-item-side strong,
.dashboard-grade-item-side strong {
  color: #0f766e;
  font-size: 15px;
}
@media (max-width: 991.98px) {
  .dashboard-hero,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main-grid {
    gap: 14px;
  }
  .dashboard-panel-head {
    flex-wrap: wrap;
  }
  .dashboard-panel-head .btn {
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  .dashboard-hero {
    padding: 16px;
    border-radius: 22px;
    gap: 14px;
  }
  .dashboard-title {
    font-size: 26px;
    line-height: 1.2;
  }
  .dashboard-subtitle {
    font-size: 13px;
    line-height: 1.85;
  }
  .dashboard-hero-meta,
  .dashboard-hero-grid,
  .dashboard-stats,
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
  }
  .dashboard-spotlight {
    padding: 16px;
  }
  .dashboard-spotlight strong {
    font-size: 26px;
  }
  .dashboard-mini-card,
  .dashboard-stat-card,
  .dashboard-action-card,
  .dashboard-alert-card,
  .dashboard-feed-item,
  .dashboard-grade-item {
    padding: 14px;
  }
  .dashboard-stat-copy strong {
    font-size: 22px;
  }
  .dashboard-panel {
    border-radius: 20px;
  }
  .dashboard-panel-head,
  .dashboard-feed-item,
  .dashboard-grade-item {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-feed-item-side,
  .dashboard-grade-item-side {
    text-align: right;
  }
  .dashboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 575.98px) {
  .dashboard-hero::before,
  .dashboard-hero::after {
    display: none;
  }
  .dashboard-title {
    font-size: 22px;
  }
  .dashboard-eyebrow {
    font-size: 11px;
    padding: 6px 10px;
  }
  .dashboard-panel-head {
    padding: 14px 14px 10px;
  }
  .dashboard-actions-grid,
  .dashboard-alert-list,
  .dashboard-feed,
  .dashboard-grade-list {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 14px;
  }
  .dashboard-table thead th,
  .dashboard-table tbody td {
    font-size: 12px;
    white-space: nowrap;
  }
}
.form-control,
.form-select,
.bootstrap-select .dropdown-toggle {
  border-radius: 12px !important;
  border: 1px solid #cbd5e1;
  padding: .58rem .8rem;
  background-color: #fff;
  min-height: 42px;
}
.form-control:focus,
.form-select:focus,
.bootstrap-select .dropdown-toggle:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 .2rem rgba(34,197,94,.15);
}
.table {
  border-radius: 12px;
  overflow: hidden;
}
.table thead th {
  background: linear-gradient(180deg, #e2e8f0, #f1f5f9);
  color: #0f172a;
  font-weight: 700;
  border-bottom: 0;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #fafcff;
}
.table > :not(caption) > * > * { vertical-align: middle; }
.student-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .9fr) 180px;
  gap: 12px;
  align-items: stretch;
}
.student-filter-item {
  display: flex;
  align-items: stretch;
}
.student-filter-item .form-control,
.student-filter-item .bootstrap-select,
.student-filter-item .btn {
  width: 100% !important;
}
.student-filter-item .bootstrap-select .dropdown-toggle {
  height: 100%;
}
.fee-due-filters {
  grid-template-columns: minmax(260px, 1.8fr) minmax(170px, 1fr) minmax(170px, 1fr) 52px 52px;
}
.fee-due-filters .student-filter-item:nth-last-child(-n+2) {
  min-width: 52px;
}
.latest-receipt-filters {
  grid-template-columns: minmax(260px, 1.8fr) minmax(170px, 1fr) minmax(170px, 1fr) 52px;
}
.latest-receipt-filters .student-filter-item:last-child {
  min-width: 52px;
}
.student-table-photo,
.student-profile-photo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.student-profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}
.student-table-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
}
.student-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.student-profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.student-profile-shell {
  max-width: 1440px;
  margin: 0 auto;
}
.student-profile-hero {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(29, 78, 216, .16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #dbeafe 100%);
  box-shadow: 0 26px 65px rgba(15, 23, 42, .12);
}
.student-profile-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.student-profile-brand-logo {
  flex: 0 0 auto;
}
.student-profile-school-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, .18);
  box-shadow: 0 10px 30px rgba(30, 64, 175, .12);
}
.student-profile-school-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f3f85;
  line-height: 1.35;
}
.student-profile-school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  margin-top: .35rem;
  color: #355b94;
  font-size: .95rem;
}
.student-profile-school-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.student-profile-hero-main {
  flex: 1 1 720px;
}
.student-profile-eyebrow {
  display: inline-block;
  margin-bottom: .3rem;
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: .02em;
}
.student-profile-name {
  color: #0f172a;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 900;
}
.student-profile-subtitle {
  color: #355b94;
  font-size: 1.04rem;
  font-weight: 600;
}
.student-profile-photo-lg {
  width: 136px;
  height: 168px;
  border-radius: 24px;
  border: 4px solid rgba(191, 219, 254, .85);
  box-shadow: 0 20px 35px rgba(15, 23, 42, .18);
}
.student-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.student-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(59, 130, 246, .18);
  color: #0f3f85;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 64, 175, .08);
}
.student-profile-stat {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}
.student-profile-stat .card-body {
  padding: 1.2rem 1.25rem;
}
.student-profile-stat small {
  display: block;
  color: #476a9f;
  font-weight: 700;
  margin-bottom: .45rem;
}
.student-profile-stat h3 {
  margin: 0 0 .35rem;
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
}
.student-profile-stat span {
  color: #355b94;
  font-size: .95rem;
  font-weight: 600;
}
.student-profile-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.student-balance-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid rgba(59, 130, 246, .14);
  border-radius: 20px;
  padding: 1.1rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.student-balance-card span {
  display: block;
  color: #476a9f;
  font-weight: 700;
  margin-bottom: .45rem;
}
.student-balance-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 900;
}
.student-balance-card.danger {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border-color: rgba(225, 29, 72, .14);
}
.shop-shell {
  max-width: 1480px;
  margin: 0 auto;
}
.shop-hero {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, .16), transparent 30%),
    radial-gradient(circle at left bottom, rgba(34, 197, 94, .16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f0fdf4 48%, #eff6ff 100%);
  box-shadow: 0 26px 65px rgba(15, 23, 42, .1);
}
.shop-eyebrow {
  color: #0f766e;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.shop-title {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 900;
  color: #0f172a;
}
.shop-stat-card {
  height: 100%;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  border: 1px solid rgba(148, 163, 184, .14);
}
.shop-stat-card small {
  display: block;
  margin-bottom: .4rem;
  color: #476a9f;
  font-weight: 700;
}
.shop-stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: .35rem;
}
.shop-stat-card span {
  color: #355b94;
  font-weight: 600;
  font-size: .94rem;
}
.shop-panel {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
.shop-panel .card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.2rem;
}
.shop-panel .card-header h5 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.shop-panel .card-body {
  padding: 1.2rem;
}
.shop-panel .form-label {
  font-weight: 700;
  color: #334155;
  margin-bottom: .45rem;
}
.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.shop-form-field {
  min-width: 0;
}
.shop-form-field-full {
  grid-column: 1 / -1;
}
.shop-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.shop-sale-form-grid {
  display: block;
}
.shop-sale-form-grid > .shop-form-field,
.shop-sale-form-grid > .shop-sale-section,
.shop-sale-form-grid > .shop-form-actions {
  margin-bottom: 14px;
}
.shop-sale-form-grid > .shop-form-actions:last-child,
.shop-sale-form-grid > .shop-sale-section:last-child {
  margin-bottom: 0;
}
.shop-sale-section {
  width: 100%;
}
.shop-single-sale-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.shop-batch-sale-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-batch-sale-section .shop-form-field,
.shop-batch-sale-section .shop-form-actions {
  width: 100%;
}
.shop-batch-sale-section .shop-form-actions {
  justify-content: flex-end;
}
.shop-panel .form-control,
.shop-panel .form-select,
.shop-panel .bootstrap-select,
.shop-panel .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
}
.shop-panel select.selectpicker {
  display: none !important;
}
.shop-panel .bootstrap-select > .dropdown-toggle {
  min-height: 44px;
  padding-top: .58rem;
  padding-bottom: .58rem;
  display: flex;
  align-items: center;
}
.shop-panel .bootstrap-select .filter-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.shop-panel .bootstrap-select .dropdown-menu {
  border-radius: 14px;
  border-color: #dbeafe;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
}
.shop-panel .bootstrap-select .bs-searchbox {
  padding: .65rem;
}
.shop-panel .bootstrap-select .bs-searchbox .form-control {
  min-height: 40px;
}
.shop-panel .btn {
  min-height: 44px;
}
.batch-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(120px, .9fr) minmax(120px, .9fr) minmax(120px, .9fr) 58px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.batch-sale-col {
  min-width: 0;
}
.batch-sale-col .form-control,
.batch-sale-col .form-select {
  width: 100% !important;
}
.batch-sale-col .bootstrap-select,
.batch-sale-col .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
}
.batch-sale-col-item {
  min-width: 0;
}
.batch-sale-col-action .btn {
  min-height: 42px;
}
.shop-filter-bar {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
.shop-filter-item {
  min-width: 0;
}
.shop-filter-item .form-control,
.shop-filter-item .form-select,
.shop-filter-item .bootstrap-select,
.shop-filter-item .btn {
  width: 100% !important;
}
.shop-filter-item.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 .9rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 14px;
  min-height: 46px;
}
.shop-filter-item.search-box i {
  color: #64748b;
  flex: 0 0 auto;
}
.shop-filter-item.search-box .form-control {
  border: 0;
  box-shadow: none !important;
  padding: 0;
  min-height: auto;
  background: transparent;
}
.inventory-filter-bar {
  grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1fr);
}
.sales-filter-bar {
  grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1fr);
}
.library-shell {
  max-width: 1480px;
  margin: 0 auto;
}
.library-hero {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, .14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 42%, #eefbf4 100%);
  box-shadow: 0 26px 65px rgba(15, 23, 42, .1);
}
.library-eyebrow {
  color: #0f766e;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.library-title {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 900;
  color: #0f172a;
}
.library-stat-card {
  height: 100%;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  border: 1px solid rgba(148, 163, 184, .14);
}
.library-stat-card small {
  display: block;
  margin-bottom: .4rem;
  color: #476a9f;
  font-weight: 700;
}
.library-stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: .35rem;
}
.library-stat-card span {
  color: #355b94;
  font-weight: 600;
  font-size: .94rem;
}
.library-panel {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
.library-panel .card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #eefbf4 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.2rem;
}
.library-panel .card-header h5 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.library-panel .card-body {
  padding: 1.2rem;
}
.library-panel .form-label {
  font-weight: 700;
  color: #334155;
  margin-bottom: .45rem;
}
.library-panel .form-control,
.library-panel .form-select,
.library-panel .bootstrap-select,
.library-panel .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
}
.library-panel select.selectpicker {
  display: none !important;
}
.library-panel .bootstrap-select > .dropdown-toggle {
  min-height: 44px;
  padding-top: .58rem;
  padding-bottom: .58rem;
}
.library-panel .bootstrap-select .filter-option {
  display: flex;
  align-items: center;
}
.library-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.library-form-field {
  min-width: 0;
}
.library-form-field-full {
  grid-column: 1 / -1;
}
.library-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.library-panel .btn {
  min-height: 44px;
}
.library-filter-bar {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
.library-filter-item {
  min-width: 0;
}
.library-filter-item .form-control,
.library-filter-item .form-select,
.library-filter-item .btn {
  width: 100% !important;
}
.library-filter-item.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 .9rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 14px;
  min-height: 46px;
}
.library-filter-item.search-box i {
  color: #64748b;
  flex: 0 0 auto;
}
.library-filter-item.search-box .form-control {
  border: 0;
  box-shadow: none !important;
  padding: 0;
  min-height: auto;
  background: transparent;
}
.library-books-filter {
  grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1fr);
}
.library-loans-filter {
  grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1fr);
}
.attendance-shell {
  max-width: 1480px;
  margin: 0 auto;
}
.attendance-hero {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, .16), transparent 30%),
    radial-gradient(circle at left bottom, rgba(37, 99, 235, .14), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 42%, #eff6ff 100%);
  box-shadow: 0 26px 65px rgba(15, 23, 42, .1);
}
.attendance-eyebrow {
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.attendance-title {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  font-weight: 900;
  color: #0f172a;
}
.attendance-stat-card {
  height: 100%;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  border: 1px solid rgba(148, 163, 184, .14);
}
.attendance-stat-card small {
  display: block;
  margin-bottom: .4rem;
  color: #476a9f;
  font-weight: 700;
}
.attendance-stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: .35rem;
}
.attendance-stat-card span {
  color: #355b94;
  font-weight: 600;
  font-size: .94rem;
}
.attendance-panel {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
.attendance-panel .card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.2rem;
}
.attendance-panel .card-header h5 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.attendance-panel .card-body {
  padding: 1.2rem;
}
.attendance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.attendance-form-field {
  min-width: 0;
}
.attendance-form-field-full {
  grid-column: 1 / -1;
}
.attendance-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.attendance-method-panel {
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.attendance-auto-box {
  border-radius: 16px;
  padding: .95rem 1rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.attendance-auto-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .35rem;
}
.attendance-auto-message {
  color: #334155;
  font-size: .95rem;
}
.attendance-auto-box.is-waiting {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.attendance-auto-box.is-processing {
  background: #fef3c7;
  border-color: #fcd34d;
}
.attendance-auto-box.is-success {
  background: #ecfccb;
  border-color: #86efac;
}
.attendance-auto-box.is-error {
  background: #fff1f2;
  border-color: #fda4af;
}
.attendance-finger-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.attendance-panel .selectpicker {
  display: none !important;
}
.attendance-panel .bootstrap-select,
.attendance-panel .bootstrap-select > .dropdown-toggle,
.attendance-panel .form-control,
.attendance-panel .form-select {
  width: 100% !important;
}
.attendance-panel .bootstrap-select > .dropdown-toggle {
  min-height: 44px;
  padding-top: .58rem;
  padding-bottom: .58rem;
}
.attendance-panel .bootstrap-select .filter-option {
  display: flex;
  align-items: center;
}
.attendance-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1fr);
  gap: 12px;
  align-items: stretch;
}
.attendance-filter-item {
  min-width: 0;
}
.attendance-filter-item .form-control,
.attendance-filter-item .form-select {
  width: 100% !important;
}
.attendance-filter-item.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 .9rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 14px;
  min-height: 46px;
}
.attendance-filter-item.search-box i {
  color: #64748b;
  flex: 0 0 auto;
}
.attendance-filter-item.search-box .form-control {
  border: 0;
  box-shadow: none !important;
  padding: 0;
  min-height: auto;
  background: transparent;
}
body.attendance-kiosk .app-sidebar,
body.attendance-kiosk .app-topbar,
body.attendance-kiosk .top-nav {
  display: none !important;
}
body.attendance-kiosk .app-main {
  width: 100%;
}
body.attendance-kiosk .app-content {
  padding: 1rem !important;
}
.attendance-shell-auto .attendance-hero {
  margin-bottom: 1rem !important;
}
.attendance-kiosk-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
.attendance-kiosk-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.attendance-kiosk-photo {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #dbeafe;
  background: #fff;
}
.attendance-kiosk-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #64748b;
}
.attendance-kiosk-meta {
  display: grid;
  gap: .45rem;
}
.attendance-kiosk-name {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #0f172a;
}
.attendance-kiosk-grade {
  font-size: 1.05rem;
  color: #355b94;
  font-weight: 700;
}
.attendance-kiosk-barcode {
  font-size: 1.1rem;
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: .04em;
}
.attendance-panel .attendance-kiosk-card {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .shop-form-grid {
    grid-template-columns: 1fr;
  }
  .shop-single-sale-section {
    grid-template-columns: 1fr;
  }
  .batch-sale-row {
    grid-template-columns: 1fr;
  }
  .batch-sale-col-action .btn,
  .shop-single-sale-section .shop-form-actions .btn {
    width: 100%;
  }
  .shop-form-field-full,
  .shop-form-actions {
    grid-column: auto;
  }
  .inventory-filter-bar,
  .sales-filter-bar {
    grid-template-columns: 1fr;
  }
  .library-form-grid {
    grid-template-columns: 1fr;
  }
  .library-form-field-full,
  .library-form-actions {
    grid-column: auto;
  }
  .library-books-filter,
  .library-loans-filter {
    grid-template-columns: 1fr;
  }
  .attendance-form-grid,
  .attendance-filter-bar {
    grid-template-columns: 1fr;
  }
  .attendance-form-field-full,
  .attendance-form-actions {
    grid-column: auto;
  }
  .attendance-kiosk-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 1399.98px) {
  .batch-sale-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .batch-sale-col-item {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .student-profile-meta {
    grid-template-columns: 1fr;
  }
  .student-profile-school-name {
    font-size: 1.35rem;
  }
  .student-profile-balance-grid {
    grid-template-columns: 1fr;
  }
}
.btn {
  border-radius: 12px;
}
.btn-primary {
  background: linear-gradient(130deg, #16a34a, #0284c7);
  border: 0;
}
.btn-primary:hover {
  filter: brightness(.95);
}
.login-page {
  background: linear-gradient(145deg, #e0f2fe, #ecfccb);
}
.login-card { border-radius: 18px; }
.badge-soft {
  background: #e2e8f0;
  color: #0f172a;
}
.id-card {
  width: 340px;
  border: 2px solid #0f766e;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.id-photo {
  width: 95px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.report-head {
  background: linear-gradient(120deg, #ecfeff, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px;
}
.report-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.student-card-sheet {
  width: 640px;
  height: 980px;
  margin: 14px auto;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(160deg, #1e88e5 0%, #0f4ca5 45%, #0b2f6b 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}
.student-card-content {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  top: 24px;
  bottom: 24px;
  padding: 18px 20px 178px;
  border-radius: 220px 24px 180px 24px;
  background: linear-gradient(165deg, #2a8cf0 0%, #145fbe 48%, #0b3f8a 100%);
  display: flex;
  flex-direction: column;
}
.card-wave {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}
.card-wave-top {
  width: 680px;
  height: 380px;
  top: -190px;
  right: -160px;
  background: radial-gradient(circle at 30% 60%, #43a5ff, #0f5ab8 70%);
  transform: rotate(-12deg);
}
.card-wave-top-2 {
  width: 620px;
  height: 320px;
  top: -165px;
  right: -200px;
  background: radial-gradient(circle at 20% 65%, #66b8ff, #1565c0 70%);
  opacity: .72;
  transform: rotate(-15deg);
}
.card-wave-bottom {
  width: 760px;
  height: 470px;
  bottom: -270px;
  left: -210px;
  background: radial-gradient(circle at 60% 35%, #1c79d6, #0d47a1 70%);
  transform: rotate(12deg);
}
.card-wave-bottom-2 {
  width: 730px;
  height: 450px;
  bottom: -300px;
  left: -250px;
  background: radial-gradient(circle at 65% 35%, #2f8fe9, #0f5ab8 70%);
  opacity: .7;
  transform: rotate(16deg);
}
.student-card-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
}
.student-card-logo-box {
  width: 104px;
}
.student-card-title {
  position: static;
  text-align: right;
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.2;
}
.student-card-header {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  column-gap: 16px;
  margin-bottom: 10px;
}
.student-card-photo-top {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 16px;
}
.student-card-photo {
  width: 176px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #bfdbfe;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .14);
}
.student-card-info {
  display: grid;
  gap: 13px;
}
.student-card-info-below {
  width: 100%;
  max-width: 100%;
  margin: 14px auto 0;
}
.info-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 60px;
  align-items: center;
}
.info-row span {
  color: #1e40af;
  font-weight: 700;
  font-size: 23px;
}
.info-row strong {
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}
.student-card-barcode-wrap {
  margin-top: 16px;
  text-align: center;
  margin-bottom: 52px;
}
.student-card-barcode-wrap canvas {
  width: 320px;
  max-width: 84%;
  height: 76px;
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
}
.barcode-text {
  margin-top: 4px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  font-size: 18px;
  line-height: 1.1;
}
.student-card-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(6, 28, 68, .88);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.15;
  align-self: stretch;
  overflow: hidden;
}
.student-card-footer div {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-card-sheet {
  width: 54mm;
  height: 98mm;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #0f2746 0%, #0f2746 20mm, #f8f6ef 20mm, #ffffff 100%);
  border: 2px solid #d7c48a;
  box-shadow: 0 16px 28px rgba(15, 23, 42, .18);
}
.employee-card-glow {
  position: absolute;
  border-radius: 999px;
  filter: none;
  z-index: 0;
}
.employee-card-glow-top {
  width: 100%;
  height: 3.2mm;
  top: 4.8mm;
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #e6cc7a 18%, #f4dc93 50%, #e6cc7a 82%, transparent 100%);
}
.employee-card-glow-bottom {
  width: 30mm;
  height: 30mm;
  bottom: -14mm;
  left: -10mm;
  background: radial-gradient(circle, rgba(15,39,70,.06) 0%, rgba(15,39,70,0) 72%);
}
.employee-card-stripe {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.2mm;
  border-radius: 0;
  border: 0;
  background: linear-gradient(90deg, #0f2746 0%, #173b67 45%, #0f2746 100%);
  opacity: 1;
  z-index: 0;
}
.employee-card-inner::before {
  content: "";
  position: absolute;
  top: 20mm;
  left: 4mm;
  right: 4mm;
  height: 1.2mm;
  background: linear-gradient(90deg, transparent 0%, #d7c48a 16%, #d7c48a 84%, transparent 100%);
  z-index: 0;
}
.employee-card-inner::after {
  content: "";
  position: absolute;
  top: 21.5mm;
  left: 3.3mm;
  right: 3.3mm;
  bottom: 4.2mm;
  border: 1px solid rgba(15,39,70,.08);
  border-radius: 10px;
  pointer-events: none;
}
.employee-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3mm 3mm 2.4mm;
}
.employee-card-top {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}
.employee-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.4mm;
  padding: 0 3mm;
  border-radius: 999px;
  background: #f4dc93;
  color: #0f2746;
  border: 1px solid #e7c86b;
  font-size: 7.6px;
  font-weight: 800;
  box-shadow: none;
}
.employee-card-top-brand {
  position: relative;
  z-index: 3;
  margin-top: 1.2mm;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.employee-card-logo {
  position: relative;
  z-index: 3;
  width: 8mm;
  height: 8mm;
  object-fit: contain;
  margin-bottom: .7mm;
  filter: none;
}
.employee-card-school-name {
  position: relative;
  z-index: 3;
  font-size: 8.2px;
  line-height: 1.22;
  color: #111827;
  font-weight: 800;
  max-width: 100%;
}
.employee-card-role {
  margin-top: .5mm;
  font-size: 7.2px;
  color: #f4dc93;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.employee-card-photo-box {
  display: flex;
  justify-content: center;
  margin-top: 2.5mm;
}
.employee-card-photo {
  width: 18mm;
  height: 22mm;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 14px rgba(15, 23, 42, .12);
  background: #fff;
}
.employee-card-name {
  margin-top: 1.5mm;
  text-align: center;
  color: #0f2746;
  font-size: 9.6px;
  font-weight: 900;
  line-height: 1.2;
}
.employee-card-code {
  text-align: center;
  color: #9b7a25;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
  margin-top: .4mm;
}
.employee-card-info {
  margin-top: 1.8mm;
  display: grid;
  gap: 1mm;
}
.employee-info-row {
  display: grid;
  grid-template-columns: 13mm 1fr;
  align-items: center;
  min-height: 6.3mm;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 1.9mm;
  box-shadow: none;
}
.employee-info-row span {
  color: #123b67;
  font-size: 6.8px;
  font-weight: 800;
}
.employee-info-row strong {
  text-align: center;
  color: #0f172a;
  font-size: 7.1px;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: plaintext;
}
.employee-card-barcode-wrap {
  margin-top: 1.2mm;
  text-align: center;
}
.employee-card-barcode-wrap canvas {
  width: 36.5mm;
  height: 8.8mm;
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7c48a;
  border-radius: 6px;
  padding: 0;
}
.employee-card-footer {
  margin-top: 1.4mm;
  text-align: center;
  color: #475569;
  font-size: 6.9px;
  font-weight: 800;
  line-height: 1.45;
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body {
    background: #fff !important;
    margin: 0 !important;
  }
  .app-sidebar,
  .app-topbar,
  .top-nav,
  .no-print,
  main > .alert {
    display: none !important;
  }
  .app-layout,
  .app-main,
  .app-content,
  main.container-fluid {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .app-main {
    min-width: 100% !important;
  }
  .student-card-sheet {
    width: 210mm;
    height: 297mm;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .employee-card-sheet {
    margin: 0 auto;
    box-shadow: none !important;
  }
  .employee-card-sheet,
  .employee-card-glow,
  .employee-card-stripe,
  .employee-card-inner,
  .employee-card-inner::before,
  .employee-card-inner::after,
  .employee-card-badge,
  .employee-card-logo,
  .employee-card-school-name,
  .employee-card-role,
  .employee-card-photo,
  .employee-card-name,
  .employee-card-code,
  .employee-info-row,
  .employee-card-barcode-wrap canvas,
  .employee-card-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .student-profile-shell {
    max-width: 100%;
    padding: 0;
  }
  .student-profile-hero,
  .student-profile-stat,
  .student-balance-card,
  .student-profile-shell .card {
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #dbe3f1 !important;
  }
  .student-profile-school-logo,
  .student-profile-photo-lg {
    box-shadow: none !important;
  }
  .student-chip {
    box-shadow: none !important;
    border-color: #dbe3f1 !important;
  }
  .student-profile-balance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.student-library-print-card {
  border: 1px solid rgba(13, 63, 143, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.student-library-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.student-library-report-student {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-library-report-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.student-library-report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media print {
  .student-library-print-card {
    border: 1px solid #dbe4ed;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .student-library-report-head {
    margin-bottom: 10mm;
  }
}

.attendance-shell-minimal {
  max-width: 860px;
}
.attendance-panel-minimal {
  border-radius: 30px;
}
.attendance-panel-minimal .card-body {
  padding: 2rem;
}
.attendance-minimal-head {
  margin-bottom: 1.5rem;
}
.attendance-title-sm {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.attendance-minimal-form {
  margin-bottom: 1.5rem;
}
.attendance-barcode-input {
  min-height: 58px;
  font-size: 1.15rem;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  box-shadow: none !important;
}
.attendance-barcode-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12) !important;
}
.attendance-kiosk-card-minimal {
  grid-template-columns: 180px 1fr;
  min-height: 220px;
}

.grade-roster-link {
  color: #0f3d74;
  font-weight: 700;
  text-decoration: none;
}

.grade-roster-link:hover {
  color: #0b63c9;
  text-decoration: underline;
}

.grade-roster-table {
  min-width: 860px;
}

.grade-roster-table thead th {
  background: #f5f9ff;
  color: #143b67;
  font-weight: 800;
  white-space: nowrap;
}

.grade-roster-input {
  min-width: 140px;
  border-radius: 10px;
  border-color: #d5dfef;
  box-shadow: none !important;
}

.grade-roster-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.12) !important;
}

.marks-year-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: #17406f;
  font-weight: 700;
}

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

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

.marks-entry-table thead th {
  background: #f4f8fd;
  color: #133b67;
  font-weight: 800;
  white-space: nowrap;
}

.marks-input {
  min-width: 100px;
  border-radius: 10px;
  border-color: #d7e1f0;
  box-shadow: none !important;
}

.marks-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.12) !important;
}

body.data-entry-mode {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(251, 191, 36, .18) 0%, transparent 45%),
    radial-gradient(960px 460px at 0% 0%, rgba(14, 165, 233, .18) 0%, transparent 48%),
    #f7fbff;
}

body.data-entry-mode .app-sidebar {
  width: 250px;
  flex-basis: 250px;
  background: linear-gradient(180deg, #0f172a 0%, #0f4c81 55%, #0f766e 100%);
}

body.data-entry-mode .sidebar-nav {
  gap: 10px;
}

body.data-entry-mode .sidebar-link {
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

body.data-entry-mode .sidebar-link.active,
body.data-entry-mode .sidebar-link:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.10));
  transform: translateY(-1px);
}

.entry-workspace {
  max-width: 1280px;
  margin: 0 auto;
}

.entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.entry-hero-copy,
.entry-hero-stats,
.entry-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.entry-hero-copy {
  border-radius: 26px;
  padding: 28px 30px;
}

.entry-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.entry-title {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: #0f172a;
}

.entry-subtitle {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.9;
}

.entry-hero-stats {
  border-radius: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.entry-stat-card {
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0f172a, #164e63);
  color: #fff;
}

.entry-stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.entry-stat-card span {
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.entry-grade-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 22px;
  padding: 18px 20px;
  min-height: 116px;
  background: linear-gradient(145deg, #ffffff, #eef7ff);
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.entry-grade-card strong {
  font-size: 20px;
  color: #0f3d74;
}

.entry-grade-card span {
  color: #64748b;
  font-size: 14px;
}

.entry-grade-card:hover,
.entry-grade-card.active {
  color: #0f172a;
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, .35);
  box-shadow: 0 18px 32px rgba(2, 132, 199, .14);
}

.entry-card {
  border-radius: 24px !important;
}

.btn-entry-primary {
  background: linear-gradient(135deg, #0f766e, #0284c7);
  border: 0;
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(2, 132, 199, .18);
}

.btn-entry-primary:hover,
.btn-entry-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0369a1);
}

@media (max-width: 991.98px) {
  .attendance-panel-minimal .card-body {
    padding: 1.2rem;
  }
  .attendance-kiosk-card-minimal {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .marks-entry-table,
  .marks-entry-table-compact {
    min-width: 100%;
  }
  .marks-entry-table thead {
    display: none;
  }
  .marks-entry-table tbody tr {
    display: block;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 12px;
    background: #fff;
  }
  .marks-entry-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 8px 4px;
    text-align: right !important;
  }
  .marks-entry-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #17406f;
    flex: 0 0 42%;
  }
  .marks-entry-table tbody td input {
    max-width: 150px;
  }
  body.data-entry-mode .app-topbar {
    padding-top: 10px;
  }
  body.data-entry-mode .app-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .entry-hero {
    grid-template-columns: 1fr;
  }
  .entry-hero-copy,
  .entry-hero-stats {
    border-radius: 20px;
    padding: 18px;
  }
  .entry-title {
    font-size: 26px;
  }
  .entry-subtitle {
    font-size: 14px;
    line-height: 1.8;
  }
  .btn-entry-primary {
    width: 100%;
  }
  .entry-card .card-body {
    padding: 1rem;
  }
  .entry-card .form-control,
  .entry-card .btn,
  .entry-card .bootstrap-select > .dropdown-toggle {
    min-height: 48px;
    border-radius: 14px;
  }
}

