.pdf-romaneio {
    --romaneio-gap: 2mm;
    --romaneio-card-padding-y: 2mm;
    --romaneio-card-padding-x: 2.4mm;
    --romaneio-row: 4.8mm;
    --romaneio-title-pad-y: 1.7mm;
    font-size: 7pt;
}

.pdf-romaneio .ep-page {
    height: 296mm;
    min-height: 296mm;
    padding-top: 5.5mm;
    padding-bottom: 17mm;
    overflow: hidden;
}

.pdf-romaneio .ep-page:has(.romaneio-items tbody tr:nth-child(9)) {
    --romaneio-gap: 1.6mm;
    --romaneio-card-padding-y: 1.7mm;
    --romaneio-card-padding-x: 2.1mm;
    --romaneio-row: 4.45mm;
    --romaneio-title-pad-y: 1.35mm;
}

.pdf-romaneio .ep-page:has(.romaneio-items tbody tr:nth-child(16)) {
    --romaneio-gap: 1.35mm;
    --romaneio-card-padding-y: 1.45mm;
    --romaneio-card-padding-x: 1.9mm;
    --romaneio-row: 3.75mm;
    --romaneio-title-pad-y: 1.1mm;
}

.pdf-romaneio .ep-header {
    grid-template-columns: 38mm minmax(0, 1fr) 58mm;
    gap: 4mm;
    min-height: 27mm;
    padding-bottom: 2.5mm;
}

.pdf-romaneio .ep-logo {
    height: 24mm;
    padding-right: 4mm;
}

.pdf-romaneio .ep-logo img {
    max-width: 34mm;
    max-height: 20mm;
}

.pdf-romaneio .ep-title h1 {
    margin-top: .4mm;
    font-size: 14.8pt;
    letter-spacing: 0;
}

.pdf-romaneio .ep-title > b {
    margin-top: .7mm;
    font-size: 12.7pt;
}

.pdf-romaneio .ep-meta {
    gap: 1.5mm;
    margin-top: 3.8mm;
}

.pdf-romaneio .ep-meta i,
.pdf-romaneio .ep-footer i {
    font-size: 10.5pt;
}

.pdf-romaneio .ep-meta small,
.pdf-romaneio .ep-meta strong {
    font-size: 5.6pt;
}

.pdf-romaneio .ep-total-card {
    grid-template-columns: 20mm 1fr;
    min-height: 25mm;
}

.pdf-romaneio .ep-total-label {
    gap: 1.2mm;
    font-size: 8.7pt;
}

.pdf-romaneio .ep-total-label i {
    font-size: 14pt;
}

.pdf-romaneio .ep-total-label span {
    text-align: center;
    line-height: 1.05;
}

.pdf-romaneio .ep-total-value {
    padding: 2.5mm;
}

.pdf-romaneio .ep-total-value > strong {
    font-size: 14.8pt;
}

.pdf-romaneio .ep-party-grid {
    gap: var(--romaneio-gap);
    margin: var(--romaneio-gap) 0;
}

.pdf-romaneio .ep-party-card,
.pdf-romaneio .ep-panel {
    min-height: auto;
    padding: var(--romaneio-card-padding-y) var(--romaneio-card-padding-x);
}

.pdf-romaneio .ep-party-card h2,
.pdf-romaneio .ep-items h2 {
    gap: 1.8mm;
    padding-top: var(--romaneio-title-pad-y);
    padding-bottom: 1.1mm;
    font-size: 7.4pt;
}

.pdf-romaneio .ep-party-card h2 {
    margin-bottom: 1.5mm;
    padding: 0;
}

.pdf-romaneio .ep-party-card h2 i {
    width: 6.7mm;
    height: 6.7mm;
    font-size: 10.5pt;
}

.pdf-romaneio .ep-party-card dl {
    grid-template-columns: 25mm minmax(0, 1fr);
    gap: .75mm 1.5mm;
}

.pdf-romaneio .ep-party-card dt,
.pdf-romaneio .ep-party-card dd {
    font-size: 6.4pt;
}

.pdf-romaneio .ep-items {
    margin-top: var(--romaneio-gap);
}

.pdf-romaneio .ep-items h2 i,
.pdf-romaneio .ep-conditions i {
    font-size: 10.5pt;
}

.pdf-romaneio .romaneio-transport {
    margin-bottom: var(--romaneio-gap);
}

.pdf-romaneio .romaneio-transport-panel {
    min-height: auto;
    padding: 1.4mm var(--romaneio-card-padding-x) 1.8mm;
    border: 0;
    border-top: 1px solid var(--ep-line);
    border-radius: 0;
}

.pdf-romaneio .romaneio-transport .ep-conditions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75mm 3.2mm;
}

.pdf-romaneio .romaneio-transport .ep-conditions li {
    margin-bottom: 0;
}

.pdf-romaneio .romaneio-items table {
    table-layout: fixed;
}

.pdf-romaneio .romaneio-items th {
    height: 5.2mm;
    padding: .45mm .8mm;
    font-size: 5.15pt;
    line-height: 1.08;
}

.pdf-romaneio .ep-page:has(.romaneio-items tbody tr:nth-child(16)) .romaneio-items th {
    height: 4.6mm;
    padding: .3mm .65mm;
}

.pdf-romaneio .romaneio-items td {
    height: var(--romaneio-row);
    max-height: var(--romaneio-row);
    padding: .18mm .7mm;
    font-size: 5.25pt;
}

.pdf-romaneio .ep-page:has(.romaneio-items tbody tr:nth-child(16)) .romaneio-items td {
    padding: .08mm .55mm;
    font-size: 5.05pt;
}

