html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 15px; } }

:root {
  --app-bg: #f5f7fb;
  --app-card: #ffffff;
  --app-border: rgba(15, 23, 42, 0.10);
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-topbar: #0b1220;
  --app-topbar-2: #111a2e;
  --app-link: #2563eb;
  --app-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html { position: relative; min-height: 100%; }
body {
  margin-bottom: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 28%),
    #f4f7fb;
  color: var(--app-text);
}

.app-content-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.70));
  border-bottom: 1px solid var(--app-border);
  padding-top: 14px;
  padding-bottom: 6px;
}

.content-header h1 {
  font-size: 1.15rem;
  font-weight: 800;
}

.app-content-header__eyebrow {
  color: var(--app-link);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

.app-breadcrumb {
  gap: 6px;
  align-items: center;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(100, 116, 139, 0.7);
}

.app-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-header.navbar {
  background: linear-gradient(135deg, #0f172a, #13304f 58%, #155e75) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.main-sidebar {
  background:
    linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(15, 23, 42, 0.98)),
    #0f172a !important;
}

.brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.brand-text {
  letter-spacing: 0.04em;
}

.content-wrapper {
  background: transparent;
}

.sidebar-brand-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 10px 16px;
  padding: 14px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-panel__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc, #bfdbfe);
}

.sidebar-brand-panel__title {
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.1;
}

.sidebar-brand-panel__subtitle {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82rem;
}

.app-sidebar-nav .nav-link {
  border-radius: 12px;
  margin: 2px 8px;
  transition: all 0.18s ease;
}

.app-sidebar-nav .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.18));
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.16);
}

.sidebar-section {
  margin-left: 8px;
  margin-right: 8px;
}

.sidebar-section__toggle {
  width: calc(100% - 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.sidebar-section__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-section__title {
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
}

.sidebar-section__chevron {
  transition: transform 0.18s ease;
  color: rgba(226, 232, 240, 0.72);
}

.sidebar-section.is-open .sidebar-section__chevron {
  transform: rotate(180deg);
}

.sidebar-section__body {
  display: none;
  padding: 4px 0 2px 10px;
}

.sidebar-section.is-open .sidebar-section__body {
  display: block;
}

.sidebar-section__body .nav-link {
  margin-left: 10px;
  margin-right: 0;
  color: rgba(226, 232, 240, 0.82);
}

.sidebar-section__body .nav-link.active {
  color: #fff;
}

.sidebar-section-title {
  color: rgba(226, 232, 240, 0.56) !important;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  padding-top: 12px;
}

.sidebar-footnote {
  margin: 18px 12px 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}

.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Legacy styles from the previous layout (kept, but not required). */

/* App shell */
/* (AdminLTE handles the layout now) */

/* Sidebar */
.app-sidebar { padding: 14px 12px; }
.app-sidebar__section { margin-bottom: 18px; }
.app-sidebar__title {
  font-size: 0.75rem;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 10px 10px 8px;
}
.app-sidebar__link {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
}
.app-sidebar__link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
}
.app-sidebar__link.active {
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

/* Page patterns */
.page-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.page-subtitle {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 0.95rem;
}
.card {
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.card-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border-bottom: 1px solid var(--app-border);
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
}

/* Make scaffolded pages look professional without rewriting each view */
.form-group { margin-bottom: 1rem; }
.control-label { font-weight: 600; color: var(--app-muted); font-size: 0.9rem; }
.form-group .form-control,
.form-group .form-select { border-radius: 10px; }

.content-wrapper form .btn-primary { border-radius: 10px; }
.content-wrapper form .btn { padding-left: 14px; padding-right: 14px; }

/* Tables */
.table {
  margin-bottom: 0;
}
.table thead th {
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
  border-bottom: 1px solid var(--app-border);
}
.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

/* Links */
/* Keep links readable on admin template */
a:hover { color: #1d4ed8; }

/* Print-friendly cards */
@media print {
  .main-header, .main-sidebar, .main-footer, .content-header, .btn, .nav, form, .no-print, .print-toolbar { display: none !important; }
  .content-wrapper { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: none !important; }
}

body.is-printing .no-print,
body.is-printing .print-toolbar {
  display: none !important;
}

.id-card, .certificate {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.id-card__top {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px dashed var(--app-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.id-card__logo { width: 44px; height: 44px; object-fit: contain; }
.id-card__school { font-weight: 800; line-height: 1.1; }
.id-card__school-hi { font-weight: 700; font-size: 0.9rem; color: var(--app-muted); }
.id-card__label { font-size: 0.75rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: .06em; }
.id-card__value { font-weight: 700; color: var(--app-text); }

.certificate__header {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px dashed var(--app-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.certificate__logo { width: 64px; height: 64px; object-fit: contain; }
.certificate__school { font-weight: 900; font-size: 1.05rem; }
.certificate__school-hi { font-weight: 800; font-size: 0.95rem; color: var(--app-muted); }
.certificate__title { font-weight: 900; margin-top: 4px; }
.certificate__meta { text-align: right; font-size: 0.85rem; }
.certificate__body p { margin-bottom: 10px; line-height: 1.45; }
.certificate__signatures { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.certificate__sig { flex: 1; text-align: center; }
.certificate__sig-line { border-top: 1px solid #111; margin: 0 10%; height: 1px; }

.attendance-summary {
  overflow: hidden;
}

.attendance-summary .card-body {
  position: relative;
}

.attendance-summary__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
}

.attendance-summary__count {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 8px;
}

.attendance-summary--present {
  background: linear-gradient(135deg, #ecfdf3, #ffffff);
}

.attendance-summary--absent {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.attendance-summary--leave {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.attendance-toggle-group .btn {
  min-width: 88px;
}

.student-sheet .card-body {
  background: linear-gradient(180deg, #f7fbfc 0%, #fdfefe 100%);
}

.student-sheet .card-header {
  background: linear-gradient(180deg, #2f85b8, #2a78a5);
  color: #fff;
}

.student-sheet .card-header .fw-semibold {
  color: #fff;
}

.bulk-upload-card .card-body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.bulk-upload-card__hint {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.07);
  color: #1e3a8a;
  font-weight: 600;
}

.student-form-section {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 4px;
  padding: 10px 10px 8px;
  margin-bottom: 14px;
  background: rgba(247, 252, 252, 0.98);
}

.student-form-section__title {
  color: #b42318;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.student-sheet .form-label {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
}

.student-sheet .form-control,
.student-sheet .form-select {
  min-height: 36px;
  border-radius: 2px;
  font-size: 0.84rem;
  padding: 0.3rem 0.45rem;
  border-color: #b9c6d2;
  box-shadow: none;
  background: #fff;
}

.student-sheet textarea.form-control {
  min-height: 70px;
}

.student-address-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  padding: 8px;
  background: #fff;
  height: 100%;
}

.student-address-card__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 0.72rem;
}

.student-photo-placeholder {
  min-height: 220px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  text-align: center;
  padding: 12px;
}

.student-photo-placeholder__preview {
  width: 100%;
  min-height: 128px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.student-photo-placeholder__empty {
  color: #94a3b8;
  font-size: 2rem;
}

.student-photo-placeholder__image {
  width: 100%;
  height: 126px;
  object-fit: cover;
}

.student-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  display: grid;
  place-items: center;
}

.student-thumb__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.student-thumb__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 900;
  color: #334155;
}

.student-radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 38px;
}

.student-radio-row--compact {
  gap: 8px;
  min-height: 34px;
}

.student-sheet .form-check-label {
  font-size: 0.72rem;
}

.student-compact-check {
  min-height: 34px;
  display: flex;
  align-items: center;
}

.student-inline-check-label {
  margin-left: 0.35rem;
  color: #0f172a;
}

.student-copy-check {
  margin-bottom: 0;
}

.student-actions-col {
  width: 360px;
}

.student-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.student-actions-cell form {
  margin: 0;
}

.student-actions-cell .btn {
  justify-content: center;
}

.student-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}

.student-pagination__meta {
  font-weight: 600;
  color: var(--app-text);
}

.student-pagination__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.25), transparent 28%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #f6fbff 58%, #eef7ff);
}

.dashboard-hero__content {
  padding: 28px;
}

.dashboard-hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--app-link);
  margin-bottom: 10px;
}

.dashboard-hero__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 12px;
  max-width: 780px;
}

.dashboard-hero__text {
  font-size: 1rem;
  color: var(--app-muted);
  max-width: 640px;
  margin-bottom: 20px;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-hero__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding-inline: 18px;
}

.dashboard-hero__panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.00));
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 12px;
  align-content: center;
}

