/* RODI v2 · print.css (WU1) — media="print" 로 링크됨. 전부 paper, A4 (SPEC §3.5, §2.2 specs 5) */

@page { size: A4; margin: 14mm 12mm 16mm; }

:root, [data-surface], [data-surface="night"], [data-surface="paper"] {
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --bg-3: #F2F2EE;
  --line: #C9CCC7;
  --line-strong: #8E948D;
  --grid: transparent;
  --grid-minor: transparent;
  --text: #111416;
  --text-2: #4A5257;
  --wood: #7A4C12;
  --wire: #0B5F57;
  --plan: var(--paper-plan);
  --concept: #5A3DC4;
  --header-h: 0px;
  --quickbar-h: 0px;
  color-scheme: light;
}

html, body { background: #fff !important; color: #111416; }
body { font-size: 10pt; line-height: 1.55; padding: 0 !important; }
[data-surface] { background-image: none !important; background-color: transparent !important; }
[data-surface] + [data-surface]::before { display: none; }

/* 화면 전용 요소 숨김 */
.r-skip, .r-nav, .r-header__actions, .r-header__progress,
.r-quickbar, .r-ruler, .r-scanline, .r-footer__mark, .r-footer__top, .r-footer__grid,
canvas, video, iframe, [data-3d], .r-hud, .r-stage, .r-no-print,
.r-btn, .r-chip, .r-tabs, [data-palette-open] { display: none !important; }
.r-print-only { display: block !important; }

/* 머리글: 회사명·연락처·기준일 */
.r-header { position: static !important; background: none !important; backdrop-filter: none !important; border-bottom: 1.5px solid #111416; margin-bottom: 6mm; }
.r-header__bar { height: auto !important; padding: 0 0 3mm !important; }
.r-brand__mark { height: 14pt !important; color: #111416 !important; }
.r-brand__corp { display: none !important; }
.r-brand__sep { display: none !important; }
.r-print-head {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2mm 6mm;
  padding: 0 0 3mm;
  font-family: var(--font-mono);
  font-size: 8pt;
  letter-spacing: .02em;
  color: #111416;
}
.r-container { max-width: none !important; padding-inline: 0 !important; }

/* 본문 */
.r-section { padding-block: 5mm !important; break-inside: auto; }
.r-sechead { margin-bottom: 4mm !important; }
.r-sechead__title { font-size: 15pt !important; max-width: none; }
.r-display { font-size: 22pt !important; }
h2, h3 { break-after: avoid; }
img, figure, .r-card, .r-sheet { break-inside: avoid; }
img { max-height: 90mm; object-fit: contain; }
[data-reveal], .r-scan { clip-path: none !important; opacity: 1 !important; transform: none !important; animation: none !important; }
[data-reveal="draw"] .r-drawpath { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

/* 표: 머리행 반복, 행 분리 금지, 가로 스크롤 해제 */
.r-table-wrap { overflow: visible !important; border: 1px solid #8E948D; }
.r-table { font-size: 8.5pt; }
.r-table thead { display: table-header-group; }
.r-table thead th { position: static !important; background: #F2F2EE !important; color: #111416 !important; }
.r-table tr { break-inside: avoid; }
.r-table th, .r-table td { padding: 1.6mm 2.4mm !important; }
.r-table [data-col="cart"] { display: none !important; }

/* 배지는 인쇄에도 남긴다(plan·concept 표시 유지) */
.r-badge, [data-status="plan"]::after, [data-status="concept"]::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* 푸터: 사업자 정보 한 줄 + 표제란 */
.r-footer { padding: 4mm 0 0 !important; border-top: 1px solid #8E948D; }
.r-footer::before { display: none !important; }
.r-footer__legal { font-size: 7pt !important; }
.r-titleblock { break-inside: avoid; }

a { color: inherit !important; text-decoration: none !important; }
.r-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #4A5257; }
