:root {
  --clinic-ink: #0f2f4f;
}

body {
  font-family: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", "Cairo", sans-serif;
}

/* Clinical fields are written in English inside an otherwise RTL page. */
[dir="rtl"] input[dir="ltr"],
[dir="rtl"] textarea[dir="ltr"] {
  text-align: left;
}

.card-header {
  font-weight: 600;
}

/* OD / OS examination grid */
.exam-table th.finding {
  width: 22%;
  font-weight: 500;
  vertical-align: middle;
}
.exam-table td { vertical-align: middle; }
.exam-table input, .exam-table select { min-width: 8rem; }

.eye-od { --eye-accent: #0d6efd; }
.eye-os { --eye-accent: #198754; }
.eye-badge {
  background: var(--eye-accent);
  color: #fff;
}

#search-results .list-group { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }

.stat-tile .stat-value { font-size: 1.75rem; line-height: 1; font-weight: 600; }
.stat-tile .stat-label { font-size: .8125rem; color: var(--bs-secondary-color); }

/* Printed documents: A5 prescriptions, A4 invoices. */
@media print {
  .no-print, nav, .alert { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; }
  .print-sheet { box-shadow: none !important; border: 0 !important; margin: 0 !important; }
}

.print-sheet {
  background: #fff;
  max-width: 21cm;
  margin-inline: auto;
  padding: 1.5cm;
}

.rx-symbol {
  font-size: 2rem;
  font-family: Georgia, serif;
  line-height: 1;
}