.dashboard-mini-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-mini-card__label {
  color: var(--app-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-mini-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 6px;
}

.dashboard-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.09);
}

.dashboard-stat__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.dashboard-stat__icon--sky { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.dashboard-stat__icon--amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.dashboard-stat__icon--blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.dashboard-stat__icon--emerald { background: linear-gradient(135deg, #059669, #34d399); }

.dashboard-stat__label {
  color: var(--app-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 6px;
  color: var(--app-text);
}

.dashboard-modules-card .card-body,
.dashboard-side-card .card-body {
  padding-top: 8px;
}

.dashboard-badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  color: var(--app-link);
}

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

.dashboard-module {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-module:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-module__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.10));
  color: var(--app-link);
  font-size: 1.15rem;
}

.dashboard-module__title {
  font-weight: 700;
  color: var(--app-text);
}

.dashboard-module__meta {
  color: var(--app-muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.dashboard-module__arrow {
  color: rgba(37, 99, 235, 0.7);
}

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

.dashboard-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.dashboard-metric__label {
  color: var(--app-muted);
  font-weight: 600;
}

.dashboard-metric__value {
  font-size: 1.1rem;
  font-weight: 800;
}

.dashboard-note {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  color: #1e293b;
}

.dashboard-note i {
  color: var(--app-link);
  margin-top: 2px;
}

.action-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-with-icon__glyph {
  font-size: 0.92em;
}

.scaffold-page {
  padding-bottom: 12px;
}

.scaffold-page-header {
  padding: 20px 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 26%),
    linear-gradient(135deg, #ffffff, #f6fbff 55%, #eef7ff);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
  margin-bottom: 18px;
}

.scaffold-create-btn {
  border-radius: 999px;
  padding-inline: 18px;
  font-weight: 700;
}

.scaffold-card {
  margin-bottom: 18px;
}

.scaffold-table-card {
  overflow: hidden;
}

.scaffold-table thead th:last-child,
.scaffold-table tbody td:last-child {
  width: 360px;
}

.scaffold-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.scaffold-action-link {
  border-radius: 999px;
  min-width: 76px;
  text-align: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scaffold-form-row {
  margin-top: 0.5rem;
}

.scaffold-form-col {
  max-width: 720px;
}

.scaffold-form,
.scaffold-page .row > [class*="col-"] > form {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
}

.scaffold-page .form-group {
  margin-bottom: 1.1rem;
}

.scaffold-page .form-control,
.scaffold-page .form-select {
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.12);
  min-height: 42px;
  background: rgba(255, 255, 255, 0.98);
}

.scaffold-page .form-check {
  padding-top: 8px;
}

.scaffold-page .text-danger.validation-summary-errors,
.scaffold-page [asp-validation-summary] {
  border-radius: 12px;
}

.scaffold-back-link {
  margin-top: 14px;
}

.scaffold-details-grid {
  row-gap: 10px;
}

.app-master-module .content-wrapper .content > .container-fluid {
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
}

.app-master-module .content-header.app-content-header {
  margin-bottom: 0.5rem;
}

.app-master-module .content-header h1 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.app-master-module h1 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.app-master-module h4 {
  color: var(--app-muted);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.app-master-module hr {
  margin-top: 0.9rem;
  margin-bottom: 1.1rem;
  border-color: rgba(15, 23, 42, 0.10);
  opacity: 1;
}

.app-master-module .row > [class*="col-"] > form,
.app-master-module .content-wrapper .content > .container-fluid > form,
.app-master-module .content-wrapper .content > .container-fluid .scaffold-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
}

.app-master-module .form-group {
  margin-bottom: 1rem;
}

.app-master-module .control-label,
.app-master-module .form-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.88rem;
}

.app-master-module .form-control,
.app-master-module .form-select {
  min-height: 44px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.app-master-module textarea.form-control {
  min-height: 108px;
}

.app-master-module .form-control:focus,
.app-master-module .form-select:focus {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.10);
}

.app-master-module .form-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  margin-top: 1rem;
}

.app-master-module .form-check-input {
  margin-left: 0;
  margin-top: 0;
}

.app-master-module .table-responsive {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.app-master-module .table {
  margin-bottom: 0;
}

.app-master-module .table thead th {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.77rem;
  font-weight: 800;
}

.app-master-module .table td,
.app-master-module .table th {
  vertical-align: middle;
  padding: 0.9rem 0.85rem;
}

.app-master-module .table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.app-master-module .table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.72);
}

