@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1e3a5f;
  --primary-light: #2a4f82;
  --primary-fg: #fff;
  --bg: #f4f6fa;
  --surface: #fff;
  --border: #dde3ec;
  --muted: #6b7280;
  --muted-bg: #f0f3f8;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;
  --yellow-border: #fed7aa;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sidebar-w: 240px;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: #1a202c;
  direction: rtl;
  min-height: 100vh;
  display: flex;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--primary);
  color: var(--primary-fg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-brand h1 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.sidebar-brand p {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.nav-link svg { flex-shrink: 0; }
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.18); color: #fff; }
.nav-form { margin: 0; }
.nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: right;
}

/* ── Main content ─────────────────────────────── */
.main {
  flex: 1;
  padding: 32px 36px;
  overflow-x: hidden;
  min-width: 0;
}

.app-title {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--primary);
}
.app-title div {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 3px;
}
.app-title h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.app-title p {
  font-size: 13px;
  margin-top: 4px;
  color: #374151;
}

/* ── Page header ─────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 20px; }

/* ── Stat grid ───────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--blue-bg); color: var(--blue); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.yellow { background: var(--yellow-bg); color: var(--yellow); }
.stat-icon.red { background: var(--red-bg); color: var(--red); }
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--primary); }

/* ── Tables ──────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--muted-bg); }
th {
  padding: 11px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--muted-bg); }

/* ── Badges ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-green { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.badge-red { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow-border); }
.badge-gray { background: var(--muted-bg); color: var(--muted); border-color: var(--border); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-border); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); opacity: 1; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--muted-bg); opacity: 1; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; opacity: 1; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-green { background: var(--green); color: #fff; }

/* ── Forms ───────────────────────────────────── */
.form-section {
  display: none;
  animation: fadeIn .25s ease;
}
.form-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-group { margin-bottom: 18px; }
label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
input[type="text"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], input[type="file"],
textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: inherit;
  direction: rtl;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:disabled, textarea:disabled, select:disabled {
  background: var(--muted-bg);
  color: var(--muted);
  cursor: not-allowed;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Login ───────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.login-shell {
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
  background: var(--surface);
}
.login-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: none;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-photo {
  min-height: 560px;
  background:
    linear-gradient(rgba(16, 24, 39, .12), rgba(16, 24, 39, .12)),
    url("../school.jpg") center / cover no-repeat;
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.login-school-title span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}
.login-school-title h1 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1.6;
}
.login-school-title p {
  color: var(--muted);
  font-size: 13px;
}
.login-form { margin-top: 18px; }
.login-submit { width: 100%; }

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 420px;
    min-height: 0;
  }
  .login-panel {
    border-left: 1px solid var(--border);
  }
  .login-photo {
    min-height: 220px;
    order: -1;
  }
}

/* ── Radio groups ─────────────────────────────── */
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-opt {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px;
}
.radio-opt input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.residency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.residency-opt {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
}
.residency-opt:hover { background: var(--muted-bg); }
.residency-opt.selected { border-color: var(--primary); background: #eff3fb; }
.residency-opt.selected-danger { border-color: var(--red); background: var(--red-bg); }
.residency-opt input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ── Checklist ────────────────────────────────── */
.check-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.check-item:last-child { border-bottom: none; }
.check-radios { display: flex; gap: 18px; flex-shrink: 0; }
.check-radios label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; }
.check-radios input { accent-color: var(--primary); }
.check-present { accent-color: var(--green) !important; }
.check-incomplete { accent-color: var(--red) !important; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th { padding: 10px 12px; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--muted-bg); text-align: right; }
.doc-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: middle; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:nth-child(3), .doc-table td:nth-child(4) { text-align: center; width: 70px; }

/* ── Sub-sections ─────────────────────────────── */
.sub-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--muted-bg);
  margin-top: 12px;
  display: none;
}
.sub-section.visible { display: block; }
.sub-section-title { font-weight: 700; font-size: 13px; margin-bottom: 12px; color: var(--primary); }

