.invoice-sheet{box-sizing:border-box;width:100mm;min-height:148mm;height:auto;padding:3mm;background:#fff;color:#000;font-family:'Noto Sans Lao','Phetsarath OT',Arial,sans-serif;font-size:11pt;line-height:1.35;overflow:visible;border:1px solid #000;overflow-wrap:anywhere}.invoice-sheet *{box-sizing:border-box}.invoice-sheet p,.invoice-sheet h3{margin:0}.invoice-sheet h3{font-size:11pt;font-weight:800}.invoice-sheet small{font-size:9pt;display:block;color:#222}.invoice-sheet section{border-bottom:1px solid #000;padding:1.5mm 0}.invoice-brand{display:flex;justify-content:space-between;align-items:center;gap:2mm;padding-bottom:1.5mm;border-bottom:1px solid #000;font-size:10pt}.invoice-brand>*{min-width:0}.invoice-code{text-align:center}.invoice-barcode{display:block;margin:1mm auto 0;flex-shrink:0;max-width:none!important;background:white}.invoice-code-value{font:700 11pt/1.3 monospace;letter-spacing:.3px;margin-top:1mm;overflow-wrap:anywhere}.invoice-meta,.invoice-payment{display:grid;grid-template-columns:1fr 1fr;gap:2mm}.invoice-meta b{display:block;font-size:11pt}.invoice-person strong{display:block;font-size:14pt;font-weight:800}.invoice-person .invoice-phone{display:block;font:800 14pt/1.2 Arial,sans-serif}.invoice-receiver strong{font-size:17pt}.invoice-receiver .invoice-phone{font-size:18pt}.invoice-destination{background:#fff}.invoice-destination strong{display:block;font-size:14pt;font-weight:800}.invoice-destination small{font-size:11pt;font-weight:700}.invoice-payment b{display:block;font-size:13pt}.invoice-fee{display:grid;grid-template-columns:1.8fr 1fr;gap:2mm;border-bottom:0!important}.invoice-fee p{font-size:11pt;font-weight:700;margin-top:1mm}.invoice-check{display:inline-block;width:3.5mm;height:3.5mm;line-height:3mm;border:1px solid black;text-align:center;font-family:Arial;vertical-align:middle}.invoice-sign{text-align:center;align-self:end}.invoice-sign div{margin-top:7mm}.invoice-note{border-top:1px solid black;padding-top:1mm;font-size:10pt}.invoice-code-warning{font-size:10pt}.invoice-serial{padding:3mm 0!important;break-inside:avoid;min-height:37mm}.invoice-serial>b{display:block;font-size:12pt}.invoice-serial .invoice-code-value{text-align:center}.invoice-preview{overflow:auto;background:#e8ebf0;padding:12px}.invoice-preview .invoice-sheet{margin:auto auto 12px}.cloud-card:has(.invoice-preview){max-width:660px!important;width:calc(100vw - 24px)}
@media print{.invoice-sheet{break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-sheet:last-child{break-after:auto;page-break-after:auto}#printInvoiceArea .invoice-barcode{max-width:none!important}}
/* Isolate document typography from dashboard headers and modal paragraph rules. */
.invoice-sheet .invoice-brand{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0 0 1.5mm!important;background:#fff!important;color:#000!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #000!important;flex-wrap:nowrap!important}
.invoice-sheet p{font-size:11pt!important;line-height:1.25!important;color:#000!important;margin:0!important}.invoice-sheet h3{line-height:1.3!important;padding:0!important;border:0!important;color:#000!important}.invoice-sheet section{padding:1mm 0}.invoice-sheet .invoice-person:not(.invoice-receiver)>strong,.invoice-sheet .invoice-person:not(.invoice-receiver)>.invoice-phone{display:inline-block;margin-right:2mm;font-size:12pt}.invoice-sheet .invoice-note{font-size:10pt!important}.invoice-sheet .invoice-fee p{margin-top:1mm!important}.invoice-sheet .invoice-code-warning{font-size:10pt!important}
.cloud-card .invoice-sheet p{color:#000!important;font-size:11pt!important;line-height:1.25!important}.cloud-card .invoice-sheet .invoice-note{font-size:10pt!important}
#cloudGate .invoice-sheet p,#cloudGate .invoice-sheet h3,#cloudGate .invoice-sheet small{color:#000!important}
/* Classic waybill grid: the destination returns to the three-cell reference row. */
.invoice-classic .invoice-brand{display:grid!important;grid-template-columns:1.2fr 1.35fr .65fr;gap:0!important;padding:0!important;align-items:stretch!important}
.invoice-classic .invoice-brand>*{padding:1mm 2mm;display:flex;align-items:center;justify-content:center}.invoice-classic .invoice-brand>*:first-child{justify-content:flex-start;padding-left:0}.invoice-classic .invoice-brand>*+*{border-left:1px solid #000}.invoice-classic .invoice-brand>span{font-size:9pt;font-weight:700}
.invoice-classic .invoice-meta{grid-template-columns:1fr .85fr 1.65fr;gap:0;padding:1mm 0}.invoice-classic .invoice-meta>div{min-width:0;padding:0 1.5mm}.invoice-classic .invoice-meta>div:first-child{padding-left:0}.invoice-classic .invoice-meta>div+div{border-left:1px solid #000}.invoice-classic .invoice-meta small{font-size:8.5pt}.invoice-classic .invoice-meta b{font-size:10pt;line-height:1.3}
.invoice-classic .invoice-order-number{text-align:center;font:800 18pt/1.2 Arial,sans-serif;padding:1mm 0}
.invoice-classic .invoice-person{padding:1mm 1mm}.invoice-classic .invoice-person>strong,.invoice-classic .invoice-person>.invoice-phone,.invoice-sheet.invoice-classic .invoice-person:not(.invoice-receiver)>strong,.invoice-sheet.invoice-classic .invoice-person:not(.invoice-receiver)>.invoice-phone{font-size:12pt;font-weight:800;line-height:1.3}.invoice-classic .invoice-receiver>strong,.invoice-classic .invoice-receiver>.invoice-phone{display:block}.invoice-classic .invoice-person p,#cloudGate .invoice-classic .invoice-person p{font-size:10pt!important;line-height:1.3!important}
.invoice-classic .invoice-payment{gap:0;text-align:center;padding:1.5mm 0}.invoice-classic .invoice-payment>div{padding:0 1mm}.invoice-classic .invoice-payment>div+div{border-left:1px solid #000}
.invoice-classic .invoice-fee{grid-template-columns:1.5fr 1fr;gap:0;padding:1.5mm 0 0}.invoice-classic .invoice-fee>div:first-child{padding-right:2mm}.invoice-classic .invoice-sign{border-left:1px solid #000;align-self:stretch;padding:0 2mm;display:flex;flex-direction:column;justify-content:space-between}.invoice-classic .invoice-sign small{font-size:8pt}.invoice-classic .invoice-sign-date{margin-top:1mm}.invoice-classic .invoice-note{margin-top:0!important}

.invoice-classic .invoice-sign div{margin-top:3mm}.invoice-classic .invoice-sign .invoice-sign-date{margin-top:1mm}

.invoice-classic .invoice-address{font-weight:800!important;color:#000!important}.invoice-classic .invoice-shipping-title{font-size:9pt;font-weight:800}
