/* 文件預覽與列印沿用 quotation / affidavit-template 的結構。 */
#lf-form [hidden] { display:none !important; }
#lf-form input, #lf-form textarea, #lf-form select { min-width:0; max-width:100%; box-sizing:border-box; }
.lf-options { display:flex; flex-wrap:wrap; gap:12px; border:1px solid var(--line); margin:12px 0; padding:12px; }
.lf-options label, .lf-check { display:flex; align-items:center; gap:6px; }
.lf-options input, .lf-check input { width:20px; height:20px; }
.lf-wrap { overflow:hidden; background:#e9ecf1; border:1px solid var(--line); margin:12px 0; }
.lf-pages { width:210mm; transform-origin:0 0; }
.lf-paper { width:210mm; min-height:297mm; box-sizing:border-box; padding:12mm; background:white; color:black; font:11pt/1.5 "Noto Serif TC", "PMingLiU", serif; overflow-wrap:anywhere; margin-bottom:12px; }
.lf-paper h2 { text-align:center; font-size:22pt; margin:0 0 5mm; }
.lf-paper p { margin:0 0 3mm; white-space:pre-wrap; }
.lf-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.lf-table th, .lf-table td { border:1px solid #222; padding:2mm; white-space:pre-wrap; overflow-wrap:anywhere; }
.lf-table th { background:#f5f5f5; }
@media print {
 @page { size:A4; margin:0; }
 html,body { background:white; }
 .site-header,.site-footer { display:none !important; }
 main.wrap { max-width:none; padding:0; margin:0; }
 main.wrap > * { display:none !important; }
 main.wrap > #lf-pv { display:block !important; }
 #lf-pv > :not(.lf-wrap) { display:none !important; }
 .lf-wrap { border:0; overflow:visible; height:auto !important; margin:0; background:none; }
 .lf-pages { transform:none !important; width:auto; }
 .lf-paper { margin:0; break-after:page; }
 .lf-paper:last-child { break-after:auto; }
}
.lf-hint { overflow-wrap:anywhere; }
.lf-copy > p:first-child { text-align:center; font-weight:bold; }
.lf-table th { width:28mm; }
.lf-reason { min-height:28mm; }
.lf-signatures { display:flex; margin-top:5mm; }
.lf-sign { flex:1; border:1px solid #222; min-height:25mm; padding:2mm; }
.lf-cut { border-top:1px dashed #555; text-align:center; font-size:9pt; margin:6mm 0; }
.lf-double .lf-copy { min-height:122mm; }
.lf-double .lf-copy h2 { margin-bottom:2mm; font-size:18pt; }
.lf-double .lf-table th, .lf-double .lf-table td { padding:1mm 2mm; }
.lf-double .lf-reason { min-height:14mm; }
.lf-double .lf-signatures { margin-top:2mm; }
.lf-double .lf-sign { min-height:17mm; }
.lf-double { font-size:10pt; }
