/* Analytics — Financeiro — Contas à Receber */

/* Filtros em barra horizontal no topo (mesmo padrão do Pedidos Solar):
   o layout deixa de ter a coluna da sidebar e o painel ocupa a largura toda. */
#analyticsTechFinView #analyticsContasReceberView .tf-dashboard-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem 0;
}
#analyticsContasReceberView .acr-filters {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 33, 68, 0.06);
}
#analyticsContasReceberView .acr-filters-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
#analyticsContasReceberView .acr-filters-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}
#analyticsContasReceberView .acr-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-status.is-ok {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
#analyticsContasReceberView .acr-status.is-error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
#analyticsContasReceberView .acr-filtros-resumo {
  display: none;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-filters.is-collapsed .acr-filtros-resumo {
  display: block;
}
#analyticsContasReceberView .acr-toggle-filtros,
#analyticsContasReceberView .acr-toggle-filtros:hover,
#analyticsContasReceberView .acr-toggle-filtros:active {
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  -webkit-text-fill-color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: none;
  box-shadow: none;
}
#analyticsContasReceberView .acr-toggle-filtros:hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
}
#analyticsContasReceberView .acr-toggle-filtros svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
#analyticsContasReceberView .acr-filters.is-collapsed .acr-toggle-filtros svg {
  transform: rotate(180deg);
}
#analyticsContasReceberView .acr-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
  margin: 0.75rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#analyticsContasReceberView .acr-filters.is-collapsed .acr-filter-bar,
#analyticsTechFinView #analyticsContasReceberView .tf-dashboard-layout.tf-filters-collapsed .acr-filter-bar {
  display: none;
}
#analyticsTechFinView #analyticsContasReceberView .tf-dashboard-layout.tf-filters-collapsed .acr-filtros-resumo {
  display: block;
}
#analyticsContasReceberView .acr-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 110px;
  flex: 1 1 130px;
}
#analyticsContasReceberView .acr-filter--xs {
  flex: 0 1 80px;
  min-width: 70px;
}
#analyticsContasReceberView .acr-filter--sm {
  flex: 0 1 110px;
}
#analyticsContasReceberView .acr-filter--lg {
  flex: 2 1 220px;
}
#analyticsContasReceberView .acr-filter label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-filter input,
#analyticsContasReceberView .acr-filter select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#analyticsContasReceberView .acr-filter input:focus,
#analyticsContasReceberView .acr-filter select:focus {
  outline: none;
  border-color: #d32027;
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.12);
}
#analyticsContasReceberView .acr-filter--range {
  flex: 1 1 220px;
  min-width: 200px;
}
#analyticsContasReceberView .acr-filter--range-sm {
  flex: 0 1 150px;
  min-width: 130px;
}
#analyticsContasReceberView .acr-range {
  display: flex;
  gap: 0.35rem;
}
#analyticsContasReceberView .acr-range input {
  min-width: 0;
  flex: 1;
}
#analyticsContasReceberView .acr-filter--actions {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: auto;
  margin-left: auto;
}
#analyticsContasReceberView .acr-btn-buscar,
#analyticsContasReceberView .acr-btn-limpar {
  height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transform: none;
  box-shadow: none;
}
#analyticsContasReceberView .acr-btn-buscar {
  border: none;
  background: #d32027;
  color: #fff;
  -webkit-text-fill-color: #fff;
  min-width: 9rem;
}
#analyticsContasReceberView .acr-btn-buscar:hover {
  filter: brightness(0.95);
}
#analyticsContasReceberView .acr-btn-buscar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
#analyticsContasReceberView .acr-btn-limpar {
  border: 1px solid #dfe3ea;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}
#analyticsContasReceberView .acr-btn-limpar:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
@media (max-width: 720px) {
  #analyticsContasReceberView .acr-filter,
  #analyticsContasReceberView .acr-filter--range,
  #analyticsContasReceberView .acr-filter--sm,
  #analyticsContasReceberView .acr-filter--xs {
    flex: 1 1 100%;
  }
  #analyticsContasReceberView .acr-filter--actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

