/* Manutham Order Management — เอกสารพิมพ์ (ใบงานช่างตัดผ้า / ใบจ่าหน้า)
 * ขาวดำล้วน: ใช้ --print-ink / --print-paper เท่านั้น ไม่มีสีแบรนด์ เพื่อให้พิมพ์กับเครื่องพิมพ์ขาวดำ / thermal ได้คมชัด
 */
:root { --print-ink: #000000; --print-paper: #ffffff; --print-rule: 0.35mm; --print-rule-bold: 0.7mm;
  --print-font: 'Sarabun', 'Noto Sans Thai', 'Noto Sans Myanmar', 'Noto Sans Lao', 'Tahoma', sans-serif; }   /* v16: Sarabun ทุกเอกสาร */

/* ---------- แถบเครื่องมือ (หน้าจอเท่านั้น) ---------- */
.print-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.print-toolbar .field { margin: 0; } .print-toolbar .grow { flex: 1; min-width: 240px; }
.print-toolbar .seg { display: flex; background: var(--surface-sunk); border-radius: var(--r-md); padding: 4px; gap: 3px; }
.print-toolbar .seg button { min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-muted); font-size: var(--fs-12); cursor: pointer; white-space: nowrap; }
.print-toolbar .seg button[aria-pressed="true"] { background: var(--surface); color: var(--mp-green-700); font-weight: var(--fw-bold); box-shadow: var(--shadow-raise); }
.print-stage { overflow-x: auto; padding: 4px 4px 24px; }
.print-stage .paper { margin: 0 auto 18px; box-shadow: var(--shadow-pop); }

/* ---------- กระดาษ ---------- */
.paper { background: var(--print-paper); color: var(--print-ink); font-family: var(--print-font); font-size: 10.5pt; line-height: 1.45; box-sizing: border-box; overflow: hidden; position: relative; }
.paper * { color: var(--print-ink); border-color: var(--print-ink); }
.paper.a4 { width: 210mm; min-height: 297mm; padding: 10mm 11mm; overflow: visible; }
.paper.label { padding: 4mm; display: flex; flex-direction: column; }
.paper.label.s100x150 { width: 100mm; height: 150mm; } .paper.label.sA6 { width: 105mm; height: 148mm; }
.paper.label.sA5 { width: 148mm; height: 210mm; padding: 7mm; font-size: 12.5pt; } .paper.label.sA4 { width: 210mm; height: 297mm; padding: 12mm; font-size: 17pt; }
.tri { display: block; font-size: .7em; font-weight: 400; line-height: 1.32; }        /* บรรทัดภาษาพม่า / ลาว ใต้ภาษาไทย */
.barcode { display: block; } .barcode-text { font-size: 9pt; font-weight: 700; letter-spacing: .06em; text-align: center; margin-top: .6mm; }

