/* printed / PDF document layout (shared by the app, print and PDF) */
.r{text-align:right}
.paper{background:#fff;color:#111;border-radius:8px;padding:20px;box-shadow:0 1px 3px rgba(0,0,0,.25);font-size:13px;line-height:1.45;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.paper small{color:#666}
.p-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:2px solid #1565c0;padding-bottom:12px}
.p-head img{max-height:56px;max-width:140px;object-fit:contain;display:block;margin-bottom:6px}
.p-title{text-align:right}.p-title h2{margin:0 0 4px;font-size:22px;letter-spacing:.5px;color:#1565c0;text-transform:uppercase}
.p-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}
.tblwrap{overflow-x:auto}
.paper table{width:100%;border-collapse:collapse;min-width:460px}
.paper th{background:#eaf1fb;text-align:left;padding:8px;font-weight:500;font-size:12px}
.paper th.r{text-align:right}
.paper td{padding:8px;border-bottom:1px solid #e3e6ea;vertical-align:top}
.totals{margin-left:auto;width:min(320px,100%);margin-top:10px}
.totals div{display:flex;justify-content:space-between;padding:3px 0}
.totals .grand{border-top:2px solid #111;margin-top:4px;padding-top:6px;font-size:16px;font-weight:700}
.sign{margin-top:24px;text-align:right}
.sign img{max-height:70px;max-width:200px;display:block;margin:6px 0 4px auto}
.pre{white-space:pre-line}
