/* Relatório de Vendas — comparativos, gráficos e notas (sales-report-plus.js). Cores da marca: navy e dourado. */
.sr-note { margin: 12px 0; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--brand-muted, #5b6676); background: #f7f9fc; border-radius: 8px; }
.sr-note:empty { display: none; }
.sr-note-warn { color: #8a4b00; background: #fff4e0; }

.sr-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.sr-compare:empty { display: none; }
.sr-compare-chip { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--brand-line, #e3e8ef); border-radius: 10px; background: #fff; }
.sr-compare-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-muted, #5b6676); }
.sr-compare-detail { font-size: 12px; color: var(--brand-muted, #5b6676); }
.sr-delta { font-size: 18px; font-weight: 800; }
.sr-delta-up { color: #15803d; }
.sr-delta-down { color: #b91c1c; }
.sr-delta-flat { color: var(--brand-muted, #5b6676); font-size: 13px; font-weight: 600; }

.sr-chart-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--brand-line, #e3e8ef); border-radius: 10px; background: #fff; }
.sr-chart-title { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--brand-navy, #0b1320); }
.sr-legend { font-size: 11.5px; font-weight: 500; color: var(--brand-muted, #5b6676); }
.sr-dot { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 8px; border-radius: 50%; }
.sr-legend .sr-dot:first-child { margin-left: 0; }
.sr-dot-received { background: var(--brand-navy, #0b1320); }
.sr-dot-open { background: var(--brand-gold, #d4af37); }
.sr-svg { display: block; width: 100%; max-width: 760px; height: auto; }
.sr-bar-open { fill: var(--brand-gold, #d4af37); }
.sr-bar-received { fill: var(--brand-navy, #0b1320); }
.sr-chart-val { font-size: 10px; font-weight: 700; fill: var(--brand-navy, #0b1320); }
.sr-chart-lbl { font-size: 10px; fill: var(--brand-muted, #5b6676); }

.sr-donut-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 12px; }
.sr-donut { width: 150px; height: 150px; flex: none; }
.sr-donut-legend { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.sr-donut-legend .sr-dot { margin: 0 6px 0 0; }

.sr-hbar { display: grid; grid-template-columns: minmax(120px, 28%) 1fr minmax(140px, auto); gap: 10px; align-items: center; padding: 3px 0; font-size: 12.5px; }
.sr-hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-hbar-track { height: 10px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.sr-hbar-fill { display: block; height: 100%; border-radius: 6px; background: var(--brand-gold, #d4af37); }
.sr-hbar-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 720px) {
  .sr-hbar { grid-template-columns: 1fr; gap: 2px; }
  .sr-hbar-val { text-align: left; }
}
