/* security-report-sample.html 전용: 채워서 PDF로 저장하는 서류 용지(계약서식)
   my-auction의 .doc-sheet와 같은 문법이다: 본문 글꼴은 사이트와 같은 Pretendard(화면과 인쇄 모두), 가운데 정렬 제목과 이중선, 가운데 정렬 장 제목,
   위아래 굵은 선과 가는 회색 선의 표, 서명란, 쪽 아래 가운데 "- n / N -".
   종이에 찍히는 문서라 색은 먹과 회색만 쓴다(점검표 토큰의 녹색, 붉은색, 청흑색은 이 용지 안에서 쓰지 않는다).
   보고서는 표가 중심이라 계약서식에서 다음을 조정했다: 장 제목을 위아래 선이 있는 띠로, 표 머리칸을 열의 정렬에 맞춤,
   문단은 왼쪽 정렬, 글꼴은 명조 대신 Pretendard.
   웹 전용 영역(헤더, 샘플 고지, 마지막 칸, 푸터)은 공용 css/checksheet.css, css/sheet-pages.css를 그대로 쓴다. */

/* ── 웹 화면: 책상 위에 놓인 흰 용지 한 장 ──────────────── */
.report-wrap {
    background-color: var(--desk);
    padding: 24px 12px 28px;
}
@media (min-width: 768px) {
    .report-wrap { padding: 32px 24px 40px; }
}

.sample-banner {
    background-color: var(--paper-shade);
    border-bottom: var(--rule-thin) solid var(--ink);
    font-size: 0.9375rem; font-weight: 500;
    padding-top: 12px; padding-bottom: 12px;
}
.sample-banner strong { font-weight: 600; }

