/* Impressao: somente o documento (recibo ou espelho), em A4, sem navegacao,
   botoes ou rodape de produtos. */

@page {
    size: A4 portrait;
    margin: 12mm;
}

html,
body {
    background: #fff !important;
    color: #000;
    min-height: 0;
    display: block;
}

.site-header,
.site-footer,
.skip-link,
.js-required-banner,
.page-head,
.form-panel,
.preview-head,
.preview-actions,
.device-hint,
.action-bar,
.toast-region,
dialog,
.guide,
.ad-slot,
.adsbygoogle,
.tool-toolbar {
    display: none !important;
}

.site-main {
    padding: 0;
}

.container,
.tool-layout {
    display: block;
    max-width: none;
    padding: 0;
    margin: 0;
}

.panel,
.preview-panel,
.report-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
}

.preview-scroll {
    background: transparent;
    padding: 0;
    overflow: visible;
    border-radius: 0;
}

* {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Recibo */
.receipt-sheet {
    gap: 0;
}

.receipt {
    box-shadow: none;
    border-radius: 0;
    font-size: 10.5pt;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 9mm 10mm;
}

.copies-2 .receipt {
    height: 132mm;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 9.5pt;
    padding: 6mm 8mm;
}

.copies-2 .receipt .receipt-disclaimer {
    margin-top: auto;
}

.copies-2 .receipt + .receipt {
    margin-top: 9mm;
}

.copies-2 .receipt + .receipt::before {
    top: -4.5mm;
    border-top: 1px dashed #9ca3af;
    line-height: 0;
    padding-top: 0;
    font-size: 7pt;
}

.receipt-place {
    margin: 8mm 0 14mm;
}

.copies-2 .receipt-place {
    margin: 4mm 0 9mm;
}

/* Espelho */
.report-sheet {
    box-shadow: none;
    padding: 0;
    min-width: 0;
    font-size: 8.5pt;
}

.report-table thead {
    display: table-header-group;
}

.report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-table th,
.report-table td {
    padding: 1.2mm 1.5mm;
}

.report-totals,
.report-criteria,
.report-signatures {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-signatures {
    margin-top: 14mm;
}
