/* SubMac — Free receipt generator (/receipt-generator).
   Loaded after ui.css. Same live iOS journey as the quotation tool, with a
   paper document that can be A4 or a narrow thermal slip. A receipt records
   money received, so the payment figures are facts, not requests. */

/* ===== journey (same system as the quotation tool) ===== */
.r-main { padding-bottom: clamp(48px, 6vw, 88px); }
.r-main .crumbs { margin: clamp(18px, 4vw, 38px) 0 0; }
.r-main .display { margin: 0.35rem 0 0; }
.r-main .lede { margin: 0.75rem 0 1.75rem; max-width: 64ch; }

.r-journey { padding: 1.25rem 1.4rem; background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring), var(--ios-shadow); }
.r-journey-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--ios-label-2); }
.r-track { height: 4px; margin: 0.75rem 0 1.25rem; border-radius: 999px; background: var(--ios-fill); overflow: hidden; }
.r-track-fill { width: 0; height: 100%; border-radius: 999px; background: var(--ios-tint); transition: width var(--ios-dur-2) var(--ios-ease-out); }
.r-steps { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.r-steps button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; background: transparent; font: 600 0.875rem/1 var(--ios-font); color: var(--ios-label-3); cursor: pointer; }
.r-steps button:hover { color: var(--ios-label); }
.r-dot { position: relative; width: 1.6rem; height: 1.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ios-edge); color: var(--ios-label-3); font-size: 0.75rem; font-weight: 700; }
.r-check { position: absolute; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.r-steps li.is-done .r-n { opacity: 0; }
.r-steps li.is-done .r-check { opacity: 1; }
.r-steps li.is-done .r-dot { background: var(--ios-tint); color: #fff; box-shadow: none; }
.r-steps li.is-active .r-dot { background: var(--ios-label); color: var(--ios-card); box-shadow: inset 0 1px 0 var(--ios-gloss-soft); }
.r-steps li.is-active button { color: var(--ios-label); }

/* ===== layout and editor ===== */
.r-layout { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 1.75rem; }
.r-preview-col { min-width: 0; }
@media (min-width: 940px) { .r-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr); } .r-preview-col { position: sticky; top: 84px; } }
.r-editor { display: grid; gap: 1rem; }
.r-step { display: grid; gap: 0.9rem; padding: clamp(1.1rem, 1rem + 1vw, 1.6rem); background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring), var(--ios-shadow); }
.r-step[hidden] { display: none; }
.r-step.is-active { animation: rIn var(--ios-dur-2) var(--ios-ease-out) both; }
@keyframes rIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.r-step > h2 { margin: 0; }
.r-field { display: grid; gap: 0.35rem; min-width: 0; }
.r-field > span { font-size: 0.8125rem; font-weight: 600; color: var(--ios-label-2); }
.r-optional { font-weight: 500; color: var(--ios-label-3); }
.r-field input, .r-field select, .r-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; }
.r-field textarea { min-height: 64px; resize: vertical; }
.r-two { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .r-two { grid-template-columns: 1fr; } }
.r-color { display: inline-flex; }
.r-field .r-color input[type="color"] { width: 46px; height: 46px; padding: 3px; border: 0; border-radius: var(--r); background: var(--ios-fill); box-shadow: var(--ios-field); cursor: pointer; }
.r-field .r-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.r-field .r-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.r-field .r-color input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
.r-logo-row { display: flex; align-items: center; gap: 0.9rem; }
.r-logo-thumb { width: 64px; height: 64px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: var(--r); background: var(--ios-fill); box-shadow: var(--ios-field); color: var(--ios-label-3); }
.r-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.r-logo-thumb svg { width: 22px; height: 22px; }
.r-logo-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.r-items { display: grid; gap: 0.75rem; }
.r-item { display: grid; gap: 0.5rem; padding: 0.75rem; border-radius: var(--r); background: var(--ios-fill); }
.r-item-row { display: grid; grid-template-columns: 1fr 1fr 1.1fr auto; gap: 0.5rem; align-items: end; }
@media (max-width: 560px) { .r-item-row { grid-template-columns: 1fr 1fr; } }
.r-mini { display: grid; gap: 0.25rem; }
.r-mini > span { font-size: 0.75rem; font-weight: 600; color: var(--ios-label-2); }
.r-mini input, .r-mini output { width: 100%; min-height: 42px; padding: 8px 10px; }
.r-mini output { display: flex; align-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.r-i-del { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--ios-fill-2); color: var(--ios-label-2); cursor: pointer; }
.r-i-del:hover { color: var(--red-ink); }
.r-i-del svg { width: 18px; height: 18px; }
.r-add { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; border: 0; border-radius: 10px; background: var(--ios-fill); color: var(--ios-label); font: 600 0.9375rem/1 var(--ios-font); padding: 11px 15px; cursor: pointer; }
.r-add:hover { background: var(--ios-fill-2); }
.r-paysum { display: grid; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: var(--r); background: var(--ios-fill); }
.r-paysum div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.r-paysum span { color: var(--ios-label-2); }
.r-paysum b { font-variant-numeric: tabular-nums; }
.r-paysum div:last-child b { color: var(--ios-tint); }
.r-check { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; cursor: pointer; }
.r-check input { width: 20px; height: 20px; accent-color: var(--ios-tint); }
.r-extra { display: grid; gap: 0.75rem; }
.r-nav { display: flex; justify-content: space-between; gap: 0.75rem; }
.r-nav .btn { border-radius: 10px; }
.r-saved { margin: 0; min-height: 1.2em; color: var(--ios-label-2); font-size: 0.875rem; }
.r-clear { justify-self: start; padding: 6px 0; border: 0; background: transparent; color: var(--ios-label-2); font: 600 0.875rem/1 var(--ios-font); text-decoration: underline; cursor: pointer; }
.r-clear:hover { color: var(--red-ink); }

