/* ============================================================
   Invoice impressa (A4, papel branco). O app escuro some e só o
   documento em #print-root aparece. Ctrl+P → "Salvar como PDF".
   ============================================================ */

@media print {
  @page { size: A4; margin: 18mm 16mm; }

  body { background: #fff !important; }
  #app, #gate, .toast { display: none !important; }

  .print-root {
    display: block !important;
    color: #1a1a1a;
    font-family: 'Archivo', Arial, sans-serif;
    font-weight: 300;
    font-size: 11pt;
    line-height: 1.55;
  }
}

/* Estilos do documento (aplicam também na tela caso a gente
   queira pré-visualizar; hoje só o print usa) */
.invoice-doc { max-width: 720px; margin: 0 auto; }

.invoice-doc .doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.invoice-doc .doc-head svg { height: 44px; width: auto; display: block; }
/* No papel branco o wordmark fica preto (fill natural do SVG) */
.invoice-doc svg path:not([class]) { fill: #1a1a1a; }

.invoice-doc .doc-title {
  font-family: 'Staatliches', Arial, sans-serif;
  font-size: 30pt;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-align: right;
}
.invoice-doc .doc-number {
  text-align: right;
  font-size: 9.5pt;
  color: #666;
  margin-top: 2px;
}

.invoice-doc .doc-parties {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  font-size: 10.5pt;
}
.invoice-doc .doc-parties strong { font-weight: 700; }
.invoice-doc .doc-parties .party-right { text-align: right; }

.invoice-doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
}
.invoice-doc th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9pt;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #ee8d49;
}
.invoice-doc th.num, .invoice-doc td.num { text-align: right; white-space: nowrap; }
.invoice-doc td {
  padding: 9px 10px;
  border-bottom: 1px solid #e3e3de;
  vertical-align: top;
}

.invoice-doc .doc-total {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: baseline;
  padding: 10px;
  font-size: 12pt;
}
.invoice-doc .doc-total .t-label { font-weight: 700; }
/* #b85c1d: laranja bee6 escurecido p/ 4,6:1 sobre branco (AA) */
.invoice-doc .doc-total .t-value { font-weight: 700; color: #b85c1d; }

.invoice-doc .doc-payment {
  margin-top: 36px;
  border: 1px solid #e3e3de;
  border-left: 3px solid #ee8d49;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 10pt;
  page-break-inside: avoid;
}
.invoice-doc .doc-payment h4 {
  margin: 0 0 10px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.invoice-doc .doc-payment .pay-line { margin: 3px 0; }
.invoice-doc .doc-payment .pay-line strong { font-weight: 500; }

.invoice-doc .doc-footer {
  margin-top: 40px;
  font-size: 9pt;
  color: #6b6b6b;
  text-align: center;
}
