@import url("fonts.css");
@import url("doc-print-typography.css");

body.invoice-pdf, .invoice-pdf-root {
  --sp-1: 1mm;
  --sp-2: 2mm;
  --sp-4: 4mm;
  --sp-6: 8mm;
  margin: 0;
  color: #1c2421;
  font-family: var(--sans);
  font-size: var(--doc-text-size);
  line-height: var(--doc-text-lh);
}

body.invoice-pdf .invoice-doc, .invoice-pdf-root .invoice-doc,
.invoice-doc-screen-scope .invoice-doc {
  position: relative;
  font-size: var(--doc-text-size);
  line-height: var(--doc-text-lh);
}

.invoice-doc-screen-scope .invoice-doc {
  font-weight: var(--fw-normal, 400);
}

.invoice-sample-do-not-pay {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #e8f1fa;
  border: 1px solid #b4c6d7;
  color: #0f3d66;
  font-weight: 600;
  font-size: 0.92rem;
}

body.invoice-pdf .invoice-doc h1, .invoice-pdf-root .invoice-doc h1,
.invoice-doc-screen-scope .invoice-doc h1 {
  font-size: var(--doc-title-size);
  font-weight: var(--doc-section-weight);
  margin: 0 0 var(--doc-title-margin-bottom);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.invoice-pdf .invoice-doc-head, .invoice-pdf-root .invoice-doc-head,
.invoice-doc-screen-scope .invoice-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6mm;
  margin-bottom: 2mm;
  overflow: visible;
}

body.invoice-pdf .invoice-doc-brand, .invoice-pdf-root .invoice-doc-brand,
.invoice-doc-screen-scope .invoice-doc-brand {
  max-width: 45%;
}

body.invoice-pdf .invoice-doc-seller-name, .invoice-pdf-root .invoice-doc-seller-name,
.invoice-doc-screen-scope .invoice-doc-seller-name {
  margin: 1mm 0 0;
  font-weight: var(--doc-section-weight);
  font-size: var(--doc-text-size);
}

body.invoice-pdf .invoice-doc-logo, .invoice-pdf-root .invoice-doc-logo,
.invoice-doc-screen-scope .invoice-doc-logo {
  max-height: 12mm;
  max-width: 70mm;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 3mm;
}

body.invoice-pdf .invoice-doc-meta, .invoice-pdf-root .invoice-doc-meta,
.invoice-doc-screen-scope .invoice-doc-meta {
  text-align: left;
  min-width: 48mm;
  max-width: 66mm;
  box-sizing: border-box;
}

body.invoice-pdf .invoice-doc-meta-list, .invoice-pdf-root .invoice-doc-meta-list,
.invoice-doc-screen-scope .invoice-doc-meta-list {
  display: table;
  border-collapse: separate;
  border-spacing: 0 0.3mm;
  margin: 0;
  font-size: var(--doc-label-size);
}

body.invoice-pdf .invoice-doc-meta-list > div, .invoice-pdf-root .invoice-doc-meta-list > div,
.invoice-doc-screen-scope .invoice-doc-meta-list > div {
  display: table-row;
}

body.invoice-pdf .invoice-doc-meta-list dt, .invoice-pdf-root .invoice-doc-meta-list dt,
body.invoice-pdf .invoice-doc-meta-list dd, .invoice-pdf-root .invoice-doc-meta-list dd,
.invoice-doc-screen-scope .invoice-doc-meta-list dt,
.invoice-doc-screen-scope .invoice-doc-meta-list dd {
  display: table-cell;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}