/* 보고서 읽는 법: 용지 위의 웹 전용 안내 세 칸(작은 선 그림 + 두 줄) */
.read-guide { display: grid; background-color: var(--paper); border-bottom: 1px solid var(--ink); }
.read-guide > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 14px 0; border-bottom: var(--rule-thin) solid var(--line); }
.read-guide > div:last-child { border-bottom: 0; }
.read-guide svg { display: block; width: 76px; height: auto; }
.read-guide strong { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.read-guide span { display: block; font-size: 0.9375rem; color: var(--ink-soft); }
.read-guide .g-paper { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.read-guide .g-shade { fill: var(--paper-shade); stroke: var(--ink); stroke-width: 1; }
.read-guide .g-rule { fill: none; stroke: var(--line); stroke-width: 1.4; }
.read-guide .g-check { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: square; }
.read-guide .g-soft { fill: #fff; stroke: #9aa1ab; stroke-width: 1; }
.read-guide .g-softline { fill: none; stroke: #4a5059; stroke-width: 1.6; }
.read-guide .g-mid { fill: #fff; stroke: #8d949e; stroke-width: 1; }
.read-guide .g-dot { fill: #1d2126; }
.read-guide .g-ink { fill: none; stroke: #1d2126; stroke-width: 1; }
.read-guide .g-inkline { fill: none; stroke: #1d2126; stroke-width: 1.2; }
.read-guide .g-fill { fill: #1d2126; }
.read-guide .g-white { fill: #fff; }
.read-guide .g-whiteline { fill: none; stroke: #fff; stroke-width: 1.8; }
.read-guide .g-seal { fill: none; stroke: var(--seal); stroke-width: 1.4; }
@media (min-width: 768px) {
    .read-guide { grid-template-columns: repeat(3, 1fr); }
    .read-guide > div { padding: 18px 20px 18px 0; border-bottom: 0; border-right: var(--rule-thin) solid var(--line); }
    .read-guide > div + div { padding-left: 20px; }
    .read-guide > div:last-child { border-right: 0; }
}

.noscript-note { max-width: 860px; margin: 24px auto; padding: 0 16px; }

/* "PDF로 저장" 줄: 용지 위쪽, 웹에서만 보인다 */
.report-tools {
    max-width: 860px; margin: 0 auto 16px;
    display: flex; justify-content: flex-end;
}
.report-tools .btn { flex: none; }

.doc-sheet {
    --doc-ink: #111417;
    --doc-rule: #1d2126;
    --doc-soft: #4a5059;
    --doc-hair: #c2c6cd;
    --doc-shade: #f1f2f4;
    --doc-edge: #c3cad4;
    --doc-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    color: var(--doc-ink);
    border: 1px solid var(--doc-edge);
    border-radius: 2px;
    box-shadow:
        0 1px 2px rgb(28 36 48 / 0.06),
        0 10px 28px rgb(28 36 48 / 0.08);
    padding: 72px 76px 80px;
    position: relative;
    font-family: var(--doc-font);
    font-size: 1rem;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
.doc-sheet ::selection { background: #d9e2ef; }
.doc-sheet p { margin: 0; }
.doc-sheet h1, .doc-sheet h2, .doc-sheet h3 { font-family: inherit; }
.doc-sheet strong { font-weight: 600; }

/* 한 장으로 이어진 용지 안의 장 경계: 화면에서는 넉넉한 간격과 장 제목의 띠, 인쇄에서는 새 쪽 */
.doc-chap + .doc-chap { margin-top: 72px; }

.doc-title {
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 3px double var(--doc-rule);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-indent: 0.06em;
    line-height: 1.4;
    text-wrap: balance;
}

/* 장 제목: 먹으로 채운 띠에 흰 글자. 쪽을 훑어볼 때 장이 바뀌는 곳이 한눈에 보이게 한다 */
.doc-section {
    margin: 0;
    padding: 10px 16px 11px;
    background-color: var(--doc-rule);
    color: #fff;
    text-align: left;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    break-after: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
/* 장 제목 바로 아래의 한 줄 설명: 띠의 글자와 같은 선에서 시작한다 */
.doc-section + .doc-para {
    margin-top: 10px;
    padding-left: 16px;
    text-align: left;
    font-size: 0.9375rem;
    color: var(--doc-soft);
}

.doc-article {
    margin: 34px 0 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
    break-after: avoid;
}
.doc-section + .doc-para + .doc-article,
.sec-body > .doc-article:first-child { margin-top: 28px; }

.doc-para { margin-top: 10px; }

.doc-item {
    display: grid;
    grid-template-columns: 1.9em minmax(0, 1fr);
    margin-top: 2px;
}
.doc-article + .doc-item,
.doc-article + .doc-closing { margin-top: 10px; }
.doc-item > span:first-child { color: var(--doc-soft); }

/* 맺음 묶음은 쪽 사이에서 갈라지지 않는다 */
.doc-closing { break-inside: avoid; }

.doc-table {
    width: 100%;
    margin: 12px 0 0;
    border-collapse: collapse;
    border-top: 1.5px solid var(--doc-rule);
    border-bottom: 1.5px solid var(--doc-rule);
    line-height: 1.55;
    break-inside: avoid;
}
.doc-table th,
.doc-table td {
    padding: 9px 12px;
    border-top: 1px solid var(--doc-hair);
    vertical-align: middle;
    text-align: left;
}
.doc-table tr:first-child > * { border-top: 0; }
.doc-table th {
    background: var(--doc-shade);
    font-weight: 600;
    white-space: nowrap;
}
.doc-meta th,
.doc-sign th {
    width: 1%;
    text-align: center;
    border-right: 1px solid var(--doc-hair);
}
.doc-meta th { min-width: 7.5em; }

/* 데이터 표: 머리칸은 그 열의 내용과 같은 쪽으로 맞춘다(글은 왼쪽, 숫자는 오른쪽, 상태는 가운데) */
.doc-ledger { font-size: 0.9375rem; }
.doc-ledger th, .doc-ledger td { padding: 9px 10px; }
.doc-ledger tr.head th {
    font-size: 0.875rem;
    white-space: normal;
    border-bottom: 1px solid var(--doc-rule);
}
.doc-ledger tbody tr:first-child > * { border-top: 0; }
/* 행의 이름 칸은 접근성을 위해 th[scope=row]로 마크업하되, 모양은 내용 칸(td)과 같게 둔다 */
.doc-ledger tbody th[scope="row"] { background: none; font-weight: inherit; white-space: normal; }
.doc-ledger .amount { text-align: right; white-space: nowrap; }
.doc-ledger .ctr { text-align: center; }
.doc-ledger th { overflow-wrap: normal; }
.doc-ledger tbody th[scope="row"] { overflow-wrap: anywhere; }
.doc-ledger thead { display: table-header-group; }
.doc-ledger tr { break-inside: avoid; }

/* 서명란: 오른쪽에 붙고 "(인)" 칸이 딸린다 */
.doc-sign {
    width: 68%;
    margin: 14px 0 0 auto;
}
.doc-sign th { min-width: 6.5em; }
.doc-sign td { height: 52px; }
.doc-sign tr.tall td { height: 104px; vertical-align: top; }
.doc-sign .doc-seal {
    width: 1%;
    padding: 0 16px;
    border-left: 1px solid var(--doc-hair);
    color: var(--doc-soft);
    font-size: 0.875em;
    text-align: center;
    white-space: nowrap;
}

/* 표지 */
/* 표지 상단: 왼쪽에 고객사(로고가 있으면 로고, 없으면 상호), 오른쪽에 작성 주체 */
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--doc-hair); }
.doc-sheet .doc-client { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
/* 높이를 정해 두어 크기 정보가 없는 SVG 로고도 보이게 한다 */
.doc-client img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.doc-brand { flex: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.32em; color: var(--doc-soft); }
/* 각 쪽 머리의 고객사 이름: 인쇄에서만 보인다 */
.leaf-client { display: none; }
.doc-sheet .doc-cover-note {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--doc-hair);
    font-size: 0.8125rem;
    line-height: 1.75;
    color: var(--doc-soft);
}
/* 머리 묶음: 표지 한 쪽 대신 첫 쪽 맨 위에 놓인다(고객사, 제목, 문서 정보 여섯 칸, 고지 한 줄) */
.doc-head { position: relative; margin-bottom: 44px; }
/* 비스듬히 놓인 SAMPLE 글자가 화면 폭을 넘겨 가로 스크롤을 만들지 않게 한다(인쇄에서는 쪽이 잘리지 않도록 적용하지 않는다) */

.doc-head .doc-title { margin: 26px 0 0; }
.doc-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 18px; border-top: 1.5px solid var(--doc-rule); border-bottom: 1.5px solid var(--doc-rule); }
.doc-facts > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); border-top: 1px solid var(--doc-hair); }
.doc-facts > div:first-child { border-top: 0; }
.doc-facts dt { padding: 7px 10px; background-color: var(--doc-shade); font-size: 0.875rem; font-weight: 600; }
.doc-facts dd { margin: 0; padding: 7px 10px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.doc-head .doc-cover-note { margin-top: 10px; padding-top: 0; border-top: 0; }

/* 두 단: 폭이 좁아도 되는 소제목 묶음 둘을 나란히 놓는다 */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); }
@media screen and (min-width: 761px) {
    .doc-facts { grid-template-columns: repeat(3, 1fr); }
    .doc-facts > div:nth-child(-n+3) { border-top: 0; }
    .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
    .duo.duo-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .duo .doc-sign { width: 100%; }
}

/* SAMPLE 표시: 바깥 상자는 쪽 안에서 넘치는 부분을 잘라 내고, 비스듬한 글자는 그 안의 ::before로 그린다.
   상자 자체를 돌리면 쪽 폭을 넘어서 인쇄할 때 브라우저가 문서 전체를 축소한다(2026-11-29에 확인). */
.watermark {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    overflow: hidden; font-size: 0; color: transparent; pointer-events: none; user-select: none;
}
.watermark::before {
    content: "SAMPLE"; font-size: 112px; font-weight: 700; color: rgb(17 20 23 / 0.05);
    transform: rotate(-24deg); letter-spacing: 0.12em;
}

/* 상태 배지: 색이 아니라 기호, 글자, 테두리, 채움으로 구분한다. 크기는 모두 같고 심각할수록 무겁다
   (정상: 테두리 없음, 관찰: 가는 회색 테두리, 주의: 먹 테두리, 조치 필요: 먹 채움, 긴급: 먹 채움에 바깥 선) */
.badge, .sev {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
    box-sizing: border-box; min-width: 6.2em; height: 1.9em; padding: 0 0.6em;
    font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
    border: 1px solid transparent; border-radius: 0;
    background-color: transparent; color: var(--doc-ink);
}
.badge::before {
    content: ""; flex: none; width: 0.95em; height: 0.95em; background-color: currentColor;
    -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.b-ok     { color: var(--doc-soft); font-weight: 400; --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M3 8.6l3.2 3.2L13 4.6'/%3E%3C/svg%3E"); }
.b-watch  { border-color: #8d949e; --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3C/svg%3E"); }
.b-warn   { border-color: var(--doc-rule); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.8v6.6' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Ccircle cx='8' cy='12.6' r='1.3'/%3E%3C/svg%3E"); }
.b-action { border-color: var(--doc-rule); background-color: var(--doc-rule); color: #fff; --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.6l6.2 10.8H1.8z'/%3E%3C/svg%3E"); }
.b-crit   { border-color: var(--doc-rule); background-color: var(--doc-rule); color: #fff; outline: 1px solid var(--doc-rule); outline-offset: 2px; --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E"); }

/* 위험도: 배지와 같은 문법(높음: 먹 채움, 중간: 먹 테두리, 낮음: 테두리 없음) */
.sev { min-width: 4.2em; }
.sev-high { border-color: var(--doc-rule); background-color: var(--doc-rule); color: #fff; }
.sev-mid  { border-color: var(--doc-rule); }
.sev-low  { color: var(--doc-soft); font-weight: 400; }

/* 웹: 기술 상세 장은 기본 접힘, 인쇄에서는 항상 펼침 */
.sec-toggle {
    display: flex; align-items: center; justify-content: center; gap: 0.6em;
    width: 100%; margin-top: 20px; min-height: 48px; padding: 0 16px;
    border: 1px solid #8d949e; border-radius: 0;
    background-color: #fff; color: var(--doc-ink);
    font-family: inherit; font-weight: 600; font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.sec-toggle::before {
    content: ""; flex: none; width: 0.8em; height: 0.8em; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 2v12M2 8h12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 2v12M2 8h12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-toggle:hover { background-color: var(--doc-shade); border-color: var(--doc-rule); }
.sec-toggle:focus-visible { outline: 2px solid var(--doc-rule); outline-offset: 2px; }
.detail-sec:not(.open) .sec-body { display: none; }
.detail-sec.open .sec-toggle::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E");
}

/* 모바일: 용지 안에서 읽히도록 넓은 표는 항목별 묶음으로 바꾼다 */
@media screen and (max-width: 760px) {
    :root:not(:has(.doc-sheet.pm)) {
        .doc-sheet { padding: 36px 20px 40px; font-size: 0.9375rem; }
        .doc-chap + .doc-chap { margin-top: 52px; }
        .doc-title { font-size: 1.5rem; letter-spacing: 0.02em; text-indent: 0.02em; }
            .doc-section { font-size: 1.125rem; letter-spacing: 0; }
        .doc-article { margin-top: 28px; }
        .doc-sign { width: 100%; }
        .doc-table th, .doc-table td { padding: 8px 8px; }
        .doc-table th { white-space: normal; }
        .doc-ledger { font-size: 0.875rem; }
        .doc-ledger tr.head th { font-size: 0.8125rem; }
        .badge { min-width: 0; }
        .watermark::before { font-size: 60px; }
    }
}
@media screen and (max-width: 639px) {
    :root:not(:has(.doc-sheet.pm)) {
        .doc-table.resp thead { display: none; }
        .doc-table.resp tr { display: block; padding: 8px 0 9px; border-top: 1px solid var(--doc-hair); break-inside: avoid; }
        .doc-table.resp tr:first-child { border-top: 0; }
        .doc-table.resp td {
            display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; gap: 10px;
            border: 0; padding: 3px 2px; text-align: left; white-space: normal;
        }
        .doc-table.resp td::before { content: attr(data-label); color: var(--doc-soft); font-size: 0.8125rem; }
        .doc-table.resp td.td-main { display: block; padding-bottom: 5px; font-size: 1rem; font-weight: 600; }
        .doc-table.resp td.td-main::before { display: none; }
        .doc-table.resp td .badge, .doc-table.resp td .sev { justify-self: start; }
        .doc-meta th { min-width: 5.5em; }
    }
}

/* ── 인쇄 / PDF ─────────────────────────────────────────────
   쪽 여백을 0으로 두고 여백(위 16mm, 좌우 16mm, 아래 19mm)은 용지 안에서 만든다. 이렇게 하면 인쇄 창의 여백 설정이
   "기본"이든 "없음"이든 같은 결과가 나오고, 브라우저가 넣는 머리글과 바닥글(날짜, 제목, 주소)도 찍힐 자리가 없어 빠진다.
   인쇄 직전에 렌더 스크립트(preparePrint)가 용지에 .pm 클래스를 붙이고, 묶음의 높이를 재서 A4 쪽(.doc-leaf)을 위에서부터 채운다.
   글자는 읽기 편한 크기(본문 11pt, 표 10pt)로 두고, 쪽 수는 내용 길이에 따라 정해진다.
   쪽 번호 "- n / N -"와 견본 표시, 고객사 이름은 쪽마다 용지 안쪽에 찍는다. */
@page doc {
    size: A4;
    margin: 0;
}

.doc-sheet.pm {
    width: 210mm; max-width: none; margin: 0 auto;
    padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
    /* --fs: 쪽 수를 하나 줄일 수 있을 때만 스크립트가 낮추는 글자 배율(0.93까지) */
    font-size: calc(11pt * var(--fs, 1)); line-height: 1.6;
    counter-reset: leaf;

    .doc-leaf {
        position: relative; box-sizing: border-box; min-height: 296mm; padding: 16mm 16mm 19mm;
        counter-increment: leaf; break-after: page;
    }
    .doc-leaf:last-child { break-after: auto; }
    .doc-leaf::before, .doc-leaf::after { position: absolute; font-size: 9pt; line-height: 1; color: #4a5059; }
    .doc-leaf::before { content: var(--leaf-mark, ""); top: 8mm; right: 16mm; }
    .doc-leaf::after { content: "- " counter(leaf) " / " var(--leaf-total, "") " -"; left: 0; right: 0; bottom: 8.5mm; text-align: center; }
    .leaf-client { display: block; position: absolute; top: 8mm; left: 16mm; font-size: 9pt; line-height: 1; color: #4a5059; }

    /* 쪽을 채우는 단위. 장이 시작하는 단위는 앞 장과 간격을 두되, 쪽 맨 위에서는 붙인다 */
    .pg-unit { break-inside: avoid; }
    /* --sp: 마지막 쪽이 거의 빌 때 스크립트가 낮추는 간격 배율(글자 크기에는 쓰지 않는다) */
    .pg-unit.chap-start { margin-top: calc(20pt * var(--sp, 1)); }
    .doc-leaf > .pg-unit:first-child, .doc-leaf > .leaf-client + .pg-unit, .doc-head + .pg-unit, .watermark + .pg-unit { margin-top: 0; }
    .pg-unit > .doc-block > .doc-article, .pg-unit > .duo > .doc-block > .doc-article { margin-top: calc(14pt * var(--sp, 1)); }
    .doc-leaf > .leaf-client + .pg-unit:not(.chap-start) > .doc-block > .doc-article,
    .doc-leaf > .leaf-client + .pg-unit:not(.chap-start) > .duo > .doc-block > .doc-article { margin-top: 0; }

    .doc-client { font-size: 13pt; }
    .doc-client img { height: 12mm; max-width: 60mm; }
    .doc-title { margin: calc(14pt * var(--sp, 1)) 0 0; padding-bottom: calc(10pt * var(--sp, 1)); font-size: calc(20pt * var(--fs, 1)); }
    .doc-head { margin-bottom: calc(16pt * var(--sp, 1)); }
    .doc-facts { grid-template-columns: repeat(3, 1fr); margin-top: 10pt; }
    .doc-facts > div { grid-template-columns: 5.6em minmax(0, 1fr); border-top: 1px solid var(--doc-hair); }
    .doc-facts > div:nth-child(-n+3) { border-top: 0; }
    .doc-facts dt, .doc-facts dd { padding: calc(4pt * var(--sp, 1)) 7pt; font-size: calc(9.5pt * var(--fs, 1)); }
    .doc-head .doc-cover-note { margin-top: 6pt; font-size: 8.5pt; line-height: 1.5; }
    .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7mm; align-items: start; }
    .duo.duo-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .duo .doc-sign { width: 100%; margin-top: 5pt; }
    .doc-item { margin-top: 1pt; }
    .watermark::before { font-size: 96pt; }

    .doc-section { font-size: calc(13pt * var(--fs, 1)); padding: calc(5pt * var(--sp, 1)) 9pt calc(6pt * var(--sp, 1)); }
    .doc-section + .doc-para { margin-top: 5pt; padding-left: 9pt; font-size: calc(9.5pt * var(--fs, 1)); }
    .doc-article { margin-top: calc(14pt * var(--sp, 1)); font-size: calc(11.5pt * var(--fs, 1)); }
    .doc-table { margin-top: 5pt; }
    .doc-table th, .doc-table td { padding: calc(4pt * var(--sp, 1)) 7pt; }
    .doc-ledger { font-size: calc(10pt * var(--fs, 1)); line-height: 1.45; }
    .doc-ledger tr.head th { font-size: calc(9.5pt * var(--fs, 1)); }
    .doc-ledger th, .doc-ledger td { padding: calc(4pt * var(--sp, 1)) 6pt; }
    .doc-sign td { height: 26pt; }
    .doc-sign tr.tall td { height: 52pt; }
    .badge, .sev { font-size: calc(9pt * var(--fs, 1)); height: 1.7em; min-width: 5.6em; }
    .sev { min-width: 3.8em; }

    .detail-sec .sec-body { display: block !important; }
    .sec-toggle { display: none !important; }

    .doc-table th, .doc-facts dt, .doc-title, .badge, .sev, .watermark::before {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

@media print {
    .web-only { display: none !important; }
    body { background-color: #fff; color: #111; }
    .sheet { max-width: none; margin: 0; background-color: #fff; }
    .report-wrap { background: none; padding: 0; }
    .doc-page { page: doc; }
    a { color: inherit; text-decoration: none; }
    /* 스크립트가 인쇄 준비를 하지 못한 경우의 대비: 용지 안에 여백을 두고 접힌 장을 펼친다 */
    .doc-sheet:not(.pm) { max-width: none; padding: 16mm; border: 0; box-shadow: none; }
    .doc-sheet:not(.pm) .detail-sec .sec-body { display: block !important; }
    .doc-sheet:not(.pm) .sec-toggle { display: none !important; }
}
