/* ============================================================
   Tokens - navy/blue "SFT" brand system, extended app-wide from
   the ID card design. Fonts (Poppins + Manrope) load via Google
   Fonts <link> in partials/head.php.
   ============================================================ */
:root {
  --navy: #0b1a4d;
  --navy-soft: #16297a;
  --blue: #2f6fed;
  --blue-hover: #2559c9;
  --blue-active: #1e46a8;
  --blue-light: #5c92ff;
  --blue-soft: #eaf1ff;
  --blue-soft-strong: #d3e2ff;

  /* Legacy component CSS below references --accent-*; alias to the
     blue primitives so there is one source of truth for the brand hue. */
  --accent: var(--blue);
  --accent-hover: var(--blue-hover);
  --accent-active: var(--blue-active);
  --accent-soft: var(--blue-soft);
  --accent-soft-strong: var(--blue-soft-strong);

  /* Navy canvas behind the floating white panels - panels get their
     separation from canvas contrast, not borders or heavy shadows. */
  --canvas: var(--navy);
  --dark-panel: var(--navy);
  --bg: var(--canvas);

  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eaeef5;
  --border: #e7eaf1;
  --border-strong: #d7dced;

  --text: #10173a;
  --text-muted: #69708a;
  --text-faint: #9aa1b8;

  --danger: #e5484d;
  --danger-hover: #c73d42;
  --danger-soft: #fdeceb;

  --grade-a: #1e9e6b;
  --grade-b: var(--blue);
  --grade-c: #e0a02a;
  --grade-s: #e0762e;
  --grade-fail: var(--danger);

  --sidebar-bg: #ffffff;
  --sidebar-text: var(--text-muted);
  --sidebar-text-active: var(--blue);
  --sidebar-active-bg: var(--blue-soft);
  --sidebar-border: #eef1f7;

  --dark-panel-text: rgba(255, 255, 255, 0.72);
  --dark-panel-border: rgba(255, 255, 255, 0.12);

  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 26, 77, 0.05);
  --shadow-md: 0 10px 28px rgba(11, 26, 77, 0.12);
  --shadow-lg: 0 18px 52px rgba(11, 26, 77, 0.22);

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --duration: 170ms;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font: var(--font-body);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

::selection { background: var(--accent-soft-strong); color: var(--accent-active); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-pill); border: 3px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon { flex-shrink: 0; }

h1, h2, h3, .btn, .nav-btn, .logout-btn, .tabbar button, .exam-type-buttons button,
.sidebar-brand-text .name, .section-label, .card h2, .topbar h1,
.login-brand h1, .login-form-side h2 {
  font-family: var(--font-heading);
}

/* ============================================================
   Brand hero - shared chevron/emblem motif from the ID card,
   reused on the login screens, sidebar brand strip, and the
   student portal hero.
   ============================================================ */
.brand-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.brand-hero .chev-blue,
.brand-hero .chev-navy {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--chev-h, 90px);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
}
.brand-hero .chev-blue { top: var(--chev-offset, 10px); background: var(--blue); }
.brand-hero .chev-navy { top: 0; background: var(--navy); }
.brand-hero .chev-blue.flip,
.brand-hero .chev-navy.flip {
  top: auto;
  bottom: var(--chev-offset, 10px);
  clip-path: polygon(0 100%, 100% 100%, 100% 24%, 50% 0, 0 24%);
}
.brand-hero .chev-navy.flip { bottom: 0; }
.brand-hero-content { position: relative; z-index: 2; }

.sft-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.sft-wordmark .f { color: var(--blue-light); }

.emblem-badge {
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-badge svg { width: 58%; height: 58%; }

/* ============================================================
   Login
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  padding: 24px;
}

.login-card {
  display: flex;
  width: 100%;
  max-width: 820px;
  min-height: 480px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-brand {
  --chev-h: 130px;
  --chev-offset: 12px;
  flex: 1 1 44%;
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.login-brand .sft-wordmark { font-size: 40px; }

.login-brand .tagline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 10px 0 0;
}

.login-brand .emblem-badge { width: 96px; height: 96px; margin: 22px auto; }

.login-brand p {
  font-size: var(--text-md);
  color: var(--dark-panel-text);
  margin: 0;
  line-height: 1.6;
}

.login-brand-foot {
  font-size: var(--text-xs);
  color: var(--dark-panel-text);
  margin-top: 18px;
}

.login-form-side {
  flex: 1 1 56%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-side h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.login-form-side .lede {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0 0 26px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.login-form-side button[type="submit"] {
  width: 100%;
  margin-top: 6px;
}

.login-switch {
  margin-top: 18px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}
.login-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }

.error-text {
  color: var(--danger);
  font-size: var(--text-sm);
  min-height: 18px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 720px) {
  .login-card { flex-direction: column; max-width: 420px; min-height: 0; }
  .login-brand { padding: 32px; }
  .login-form-side { padding: 32px; }
}

/* ============================================================
   App shell
   ============================================================ */
.app-shell {
  display: flex;
  gap: 16px;
  min-height: 100vh;
  padding: 16px;
  background: var(--canvas);
}

.sidebar {
  flex: 0 0 232px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-brand {
  --chev-h: 56px;
  --chev-offset: 6px;
  position: relative;
  padding: 18px 18px 26px;
}
.sidebar-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-brand .sft-wordmark { font-size: 20px; }
.sidebar-brand-text .sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--sidebar-text);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-btn .icon { color: var(--sidebar-text); transition: color var(--duration) var(--ease); }
.nav-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-btn:hover .icon { color: var(--text); }
.nav-btn.active { background: var(--sidebar-active-bg); color: var(--sidebar-text-active); font-weight: 700; }
.nav-btn.active .icon { color: var(--sidebar-text-active); }

.sidebar-foot {
  padding: 12px 10px 16px;
  border-top: 1px solid var(--sidebar-border);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--sidebar-text);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.logout-btn:hover { background: var(--danger-soft); color: var(--danger-hover); }

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  height: 60px;
  flex: 0 0 60px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.topbar h1 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 7px;
  cursor: pointer;
  margin-right: 12px;
}