body.invoice-pdf .invoice-doc-meta-list dt, .invoice-pdf-root .invoice-doc-meta-list dt,
.invoice-doc-screen-scope .invoice-doc-meta-list dt {
  text-align: left;
  padding-right: 2mm;
  color: var(--muted, #4d5c54);
  font-weight: var(--fw-normal, 400);
  white-space: nowrap;
}

body.invoice-pdf .invoice-doc-meta-list dd, .invoice-pdf-root .invoice-doc-meta-list dd,
.invoice-doc-screen-scope .invoice-doc-meta-list dd {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.invoice-doc-screen-scope .invoice-doc-meta-list dd {
  font-weight: var(--fw-normal, 400);
}

body.invoice-pdf .invoice-doc-meta-list dd.tabular-nums, .invoice-pdf-root .invoice-doc-meta-list dd.tabular-nums,
.invoice-doc-screen-scope .invoice-doc-meta-list dd.tabular-nums {
  white-space: nowrap;
}

body.invoice-pdf .invoice-doc-meta-list dd:not(.tabular-nums), .invoice-pdf-root .invoice-doc-meta-list dd:not(.tabular-nums),
.invoice-doc-screen-scope .invoice-doc-meta-list dd:not(.tabular-nums) {
  white-space: normal;
  overflow-wrap: break-word;
}

body.invoice-pdf .invoice-doc-window, .invoice-pdf-root .invoice-doc-window,
.invoice-doc-screen-scope .invoice-doc-window {
  margin-top: var(--sp-6, 32px);
  font-size: var(--doc-text-size);
}

body.invoice-pdf .invoice-doc-window-name, .invoice-pdf-root .invoice-doc-window-name,
.invoice-doc-screen-scope .invoice-doc-window-name {
  margin: 0 0 0.5mm;
  font-weight: var(--doc-section-weight);
}

.invoice-doc-screen-scope .invoice-doc-window .invoice-doc-pre,
.invoice-doc-screen-scope .invoice-doc-window > p:not(.invoice-doc-window-name) {
  font-weight: var(--fw-normal, 400);
}

body.invoice-pdf .invoice-doc-window-address, .invoice-pdf-root .invoice-doc-window-address,
.invoice-doc-screen-scope .invoice-doc-window-address {
  margin: 0;
}

body.invoice-pdf .invoice-doc-main, .invoice-pdf-root .invoice-doc-main,
.invoice-doc-screen-scope .invoice-doc-main {
  margin-top: var(--sp-6, 32px);
}

body.invoice-pdf .invoice-doc-pre, .invoice-pdf-root .invoice-doc-pre,
.invoice-doc-screen-scope .invoice-doc-pre {
  white-space: pre-line;
}

body.invoice-pdf .invoice-doc-lines, .invoice-pdf-root .invoice-doc-lines,
.invoice-doc-screen-scope .invoice-doc-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--doc-table-margin-bottom);
  font-size: var(--doc-table-size);
}

body.invoice-pdf .invoice-doc-lines th, .invoice-pdf-root .invoice-doc-lines th,
body.invoice-pdf .invoice-doc-lines td, .invoice-pdf-root .invoice-doc-lines td,
.invoice-doc-screen-scope .invoice-doc-lines th,
.invoice-doc-screen-scope .invoice-doc-lines td {
  text-align: left;
  padding: var(--doc-table-cell-py) var(--doc-table-cell-pr) var(--doc-table-cell-py) 0;
  border-bottom: 0.4pt solid #d4dcd8;
  vertical-align: top;
}

body.invoice-pdf .invoice-doc-lines th, .invoice-pdf-root .invoice-doc-lines th,
.invoice-doc-screen-scope .invoice-doc-lines th {
  font-size: var(--doc-table-th-size);
  font-weight: var(--doc-section-weight);
}

.invoice-doc-screen-scope .invoice-doc-lines td {
  font-weight: var(--fw-normal, 400);
}

body.invoice-pdf .invoice-doc-lines th:nth-child(n + 2), .invoice-pdf-root .invoice-doc-lines th:nth-child(n + 2),
body.invoice-pdf .invoice-doc-lines td:nth-child(n + 2), .invoice-pdf-root .invoice-doc-lines td:nth-child(n + 2),
.invoice-doc-screen-scope .invoice-doc-lines th:nth-child(n + 2),
.invoice-doc-screen-scope .invoice-doc-lines td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.invoice-pdf .invoice-doc-detail-note, .invoice-pdf-root .invoice-doc-detail-note,
.invoice-doc-screen-scope .invoice-doc-detail-note {
  font-size: var(--doc-label-size);
  margin: 0 0 var(--doc-block-gap);
}

