/* ── 07/10/2026: Financeiro da empresa — custos fixos (Parâmetros), nota fiscal
   no Orçamento Formal e linhas novas em Estatísticas. Ver ag-financeiro-empresa.js ── */

/* Pedido → painel NF (a coluna lateral é estreita: tudo empilhado) */
.pedido-nf-modos{grid-template-columns:1fr !important}
.pedido-nf-section .pedido-nf-grid{grid-template-columns:1fr 1fr}
.pedido-nf-section .pedido-nf-field input{min-width:0}
.pedido-nf-pill .nf-pill-right{flex-wrap:wrap;justify-content:flex-end}

/* Parâmetros → Custos fixos & nota fiscal */
.ag-cf-card{grid-column:1 / -1}
.ag-cf-list{display:grid;gap:6px}
.ag-cf-row{
  display:grid;grid-template-columns:minmax(140px,1fr) 130px auto auto auto;align-items:center;gap:8px;
  padding:6px 8px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);
}
.ag-cf-row input,.ag-cf-add input{
  width:100%;min-height:32px;border-radius:8px;border:1px solid var(--border2);
  background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:700;padding:5px 8px;
}
.ag-cf-valor{display:flex;align-items:center;gap:5px}
.ag-cf-valor span{font-size:10px;font-weight:800;color:var(--faint)}
.ag-cf-desde{font-size:10px;font-weight:700;color:var(--faint);white-space:nowrap}
.ag-cf-btn{
  min-height:30px;padding:4px 10px;border-radius:8px;border:1px solid var(--border2);
  background:var(--surface);color:var(--muted);font:inherit;font-size:11px;font-weight:800;cursor:pointer;
}
.ag-cf-btn:disabled{opacity:.4;cursor:default}
.ag-cf-del{color:#c5221f}
.ag-cf-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.ag-cf-hist{grid-column:1 / -1;display:grid;gap:5px;padding:6px 0 2px}
.ag-cf-hist-row{display:grid;grid-template-columns:160px 130px auto;gap:8px;align-items:center}
.ag-cf-add{display:grid;grid-template-columns:minmax(140px,1fr) 130px auto;gap:8px;align-items:center;margin-top:4px}
.ag-cf-total{
  display:flex;justify-content:space-between;align-items:center;margin-top:6px;padding:10px 12px;
  border-radius:10px;background:var(--accent-dim);color:var(--accent);font-size:12px;font-weight:800;
}
.ag-cf-total strong{font-size:16px}
.ag-cf-help{font-size:10.5px;line-height:1.4;color:var(--muted)}
@media (max-width:700px){
  .ag-cf-row{grid-template-columns:1fr 1fr}
  .ag-cf-add{grid-template-columns:1fr}
}

/* Orçamento Formal → opção "Somar imposto da nota" (fica fora da folha impressa) */
.formal-nota-card{display:grid;gap:6px}
.formal-nota-switch{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;cursor:pointer;color:var(--text,#202124)}
.formal-nota-switch input{width:16px;height:16px;accent-color:#1a73e8;cursor:pointer}
.formal-nota-line strong{color:#188038}

/* Estatísticas → linhas de impostos, custos fixos e lucro real */
#statsView .st-line-tax{fill:none;stroke:#f29900;stroke-width:2;stroke-dasharray:3 4}
#statsView .st-line-fixed{fill:none;stroke:#9334e6;stroke-width:2;stroke-dasharray:7 5}
#statsView .st-line-real{fill:none;stroke:#0b8043;stroke-width:2.6}
#statsView .st-line-real-point{fill:#fff;stroke:#0b8043;stroke-width:2}
#statsView .st-line-legend .tax i{background:#f29900}
#statsView .st-line-legend .fixed i{background:#9334e6}
#statsView .st-line-legend .real i{background:#0b8043}
#statsView .st-line-chip.imposto strong{color:#e37400}
#statsView .st-line-chip.fixos strong{color:#9334e6}
#statsView .st-line-chip.real strong{color:#0b8043}
#statsView .st-line-top.st-line-top--amplo{grid-template-columns:1fr}
#statsView .st-line-top.st-line-top--amplo .st-line-summary{justify-content:flex-start}
#statsView .st-line-note{font-size:10.5px;color:var(--muted);margin-top:8px;line-height:1.45}
