/* Estilos adicionales para métricas avanzadas y analytics */

/* Metricas adicionales y colores claros y legibles */
.stat-conversion {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
}

.stat-average {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
}

.stat-day {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: white;
}

.stat-package {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
}

.stat-sublabel {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Top clientes */
.top-clientes-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.top-clientes-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-clientes-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.top-clientes-table th,
.top-clientes-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.top-clientes-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.top-clientes-table tbody tr:hover {
  background: #f9fafb;
}

.top-clientes-table tbody tr:last-child td {
  border-bottom: none;
}

.text-success {
  color: #10b981;
  font-weight: 600;
}

.text-danger {
  color: #ef4444;
  font-weight: 600;
}

/* Análisis de cancelaciones */
.cancelaciones-wrapper {
  margin-top: 1rem;
}

.cancelaciones-summary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.cancelaciones-summary h4 {
  margin: 0;
  font-size: 1.25rem;
}

.cancelaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cancelaciones-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cancelaciones-card h5 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #7c3aed;
  padding-bottom: 0.5rem;
}

.cancelaciones-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cancelaciones-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancelaciones-card li:last-child {
  border-bottom: none;
}

.cancelaciones-card strong {
  color: #7c3aed;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cancelaciones-grid {
    grid-template-columns: 1fr;
  }

  .top-clientes-table {
    font-size: 0.85rem;
    min-width: 550px;
    /* Permite scroll horizontal */
  }

  .top-clientes-table th,
  .top-clientes-table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }

  /* Asegurar que el wrapper de cancelaciones también tenga scroll */
  .cancelaciones-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}