/* ===== preview ===== */
.r-preview-head { margin-bottom: 0.6rem; }
.r-preview-label { font-size: 0.8125rem; font-weight: 600; color: var(--ios-label-2); }
.r-tpl { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 10px; background: var(--ios-fill); }
.r-tpl-btn { border: 0; border-radius: 6px; background: transparent; color: var(--ios-label-2); font: 600 0.875rem/1 var(--ios-font); padding: 8px 12px; cursor: pointer; }
.r-tpl-btn[aria-pressed="true"] { background: var(--ios-card); color: var(--ios-label); box-shadow: var(--ios-shadow); }
.r-tpl-note { margin: 0.6rem 0; color: var(--ios-label-2); font-size: 0.8125rem; }
.r-preview-frame { position: relative; max-width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--ios-fill); box-shadow: var(--ios-ring); }
.r-scale { position: relative; transform-origin: top left; }
.r-actions { margin-top: 0.875rem; }
.r-actions .btn { width: 100%; border-radius: 10px; }
.r-privacy { margin: 0.75rem 0 0; color: var(--ios-label-2); font-size: 0.8125rem; }
.r-pdfhost { position: fixed; left: -100000px; top: 0; background: #fff; }
.r-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; padding: 11px 16px; border-radius: 12px; background: var(--ios-action); color: var(--ios-action-ink); font: 600 0.9rem/1.2 var(--ios-font); box-shadow: 0 10px 30px -18px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }

