fix(statements): nudge envelope windows to printed-proof positions

Company (return) address down 0.25in (to 0.8in) and customer address
down 1.5in (to 3.0in) to line up with the #9 double-window envelope,
per a printed proof. Push the body padding-top to clear the lower
customer window.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 08:06:37 -04:00
parent 0aefdeb5ff
commit ccc3fac69d
2 changed files with 9 additions and 12 deletions

View File

@@ -202,24 +202,23 @@ def _wrap_document(pages):
overflow: hidden;
}}
.statement-page:last-of-type {{ page-break-after: auto; }}
/* Window positions match the app's proven #9 (9x4) double-window envelope
geometry — recipient window at top:1.5in/left:1.125in, mirroring
sales_invoice_ns.html ("9x4 envelope position"). */
/* Window positions are field-tuned to the #9 (9x4) double-window envelope
(verified against a printed proof). */
.return-window {{
position: absolute; top: 0.55in; left: 0.6in;
position: absolute; top: 0.8in; left: 0.6in;
width: 3.5in; font-size: 11px; line-height: 1.3;
}}
.doc-header {{
position: absolute; top: 0.55in; right: 0.6in;
position: absolute; top: 0.8in; right: 0.6in;
width: 3in; text-align: right; font-size: 13px; line-height: 1.5;
}}
.doc-header .doc-title {{ font-size: 20px; font-weight: bold; letter-spacing: 1px; }}
.recipient-window {{
position: absolute; top: 1.5in; left: 1.125in;
position: absolute; top: 3.0in; left: 1.125in;
width: 4.5in; height: 1.25in; font-size: 15px; line-height: 1.15em;
overflow: hidden;
}}
.statement-body {{ padding: 2.95in 0.6in 0.6in 0.6in; }}
.statement-body {{ padding: 4.4in 0.6in 0.6in 0.6in; }}
.intro {{ font-size: 12px; margin-bottom: 12px; }}
table.items, table.aging {{ width: 100%; border-collapse: collapse; }}
table.items th, table.items td,