/* KPIs — faixa dedicada (padrão Faturamento / Análise de Custo) */
#analyticsContasReceberView .acr-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
@media (max-width: 1280px) {
  #analyticsContasReceberView .acr-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  #analyticsContasReceberView .acr-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#analyticsContasReceberView .acr-kpi-card {
  --acr-tom: #4f46e5;
  --acr-tom-suave: #eef2ff;
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 0.95rem 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
#analyticsContasReceberView .acr-kpi-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
#analyticsContasReceberView .acr-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: var(--acr-tom-suave);
  color: var(--acr-tom);
}
#analyticsContasReceberView .acr-kpi-icon svg {
  width: 15px;
  height: 15px;
}
#analyticsContasReceberView .acr-kpi-card--titulos {
  --acr-tom: #4f46e5;
  --acr-tom-suave: #eef2ff;
}
#analyticsContasReceberView .acr-kpi-card--clientes {
  --acr-tom: #7c3aed;
  --acr-tom-suave: #f5f3ff;
}
#analyticsContasReceberView .acr-kpi-card--valor {
  --acr-tom: #0284c7;
  --acr-tom-suave: #eff6ff;
}
#analyticsContasReceberView .acr-kpi-card--saldo {
  --acr-tom: #d97706;
  --acr-tom-suave: #fffbeb;
}
#analyticsContasReceberView .acr-kpi-card--danger {
  --acr-tom: #dc2626;
  --acr-tom-suave: #fef2f2;
}
#analyticsContasReceberView .acr-kpi-card--ok {
  --acr-tom: #16a34a;
  --acr-tom-suave: #f0fdf4;
}
#analyticsContasReceberView .acr-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acr-tom);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#analyticsContasReceberView .acr-kpi-card strong {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--acr-tom);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
#analyticsContasReceberView .acr-kpi-card--titulos strong,
#analyticsContasReceberView .acr-kpi-card--clientes strong {
  color: #0f172a;
}
#analyticsContasReceberView .acr-kpi-spark {
  display: block;
  height: 40px;
  margin: auto -0.95rem 0;
}
#analyticsContasReceberView .acr-kpi-spark.is-hidden {
  display: none;
}
#analyticsContasReceberView .acr-kpi-spark canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#analyticsContasReceberView .acr-kpi-meta {
  font-size: 0.72rem;
  font-style: normal;
  color: #94a3b8;
  line-height: 1.25;
}

/* Painel gerencial — grades de blocos */
#analyticsContasReceberView .acr-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin: 0.9rem 0;
  align-items: stretch;
}
#analyticsContasReceberView .acr-dash-grid--bottom {
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
}
#analyticsContasReceberView .acr-dash-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  min-width: 0;
}
@media (max-width: 1400px) {
  #analyticsContasReceberView .acr-dash-grid,
  #analyticsContasReceberView .acr-dash-grid--bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}
#analyticsContasReceberView .acr-dash-grid > section,
#analyticsContasReceberView .acr-dash-side > section {
  padding: 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#analyticsContasReceberView .acr-panel-head {
  margin-bottom: 0.85rem;
}
#analyticsContasReceberView .acr-panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}
#analyticsContasReceberView .acr-panel-sub {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}
#analyticsContasReceberView .acr-panel-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

/* Faixas de atraso (aging) — linhas com barra de proporção */
#analyticsContasReceberView .acr-aging-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  justify-content: center;
}
#analyticsContasReceberView .acr-aging-row {
  --acr-tom: #16a34a;
  display: grid;
  grid-template-columns: 30px minmax(0, 8.5rem) 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}
#analyticsContasReceberView .acr-aging-row--ok {
  --acr-tom: #16a34a;
}
#analyticsContasReceberView .acr-aging-row--warn {
  --acr-tom: #f59e0b;
}
#analyticsContasReceberView .acr-aging-row--alert {
  --acr-tom: #f97316;
}
#analyticsContasReceberView .acr-aging-row--danger {
  --acr-tom: #ef4444;
}
#analyticsContasReceberView .acr-aging-row--critical {
  --acr-tom: #b91c1c;
}
#analyticsContasReceberView .acr-aging-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--acr-tom);
  background: color-mix(in srgb, var(--acr-tom) 12%, #fff);
}
#analyticsContasReceberView .acr-aging-icon svg {
  width: 15px;
  height: 15px;
}
#analyticsContasReceberView .acr-aging-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  line-height: 1.2;
}
#analyticsContasReceberView .acr-aging-pct {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
#analyticsContasReceberView .acr-aging-vals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-aging-vals strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--acr-tom);
  font-variant-numeric: tabular-nums;
}
#analyticsContasReceberView .acr-aging-vals em {
  font-style: normal;
  font-size: 0.68rem;
  color: #94a3b8;
}
@media (max-width: 720px) {
  #analyticsContasReceberView .acr-aging-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  #analyticsContasReceberView .acr-aging-pct,
  #analyticsContasReceberView .acr-aging-bar {
    display: none;
  }
}

