.spend-statistics { --spend-teal: #197f75; --spend-muted: #737b7a; color: #29332f; }
.spend-stats-heading, .spend-stats-caption, .spend-stats-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.spend-stats-heading { margin: 10px 0 22px; }
.spend-stats-heading h2, .spend-stats-section-head h3 { margin: 0; font-size: 22px; }
.spend-stats-heading .heading-actions { display: flex; gap: 10px; }
.spend-stats-filters { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; padding: 22px; }
.spend-stats-filters label { display: grid; gap: 8px; color: var(--spend-muted); font-size: 13px; }
.spend-statistics input, .spend-statistics select { max-width: 100%; min-height: 42px; border: 1px solid #dddeda; border-radius: 9px; padding: 8px 12px; color: #343d39; background: white; font: inherit; }
.spend-stats-period { display: flex; gap: 4px; border-radius: 10px; padding: 4px; background: #eeece8; }
.spend-stats-period button { border: 0; border-radius: 8px; padding: 12px 20px; background: transparent; color: #747b79; font: inherit; font-weight: 700; cursor: pointer; }
.spend-stats-period button[aria-pressed="true"] { background: #252c29; color: white; }
.spend-stats-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.spend-stats-link { border: 0; color: #c55432; background: transparent; padding: 12px; font: inherit; cursor: pointer; }
.spend-stats-caption { margin: 24px 0 16px; font-size: 15px; }
.spend-stats-caption span { color: var(--spend-muted); font-size: 13px; }
.spend-stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.spend-stats-kpi { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; border-top: 4px solid var(--spend-teal); color: inherit; text-align: left; font: inherit; }
button.spend-stats-kpi { cursor: pointer; width: 100%; }
.spend-stats-kpi > span { color: var(--spend-muted); font-size: 14px; }
.spend-stats-kpi > strong { font-size: clamp(26px,2.5vw,38px); color: var(--spend-teal); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spend-stats-kpi > small { font-size: 12px; line-height: 1.7; color: var(--spend-muted); }
.spend-stats-neutral { border-top-color: #8a938f; }
.spend-stats-neutral > strong { color: #505f58; }
.spend-stats-comparison, .spend-stats-detail { padding: 26px; margin-top: 24px; }
.spend-stats-section-head { margin-bottom: 22px; }
.spend-stats-section-head p, .spend-stats-detail p { color: var(--spend-muted); font-size: 13px; margin: 10px 0 0; line-height: 1.7; }
.spend-stats-section-head label { font-size: 13px; color: var(--spend-muted); }
.spend-stats-scroll { width: 100%; overflow-x: auto; }
.spend-statistics table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.spend-statistics th, .spend-statistics td { padding: 18px 16px; border-bottom: 1px solid #e9e7e2; vertical-align: middle; }
.spend-statistics thead { background: #f6f5f1; color: #717b74; }
.spend-statistics thead th { font-weight: 700; white-space: nowrap; }
.spend-stats-comparison table { min-width: 750px; }
.spend-stats-comparison th:first-child { width: 22%; }
.spend-stats-comparison th:nth-child(2) { width: 40%; }
.spend-stats-person, .spend-stats-amount { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; padding: 6px 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.spend-stats-person strong { display: block; white-space: nowrap; }
.spend-stats-person small { display: block; margin-top: 6px; color: #8b928c; font-size: 12px; font-weight: 400; }
.spend-stats-person > span:last-child { color: #7faaa2; font-size: 16px; }
.spend-stats-avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: #f2ece5; color: #b17450; font-size: 18px; }
.spend-stats-amount > strong { min-width: 115px; text-align: right; font-size: 20px; color: var(--spend-teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spend-stats-track { flex: 1; min-width: 55px; height: 12px; background: #eeefeb; border-radius: 4px; overflow: hidden; }
.spend-stats-track i { display: block; height: 100%; background: #319a8d; border-radius: 4px; }
.spend-stats-ok { color: #457c69; font-size: 12px; }
.spend-stats-missing { color: #9b7042; font-size: 12px; line-height: 1.6; }
.spend-statistics tr.is-selected { background: #f1f8f5; }
.spend-stats-note { padding: 16px 20px; border: 1px solid #ead9af; background: #fffaed; border-radius: 10px; color: #92703b; font-size: 13px; line-height: 1.7; }
.spend-stats-method { color: var(--spend-muted); font-size: 12px; line-height: 1.9; margin: 20px 4px 0; }
.spend-stats-state { padding: 30px; color: var(--spend-muted); text-align: center; }
.spend-stats-detail h4 { margin-bottom: 6px; }
.spend-stats-detail p + .spend-stats-scroll { margin-top: 16px; }
.spend-statistics button:focus-visible, .spend-statistics input:focus-visible, .spend-statistics select:focus-visible, .spend-stats-detail:focus-visible { outline: 3px solid #327db0; outline-offset: 3px; }
.spend-statistics button:disabled { cursor: not-allowed; opacity: .5; }
.sales-data-tabs { flex-wrap: wrap; }
@media (max-width: 720px) {
  .spend-stats-filters, .spend-stats-comparison, .spend-stats-detail { padding: 17px; }
  .spend-stats-nav { margin-left: 0; flex-wrap: wrap; }
  .spend-stats-filters label { flex: 1; min-width: 160px; }
  .spend-stats-kpis { grid-template-columns: 1fr; }
  .spend-stats-heading .heading-actions { flex-wrap: wrap; }
}
