/* ══════════════════════════════════════════════════════════════════
   NEXUSSTOCK 360 - CHARTS & RECEIPT CSS
   ══════════════════════════════════════════════════════════════════ */

/* ── CHART WRAPPERS ──────────────────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  height: clamp(220px, 20vw, 360px) !important;
}

.chart-container canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

.chart-container-sm {
  height: 200px;
}

.chart-container-lg {
  height: 360px;
}

.tasa-chart-container {
  height: auto !important;
  min-height: 340px;
  flex: 1 1 auto;
}

.tasa-chart-container canvas {
  position: absolute;
  inset: 0;
}

.tasas-chart-empty {
  min-height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
}

.tasas-chart-empty svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

@media (max-width: 640px) {
  .chart-container {
    height: 220px !important;
  }

  .tasa-chart-container {
    min-height: 260px;
  }
}

@media (min-width: 1600px) {
  .chart-container {
    height: 300px !important;
  }
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chart-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}