/* ---------- ใบงานช่างตัดผ้า ---------- */
.job-head { display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: start; border-bottom: var(--print-rule-bold) solid; padding-bottom: 2mm; margin-bottom: 0; }
.job-head h1 { font-size: 17pt; line-height: 1.2; letter-spacing: 0; color: var(--print-ink); margin: 0; }
.job-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 1mm 7mm; justify-content: start; margin-top: 2.5mm; font-size: 9.5pt; }
.job-meta > div { white-space: nowrap; }
.job-meta b { display: block; font-size: 11.5pt; white-space: nowrap; }
.job-item { border: var(--print-rule-bold) solid; margin-top: 3.5mm; break-inside: avoid; page-break-inside: avoid; }
.job-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; padding: 1.2mm 3mm; border-bottom: var(--print-rule) solid; background: var(--print-ink); }
.job-item-head, .job-item-head * { color: var(--print-paper); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.job-item-head b { font-size: 12.5pt; } .job-item-head span { font-size: 9pt; }
.job-body { display: grid; grid-template-columns: 78mm 1fr; }
.job-spec { border-right: var(--print-rule) solid; }
.job-row { display: grid; grid-template-columns: 27mm 1fr; border-bottom: var(--print-rule) solid; }
.job-row:last-child { border-bottom: 0; }
.job-row > div { padding: 1.1mm 2.2mm; } .job-row > div:first-child { border-right: var(--print-rule) solid; font-size: 8.5pt; font-weight: 700; }
.job-row .v { font-size: 11.5pt; font-weight: 700; line-height: 1.3; } .job-white { display: inline-block; border: .6mm solid; padding: 0 1.5mm; font-size: 9pt; margin-top: .6mm; } .job-row .v small { font-size: 8.5pt; font-weight: 400; display: block; }
.job-row.cut .v { font-size: 20pt; line-height: 1.15; } .job-row.cut .v .piece { display: block; } .job-row.cut .v .piece + .piece { margin-top: 1.2mm; font-size: 15pt; } .job-row.cut .v .piece small { display: inline; font-size: 9pt; font-weight: 700; margin-right: 1.5mm; }
.job-row.qty .v { font-size: 17pt; }
.job-fig { padding: 1.5mm 2mm; display: flex; flex-direction: column; justify-content: center; } .job-fig svg { width: 100%; height: auto; max-height: 64mm; display: block; }
.job-fig figcaption { font-size: 8pt; text-align: center; margin-top: 1mm; }
.job-note { border-top: var(--print-rule) solid; padding: 1.4mm 3mm; } .job-note h3 { font-size: 8.5pt; font-weight: 700; margin: 0 0 .8mm; color: var(--print-ink); }
.job-note p { font-size: 11pt; line-height: 1.4; font-weight: 700; white-space: pre-wrap; margin: 0; }
.job-alert { border-top: var(--print-rule) solid; padding: 2mm 3mm; font-size: 10pt; font-weight: 700; border-left: 3mm solid; }
.job-check { border-top: var(--print-rule) solid; display: grid; grid-template-columns: repeat(4, 1fr); }
.job-check > div { padding: 1.2mm 2mm 1.2mm 8.5mm; position: relative; font-size: 8.5pt; font-weight: 700; border-right: var(--print-rule) solid; } .job-check > div:last-child { border-right: 0; }
.job-check > div::before { content: ''; position: absolute; left: 2.2mm; top: 1.8mm; width: 4.2mm; height: 4.2mm; border: var(--print-rule-bold) solid; }
.job-sign { border-top: var(--print-rule) solid; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.job-sign > div { padding: 1mm 2.5mm 5mm; font-size: 8.5pt; font-weight: 700; border-right: var(--print-rule) solid; } .job-sign > div:last-child { border-right: 0; }
.job-foot { margin-top: 4mm; padding-top: 2mm; border-top: var(--print-rule) solid; font-size: 9.5pt; font-weight: 700; display: flex; justify-content: space-between; gap: 6mm; }

/* ---------- ใบจ่าหน้า ---------- */
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 3mm; border-bottom: var(--print-rule-bold) solid; padding-bottom: 2mm; }
.lb-top img { height: 11mm; width: auto; max-width: 60mm; object-fit: contain; filter: grayscale(1) contrast(1.4); }   /* v33.102: โลโก้ใหม่แนวนอน (กว้างกว่าเดิม) */
.sA5 .lb-top img { height: 14mm; max-width: 80mm; } .sA4 .lb-top img { height: 20mm; max-width: 110mm; }
.lb-from { font-size: .78em; padding: 1.6mm 0; border-bottom: var(--print-rule) solid; } .lb-from b { font-size: 1em; }
.lb-to { padding: 2mm 0; border-bottom: var(--print-rule-bold) solid; }
.lb-to .tag { display: inline-block; font-size: .78em; font-weight: 700; padding: 0 2mm; background: var(--print-ink); color: var(--print-paper); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lb-to .name { font-size: 1.55em; font-weight: 700; line-height: 1.25; margin-top: 1mm; } .lb-to .addr { font-size: 1.18em; font-weight: 500; line-height: 1.4; } .lb-to .tel { font-size: 1.45em; font-weight: 700; margin-top: .8mm; letter-spacing: .03em; }
.lb-items { flex: 1; min-height: 0; overflow: hidden; padding-top: 1.6mm; font-size: .82em; }
.lb-items table { width: 100%; border-collapse: collapse; } .lb-items th { text-align: left; font-size: .9em; border-bottom: var(--print-rule) solid; padding: 0 1mm .6mm 0; }
.lb-items td { padding: .7mm 1mm .7mm 0; vertical-align: top; border-bottom: .2mm dotted; } .lb-items td.r, .lb-items th.r { text-align: right; white-space: nowrap; padding-left: 2.5mm; padding-right: 0; }
.lb-items.dense { font-size: .68em; } .lb-items.dense td { padding: .35mm 1mm .35mm 0; }   /* เกิน 4 รายการ: ย่อให้พอดีฉลาก */
.lb-items td small { display: block; font-size: .9em; }
.lb-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; border: var(--print-rule-bold) solid; margin-top: 1.5mm; }
.lb-bottom > div { padding: 1mm 2mm; border-right: var(--print-rule) solid; font-size: .74em; } .lb-bottom > div:last-child { border-right: 0; } .lb-bottom b { display: block; font-size: 1.75em; line-height: 1.2; }

/* ---------- ใบส่งมอบสินค้า ---------- */
.dn { font-size: 10pt; }
.dn-head { display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: start; border-bottom: var(--print-rule-bold) solid; padding: 1.5mm 0 2.5mm; }   /* เผื่อสระ/วรรณยุกต์ไทยด้านบน ไม่ให้ล้นไปท้ายหน้าก่อน */
.dn-from { display: flex; gap: 3.5mm; align-items: center; font-size: 8.5pt; line-height: 1.4; } .dn-from b { font-size: 10.5pt; }
.dn-from img { height: 17mm; width: auto; filter: grayscale(1) contrast(1.4); }
.dn-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .8mm; }
.dn-title h1 { font-size: 19pt; line-height: 1.5; margin: 0; color: var(--print-ink); letter-spacing: 0; } .dn-sub { font-size: 8pt; font-weight: 700; letter-spacing: .08em; }
.dn-copy { display: inline-block; border: var(--print-rule-bold) solid; padding: .3mm 2.5mm; font-size: 9pt; font-weight: 700; }
.dn-alert { margin-top: 2mm; border: var(--print-rule-bold) solid; border-left-width: 3mm; padding: 1.2mm 3mm; font-weight: 700; }
.dn-meta { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; border: var(--print-rule) solid; margin-top: 3mm; }
.dn-meta > div { padding: 1mm 2.5mm; border-right: var(--print-rule) solid; font-size: 8.5pt; } .dn-meta > div:last-child { border-right: 0; }
.dn-meta b { display: block; font-size: 11.5pt; min-height: 6.5mm; } .dn-fill { border-bottom: .25mm dotted; }
.dn-to { border: var(--print-rule-bold) solid; border-top: 0; padding: 1.8mm 3mm 2.2mm; }
.dn-label { font-size: 8.5pt; font-weight: 700; margin-bottom: .8mm; }
.dn-name { font-size: 14pt; font-weight: 700; line-height: 1.3; } .dn-name span { font-size: 11.5pt; margin-left: 3mm; letter-spacing: .02em; }
.dn-addr { font-size: 11pt; line-height: 1.4; }
.dn-items { width: 100%; border-collapse: collapse; margin-top: 3mm; }
.dn-items th { font-size: 8.5pt; text-align: left; border-top: var(--print-rule-bold) solid; border-bottom: var(--print-rule) solid; padding: 1mm 1.5mm; }
.dn-items td { border-bottom: var(--print-rule) solid; padding: 1.4mm 1.5mm; vertical-align: top; font-size: 10pt; } .dn-items td small { display: block; font-size: 8.5pt; }
.dn-items tr { break-inside: avoid; page-break-inside: avoid; }
.dn-items .r { text-align: right; white-space: nowrap; } .dn-items .c { text-align: center; }
.dn-items tfoot td { border-bottom: var(--print-rule-bold) solid; font-weight: 700; font-size: 9pt; }
.dn-box { display: inline-block; width: 4.2mm; height: 4.2mm; border: var(--print-rule-bold) solid; vertical-align: -0.9mm; margin-right: 2mm; flex: none; }
.dn-items .dn-box { margin: 0; }
.dn-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3mm; margin-top: 3.5mm; break-inside: avoid; page-break-inside: avoid; }
.dn-card { border: var(--print-rule-bold) solid; padding: 2mm 3mm; break-inside: avoid; page-break-inside: avoid; }
.dn-check { display: flex; align-items: flex-start; font-size: 9.5pt; margin-top: 1.4mm; line-height: 1.35; }
.dn-pay { font-size: 9.5pt; } .dn-pay b { font-size: 13pt; margin-left: 1.5mm; }
.dn-line { display: inline-block; width: 24mm; border-bottom: .25mm solid; margin: 0 1.5mm; }
.dn-note { margin-top: 3mm; } .dn-lines { height: 15mm; background: repeating-linear-gradient(to bottom, transparent 0 7mm, var(--print-ink) 7mm 7.25mm); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dn-ack { margin: 3mm 0 0; font-size: 9.5pt; font-weight: 700; text-align: center; }
.dn-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 12mm; break-inside: avoid; page-break-inside: avoid; }
.dn-sign > div { text-align: center; font-size: 9.5pt; font-weight: 700; } .dn-sign small { display: block; font-weight: 400; font-size: 8.5pt; margin-top: 2.5mm; }
.dn-sigline { display: block; border-bottom: var(--print-rule) solid; margin: 0 4mm 1.5mm; height: 1px; }
.dn-foot { margin-top: 6mm; padding-top: 2mm; border-top: var(--print-rule) solid; font-size: 8.5pt; display: flex; justify-content: space-between; gap: 6mm; }

