/* Report paper (screen preview and print). Always light, regardless of app theme. */

.report-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 20px; background: var(--bg-1); box-shadow: inset 0 -1px 0 var(--line); }

.paper { position: relative; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: #1c1a17; }
.paper * { color: inherit; }
.paper .rp-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #d4772a; margin-bottom: 18px; }
.paper .rp-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #1f2024; color: #ffad66; flex: none; }
.paper .rp-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: #fff; }
/* The company logo lockup is wide: show it at its own proportions, with a divider before the product name. */
.paper .rp-logo.wide { width: auto; height: 42px; padding-right: 14px; border-radius: 0; background: none; box-shadow: inset -1px 0 0 #e3ddd3; }
.paper .rp-logo.wide img { width: auto; height: 42px; border-radius: 0; background: none; object-fit: contain; }
.paper .rp-company { font-weight: 700; font-size: 11pt; letter-spacing: .01em; }
.paper .rp-product { font-size: 8pt; color: #7a736a; letter-spacing: .12em; text-transform: uppercase; }
.paper .rp-id { margin-left: auto; text-align: right; font-size: 8.5pt; color: #57514a; line-height: 1.4; }
.paper .rp-id strong { color: #1c1a17; font-size: 10pt; }
.paper h1.rp-title { font-size: 20pt; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; color: #1c1a17; }
.paper .rp-sub { color: #6a645b; font-size: 9.5pt; margin-bottom: 16px; }
.paper .rp-meta { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; border: 1px solid #e3ddd4; border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.paper .rp-meta > div { padding: 7px 10px; border-right: 1px solid #e3ddd4; }
.paper .rp-meta > div:last-child { border-right: 0; }
.paper .rp-meta .k { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #6b645b; }
.paper .rp-meta .v { font-size: 9.5pt; font-weight: 600; margin-top: 2px; }
.paper .rp-status-draft { color: #b25a10; }
.paper .rp-status-issued { color: #2f7a4f; }
.paper h2.rp-h { font-size: 11.5pt; font-weight: 700; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #ece6dd; color: #2b2620; }
.paper .rp-kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 14px; font-size: 9.5pt; }
.paper .rp-kv .k { color: #6a645b; }
.paper table.rp-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; font-variant-numeric: tabular-nums; }
.paper table.rp-table th { text-align: left; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .05em; color: #6a645b; padding: 5px 6px; border-bottom: 1.5px solid #d4772a; background: #faf6f0; }
.paper table.rp-table td { padding: 5px 6px; border-bottom: 1px solid #eee8df; vertical-align: top; }
.paper table.rp-table tr:nth-child(even) td { background: #fcfaf7; }
.paper figure { margin: 6px 0 4px; }
.paper figure img { width: 100%; height: auto; border: 1px solid #e3ddd4; border-radius: 4px; }
.paper figcaption { font-size: 8pt; color: #7a736a; margin-top: 4px; }
.paper ul.rp-list { margin: 0; padding-left: 18px; list-style: disc; font-size: 9pt; line-height: 1.5; color: #3d3833; }
.paper .rp-alert { border-left: 3px solid #d39a2a; background: #fdf6e8; padding: 8px 12px; border-radius: 0 4px 4px 0; font-size: 9pt; }
.paper .rp-alert ul { margin: 4px 0 0; padding-left: 16px; list-style: disc; }
.paper .rp-text { font-size: 9.5pt; line-height: 1.55; color: #3d3833; white-space: pre-wrap; }
.paper pre.rp-code { font: 8.5pt/1.5 "Cascadia Mono", Consolas, monospace; background: #f7f3ee; border: 1px solid #ece6dd; border-radius: 4px; padding: 8px 10px; white-space: pre-wrap; }
.paper .rp-sign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.paper .rp-sign > div { border-top: 1px solid #b9b1a6; padding-top: 6px; font-size: 8.5pt; color: #57514a; }
.paper .rp-sign strong { display: block; color: #1c1a17; font-size: 9.5pt; margin-top: 2px; }
.paper .rp-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #ece6dd; font-size: 7.5pt; color: #6b645b; display: flex; justify-content: space-between; gap: 12px; }
.paper .rp-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
.paper .rp-watermark span { transform: rotate(-32deg); font-size: 64pt; font-weight: 800; letter-spacing: .08em; color: rgba(212, 119, 42, .085); white-space: nowrap; }
.paper .rp-demo { margin-bottom: 14px; padding: 6px 10px; border-radius: 4px; background: #fff3e0; color: #8a4b0b; font-size: 8.5pt; font-weight: 600; }
@media print { .paper .rp-watermark span { color: rgba(212, 119, 42, .1); } .paper h2.rp-h { break-after: avoid; } .paper table.rp-table tr, .paper figure { break-inside: avoid; } }
/* A template's mark above the title, and lines for signatures on the printed copy. */
.paper .rp-mark { display: inline-block; margin: 0 0 8px; padding: 2px 9px; border: 1px solid #d4772a; border-radius: 4px; font-size: 7.5pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a4f12; }
.paper .rp-sign-lines { row-gap: 22px; }
.paper .rp-sign .rp-line { display: block; margin-top: 26px; border-top: 1px solid #b9b1a6; padding-top: 2px; font-size: 7.5pt; color: #6b645b; }
.paper .rp-sign-lines > div { display: flex; flex-direction: column; }
.paper .rp-sign .rp-fill { flex: 1 1 auto; }

/* On screen a wide table scrolls inside its own box rather than widening the page (WCAG 1.4.10).
   Printed, it keeps the page width. */
@media screen { .paper .rp-table-wrap { overflow-x: auto; } }