/* ── Alerts ──────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}
.alert-danger { background: var(--red-bg); border-color: var(--red-border); color: #991b1b; }
.alert-warning { background: var(--yellow-bg); border-color: var(--yellow-border); color: #92400e; }
.alert-success { background: var(--green-bg); border-color: var(--green-border); color: #166534; }
.alert-info { background: var(--blue-bg); border-color: var(--blue-border); color: #1e40af; }
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-title { font-weight: 700; margin-bottom: 2px; }

/* ── Result options ───────────────────────────── */
.result-opts { display: flex; flex-direction: column; gap: 10px; }
.result-opt {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.result-opt:hover { background: var(--muted-bg); }
.result-opt.sel-green { border-color: var(--green); background: var(--green-bg); color: #166534; }
.result-opt.sel-yellow { border-color: var(--yellow); background: var(--yellow-bg); color: #92400e; }
.result-opt.sel-red { border-color: var(--red); background: var(--red-bg); color: #991b1b; }

/* ── Step progress ─────────────────────────────── */
.step-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.step-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  background: var(--muted-bg);
  color: var(--muted);
}
.step-btn.active { background: var(--primary); color: #fff; }
.step-btn.done { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }

/* ── Step nav ─────────────────────────────────── */
.step-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ── Detail view ──────────────────────────────── */
.result-banner {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius);
  border: 2px solid;
  margin-bottom: 24px;
}
.result-banner.green { border-color: var(--green); background: var(--green-bg); color: #166534; }
.result-banner.yellow { border-color: var(--yellow); background: var(--yellow-bg); color: #92400e; }
.result-banner.red { border-color: var(--red); background: var(--red-bg); color: #991b1b; }

.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); width: 200px; flex-shrink: 0; }
.info-value { font-weight: 500; }

.check-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.check-row .icon-ok { color: var(--green); }
.check-row .icon-no { color: var(--red); }

/* ── Report (print-only tweaks) ────────────────── */
.print-only { display: none; }
@media print {
  .sidebar, .page-header .btn, .no-print { display: none !important; }
  .main { padding: 0; }
  body { background: #fff; }
  .print-only { display: block; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Misc ─────────────────────────────────────── */
.text-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 13px; }
.text-link:hover { text-decoration: underline; }
.text-muted { color: var(--muted); font-size: 13px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.empty-state { text-align: center; padding: 40px 0; color: var(--muted); font-size: 14px; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Screenshot-inspired shell ────────────────── */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --bg: #f7f8fc;
  --border: #e9ecf4;
  --muted-bg: #f7f8ff;
  --shadow: 0 18px 45px rgba(39, 47, 84, .08);
  --radius: 18px;
}

body {
  display: block;
  background: var(--bg);
  padding: 28px;
}
.site-shell {
  max-width: 1500px;
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(39, 47, 84, .10);
  overflow: hidden;
}
.topbar {
  height: auto;
  min-height: 96px;
  padding: 18px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.topbar-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #1f2551;
  min-width: 0;
}
.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #eef0ff;
}
.topbar-brand h1 {
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
}
.topbar-brand p {
  color: #8a91a8;
  font-size: 13px;
  margin-top: 2px;
}
.topbar-brand-content {
  flex: 1;
  min-width: 0;
}
.topbar-main-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-meta {
  margin-top: 4px;
  color: #7a8198;
  font-size: 13px;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-brand .brand-slogan {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.topbar .nav-link {
  color: #6b7280;
  padding: 10px 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}
.topbar .nav-link:hover {
  color: var(--primary);
  background: transparent;
}
.topbar .nav-link.active {
  color: var(--primary);
  background: transparent;
}
.topbar .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
}
.nav-soon {
  cursor: default;
}
.nav-soon small,
.hero-step em,
.feature-card em {
  display: inline-flex;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1efff;
  color: var(--primary);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}
.topbar-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.login-chip {
  min-width: 154px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #5b5cf6, #4938d4);
  box-shadow: 0 12px 26px rgba(79,70,229,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.main {
  padding: 34px;
}
.app-title {
  display: none;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(330px, .9fr) 360px;
  gap: 30px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-visual {
  min-height: 390px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 25%, rgba(94,92,246,.16), transparent 36%),
    #f2efff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}
.hero-copy {
  text-align: right;
  color: #20264d;
}
.hero-copy h2 {
  font-size: 34px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.hero-copy p {
  color: #697089;
  font-size: 15px;
  line-height: 2.1;
  max-width: 450px;
}
.hero-action {
  min-width: 220px;
  margin-top: 26px;
  min-height: 58px;
  border-radius: 13px;
  background: linear-gradient(135deg, #5b5cf6, #4938d4);
  box-shadow: 0 14px 24px rgba(79,70,229,.20);
}
.hero-steps {
  background: #f9faff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
}
.hero-steps h3 {
  color: #20264d;
  font-size: 18px;
  margin-bottom: 18px;
}
.hero-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 14px;
}
.hero-step:last-child {
  margin-bottom: 0;
}
.hero-step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1ff;
  color: var(--primary);
  font-weight: 800;
}
.hero-step.active {
  border-color: #bcefdc;
  box-shadow: 0 10px 28px rgba(16,185,129,.10);
}
.hero-step.active span {
  background: #10b981;
  color: #fff;
}
.hero-step strong {
  display: block;
  color: #2b315a;
  font-size: 14px;
  margin-bottom: 5px;
}
.hero-step small {
  color: #8a91a8;
  font-size: 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.feature-card {
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(39,47,84,.04);
}
.feature-card span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #f2f0ff;
}
.feature-card.green span { background: #e9fff5; }
.feature-card.amber span { background: #fff8dc; }
.feature-card.blue span { background: #edf4ff; }
.feature-card strong {
  color: #252b52;
  font-size: 15px;
}
.feature-card small {
  color: #8a91a8;
  font-size: 12px;
}
.info-strip {
  min-height: 54px;
  border-radius: 16px;
  background: #f6f3ff;
  color: #7a6b9d;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 28px;
}
.info-strip strong {
  color: var(--primary);
  background: #ebe7ff;
  border-radius: 10px;
  padding: 8px 14px;
}
.compact-header {
  margin-bottom: 16px;
}
.stat-card,
.card {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(39,47,84,.05);
}
.btn {
  border-radius: 13px;
}
.page-title {
  color: #20264d;
}
.app-slogan {
  color: var(--primary) !important;
  font-weight: 700;
}

@page {
  size: A5 portrait;
  margin: 7mm;
}

@media print {
  html,
  body {
    width: auto !important;
    min-height: auto !important;
    background: #fff !important;
  }

  body {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .topbar,
  .app-title,
  .page-header,
  .no-print,
  .alert {
    display: none !important;
  }

  .site-shell {
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .main {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .print-report {
    width: 122mm !important;
    max-width: 122mm !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 5mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.85 !important;
    page-break-inside: avoid;
  }

  .print-report .report-signatures {
    margin-top: 10mm !important;
    gap: 4mm !important;
    font-size: 8.5pt !important;
  }

  .print-report .signature-line {
    width: 30mm !important;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }
  .topbar-action,
  .topbar-nav {
    justify-content: flex-start;
  }
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }
  .site-shell {
    border-radius: 18px;
  }
  .main,
  .topbar {
    padding: 18px;
  }
  .topbar-nav {
    gap: 14px;
  }
  .hero-copy h2 {
    font-size: 25px;
  }
  .feature-grid,
  .stat-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
