/* Standalone print/preview rules: loaded after the base styles, shared by the editor, archive and formal renderer. */
@media screen {
  article.invoice-paper.packing-list-paper:not(.pdf-export-source) {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    display: block;
    padding-bottom: 20px;
  }
}
article.invoice-paper .paper-authorization:has(.stamp-box[data-document-seal]) {
  position: static;
  height: auto;
  max-height: none;
  overflow: visible;
  break-inside: avoid;
  page-break-inside: avoid;
}
article.invoice-paper .paper-authorization .stamp-box.has-stamp[data-document-seal] {
  position: static;
  inset: auto;
  transform: none;
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  break-inside: avoid;
  page-break-inside: avoid;
}
article.invoice-paper .paper-authorization .stamp-box[data-document-seal] img[data-seal-composite] {
  position: static;
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}
article.invoice-paper.packing-list-paper .paper-authorization:has(> .stamp-box[data-document-seal]:only-child) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0;
  row-gap: 2px;
  justify-items: center;
  padding: 5px 7px 5px 0;
}
article.invoice-paper.packing-list-paper .paper-authorization:has(> .stamp-box[data-document-seal]:only-child)::before {
  content: 'SELLER / VENDEDOR';
  grid-column: 2;
  grid-row: 1;
  color: #393e3b;
  font: 600 7px/1.2 Arial, sans-serif;
  letter-spacing: .04em;
}
article.invoice-paper.packing-list-paper .paper-authorization > .stamp-box[data-document-seal]:only-child {
  grid-column: 2;
  grid-row: 2;
}
@media print {
  article.invoice-paper:has(.stamp-box[data-document-seal]) { height: auto; max-height: none; aspect-ratio: auto; }
}
