/* ODM Billing - the bill as paper: on screen and when printed */
.bp-paper { background: #fff; color: #000; box-shadow: 0 2px 12px rgba(16,24,40,.18); padding: 10px 10px 16px; font-size: 12.5px; line-height: 1.38; font-family: Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; flex: none; overflow-wrap: anywhere; }
.bp-3in { width: 302px; }
.bp-2in { width: 219px; font-size: 11px; }
.bp-head { text-align: center; display: grid; gap: 1px; justify-items: center; }
.bp-logo { max-width: 120px; max-height: 96px; object-fit: contain; margin-bottom: 2px; }
.bp-title { font-size: 21px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; }
.bp-2in .bp-title { font-size: 17px; }
.bp-tag { font-weight: 700; }
.bp-kind { text-align: center; font-weight: 800; margin-top: 4px; letter-spacing: .04em; }
.bp-rule { border-top: 1px dashed #000; margin: 5px 0; }
.bp-table { width: 100%; border-collapse: collapse; margin: 5px 0; }
.bp-table th { text-align: left; border-top: 1px dashed #000; border-bottom: 1px dashed #000; padding: 3px 2px; font-weight: 700; }
.bp-table td { padding: 2px; vertical-align: top; }
.bp-table tbody tr:last-child td { border-bottom: 1px dashed #000; padding-bottom: 4px; }
.bp-paper .r, .bp-r { text-align: right; }
.bp-table .r { white-space: nowrap; }
.bp-sum { display: flex; justify-content: space-between; gap: 8px; }
.bp-total { text-align: right; font-size: 17px; font-weight: 800; margin: 3px 0; }
.bp-2in .bp-total { font-size: 14.5px; }
.bp-b { font-weight: 700; }
.bp-small { font-size: .85em; color: #333; }
.bp-note { margin-top: 3px; }
.bp-foot { text-align: center; display: grid; gap: 1px; }

.bp-a4 { width: 794px; padding: 30px 34px; font-size: 13px; }
.bp-a4-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.bp-a4-shop { font-size: 24px; font-weight: 800; }
.bp-a4-logo { max-width: 130px; max-height: 110px; object-fit: contain; }
.bp-a4-title { text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 5px; margin: 12px 0; }
.bp-a4-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.bp-a4-table { width: 100%; border-collapse: collapse; }
.bp-a4-table th { background: #D21F26; color: #fff; text-align: left; padding: 6px 8px; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bp-a4-table td { padding: 6px 8px; border-bottom: 1px solid #ccc; vertical-align: top; }
.bp-a4-table tfoot td { font-weight: 800; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.bp-a4-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; }
.bp-a4-words { flex: 1; display: grid; gap: 3px; align-content: start; }
.bp-a4-sums { width: 290px; display: grid; gap: 4px; align-content: start; }
.bp-a4-sums > div { display: flex; justify-content: space-between; gap: 10px; }
.bp-a4-grand { font-size: 16px; font-weight: 800; border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 5px 0; margin: 3px 0; }
.bp-a4-sign { display: flex; justify-content: space-between; margin-top: 56px; font-size: 12px; text-align: center; }
.bp-a4-sign > div { border-top: 1px solid #000; padding-top: 4px; min-width: 190px; }
.bp-a4-sign > div:last-child { border-top: 0; }
.bp-a4-terms { margin-top: 18px; font-size: 12px; border-top: 1px solid #ccc; padding-top: 6px; }

@page { margin: 0; }
@page bpa4 { size: A4; margin: 10mm; }
@media print {
  .bp-paper { box-shadow: none; margin: 0; width: 100%; max-width: 80mm; padding: 1mm 3mm 8mm; font-size: 9.5pt; }
  .bp-2in { max-width: 58mm; font-size: 8.5pt; padding: 1mm 2mm 8mm; }
  .bp-title { font-size: 14pt; } .bp-2in .bp-title { font-size: 12pt; }
  .bp-total { font-size: 12.5pt; } .bp-2in .bp-total { font-size: 11pt; }
  .bp-logo { max-width: 28mm; max-height: 24mm; }
  .bp-a4 { page: bpa4; max-width: none; width: 100%; padding: 0; font-size: 10.5pt; }
}
