/* ==========================================================
   BI DE VENDAS — VISUAL SEGURO
   Apenas estética. Não altera dados, rotas ou filtros.
========================================================== */

.moov-bi-vendas-safe {
  --moov-purple: #641FB2;
  --moov-purple-2: #8D22D9;
  --moov-green: #54D39A;
  --moov-ink: #101828;
  --moov-muted: #667085;
}

.moov-bi-vendas-safe > section,
.moov-bi-vendas-safe > article,
.moov-bi-vendas-safe > div {
  box-sizing: border-box;
}

/* Cabeçalhos grandes da página */
.moov-bi-vendas-safe h1 {
  letter-spacing: -0.04em;
}

.moov-bi-vendas-safe h2,
.moov-bi-vendas-safe h3 {
  color: var(--moov-ink);
}

/* Cards principais */
.moov-bi-vendas-safe .moov-bi-card-safe {
  border-radius: 24px !important;
  border: 1px solid rgba(100, 31, 178, 0.12) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06) !important;
}

/* Bloco de filtros */
.moov-bi-vendas-safe .moov-bi-filter-safe {
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(84, 211, 154, .16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fbf8ff 62%, #f7fffc 100%) !important;
  border: 1px solid rgba(100, 31, 178, .13) !important;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06) !important;
  padding: 22px !important;
  margin-bottom: 22px !important;
}

/* Inputs e selects */
.moov-bi-vendas-safe input,
.moov-bi-vendas-safe select {
  min-height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid #D0D5DD !important;
  background: #ffffff !important;
  color: var(--moov-ink) !important;
  font-weight: 750 !important;
}

.moov-bi-vendas-safe input:focus,
.moov-bi-vendas-safe select:focus {
  outline: none !important;
  border-color: var(--moov-purple-2) !important;
  box-shadow: 0 0 0 4px rgba(141, 34, 217, .12) !important;
}

/* Botões */
.moov-bi-vendas-safe button {
  border-radius: 14px !important;
  font-weight: 900 !important;
}

/* KPIs */
.moov-bi-vendas-safe .moov-bi-kpi-safe {
  min-height: 128px !important;
  border-radius: 22px !important;
  border: 1px solid #DDE2EE !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .05) !important;
  overflow: hidden !important;
}

.moov-bi-vendas-safe .moov-bi-kpi-safe strong,
.moov-bi-vendas-safe .moov-bi-kpi-safe b {
  color: var(--moov-ink) !important;
}

/* Tabelas */
.moov-bi-vendas-safe table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #DDE2EE !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.moov-bi-vendas-safe table th {
  padding: 14px 16px !important;
  background: linear-gradient(90deg, #F4ECFF, #F8FBFF) !important;
  color: var(--moov-purple) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .065em !important;
  text-align: left !important;
  border-bottom: 1px solid #DDE2EE !important;
}

.moov-bi-vendas-safe table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #EAECF0 !important;
  color: #344054 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
}

.moov-bi-vendas-safe table tbody tr:nth-child(even) td {
  background: #FAFBFF !important;
}

.moov-bi-vendas-safe table tbody tr:hover td {
  background: #F8F1FF !important;
}

/* Gráficos */
.moov-bi-vendas-safe canvas {
  max-width: 100% !important;
}

/* Responsivo */
@media (max-width: 1100px) {
  .moov-bi-vendas-safe table {
    min-width: 900px !important;
  }

  .moov-bi-vendas-safe .moov-bi-table-wrap-safe {
    overflow-x: auto !important;
  }
}