body.invoice-pdf .invoice-doc-totals-box, .invoice-pdf-root .invoice-doc-totals-box,
.invoice-doc-screen-scope .invoice-doc-totals-box {
  margin: 0 0 2mm auto;
  width: 68mm;
  border: 0.4pt solid #1c2421;
  padding: 1.5mm 2.5mm;
  font-variant-numeric: tabular-nums;
  font-size: var(--doc-table-size);
}

body.invoice-pdf .invoice-doc-totals-box p, .invoice-pdf-root .invoice-doc-totals-box p,
.invoice-doc-screen-scope .invoice-doc-totals-box p {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  margin: 0.5mm 0;
}

.invoice-doc-screen-scope .invoice-doc-totals-box p {
  font-weight: var(--fw-normal, 400);
}

.invoice-doc-screen-scope .invoice-doc-totals-box p.invoice-doc-totals-grand {
  font-weight: var(--fw-semibold, 600);
}

body.invoice-pdf .invoice-doc-totals-grand, .invoice-pdf-root .invoice-doc-totals-grand,
.invoice-doc-screen-scope .invoice-doc-totals-grand {
  font-weight: var(--fw-semibold, 600);
  margin-top: 1.5mm !important;
  padding-top: 1mm;
  border-top: 0.4pt solid #d4dcd8;
}

body.invoice-pdf .invoice-doc-vat-note, .invoice-pdf-root .invoice-doc-vat-note,
.invoice-doc-screen-scope .invoice-doc-vat-note {
  font-size: var(--doc-label-size);
  margin: 0 0 var(--doc-block-gap);
}

body.invoice-pdf .invoice-doc-tail , .invoice-pdf-root .invoice-doc-tail {
  position: relative;
  padding-bottom: 0;
  margin-top: 2mm;
}

.invoice-doc-screen-scope .invoice-doc-tail {
  position: relative;
  padding-bottom: 90.4mm;
  margin-top: 2mm;
}

body.invoice-pdf .invoice-doc-seller-foot, .invoice-pdf-root .invoice-doc-seller-foot,
.invoice-doc-screen-scope .invoice-doc-seller-foot {
  font-size: 7pt;
  color: #5c675f;
  margin: 0 0 1.5mm;
}

body.invoice-pdf .invoice-slip-virtual-label, .invoice-pdf-root .invoice-slip-virtual-label,
.invoice-doc-screen-scope .invoice-slip-virtual-label {
  font-size: 7pt;
  font-weight: 400;
  margin: 0 0 0.5mm;
  color: #1c2421;
}

body.invoice-pdf .invoice-slip-virtual, .invoice-pdf-root .invoice-slip-virtual,
.invoice-doc-screen-scope .invoice-slip-virtual {
  font-size: 7pt;
  font-weight: 400;
  margin: 0 0 2mm;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}


body.invoice-pdf .invoice-pay-slip-scope, .invoice-pdf-root .invoice-pay-slip-scope,
.invoice-doc-screen-scope .invoice-pay-slip-scope {
  font-weight: 400;
}

body.invoice-pdf .invoice-pay-slip-scope p, .invoice-pdf-root .invoice-pay-slip-scope p,
body.invoice-pdf .invoice-pay-slip-scope h1, .invoice-pdf-root .invoice-pay-slip-scope h1,
body.invoice-pdf .invoice-pay-slip-scope h2, .invoice-pdf-root .invoice-pay-slip-scope h2,
body.invoice-pdf .invoice-pay-slip-scope h3, .invoice-pdf-root .invoice-pay-slip-scope h3,
.invoice-doc-screen-scope .invoice-pay-slip-scope p,
.invoice-doc-screen-scope .invoice-pay-slip-scope h1,
.invoice-doc-screen-scope .invoice-pay-slip-scope h2,
.invoice-doc-screen-scope .invoice-pay-slip-scope h3 {
  margin: 0;
}

body.invoice-pdf .invoice-pay-block, .invoice-pdf-root .invoice-pay-block {
  position: running(slip);
  width: 190mm;
}