/* ---------- เลือกเอกสารที่จะพิมพ์พร้อมกัน ---------- */
.print-pick { display: flex; gap: 14px; align-items: center; min-height: 44px; flex-wrap: wrap; }
.print-pick label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-13); cursor: pointer; white-space: nowrap; }
.print-pick input { width: 18px; height: 18px; accent-color: var(--mp-green-700); }

/* ---------- ตอนพิมพ์: เหลือแต่กระดาษ ---------- */
@media print {
  html, body { background: var(--print-paper) !important; }
  .app-sidebar, .topbar, .toast, .print-toolbar, .page-heading, dialog, #viewCreate, #viewOrders, #printStatus, #printEmpty { display: none !important; }
  .app-main { margin: 0 !important; } .main-content { padding: 0 !important; max-width: none !important; }
  .print-stage { overflow: visible; padding: 0; }
  /* v33.8: ขึ้นหน้าใหม่ "ก่อน" กระดาษใบที่ 2 เป็นต้นไป (ไม่ตั้งขึ้นหน้าใหม่หลังใบสุดท้าย) → ไม่มีหน้าเปล่าท้ายงานพิมพ์ */
  .print-stage .paper { margin: 0; box-shadow: none; break-after: auto; page-break-after: auto; break-before: auto; page-break-before: auto; }
  .print-stage .paper ~ .paper { break-before: page; page-break-before: always; }
  /* เตี้ยกว่าหน้ากระดาษ 1 มม. กันล้นไปหน้าถัดไปจากการปัดเศษ มม. → px */
  .paper.label.s100x150 { height: 149mm; } .paper.label.sA6 { height: 147mm; } .paper.label.sA5 { height: 209mm; } .paper.label.sA4 { height: 296mm; }
  .paper.a4 { width: auto; min-height: 0; padding: 0; }      /* ขอบกระดาษใช้ @page margin แทน เพื่อให้หน้าที่ 2 เป็นต้นไปมีขอบด้วย */
}


/* ===== v14.2 ใบสั่งตัด 1 แผ่น/ชิ้นงาน (#23–#29) ===== */
.job-single .job-spec .mat .v .mat-name { font-size: 1.55em; line-height: 1.25; display: block; }
.job-single .job-spec .cut .v .piece { font-size: 1.7em; font-weight: 800; letter-spacing: .01em; }
.job-single .job-spec .cut .v .piece small { font-size: .5em; font-weight: 600; }
.job-single .job-fig figcaption { font-size: 11px; margin-top: 2px; }
.job-single .job-item { page-break-inside: avoid; }