/* ===== the paper document ===== */
.r-sheet { width: 794px; min-height: 1123px; box-sizing: border-box; padding: 52px 56px; background: #fff; color: #1a1a1a; font-family: var(--ios-font); font-size: 13px; line-height: 1.5; --acc: #34618f; --acc-ink: #fff; }
.r-sheet.r-ink-on-light { --acc-ink: #1a1a1a; }
.r-sheet * { box-sizing: border-box; }
.r-sheet.r-format-a4 { width: 794px; min-height: 1123px; }
.r-sheet.r-format-a4l { width: 1123px; min-height: 794px; }
.r-sheet.r-format-t58 { width: 219px; min-height: 760px; padding: 16px 12px; font-family: var(--ios-mono); font-size: 9.5px; line-height: 1.45; }
.r-sheet.r-format-t80 { width: 302px; min-height: 820px; padding: 18px 14px; font-family: var(--ios-mono); font-size: 11px; line-height: 1.5; }

.r-mark { width: 54px; height: 54px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--acc); color: var(--acc-ink); font-weight: 800; font-size: 21px; }
.r-mark-img { background: transparent; border-radius: 8px; }
.r-mark-img img { width: 54px; height: 54px; object-fit: contain; }
.r-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; }
.r-from { display: flex; align-items: center; gap: 14px; min-width: 0; }
.r-biz-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.r-biz-meta { color: #5b5b60; font-size: 12px; white-space: pre-line; margin-top: 3px; }
.r-doc { text-align: right; flex: none; }
.r-doc-title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.r-metas { display: grid; gap: 3px; margin-top: 6px; }
.r-meta { display: flex; gap: 12px; justify-content: flex-end; font-size: 12px; }
.r-meta span { color: #6b6b70; }
.r-meta b { font-weight: 600; }
.r-billto { margin-top: 26px; }
.r-lbl { margin-bottom: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8a8a90; }
.r-cust-name { font-weight: 700; font-size: 13.5px; }
.r-cust-meta { color: #5b5b60; font-size: 12px; white-space: pre-line; margin-top: 3px; }
.r-desc { margin-top: 20px; color: #5b5b60; font-size: 12px; white-space: pre-line; }
.r-items { width: 100%; border-collapse: collapse; margin-top: 20px; }
.r-items th { padding: 10px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #6b6b70; text-align: left; border-bottom: 1.5px solid #1a1a1a; }
.r-items th.r { text-align: right; }
.r-items td { padding: 11px 9px; vertical-align: top; border-bottom: 1px solid #eeeef1; }
.r-items tbody tr:last-child td { border-bottom: 1px solid #e3e3e6; }
.r-items .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-empty { color: #9a9a9f; font-style: italic; }
.r-totals { width: min(320px, 100%); margin: 18px 0 0 auto; }
.r-row { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; }
.r-row span { color: #5b5b60; }
.r-row b { font-variant-numeric: tabular-nums; }
.r-row-grand { margin-top: 6px; padding-top: 12px; border-top: 1.5px solid #1a1a1a; }
.r-row-grand span { color: #1a1a1a; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.r-row-grand b { font-size: 19px; font-weight: 800; color: var(--acc); }
.r-payment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; padding: 16px 18px; background: #f5f5f7; border-radius: 12px; }
.r-payment div { display: grid; gap: 4px; }
.r-payment span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a90; }
.r-payment b { font-size: 14px; font-variant-numeric: tabular-nums; }
.r-payment .r-paid b { color: var(--acc); font-size: 17px; }
.r-paymeta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 12px; color: #5b5b60; }
.r-paymeta b { color: var(--ink, #1a1a1a); font-weight: 600; }
.r-stamp { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 2px solid var(--acc); border-radius: 6px; color: var(--acc); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.r-notes { margin-top: 24px; padding-top: 14px; border-top: 1px solid #eeeef1; color: #5b5b60; font-size: 12px; white-space: pre-line; }
.r-sign { margin-top: 34px; padding-top: 8px; border-top: 1px solid #1a1a1a; max-width: 240px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b70; }
.r-ph { color: #b9b9be; }

/* ===== six templates ===== */
.r-t-band { padding-top: 0; }
.r-t-band .r-top { margin: 0 -56px 28px; padding: 38px 56px; background: var(--acc); color: var(--acc-ink); align-items: center; }
.r-t-band .r-mark { background: var(--acc-ink); color: var(--acc); }
.r-t-band .r-mark-img { background: rgba(255,255,255,.16); }
.r-t-band .r-biz-name, .r-t-band .r-doc-title, .r-t-band .r-meta b, .r-t-band .r-meta span, .r-t-band .r-biz-meta { color: var(--acc-ink); }
.r-t-band .r-meta span, .r-t-band .r-biz-meta { opacity: .8; }
.r-t-band .r-items th { background: var(--acc); color: var(--acc-ink); border-bottom: 0; border-radius: 8px 8px 0 0; }

.r-t-stamp .r-top { padding-bottom: 20px; border-bottom: 3px solid var(--acc); }
.r-t-stamp .r-doc-title { font-size: 34px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.r-t-stamp .r-stamp { background: var(--acc); color: #fff; border-color: var(--acc); }
.r-t-stamp .r-items th { background: #14141a; color: #fff; border-bottom: 0; }

.r-t-rail { display: flex; padding: 0; }
.r-t-rail .r-rail { flex: 0 0 220px; align-self: stretch; display: flex; flex-direction: column; gap: 24px; padding: 52px 30px; background: var(--acc); color: var(--acc-ink); }
.r-t-rail .r-rail .r-mark { background: var(--acc-ink); color: var(--acc); }
.r-t-rail .r-rail .r-biz-name, .r-t-rail .r-rail .r-doc-title, .r-t-rail .r-rail .r-meta b { color: var(--acc-ink); }
.r-t-rail .r-rail .r-meta span, .r-t-rail .r-rail .r-biz-meta { color: var(--acc-ink); opacity: .8; }
.r-t-rail .r-rail .r-meta { justify-content: flex-start; }
.r-t-rail .r-rail-meta { margin-top: auto; }
.r-t-rail .r-body { flex: 1; min-width: 0; padding: 52px 44px; }

.r-t-ledger { font-size: 12.5px; }
.r-t-ledger .r-mark { border-radius: 8px; background: #141414; color: #fff; }
.r-t-ledger .r-top { padding-bottom: 14px; border-bottom: 1px solid #141414; }
.r-t-ledger .r-doc-title { font-size: 17px; letter-spacing: 0.2em; text-transform: uppercase; }
.r-t-ledger .r-meta b, .r-t-ledger .r-row b, .r-t-ledger .r-items .r { font-family: var(--ios-mono); }
.r-t-ledger .r-items th { background: #f5f5f7; border-top: 1px solid #141414; border-bottom: 1px solid #141414; letter-spacing: .1em; }
.r-t-ledger .r-items td { border-bottom: 1px dotted #c9c9cf; }
.r-t-ledger .r-row-grand { border-top: 2px solid #141414; }

.r-t-soft { padding: 40px; }
.r-t-soft .r-mark { border-radius: 16px; }
.r-t-soft .r-top { padding: 26px 28px; border-radius: 20px; background: #f4f5f7; }
.r-t-soft .r-billto { margin-top: 18px; padding: 20px 24px; border-radius: 20px; background: #f4f5f7; }
.r-t-soft .r-items th { background: var(--acc); color: var(--acc-ink); border-bottom: 0; text-transform: none; letter-spacing: 0; }
.r-t-soft .r-items th:first-child { border-radius: 10px 0 0 10px; }
.r-t-soft .r-items th:last-child { border-radius: 0 10px 10px 0; }
.r-t-soft .r-totals, .r-t-soft .r-payment { background: #f4f5f7; }

.r-t-minimal { padding: 62px; }
.r-t-minimal .r-mark { background: transparent; color: #1a1a1a; box-shadow: inset 0 0 0 1px #d9d9de; border-radius: 50%; font-weight: 500; }
.r-t-minimal .r-mark-img { box-shadow: none; }
.r-t-minimal .r-top { padding-bottom: 22px; border-bottom: 1px solid #e5e5e7; }
.r-t-minimal .r-doc-title { font-size: 38px; font-weight: 200; color: #1a1a1a; }
.r-t-minimal .r-items th { letter-spacing: .2em; font-weight: 500; color: #9a9a9f; border-bottom: 1px solid #e5e5e7; }
.r-t-minimal .r-row-grand b { color: #1a1a1a; }

/* ===== thermal formats: narrow, monospaced, no wide compositions ===== */
.r-sheet.r-format-t58 .r-top, .r-sheet.r-format-t80 .r-top { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px dashed #8a8a90; background: none; color: inherit; }
.r-sheet.r-format-t58 .r-metas, .r-sheet.r-format-t80 .r-metas { margin-top: 4px; }
.r-sheet.r-format-t58 .r-meta, .r-sheet.r-format-t80 .r-meta { justify-content: center; gap: 8px; }
.r-sheet.r-format-t58 .r-mark, .r-sheet.r-format-t80 .r-mark { width: 40px; height: 40px; font-size: 15px; border-radius: 8px; margin: 0 auto; background: var(--acc); color: var(--acc-ink); }
.r-sheet.r-format-t58 .r-mark-img, .r-sheet.r-format-t80 .r-mark-img { background: transparent; }
.r-sheet.r-format-t58 .r-mark-img img, .r-sheet.r-format-t80 .r-mark-img img { width: 40px; height: 40px; }
.r-sheet.r-format-t58 .r-biz-name, .r-sheet.r-format-t80 .r-biz-name { font-size: 12px; }
.r-sheet.r-format-t58 .r-doc-title, .r-sheet.r-format-t80 .r-doc-title { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.r-sheet.r-format-t58 .r-biz-meta, .r-sheet.r-format-t80 .r-biz-meta, .r-sheet.r-format-t58 .r-biz-name, .r-sheet.r-format-t80 .r-biz-name, .r-sheet.r-format-t58 .r-doc-title, .r-sheet.r-format-t80 .r-doc-title, .r-sheet.r-format-t58 .r-meta span, .r-sheet.r-format-t80 .r-meta span, .r-sheet.r-format-t58 .r-meta b, .r-sheet.r-format-t80 .r-meta b { color: #1a1a1a; opacity: 1; }
.r-sheet.r-format-t58 .r-billto, .r-sheet.r-format-t80 .r-billto { margin-top: 14px; padding: 0; background: none; border-radius: 0; }
.r-sheet.r-format-t58 .r-desc, .r-sheet.r-format-t80 .r-desc { margin-top: 12px; }
.r-sheet.r-format-t58 .r-items, .r-sheet.r-format-t80 .r-items { margin-top: 14px; table-layout: fixed; }
.r-sheet.r-format-t58 .r-items th, .r-sheet.r-format-t80 .r-items th { padding: 6px 3px; font-size: 8px; letter-spacing: 0; background: none; color: #1a1a1a; border-top: 1px dashed #8a8a90; border-bottom: 1px dashed #8a8a90; border-radius: 0; }
.r-sheet.r-format-t58 .r-items td, .r-sheet.r-format-t80 .r-items td { padding: 6px 3px; font-size: 9px; border-bottom: 1px dotted #cfcfd4; overflow-wrap: anywhere; }
.r-sheet.r-format-t58 .r-items td:first-child, .r-sheet.r-format-t80 .r-items td:first-child { width: 46%; }
.r-sheet.r-format-t58 .r-items th.r, .r-sheet.r-format-t80 .r-items th.r { text-align: right; }
.r-sheet.r-format-t58 .r-totals, .r-sheet.r-format-t80 .r-totals { width: 100%; margin-top: 12px; padding: 0; background: none; border-radius: 0; }
.r-sheet.r-format-t58 .r-row, .r-sheet.r-format-t80 .r-row { padding: 3px 0; font-size: 9px; }
.r-sheet.r-format-t58 .r-row-grand, .r-sheet.r-format-t80 .r-row-grand { border-top: 1px dashed #8a8a90; }
.r-sheet.r-format-t58 .r-row-grand b, .r-sheet.r-format-t80 .r-row-grand b { font-size: 13px; }
.r-sheet.r-format-t58 .r-payment, .r-sheet.r-format-t80 .r-payment { grid-template-columns: 1fr; gap: 6px; margin-top: 14px; padding: 10px 0; border-top: 1px dashed #8a8a90; border-bottom: 1px dashed #8a8a90; border-radius: 0; background: none; }
.r-sheet.r-format-t58 .r-payment div, .r-sheet.r-format-t80 .r-payment div { display: flex; justify-content: space-between; }
.r-sheet.r-format-t58 .r-payment span, .r-sheet.r-format-t80 .r-payment span { font-size: 8px; }
.r-sheet.r-format-t58 .r-payment b, .r-sheet.r-format-t80 .r-payment b { font-size: 10px; }
.r-sheet.r-format-t58 .r-paymeta, .r-sheet.r-format-t80 .r-paymeta { font-size: 9px; gap: 4px; }
.r-sheet.r-format-t58 .r-stamp, .r-sheet.r-format-t80 .r-stamp { padding: 5px 8px; border-width: 1px; font-size: 9px; letter-spacing: .08em; }
.r-sheet.r-format-t58 .r-notes, .r-sheet.r-format-t80 .r-notes { margin-top: 12px; padding-top: 10px; font-size: 9px; }
.r-sheet.r-format-t58 .r-sign, .r-sheet.r-format-t80 .r-sign { max-width: none; margin-top: 18px; font-size: 9px; }
.r-sheet.r-format-t58 .r-lbl, .r-sheet.r-format-t80 .r-lbl { font-size: 8px; }
.r-sheet.r-format-t58 .r-cust-name, .r-sheet.r-format-t80 .r-cust-name, .r-sheet.r-format-t58 .r-cust-meta, .r-sheet.r-format-t80 .r-cust-meta { font-size: 10px; }
.r-sheet.r-format-t58.r-t-rail, .r-sheet.r-format-t80.r-t-rail { display: block; padding: 16px 12px; }
.r-sheet.r-format-t58.r-t-rail .r-rail, .r-sheet.r-format-t80.r-t-rail .r-rail, .r-sheet.r-format-t58.r-t-rail .r-body, .r-sheet.r-format-t80.r-t-rail .r-body { padding: 0; background: none; color: inherit; display: block; }
.r-sheet.r-format-t58.r-t-soft, .r-sheet.r-format-t80.r-t-soft { padding: 16px 12px; }
.r-sheet.r-format-t58.r-t-minimal, .r-sheet.r-format-t80.r-t-minimal { padding: 16px 12px; }
.r-sheet.r-format-t58.r-t-band, .r-sheet.r-format-t80.r-t-band { padding-top: 16px; }

@media print {
  body * { visibility: hidden !important; }
  .r-preview-frame, .r-preview-frame * { visibility: visible !important; }
  .r-preview-frame { position: absolute; inset: 0; overflow: visible; background: #fff; box-shadow: none; border-radius: 0; }
  .r-scale { transform: none !important; margin: 0 !important; }
}
