/* ApexCharts — alinhamento ao tema Umbrella (dark/light). */

.apexcharts-tooltip {
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font), 'Segoe UI', sans-serif !important;
}

.apexcharts-tooltip.apexcharts-theme-dark,
[data-theme="dark"] .apexcharts-tooltip {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-1) !important;
  color: var(--text-1) !important;
}

.apexcharts-tooltip.apexcharts-theme-light,
[data-theme="light"] .apexcharts-tooltip {
  background: var(--surface-1) !important;
  border: 1px solid var(--border-1) !important;
  color: var(--text-1) !important;
}

.apexcharts-tooltip .apexcharts-tooltip-title {
  font-family: var(--font), 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--border-1) !important;
}

[data-theme="dark"] .apexcharts-tooltip .apexcharts-tooltip-title {
  background: var(--surface-3) !important;
  color: var(--text-1) !important;
}

[data-theme="light"] .apexcharts-tooltip .apexcharts-tooltip-title {
  background: var(--surface-2) !important;
  color: var(--text-1) !important;
}

.apexcharts-tooltip .apexcharts-tooltip-text,
.apexcharts-tooltip .apexcharts-tooltip-text-y-label,
.apexcharts-tooltip .apexcharts-tooltip-text-y-value,
.apexcharts-tooltip .apexcharts-tooltip-text-z-value,
.apexcharts-tooltip .apexcharts-tooltip-marker + * {
  color: var(--text-1) !important;
  font-family: var(--font), 'Segoe UI', sans-serif !important;
}

.apexcharts-tooltip .apexcharts-tooltip-text-y-label {
  color: var(--text-2) !important;
}

.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  border-radius: var(--r-sm) !important;
  font-family: var(--font), 'Segoe UI', sans-serif !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip,
[data-theme="dark"] .apexcharts-yaxistooltip {
  background: var(--surface-2) !important;
  color: var(--text-1) !important;
  border: 1px solid var(--border-1) !important;
  box-shadow: var(--shadow-sm) !important;
}

[data-theme="light"] .apexcharts-xaxistooltip,
[data-theme="light"] .apexcharts-yaxistooltip {
  background: var(--surface-1) !important;
  color: var(--text-1) !important;
  border: 1px solid var(--border-1) !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip:before,
[data-theme="dark"] .apexcharts-xaxistooltip:after,
[data-theme="dark"] .apexcharts-yaxistooltip:before,
[data-theme="dark"] .apexcharts-yaxistooltip:after {
  border-color: transparent !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: var(--border-1) !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: var(--surface-2) !important;
}

.apexcharts-legend-text {
  color: var(--text-1) !important;
}

.apexcharts-gridline {
  stroke-opacity: 0.55;
}

.apexcharts-canvas .apexcharts-tooltip-series-group.apexcharts-active,
.apexcharts-canvas .apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px !important;
}