/* ===== v15: ทุกเอกสาร 100 × 150 มม. ===== */
.paper.l100 { width: 100mm; height: 150mm; padding: 3.5mm 4mm 3mm; display: flex; flex-direction: column; font-size: 9pt; line-height: 1.35; }
.l-foot { margin-top: auto; padding-top: 1.2mm; border-top: var(--print-rule) solid; font-size: 7pt; display: flex; justify-content: space-between; gap: 3mm; }
.paper.l100 .barcode-text { font-size: 7.5pt; }
/* ใบงานช่างตัดผ้า */
.jl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2mm; border-bottom: var(--print-rule-bold) solid; padding-bottom: 1.2mm; }
.jl-title b { font-size: 12.5pt; display: block; line-height: 1.25; } .jl-title .tri { font-size: 6.5pt; line-height: 1.25; }
.jl-bar { flex: none; max-width: 52mm; } .jl-bar svg { max-width: 52mm; height: auto; }
.jl-meta { display: grid; grid-template-columns: 1fr auto; gap: .4mm 3mm; padding: 1mm 0; border-bottom: var(--print-rule) solid; font-size: 7pt; }
.jl-meta b { display: block; font-size: 9.5pt; line-height: 1.2; } .jl-meta .wide { grid-column: 1 / -1; } .jl-meta .wide b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-row { border-bottom: var(--print-rule) solid; padding: .9mm 0; } .jl-row > span { display: block; font-size: 6.8pt; font-weight: 700; } .jl-row > span i { font-style: normal; font-weight: 400; margin-left: 1.5mm; }
.jl-mat { display: block; font-size: 12pt; line-height: 1.2; } .jl-mat .job-white { font-style: normal; font-size: 8pt; }
.jl-cut .piece { display: block; font-size: 17pt; font-weight: 800; line-height: 1.12; } .jl-cut .piece small { font-size: 7.5pt; font-weight: 700; margin-right: 1.2mm; } .jl-cut .piece + .piece { font-size: 13pt; }
.jl-qty b { font-size: 13pt; } .jl-qty b small { font-size: 7.5pt; }
.jl-fig { flex: 1 1 auto; min-height: 12mm; margin: .8mm 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.jl-fig svg { width: 100%; height: 100%; max-height: 44mm; display: block; } .jl-fig figcaption { font-size: 6.5pt; text-align: center; font-weight: 700; }
.jl-alert { border: var(--print-rule-bold) solid; border-left-width: 2mm; padding: .6mm 1.5mm; font-size: 7.5pt; font-weight: 700; margin: .8mm 0; }
.jl-note { font-size: 8pt; line-height: 1.3; font-weight: 700; padding: .8mm 0; border-top: var(--print-rule) solid; max-height: 14mm; overflow: hidden; }
.jl-check { display: grid; grid-template-columns: 1fr 1fr; border: var(--print-rule) solid; }
.jl-check > div { position: relative; padding: .7mm 1mm .7mm 5.5mm; font-size: 7pt; font-weight: 700; border-right: var(--print-rule) solid; border-bottom: var(--print-rule) solid; }
.jl-check > div:nth-child(2n) { border-right: 0; } .jl-check > div:nth-last-child(-n+2) { border-bottom: 0; }
.jl-check > div::before { content: ''; position: absolute; left: 1.2mm; top: 1mm; width: 3mm; height: 3mm; border: var(--print-rule-bold) solid; }
.jl-sign { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border: var(--print-rule) solid; }   /* v16: เพิ่มช่อง วันที่ตัด */   /* v15.2: ถอดช่องเช็คลิสต์ออกตามสเปค — เหลือช่องเซ็นผู้ตัด/ผู้ตรวจ */ .jl-sign > div { font-size: 7pt; font-weight: 700; padding: .5mm 1.5mm 4.5mm; } .jl-sign > div:not(:last-child) { border-right: var(--print-rule) solid; } .jl-sign > div i { font-style: normal; font-weight: 400; margin-left: 1mm; } .jl-sign .jl-date { font-size: 7pt; } .jl-sign .jl-date b { display: block; font-size: 9pt; margin-top: 1.2mm; letter-spacing: .08em; white-space: nowrap; }
/* ใบจ่าหน้า 1 ใบ / ชิ้น */
.lb-l .lb-top img { height: 9mm; }
.lb-l .lb-top svg { max-width: 58mm; height: auto; }
/* v16: ใบจ่าหน้า — ผู้ส่ง / ผู้รับ / รายละเอียดสินค้า = Sarabun 14pt · น้ำหนักสินค้า = Sarabun 18pt */
.lb-l { font-family: 'Sarabun', var(--print-font); }
.lb-l .lb-from { font-size: 14pt; line-height: 1.3; } .lb-l .lb-from b { font-size: 14pt; }
.lb-l .lb-to .tag { font-size: 14pt; padding: 0 2mm; } .lb-l .lb-to .name { font-size: 14pt; font-weight: 700; line-height: 1.3; } .lb-l .lb-to .addr { font-size: 14pt; line-height: 1.3; } .lb-l .lb-to .tel { font-size: 14pt; font-weight: 700; }
.lb-l .lb-item b { font-size: 14pt; line-height: 1.3; } .lb-l .lb-item small { font-size: 14pt; line-height: 1.3; } .lb-l .lb-no { font-size: 14pt; }
.lb-l .lb-bottom > div { font-size: 11pt; } .lb-l .lb-bottom b { font-size: 14pt; } .lb-l .lb-bottom b.kg { font-size: 18pt; font-weight: 700; line-height: 1.15; }
.lb-item { flex: 1 1 auto; padding: 1.5mm 0; overflow: hidden; } .lb-item b { display: block; font-size: 11pt; line-height: 1.25; } .lb-item small { display: block; font-size: 8.5pt; }
.lb-no { display: inline-block; font-size: 10pt; font-weight: 800; border: var(--print-rule-bold) solid; padding: 0 2mm; margin-bottom: 1mm; }
.lb-l .lb-bottom b.sm { font-size: 14pt; line-height: 1.5; }
/* ใบส่งมอบ 100 × 150 */
.dn-lhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 2mm; border-bottom: var(--print-rule-bold) solid; padding-bottom: 1mm; }
.dn-lhead.sm { align-items: center; font-size: 8.5pt; } .dn-lt { display: block; font-size: 13pt; line-height: 1.3; } .dn-lhead svg { max-width: 48mm; height: auto; }
.dn-l .dn-copy { font-size: 7pt; padding: 0 1.5mm; }
.dn-lmeta { display: grid; grid-template-columns: 1fr 1fr; border: var(--print-rule) solid; margin-top: 1mm; } .dn-lmeta > div { padding: .4mm 1.5mm; font-size: 6.8pt; border-bottom: var(--print-rule) solid; } .dn-lmeta > div:nth-child(odd) { border-right: var(--print-rule) solid; } .dn-lmeta > div:nth-last-child(-n+2) { border-bottom: 0; }
.dn-lmeta b { display: block; font-size: 8.5pt; min-height: 4.2mm; }
.dn-lto { border: var(--print-rule) solid; border-top: 0; padding: .8mm 1.5mm; font-size: 8pt; } .dn-lto b { font-size: 10pt; } .dn-lto div { font-size: 7.8pt; line-height: 1.3; }
.dn-litems { width: 100%; border-collapse: collapse; margin-top: 1.2mm; } .dn-litems th { font-size: 6.8pt; text-align: left; border-bottom: var(--print-rule-bold) solid; padding: .3mm 1mm; }
.dn-litems td { font-size: 8pt; border-bottom: var(--print-rule) solid; padding: .6mm 1mm; vertical-align: top; } .dn-litems td small { display: block; font-size: 7pt; } .dn-litems .r { text-align: right; white-space: nowrap; } .dn-litems .c { text-align: center; }
.dn-l .dn-box { width: 3mm; height: 3mm; margin-right: 1.2mm; vertical-align: -0.5mm; } .dn-litems .dn-box { margin: 0; }
.dn-lsum { margin-top: 1.2mm; font-size: 8pt; } .dn-lsum b { font-size: 10pt; }
.dn-lchk { display: grid; grid-template-columns: 1fr 1fr; gap: .6mm 2mm; margin-top: 1mm; font-size: 7.3pt; font-weight: 700; } .dn-l .dn-line { width: 12mm; margin: 0 .8mm; }
.dn-lsign { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin-top: 7mm; text-align: center; font-size: 7.5pt; font-weight: 700; } .dn-l .dn-sigline { margin: 0 1mm 1mm; }
@media print { .paper.l100 { height: 149mm; } }