.app-master-module .table tbody tr:hover {
  background: rgba(37, 99, 235, 0.045);
}

.app-master-module .table .btn {
  border-radius: 10px;
}

.app-master-module dl.row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px 18px 6px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.app-master-module dl.row dt {
  color: var(--app-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.app-master-module dl.row dd {
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 0.9rem;
}

.app-master-module .card {
  border-radius: 18px;
}

.app-master-module .card-header {
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
}

.app-master-module .btn {
  border-radius: 12px;
  padding-left: 14px;
  padding-right: 14px;
}

.app-master-module .btn-primary {
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.app-master-module .btn-outline-secondary,
.app-master-module .btn-outline-danger,
.app-master-module .btn-outline-primary {
  border-width: 1px;
}

.app-master-module .alert {
  border-radius: 14px;
}

.app-master-module .text-danger.validation-summary-errors,
.app-master-module [asp-validation-summary] {
  border-radius: 12px;
}

.app-master-module .scaffold-back-link {
  margin-top: 14px;
}

.staff-page .staff-form {
  display: grid;
  gap: 18px;
}

.staff-form-section {
  padding: 14px 16px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.97));
}

.staff-form-section__title {
  margin-bottom: 12px;
  color: var(--app-link);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-form .form-label {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.staff-form .form-control,
.staff-form .form-select {
  min-height: 42px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.staff-form .form-control:focus,
.staff-form .form-select:focus {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.10);
}

.staff-form .form-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  margin-top: 1.15rem;
}

.staff-form .form-check-input {
  margin-left: 0;
  margin-top: 0;
}

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

.staff-form-actions .btn {
  min-width: 132px;
}

.scaffold-details-grid dt {
  color: var(--app-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scaffold-details-grid dd {
  font-weight: 600;
  color: var(--app-text);
}

.scaffold-warning-title {
  color: #b42318;
  font-weight: 800;
  margin-bottom: 16px;
}

.scaffold-page form .btn,
.scaffold-page .btn {
  border-radius: 12px;
}

.permission-card .card-body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

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

.permission-module {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.permission-module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.permission-module__title {
  font-weight: 800;
  color: var(--app-text);
}

.permission-module__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-link);
}

.permission-actions {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.permission-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  color: var(--app-text);
}

.permission-action__checkbox {
  margin-top: 0;
}

.school-logo-preview__frame {
  min-height: 190px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}

.school-logo-preview__image {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.school-logo-preview__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--app-muted);
  font-weight: 600;
}

.school-logo-preview__empty i {
  font-size: 2rem;
}

.fee-structure-list-card .card-body,
.fee-structure-form-card .card-body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.fee-structure-heads {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.fee-structure-heads__header {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.fee-structure-heads__title {
  font-weight: 800;
  color: var(--app-text);
}

.fee-structure-heads__meta {
  color: var(--app-muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.fee-structure-heads__grid {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.fee-structure-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
}

.fee-structure-item-row__amount .form-label {
  margin-bottom: 6px;
}

.fee-amount-input {
  text-align: right;
  font-weight: 700;
}

.fee-submit-card .card-body,
.fee-quote-card .card-body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

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

.fee-mode-toggle__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  cursor: pointer;
}

.fee-mode-toggle__option.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--app-link);
}

.fee-mode-toggle__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fee-quote-summary {
  display: grid;
  gap: 12px;
}

.fee-quote-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.fee-quote-summary__row--net {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
}

.fee-quote-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 600;
}

.fee-breakup__title {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--app-text);
}

.fee-breakup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 8px;
}

.fee-qr-panel__note {
  color: var(--app-muted);
  margin-bottom: 10px;
}

.fee-qr-panel__box {
  min-height: 208px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  min-height: 42px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.45rem 0.75rem;
}

.student-sheet .ts-wrapper.single .ts-control,
.student-sheet .ts-wrapper.multi .ts-control {
  min-height: 36px;
  border-radius: 2px;
  padding: 0.3rem 0.45rem;
  border-color: #b9c6d2;
}

.ts-wrapper.focus .ts-control {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.10);
}

.ts-dropdown {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ts-dropdown .option,
.ts-option-suggestion {
  padding: 10px 12px;
}

.ts-dropdown .active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--app-link);
}

.ts-dropdown .no-results {
  padding: 10px 12px;
  color: var(--app-muted);
}

.fee-receipt-card .card-body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fee-receipt {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
}

.fee-receipt__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.fee-receipt__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fee-receipt__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.fee-receipt__school-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--app-text);
}

.fee-receipt__school-name-hi {
  font-weight: 700;
  color: var(--app-muted);
  margin-top: 2px;
}

.fee-receipt__contact {
  color: var(--app-muted);
  margin-top: 4px;
}

.fee-receipt__meta {
  text-align: right;
  min-width: 220px;
}

.fee-receipt__title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.fee-receipt__student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
}

.fee-receipt__table th,
.fee-receipt__table td {
  vertical-align: middle;
}

.fee-receipt__remarks {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fee-receipt__footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  color: var(--app-muted);
}

.fee-receipt__signature {
  min-width: 220px;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid #0f172a;
  color: var(--app-text);
  font-weight: 700;
}

.exam-admit-card-page {
  background: #d9d9d9;
  margin: 0;
}

.exam-admit-card-shell {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.exam-admit-card {
  width: min(210mm, 100%);
  background: #fff;
  border: 1px solid #8f8f8f;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  color: #111;
}

.exam-admit-card__header {
  display: grid;
  gap: 6px;
}

.exam-admit-card__brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px 6px;
  border-bottom: 1px solid #7b7b7b;
  background: #f1f1f1;
}

.exam-admit-card__logo-wrap {
  display: flex;
  justify-content: center;
}

.exam-admit-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.exam-admit-card__logo--placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #8a8a8a;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  color: #7a7a7a;
  background: #fff;
}

.exam-admit-card__brand-text {
  text-align: center;
  line-height: 1.15;
}

.exam-admit-card__school {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111;
}

.exam-admit-card__school-hi {
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #222;
}

.exam-admit-card__contact {
  margin-top: 2px;
  font-size: 0.74rem;
  color: #222;
}

.exam-admit-card__title-block {
  text-align: center;
  padding: 2px 12px 8px;
}

.exam-admit-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
}

