.pdf-container { --navy:#082d68; --blue:#075ad7; --soft:#f4f8ff; --line:#d9e2ef; --text:#172033; --muted:#64748b; width:210mm; min-height:297mm; margin:0 auto; padding:10mm; box-sizing:border-box; background:#fff; color:var(--text); font:8.4pt/1.35 Inter,Arial,sans-serif; }
.pdf-container a { color:inherit; text-decoration:none; }
.pdf-container a:hover { text-decoration:underline; }
.pdf-modern-header { display:grid; grid-template-columns:1fr 55mm; gap:8mm; align-items:start; margin-bottom:5mm; }
.pdf-company-hero { display:flex; gap:4mm; min-width:0; }
.pdf-logo-box { width:18mm; height:18mm; flex:0 0 auto; border-radius:4mm; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,var(--blue),var(--navy)); color:#fff; font-size:20pt; font-weight:850; }
.pdf-logo-box img { width:100%; height:100%; object-fit:contain; background:#fff; display:block; }
.pdf-company-hero.logo-only { align-items:center; }
.pdf-company-hero.logo-only .pdf-logo-box { border-radius:0; background:transparent; }
.pdf-company-hero.logo-only .pdf-logo-box img { background:transparent; }
.pdf-company-copy h1 { margin:0; color:var(--navy); font-size:18pt; line-height:1.05; text-transform:uppercase; letter-spacing:-.02em; }
.pdf-company-slogan { margin:2mm 0; color:var(--blue); font-size:9pt; }
.pdf-contact-lines { display:flex; flex-wrap:wrap; gap:1mm 4mm; color:var(--text); font-size:7.8pt; }
.pdf-quote-hero { text-align:center; }
.pdf-quote-label { display:block; color:var(--navy); font-size:13pt; font-weight:850; }
.pdf-quote-hero > strong { display:block; margin:2mm 0; padding:2mm; border-radius:2mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); font-size:14pt; }
.pdf-status { display:inline-block; min-width:36mm; padding:1.7mm 3mm; border:1px solid; border-radius:2mm; font-weight:850; letter-spacing:.04em; }
.pdf-status.status-pendente { color:#d58a00; border-color:#f4bd45; background:#fffaf0; }.pdf-status.status-aprovado { color:#148044; border-color:#78d59e; background:#effcf4; }.pdf-status.status-vencido,.pdf-status.status-cancelado { color:#c33131; border-color:#f3a6a6; background:#fff3f3; }
.pdf-quote-hero small { display:block; margin-top:1mm; color:var(--muted); }

.pdf-top-cards { display:grid; grid-template-columns:1.3fr .8fr 1fr; gap:4mm; margin-bottom:4mm; }
.pdf-summary-card { min-height:22mm; padding:4mm; border:1px solid var(--line); border-radius:3mm; background:#fff; box-sizing:border-box; }
.pdf-summary-card span,.pdf-meta-card span { display:block; color:var(--blue); font-size:7pt; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.pdf-summary-card strong { display:block; margin-top:1.4mm; color:var(--text); font-size:11.5pt; }.pdf-summary-card.highlight strong { font-size:15pt; }
.pdf-summary-card small { display:block; margin-top:.7mm; color:var(--muted); }
.pdf-commercial-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:2.5mm; margin-bottom:5mm; }
.pdf-meta-card { padding:2.5mm 3mm; border-radius:2.5mm; background:var(--soft); border:1px solid var(--line); }
.pdf-meta-card strong { display:block; margin-top:1mm; color:var(--text); font-size:8pt; overflow-wrap:anywhere; }

.pdf-party-grid { display:grid; grid-template-columns:1fr 1fr; gap:4mm; margin-bottom:5mm; }
.pdf-party-card,.pdf-detail-card,.pdf-pix-card,.pdf-accept-card,.pdf-contact-card { border:1px solid var(--line); border-radius:3mm; overflow:hidden; break-inside:avoid; }
.pdf-party-card { padding:4mm; min-height:36mm; box-sizing:border-box; }
.pdf-party-card h3,.pdf-detail-card h3,.pdf-pix-card h3,.pdf-accept-card h3,.pdf-contact-card h3 { margin:-4mm -4mm 3mm; padding:2.5mm 4mm; border-bottom:1px solid var(--line); color:var(--navy); font-size:8.2pt; text-transform:uppercase; }
.pdf-party-card > strong { display:block; margin-bottom:1.5mm; color:var(--text); font-size:9.5pt; text-transform:uppercase; }.pdf-party-card p { margin:0 0 .8mm; }.pdf-blue-text { color:var(--blue); }
.pdf-section-heading { margin:2mm 0; color:var(--navy); }.pdf-section-heading span { display:block; font-size:9pt; font-weight:850; text-transform:uppercase; }.pdf-section-heading small { color:var(--muted); }

.pdf-items-block { width:100%; max-width:100%; margin-bottom:2mm; box-sizing:border-box; }
.pdf-items-table { width:100%; border-collapse:collapse; table-layout:fixed; border:1px solid var(--line); margin:0; }
.pdf-items-table thead { display:table-header-group; }.pdf-items-table tr { break-inside:avoid; page-break-inside:avoid; }
.pdf-items-table th { padding:1.6mm 1.2mm; background:linear-gradient(90deg,var(--navy),var(--blue)); color:#fff; font-size:6.3pt; text-align:center; text-transform:uppercase; }
.pdf-items-table th:nth-child(1){width:5mm}.pdf-items-table th:nth-child(2){width:65mm;text-align:left}.pdf-items-table th:nth-child(3){width:18mm}.pdf-items-table th:nth-child(4){width:12mm}.pdf-items-table th:nth-child(5){width:13mm}.pdf-items-table th:nth-child(6){width:20mm}.pdf-items-table th:nth-child(7){width:17mm}.pdf-items-table th:nth-child(8){width:22mm}
.pdf-items-table td { padding:1.7mm 1.2mm; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:center; vertical-align:middle; font-size:7.1pt; overflow-wrap:anywhere; }.pdf-items-table td:nth-child(2){text-align:left}.pdf-items-table tbody tr:nth-child(even){background:var(--subtle)}
.pdf-product-cell { display:flex; align-items:center; gap:1.8mm; }.pdf-product-cell img,.pdf-product-placeholder { width:9mm; height:9mm; flex:0 0 auto; border-radius:1.5mm; object-fit:contain; background:var(--soft); border:1px solid var(--line); }.pdf-product-placeholder { display:grid; place-items:center; color:var(--blue); }.pdf-product-placeholder.service { color:var(--blue); background:var(--soft); border-color:var(--line); }.pdf-product-placeholder svg { width:5mm; height:5mm; display:block; fill:currentColor; }
.pdf-product-cell strong { display:block; font-size:7.8pt; }.pdf-product-cell small { display:block; margin-top:.35mm; color:var(--muted); font-size:6.2pt; line-height:1.18; }
.pdf-items-note { padding:1.6mm 2.5mm; margin-bottom:3mm; background:var(--soft); color:var(--blue); border-radius:1.5mm; font-size:7pt; }.pdf-empty-row { padding:8mm!important; color:var(--muted); }

.pdf-three-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3mm; margin-bottom:3mm; align-items:stretch; break-inside:avoid; page-break-inside:avoid; }
.pdf-details-page-break { display:none; height:0; }
.pdf-detail-card { width:100%; padding:3.4mm; min-height:38mm; box-sizing:border-box; break-inside:avoid; page-break-inside:avoid; }.pdf-detail-card ul { list-style:none; padding:0; margin:0; }.pdf-detail-card li { position:relative; padding:0 0 1.1mm 3.5mm; font-size:7.1pt; }.pdf-detail-card li::before { content:'✓'; position:absolute; left:0; color:var(--blue); font-weight:850; }
.pdf-finance-row { display:flex; justify-content:space-between; gap:2mm; padding:1.5mm 0; border-bottom:1px dashed var(--line); }.pdf-finance-row.discount { color:#dc2626; }.pdf-financial-total { display:flex; justify-content:space-between; align-items:center; gap:2mm; margin:3mm -4mm -4mm; padding:3mm 4mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); text-transform:uppercase; }.pdf-financial-total strong { font-size:11.5pt; }

.pdf-approval-grid,.pdf-approval-grid.without-pix { display:flex; flex-direction:column; gap:3mm; }
.pdf-final-page { display:block; }
.pdf-approval-contact-row { display:grid; grid-template-columns:minmax(0,1fr) 52mm; gap:3mm; align-items:stretch; break-inside:avoid; page-break-inside:avoid; }
.pdf-pix-card,.pdf-accept-card,.pdf-contact-card { width:100%; padding:4mm; box-sizing:border-box; min-height:0; break-inside:avoid; page-break-inside:avoid; }.pdf-pix-content { display:flex; align-items:center; gap:4mm; }.pdf-pix-content canvas,.pdf-pix-content img { width:30mm!important; height:30mm!important; }.pdf-pix-content strong,.pdf-pix-content span { display:block; }.pdf-pix-content span { margin-top:1mm; color:var(--muted); font-size:6.5pt; overflow-wrap:anywhere; }
.pdf-accept-card p { margin:0 0 3mm; color:var(--muted); }.pdf-accept-lines { display:grid; gap:3mm; }.pdf-approve-button { margin-top:3mm; padding:2mm; border:1px solid var(--blue); border-radius:2mm; color:var(--blue); text-align:center; font-weight:800; }
.pdf-contact-card { color:#fff; background:linear-gradient(145deg,var(--navy),var(--blue)); border:0; }.pdf-contact-card h3 { color:#fff; border-color:rgba(255,255,255,.25); }.pdf-contact-card p { color:var(--contact-soft); }.pdf-contact-card span { display:block; margin-top:2mm; }
.pdf-modern-footer { --pdf-base-margin:4mm; display:flex; flex-direction:column; align-items:center; margin-top:4mm; padding-top:3mm; border-top:1px solid var(--blue); color:var(--navy); }.pdf-modern-footer span { color:var(--muted); font-size:7pt; }

.pdf-container.pdf-exporting { width:190mm; max-width:190mm; min-height:277mm; padding:0; margin:0; box-shadow:none; }
.pdf-container.pdf-exporting.pdf-executivo,
.pdf-container.pdf-exporting.pdf-detalhado-premium { width:210mm; max-width:210mm; min-height:297mm; padding:0; }
.pdf-container.pdf-exporting.pdf-executivo { padding:10mm; }
.pdf-container.pdf-exporting .pdf-details-page-break { display:none; height:0; }
.pdf-container.pdf-exporting .pdf-three-columns { padding-top:0; }
.pdf-container.pdf-exporting.pdf-tecnico .pdf-items-block,
.pdf-container.pdf-exporting.pdf-tecnico .pdf-items-table { break-inside:avoid; page-break-inside:avoid; }
.pdf-container.pdf-exporting .pdf-three-columns,
.pdf-container.pdf-exporting .tpl-bottom-grid,
.pdf-container.pdf-exporting .tpl-benefits,
.pdf-container.pdf-exporting .tpl-final { break-inside:avoid; page-break-inside:avoid; }
.pdf-container.pdf-exporting .pdf-three-columns { align-items:stretch; }
.pdf-container.pdf-exporting .pdf-three-columns .pdf-detail-card { min-height:38mm; height:42mm; display:flex; flex-direction:column; }
.pdf-container.pdf-exporting .pdf-three-columns .pdf-financial-card .pdf-financial-total { margin-top:auto; }
.pdf-container.pdf-exporting.pdf-minimalista .tpl-items-block,
.pdf-container.pdf-exporting.pdf-executivo .tpl-items-block,
.pdf-container.pdf-exporting.pdf-minimalista .tpl-items,
.pdf-container.pdf-exporting.pdf-executivo .tpl-items,
.pdf-container.pdf-exporting.pdf-minimalista .tpl-bottom-grid,
.pdf-container.pdf-exporting.pdf-executivo .tpl-bottom-grid,
.pdf-container.pdf-exporting.pdf-minimalista .tpl-benefits,
.pdf-container.pdf-exporting.pdf-executivo .tpl-benefits,
.pdf-container.pdf-exporting.pdf-minimalista .tpl-final,
.pdf-container.pdf-exporting.pdf-executivo .tpl-final { break-inside:avoid; page-break-inside:avoid; }
.pdf-container.pdf-exporting .pdf-keep-final-together { break-inside:avoid; page-break-inside:avoid; }
.pdf-container.pdf-exporting .pdf-force-page-before { break-before:page; page-break-before:always; padding-top:6mm; }
.pdf-container.pdf-exporting .tpl-bottom-grid.pdf-force-page-before,
.pdf-container.pdf-exporting .tpl-benefits.pdf-force-page-before,
.pdf-container.pdf-exporting .tpl-final.pdf-force-page-before { break-before:page; page-break-before:always; padding-top:8mm!important; }
.pdf-container.pdf-exporting.pdf-executivo .pdf-force-page-before { padding-top:10mm; }
.pdf-container.pdf-exporting .pdf-page-top-spacing { padding-top:6mm; }
.pdf-container.pdf-exporting.pdf-executivo .pdf-page-top-spacing { padding-top:10mm; }
.pdf-container.pdf-exporting.pdf-executivo .exec-hero { margin:-10mm -10mm 6mm; padding:10mm; }

.pdf-detalhado-premium { --blue:#c8102e; --navy:#101820; --soft:#f6f7f9; --line:#d7dbe2; --subtle:#f3f4f6; width:210mm; min-height:297mm; padding:0; background:#fff; color:#111827; font:8.6pt/1.3 Inter,Arial,sans-serif; }
.pdf-detailed-page { position:relative; width:210mm; min-height:297mm; padding:8mm 8mm 0; box-sizing:border-box; background:#fff; break-inside:avoid; page-break-inside:avoid; }
.pdf-detailed-page-break { break-before:page; page-break-before:always; }
.pdf-premium-header { display:grid; grid-template-columns:52mm 1fr 56mm; gap:6mm; align-items:start; padding-bottom:5mm; border-bottom:1mm solid var(--blue); }
.pdf-premium-logo { min-height:30mm; display:flex; align-items:center; border-right:1px solid var(--line); padding-right:6mm; }
.pdf-premium-logo img { max-width:48mm; max-height:28mm; object-fit:contain; display:block; }
.pdf-premium-logo strong { color:var(--blue); font-size:18pt; text-transform:uppercase; }
.pdf-premium-title h1 { margin:0 0 2mm; color:#111827; font-size:19pt; line-height:1; text-transform:uppercase; }
.pdf-premium-title > strong { display:block; margin-bottom:7mm; color:var(--blue); font-size:17pt; letter-spacing:.04em; }
.pdf-premium-meta { display:grid; grid-template-columns:repeat(3,max-content); gap:8mm; align-items:center; color:#111827; font-size:7.2pt; }
.pdf-premium-meta i { color:var(--blue); font-size:12pt; vertical-align:middle; margin-right:1mm; }
.pdf-premium-meta b { font-size:7.5pt; }
.pdf-premium-total { min-height:31mm; padding:4mm 5mm; border-radius:2mm; color:#fff; text-align:center; background:linear-gradient(135deg,var(--blue),var(--navy)); box-shadow:0 2mm 7mm rgba(15,23,42,.22); box-sizing:border-box; }
.pdf-premium-total span { display:block; text-transform:uppercase; font-weight:850; }
.pdf-premium-total strong { display:block; margin:3mm 0; padding-bottom:3mm; border-bottom:1px solid rgba(255,255,255,.75); font-size:18pt; line-height:1; }
.pdf-premium-total small { display:block; font-weight:800; line-height:1.35; }
.pdf-info-grid-premium { display:grid; grid-template-columns:1fr 1.08fr; gap:5mm; margin:7mm 0 5mm; }
.pdf-premium-card { position:relative; padding:4mm 4mm 4mm 5mm; border:1px solid var(--line); border-radius:2mm; background:#fff; box-shadow:0 1.5mm 5mm rgba(15,23,42,.12); box-sizing:border-box; }
.pdf-premium-card h2 { display:flex; align-items:center; gap:2.5mm; margin:0 0 4mm; color:var(--blue); font-size:10pt; text-transform:uppercase; }
.pdf-premium-card h2 i { display:grid; place-items:center; width:10mm; height:10mm; border-radius:50%; color:#fff; background:var(--blue); font-size:15pt; }
.pdf-premium-card dl { display:grid; grid-template-columns:28mm 1fr; gap:1.8mm 3mm; margin:0; }
.pdf-premium-card dt { font-weight:850; color:#111827; }
.pdf-premium-card dd { margin:0; color:#111827; overflow-wrap:anywhere; }
.pdf-premium-items { margin-top:5mm; }
.pdf-items-ribbon { display:inline-block; min-width:60mm; padding:2.4mm 5mm; color:#fff; background:linear-gradient(90deg,var(--blue),var(--navy)); border-radius:2mm 2mm 0 0; font-size:9pt; font-weight:850; text-transform:uppercase; }
.pdf-premium-items table { width:100%; border-collapse:collapse; table-layout:fixed; border:1px solid var(--line); box-shadow:0 1mm 4mm rgba(15,23,42,.08); }
.pdf-premium-items thead { display:table-header-group; }
.pdf-premium-items th { height:8mm; padding:1.4mm 1mm; color:#fff; background:var(--navy); border-right:1px solid rgba(255,255,255,.2); text-align:center; font-size:6.8pt; text-transform:uppercase; }
.pdf-premium-items th:nth-child(1){width:11mm}.pdf-premium-items th:nth-child(2){width:22mm}.pdf-premium-items th:nth-child(3){width:auto;text-align:left}.pdf-premium-items th:nth-child(4){width:15mm}.pdf-premium-items th:nth-child(5){width:16mm}.pdf-premium-items th:nth-child(6){width:28mm}.pdf-premium-items th:nth-child(7){width:30mm}
.pdf-premium-items tbody tr { height:11mm; max-height:11mm; break-inside:avoid; page-break-inside:avoid; }
.pdf-premium-items tbody tr:nth-child(even) { background:var(--subtle); }
.pdf-premium-items td { height:11mm; max-height:11mm; padding:1mm 1.2mm; border-right:1px solid var(--line); border-bottom:1px solid var(--line); text-align:center; vertical-align:middle; overflow:hidden; }
.pdf-premium-items td:nth-child(1) { color:var(--blue); font-weight:850; }
.pdf-premium-items td:nth-child(3) { text-align:left; }
.pdf-premium-items td:nth-child(3) strong { display:block; font-size:7.4pt; text-transform:uppercase; }
.pdf-premium-items td:nth-child(3) small { display:block; color:#6b7280; font-size:6.1pt; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pdf-premium-photo { display:grid; place-items:center; width:17mm; height:9mm; margin:0 auto; overflow:hidden; border:1px solid var(--line); border-radius:1.5mm; background:#fff; }
.pdf-premium-photo img, .pdf-premium-photo svg { max-width:100%; max-height:100%; object-fit:contain; }
.pdf-premium-empty-row td { color:transparent!important; }
.pdf-more-items-note { margin:2mm 0 3mm; color:#4b5563; font-size:7pt; }
.pdf-fixed-after-table { display:grid; grid-template-columns:1fr 1fr 1fr; gap:4mm; margin-top:5mm; }
.pdf-premium-panel { min-height:41mm; padding:0 4mm 4mm; border:1px solid var(--line); border-radius:2mm; background:#fff; box-shadow:0 1.5mm 5mm rgba(15,23,42,.1); box-sizing:border-box; overflow:hidden; }
.pdf-premium-panel h3 { margin:0 -4mm 3mm; padding:2.8mm 4mm; color:#fff; background:linear-gradient(90deg,var(--blue),var(--navy)); font-size:8.4pt; text-transform:uppercase; }
.pdf-premium-finance .pdf-finance-row { padding:1.2mm 0; font-size:7.4pt; }
.pdf-premium-grand-total { display:flex; justify-content:space-between; align-items:center; margin:3mm -4mm -4mm; padding:3mm 4mm; color:var(--blue); background:#fff; border-top:1px dashed var(--line); font-size:12pt; font-weight:900; text-transform:uppercase; }
.pdf-premium-checks { list-style:none; margin:0; padding:0; }
.pdf-premium-checks li { position:relative; padding:0 0 1.5mm 5mm; }
.pdf-premium-checks li::before { content:'✓'; position:absolute; left:0; top:.1mm; display:grid; place-items:center; width:3.2mm; height:3.2mm; border-radius:50%; color:#fff; background:var(--blue); font-size:6pt; font-weight:850; }
.pdf-premium-notes p { min-height:8mm; margin:0 0 2mm; color:#374151; }
.pdf-premium-notes span { display:block; height:7mm; border-bottom:1px solid var(--line); }
.pdf-payment-signature-row { display:grid; grid-template-columns:118mm 1fr; gap:8mm; margin-top:6mm; align-items:start; }
.pdf-payment-signature-row > .pdf-premium-pix:only-child { grid-column:1 / -1; }
.pdf-premium-pix h3, .pdf-premium-social h3 { margin:0 0 2mm; color:var(--blue); font-size:9pt; text-transform:uppercase; }
.pdf-premium-pix-content { display:grid; grid-template-columns:28mm 1fr; gap:5mm; align-items:center; }
.pdf-premium-pix-content canvas, .pdf-premium-pix-content img { width:27mm!important; height:27mm!important; }
.pdf-premium-pix-content p { margin:.5mm 0; }
.pdf-premium-pix-content span { display:inline-block; margin-top:1.5mm; padding:1.8mm 4mm; border-radius:1.5mm; color:#fff; background:var(--blue); font-size:7pt; font-weight:850; }
.pdf-premium-social { display:flex; flex-direction:column; justify-content:flex-start; min-height:100%; }
.pdf-premium-social-hint { margin:-.8mm 0 .8mm; color:#6b7280; font-size:5.4pt; line-height:1.2; }
.pdf-premium-social-item { display:grid; grid-template-columns:5.5mm 1fr; gap:2mm; align-items:center; margin-top:2mm; }
.pdf-premium-social-item i { color:var(--blue); font-size:13pt; line-height:1; }
.pdf-premium-social-item p { margin:0; color:#111827; font-size:7.4pt; white-space:nowrap; }
.pdf-premium-social-item span,
.pdf-premium-social-item small { display:inline; margin-top:0; }
.pdf-premium-footer { position:absolute; left:0; right:0; bottom:0; min-height:15mm; padding:1.2mm 8mm .7mm; color:var(--navy); background:#fff; border-top:.25mm solid var(--blue); border-bottom:1px solid #d9dde3; box-sizing:border-box; font-size:6.6pt; }
.pdf-premium-footer-contacts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5mm; align-items:center; padding-bottom:.7mm; }
.pdf-premium-footer-item { display:flex; align-items:center; gap:2.5mm; min-width:0; }
.pdf-premium-footer-item p { min-width:0; margin:0; line-height:1.25; }
.pdf-premium-footer-item b { display:block; margin-bottom:.3mm; color:var(--blue); font-size:5.8pt; text-transform:uppercase; }
.pdf-premium-footer-item span { display:block; overflow-wrap:anywhere; }
.pdf-premium-footer-phone { justify-content:center; }
.pdf-premium-footer-email { justify-content:flex-end; }
.pdf-premium-footer i { color:var(--blue); font-size:13pt; flex:0 0 auto; }
.pdf-premium-footer-generated { padding-top:.5mm; color:#6b7280; text-align:center; font-size:4.8pt; }

/* Modelo detalhado completo: composicao compacta para uma unica folha A4. */
.pdf-detailed-single-page { min-height:296mm; font-size:7.5pt; }
.pdf-container.pdf-exporting.pdf-detailed-single-page { min-height:296mm; }
.pdf-detailed-single-page .pdf-detailed-page { min-height:296mm; padding:6mm 7mm 0; isolation:isolate; }
.pdf-detailed-single-page .pdf-detailed-watermark { position:absolute; left:50%; top:51%; z-index:0; width:118mm; height:86mm; display:grid; place-items:center; transform:translate(-50%,-50%); opacity:.1; pointer-events:none; }
.pdf-detailed-single-page .pdf-detailed-watermark img { display:block; max-width:100%; max-height:100%; object-fit:contain; filter:grayscale(1); }
.pdf-detailed-single-page .pdf-premium-header,
.pdf-detailed-single-page .pdf-info-grid-premium,
.pdf-detailed-single-page .pdf-premium-items,
.pdf-detailed-single-page .pdf-more-items-note,
.pdf-detailed-single-page .pdf-detailed-closing,
.pdf-detailed-single-page .pdf-premium-footer { z-index:1; }
.pdf-detailed-single-page .pdf-premium-header,
.pdf-detailed-single-page .pdf-info-grid-premium,
.pdf-detailed-single-page .pdf-premium-items,
.pdf-detailed-single-page .pdf-more-items-note { position:relative; }
.pdf-detailed-single-page .pdf-premium-header { grid-template-columns:46mm 1fr 52mm; gap:4mm; padding-bottom:3mm; }
.pdf-detailed-single-page .pdf-premium-logo { min-height:24mm; padding-right:4mm; }
.pdf-detailed-single-page .pdf-premium-logo img { max-width:42mm; max-height:22mm; }
.pdf-detailed-single-page .pdf-premium-title h1 { margin-bottom:1mm; font-size:15pt; }
.pdf-detailed-single-page .pdf-premium-title > strong { margin-bottom:3mm; font-size:13pt; }
.pdf-detailed-single-page .pdf-premium-meta { gap:4mm; font-size:6.2pt; }
.pdf-detailed-single-page .pdf-premium-meta i { font-size:9pt; }
.pdf-detailed-single-page .pdf-premium-meta b { font-size:6.5pt; }
.pdf-detailed-single-page .pdf-premium-total { min-height:24mm; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:2.5mm 3mm; }
.pdf-detailed-single-page .pdf-premium-total strong { margin:1.5mm 0 0; padding-bottom:0; border-bottom:0; font-size:14pt; }
.pdf-detailed-single-page .pdf-premium-total small { font-size:6.2pt; line-height:1.2; }
.pdf-detailed-single-page .pdf-info-grid-premium { gap:3mm; margin:3mm 0 2mm; }
.pdf-detailed-single-page .pdf-premium-card { padding:2.5mm 3mm; }
.pdf-detailed-single-page .pdf-premium-card h2 { gap:1.5mm; margin-bottom:2mm; font-size:8pt; }
.pdf-detailed-single-page .pdf-premium-card h2 i { width:7mm; height:7mm; font-size:10pt; }
.pdf-detailed-single-page .pdf-premium-card dl { grid-template-columns:23mm 1fr; gap:.8mm 2mm; }
.pdf-detailed-single-page .pdf-premium-items { margin-top:2mm; }
.pdf-detailed-single-page .pdf-items-ribbon { min-width:52mm; padding:1.6mm 4mm; font-size:7.5pt; }
.pdf-detailed-single-page .pdf-premium-items th { height:5.5mm; padding:.8mm; font-size:6pt; }
.pdf-detailed-single-page .pdf-premium-items th:nth-child(1){width:10mm}
.pdf-detailed-single-page .pdf-premium-items th:nth-child(2){width:auto;text-align:left}
.pdf-detailed-single-page .pdf-premium-items th:nth-child(3){width:14mm}
.pdf-detailed-single-page .pdf-premium-items th:nth-child(4){width:14mm}
.pdf-detailed-single-page .pdf-premium-items th:nth-child(5){width:27mm}
.pdf-detailed-single-page .pdf-premium-items th:nth-child(6){width:29mm}
.pdf-detailed-single-page .pdf-premium-items tbody tr,
.pdf-detailed-single-page .pdf-premium-items td { height:7mm; max-height:7mm; }
.pdf-detailed-single-page .pdf-premium-items tbody tr:nth-child(odd) { background:rgba(255,255,255,.62); }
.pdf-detailed-single-page .pdf-premium-items tbody tr:nth-child(even) { background:rgba(244,245,247,.62); }
.pdf-detailed-single-page .pdf-premium-items td { padding:.6mm 1mm; }
.pdf-detailed-single-page .pdf-premium-items td:nth-child(2) { text-align:left; }
.pdf-detailed-single-page .pdf-premium-items td:nth-child(3) { text-align:center; }
.pdf-detailed-single-page .pdf-premium-items td:nth-child(2) strong { display:block; font-size:6.8pt; text-transform:uppercase; }
.pdf-detailed-single-page .pdf-premium-items td:nth-child(2) small { display:block; color:#6b7280; font-size:5.5pt; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pdf-detailed-single-page .pdf-premium-empty-row td { color:#6b7280!important; text-align:center; }
.pdf-detailed-single-page .pdf-detailed-closing { position:absolute; left:7mm; right:7mm; bottom:16mm; }
.pdf-detailed-single-page .pdf-fixed-after-table { gap:3mm; margin-top:3mm; }
.pdf-detailed-single-page .pdf-premium-panel { min-height:30mm; padding:0 3mm 3mm; }
.pdf-detailed-single-page .pdf-premium-panel h3 { margin:0 -3mm 1.5mm; padding:1.7mm 3mm; font-size:7pt; }
.pdf-detailed-single-page .pdf-premium-finance .pdf-finance-row { padding:.45mm 0; font-size:6.5pt; }
.pdf-detailed-single-page .pdf-premium-grand-total { margin:1mm -3mm -3mm; padding:1.6mm 3mm; font-size:9pt; }
.pdf-detailed-single-page .pdf-premium-checks li { padding:0 0 .6mm 4mm; font-size:6.2pt; }
.pdf-detailed-single-page .pdf-premium-checks li::before { width:2.6mm; height:2.6mm; font-size:5pt; }
.pdf-detailed-single-page .pdf-premium-notes p { min-height:3mm; margin-bottom:0; font-size:6.2pt; }
.pdf-detailed-single-page .pdf-premium-notes span { height:4mm; }
.pdf-detailed-single-page .pdf-payment-signature-row { grid-template-columns:108mm 1fr; gap:6mm; margin-top:3mm; }
.pdf-detailed-single-page .pdf-premium-pix h3 { margin-bottom:1mm; font-size:7pt; }
.pdf-detailed-single-page .pdf-premium-pix-content { grid-template-columns:19mm 1fr; gap:3mm; }
.pdf-detailed-single-page .pdf-premium-pix.without-qrcode .pdf-premium-pix-content { grid-template-columns:1fr; }
.pdf-detailed-single-page .pdf-premium-pix-content canvas,
.pdf-detailed-single-page .pdf-premium-pix-content img { width:18mm!important; height:18mm!important; }
.pdf-detailed-single-page .pdf-premium-pix-content p { margin:0; font-size:5.8pt; }
.pdf-detailed-single-page .pdf-premium-pix-content span { margin-top:.6mm; padding:.8mm 2mm; font-size:5.5pt; }
.pdf-detailed-single-page .pdf-premium-social h3 { margin-bottom:1mm; font-size:7pt; }
.pdf-detailed-single-page .pdf-premium-social-hint { margin:-.4mm 0 .5mm; font-size:4.8pt; line-height:1.15; }
.pdf-detailed-single-page .pdf-premium-social-item { grid-template-columns:4.5mm 1fr; gap:1.5mm; margin-top:1.2mm; }
.pdf-detailed-single-page .pdf-premium-social-item i { font-size:10pt; }
.pdf-detailed-single-page .pdf-premium-social-item p { font-size:6.4pt; line-height:1.2; }
.pdf-detailed-single-page .pdf-premium-social-item span,
.pdf-detailed-single-page .pdf-premium-social-item small { margin-top:0; }
.pdf-detailed-single-page .pdf-premium-footer { min-height:15mm; padding:1mm 7mm .6mm; font-size:6.2pt; }
.pdf-detailed-single-page .pdf-premium-footer-contacts { gap:4mm; padding-bottom:.5mm; }
.pdf-detailed-single-page .pdf-premium-footer-item { gap:1.8mm; }
.pdf-detailed-single-page .pdf-premium-footer-item b { margin-bottom:.15mm; font-size:5.3pt; }
.pdf-detailed-single-page .pdf-premium-footer i { font-size:9pt; }
.pdf-detailed-single-page .pdf-premium-footer-generated { padding-top:.35mm; font-size:4.4pt; }
.pdf-detailed-single-page.pdf-detailed-medium-items .pdf-premium-items tbody tr,
.pdf-detailed-single-page.pdf-detailed-medium-items .pdf-premium-items td { height:5.5mm; max-height:5.5mm; }
.pdf-detailed-single-page.pdf-detailed-many-items .pdf-premium-items tbody tr,
.pdf-detailed-single-page.pdf-detailed-many-items .pdf-premium-items td { height:4.5mm; max-height:4.5mm; }
.pdf-detailed-single-page.pdf-detailed-many-items .pdf-premium-items td:nth-child(2) strong,
.pdf-detailed-single-page.pdf-detailed-many-items .pdf-premium-items td:nth-child(2) small { display:inline; font-size:5.3pt; }
.pdf-detailed-single-page.pdf-detailed-many-items .pdf-premium-items td:nth-child(2) small::before { content:' · '; }

.pdf-template { font-size:8.2pt; }
.tpl-header { display:flex; justify-content:space-between; align-items:flex-start; gap:8mm; margin-bottom:6mm; }
.tpl-header.clean { border-bottom:1px solid var(--line); padding-bottom:5mm; }
.tpl-logo { max-width:58mm; max-height:24mm; object-fit:contain; display:block; }
.tpl-logo.light, .tpl-logo-white { filter:brightness(0) invert(1) grayscale(1) contrast(2); }
.tpl-title { text-align:right; color:var(--navy); text-transform:uppercase; }
.tpl-title span { display:block; font-size:15pt; font-weight:850; }
.tpl-title strong { display:inline-block; margin-top:2mm; padding:2mm 5mm; border-radius:2mm; color:#fff; background:var(--blue); font-size:12pt; }
.tpl-meta-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:3mm; margin-bottom:5mm; }
.tpl-meta { min-height:18mm; padding:3mm; border:1px solid var(--line); border-radius:2.5mm; background:#fff; box-sizing:border-box; }
.tpl-meta i { color:var(--blue); font-size:12pt; }.tpl-meta span { display:block; margin:1mm 0; color:var(--blue); font-size:7pt; font-weight:850; text-transform:uppercase; }.tpl-meta strong { display:block; color:var(--text); overflow-wrap:anywhere; }
.tpl-two-cols { display:grid; grid-template-columns:1fr 1fr; gap:4mm; margin-bottom:5mm; }
.tpl-card { padding:4mm; border:1px solid var(--line); border-radius:2.5mm; background:#fff; box-sizing:border-box; break-inside:avoid; page-break-inside:avoid; }
.tpl-card h3 { margin:0 0 3mm; color:var(--blue); font-size:8pt; text-transform:uppercase; }.tpl-card strong { display:block; margin-bottom:1mm; }.tpl-card p { margin:0 0 1mm; }
.tpl-items-block { width:100%; max-width:100%; margin-bottom:4mm; box-sizing:border-box; }
.tpl-items { width:100%; border-collapse:collapse; table-layout:fixed; margin:0; border:1px solid var(--line); }
.tpl-items-continuation-page { break-before:page; page-break-before:always; padding-top:6mm; }
.tpl-continuation-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:3mm; color:var(--blue); font-weight:850; text-transform:uppercase; }
.pdf-container.pdf-exporting.pdf-auto-paginated .tpl-items-continuation-page { break-before:page; page-break-before:always; }
.pdf-container.pdf-exporting .tpl-items-continued { padding-top:6mm; break-inside:auto; page-break-inside:auto; }
.pdf-container.pdf-exporting .tpl-items-continued.pdf-force-page-before { padding-top:6mm!important; }
.pdf-container.pdf-exporting.pdf-executivo .tpl-items-continued { break-before:page; page-break-before:always; padding-top:6mm!important; }
.pdf-container.pdf-exporting.pdf-minimalista .tpl-items-continued { break-before:page; page-break-before:always; padding-top:6mm!important; }
.pdf-container.pdf-exporting.pdf-tecnico .tpl-items-continued { break-before:page; page-break-before:always; padding-top:6mm!important; }
.tpl-items .tpl-col-index { width:8mm; }.tpl-items .tpl-col-desc { width:auto; }.tpl-items .tpl-col-qtd { width:13mm; }.tpl-items .tpl-col-unid { width:13mm; }.tpl-items .tpl-col-unit { width:23mm; }.tpl-items .tpl-col-desc-perc { width:13mm; }.tpl-items .tpl-col-total { width:23mm; }
.tpl-items th { padding:1.55mm 1.2mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); font-size:6.3pt; text-transform:uppercase; }.tpl-items td { height:8.8mm; max-height:8.8mm; padding:1.2mm; border-bottom:1px solid var(--line); border-right:1px solid var(--line); text-align:center; vertical-align:middle; overflow:hidden; }.tpl-items td:nth-child(2),.tpl-items th:nth-child(2){text-align:left}.tpl-items tbody tr { height:8.8mm; max-height:8.8mm; break-inside:avoid; page-break-inside:avoid; }
.tpl-empty-row td { color:transparent; }
.tpl-item-desc { display:flex; align-items:center; gap:1.6mm; min-height:6mm; overflow:hidden; }.tpl-item-desc.sem-imagem { display:block; }.tpl-item-desc.sem-imagem small { margin-top:.6mm; }.tpl-item-desc img { width:9mm; height:9mm; object-fit:contain; border:1px solid var(--line); border-radius:1.5mm; background:var(--soft); }.tpl-item-desc small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--muted); font-size:6pt; line-height:1.16; }
.tpl-bottom-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:4mm; margin-bottom:4mm; }
.tpl-check-list { list-style:none; padding:0; margin:0; }.tpl-check-list li { position:relative; padding:0 0 1.3mm 4mm; }.tpl-check-list li::before { content:'✓'; position:absolute; left:0; color:var(--blue); font-weight:850; }
.tpl-finance .pdf-finance-row { padding:1.5mm 0; }.tpl-total { display:flex; justify-content:space-between; align-items:center; margin:3mm -4mm -4mm; padding:3mm 4mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); text-transform:uppercase; }.tpl-total strong { font-size:12pt; }
.tpl-final { display:grid; grid-template-columns:1fr 1fr 48mm; gap:3mm; align-items:stretch; margin-bottom:4mm; break-inside:avoid; page-break-inside:avoid; }.tpl-final > .tpl-card { break-inside:avoid; page-break-inside:avoid; }.tpl-contact { color:#fff; background:linear-gradient(145deg,var(--navy),var(--blue)); border:0; }.tpl-contact h3 { color:#fff; }.tpl-pix .pdf-pix-content canvas,.tpl-pix .pdf-pix-content img { width:26mm!important; height:26mm!important; }
.exec-hero { display:grid; grid-template-columns:1fr 1.15fr 48mm; gap:5mm; margin:-10mm -10mm 6mm; padding:10mm; color:#fff; background:linear-gradient(135deg,#06152d,var(--navy) 55%,var(--blue)); align-items:start; }
.exec-title { text-align:center; text-transform:uppercase; }.exec-title span { display:block; font-size:15pt; font-weight:850; }.exec-title small { display:block; margin-top:2mm; color:#dbeafe; }
.exec-total { padding:4mm; border:1px solid rgba(255,255,255,.3); border-radius:2mm; background:rgba(255,255,255,.08); }.exec-total span { display:block; text-transform:uppercase; font-weight:800; }.exec-total strong { display:block; margin:2mm 0; font-size:15pt; }.exec-info { grid-template-columns:1fr 1.3fr; }
.pdf-compact-model { font-size:7.7pt; line-height:1.25; }
.pdf-compact-model .exec-hero { grid-template-columns:1fr 1.05fr 44mm; gap:4mm; margin:-10mm -10mm 4mm; padding:8mm 10mm; }
.pdf-compact-model .exec-title span { font-size:13pt; }
.pdf-compact-model .exec-title small { margin-top:1mm; }
.pdf-compact-model .exec-total { padding:3mm; }
.pdf-compact-model .exec-total strong { margin:1mm 0; font-size:13pt; }
.pdf-compact-model .tpl-two-cols { gap:3mm; margin-bottom:3mm; }
.pdf-compact-model .tpl-card { padding:3mm; }
.pdf-compact-model .tpl-card h3 { margin-bottom:1.8mm; font-size:7.4pt; }
.pdf-compact-model .tpl-card p { margin-bottom:.5mm; line-height:1.22; }
.pdf-compact-model .tpl-person p { line-height:1.22; }
.pdf-compact-model .tpl-items-block { margin-bottom:3mm; }
.pdf-compact-model .tpl-bottom-grid { gap:3mm; margin-bottom:3mm; }
.pdf-compact-model .tpl-check-list li { padding-bottom:.7mm; line-height:1.18; }
.pdf-compact-model .pdf-finance-row { padding:.9mm 0; }
.pdf-compact-model .tpl-total { margin:2mm -3mm -3mm; padding:2.2mm 3mm; }
.pdf-compact-model .tpl-final { grid-template-columns:1fr 1fr 42mm; gap:2.5mm; margin-bottom:2.5mm; }
.pdf-compact-model .tpl-pix .pdf-pix-content canvas,.pdf-compact-model .tpl-pix .pdf-pix-content img { width:22mm!important; height:22mm!important; }
.pdf-compact-model .pdf-pix-content { gap:2.5mm; }
.pdf-compact-model .tpl-footer-bar { margin-top:2.5mm; padding:2mm 3mm; }
.pdf-container.pdf-exporting.pdf-compact-model .exec-hero { margin:-10mm -10mm 4mm; padding:8mm 10mm; }
.pdf-container.pdf-exporting.pdf-compact-model .pdf-force-page-before { padding-top:5mm; }
.pdf-executivo { color:#111827; }
.pdf-executivo .exec-hero { background:linear-gradient(135deg,var(--navy),var(--blue)); border-bottom:1.2mm solid var(--line); }
.pdf-executivo .tpl-logo { max-width:48mm; max-height:18mm; }
.pdf-executivo .exec-title span { line-height:1; }
.pdf-executivo .exec-title small { color:rgba(255,255,255,.82); font-weight:700; }
.pdf-executivo .exec-total { border:1px solid rgba(255,255,255,.42); border-radius:2.5mm; background:rgba(255,255,255,.13); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.pdf-executivo .exec-total small { color:rgba(255,255,255,.78); line-height:1.2; }
.pdf-executivo .tpl-card { border-color:var(--line); border-radius:3mm; box-shadow:0 1.4mm 4mm rgba(15,23,42,.06); }
.pdf-executivo .tpl-card h3 { color:var(--navy); border-bottom:1px solid var(--line); padding-bottom:1.4mm; }
.pdf-executivo .tpl-proposal-compact { background:linear-gradient(180deg,#fff,var(--soft)); }
.pdf-executivo .tpl-proposal-compact p { border-bottom:1px dashed var(--line); padding-bottom:.7mm; }
.pdf-executivo .tpl-proposal-compact p:last-child { border-bottom:0; padding-bottom:0; }
.pdf-executivo .tpl-items-block { border:1px solid var(--line); border-radius:2.5mm; overflow:hidden; background:#fff; }
.pdf-executivo .tpl-items { border:0; }
.pdf-executivo .tpl-items th { background:linear-gradient(90deg,var(--navy),var(--blue)); padding:1.45mm 1.1mm; font-size:5.9pt; }
.pdf-executivo .tpl-items td { padding:1.45mm 1.1mm; border-color:var(--line); font-size:6.8pt; }
.pdf-executivo .tpl-items tbody tr:nth-child(even) { background:var(--subtle); }
.pdf-executivo .tpl-item-desc strong { color:#0f172a; font-size:7.1pt; }
.pdf-executivo .tpl-item-desc small { color:#64748b; font-size:5.7pt; line-height:1.14; }
.pdf-executivo .tpl-bottom-grid { grid-template-columns:1fr 48mm; align-items:stretch; }
.pdf-executivo .tpl-finance { border-color:var(--line); }
.pdf-executivo .tpl-total { background:linear-gradient(90deg,var(--navy),var(--blue)); border-radius:0 0 2mm 2mm; }
.pdf-executivo .tpl-final { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 45mm; }
.pdf-executivo .tpl-final .tpl-card { box-shadow:none; }
.pdf-executivo .tpl-contact { background:linear-gradient(145deg,var(--navy),var(--blue)); }
.pdf-executivo .tpl-footer-bar { border-radius:2.5mm; box-shadow:0 1mm 3mm rgba(15,23,42,.08); }
.pdf-container.pdf-exporting.pdf-ultra-compact { font-size:7.2pt; }
.pdf-container.pdf-exporting.pdf-ultra-compact .exec-hero { padding:7mm 10mm; margin-bottom:3mm; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-item-desc small { display:none; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-items td { padding:1.25mm 1mm; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-items th { padding:1.25mm 1mm; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-item-desc img { width:8mm; height:8mm; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-card { padding:2.5mm; }
.pdf-container.pdf-exporting.pdf-ultra-compact .tpl-final { gap:2mm; margin-bottom:2mm; }
.tpl-process { display:grid; grid-template-columns:repeat(4,1fr); gap:2mm; text-align:center; }.tpl-process span { padding:3mm 1mm; border-radius:2mm; color:var(--blue); background:var(--soft); font-weight:800; font-size:6.8pt; }
.visual-feature { display:grid; grid-template-columns:85mm 1fr; gap:6mm; align-items:center; margin-bottom:5mm; padding:5mm; border-radius:3mm; background:linear-gradient(135deg,var(--soft),#fff); border:1px solid var(--line); }
.visual-image { display:grid; place-items:center; min-height:62mm; }.visual-image img { max-width:100%; max-height:62mm; object-fit:contain; }.visual-feature h2 { margin:0 0 4mm; color:var(--blue); font-size:18pt; text-transform:uppercase; }.visual-feature ul { list-style:none; padding:0; margin:0 0 5mm; }.visual-feature li { margin-bottom:1.5mm; }.visual-feature strong { display:block; padding:3mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); border-radius:2mm; text-align:center; font-size:16pt; }
.tpl-blue { color:var(--blue); }
.tpl-person p { line-height:1.35; }
.tpl-items-complete th:nth-child(1) { width:8mm; }
.tpl-items-complete th:nth-child(2) { width:auto; }
.tpl-items-complete th:nth-child(3), .tpl-items-complete th:nth-child(4), .tpl-items-complete th:nth-child(6) { width:13mm; }
.tpl-items-complete th:nth-child(5), .tpl-items-complete th:nth-child(7) { width:23mm; }
.tpl-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:3mm; margin-bottom:4mm; }
.tpl-benefits div { padding:3.5mm; border:1px solid var(--line); border-radius:2.5mm; background:var(--soft); break-inside:avoid; page-break-inside:avoid; }
.tpl-benefits i { display:block; margin-bottom:1.5mm; color:var(--blue); font-size:15pt; }
.tpl-benefits strong, .tpl-benefits span { display:block; }
.tpl-benefits span { margin-top:.8mm; color:var(--muted); font-size:6.8pt; line-height:1.35; }
.exec-benefits { background:linear-gradient(180deg,#fff,var(--soft)); }
.tpl-process-complete span { display:grid; gap:1.2mm; align-content:center; }
.tpl-process-complete i { display:block; font-size:14pt; }
.tpl-payment-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2mm; margin-bottom:3mm; }
.tpl-payment-grid span { display:grid; gap:1mm; place-items:center; padding:2.5mm 1mm; border:1px solid var(--line); border-radius:2mm; color:var(--blue); background:var(--soft); font-weight:800; font-size:6.8pt; text-align:center; }
.tpl-payment-grid i { font-size:14pt; }
.tpl-contact p { display:flex; align-items:center; gap:2mm; }
.tpl-footer-bar { display:flex; align-items:center; justify-content:space-between; gap:4mm; margin-top:4mm; padding:2.5mm 4mm; color:#fff; background:linear-gradient(90deg,var(--navy),var(--blue)); border-radius:2mm; font-size:7pt; }
.tpl-footer-bar span { text-align:right; }
.pdf-executivo .tpl-footer-bar { margin-left:-2mm; margin-right:-2mm; }
.pdf-visual .tpl-payment-grid span { color:#0f766e; }
@media screen { #fatura-conteudo { padding:18px!important; }.pdf-container { box-shadow:0 24px 80px -45px rgba(15,23,42,.65); } }
#modal-fatura .modal-close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    color: #334155;
    background: linear-gradient(180deg,#fff,#f8fafc);
    border: 1px solid #cbd5e1;
    box-shadow: 0 14px 30px -22px rgba(15,23,42,.75), inset 0 1px 0 rgba(255,255,255,.95);
}
#modal-fatura .modal-close i {
    font-size: 1.18rem;
    line-height: 1;
}
#modal-fatura .modal-close:hover {
    color: #dc2626;
    background: linear-gradient(180deg,#fff,#fee2e2);
    border-color: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -24px rgba(220,38,38,.7), inset 0 1px 0 rgba(255,255,255,.95);
}
#modal-fatura .modal-close:active {
    transform: translateY(0) scale(.96);
}
#modal-fatura.pdf-share-rendering {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:none!important;
    left:0!important;
    top:0!important;
    right:auto!important;
    bottom:auto!important;
    width:1px!important;
    height:1px!important;
    overflow:visible!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    padding:0!important;
    z-index:-1!important;
    background:transparent!important;
    backdrop-filter:none!important;
}
#modal-fatura.pdf-share-rendering .modal {
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    box-shadow:none!important;
}
#modal-fatura.pdf-share-rendering .modal-header {
    display:none!important;
}
#modal-fatura.pdf-share-rendering .modal-body,
#modal-fatura.pdf-share-rendering #fatura-conteudo {
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
}
@media screen and (max-width:768px) {
    #modal-fatura .modal { width:calc(100vw - 20px)!important; max-width:none!important; }
    #modal-fatura .modal-header { gap: 10px; }
    #modal-fatura .modal-header h3 { min-width: 0; }
    #modal-fatura .modal-header > div { flex: 0 0 auto; min-width: 0; align-items: center; }
    #modal-fatura .modal-close { flex: 0 0 40px; min-width: 40px; width: 40px; height: 40px; }
    #modal-fatura .modal-body { max-height:calc(88vh - 72px); overflow:auto; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y pinch-zoom; }
    #fatura-conteudo { position:relative; min-height:var(--pdf-preview-height, 520px); overflow:auto; padding:12px!important; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y pinch-zoom; }
    #fatura-conteudo.pdf-preview-pending .pdf-container { opacity:0; }
    #fatura-conteudo .pdf-container.pdf-previewing { position:absolute; top:12px; left:50%; margin:0; transform:translateX(-50%) scale(var(--pdf-preview-scale, .42)); transform-origin:top center; touch-action:pan-x pan-y pinch-zoom; }
    #fatura-conteudo .pdf-container.pdf-exporting { position:static!important; transform:none!important; }
}
@media print { @page { size:A4; margin:10mm; } body>*:not(#modal-fatura){display:none!important}#modal-fatura,#modal-fatura .modal,#modal-fatura .modal-body,#fatura-conteudo{position:static!important;display:block!important;width:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important;transform:none!important}.hide-print{display:none!important}.pdf-container{width:100%!important;min-height:auto!important;padding:0!important;margin:0!important;box-shadow:none!important} }
