/* 유어스 A4 보고서(public/report.js) — 본인 조회 화면 인쇄·콘솔 미리보기·콘솔 인쇄 공용. mm 단위, 인쇄 색 그대로. */
.rp{
  --rp-ink:#191f28;--rp-ink-2:#333d4b;--rp-ink-3:#4e5968;--rp-ink-4:#626d7a;--rp-line:#e5e8eb;--rp-fill:#f2f4f6;--rp-fill-2:#f9fafb;
  --rp-brand-ink:#00703a;--rp-danger:#d22030;--rp-danger-soft:#ffeff0;--rp-warning:#a35400;--rp-warning-soft:#fff3e0;
  --rp-font:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard Variable",Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;
  --rp-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color:var(--rp-ink);background:#fff;font-family:var(--rp-font);font-size:9pt;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;color-scheme:light}
@page{size:A4;margin:14mm 13mm 16mm;
  @bottom-left{content:"유어스 조회본 · 심평원 청구 기록 기반 참고 자료";font:500 7.5pt -apple-system,"Apple SD Gothic Neo",sans-serif;color:#8b95a1}
  @bottom-right{content:counter(page) " / " counter(pages);font:600 7.5pt -apple-system,"Apple SD Gothic Neo",sans-serif;color:#626d7a}}
.rp-head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10mm;padding-bottom:4mm;border-bottom:2pt solid #191f28}
.rp-logo{display:block;width:26mm;height:auto;margin-bottom:4mm}
.rp-kicker{margin:0 0 1mm;font-size:8.5pt;font-weight:600;color:var(--rp-brand-ink)}
.rp-head h1{margin:0;font-size:20pt;line-height:1.25;font-weight:800;letter-spacing:-.02em}
.rp-meta{display:grid;grid-template-columns:auto auto;gap:1.2mm 6mm;margin:0;font-size:8.5pt}
.rp-meta div{display:contents}
.rp-meta dt{color:#626d7a}
.rp-meta dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.rp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm;margin:5mm 0 2mm}
.rp-stat{display:flex;flex-direction:column;gap:.6mm;padding:2.8mm 4mm;border-radius:3mm;background:var(--rp-fill)}
.rp-stat span{font-size:8pt;color:#626d7a}
.rp-stat strong{font-size:16pt;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums}
.rp-stat small{margin-left:.6mm;font-size:9pt;font-weight:600;color:#4e5968}
.rp-sec{margin-top:5mm}
.rp-sec.rp-break{break-before:page}
.rp-sec h2{display:flex;align-items:center;gap:2.5mm;margin:0 0 3mm;font-size:12.5pt;font-weight:800;letter-spacing:-.01em;break-after:avoid}
.rp-num{display:inline-grid;place-items:center;width:6mm;height:6mm;border-radius:50%;background:#191f28;color:#fff;font-size:8.5pt;font-weight:800}
.rp-chips{display:grid;grid-template-columns:repeat(5,1fr);gap:2.5mm}
.rp-chip{display:flex;flex-direction:column;gap:.6mm;padding:2.4mm 3mm;border:.6pt solid var(--rp-line);border-radius:2.5mm}
.rp-chip[data-on=true]{border-color:#191f28}
.rp-chip-label{font-size:8pt;color:#4e5968}
.rp-chip strong{font-size:14pt;font-weight:800;font-variant-numeric:tabular-nums}
.rp-chip strong small{margin-left:.5mm;font-size:8.5pt;font-weight:600;color:#4e5968}
.rp-table{width:100%;border-collapse:collapse;font-size:8.3pt;line-height:1.45}
.rp-table thead th{padding:2mm 2mm;border-top:1pt solid #191f28;border-bottom:.6pt solid #191f28;background:var(--rp-fill);font-size:7.8pt;font-weight:700;text-align:left;color:#333d4b}
.rp-table tbody td{padding:2mm;border-bottom:.5pt solid var(--rp-line);vertical-align:top}
.rp-table tr{break-inside:avoid}
.rp-table code{margin-right:1.2mm;padding:.2mm 1mm;border-radius:1mm;background:var(--rp-fill);font-family:var(--rp-mono);font-size:7.6pt;font-weight:700}
.rp-table p{margin:0}
.rp-strong{font-weight:700}
.rp-grade{font-weight:700;color:#4e5968;font-variant-numeric:tabular-nums}
.rp-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.rp-right{text-align:right}
.rp-matrix td:first-child{width:24%}.rp-matrix td:nth-child(2){width:13%}
.rp-matrix tbody td{padding:1.1mm 2mm;line-height:1.4}
.rp-rules{margin:0;color:#333d4b;line-height:1.5}
.rp-rules b{color:#191f28;font-weight:800;font-variant-numeric:tabular-nums}
.rp-rules [data-verdict=disclose] b{color:var(--rp-danger)}
.rp-rules [data-verdict=review] b{color:var(--rp-warning)}
.rp-rules em{font-style:normal;font-weight:700;color:var(--rp-warning)}
.rp-rules small{font-size:7.6pt;color:#626d7a}
.rp-items{margin:0;padding:0;list-style:none}
.rp-conclusion{display:flex;flex-direction:column;gap:1mm;margin:4mm 0 0;padding:3.5mm 4.5mm;border-radius:2.5mm;border-left:2mm solid #191f28;background:var(--rp-fill)}
.rp-conclusion[data-tone=disclose]{border-left-color:var(--rp-danger);background:var(--rp-danger-soft)}
.rp-conclusion[data-tone=review]{border-left-color:var(--rp-warning);background:var(--rp-warning-soft)}
.rp-conclusion strong{font-size:11pt;font-weight:800;color:#191f28}
.rp-conclusion span{font-size:8.3pt;color:#4e5968;font-variant-numeric:tabular-nums}
.rp-items li{margin-bottom:.8mm}
.rp-items li[data-level=review] span:last-child{color:#4e5968}
.rp-tag{display:inline-block;padding:.3mm 1.6mm;border-radius:1.2mm;background:var(--rp-fill);font-size:7.4pt;font-weight:800;color:#4e5968;white-space:nowrap}
.rp-tag.is-danger{background:var(--rp-danger-soft);color:var(--rp-danger)}
.rp-tag.is-warning{background:var(--rp-warning-soft);color:var(--rp-warning)}
.rp-history td:nth-child(1){width:17mm}.rp-history td:nth-child(2){width:9mm}.rp-history td:nth-child(3){width:34mm}.rp-history td:nth-child(5){width:10mm}
.rp-diseases td:nth-child(2){width:24mm}
.rp-empty{margin:0;padding:6mm;border-radius:2.5mm;background:var(--rp-fill-2);color:#626d7a;text-align:center}
.rp-foot{margin-top:8mm;padding-top:4mm;border-top:.6pt solid var(--rp-line);font-size:7.6pt;line-height:1.6;color:#626d7a;break-inside:avoid}
.rp-foot p{margin:0 0 1.5mm}
.rp-sign{font-weight:700;color:#333d4b}
.rp-lead{margin:0 0 2.5mm;font-size:9pt;color:#333d4b;font-variant-numeric:tabular-nums}
.rp-claims{margin-bottom:4mm}.rp-claims td:first-child{width:22%}.rp-claims td:last-child{width:22%}
.rp-claim-visits td:first-child{width:18mm}.rp-claim-visits td:last-child{width:26mm}
.rp-note{margin:3mm 0 0;font-size:7.6pt;line-height:1.6;color:#626d7a}
/* 미청구 예상액: 앞 절에 이어 흐르되, 제목·요약·세대표는 한 덩어리로(쪽 끝에 제목만 남지 않게) */
.rp-sec.rp-flow{margin-top:8mm}
.rp-keep{break-inside:avoid}
.rp-alert{margin:0 0 3mm;padding:2.2mm 3mm;border-radius:2mm;background:#fff4e5;color:#8a4b00;font-size:8.4pt;font-weight:600;line-height:1.5}
.rp-claim-visits .rp-rest td{color:#626d7a;font-weight:600;background:var(--rp-fill-2)}