/* Rosca de distribuição do saldo */
#analyticsContasReceberView .acr-donut-body {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}
#analyticsContasReceberView .acr-donut-canvas {
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
}
#analyticsContasReceberView .acr-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#analyticsContasReceberView .acr-donut-center strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
#analyticsContasReceberView .acr-donut-center span {
  font-size: 0.66rem;
  color: #94a3b8;
}
#analyticsContasReceberView .acr-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
#analyticsContasReceberView .acr-donut-item {
  display: grid;
  grid-template-columns: 10px auto minmax(0, 1fr);
  grid-template-areas:
    "dot nome nome"
    ".   num  val";
  align-items: center;
  gap: 0.15rem 0.5rem;
}
#analyticsContasReceberView .acr-donut-dot {
  grid-area: dot;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
#analyticsContasReceberView .acr-donut-nome {
  grid-area: nome;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}
#analyticsContasReceberView .acr-donut-num {
  grid-area: num;
  font-size: 0.72rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-donut-val {
  grid-area: val;
  justify-self: end;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Indicadores principais */
#analyticsContasReceberView .acr-ind-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
#analyticsContasReceberView .acr-ind-item {
  --acr-tom: #0284c7;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
#analyticsContasReceberView .acr-ind-item--info {
  --acr-tom: #0284c7;
}
#analyticsContasReceberView .acr-ind-item--warn {
  --acr-tom: #d97706;
}
#analyticsContasReceberView .acr-ind-item--neutral {
  --acr-tom: #7c3aed;
}
#analyticsContasReceberView .acr-ind-item--ok {
  --acr-tom: #16a34a;
}
#analyticsContasReceberView .acr-ind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--acr-tom);
  background: color-mix(in srgb, var(--acr-tom) 12%, #fff);
}
#analyticsContasReceberView .acr-ind-icon svg {
  width: 16px;
  height: 16px;
}
#analyticsContasReceberView .acr-ind-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
#analyticsContasReceberView .acr-ind-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
#analyticsContasReceberView .acr-ind-body strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--acr-tom);
  font-variant-numeric: tabular-nums;
}
#analyticsContasReceberView .acr-ind-meta {
  font-style: normal;
  font-size: 0.66rem;
  color: #94a3b8;
}
#analyticsContasReceberView .acr-ind-side {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Evolução do saldo vencido */
#analyticsContasReceberView .acr-evo-canvas {
  position: relative;
  flex: 1;
  min-height: 150px;
}
#analyticsContasReceberView .acr-evo-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Naturezas em atraso */
#analyticsContasReceberView .acr-nat-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  justify-content: center;
}
#analyticsContasReceberView .acr-nat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.5rem;
}
#analyticsContasReceberView .acr-nat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-nat-pct {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
#analyticsContasReceberView .acr-nat-bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
#analyticsContasReceberView .acr-nat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #ef4444;
}
#analyticsContasReceberView .acr-aging-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
#analyticsContasReceberView .acr-aging-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--acr-tom, #cbd5e1);
}

