:root {
  /* Peacock blue with temple gold */
  --temple: #0e5f6e;
  --temple-dark: #0a4753;
  --temple-soft: #eaf4f5;
  --gold: #d4a03a;
  --gold-soft: #fbf4e4;
}
body {
  font-family: "Noto Sans", "Noto Sans Malayalam", system-ui, sans-serif;
  background: #f4f6f6;
}
.ml, [lang="ml"] { font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif; }
.bg-temple {
  background: linear-gradient(135deg, var(--temple-dark), var(--temple));
  border-bottom: 3px solid var(--gold);
}
.bg-temple .navbar-brand .ml { color: #fde9b8; }
.btn-temple { background: var(--temple); color: #fff; border-color: var(--temple); }
.btn-temple:hover, .btn-temple:focus { background: var(--temple-dark); color: #fff; border-color: var(--temple-dark); }
.text-temple { color: var(--temple); }
a { color: var(--temple); }
a:hover { color: var(--temple-dark); }
.stat .value.text-temple { color: var(--temple); }
.card.stat { border-top: 3px solid var(--gold); }
.form-control:focus, .form-select:focus { border-color: var(--temple); box-shadow: 0 0 0 .2rem rgba(14, 95, 110, .2); }
.form-check-input:checked { background-color: var(--temple); border-color: var(--temple); }
.page-link { color: var(--temple); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.stat .label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-report { font-size: .875rem; background: #fff; }
.table-report th { background: #eee; }
.table-report tr.row-head td { font-weight: 600; text-decoration: underline; }
.table-report tr.row-total td { font-weight: 700; background: #f1f1f1; }
.table-report tr.row-sub td { font-weight: 600; background: #fafafa; }
.report-title { text-align: center; font-weight: 700; margin-bottom: .25rem; }
.signatories { display: flex; justify-content: space-around; margin-top: 4rem; font-weight: 600; }
.line-card { background: var(--gold-soft); border-radius: .5rem; padding: .75rem; margin-bottom: .75rem; }
.donor-hit { cursor: pointer; }
.cancelled { text-decoration: line-through; color: #999; }

/* Receipt (A5-ish, also fits thermal printers when narrowed) */
.receipt { background: #fff; max-width: 560px; margin: 0 auto; padding: 1.5rem; border: 1px solid #ddd; }
.receipt .temple-ml { font-size: 1.35rem; font-weight: 600; color: var(--temple); }
.receipt { border-top: 4px solid var(--gold); }
.receipt .temple-en { font-size: 1rem; font-weight: 600; }
.receipt .stamp-cancel { color: #c00; border: 3px solid #c00; display: inline-block; padding: .2rem .6rem; font-weight: 700; transform: rotate(-8deg); }

@media print {
  .no-print, .navbar, .btn, form.filters { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; }
  .card { box-shadow: none; }
  .receipt { border: 0; max-width: none; }
  .table-report { font-size: 10pt; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 12mm; }
}
.navbar .nav-link { white-space: nowrap; }