.exam-admit-card__subtitle {
  margin-top: 2px;
  font-size: 0.82rem;
  color: #222;
}

.exam-admit-card__student-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px;
  gap: 0;
  border-top: 1px solid #8f8f8f;
  border-bottom: 1px solid #8f8f8f;
}

.exam-admit-card__info,
.exam-admit-card__photo {
  min-height: 44px;
  border-right: 1px solid #8f8f8f;
  border-bottom: 1px solid #8f8f8f;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.exam-admit-card__info--wide {
  grid-column: 1 / span 2;
}

.exam-admit-card__info-label {
  font-weight: 700;
  white-space: nowrap;
}

.exam-admit-card__info-value {
  font-weight: 600;
}

.exam-admit-card__info-divider {
  margin: 0 3px;
}

.exam-admit-card__photo {
  grid-row: 1 / span 2;
  grid-column: 3;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px;
}

.exam-admit-card__photo-title {
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
  color: #333;
  margin-bottom: 4px;
}

.exam-admit-card__photo-box {
  width: 100%;
  flex: 1 1 auto;
  min-height: 84px;
  border: 1px solid #999;
  display: grid;
  place-items: center;
  background: #f9f9f9;
  color: #848484;
  font-size: 0.88rem;
  font-weight: 700;
}

.exam-admit-card__table-wrap {
  padding: 0;
}

.exam-admit-card__table {
  margin: 0;
  border-collapse: collapse;
}

.exam-admit-card__table th,
.exam-admit-card__table td {
  border: 1px solid #8f8f8f !important;
  padding: 5px 8px;
  font-size: 0.82rem;
  vertical-align: middle;
}

.exam-admit-card__table thead th {
  background: #666;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.exam-admit-card__col-subject {
  width: 28%;
}

.exam-admit-card__col-date {
  width: 18%;
}

.exam-admit-card__col-day {
  width: 15%;
}

.exam-admit-card__col-timing {
  width: 24%;
}

.exam-admit-card__col-checked {
  width: 15%;
}

.exam-admit-card__checked {
  color: transparent;
}

.exam-admit-card__instructions {
  border-top: 1px solid #8f8f8f;
  border-bottom: 1px solid #8f8f8f;
  padding: 6px 10px 8px;
}

.exam-admit-card__section-title {
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.exam-admit-card__instruction-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.exam-admit-card__instruction-list li {
  margin-bottom: 1px;
}

.exam-admit-card__footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.exam-admit-card__footer-item {
  min-height: 76px;
  border-right: 1px solid #8f8f8f;
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

.exam-admit-card__footer-item:last-child {
  border-right: 0;
}

.exam-admit-card__footer-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.exam-admit-card__footer-value {
  font-weight: 700;
}

.exam-admit-card__footer-line {
  width: 86%;
  border-top: 1px solid #111;
  min-height: 18px;
}

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

  html, body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.exam-admit-card-page {
    margin: 0 !important;
  }

  .exam-admit-card-shell {
    padding: 0;
  }

  .exam-admit-card {
    width: 100%;
    box-shadow: none !important;
    border: 1px solid #666;
  }

  .fee-receipt-card,
  .fee-receipt {
    border: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767.98px) {
  .fee-structure-item-row {
    grid-template-columns: 1fr;
  }

  .fee-receipt__header,
  .fee-receipt__footer,
  .fee-receipt__student-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .fee-receipt__meta {
    text-align: left;
  }

  .exam-admit-card__brand {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .exam-admit-card__student-grid {
    grid-template-columns: 1fr;
  }

  .exam-admit-card__info--wide,
  .exam-admit-card__photo {
    grid-column: auto;
    grid-row: auto;
  }

  .exam-admit-card__photo {
    min-height: 150px;
  }

  .exam-admit-card__footer {
    grid-template-columns: 1fr;
  }

  .exam-admit-card__footer-item {
    border-right: 0;
    border-bottom: 1px solid #8f8f8f;
    min-height: 62px;
  }

  .exam-admit-card__footer-item:last-child {
    border-bottom: 0;
  }
}

.main-footer {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 767.98px) {
  .scaffold-page-header {
    padding: 18px 16px;
  }

  .staff-form-section {
    padding: 12px;
  }

  .staff-form-actions {
    justify-content: stretch;
  }

  .staff-form-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .scaffold-actions-cell {
    gap: 6px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero__panel {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
}
/* Fee screens arrangement */
.fee-setup-page {
  display: grid;
  gap: 16px;
}

.fee-setup-page__header {
  margin-bottom: 0;
}

.fee-setup-filter-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.fee-setup-filter {
  padding: 16px 18px;
}

.fee-setup-filter__form {
  width: 100%;
  max-width: 420px;
}

.fee-setup-filter__label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 700;
}

.fee-setup-filter__hint {
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 0.84rem;
}

.fee-setup-filter__select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.fee-setup-table-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.fee-setup-table-wrap {
  background: #fff;
  overflow: auto;
}

.fee-setup-table thead th {
  background: #f8fafc;
  color: #334155;
  text-align: center;
  font-weight: 800;
  font-size: 0.76rem;
  border-color: rgba(15, 23, 42, 0.10);
  padding: 10px 8px;
  white-space: nowrap;
}

.fee-setup-table tbody td {
  border-color: rgba(15, 23, 42, 0.10);
  padding: 10px 10px;
  height: 46px;
  background: #fff;
  vertical-align: middle;
}

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

.fee-setup-class-name {
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
}

.fee-setup-btn {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.22);
}

.fee-setup-btn:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.fee-setup-placeholder {
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
}

.fee-submission-layout {
  align-items: start;
  --fee-page-sticky-top: 14px;
}

.fee-submission-layout__main,
.fee-submission-layout__aside {
  display: flex;
}

.fee-submit-card,
.fee-quote-card {
  width: 100%;
}

.fee-submit-card .card-header,
.fee-quote-card .card-header {
  padding: 0.85rem 1rem;
}

.fee-submit-card .card-body,
.fee-quote-card .card-body {
  padding: 16px;
}

.fee-quote-card {
  position: sticky;
  top: var(--fee-page-sticky-top);
}

.fee-form-section {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
}

.fee-form-section__title {
  margin-bottom: 8px;
  color: var(--app-link);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-student-summary {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
}

.fee-student-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.fee-student-summary__item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fee-student-summary__label {
  display: block;
  margin-bottom: 4px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fee-student-summary__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.25;
}

.fee-month-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 8px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  max-height: 220px;
  overflow: auto;
}

.fee-month-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 500;
  color: var(--app-text);
  cursor: pointer;
  margin: 0;
}

.fee-month-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.fee-month-checkbox:hover {
  border-color: rgba(37, 99, 235, 0.20);
  background: rgba(37, 99, 235, 0.04);
}

.fee-quote-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.fee-quote-summary__row--net {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
}

.fee-breakup__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fee-breakup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 6px;
}

.fee-breakup__row--transport {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 191, 36, 0.08));
  border-color: rgba(249, 115, 22, 0.25);
}