.invoice-doc-screen-scope .invoice-pay-block {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 190mm;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip , .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip {
  width: 190mm;
  height: 90.4mm;
  box-sizing: border-box;
  font-size: 7pt;
  line-height: 1.25;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1mm;
  padding-top: 0.35mm;
  padding-bottom: 0.35mm;
  padding-right: 0.6mm;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient > .invoice-pay-slip-value, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient > .invoice-pay-slip-value,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-cell--r2-recipient > .invoice-pay-slip-value {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 1mm;
}

body.invoice-pdf .invoice-pay-qr, .invoice-pdf-root .invoice-pay-qr,
.invoice-doc-screen-scope .invoice-pay-qr {
  flex: 0 0 20mm;
  width: 20mm;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

body.invoice-pdf .invoice-pay-qr svg, .invoice-pdf-root .invoice-pay-qr svg,
.invoice-doc-screen-scope .invoice-pay-qr svg {
  display: block;
  width: 20mm;
  height: 20mm;
  margin: 0;
}

body.invoice-pdf .invoice-pay-qr img, .invoice-pdf-root .invoice-pay-qr img,
.invoice-doc-screen-scope .invoice-pay-qr img,
body.invoice-pdf .invoice-pay-qr-img, .invoice-pdf-root .invoice-pay-qr-img,
.invoice-doc-screen-scope .invoice-pay-qr-img {
  display: block;
  width: 20mm;
  height: 20mm;
  margin: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-perforation, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-perforation,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-perforation {
  border-top: 0.4pt dashed #1c2421;
  margin-bottom: 2mm;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-sheet, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-sheet,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-sheet {
  width: 190mm;
  height: 90.4mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 0.4pt solid #1c2421;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-grid , .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-grid {
  display: grid;
  grid-template-columns: 5mm 18mm 83.5mm 83.5mm;
  grid-template-rows: 12.7mm 21mm 21mm 12.7mm 10mm;
  width: 190mm;
  height: 77.4mm;
  flex: 0 0 77.4mm;
  box-sizing: border-box;
}

.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-grid {
  display: grid;
  grid-template-columns: 5mm minmax(0, 18mm) minmax(0, 83.5mm) minmax(0, 83.5mm);
  grid-template-rows: minmax(0, 12.7mm) minmax(0, 21mm) minmax(0, 21mm) minmax(0, 12.7mm) minmax(0, 10mm);
  width: 190mm;
  height: 77.4mm;
  flex: 0 0 77.4mm;
  box-sizing: border-box;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-grid, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-grid {
  grid-template-rows: 12.7mm 22.5mm 19.5mm 12.7mm 10mm;
}

.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-block--qr .invoice-pay-slip-grid {
  grid-template-rows: minmax(0, 12.7mm) minmax(0, 22.5mm) minmax(0, 19.5mm) minmax(0, 12.7mm) minmax(0, 10mm);
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-vert-cell, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-vert-cell,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-vert-cell {
  grid-column: 1;
  grid-row: 2 / 5;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: -0.4pt 0 0 -0.4pt;
  box-sizing: border-box;
  border: 0.4pt solid #1c2421;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-vert, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-vert,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-vert {
  position: absolute;
  bottom: 0;
  left: 0;
  top: auto;
  width: 54.7mm;
  height: 5mm;
  margin: 0;
  padding: 0;
  transform-origin: bottom left;
  transform: translateX(5mm) rotate(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  font-size: 6pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell {
  border: 0.4pt solid #1c2421;
  margin: -0.4pt 0 0 -0.4pt;
  padding: 0.8mm 1mm;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--label .invoice-pay-slip-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--label .invoice-pay-slip-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--label .invoice-pay-slip-label {
  text-align: right;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-label { grid-column: 2; grid-row: 1; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-iban, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-iban,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-iban { grid-column: 3; grid-row: 1; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-bic, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-bic,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r1-bic { grid-column: 4; grid-row: 1; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-label { grid-column: 2; grid-row: 2; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-recipient, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-recipient,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r2-recipient { grid-column: 3 / 5; grid-row: 2; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-label { grid-column: 2; grid-row: 3; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-payer, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-payer,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r3-payer { grid-column: 3 / 5; grid-row: 3; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-label { grid-column: 2; grid-row: 4; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-line, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-line,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-sig-line { grid-column: 3; grid-row: 4; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-ref, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-ref,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r4-ref { grid-column: 4; grid-row: 4; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-from, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-from,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-from { grid-column: 2 / 4; grid-row: 5; }
body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-due-euro, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-due-euro,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-cell--r5-due-euro { grid-column: 4; grid-row: 5; padding: 0.4mm 1mm; }

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-label, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-label,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-label {
  margin: 0 0 0.4mm;
  font-size: 6.5pt;
  line-height: 1.15;
  color: #1c2421;
  word-break: normal;
  hyphens: none;
  overflow-wrap: normal;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-label--inline, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-label--inline,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-label--inline {
  margin: 0 0 0.2mm;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-value, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-value,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-value {
  margin: 0;
  font-size: 9pt;
  font-weight: 400;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-line, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-line,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-line {
  border-bottom: 0.4pt solid #1c2421;
  min-height: 3mm;
  margin-top: 1mm;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-r5-split, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-r5-split,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-r5-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm;
  height: 100%;
  align-items: start;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-bottom, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-bottom,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-bottom {
  display: flex;
  width: 190mm;
  height: 13mm;
  flex: 0 0 13mm;
  box-sizing: border-box;
  border: 0.4pt solid #1c2421;
  border-top: 0;
  margin-top: -0.4pt;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-barcode, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-barcode,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-barcode {
  width: 105mm;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 1mm;
  box-sizing: border-box;
}

body.invoice-pdf .invoice-pay-slip-scope .invoice-pay-slip-barcode svg, .invoice-pdf-root .invoice-pay-slip-scope .invoice-pay-slip-barcode svg,
.invoice-doc-screen-scope .invoice-pay-slip-scope .invoice-pay-slip-barcode svg {
  display: block;
  width: 105mm;
  min-width: 105mm;
  height: 12mm;
}

body.invoice-pdf .invoice-pdf-foot , .invoice-pdf-root .invoice-pdf-foot {
  position: running(invoice-foot);
  font-size: var(--doc-label-size);
  color: #5c675f;
}

body.invoice-pdf .invoice-pdf-pages , .invoice-pdf-root .invoice-pdf-pages {
  white-space: nowrap;
}

body.invoice-pdf .invoice-pdf-pages::after , .invoice-pdf-root .invoice-pdf-pages::after {
  content: counter(page) " / " counter(pages);
  font-variant-numeric: tabular-nums;
}

.invoice-slip-draft-notice {
  margin: 0;
  font-size: 7pt;
  font-weight: 400;
  color: #5c675f;
  line-height: 1.2;
}

.invoice-doc-screen-scope {
  --sp-1: 1mm;
  --sp-2: 2mm;
  --sp-4: 4mm;
  --sp-6: 8mm;
}

.invoice-doc-screen-scope .invoice-slip-draft-notice {
  font-size: 7pt;
}

.sample-invoice-stack {
  width: min(210mm, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.sample-invoice-stack .sample-doc-nav {
  width: 100%;
  margin-bottom: var(--sp-3);
}

.invoice-doc-scale-host {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.invoice-doc-scale-host--fitted {
  overflow: hidden;
}

.invoice-doc-scale-inner {
  flex: 0 0 auto;
  align-self: flex-start;
  transform-origin: top center;
}

.invoice-doc-screen-scope.invoice-doc-screen {
  width: 210mm;
  max-width: 210mm;
  margin: 0;
}

body.invoice-pdf .invoice-doc-page, .invoice-pdf-root .invoice-doc-page,
.invoice-doc-screen-scope .invoice-doc-page {
  width: 210mm;
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 14mm 10mm 16mm;
  box-sizing: border-box;
  background: #fff;
  position: relative;
}

@media (max-width: 767px) {
  .invoice-doc-screen-scope .invoice-doc-lines thead {
    display: none;
  }
  .invoice-doc-screen-scope .invoice-doc-lines,
  .invoice-doc-screen-scope .invoice-doc-lines tbody,
  .invoice-doc-screen-scope .invoice-doc-lines tr,
  .invoice-doc-screen-scope .invoice-doc-lines td {
    display: block;
    width: 100%;
  }
  .invoice-doc-screen-scope .invoice-doc-lines tr {
    padding: 0.4rem 0;
    border-bottom: 1px solid #d4dcd8;
  }
  .invoice-doc-screen-scope .invoice-doc-lines td:first-child {
    overflow-wrap: anywhere;
    text-align: left;
  }
  .invoice-doc-screen-scope .invoice-doc-lines td:nth-child(n + 2) {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    border: 0;
    padding-right: 0.6rem;
  }
}

.invoice-mobile-summary {
  margin-top: 0;
}

.invoice-mobile-summary-list {
  margin: 0;
  padding: 0;
}

.invoice-mobile-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-1) var(--sp-2);
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.invoice-mobile-summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.invoice-mobile-summary-row dt {
  margin: 0;
  font-size: var(--doc-label-size);
  color: var(--muted);
  font-weight: var(--fw-normal);
}

.invoice-mobile-summary-row dd {
  margin: 0;
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-mobile-summary-row--copy {
  grid-template-columns: minmax(0, 1fr) auto;
}

.invoice-mobile-summary-row--copy dt {
  grid-column: 1 / -1;
}

.invoice-mobile-summary-row--copy .invoice-mobile-summary-value {
  grid-column: 1;
}

.invoice-mobile-summary-row--copy .invoice-mobile-copy-btn {
  grid-column: 2;
  grid-row: 2;
}

.invoice-mobile-summary .invoice-mobile-summary-badges {
  display: none;
}

.invoice-mobile-summary-row--amount .invoice-mobile-summary-amount {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.invoice-mobile-summary-muted {
  color: var(--muted);
  font-size: var(--doc-label-size);
}

.invoice-mobile-copy-btn {
  position: relative;
  flex-shrink: 0;
  justify-self: end;
  overflow: visible;
}

.invoice-mobile-copy-btn.parts-hit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--hit-min);
  height: var(--hit-min);
  transform: translate(-50%, -50%);
}

.invoice-mobile-summary-row--copy .invoice-mobile-summary-value {
  overflow-wrap: anywhere;
}

.invoice-mobile-toolbar {
  margin: var(--sp-3) 0;
}

.invoice-mobile-toolbar-row {
  margin: 0;
}

.invoice-mobile-doc-panel {
  margin: 0;
  border: 0;
}

.invoice-mobile-doc-summary {
  list-style: none;
  cursor: pointer;
}

.invoice-mobile-doc-summary::-webkit-details-marker {
  display: none;
}

.invoice-mobile-doc-body {
  margin-top: var(--sp-2);
}

@media (max-width: 639.98px) {
  .invoice-mobile-doc-panel .invoice-mobile-doc-summary {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--hit-min);
    margin: 0;
    padding: 0 var(--sp-4);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    color: var(--ink);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-control);
  }

  .invoice-mobile-doc-summary-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
  }

  .invoice-mobile-doc-panel:not([open]) .invoice-mobile-doc-summary-label--open {
    display: none;
  }

  .invoice-mobile-doc-panel[open] .invoice-mobile-doc-summary-label--closed {
    display: none;
  }

  .invoice-mobile-doc-panel[open] .invoice-mobile-doc-summary .ico {
    transform: rotate(180deg);
  }

  .invoice-mobile-doc-panel:not([open]) + .invoice-mobile-doc-body {
    display: none;
  }

  .invoice-mobile-doc-panel[open] + .invoice-mobile-doc-body {
    width: 100%;
    min-width: 0;
  }

  .invoice-mobile-doc-panel[open] + .invoice-mobile-doc-body .invoice-doc-scale-host {
    min-height: 1px;
  }
}

@media (min-width: 640px) {
  .invoice-doc-screen-wrap .invoice-mobile-summary,
  .invoice-doc-screen-wrap .invoice-mobile-toolbar,
  .invoice-doc-screen-wrap .invoice-mobile-doc-summary,
  .invoice-doc-screen-wrap .invoice-mobile-doc-panel {
    display: none;
  }

  .invoice-doc-screen-wrap .invoice-mobile-doc-body {
    display: block;
  }
}
