fix: fonte 22px bold em todos os relatórios e preview
Build Fechamento de Caixa / build (macos-14, app) (push) Has been cancelled
Build Fechamento de Caixa / build (ubuntu-22.04, deb) (push) Has been cancelled
Build Fechamento de Caixa / build (windows-2022, msi) (push) Has been cancelled

This commit is contained in:
root
2026-07-02 19:19:23 +00:00
parent d3d5c4fbca
commit 16972f4734
+44 -41
View File
@@ -1389,26 +1389,26 @@ function buildConfirmHTML(data) {
<title>Fechamento de Caixa</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 15px; width: 80mm; margin: 0 auto; padding: 8px; font-weight: bold !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; font-weight: bold !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 20px; font-weight: bold !important; }
.header h2 { font-size: 16px; font-weight: bold !important; }
.header h1 { font-size: 24px; font-weight: bold !important; }
.header h2 { font-size: 22px; font-weight: bold !important; }
hr { border: none; border-top: 2px solid #000; margin: 6px 0; }
.section-title { font-weight: bold !important; font-size: 14px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 14px; font-weight: bold !important; }
.section-title { font-weight: bold !important; font-size: 22px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold !important; }
.row.total-row { font-weight: bold !important; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 13px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 13px; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 22px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 22px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 22px; }
.cart-table td:first-child { text-align: left; }
.cart-table tr.total-row { font-weight: bold !important; border-top: 2px solid #000; }
.subtotal { font-size: 13px; margin-top: 4px; }
.subtotal { font-size: 22px; margin-top: 4px; }
.subtotal .row { padding: 1px 0; font-weight: bold !important; }
.diff-ok { color: #2e7d32; font-weight: bold !important; }
.diff-bad { color: #c0272d; font-weight: bold !important; }
.obs { font-size: 12px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 12px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 15px !important; } }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 22px !important; } }
</head><body>
<div class="header">
<h1>${data.loja}</h1>
@@ -1609,26 +1609,26 @@ function buildPrintHTML(data) {
<title>Fechamento de Caixa</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 15px; width: 80mm; margin: 0 auto; padding: 8px; font-weight: bold !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 20px; font-weight: bold !important; }
.header h2 { font-size: 16px; font-weight: bold !important; }
.header h1 { font-size: 24px; font-weight: bold !important; }
.header h2 { font-size: 22px; font-weight: bold !important; }
hr { border: none; border-top: 2px solid #000; margin: 6px 0; }
.section-title { font-weight: bold !important; font-size: 14px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 14px; font-weight: bold !important; }
.section-title { font-weight: bold !important; font-size: 22px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold !important; }
.row.total-row { font-weight: bold !important; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 13px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 13px; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 22px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 22px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 22px; }
.cart-table td:first-child { text-align: left; }
.cart-table tr.total-row { font-weight: bold !important; border-top: 2px solid #000; }
.subtotal { font-size: 13px; margin-top: 4px; }
.subtotal { font-size: 22px; margin-top: 4px; }
.subtotal .row { padding: 1px 0; font-weight: bold !important; }
.diff-ok { color: #2e7d32; font-weight: bold !important; }
.diff-bad { color: #c0272d; font-weight: bold !important; }
.obs { font-size: 12px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 12px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 15px !important; } }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 22px !important; } }
</style>
</head><body>
<div class="header">
@@ -1738,17 +1738,20 @@ function buildReportHTML(data) {
<title>Relatório de Fechamento</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 13px; width: 80mm; margin: 0 auto; padding: 8px; }
.header { text-align: center; margin-bottom: 8px; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold; width: 80mm; margin: 0 auto; padding: 8px; }
.header { text-align: center; margin-bottom: 10px; }
hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 12px; }
.row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 22px; font-weight: bold; }
.row .val { font-weight: bold; }
.footer { text-align: center; font-size: 11px; color: #555; margin-top: 8px; }
@media print { body { margin: 0; } }
.footer { text-align: center; font-size: 13px; color: #555; margin-top: 8px; }
@media print { body { margin: 0; font-size: 22px !important; font-weight: bold !important; } }
</style>
</head><body>
<div class="header">
<div>📅 Data: ${data.data} &nbsp; 👤 Operador: ${data.operador} &nbsp; ⏰ Turno: ${data.turno} &nbsp; 🏪 Loja: ${data.loja}</div>
<div>📅 Data: ${data.data}</div>
<div>👤 Operador: ${data.operador}</div>
<div>⏰ Turno: ${data.turno}</div>
<div>🏪 Loja: ${data.loja}</div>
</div>
<hr>
<div class="row"><span>💸 Sangrias:</span><span class="val">${fmt(sangrias)}</span></div>
@@ -1771,7 +1774,7 @@ function buildReportHTML(data) {
<div class="row"><span>🍗 Frango Assado:</span><span class="val">${data.frango || 0}</span></div>
<div class="row"><span>💰 Vendas:</span><span class="val">${fmt(data.vendas || 0)}</span></div>
<hr>
<div style="text-align:center;font-size:10px;color:#888">ID: ${data.loja}_${data.data}_${data.operador}</div>
<div style="text-align:center;font-size:12px;color:#888">ID: ${data.loja}_${data.data}_${data.operador}</div>
<div class="footer">Gerado em ${new Date().toLocaleString('pt-BR')}</div>
</body></html>`;
}
@@ -1795,21 +1798,21 @@ function openPrintPreview(data, mode) {
const previewStyle = `
<style>
body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 18px; background: #fff; padding: 10px; font-weight: bold; }
body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 22px; background: #fff; padding: 10px; font-weight: bold; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 24px; font-weight: bold; }
.header h2 { font-size: 18px; font-weight: bold; }
.header h2 { font-size: 22px; font-weight: bold; }
hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.section-title { font-weight: bold; font-size: 17px; border-top: 1px dashed #000; padding-top: 4px; margin-top: 6px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 16px; font-weight: bold; }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-weight: bold; }
.section-title { font-weight: bold; font-size: 22px; border-top: 1px dashed #000; padding-top: 4px; margin-top: 6px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold; }
table { width: 100%; border-collapse: collapse; font-size: 22px; font-weight: bold; }
td { padding: 2px 4px; vertical-align: top; font-weight: bold; }
td:nth-child(2) { text-align: right; }
td:nth-child(3) { text-align: right; color: #555; font-size: 13px; }
.grand-total { font-size: 20px; font-weight: bold; text-align: center; padding: 6px; border: 2px solid #000; margin: 8px 0; }
.obs { font-size: 13px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: normal; }
.footer { text-align: center; font-size: 13px; color: #555; margin-top: 8px; font-weight: normal; }
@media print { body { background: #fff; font-size: 18px !important; font-weight: bold !important; } }
td:nth-child(3) { text-align: right; color: #555; font-size: 16px; }
.grand-total { font-size: 24px; font-weight: bold; text-align: center; padding: 6px; border: 2px solid #000; margin: 8px 0; }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: normal; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: normal; }
@media print { body { background: #fff; font-size: 22px !important; font-weight: bold !important; } }
</style>
`;