.fee-student-summary__empty,
.fee-breakup__empty {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed rgba(15, 23, 42, 0.10);
  color: var(--app-muted);
  font-weight: 600;
}

.fee-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.fee-history-row__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fee-history-row__month {
  font-weight: 700;
  color: var(--app-text);
}

.fee-history-row__meta {
  color: var(--app-muted);
  font-size: 0.8rem;
}

.fee-history-row__amount {
  flex: 0 0 auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--app-link);
}

@media (max-width: 767.98px) {
  .fee-setup-filter {
    padding: 14px;
  }

  .fee-month-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 240px;
  }

  .fee-submit-card .card-body,
  .fee-quote-card .card-body {
    padding: 12px;
  }

  .fee-submit-actions {
    justify-content: stretch !important;
    flex-direction: column;
  }

  .fee-submit-actions .btn {
    width: 100%;
  }

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

  .fee-quote-card {
    position: static;
  }

  .fee-history-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Fee setup popup polish */
.fee-setup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 6000;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

.fee-setup-overlay.is-open {
  display: grid;
  place-items: center;
}

.fee-setup-overlay__panel {
  width: min(1500px, 100%);
  height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

.fee-setup-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff;
}

.fee-setup-overlay__title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.fee-setup-overlay__subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.fee-setup-overlay__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.fee-setup-overlay__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.fee-setup-overlay__frame {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #f8fbff;
}

@media (max-width: 767.98px) {
  .fee-setup-overlay {
    padding: 12px;
  }

  .fee-setup-overlay__panel {
    width: 100%;
    height: 96vh;
    border-radius: 16px;
  }

  .fee-setup-overlay__header {
    padding: 12px 14px;
  }

  .fee-setup-overlay__close {
    width: 34px;
    height: 34px;
  }
}

.popup-layout {
  margin: 0;
  background: #f8fbff;
}

.popup-layout__body {
  min-height: 100vh;
}

.popup-layout .fee-structure-modal-shell {
  min-height: 100vh;
}

/* Fee structure editor polish */
.fee-structure-form {
  display: grid;
  gap: 14px;
}

.fee-structure-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px 0;
}

.fee-structure-editor-head__eyebrow {
  color: var(--app-link);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.fee-structure-editor-head__title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--app-text);
  line-height: 1.15;
}

.fee-structure-editor-head__text {
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 0.88rem;
  max-width: 820px;
}

.fee-structure-editor-head__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fee-structure-editor-head__pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.fee-structure-validation {
  margin: 0 18px;
}

.fee-structure-grid-wrap {
  margin: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  overflow: auto;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  max-height: calc(100vh - 240px);
}

.fee-structure-grid {
  margin-bottom: 0;
  min-width: 1660px;
  border-color: rgba(15, 23, 42, 0.10);
}

.fee-structure-grid thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, #f8fafc, #edf2ff);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border-color: rgba(15, 23, 42, 0.10);
  padding: 10px 6px;
}

.fee-structure-grid tbody td {
  background: #fff;
  vertical-align: middle;
  border-color: rgba(15, 23, 42, 0.08);
  padding: 6px 6px;
  height: 42px;
}

.fee-structure-grid tbody tr:nth-child(odd) td {
  background: #f9fbff;
}

.fee-structure-grid tbody tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

.fee-col-sno {
  width: 60px;
  min-width: 60px;
}

.fee-col-head {
  width: 280px;
  min-width: 280px;
}

.fee-col-amount {
  width: 132px;
  min-width: 132px;
}

.fee-col-month {
  width: 44px;
  min-width: 44px;
}

.fee-col-status {
  width: 70px;
  min-width: 70px;
}

.fee-head-cell__name {
  font-weight: 700;
  color: #334155;
  line-height: 1.15;
  font-size: 0.82rem;
}

.fee-amount-input {
  text-align: right;
  font-weight: 800;
  min-width: 100px;
  height: 32px;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  border-color: rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.fee-amount-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.10);
}

.fee-month-toggle,
.fee-status-toggle {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #2563eb;
}

.fee-structure-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 6px;
}

.fee-structure-footer .btn-primary {
  min-width: 132px;
  border-radius: 999px;
  padding-inline: 18px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.popup-layout .fee-structure-form {
  padding-bottom: 8px;
}

@media (max-width: 767.98px) {
  .fee-structure-editor-head {
    padding: 12px 14px 0;
    flex-direction: column;
  }

  .fee-structure-grid-wrap {
    margin: 0 12px;
    max-height: calc(100vh - 220px);
  }

  .fee-structure-grid {
    min-width: 1460px;
  }

  .fee-structure-footer {
    padding: 0 14px 6px;
  }
}

/* ID card poster layout */
.id-card-toolbar .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.id-card-canvas-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.id-card-canvas-workbench__sidebar .card,
.id-card-canvas-workbench__main {
  border-radius: 18px;
}

.id-card-canvas-workbench__main {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--app-shadow);
}

.id-card-canvas-workbench__note {
  font-size: 0.84rem;
  color: var(--app-muted);
  margin-bottom: 10px;
}

.id-card-toolbox {
  display: grid;
  gap: 8px;
}

.id-card-toolbox__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
}

.id-card-toolbox__item.is-active {
  border-color: rgba(37, 99, 235, 0.30);
  background: rgba(37, 99, 235, 0.06);
}

.id-card-toolbox__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  flex: 0 0 auto;
}