.pdf-romaneio .romaneio-items th:nth-child(1),
.pdf-romaneio .romaneio-items td:nth-child(1) {
    width: 9mm;
}

.pdf-romaneio .romaneio-items th:nth-child(2),
.pdf-romaneio .romaneio-items td:nth-child(2) {
    width: auto;
    text-align: left;
}

.pdf-romaneio .romaneio-items th:nth-child(3),
.pdf-romaneio .romaneio-items td:nth-child(3) {
    width: 20mm;
}

.pdf-romaneio .romaneio-items th:nth-child(4),
.pdf-romaneio .romaneio-items td:nth-child(4) {
    width: 12mm;
}

.pdf-romaneio .romaneio-items th:nth-child(5),
.pdf-romaneio .romaneio-items td:nth-child(5) {
    width: 14mm;
}

.pdf-romaneio .romaneio-items th:nth-child(6),
.pdf-romaneio .romaneio-items td:nth-child(6) {
    width: 17mm;
}

.pdf-romaneio .romaneio-items th:nth-child(7),
.pdf-romaneio .romaneio-items td:nth-child(7) {
    width: 18mm;
}

.pdf-romaneio .romaneio-items th:nth-child(8),
.pdf-romaneio .romaneio-items td:nth-child(8) {
    width: 24mm;
}

.pdf-romaneio .romaneio-items td:nth-child(2) strong {
    font-size: 5.7pt;
    letter-spacing: 0;
}

.pdf-romaneio .romaneio-items td:nth-child(2) small {
    font-size: 4.7pt;
}

.pdf-romaneio .ep-bottom-grid {
    grid-template-columns: 43mm 1fr;
    gap: var(--romaneio-gap);
}

.pdf-romaneio .ep-bottom-grid > .ep-panel:first-child {
    min-height: 24mm;
    padding: 2.2mm 2.8mm;
}

.pdf-romaneio .ep-bottom-grid > .ep-panel:first-child h3 {
    font-size: 7.4pt;
}

.pdf-romaneio .ep-bottom-grid > .ep-panel:first-child .ep-conditions li {
    grid-template-columns: 4.8mm 1fr;
    gap: 1mm;
    margin-bottom: .9mm;
}

.pdf-romaneio .ep-bottom-grid > .ep-panel:first-child .ep-conditions i {
    font-size: 11.6pt;
}

.pdf-romaneio .ep-bottom-grid > .ep-panel:first-child .ep-conditions p {
    font-size: 5.9pt;
}

.pdf-romaneio .ep-closing {
    position: absolute;
    left: 7mm;
    right: 7mm;
    bottom: 17mm;
    margin-top: 0;
}

.pdf-romaneio .ep-footer {
    position: absolute;
    left: 7mm;
    right: 7mm;
    bottom: 0;
    min-height: 15mm;
    padding-top: 2mm;
    padding-bottom: 1.6mm;
}

.pdf-romaneio .romaneio-signature {
    min-height: 24mm;
}

.pdf-romaneio .romaneio-signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm;
}

.pdf-romaneio .romaneio-signature-side + .romaneio-signature-side {
    padding-left: 3mm;
    border-left: 1px solid var(--ep-line);
}

.pdf-romaneio .romaneio-signature .ep-notes p {
    margin: 0 0 .45mm;
    font-size: 5.6pt;
}

.pdf-romaneio .romaneio-signature .ep-notes span {
    height: 4.5mm;
    margin-bottom: .85mm;
}

.pdf-romaneio .ep-panel h3,
.pdf-romaneio .ep-payment h3,
.pdf-romaneio .ep-social h3 {
    margin-bottom: 1.4mm;
    font-size: 7pt;
}

.pdf-romaneio .ep-panel h3::after,
.pdf-romaneio .ep-payment h3::after,
.pdf-romaneio .ep-social h3::after {
    margin-top: .65mm;
}

.pdf-romaneio .ep-conditions li {
    grid-template-columns: 4.2mm 1fr;
    gap: .8mm;
    margin-bottom: .65mm;
}

.pdf-romaneio .ep-conditions p {
    font-size: 5.6pt;
}

.pdf-romaneio .romaneio-documents .ep-payment-content {
    grid-template-columns: 19mm 1fr;
    gap: 2mm;
}

.pdf-romaneio .romaneio-documents #pdf-romaneio-qrcode canvas,
.pdf-romaneio .romaneio-documents #pdf-romaneio-qrcode img {
    width: 18.5mm !important;
    height: 18.5mm !important;
}

.pdf-romaneio .romaneio-documents .ep-payment-content p {
    font-size: 5.25pt;
}

.pdf-romaneio .romaneio-documents .ep-payment-content span {
    padding: .65mm 1.8mm;
    font-size: 5.1pt;
}

.pdf-romaneio .ep-approval-row {
    grid-template-columns: 82mm 1fr;
    gap: var(--romaneio-gap);
    min-height: 27mm;
    margin-top: var(--romaneio-gap);
}

.pdf-romaneio .ep-social .ep-panel {
    width: 100%;
    min-height: 18mm !important;
    padding: 1.7mm 2.4mm !important;
}

.pdf-romaneio .ep-social .ep-notes > span {
    height: 4.5mm;
}

.pdf-romaneio .ep-footer p {
    font-size: 5.4pt;
}

.pdf-romaneio .ep-footer b {
    font-size: 5.1pt;
}

.pdf-container.pdf-exporting.pdf-romaneio {
    width: 210mm;
    max-width: 210mm;
    min-height: 296mm;
}

@media print {
    .pdf-romaneio,
    .pdf-romaneio .ep-page {
        width: 210mm !important;
        min-height: 296mm !important;
    }
}
