/* KeptSafe prototype v20: printed report styles (the account's brand, not KeptSafe's). Always light: reports are paper. */
.rp-paper { --rp-primary: #B42318; --rp-accent: #1D2127; background: #fff; color: #1D2127; width: 100%; max-width: 794px; margin: 0 auto; padding: 40px 44px 28px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 24px rgba(22,38,63,.12); border-radius: 4px; color-scheme: light; }
.rp-paper h3.rp-h { font-size: 13.5px; font-weight: 700; color: var(--rp-primary); margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--rp-primary); text-transform: uppercase; letter-spacing: .04em; }
.rp-paper p { margin: 0 0 8px; }
.rp-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.rp-header .rp-logo { height: 46px; max-width: 220px; object-fit: contain; }
.rp-header .rp-co { text-align: right; font-size: 11px; line-height: 1.5; }
.rp-header.band { background: var(--rp-primary); color: #fff; margin: -40px -44px 22px; padding: 18px 44px; border-radius: 4px 4px 0 0; }
.rp-header.band .rp-logo { background: #fff; padding: 6px 10px; border-radius: 6px; }
.rp-header.plain { border-bottom: 3px solid var(--rp-primary); padding-bottom: 12px; }
.rp-title { font-size: 22px; font-weight: 800; color: var(--rp-accent); margin: 4px 0 10px; letter-spacing: -.01em; }
.rp-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; background: #F5F6F8; border-radius: 6px; padding: 12px 14px; }
.rp-details span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #5C6570; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.rp-stats div { background: #F5F6F8; border-radius: 6px; padding: 8px 10px; font-size: 11px; color: #5C6570; }
.rp-stats b { display: block; font-size: 22px; color: #1D2127; line-height: 1.1; }
.rp-stats b.ok { color: #237A36; } .rp-stats b.bad { color: #C92A2A; }
.rp-bar { height: 8px; border-radius: 6px; overflow: hidden; display: flex; background: #E1E4E8; margin-bottom: 8px; }
.rp-bar .p { background: #237A36; } .rp-bar .f { background: #C92A2A; } .rp-bar .n { background: #9AA3AE; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rp-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #5C6570; border-bottom: 1.5px solid #C9CED6; padding: 5px 6px; }
.rp-table td { border-bottom: 1px solid #E8EAED; padding: 5px 6px; vertical-align: top; }
.rp-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.rp-table tr.grp td { background: #F5F6F8; font-weight: 700; }
.rp-res { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; white-space: nowrap; }
.rp-res.pass { background: #237A36; } .rp-res.critical { background: #C92A2A; } .rp-res.noncritical { background: #E8A200; color: #1D2127; } .rp-res.nonconformance { background: #6741D9; } .rp-res.nt { background: #6B7280; }
.rp-muted { color: #5C6570; } .rp-ok { color: #237A36; } .rp-small { font-size: 11px; color: #3A424D; }
.rp-plan-lv { font-weight: 700; margin: 8px 0 4px; }
.rp-plan { position: relative; border: 1px solid #E1E4E8; border-radius: 4px; overflow: hidden; }
.rp-plan img { width: 100%; display: block; }
.rp-pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.rp-pin.pass { background: #237A36; } .rp-pin.critical { background: #C92A2A; width: 18px; height: 18px; margin: -9px 0 0 -9px; } .rp-pin.noncritical { background: #E8A200; width: 16px; height: 16px; margin: -8px 0 0 -8px; } .rp-pin.nonconformance { background: #6741D9; width: 16px; height: 16px; margin: -8px 0 0 -8px; } .rp-pin.nt { background: #6B7280; }
.rp-legend { display: flex; gap: 14px; font-size: 10.5px; margin-top: 6px; flex-wrap: wrap; }
.rp-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.rp-legend .pass::before { background: #237A36; } .rp-legend .critical::before { background: #C92A2A; } .rp-legend .noncritical::before { background: #E8A200; } .rp-legend .nonconformance::before { background: #6741D9; } .rp-legend .nt::before { background: #6B7280; }
.rp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rp-photos.lg { grid-template-columns: repeat(2, 1fr); }
.rp-photos figure { margin: 0; }
.rp-photos .ph { aspect-ratio: 4/3; border-radius: 4px; background: linear-gradient(135deg, #9AA3AE, #5C6570); }
.rp-photos figcaption { font-size: 10px; color: #5C6570; margin-top: 2px; }
.rp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-sign span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #5C6570; }
.rp-sign img { height: 44px; display: block; }
.rp-sig { font-family: "Brush Script MT", cursive; font-size: 22px; }
.rp-standards { margin-top: 18px; padding: 10px 12px; border-left: 3px solid var(--rp-primary); background: #F5F6F8; font-size: 11px; }
.rp-totals { margin: 10px 0 0 auto; width: 260px; font-size: 12px; }
.rp-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.rp-totals .grand { border-top: 2px solid var(--rp-accent); font-weight: 800; font-size: 15px; margin-top: 4px; padding-top: 6px; }
.rp-box { margin-top: 14px; padding: 10px 12px; border: 1.5px solid #C9CED6; border-radius: 6px; }
.rp-approve { text-align: center; margin: 16px 0; }
.rp-approve span { display: inline-block; background: var(--rp-primary); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 6px; }
.rp-cover { min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-left: 8px solid var(--rp-primary); padding: 30px 34px; margin-bottom: 10px; }
.rp-cover-logo { height: 60px; margin-bottom: 60px; }
.rp-cover-title { font-size: 34px; font-weight: 800; color: var(--rp-accent); line-height: 1.1; letter-spacing: -.02em; }
.rp-cover-sub { font-size: 20px; color: var(--rp-primary); margin-top: 8px; }
.rp-cover-meta { margin-top: 40px; color: #5C6570; font-size: 13px; }
.rp-break { border-top: 1.5px dashed #C9CED6; margin: 18px -44px; position: relative; text-align: center; }
.rp-break span { position: relative; top: -9px; background: #fff; padding: 0 8px; font-size: 10px; color: #9AA3AE; text-transform: uppercase; letter-spacing: .08em; }
.rp-break.print { border: 0; margin: 0; height: 0; break-after: page; }
.rp-footer { margin-top: 26px; padding-top: 8px; border-top: 1px solid #E1E4E8; font-size: 10px; color: #5C6570; display: flex; justify-content: space-between; gap: 10px; }

/* Builder: selectable blocks */
.rp-block { position: relative; border-radius: 4px; outline: 1.5px dashed transparent; outline-offset: 4px; cursor: pointer; }
.rp-block:hover { outline-color: #C9D4E6; }
.rp-block.sel { outline: 2px solid #F07B2C; }
.rp-block.is-hidden { opacity: .35; }
.rp-block.drop-before { box-shadow: 0 -4px 0 #F07B2C; }
.rp-block.drop-after { box-shadow: 0 4px 0 #F07B2C; }
.rp-emptynote { font-size: 11px; color: #9AA3AE; padding: 6px; border: 1px dashed #E1E4E8; border-radius: 4px; }
.rp-block.rp-dragging { opacity: .4; }