/* v17.2: หัวข้อใบงาน — พม่า / ลาว ตัวหนา (ช่างอ่านเป็นหลัก) · ไทยบรรทัดสุดท้าย เล็กกว่า ไม่หนา */
.t3 { display: block; font-style: normal; font-weight: 700; line-height: 1.28; }
.jl-title .t3 { font-size: 9.5pt; line-height: 1.22; }
.jl-row > span { font-size: 7pt; }
.jl-row > span .t3 { font-size: 7pt; } .jl-row > span .t3-th { font-size: 6pt !important; }
.jl-sign > div { padding-bottom: 3mm; } .jl-sign > div .t3 { font-size: 7pt; } .jl-sign > div .t3-th { font-size: 6pt !important; }
.t3-th { font-weight: 400 !important; font-size: .85em !important; }
.jl-sign .jl-date b.jl-blank { display: block; font-size: 9pt; margin-top: 1mm; letter-spacing: .08em; white-space: nowrap; }

/* ===== v19.5: ใบงานคลองไส้ไก่ตาม PRD (.job-prd) — ข้อความน้อยที่สุด เน้น 2 ภาพ: ภาพของช่าง (ผืนที่ต้องตัด) · ภาพของแอดมิน (บ่อ + ตัวเลขที่วัด) ===== */
.jp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 3mm; padding: .8mm 0; border-bottom: var(--print-rule) solid; font-size: 12pt; line-height: 1.2; }
.jp-line .jp-q { font-size: 13pt; white-space: nowrap; } .jp-line .jp-q small { font-size: 7.5pt; }
.jp-h { margin-top: .9mm; padding: .2mm 0 .3mm; border-bottom: var(--print-rule-bold) solid; font-size: 8.5pt; font-weight: 700; line-height: 1.25; }
.job-prd .jl-fig { flex: 1 1 auto; min-height: 16mm; margin: .6mm 0; } .job-prd .jl-fig svg { max-height: none; }
.job-prd .jl-note { max-height: none; overflow: visible; flex-shrink: 0; font-size: 8.5pt; border-top: 0; padding: .3mm 0 .6mm; }
.jp-adm { flex-shrink: 0; } .jp-adm > svg { display: block; width: 100%; height: auto; max-height: 34mm; margin: .6mm auto .8mm; }
.job-prd .jl-alert { margin: .6mm 0 0; }
.jl-stop { border: var(--print-rule-bold) solid; background: var(--print-ink); padding: .5mm 1.5mm; margin: .6mm 0; font-size: 8.5pt; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.jl-stop, .jl-stop * { color: var(--print-paper) !important; }
/* จบในแผ่นเดียว (print.js fitJobs): วัดตอนภาพของช่างสูงขั้นต่ำ แล้วย่อทีละขั้น — ยังล้นจึงย่อทั้งแผ่นเท่า ๆ กัน */
.paper.measuring .jl-fig { flex: 0 0 auto; height: 34mm; min-height: 0; } .paper.measuring .l-foot { margin-top: 0; }
.fit-1.measuring .jl-fig { height: 30mm; } .fit-1 .jp-adm > svg { max-height: 31mm; }
.fit-2.measuring .jl-fig { height: 26mm; } .fit-2 .jp-adm > svg { max-height: 28mm; }
.fit-3.measuring .jl-fig { height: 22mm; } .fit-3 .jp-adm > svg { max-height: 25mm; } .fit-3 .jl-sign > div { padding-bottom: 2mm; }
.fit-4.measuring .jl-fig { height: 19mm; } .fit-4 .jp-adm > svg { max-height: 22mm; }
.fit-5.measuring .jl-fig { height: 16mm; } .fit-5 .jp-adm > svg { max-height: 19mm; }
/* v19.6: ช่องเซ็นเล็กลง (หัวข้อ 3 ภาษาบรรทัดเดียว) → ภาพของช่างและของแอดมินได้พื้นที่เพิ่ม */
.job-prd .jl-sign { margin-top: .6mm; }
.job-prd .jl-sign > div { padding: .3mm 1mm 3.2mm; line-height: 1.15; }
.job-prd .jl-sign > div .t3 { display: inline; font-size: 5.8pt; } .job-prd .jl-sign > div .t3 + .t3::before { content: ' · '; font-weight: 400; }
.job-prd .jl-sign .jl-date b.jl-blank { font-size: 7.5pt; margin-top: .6mm; letter-spacing: .04em; }
.job-prd .jl-sign .jl-date { padding-bottom: .5mm; }
.jp-adm > svg { max-height: 40mm; }
.paper.job-prd.measuring .jl-fig { height: 40mm; }
.paper.job-prd.fit-1.measuring .jl-fig { height: 35mm; } .paper.job-prd.fit-2.measuring .jl-fig { height: 30mm; } .paper.job-prd.fit-3.measuring .jl-fig { height: 26mm; }
.paper.job-prd.fit-4.measuring .jl-fig { height: 22mm; } .paper.job-prd.fit-5.measuring .jl-fig { height: 18mm; }

/* ===== v29 ===== */
/* ใบงานช่าง: QR แทนบาร์โค้ด (ข้อความเดียวกัน = เลขใบจ่าหน้า) */
.jl-bar .qr-block { text-align: center; } .jl-bar .qr { display: block; width: 20mm; height: 20mm; margin: 0 auto; } .jl-bar .qr-block .barcode-text { font-size: 7pt; margin-top: .2mm; letter-spacing: .03em; }
/* ใบงานช่างภาษาไทยอย่างเดียว (PRINT_LANGS = ['th']) — หัวข้อบรรทัดเดียว ตัวหนา ขยายเต็มพื้นที่ที่เคยเป็น 3 ภาษา · layout เดิม */
.th-only .t3-only { display: block; font-weight: 700; line-height: 1.25; }
.th-only .jl-title .t3-only { font-size: 13pt; line-height: 1.2; padding-top: 1mm; }
.th-only .jl-row > span .t3-only { font-size: 7.5pt; }
.th-only .jl-sign > div .t3-only { font-size: 7.5pt; }
.th-only.job-prd .jl-sign > div .t3-only { display: inline; font-size: 6.5pt; }
.th-only .jp-h { font-size: 9pt; }
/* v30: ใบจ่าหน้า QR แทนบาร์โค้ด */
.lb-l .lb-top .qr-block { text-align: center; } .lb-l .lb-top .qr { display: block; width: 22mm; height: 22mm; margin: 0 auto; } .lb-l .lb-top .qr-block .barcode-text { font-size: 8pt; margin-top: .2mm; }
.lb-l .lb-top { padding-bottom: 1.2mm; }
/* ใบจ่าหน้า: ช่อง COD (หมายเหตุมีคำว่า COD) = ยอดสุทธิ */
.lb-cod { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 3mm; border: var(--print-rule-bold) solid; padding: 1mm 2.5mm; margin-bottom: 1.5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lb-cod span { font-size: 12pt; font-weight: 800; background: var(--print-ink); color: var(--print-paper); padding: 0 2mm; } .lb-cod b { font-size: 20pt; font-weight: 800; line-height: 1.15; margin-left: auto; }
.lb-cod small { flex-basis: 100%; font-size: 11pt; font-weight: 700; line-height: 1.25; margin-top: .4mm; }   /* v30.1: ให้เห็นชัดว่ารวมกี่ชิ้น */

/* ===== v29.1: ใบงานช่างตัดผ้าแบบใหม่ (.jl2) ตามตัวอย่างพิมพ์ 30 ก.ย. 69 — Sarabun เดิม · ขาวดำ ===== */
.jl2 { padding: 4mm 4.5mm 3.5mm; }
.j2-head { display: grid; grid-template-columns: 22mm 1fr auto; gap: 0 2.5mm; align-items: start; }
.j2-qr .qr { display: block; width: 22mm; height: 22mm; margin-left: -1mm; }
.j2-title { display: flex; flex-direction: column; gap: .2mm; font-size: 9pt; line-height: 1.3; padding-top: .5mm; min-width: 0; }
.j2-title > b { font-size: 12.5pt; line-height: 1.2; } .j2-title .j2-no { white-space: nowrap; display: block; font-size: 11pt; font-weight: 700; letter-spacing: .03em; font-family: 'Sarabun', var(--print-font); } .j2-title span b { font-weight: 700; }
.j2-title span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }   /* ชื่อลูกค้ายาว = ขึ้นบรรทัดที่ 2 */
.j2-mat { background: var(--print-ink); color: var(--print-paper); border-radius: 2mm; padding: 1.4mm 2.6mm 1.6mm; text-align: center; min-width: 24mm; max-width: 34mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.j2-mat, .j2-mat * { color: var(--print-paper); }
.j2-mat b { display: block; font-size: 17pt; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; } .j2-mat b.long { font-size: 13pt; } .j2-mat b.long + span { font-size: 11pt; } .j2-mat span { display: block; font-size: 14pt; font-weight: 700; line-height: 1.15; margin-top: .6mm; }
.j2-addr { font-size: 9pt; line-height: 1.35; padding: 1.6mm 0 1.4mm; border-bottom: var(--print-rule-bold) solid; } .j2-addr b { font-weight: 700; }
.j2-size { display: flex; justify-content: space-between; align-items: stretch; gap: 3mm; padding: 1.6mm 0 1.2mm; }
.j2-size > div:first-child { min-width: 0; flex: 1; } .j2-size > div:first-child > span { display: block; font-size: 8.5pt; font-weight: 700; line-height: 1.2; }
.j2-size > div:first-child > b { display: block; font-size: 26pt; font-weight: 800; line-height: 1.15; letter-spacing: .01em; white-space: nowrap; }
.j2-size > div:first-child > b.multi { font-size: 12.5pt; white-space: normal; line-height: 1.3; } .j2-size b.multi small { font-size: 7.5pt; font-weight: 700; margin-right: 1mm; } .j2-size b.multi i { font-style: normal; margin: 0 1.2mm; }
.j2-piece { border: var(--print-rule-bold) solid; border-radius: 2mm; padding: .8mm 2.5mm; text-align: center; min-width: 20mm; display: flex; flex-direction: column; justify-content: center; }
.j2-piece span { font-size: 8.5pt; font-weight: 700; line-height: 1.2; } .j2-piece b { font-size: 17pt; line-height: 1.15; }
.j2-box { flex: 1 1 auto; min-height: 20mm; border: .4mm dashed; border-radius: 2mm; padding: 2mm 2.5mm; margin: .4mm 0 2mm; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.j2-box .jl-fig { flex: 1 1 auto; min-height: 14mm; margin: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; } .j2-box .jl-fig svg { width: 100%; height: 100%; max-height: 52mm; display: block; }
.j2-note { flex: 0 0 auto; font-size: 9pt; font-weight: 700; line-height: 1.3; border-top: var(--print-rule) solid; padding-top: 1mm; margin-top: 1mm; max-height: 16mm; overflow: hidden; } .j2-note b { font-weight: 700; }
.j2-box.j2-prd { justify-content: flex-start; padding-top: .8mm; } .j2-box.j2-prd .jl-fig svg { max-height: none; } .j2-box.j2-prd .jl-note { border-top: 0; }
.j2-sign { display: grid; grid-template-columns: 1fr 1fr 1fr; border: var(--print-rule-bold) solid; border-radius: 2mm; overflow: hidden; flex: 0 0 auto; }
.j2-sign > div { font-size: 9pt; font-weight: 700; padding: 1mm 2mm 9mm; line-height: 1.2; } .j2-sign > div + div { border-left: var(--print-rule-bold) solid; }
.j2-foot { flex: 0 0 auto; padding-top: 1.6mm; font-size: 8pt; display: flex; justify-content: space-between; gap: 3mm; } .j2-foot span:first-child { opacity: .75; }
.jl2 .jl-alert, .jl2 .jl-stop { margin: 1mm 0 0; }
/* จบในแผ่นเดียว: วัดตอนภาพสูงขั้นต่ำ */
.jl2.measuring .j2-box { flex: 0 0 auto; } .jl2.measuring .j2-box .jl-fig { flex: 0 0 auto; height: 30mm; min-height: 0; } .jl2.measuring .j2-foot { margin-top: 0; }
.jl2.job-prd.measuring .jl-fig { height: 34mm; } .jl2.job-prd.fit-1.measuring .jl-fig { height: 30mm; } .jl2.job-prd.fit-2.measuring .jl-fig { height: 26mm; } .jl2.job-prd.fit-3.measuring .jl-fig { height: 22mm; } .jl2.job-prd.fit-4.measuring .jl-fig { height: 19mm; } .jl2.job-prd.fit-5.measuring .jl-fig { height: 16mm; }
/* v33: ใบหยิบของ (อุปกรณ์อะไหล่ / ของแถม / สินค้าไม่มีขนาดตัด) — ชื่อสินค้าตัวใหญ่ในกรอบเส้นประ แทนภาพผืนที่ต้องตัด */
.j2-pick { align-items: center; text-align: center; gap: 1.2mm; padding: 1mm 0; }
.j2-pick b { display: block; font-size: 16pt; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.j2-pick span { display: block; font-size: 9pt; font-weight: 700; }
/* v33.1: COD = ยอดค้างชำระ (ออร์เดอร์ชำระบางส่วน) — บรรทัดเดียว ไม่กินที่ชื่อสินค้า */
.lb-cod.lb-cod1 { align-items: center; flex-wrap: nowrap; }
.lb-cod.lb-cod1 small { flex: 1 1 auto; flex-basis: auto; font-size: 9.5pt; line-height: 1.15; margin: 0; }
.lb-cod.lb-cod1 b { flex: none; }

/* v33.8: ตอนพิมพ์เหลือแต่กระดาษจริง — ไม่มีส่วนอื่นของหน้า (แถบเมนูมือถือ / ระยะเผื่อแถบล่าง / ความสูงขั้นต่ำของหน้า) ล้นเป็นหน้าเปล่า */
@media print {
  html, body, .app-main, .main-content, #viewPrint, .print-stage { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  body > :not(main), .app-main > :not(#viewPrint):not(.main-content), #viewPrint > :not(#printStage), .main-content > :not(#viewPrint) { display: none !important; }
  .print-stage > :not(.paper) { display: none !important; }
  .paper.l100 { overflow: hidden; }
}

/* v33.10: หมายเหตุบนใบงานช่าง ตัวใหญ่ขึ้น (9 → 12pt) อ่านง่ายจากระยะหน้างาน · สูงสุด 4 บรรทัด (ยาวกว่านั้นตัดท้าย) — รูปขนาดผ้ายังย่อให้พอดีหน้าเอง */
.j2-note { font-size: 12pt; line-height: 1.32; max-height: 22.5mm; padding-top: 1.2mm; }
.j2-note b { font-size: 12pt; }
.job-prd .jl-note, .j2-box.j2-prd .jl-note { font-size: 11pt; line-height: 1.3; }

/* v33.12 (3 ต.ค. 2569): ใบจ่าหน้า — ชื่อสินค้าเท่านั้น (ไม่มีขนาด) และต้องเห็นเสมอแม้มีช่อง COD · เลขออร์เดอร์ใต้ QR ตัวใหญ่ */
.lb-l .lb-item { flex: 0 0 auto; display: flex; align-items: baseline; gap: 2.5mm; min-width: 0; padding: 1.2mm 0; }
.lb-l .lb-item .lb-no { flex: none; margin-bottom: 0; white-space: nowrap; }
.lb-l .lb-item b { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14pt; line-height: 1.3; }
.lb-l .lb-bottom { margin-top: auto; }
.lb-l .lb-cod { margin-top: .5mm; }
.lb-l .lb-top .qr-block { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lb-l .lb-top .qr { margin: 0 0 0 auto; }
.lb-l .lb-top .qr-block .barcode-text.lb-code { font-size: 12.5pt; font-weight: 800; line-height: 1.15; white-space: nowrap; letter-spacing: .01em; margin-top: .6mm; }
.paper.lb-l.lb-measure .lb-bottom { margin-top: 0 !important; }   /* v33.14: ใช้ตอนวัดความสูงเนื้อหาใบจ่าหน้า */

/* v33.18 (5 ต.ค. 2569): ใบจ่าหน้า — ขนาดเดียวกับใบงานช่างตัดผ้า ใต้ชื่อสินค้า */
.lb-l .lb-item .lb-name { flex: 1 1 auto; min-width: 0; }
.lb-l .lb-item .lb-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-l .lb-item .lb-size { display: block; margin-top: .6mm; font-size: 14pt; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.lb-l .lb-item .lb-size .lb-piece { white-space: nowrap; }   /* v33.18.1: ไม่ตัด "B (4 × 7.5 ม.)" กลางบรรทัด */

/* v33.22: หมายเหตุหลายบรรทัด (ชุดเหล็ก STL) — ใบงาน/ใบหยิบ ขยายช่องหมายเหตุ · ใบจ่าหน้า รายการที่ได้รับใต้ชื่อสินค้า */
.j2-note.multi { white-space: pre-line; max-height: none; font-size: 10.5pt; line-height: 1.3; }
.j2-note.multi b { font-size: 10.5pt; }
.j2-note.multi.long, .j2-note.multi.long b { font-size: 9pt; line-height: 1.2; }   /* v33.86: ชุดเหล็ก Custom / หมายเหตุยาว > 8 บรรทัด — ย่อให้พอดีใบหยิบ */
.j2-box:has(.j2-note.long) .j2-pick b { font-size: 13pt; }
.lb-l .lb-item .lb-memo { display: block; margin-top: .8mm; white-space: pre-line; font-size: 10pt; font-weight: 600; line-height: 1.28; }

/* v33.26: MP Flow 2.0 — พื้นที่ + น้ำหนักต่อผืนบนใบจ่าหน้า */

/* v33.54: ใบจ่าหน้า — งานปู / เชื่อมหน้างาน (ช่างติดตั้งหน้างาน) */
.lb-onsite { border: var(--print-rule-bold) solid; background: var(--print-ink); color: var(--print-paper); font-size: 13pt; font-weight: 800; text-align: center; padding: .8mm 2mm; margin-bottom: 1.5mm; letter-spacing: .02em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ===== v33.90 (S51): แบบฟอร์มพิมพ์จากหน้าตั้งค่าระบบ — ไม่มีแบบที่แก้ไว้ = กฎชุดนี้ไม่มีผล ===== */
.paper .tpl-hide { display: none !important; }
.paper .tpl-note { font-size: 9pt; line-height: 1.3; text-align: center; padding: .8mm 0; white-space: pre-line; }
.paper .tpl-note.tpl-head { border-bottom: var(--print-rule) solid; margin-bottom: 1mm; }
.paper .tpl-note.tpl-foot { border-top: var(--print-rule) solid; margin-top: 1mm; }
.paper[data-tpl-font] :is(.lb-from, .lb-to, .lb-item, .j2-title, .j2-addr, .j2-size, .j2-note, .j2-sign, .dn-lto, .dn-litems, .dn-lsum, .dn-lchk) { zoom: var(--tpl-font, 1); }
.tpl-preview { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; padding: 12px; background: var(--surface-2, #f2f3f4); border-radius: 12px; overflow: auto; }
.tpl-preview .paper { box-shadow: var(--shadow-pop); margin: 0; }
@media print {
  body.tpl-printing main section[id^="view"] { display: none !important; }
  body.tpl-printing #viewPrint { display: block !important; }
  body.tpl-printing #viewPrint > :not(.print-stage) { display: none !important; }
}
/* v33.97: ใบงานช่างติดตั้ง (A4 · ไม่มีราคา) */
.paper.in-a4 { font-size: 10.5pt; line-height: 1.45; display: flex; flex-direction: column; gap: 3.2mm; }
.in-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: .5mm solid; padding-bottom: 2mm; }
.in-title { display: block; font-size: 20pt; line-height: 1.1; } .in-sub { font-size: 9pt; }
.in-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; font-size: 9pt; }
.in-meta > div { border: .3mm solid; border-radius: 1.5mm; padding: 1.2mm 2mm; display: flex; flex-direction: column; } .in-meta b { font-size: 11pt; min-height: 5mm; }
.in-cust { border: .4mm solid; border-radius: 2mm; padding: 2mm 3mm; } .in-k { font-size: 8.5pt; font-weight: 700; }
.in-name { font-size: 13pt; font-weight: 700; } .in-name span { font-size: 11pt; margin-left: 3mm; } .in-addr { font-size: 11pt; } .in-small { font-size: 8.5pt; }
.in-items { width: 100%; border-collapse: collapse; } .in-items th, .in-items td { border: .3mm solid; padding: 1.4mm 2mm; vertical-align: top; } .in-items th { font-size: 9pt; }
.in-items .c { text-align: center; width: 9mm; } .in-items th:last-child, .in-items td:last-child { width: 12mm; white-space: nowrap; } .in-items .r { text-align: right; white-space: nowrap; width: 24mm; } .in-items small { font-size: 8pt; }
.in-size { font-size: 10pt; } .in-note { font-size: 9pt; white-space: pre-line; margin-top: .8mm; border-left: .6mm solid; padding-left: 1.5mm; }
.in-srv { font-size: 10pt; }
.in-chks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; font-size: 8.8pt; }
.in-chk { border: .3mm solid; border-radius: 1.5mm; padding: 1.6mm 2mm; } .in-chk > b { display: block; margin-bottom: .8mm; } .in-chk > div { margin: .6mm 0; display: flex; gap: 1.2mm; }
.in-a4 .dn-box { display: inline-block; flex: 0 0 auto; width: 3.4mm; height: 3.4mm; border: .3mm solid; border-radius: .6mm; vertical-align: -0.6mm; }
.in-a4 .dn-fill { display: block; border-bottom: .3mm dotted; min-height: 5mm; }
.in-memo .in-lines i { display: block; border-bottom: .3mm dotted; height: 7mm; }
.in-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 4mm; text-align: center; font-weight: 700; }
.in-sign .dn-sigline { display: block; border-bottom: .3mm solid; height: 14mm; margin-bottom: 1mm; } .in-sign small { display: block; font-weight: 400; font-size: 8.5pt; }
.in-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 8pt; border-top: .3mm solid; padding-top: 1.5mm; }
@media print { .paper.in-a4 { min-height: 276mm; } }
/* v33.103: โลโก้ใบจ่าหน้าตามค่าตั้ง — โลโก้เดิม (MP) ใช้ขนาดเดิม · แนวนอนเตี้ยลง */
.lb-top img.lg-old { height: 15mm; max-width: none; } .sA5 .lb-top img.lg-old { height: 20mm; } .sA4 .lb-top img.lg-old { height: 30mm; } .lb-l .lb-top img.lg-old { height: 12mm; }
.lb-top img.lg-h { height: 7mm; } .lb-l .lb-top img.lg-h { height: 6mm; }

/* v33.123: QR แผนที่หน้างาน (ลิงก์ Google Map ของออร์เดอร์) */
.dn-map { float: right; margin: 0 0 .5mm 1.5mm; text-align: center; } .dn-map svg { display: block; } .dn-map small { display: block; font-size: 6.5pt; line-height: 1; }
.in-map { display: flex; gap: 3mm; align-items: center; margin-top: 2mm; } .in-map svg { flex: none; } .in-map b { display: block; font-size: 10pt; } .in-map small { font-size: 8.5pt; }