main.content {
  padding: 0 28px 32px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   Cards, tabs, sections
   ============================================================ */
.card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}

.hint {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: -8px 0 18px;
  line-height: 1.55;
}
.hint b { color: var(--text); font-weight: 600; }

.tabbar {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  gap: 2px;
}
.tabbar button {
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.tabbar button:hover { color: var(--text); }
.tabbar button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input[type=text], input[type=number], input[type=tel], input[type=password], input[type=time], select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
input[type=text]:hover, input[type=number]:hover, input[type=tel]:hover, input[type=password]:hover, input[type=time]:hover, select:hover { background: var(--surface-3); }
input[type=text]:focus, input[type=number]:focus, input[type=tel]:focus, input[type=password]:focus, input[type=time]:focus, select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder { color: var(--text-faint); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2369708a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 34px;
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  position: relative;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop .icon { color: var(--text-muted); }
.file-drop:hover .icon { color: var(--accent); }
.file-drop-text { font-size: var(--text-sm); color: var(--text-muted); }
.file-drop-text .fname { color: var(--text); font-weight: 600; }
.file-drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

input[type=file].bare { width: 100%; font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease), transform 100ms var(--ease), opacity var(--duration) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-active); transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn.danger { background: var(--danger); }
.btn.danger:hover { background: var(--danger-hover); }

.btn.secondary { background: var(--surface); color: var(--navy); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--text-faint); }

.btn.ghost { background: none; color: var(--text-muted); padding: 9px 12px; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ============================================================
   Search bar
   ============================================================ */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  max-width: 440px;
}
.search-bar .search-field { position: relative; flex: 1; }
.search-bar .search-field .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
.search-bar input { padding-left: 36px; }

/* ============================================================
   Messages
   ============================================================ */
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: 14px;
  line-height: 1.5;
}
.msg.success { background: var(--accent-soft); color: var(--accent-active); }
.msg.success .icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.msg.error { background: var(--danger-soft); color: var(--danger-hover); }
.msg.error .icon { color: var(--danger); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   Student profile
   ============================================================ */
.profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.avatar-placeholder .icon { width: 32px; height: 32px; }

.profile-info h3 { margin: 0 0 8px; font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.005em; }
.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 28px;
}
.profile-meta div { font-size: var(--text-sm); color: var(--text-muted); }
.profile-meta strong { color: var(--text); font-weight: 600; }

.section-label {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.exam-type-buttons { display: flex; gap: 8px; margin-bottom: 18px; }
.exam-type-buttons button {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.exam-type-buttons button:hover { border-color: var(--accent); color: var(--accent); }
.exam-type-buttons button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.fee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
}
.fee-badge.paid { background: var(--accent-soft); color: var(--accent-active); }
.fee-badge.unpaid { background: var(--danger-soft); color: var(--danger-hover); }
.fee-badge .icon { width: 15px; height: 15px; }

.chart-box {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 18px;
}

.chart-box.grade-chart-box {
  max-width: 300px;
  margin: 0 auto;
  padding: 14px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}
.chart-row .card { margin-bottom: 0; }

canvas { max-width: 100%; }

@media (max-width: 860px) {
  .chart-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
table th, table td { padding: 10px 12px; text-align: left; }
table thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
table tbody tr { border-bottom: 1px solid var(--border); }
table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: var(--surface-2); }
table td.rank { color: var(--text-faint); font-variant-numeric: tabular-nums; width: 32px; }
table td.mark { font-weight: 700; font-variant-numeric: tabular-nums; }
table td.empty-cell { color: var(--text-faint); text-align: center; padding: 26px 12px; }

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-muted);
}
.rank-medal.gold { background: #fdf0d5; color: #a06a06; }
.rank-medal.silver { background: #eef0f2; color: #64707c; }
.rank-medal.bronze { background: #fbe8d9; color: #a2551a; }

/* ============================================================
   Grade summary / stat tiles
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.stat-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}
.stat-tile .grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.stat-tile .count { font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-tile .pct { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.stat-tile .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
}
.empty-state .icon { color: var(--text-faint); width: 34px; height: 34px; margin-bottom: 12px; }
.empty-state p { margin: 0; font-size: var(--text-sm); max-width: 34ch; margin-inline: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-shell { padding: 10px; gap: 10px; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    height: 100vh;
    width: 232px;
    z-index: 30;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform var(--duration) var(--ease);
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 16, 0.5);
    z-index: 25;
  }
  .sidebar-backdrop.open { display: block; }
  .mobile-nav-toggle { display: inline-flex; }
  main.content { padding: 0 16px 30px; }
  .topbar { padding: 0 16px; top: 10px; }
  .profile-meta { grid-template-columns: 1fr; }
}

@media print {
  body, .app-shell { background: #fff !important; }
  .app-shell { padding: 0; gap: 0; }
  .sidebar, .sidebar-backdrop, .topbar, .btn-row, #evalSearchCard { display: none !important; }
  main.content { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: none; }
}