#analyticsContasReceberView .acr-report {
  padding: 16px;
}
#analyticsContasReceberView .acr-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 0.75rem;
}
#analyticsContasReceberView .acr-report-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
}
#analyticsContasReceberView .acr-report-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-report-params {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
#analyticsContasReceberView .acr-param {
  display: flex;
  gap: 0.35rem;
  font-size: 0.76rem;
  min-width: 0;
}
#analyticsContasReceberView .acr-param dt {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-param dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-top {
  padding: 16px;
}
#analyticsContasReceberView .acr-top-wrap {
  flex: 1;
  max-height: 26rem;
}
#analyticsContasReceberView .acr-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#analyticsContasReceberView .acr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
#analyticsContasReceberView .acr-icon-btn:hover {
  border-color: #15803d;
  color: #15803d;
  background: #f0fdf4;
}
#analyticsContasReceberView .acr-icon-btn svg {
  width: 15px;
  height: 15px;
}
#analyticsContasReceberView .acr-top-foot {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
}
#analyticsContasReceberView .acr-ghost-btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
#analyticsContasReceberView .acr-ghost-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
#analyticsContasReceberView .acr-top-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
#analyticsContasReceberView .acr-top-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
#analyticsContasReceberView .acr-top-sub {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
}
#analyticsContasReceberView .acr-top-order {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-top-order select {
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
}
#analyticsContasReceberView .acr-top-rank {
  width: 3rem;
  font-weight: 700;
  color: #64748b;
}
#analyticsContasReceberView .acr-top-table tbody tr:nth-child(-n + 3) .acr-top-rank {
  color: #b91c1c;
}
#analyticsContasReceberView .acr-top-nome {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
#analyticsContasReceberView .acr-top-valor,
#analyticsContasReceberView .acr-top-dias {
  font-weight: 700;
  color: #b91c1c;
}
#analyticsContasReceberView .acr-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
#analyticsContasReceberView .acr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
#analyticsContasReceberView .acr-table th,
#analyticsContasReceberView .acr-table td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
#analyticsContasReceberView .acr-table th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #475569;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  position: sticky;
  top: 0;
  z-index: 1;
}
#analyticsContasReceberView .acr-table td.num,
#analyticsContasReceberView .acr-table th.num {
  text-align: right;
}
#analyticsContasReceberView .acr-table td.acr-num-neg {
  color: #b91c1c;
  font-weight: 600;
}
#analyticsContasReceberView .acr-table tbody tr:hover {
  background: #f8fafc;
}
#analyticsContasReceberView .acr-grupo td {
  background: #eef2ff;
  color: #1e293b;
  font-weight: 700;
  border-top: 1px solid #c7d2fe;
  border-bottom: 1px solid #c7d2fe;
}
#analyticsContasReceberView .acr-grupo:hover td {
  background: #eef2ff;
}
#analyticsContasReceberView .acr-subtotal td {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}
#analyticsContasReceberView .acr-subtotal:hover td {
  background: #f8fafc;
}
#analyticsContasReceberView .acr-total-geral td {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 800;
  border: none;
  position: sticky;
  bottom: 0;
}
#analyticsContasReceberView .acr-empty {
  text-align: center;
  color: #64748b;
  padding: 1.5rem !important;
  white-space: normal !important;
}
#analyticsContasReceberView .acr-empty--error {
  color: #b91c1c;
}
#analyticsContasReceberView .acr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#analyticsContasReceberView .acr-pill--aberto {
  background: #eff6ff;
  color: #1d4ed8;
}
#analyticsContasReceberView .acr-pill--vencido {
  background: #fef2f2;
  color: #b91c1c;
}
#analyticsContasReceberView .acr-pill--baixado {
  background: #f0fdf4;
  color: #15803d;
}
#analyticsContasReceberView .acr-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
#analyticsContasReceberView .acr-pager-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
#analyticsContasReceberView .acr-pager-btn:hover:not(:disabled) {
  background: #f8fafc;
}
#analyticsContasReceberView .acr-pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#analyticsContasReceberView .acr-btn-excel {
  border-color: #15803d;
  background: #166534;
  color: #fff;
}
#analyticsContasReceberView .acr-btn-excel:hover:not(:disabled) {
  background: #14532d;
}
#analyticsContasReceberView .acr-pager-info {
  font-size: 0.8rem;
  color: #64748b;
}

/* Impressão: apenas o corpo do relatório. */
@media print {
  body.acr-printing #analyticsContasReceberView .acr-no-print,
  body.acr-printing #analyticsContasReceberView .acr-filters {
    display: none !important;
  }
  body.acr-printing #analyticsContasReceberView .acr-report,
  body.acr-printing #analyticsContasReceberView .acr-top,
  body.acr-printing #analyticsContasReceberView .acr-aging,
  body.acr-printing #analyticsContasReceberView .acr-donut,
  body.acr-printing #analyticsContasReceberView .acr-ind,
  body.acr-printing #analyticsContasReceberView .acr-evo,
  body.acr-printing #analyticsContasReceberView .acr-nat {
    border: none;
    box-shadow: none;
    padding: 0;
    break-inside: avoid;
  }
  body.acr-printing #analyticsContasReceberView .acr-dash-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.2rem;
  }
  body.acr-printing #analyticsContasReceberView .acr-top {
    page-break-after: always;
  }
  body.acr-printing #analyticsContasReceberView .acr-top-wrap {
    max-height: none;
  }
  body.acr-printing #analyticsContasReceberView .acr-table-wrap {
    overflow: visible;
    border: none;
  }
  body.acr-printing #analyticsContasReceberView .acr-table {
    font-size: 0.62rem;
  }
  body.acr-printing #analyticsContasReceberView .acr-table th {
    position: static;
  }
  body.acr-printing #analyticsContasReceberView .acr-total-geral td {
    position: static;
    background: #e2e8f0;
    color: #0f172a;
  }
  body.acr-printing #analyticsContasReceberView .acr-grupo td,
  body.acr-printing #analyticsContasReceberView .acr-subtotal td {
    background: #fff;
  }
}
