/* =========================================================
   Money receipt (Payments → view) — FIXED size 9in × 3.75in (864 × 360 CSS px).
   Light card with soft orange / yellow shapes, receipt-number pill, dotted fill-in lines,
   amount pill, method circles, QR, signature. Narrow screens shrink it with zoom (JS),
   the "Download Receipt" button saves it as a 9in × 3.75in PDF.
   Auto-loaded by layout.php like every assets/css/admin-*.css
   ========================================================= */
.mr-fit { width: 100%; margin: 0 0 22px; display: flex; justify-content: center; }
.mr {
  --mr-ink: #4b5a61; --mr-text: #2f3a3f; --mr-muted: #7f8b91; --mr-dots: #c3cacd; --mr-pill: #eef0ef; --mr-accent: #ff9a6a;
  position: relative; z-index: 0; overflow: hidden; flex: none;
  width: 9in; height: 3.75in; box-sizing: border-box; padding: 20px 36px 24px;
  display: grid; grid-template-rows: auto auto auto; align-content: space-between; row-gap: 10px;
  background: #fff; color: var(--mr-ink); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  font-family: 'Jost', 'Hind Siliguri', system-ui, sans-serif; line-height: 1.25;
}
.lang-bn .mr { font-family: 'Hind Siliguri', 'Jost', system-ui, sans-serif; }
.mr.mr-capture { box-shadow: none; border-radius: 0; }
.mr-deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.mr > :not(.mr-deco) { position: relative; z-index: 1; }
.mr > .mr-stamp { position: absolute; z-index: 3; font-size: 34px; letter-spacing: 4px; border-width: 4px; padding: 2px 14px; top: 46%; }
.mr-stamp-slip { color: rgba(230, 120, 40, .4) !important; border-color: rgba(230, 120, 40, .4) !important; font-size: 28px !important; }
.mr.is-cancelled .mr-rows, .mr.is-cancelled .mr-bottom { opacity: .55; }

/* header */
.mr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.mr-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mr-logo img { display: block; width: 46px; height: 40px; border-radius: 8px; }
.mr-logo strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.15; color: var(--mr-ink); white-space: nowrap; }
.mr-logo small { display: block; margin-top: 1px; font-size: 10px; color: var(--mr-muted); white-space: nowrap; }
.mr-contact { display: grid; gap: 0; font-style: normal; font-size: 10.5px; line-height: 1.4; color: var(--mr-muted); min-width: 0; }
.mr-contact > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-contact b { color: #5f6b71; font-weight: 600; }
.mr-no { display: grid; justify-items: end; gap: 2px; }
.mr-no > div { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 19px; font-weight: 500; color: var(--mr-ink); }
.mr-no b { padding: 4px 18px; border-radius: 30px; background: var(--mr-pill); font-family: 'Jost', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .3px; }
.mr-no small { font-size: 9px; color: var(--mr-muted); padding-inline-end: 12px; }

/* fill-in lines */
.mr-rows { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px 24px; }
.mr-line, .mr-sums > div { display: grid; grid-template-columns: 142px 10px minmax(0, 1fr); align-items: end; }
.mr-line label { font-size: 13.5px; font-weight: 600; color: var(--mr-ink); white-space: nowrap; }
.mr-line > i, .mr-sums i { font-style: normal; font-weight: 600; font-size: 11px; padding-bottom: 2px; }
.mr-val { display: block; min-height: 20px; padding: 0 4px 2px; border-bottom: 1.5px dotted var(--mr-dots); font-size: 13px; font-weight: 500; color: var(--mr-text);
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-val small { color: var(--mr-muted); font-weight: 400; font-size: 10.5px; }
.mr-date { grid-template-columns: auto 10px minmax(0, 1fr); column-gap: 4px; }
.mr-full { grid-column: 1 / -1; }
.mr-amount {
  grid-column: 1 / -1; margin-inline-start: 152px; display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 22px; border-radius: 30px; background: var(--mr-pill); color: var(--mr-ink);
  font-family: 'Jost', 'Hind Siliguri', sans-serif; font-size: 22px; font-weight: 700;
}
.mr-amount b { font-size: 22px; letter-spacing: .3px; }

/* bottom block */
.mr-bottom { display: grid; grid-template-columns: 290px minmax(0, 1fr) 100px 190px; gap: 20px; align-items: center; }
.mr-sums { display: grid; gap: 6px; }
.mr-sums > div { grid-template-columns: 128px 12px minmax(0, 1fr); }
.mr-sums label { font-size: 13px; color: var(--mr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-sums .mr-val { min-height: 19px; font-size: 13px; }
.mr-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mr-methods li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mr-muted); white-space: nowrap; min-width: 0; }
.mr-methods li > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mr-methods small { font-size: 9.5px; font-family: 'Jost', monospace; color: var(--mr-text); margin-inline-start: 2px; }
.mr-radio { width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #d5dadc; background: #fff; box-sizing: border-box; }
.mr-methods li.on { color: var(--mr-text); font-weight: 600; }
.mr-methods li.on .mr-radio { border-color: var(--mr-accent); background: radial-gradient(circle, var(--mr-accent) 0 40%, #fff 46%); }
.mr-qr { width: 100px; height: 100px; display: grid; place-items: center; }
.mr-qr img, .mr-qr canvas { width: 98px !important; height: 98px !important; }
.mr-qr span { display: grid; place-items: center; width: 98px; height: 98px; border: 1.5px dashed #d5dadc; border-radius: 8px; padding: 6px; box-sizing: border-box; text-align: center; font-size: 8px; color: var(--mr-muted); }
.mr-sign { display: grid; justify-items: end; gap: 4px; text-align: end; align-self: end; }
.mr-sign-name { min-height: 16px; font-size: 12.5px; color: var(--mr-text); }
.mr-sign i { display: block; width: 100%; border-top: 1px solid #9aa4a8; }
.mr-sign small { font-size: 10.5px; color: var(--mr-muted); }
.mr-thanks { position: absolute !important; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; font-size: 8.5px; color: #9aa4a8; }

/* print: exactly one 9in × 3.75in page, colours kept */
@page receipt { size: 9in 3.75in; margin: 0; }
@media print {
  .mr-fit { margin: 0; height: auto !important; display: block; }
  .mr { page: receipt; zoom: 1 !important; margin: 0; box-shadow: none; border-radius: 0; break-inside: avoid;
        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mr-fit ~ * { display: none !important; }
}

/* cancelled / not-verified stamp (also defined in admin-core.css; repeated here so the public receipt page is self-contained) */
.mr .rc-stamp { position: absolute; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-family: Jost, sans-serif; font-weight: 800;
  color: rgba(200, 30, 50, .3); border: 4px solid rgba(200, 30, 50, .3); border-radius: 10px; pointer-events: none; white-space: nowrap; }

/* PDF capture: the renderer takes the text baseline from the FIRST font of the stack; with Hind Siliguri first it draws
   the text too low and the boxes clip it. Jost first gives the right baseline (Bangla letters still come from Hind Siliguri). */
.mr.mr-capture, .mr.mr-capture * { font-family: 'Jost', 'Hind Siliguri', sans-serif !important; }
