.printed-ecf.printed-template-webpos { font: 11px/1.25 "Courier New", Courier, monospace; color: #000; }
.printed-template-webpos .printed-header { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; border-bottom: 2px solid #000; padding-bottom: 8px; }
.printed-template-webpos .printed-company { display: block; }
.printed-template-webpos .printed-logo { display: block; width: auto; height: auto; max-width: min(290px, 100%); max-height: 85px; object-fit: contain; margin: 0 0 20px; }
.printed-template-webpos .printed-company h1,
.printed-template-webpos .printed-document h2 { font: bold 12px/1.25 "Courier New", monospace; }
.printed-template-webpos .printed-document { text-align: right; }
.printed-template-webpos .printed-company p,
.printed-template-webpos .printed-document p,
.printed-template-webpos .printed-buyer p,
.printed-template-webpos .printed-totals p { margin: 1px 0; }
.printed-template-webpos .printed-buyer { border-bottom: 2px solid #000; padding: 5px 0; }
.printed-template-webpos table.printed-items { width: 100%; margin-top: 7px; border-collapse: collapse; }
.printed-template-webpos .printed-items thead,
.printed-template-webpos .printed-items tbody { border-bottom: 2px solid #000; }
.printed-template-webpos .printed-items thead { border: 2px solid #000; }
.printed-template-webpos .printed-items th,
.printed-template-webpos .printed-items td { background: #fff; color: #000; padding: 4px; font-size: 10px; }
.printed-template-webpos > .printed-totals { margin: 6px 0 10px auto; width: min(100%, 330px); background: #fff; border: 0; padding: 0; }
.printed-template-webpos .printed-summary { display: grid; grid-template-columns: minmax(145px, 30%) minmax(0, 1fr); align-items: start; gap: 16px; padding-top: 8px; border-top: 2px solid #000; }
.printed-template-webpos .printed-summary .printed-additional-information { position: static; width: auto; margin: 0; border: 0; border-radius: 0; background: #fff; padding: 0; }
.printed-template-webpos .printed-additional-information-title { display: block; text-align: center; text-transform: uppercase; border: 2px solid #000; margin-bottom: 8px; }
.printed-template-webpos .printed-summary .printed-qr img { width: 145px; height: 145px; }

.printed-template-webpos .printed-items .webpos-item-code {
  width: 64px;
  max-width: 64px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.printed-ecf.printed-template-webpos table.printed-items { table-layout: fixed; }
.printed-ecf.printed-template-webpos .printed-items th:first-child,
.printed-ecf.printed-template-webpos .printed-items td:first-child {
  box-sizing: border-box;
  width: 52px !important;
  max-width: 52px !important;
  padding-inline: 3px;
  overflow-wrap: anywhere;
}
.printed-ecf.printed-template-webpos .printed-items th:nth-child(2) { width: 65px; }
.printed-ecf.printed-template-webpos .printed-items th:nth-child(n+4) { width: 12%; }

.printed-ecf.printed-template-webpos table.printed-items { table-layout: fixed !important; width: 100% !important; }
.printed-ecf.printed-template-webpos .printed-items col:nth-child(1) { width: 52px !important; }
.printed-ecf.printed-template-webpos .printed-items col:nth-child(2) { width: 65px !important; }
.printed-ecf.printed-template-webpos .printed-items col:nth-child(n+4) { width: 12% !important; }
.printed-ecf.printed-template-webpos .printed-items th:nth-child(3),
.printed-ecf.printed-template-webpos .printed-items td:nth-child(3) { width: auto !important; max-width: none !important; white-space: normal; }

.printed-ecf.printed-template-webpos .printed-document h2 { text-align: right !important; }
.printed-ecf.printed-template-webpos > .printed-totals {
  width: min(100%, 360px);
  font-variant-numeric: tabular-nums;
}
.printed-ecf.printed-template-webpos > .printed-totals p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 34%);
  gap: 22px;
  justify-items: end;
  align-items: baseline;
  text-align: right;
  text-transform: uppercase;
  padding-inline: 0;
}

.printed-ecf.printed-template-webpos .printed-document > h2,
.printed-ecf.printed-template-webpos .printed-document > p {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  text-align: right !important;
}

.printed-ecf.printed-template-webpos .printed-summary {
  display: grid !important;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  margin: 8px 0 0 !important;
  break-inside: avoid;
}
.printed-ecf.printed-template-webpos .printed-summary .printed-qr,
.printed-ecf.printed-template-webpos .printed-summary .printed-additional-information,
.printed-ecf.printed-template-webpos .printed-signature {
  position: static !important;
  inset: auto !important;
}
.printed-ecf.printed-template-webpos .printed-summary .printed-qr { justify-self: start; }
.printed-ecf.printed-template-webpos .printed-signature { margin: 10px 0 0 !important; }

.printed-ecf.printed-template-webpos > .printed-totals {
  display: grid !important;
  box-sizing: border-box; width: 100% !important; max-width: none !important; padding: 0 5px !important; grid-template-columns: minmax(0, 1fr) 12%;
  justify-content: end;
  column-gap: 0;
  row-gap: 2px;
}
.printed-ecf.printed-template-webpos > .printed-totals p { display: contents !important; }


.printed-ecf.printed-template-webpos > .printed-totals p > * { white-space: nowrap !important; justify-self: end; }