.id-card-editor-canvas {
  position: relative;
  min-height: 780px;
  aspect-ratio: 0.63 / 1;
  width: min(100%, 540px);
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.60), transparent 32%),
    linear-gradient(180deg, var(--id-card-bg, #f8fafc), color-mix(in srgb, var(--id-card-bg, #f8fafc) 88%, white));
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.id-card-editor-canvas--print {
  min-height: 720px;
}

.id-card-editor-canvas::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 2px solid rgba(255,255,255,0.72);
  pointer-events: none;
}

.id-card-editor-node {
  position: absolute;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  cursor: move;
  user-select: none;
}

.id-card-editor-node.is-hidden {
  opacity: 0.24;
  border-style: solid;
  background: rgba(226, 232, 240, 0.35);
}

.id-card-editor-node--print {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: default;
}

.id-card-editor-node--print .id-card-editor-node__handle {
  display: none;
}

.id-card-editor-node--print .id-card-editor-node__body {
  display: block;
}

.id-card-print-school-header {
  padding: 0 4px;
  text-align: center;
  color: var(--id-card-text, #111827);
}

.id-card-print-school-header__name {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.id-card-print-school-header__hi {
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 2px;
}

.id-card-print-logo {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  border: 4px solid var(--id-card-theme, #dc2626);
  color: var(--id-card-theme, #dc2626);
  font-weight: 900;
}

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

.id-card-print-meta {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--id-card-text, #111827);
  text-align: center;
}

.id-card-print-heading {
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--id-card-text, #111827);
  text-align: left;
}

.id-card-print-session {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--id-card-theme, #dc2626);
  padding: 0 8px;
}

.id-card-print-photo {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
  border: 8px solid #475569;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

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

.id-card-print-photo__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
}

.id-card-print-name {
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--id-card-text, #111827);
  line-height: 1.05;
}

.id-card-print-class {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--id-card-theme, #dc2626);
}

.id-card-print-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 0.76rem;
  color: var(--id-card-text, #111827);
}

.id-card-print-row--wrap {
  grid-template-columns: 78px minmax(0, 1fr);
}

.id-card-print-row span {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.82);
}

.id-card-print-row strong {
  font-weight: 800;
  color: var(--id-card-text, #111827);
}

.id-card-editor-node.is-dragging {
  opacity: 0.88;
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.20);
  z-index: 5;
}

.id-card-editor-node__handle {
  font-weight: 900;
  color: var(--app-muted);
  letter-spacing: 0.04em;
  line-height: 1;
}

.id-card-editor-node__body {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.id-card-editor-node__title {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-card-editor-node__meta {
  font-size: 0.72rem;
  color: var(--app-muted);
}

.id-card-order-editor {
  min-width: 260px;
  max-width: 320px;
}

.id-card-order-editor__hint {
  font-size: 0.72rem;
  color: var(--app-muted);
  margin-bottom: 6px;
}

.id-card-order-editor__list {
  display: grid;
  gap: 6px;
}

.id-card-order-editor__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  cursor: grab;
}

.id-card-order-editor__item:active {
  cursor: grabbing;
}

.id-card-order-editor__item.is-dragging {
  opacity: 0.55;
  transform: scale(0.99);
}

.id-card-order-editor__item--flash {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.id-card-order-editor__handle {
  color: var(--app-muted);
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.id-card-preview {
  --id-card-columns: 3;
  --id-card-gap: 12px;
}

.id-card-grid {
  display: grid;
  gap: var(--id-card-gap);
  grid-template-columns: repeat(var(--id-card-columns), minmax(0, 1fr));
  align-items: start;
}

.id-card-poster {
  position: relative;
  overflow: hidden;
  min-height: 208px;
  aspect-ratio: 1.62 / 1;
  border: 1px solid rgba(148, 163, 184, 0.72);
  background:
    linear-gradient(135deg, var(--id-card-bg, #f8fafc), var(--id-card-bg, #f8fafc));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  --id-card-accent: #8f9db2;
  --id-card-accent-strong: #334155;
  --id-card-accent-soft: rgba(143, 157, 178, 0.16);
  color: var(--id-card-text, #111827);
}

.id-card-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 53%, rgba(16, 185, 129, 0.08) 53% 70%, transparent 70%),
    linear-gradient(135deg, transparent 0 63%, rgba(236, 72, 153, 0.08) 63% 83%, transparent 83%);
  pointer-events: none;
}

.id-card-poster__hero {
  position: relative;
  z-index: 1;
  margin: 14px 14px 8px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, var(--id-card-theme, #dc2626), var(--id-card-theme, #dc2626));
  border: 3px solid var(--id-card-theme, #dc2626);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.id-card-poster__hero-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: start;
}

.id-card-poster__school-mark {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 3px solid var(--id-card-accent);
  background: linear-gradient(180deg, #ffffff, #e2e8f0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.id-card-poster__school-mark--ghost {
  opacity: 0;
}

.id-card-poster__school-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-card-poster__school-mark-text {
  font-weight: 900;
  color: var(--id-card-accent-strong);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.id-card-poster__brand-copy {
  text-align: center;
  padding-top: 2px;
}

.id-card-poster__school {
  font-size: clamp(1rem, 2.3vw, 1.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--id-card-text, #111827);
  text-transform: capitalize;
}

.id-card-poster__school-hi {
  font-size: 0.73rem;
  color: rgba(17, 24, 39, 0.72);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 2px;
}

.id-card-poster__school-meta {
  font-size: 0.67rem;
  color: rgba(17, 24, 39, 0.72);
  line-height: 1.2;
  margin-top: 1px;
}

.id-card-poster__meta-sep {
  margin: 0 4px;
}

.id-card-poster__hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.id-card-poster__heading {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--id-card-text, #111827);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.id-card-poster__session-pill {
  min-width: 102px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.16);
  font-size: 0.74rem;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  white-space: nowrap;
}

.id-card-poster__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  padding: 18px 16px 12px;
}

.id-card-poster__photo-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.id-card-poster__photo-shell {
  width: 128px;
  height: 128px;
  padding: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
}

.id-card-poster__photo-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border: 9px solid #475569;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
}

.id-card-poster__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}

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

.id-card-poster__photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.id-card-poster__info {
  padding-top: 2px;
}

.id-card-poster__name {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--id-card-text, #111827);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.id-card-poster__subline {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--id-card-theme, #dc2626);
}

.id-card-poster__details {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.id-card-poster__detail {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  font-size: 0.8rem;
}

.id-card-poster__detail--wide {
  grid-column: span 2;
  grid-template-columns: 86px minmax(0, 1fr);
}

.id-card-poster__label {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.78);
}

.id-card-poster__value {
  font-weight: 800;
  color: var(--id-card-text, #111827);
}

.id-card-preview.size-sm .id-card-poster {
  aspect-ratio: 1.58 / 1;
}

.id-card-preview.size-sm .id-card-poster__body {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 18px 14px 10px;
}

.id-card-preview.size-sm .id-card-poster__photo-frame {
  width: 108px;
  height: 108px;
}

.id-card-preview.size-sm .id-card-poster__photo-ring {
  font-size: 1.7rem;
  border-width: 8px;
}

.id-card-preview.size-sm .id-card-poster__name {
  font-size: 1rem;
}

.id-card-preview.size-sm .id-card-poster__detail {
  font-size: 0.74rem;
}

.id-card-preview.size-sm .id-card-poster__content {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 16px 14px 10px;
}

.id-card-preview.size-sm .id-card-poster__photo-shell {
  width: 108px;
  height: 108px;
}

.id-card-preview.size-sm .id-card-poster__details {
  gap: 4px 10px;
}

.id-card-preview.size-sm .id-card-poster__detail {
  grid-template-columns: 92px minmax(0, 1fr);
}

.id-card-preview.size-md .id-card-poster {
  aspect-ratio: 1.62 / 1;
}

.id-card-preview.size-lg .id-card-poster {
  aspect-ratio: 1.68 / 1;
}

.id-card-preview.size-lg .id-card-poster__content {
  grid-template-columns: 148px minmax(0, 1fr);
  padding: 22px 18px 14px;
}

.id-card-preview.size-lg .id-card-poster__photo-shell {
  width: 138px;
  height: 138px;
}

.id-card-preview.size-lg .id-card-poster__photo-ring {
  font-size: 2.15rem;
}

.id-card-preview.size-lg .id-card-poster__name {
  font-size: 1.2rem;
}

.id-card-preview.size-lg .id-card-poster__detail {
  font-size: 0.86rem;
}

.id-card-preview.size-lg .id-card-poster__detail {
  grid-template-columns: 114px minmax(0, 1fr);
}

.id-card-preview.size-lg .id-card-poster__details {
  gap: 8px 14px;
}

.template-classic .id-card-poster {
  --id-card-accent: #2563eb;
  --id-card-accent-strong: #1d4ed8;
}

.template-classic .id-card-poster__hero {
  background: linear-gradient(180deg, #edf4ff, #dceafe);
  border-color: var(--id-card-accent);
}

.template-classic .id-card-poster__school-mark {
  border-color: var(--id-card-accent);
}

.template-classic .id-card-poster__school-mark-text,
.template-classic .id-card-poster__heading {
  color: #1d4ed8;
}

.template-classic .id-card-poster__session-pill {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(30, 64, 175, 0.25);
  color: #1d4ed8;
}

.template-classic .id-card-poster__photo-ring {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}

.template-classic .id-card-poster__label {
  color: #1e3a8a;
}

.id-card-preview--blue .id-card-poster {
  --id-card-accent: #2563eb;
  --id-card-accent-strong: #1d4ed8;
}

.id-card-preview--blue .id-card-poster__hero {
  background: linear-gradient(180deg, #edf4ff, #dbeafe);
  border-color: var(--id-card-accent);
}

.id-card-preview--blue .id-card-poster__school-mark {
  border-color: var(--id-card-accent);
}

.id-card-preview--blue .id-card-poster__school-mark-text,
.id-card-preview--blue .id-card-poster__heading {
  color: #1d4ed8;
}

.id-card-preview--blue .id-card-poster__session-pill {
  background: rgba(219, 234, 254, 0.88);
  border-color: rgba(59, 130, 246, 0.28);
  color: #1e3a8a;
}

.id-card-preview--blue .id-card-poster__photo-ring {
  border-color: #2563eb;
}

.id-card-preview--blue .id-card-poster__label {
  color: #1e3a8a;
}

.id-card-preview--emerald .id-card-poster,
.id-card-preview--green .id-card-poster {
  --id-card-accent: #0f7a4f;
  --id-card-accent-strong: #065f46;
}

.id-card-preview--emerald .id-card-poster__hero,
.id-card-preview--green .id-card-poster__hero {
  background: linear-gradient(180deg, #eefaf3, #dff3e9);
  border-color: var(--id-card-accent);
}

.id-card-preview--emerald .id-card-poster__school-mark,
.id-card-preview--green .id-card-poster__school-mark {
  border-color: var(--id-card-accent);
}

.id-card-preview--emerald .id-card-poster__school-mark-text,
.id-card-preview--green .id-card-poster__school-mark-text,
.id-card-preview--emerald .id-card-poster__heading,
.id-card-preview--green .id-card-poster__heading {
  color: #065f46;
}

.id-card-preview--emerald .id-card-poster__session-pill,
.id-card-preview--green .id-card-poster__session-pill {
  background: rgba(236, 253, 245, 0.95);
  border-color: rgba(16, 185, 129, 0.26);
  color: #065f46;
}

.id-card-preview--emerald .id-card-poster__photo-ring,
.id-card-preview--green .id-card-poster__photo-ring {
  border-color: #0f7a4f;
}

.id-card-preview--emerald .id-card-poster__label,
.id-card-preview--green .id-card-poster__label {
  color: #14532d;
}

.id-card-preview--slate .id-card-poster {
  --id-card-accent: #64748b;
  --id-card-accent-strong: #334155;
}

.id-card-preview--slate .id-card-poster__hero {
  background: linear-gradient(180deg, #eef2f7, #e2e8f0);
  border-color: var(--id-card-accent);
}

.id-card-preview--slate .id-card-poster__school-mark {
  border-color: var(--id-card-accent);
}

.id-card-preview--slate .id-card-poster__school-mark-text,
.id-card-preview--slate .id-card-poster__heading {
  color: #334155;
}

.id-card-preview--slate .id-card-poster__session-pill {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(71, 85, 105, 0.25);
  color: #334155;
}

.id-card-preview--slate .id-card-poster__photo-ring {
  border-color: #475569;
}

.template-minimal .id-card-poster {
  border-color: rgba(100, 116, 139, 0.25);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  --id-card-accent: #94a3b8;
  --id-card-accent-strong: #334155;
}

.template-minimal .id-card-poster::before {
  opacity: 0.18;
}

.template-minimal .id-card-poster__hero {
  background: linear-gradient(180deg, #eff2f7, #e2e8f0);
  border-color: var(--id-card-accent);
}

.template-minimal .id-card-poster__school-mark {
  border-color: var(--id-card-accent);
}

.template-minimal .id-card-poster__school-mark-text,
.template-minimal .id-card-poster__heading {
  color: #334155;
}

.template-minimal .id-card-poster__session-pill {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(100, 116, 139, 0.22);
  color: #334155;
}

.template-minimal .id-card-poster__photo-ring {
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border-color: #475569;
  color: #0f172a;
}

.template-minimal .id-card-poster::before {
  opacity: 0.25;
}

.template-premium .id-card-poster {
  border-color: rgba(185, 28, 28, 0.22);
}

.template-premium .id-card-poster::before {
  background:
    linear-gradient(135deg, transparent 0 55%, rgba(220, 38, 38, 0.11) 55% 72%, transparent 72%),
    linear-gradient(135deg, transparent 0 64%, rgba(244, 114, 182, 0.10) 64% 84%, transparent 84%);
}

.template-premium .id-card-poster__hero {
  background: linear-gradient(180deg, var(--id-card-theme, #dc2626), var(--id-card-theme, #dc2626));
  border-color: var(--id-card-theme, #dc2626);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  padding-bottom: 18px;
}

.template-premium .id-card-poster__hero-top {
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
}

.template-premium .id-card-poster__school-mark {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.template-premium .id-card-poster__school-mark-text {
  color: var(--id-card-theme, #dc2626);
}

.template-premium .id-card-poster__brand-copy,
.template-premium .id-card-poster__school,
.template-premium .id-card-poster__school-hi,
.template-premium .id-card-poster__school-meta,
.template-premium .id-card-poster__heading {
  color: #ffffff;
}

.template-premium .id-card-poster__school-hi,
.template-premium .id-card-poster__school-meta {
  color: rgba(255, 255, 255, 0.92);
}

.template-premium .id-card-poster__session-pill {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--id-card-theme, #dc2626);
}

.template-premium .id-card-poster__content {
  padding-top: 14px;
}

.template-premium .id-card-poster__photo-shell {
  background: rgba(220, 38, 38, 0.08);
}

.template-premium .id-card-poster__photo-ring {
  border-color: var(--id-card-theme, #dc2626);
}

.template-premium .id-card-poster__subline {
  color: var(--id-card-theme, #dc2626);
}

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

  .print-toolbar {
    display: none !important;
  }

  .id-card-grid {
    grid-template-columns: repeat(var(--id-card-columns, 3), minmax(0, 1fr));
    gap: 6px;
  }

  .id-card-poster {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 767.98px) {
  .id-card-toolbar .card-header {
    align-items: stretch !important;
  }

  .id-card-toolbar .d-flex.gap-2.align-items-end.flex-wrap {
    width: 100%;
  }

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

  .id-card-poster__hero-top {
    grid-template-columns: 1fr;
  }

  .id-card-poster__content {
    grid-template-columns: 1fr;
  }

  .id-card-poster__photo-panel {
    justify-content: flex-start;
  }

  .id-card-poster__detail {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .id-card-poster__detail--wide {
    grid-column: auto;
  }
}

/* Showcase page */
.showcase-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.showcase-shell::before,
.showcase-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.showcase-shell::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 68%);
  top: -80px;
  right: -70px;
}

.showcase-shell::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 68%);
  bottom: 140px;
  left: -120px;
}

.showcase-hero,
.showcase-strip,
.showcase-grid,
.showcase-foot {
  position: relative;
  z-index: 1;
}

.showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.showcase-hero__copy,
.showcase-hero__panel,
.showcase-card,
.showcase-foot__note {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}

.showcase-hero__copy {
  border-radius: 28px;
  padding: 34px;
  min-height: 100%;
}

.showcase-hero__panel {
  border-radius: 28px;
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.showcase-eyebrow,
.showcase-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563eb;
}

.showcase-title {
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #08101f;
  font-weight: 900;
  max-width: 12ch;
}

.showcase-lead {
  margin: 0;
  max-width: 62ch;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.75;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-showcase-primary,
.btn-showcase-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}

.btn-showcase-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: 0;
}

.btn-showcase-secondary {
  color: #0f172a;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.showcase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.showcase-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
}

.showcase-terminal {
  position: relative;
  z-index: 1;
  margin: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f172a, #111b2e);
  color: #e2e8f0;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 30px rgba(15,23,42,0.24);
}

.showcase-terminal__top {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot-red { background: #fb7185; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.showcase-terminal__body {
  display: grid;
  gap: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.terminal-key {
  color: rgba(148, 163, 184, 0.9);
}

.terminal-value--ok {
  color: #86efac;
}

.showcase-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.showcase-orb--one {
  width: 200px;
  height: 200px;
  right: -50px;
  top: 14px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28), transparent 66%);
}

.showcase-orb--two {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 66%);
}

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

.showcase-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.showcase-stat__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.tone-cyan .showcase-stat__icon { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.tone-violet .showcase-stat__icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tone-amber .showcase-stat__icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tone-emerald .showcase-stat__icon { background: linear-gradient(135deg, #059669, #10b981); }

.showcase-stat__label {
  font-size: 0.84rem;
  color: #64748b;
}

.showcase-stat__value {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

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

.showcase-card {
  border-radius: 26px;
  padding: 24px;
}

.showcase-card--wide {
  min-width: 0;
}

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

.showcase-card__header h2 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #08101f;
}

.showcase-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.showcase-module {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.showcase-module:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.10);
  border-color: rgba(37, 99, 235, 0.22);
}

.showcase-module__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  flex: 0 0 auto;
}

.showcase-module__body {
  min-width: 0;
  flex: 1 1 auto;
}

.showcase-module__title {
  font-weight: 800;
  color: #0f172a;
}

.showcase-module__meta {
  font-size: 0.86rem;
  color: #64748b;
}

.showcase-module__arrow {
  color: #94a3b8;
}

.showcase-timeline {
  display: grid;
  gap: 14px;
}

.showcase-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.showcase-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.showcase-step span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(14,165,233,0.08));
  color: #1d4ed8;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.showcase-step strong {
  display: block;
  color: #08101f;
  font-size: 1rem;
  margin-bottom: 2px;
}

.showcase-step p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.showcase-foot__note {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  padding: 16px 20px;
  color: #334155;
}

.showcase-foot__note i {
  color: #2563eb;
}

@media (max-width: 1199.98px) {
  .showcase-hero,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .showcase-hero__copy,
  .showcase-card,
  .showcase-hero__panel {
    border-radius: 22px;
  }

  .showcase-hero__copy {
    padding: 22px;
  }

  .showcase-title {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .showcase-terminal {
    margin: 16px;
  }

  .showcase-strip,
  .showcase-module-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card__header {
    flex-direction: column;
  }
}
