/* 取引成立台帳（売買）・諸経費概算書の印刷用。field-overrides.css の 235〜242行（.ledger-print-sheet table / .lp-* の古い指定）と置き換える */
/* 台帳は A4 縦。field-overrides.css 631行目の @page（A4 横・チラシ用）に負けないよう、名前付きページにする。printLedgerDetail でも印刷のたびに <style> を差し込む（review.md の統合手順） */
@page lp-ledger { size: A4 portrait; margin: 9mm 9mm 8mm; }
.lp, .cs { page: lp-ledger; }

.lp { width: 192mm; margin: 0 auto; color: #000; background: #fff; font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', 'Hiragino Sans', sans-serif; font-size: 9pt; line-height: 1.2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lp * { box-sizing: border-box; }
/* 見出し */
.lp .lp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin: 0 0 2mm; }
.lp .lp-title { font-size: 15pt; font-weight: 700; letter-spacing: .12em; text-align: center; padding-bottom: 1mm; }
.lp .lp-head-r { justify-self: end; width: 48mm; text-align: center; }
.lp .lp-date { font-size: 10pt; border-bottom: 0.25mm solid #000; padding: 0 2mm 0.5mm; margin-bottom: 1.5mm; }
.lp .lp-no { font-size: 9pt; text-align: left; padding-left: 2mm; }
.lp .lp-no span { display: inline-block; min-width: 34mm; border-bottom: 0.25mm solid #000; margin-left: 2mm; padding: 0 2mm; text-align: center; }
/* 100列の格子の表 */
.lp .lp-t { width: 100%; table-layout: fixed; border-collapse: collapse; border: 0.45mm solid #000; }
.lp .lp-t col { width: 1%; }
.lp .lp-t td { border: 0.25mm solid #000; padding: 0.3mm 1.2mm; height: 5.5mm; vertical-align: middle; font-size: 9pt; line-height: 1.2; overflow: hidden; word-break: break-all; }
.lp .lp-t td.l { text-align: center; font-weight: 500; padding: 0.3mm 0.6mm; }
.lp .lp-t td.v { text-align: center; font-weight: 500; line-height: 1.15; font-size: 9.5pt; padding: 0.5mm 0; }
.lp .lp-t td.c { text-align: center; }
.lp .lp-t td.n { text-align: right; }
.lp .lp-t td.bottom { vertical-align: bottom; }
.lp .lp-t td.big { font-size: 10pt; }
.lp .lp-t td.sm, .lp .lp-t .sm { font-size: 7pt; line-height: 1.15; }
.lp .lp-t td.tel { font-size: 6.5pt; letter-spacing: 0; }
.lp .lp-t td.tall { height: 11mm; vertical-align: top; padding-top: 1mm; }
.lp .lp-t td.dash { border-bottom-style: dashed; }
.lp .lp-t tr.thick td { border-top: 0.5mm solid #000; border-bottom: 0.5mm solid #000; }
.lp .lp-t tr.thick td:first-child { border-left: 0.5mm solid #000; }
.lp .lp-t tr.thick td:last-child { border-right: 0.5mm solid #000; }
/* ☑ / □ */
.lp .lp-t td.cks { text-align: left; white-space: nowrap; }
.lp .ci { display: inline-block; margin-right: 2.4mm; white-space: nowrap; }
.lp .ci:last-child { margin-right: 0; }
.lp .cb { display: inline-block; width: 3mm; height: 3mm; border: 0.3mm solid #000; vertical-align: -0.5mm; margin-right: 0.9mm; position: relative; background: #fff; }
.lp .cb.on::after { content: ''; position: absolute; left: 0.8mm; top: -0.4mm; width: 1.1mm; height: 2.4mm; border: solid #000; border-width: 0 0.45mm 0.45mm 0; transform: rotate(40deg); }
/* 注記・記載者・脚注 */
.lp .lp-notes { font-size: 6.4pt; line-height: 1.35; margin-top: 1.2mm; white-space: nowrap; }
.lp .lp-recorder { display: flex; align-items: center; margin: 2mm 0 0 6mm; font-size: 10pt; }
.lp .lp-recorder-label { width: 34mm; }
.lp .lp-recorder-name { min-width: 46mm; text-align: center; letter-spacing: .1em; }
.lp .lp-seal { display: inline-flex; width: 6mm; height: 6mm; border: 0.25mm solid #000; border-radius: 50%; align-items: center; justify-content: center; font-size: 7pt; margin-left: 1mm; }
.lp .lp-foot { text-align: right; font-size: 7.5pt; margin-top: 1.5mm; padding-right: 1mm; }

/* ---- 諸経費概算書 ---- */
.cs { width: 192mm; margin: 0 auto; color: #000; background: #fff; font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', 'Hiragino Sans', sans-serif; font-size: 10pt; line-height: 1.25; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cs * { box-sizing: border-box; }
.cs .cs-title { text-align: center; font-size: 15pt; font-weight: 700; letter-spacing: .1em; margin: 6mm 0 9mm; }
.cs table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cs .cs-loc { border: 0.5mm solid #000; margin-bottom: 5mm; }
.cs .cs-loc td { border: 0.4mm solid #000; height: 13mm; text-align: center; vertical-align: middle; font-size: 11pt; padding: 1mm 2mm; }
.cs .cs-loc td.cs-loc-l { width: 40%; }
.cs .cs-t { border: 0.5mm solid #000; }
.cs .cs-t td { border: 0.3mm solid #000; height: 10.6mm; vertical-align: middle; text-align: center; padding: 0.5mm 2mm; font-size: 10pt; }
.cs .cs-t tr.cs-h td { font-size: 9pt; height: 11.5mm; }
.cs .cs-t td.note { font-size: 8.5pt; line-height: 1.25; white-space: pre-line; }
.cs .cs-t td.amt { text-align: right; padding-right: 3mm; font-variant-numeric: tabular-nums; }
.cs .cs-t tr.cs-total td { font-size: 11pt; }
.cs .cs-t tr.cs-total td.amt { text-align: center; font-size: 13pt; padding-right: 0; }
.cs .cs-bottom { display: grid; grid-template-columns: 112mm 1fr; gap: 10mm; margin-top: 7mm; align-items: center; }
.cs .cs-box { border: 0.8mm solid #000; padding: 7mm 4mm; text-align: center; min-height: 48mm; display: flex; flex-direction: column; justify-content: center; gap: 3.5mm; }
.cs .cs-box div { font-size: 17pt; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.cs .cs-company { text-align: center; font-size: 9.5pt; line-height: 1.9; }
.cs .cs-company .cs-person { margin-top: 3mm; }

/* 記載者の印（朱色の認印。2026-10-20） */
.lp .lp-stamp { margin-left: 1mm; vertical-align: middle; opacity: .92; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
