:root {
  --bs-primary: #fdbe15;
  --bs-primary-dark: #d7a00f;
  --bs-input-border: rgba(148, 163, 184, 0.18);
  --bs-muted: #64748b;
}

/* Confirmación header */
.booking-confirmation {
  text-align: center;
  background: #fdbe15;
  color: white;
  padding: 40px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.bs-pagination-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 8px;
  margin: 12px 0;
}

/* Base pill for links and numbers */
.bs-pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: transform 180ms cubic-bezier(0.2, 0, 0.2, 1),
    box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  user-select: none;
}

/* Hover / interactive */
.bs-pagination-links a.page-numbers:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

/* Current page */
.bs-pagination-links .page-numbers.current {
  background: #fdbe15;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.16);
  transform: none;
  cursor: default;
}

/* Dots (ellipsis) */
.bs-pagination-links .page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #9ca3af;
  min-width: auto;
  height: auto;
  padding: 0 6px;
  cursor: default;
  font-weight: 700;
}

/* Prev / Next emphasis */
.bs-pagination-links a.page-numbers.prev,
.bs-pagination-links a.page-numbers.next {
  padding: 8px 14px;
  min-width: auto;
  border-radius: 12px;
  background: #fdbe15;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.12);
}

.bs-pagination-links a.page-numbers.prev:hover,
.bs-pagination-links a.page-numbers.next:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(102, 126, 234, 0.18);
}

/* Disabled state */
.bs-pagination-links .page-numbers[disabled],
.bs-pagination-links .page-numbers.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
  box-shadow: none;
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.6);
}

/* Focus ring for accessibility */
.bs-pagination-links .page-numbers:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .bs-pagination-links {
    gap: 6px;
    padding: 8px 6px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bs-pagination-links .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .bs-pagination-links a.page-numbers.prev,
  .bs-pagination-links a.page-numbers.next {
    padding: 6px 10px;
    font-size: 13px;
  }
}

.bs-filter-actions {
  margin-top: 20px;
}

.bs-filter-actions .button {
  background: #fdbe15;
  border: none;
  color: #000;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  cursor: pointer;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 180ms cubic-bezier(0.2, 0, 0.2, 1),
    box-shadow 180ms ease, filter 180ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    filter: saturate(1.05);
    background: #000;
    color: #fff;
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    filter: brightness(0.98);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    position: relative;
    z-index: 2;
  }

  &:disabled,
  &[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
  }
}

.button-primary {
  background: #fdbe15;
  border: none;
  color: #000;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  cursor: pointer;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 180ms cubic-bezier(0.2, 0, 0.2, 1),
    box-shadow 180ms ease, filter 180ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    filter: saturate(1.05);
    background: #000;
    color: #fff;
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    filter: brightness(0.98);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    position: relative;
    z-index: 2;
  }

  &:disabled,
  &[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
  }
}

.booking-confirmation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><linearGradient id="a" x1="0" x2="0" y1="0" y2="1"><stop offset="0" stop-color="%23fff" stop-opacity="0.1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></linearGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>')
    repeat-x;
  pointer-events: none;
}

.booking-confirmation h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

/* Mensaje cuando no hay reservas */
.booking-no-results {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.booking-no-results::before {
  content: "📅";
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
  opacity: 0.7;
}

.booking-no-results h3 {
  color: #475569;
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.booking-error {
  background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid #ef4444;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Estilos para las cards de reservas */
.booking-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 0 12px;
}

@media (min-width: 640px) {
  .booking-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .booking-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0;
  }
}

.booking-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
}

.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-card:hover::before {
  opacity: 1;
}

.booking-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.booking-card-header {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  padding: 24px 24px 20px 24px;
  position: relative;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.booking-card-header h3 {
  color: #1e293b !important;
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.booking-date {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.3px;
}

.booking-status {
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
  border: 1px solid rgba(203, 213, 225, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-card-body {
  padding: 10px;
}

/* Resumen de la reserva */
.booking-summary {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.booking-summary p {
  margin: 2px 0;
  font-size: 13px;
}

.booking-datetime {
  color: #6b7280;
  font-weight: 500;
}

/* ID de reserva */
.booking-id {
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 3px solid #3b82f6;
  font-family: monospace;
  font-size: 12px;
}

/* Secciones de detalles */
.booking-details,
.booking-contact,
.booking-location {
  margin-bottom: 4px;
}

.detail-section {
  margin-bottom: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border-left: 2px solid #000;
}

.detail-section h4 {
  margin: 0 0 3px 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.detail-section p {
  margin: 1px 0;
  font-size: 12px;
  line-height: 1.5;
}

.detail-section small {
  color: #9ca3af;
  font-size: 10px;
  font-style: italic;
  margin-top: 3px;
  display: block;
}

/* Detalles técnicos */
.booking-tech-details {
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #64748b;
}

.booking-tech-details h4 {
  color: #475569;
  margin-bottom: 6px;
  font-size: 12px;
}

.booking-tech-details p {
  font-family: monospace;
  font-size: 11px;
  margin: 2px 0;
}

/* Estilos anteriores mantenidos */
.info-item {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.info-item strong {
  color: #374151;
  min-width: 100px;
  flex-shrink: 0;
}

.info-item a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

.booking-description {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin-top: 15px;
}

.booking-description strong {
  color: #374151;
  display: block;
  margin-bottom: 8px;
}

.booking-description p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.booking-card-footer {
  background: #f9fafb;
  padding: 5px 10px;
  border-top: 1px solid #e5e7eb;
}

.booking-card-footer small {
  color: #9ca3af;
  font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-cards-container {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0;
  }

  .booking-card-header {
    padding: 6px 8px;
  }

  .booking-card-body {
    padding: 8px;
  }

  .detail-section {
    padding: 4px 6px;
    margin-bottom: 4px;
  }

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-item strong {
    min-width: auto;
  }
}

/* Animación de entrada */
.booking-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bs-status-badge.bs-status-completed,
.bs-status-badge.bs-status-aprobada {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.bs-status-badge.bs-status-pending,
.bs-status-badge.bs-status-pendiente {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  border-color: #f59e0b !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.bs-status-badge.bs-status-partial {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.bs-status-badge.bs-status-canceled,
.bs-status-badge.bs-status-cancelada {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.bs-status-badge.bs-status-unknown,
.bs-status-badge.bs-status-failed {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  color: white !important;
  border-color: #6b7280 !important;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
}

/* Base styles for bs-status-badge */
.bs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
  transition: all 0.2s ease;
}

.bs-status-badge .bs-status-cancelada {
  background-color: #ef4444 !important;
  color: white !important;
}

/* Estados vacíos */
.booking-cards-container:empty::after {
  content: "No hay reservas disponibles en este momento.";
  display: block;
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-style: italic;
}

/* Indicador de carga */
.booking-loading {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.booking-loading::before {
  content: "⏳";
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

/* Estilos específicos para WhatsApp */
.detail-section a[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.detail-section a[href*="wa.me"]:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none !important;
}

/* Mejorar espaciado en secciones de detalles */
.detail-section p {
  margin: 6px 0;
}

.detail-section p strong {
  color: #4b5563;
}

/* Hacer el header más compacto */
.booking-card-header {
  padding: 12px 16px;
}

.booking-card-header h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #000 !important;
}

/* === ESTILOS PARA TABLA DASHBOARD === */

/* === DISEÑO RENOVADO === */
.booking-dashboard,
.bs-dashboard-container {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin: 40px 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header minimalista */
.dashboard-header,
.bs-dashboard-header {
  background: #ffffff;
  padding: 40px 32px 32px 32px;
  color: #0f172a;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
}

.dashboard-header h1,
.dashboard-header h2,
.bs-dashboard-title {
  color: #0f172a !important;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  position: relative;
  line-height: 1.2;
}

.dashboard-header h1::after,
.dashboard-header h2::after,
.bs-dashboard-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
}

/* Contenedor principal minimalista */
@media (max-width: 768px) {
  .booking-dashboard,
  .bs-dashboard-container {
    margin: 24px 0;
    border-radius: 16px;
    overflow-x: hidden;
  }

  .dashboard-header,
  .bs-dashboard-header {
    padding: 24px 20px;
  }

  .dashboard-header h1,
  .dashboard-header h2,
  .bs-dashboard-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .booking-dashboard,
  .bs-dashboard-container {
    margin: 16px 0;
    border-radius: 12px;
  }

  .dashboard-header,
  .bs-dashboard-header {
    padding: 20px 16px;
  }

  .dashboard-header h1,
  .dashboard-header h2,
  .bs-dashboard-title {
    font-size: 20px;
  }
}

@media (min-width: 640px) {
  .dashboard-header {
    padding: 20px 24px;
  }

  .dashboard-header h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {
  .dashboard-header {
    padding: 25px 30px;
  }

  .dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

/* === ESTADÍSTICAS RENOVADAS === */
.bs-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0;
  position: relative;
}

.bs-stats-grid.bs-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.bs-stats-grid.bs-loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: bs-spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

@keyframes bs-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.bs-stat-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bs-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
  transition: all 0.3s ease;
}

.bs-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
}

.bs-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.bs-stat-icon .emoji {
  width: 32px;
  height: 32px;
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

.bs-stat-content {
  flex: 1;
  text-align: left;
}

.bs-stat-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: #0f172a;
  letter-spacing: -1px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.bs-stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Variaciones por tipo de estadística */
.bs-stat-total::before {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.bs-stat-total:hover .bs-stat-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.1) rotate(5deg);
}

.bs-stat-pending::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bs-stat-pending:hover .bs-stat-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  transform: scale(1.1) rotate(-5deg);
}

.bs-stat-partial::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.bs-stat-partial:hover .bs-stat-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  transform: scale(1.1) rotate(5deg);
}

.bs-stat-completed::before {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.bs-stat-completed:hover .bs-stat-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  transform: scale(1.1) rotate(-5deg);
}

/* Responsive para estadísticas */
@media (max-width: 768px) {
  .bs-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }

  .bs-stat-card {
    padding: 20px 16px;
    gap: 16px;
  }

  .bs-stat-icon {
    width: 56px;
    height: 56px;
  }

  .bs-stat-icon .emoji {
    width: 28px;
    height: 28px;
  }

  .bs-stat-number {
    font-size: 28px;
  }

  .bs-stat-label {
    font-size: 12px;
  }
}

@media (min-width: 640px) {
  .stat-item {
    padding: 14px 12px;
  }

  .stat-number {
    font-size: 19px;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .stat-item {
    padding: 16px 20px;
  }

  .stat-number {
    font-size: 20px;
  }
}

/* Table Container - Mobile First */
.booking-table-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Contenedor específico para móvil */
@media (max-width: 768px) {
  .booking-table-container {
    margin: 0 -15px; /* Compensar padding del contenedor padre */
    padding: 0 15px;
    max-width: calc(100vw - 30px);
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .booking-table-container {
    margin: 0 -10px;
    padding: 0 10px;
    max-width: calc(100vw - 20px);
  }
}

/* Main Table - Mobile Optimized */
.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px; /* Ancho mínimo para forzar scroll horizontal */
}

/* Asegurar que la tabla no se salga en móvil */
@media (max-width: 768px) {
  .booking-table {
    min-width: 700px; /* Forzar scroll horizontal en móvil */
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .booking-table {
    min-width: 650px; /* Ancho mínimo para móviles pequeños */
    font-size: 11px;
  }
}

/* Mobile: Ocultar columnas menos importantes */
@media (max-width: 767px) {
  .booking-table {
    font-size: 12px;
  }

  .booking-table th,
  .booking-table td {
    padding: 8px 6px;
    vertical-align: top;
  }

  /* Ocultar algunas columnas en mobile */
  .booking-table th:nth-child(4),
  .booking-table td:nth-child(4) {
    display: none;
  }
}

@media (min-width: 768px) {
  .booking-table {
    font-size: 14px;
  }
}

.booking-table thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  padding: 16px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.booking-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.booking-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  background: #ffffff;
  transition: all 0.2s ease;
}

.booking-row {
  transition: background-color 0.2s ease;
}

.booking-row:hover {
  background-color: #f9fafb;
}

.booking-row:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
}

.booking-row:nth-child(even) {
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.booking-row:nth-child(even):hover {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%) !important;
}

/* Status Badges Mejorados */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
  transition: all 0.2s ease;
}

/* Estados específicos */
.status-badge.pagada,
.status-badge.completamente-pagadas {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.pendiente,
.status-badge.pendientes {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.parcial,
.status-badge.pagos-parciales {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.status-badge.aprobada {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.status-badge.cancelada {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Iconos para estados */
.status-badge.pagada::after {
  content: "✓";
}
.status-badge.pendiente::after {
  content: "⏳";
}
.status-badge.parcial::after {
  content: "⚡";
}
.status-badge.aprobada::after {
  content: "👍";
}
.status-badge.cancelada::after {
  content: "✖";
}

/* Client Info Mejorada */
.client-info {
  position: relative;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.client-info:hover {
  background: #f9fafb;
}

.client-info strong {
  display: block;
  color: #1e293b;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.client-info strong::before {
  content: "👤";
  margin-right: 6px;
  font-size: 12px;
}

.client-info small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

/* Montos destacados */
.booking-table td:nth-child(4), /* Monto Total */
.booking-table td:nth-child(5) {
  /* Saldo Restante */
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.booking-table td:nth-child(4)::before {
  content: "💰";
  margin-right: 6px;
  font-size: 12px;
}

.booking-table td:nth-child(5)::before {
  content: "💳";
  margin-right: 6px;
  font-size: 12px;
}

/* ID de reserva destacado */
.booking-table td:first-child {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: #667eea;
  position: relative;
}

.booking-table td:first-child::before {
  content: "#";
  color: #94a3b8;
  margin-right: 2px;
}

/* Event Info */
.event-info strong {
  display: block;
  color: #111827;
  margin-bottom: 3px;
  font-size: 14px;
}

.event-type {
  display: inline-block;
  background: #f8fafc;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* DateTime Info */
.datetime-info strong {
  display: block;
  color: #111827;
  margin-bottom: 2px;
  font-size: 14px;
}

.datetime-info small {
  color: #6b7280;
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}

.upcoming-badge {
  display: inline-block;
  background: #f8fafc;
  color: #64748b;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  margin-left: 4px;
}

.no-date {
  color: #9ca3af;
  font-style: italic;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f9fafb;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.whatsapp-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3b82f6 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  font-size: 12px;
  transition: all 0.2s ease;
}

.email-link:hover {
  background: rgba(59, 130, 246, 0.2);
  text-decoration: none;
}

/* Location Info */
.location-info {
  color: #6b7280;
  font-size: 12px;
}

.no-location {
  color: #9ca3af;
  font-style: italic;
  font-size: 12px;
}

/* Action Buttons Mejorados */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #475569;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.action-btn:hover::before {
  left: 100%;
}

@media (min-width: 640px) {
  .action-btn {
    padding: 4px 8px;
    min-height: 28px;
    font-size: 11px;
  }
}

.action-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.whatsapp-btn {
  border-color: rgba(34, 197, 94, 0.3);
}

.whatsapp-btn::after {
  content: "📱";
  font-size: 14px;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border-color: #22c55e !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4) !important;
}

.details-btn {
  border-color: rgba(59, 130, 246, 0.3);
}

.details-btn::after {
  content: "👁";
  font-size: 14px;
}

.details-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: #3b82f6 !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Expanded Details */
.booking-details-row {
  background: #f8fafc !important;
}

.expanded-details {
  padding: 20px;
  margin: 0 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.detail-group h4 {
  color: #374151;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

.detail-group p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.4;
}

.detail-group p strong {
  color: #6b7280;
  font-weight: 500;
}

/* No Results */
.booking-table-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 20px 0;
}

.no-data-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.booking-table-no-results h3 {
  color: #374151;
  font-size: 24px;
  margin-bottom: 10px;
}

.booking-table-no-results p {
  color: #6b7280;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 20px 15px;
  }

  .dashboard-header h2 {
    font-size: 22px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-item {
    padding: 10px;
  }

  .stat-number {
    font-size: 18px;
  }

  .booking-table-container {
    padding: 0 10px;
  }

  .booking-table {
    font-size: 12px;
  }

  .booking-table thead th,
  .booking-table tbody td {
    padding: 10px 8px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .expanded-details {
    padding: 15px;
    margin: 0 10px;
  }
}

/* === FILTROS MINIMALISTAS === */
.booking-filters,
.bs-filters-section {
  background: #fafbfc;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

/* Desktop: máximo 4 columnas por fila */
@media (min-width: 1200px) {
  .filter-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: máximo 3 columnas */
@media (min-width: 768px) and (max-width: 1199px) {
  .filter-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 1 columna */
@media (max-width: 767px) {
  .filter-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .clear-filters-btn {
    width: 100%;
    margin-top: 16px;
    align-self: stretch;
  }

  .booking-filters {
    padding: 20px 16px;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
  display: block;
}

.filter-group select,
.filter-group input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  background: #ffffff;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group select::after,
.filter-group input::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #667eea, #764ba2) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-group input[type="date"] {
  background-image: none;
  padding-right: 16px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: #9ca3af;
}

.filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.clear-filters-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid #667eea;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
  text-align: center;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, #5b6fd8 0%, #6b4c96 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.clear-filters-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Tablet y Desktop */
@media (min-width: 640px) {
  .booking-filters {
    padding: 20px 24px;
  }

  .filter-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .clear-filters-btn {
    margin-top: 0;
    align-self: end;
  }
}

@media (min-width: 768px) {
  .filter-row {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }

  .filter-group select,
  .filter-group input {
    padding: 10px 12px;
    font-size: 14px;
    padding-right: 36px;
  }

  .filter-group input[type="date"] {
    padding-right: 12px;
  }

  .clear-filters-btn {
    padding: 10px 16px;
    font-size: 13px;
    margin-top: 0;
    white-space: nowrap;
  }
}

/* Estados - Mobile First */
.status-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.status-badge.cancelada {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cancel-btn {
  background: #ffffff;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 28px;
}

.cancel-btn:hover {
  background: #fef2f2;
}

.cancel-btn:active {
  background: #fee2e2;
}

/* Tablet y Desktop */
@media (min-width: 640px) {
  .status-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .cancel-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-height: auto;
  }
}

.no-contact {
  color: #9ca3af;
  font-style: italic;
  font-size: 12px;
}

/* Mobile específico */
@media (max-width: 479px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-item {
    padding: 10px 8px;
  }

  .stat-number {
    font-size: 16px;
  }

  .stat-label {
    font-size: 10px;
  }

  .booking-table thead th:nth-child(n + 5) {
    display: none;
  }

  .booking-table tbody td:nth-child(n + 5) {
    display: none;
  }

  .client-info,
  .event-info,
  .datetime-info {
    line-height: 1.2;
  }

  .client-info strong,
  .event-info strong,
  .datetime-info strong {
    font-size: 11px;
  }

  .client-info small,
  .datetime-info small {
    font-size: 9px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .action-btn {
    width: 100%;
    min-height: 32px;
  }
}

/* === ESTILOS PARA FUNCIONALIDADES JS === */

/* Tabla móvil */
.bs-mobile-table {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1) !important;
}

.bs-mobile-table .bs-reservas-table {
  min-width: 700px !important;
  width: auto !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Contenedor padre en móvil */
@media (max-width: 768px) {
  .bs-mobile-table {
    margin: 0 -15px !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .bs-mobile-table .bs-reservas-table {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

/* Indicador visual de scroll */
.bs-mobile-table::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.1) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bs-mobile-table:hover::after {
  opacity: 1;
}

/* Estilos mejorados para la tabla principal */
.bs-reservas-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin: 20px 0;
}

.bs-reservas-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.bs-reservas-table thead th {
  padding: 18px 16px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.bs-reservas-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.bs-reservas-table thead th:last-child {
  border-radius: 0 12px 0 0;
}

.bs-reservas-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f3f4f6;
}

.bs-reservas-table tbody tr:hover {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.bs-reservas-table tbody tr:last-child {
  border-bottom: none;
}

.bs-reservas-table tbody td {
  padding: 16px;
  vertical-align: middle;
  color: #374151;
  font-size: 14px;
}

.bs-reservas-table .bs-col-id {
  font-weight: 700;
  color: #667eea;
}

.bs-reservas-table .bs-cliente-nombre {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.bs-reservas-table .bs-cliente-email {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
  cursor: pointer;
}

.bs-reservas-table .bs-cliente-telefono {
  font-size: 12px;
  color: #6b7280;
}

/* Estilos para el asesor */
.bs-asesor-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bs-asesor-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.bs-asesor-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Si no hay asesor asignado - usar clases específicas ya que :contains no es estándar */
.bs-asesor-badge.sin-asignar {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.bs-reservas-table .bs-monto,
.bs-reservas-table .bs-saldo {
  font-weight: 700;
  font-size: 15px;
}

.bs-reservas-table .bs-saldo-cero {
  color: #10b981;
}

.bs-reservas-table .bs-fecha-creacion {
  font-size: 13px;
  color: #6b7280;
}

.bs-reservas-table .bs-btn-ver {
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bs-reservas-table .bs-btn-ver:hover {
  transform: translateY(-2px);
  color: #000;
  text-decoration: none;
}

/* Indicador de scroll */
.bs-scroll-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  display: none;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  max-width: 90vw;
  text-align: center;
  transition: all 0.3s ease;
}

.bs-scroll-indicator.show {
  animation: fadeInUp 0.3s ease-out;
}

.bs-scroll-indicator.pulse {
  animation: fadeInUp 0.5s ease-out, pulse-gentle 2s infinite 0.5s;
}

@keyframes pulse-gentle {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

/* Validación de fechas */
.bs-invalid-date {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.bs-date-warning {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Botones de rango rápido mejorados */
.bs-quick-dates {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.bs-quick-dates-label {
  width: 100%;
  margin-bottom: 12px;
  color: #1e293b;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
}

.bs-quick-date {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  border: 2px solid rgba(102, 126, 234, 0.2) !important;
  color: #475569 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.bs-quick-date::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.bs-quick-date:hover::before {
  left: 100%;
}

.bs-quick-date:hover {
  background: #fdbe15;
  color: white !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
}

.bs-quick-date:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Feedback visual para copiar */
.bs-copied {
  background-color: #d4edda !important;
  transition: background-color 0.3s ease;
}

/* Hover en filas de tabla */
.booking-row:hover,
.bs-reserva-row:hover {
  background-color: #f8fafc !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Estados de focus mejorados */
.filter-group input:focus,
.filter-group select:focus {
  transform: translateY(-1px) !important;
}

/* === PAGINACIÓN ELEGANTE === */
.tablenav {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 20px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0 0 20px 20px;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.pagination-links a,
.pagination-links .current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
}

.pagination-links a:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #1f2937;
}

.pagination-links .current {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  font-weight: 600;
}

.pagination-links .prev-page::before {
  content: "←";
  margin-right: 4px;
}

.pagination-links .next-page::after {
  content: "→";
  margin-left: 4px;
}

.pagination-links .first-page::before {
  content: "⇤";
  margin-right: 4px;
}

.pagination-links .last-page::after {
  content: "⇥";
  margin-left: 4px;
}

/* Información de paginación */
.displaying-num {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  margin: 0 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Responsive para elementos JS */
@media (max-width: 640px) {
  .bs-quick-dates {
    gap: 4px;
    padding: 12px;
  }

  .bs-quick-date {
    font-size: 10px !important;
    padding: 6px 10px !important;
  }

  .bs-scroll-indicator {
    bottom: 60px;
    padding: 8px 16px;
    font-size: 12px;
    max-width: calc(100vw - 40px);
  }

  .pagination-links a,
  .pagination-links .current {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .tablenav {
    padding: 16px;
  }

  .displaying-num {
    font-size: 12px;
    margin: 0 8px;
    padding: 8px 12px;
  }
}

/* Contenedor general para evitar desbordamiento */
.wrap,
.wp-admin,
body {
  overflow-x: hidden !important;
}

/* Asegurar que ningún elemento se salga */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Contenedor de tabla específico */
.booking-table-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .booking-table-wrapper {
    margin: 0 -15px;
    padding: 0 15px;
  }

  /* Estilos específicos para el contenedor de WordPress */
  .wp-admin .booking-dashboard,
  .wp-admin .booking-table-container {
    max-width: calc(100vw - 40px) !important;
  }
}

/* Filters row layout */
.bs-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.bs-filters-row .bs-filter-group {
  flex: 1 1 calc(33.333% - 8px); /* Máximo 3 columnas por fila */
  min-width: 200px;
}

/* Responsive para tablets y mobile */
@media (max-width: 768px) {
  .bs-filters-row .bs-filter-group {
    flex: 1 1 calc(50% - 6px); /* 2 columnas en tablet */
  }
}

@media (max-width: 480px) {
  .bs-filters-row .bs-filter-group {
    flex: 1 1 100%; /* 1 columna en mobile */
  }
}

/* Single filter group */
.bs-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Label */
.bs-filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  display: block;
}

/* Inputs & selects */
.bs-filter-group input[type="text"],
.bs-filter-group input[type="date"],
.bs-filter-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--bs-input-border);
  background: #ffffff;
  font-size: 14px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.2, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder color */
.bs-filter-group input::placeholder {
  color: #9aa4b2;
}

/* Focus state */
.bs-filter-group input:focus,
.bs-filter-group select:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.06),
    0 0 0 4px rgba(253, 190, 21, 0.08);
  transform: translateY(-1px);
}

/* Replace default date input arrow on some browsers */
.bs-filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(20%) sepia(60%) saturate(300%) hue-rotate(330deg)
    brightness(95%);
  opacity: 0.85;
  cursor: pointer;
}

/* Quick dates area */
.bs-quick-dates {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
  background: linear-gradient(145deg, #fff 0%, #fbfbfb 100%);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  margin-left: 4px;
}

/* Quick dates label */
.bs-quick-dates-label {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 6px;
  padding-left: 6px;
}

/* Quick date buttons (secondary) */
.button-secondary.bs-quick-date {
  background: #ffffff;
  border: 2px solid rgba(102, 126, 234, 0.12);
  color: #374151;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.2, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

/* Hover / active states for quick date buttons */
.button-secondary.bs-quick-date:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fdbe15;
  color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 10px 26px rgba(253, 190, 21, 0.12);
}

.button-secondary.bs-quick-date:active {
  transform: translateY(0) scale(0.99);
}

/* Filter actions (submit / clear / export) */
.bs-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

/* Ensure action buttons are compact on smaller screens */
.bs-filter-actions .button,
.bs-filter-actions .button-primary {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Primary accent for filter submit */
.bs-filter-actions .button-primary {
  background: linear-gradient(
    135deg,
    var(--bs-primary) 0%,
    var(--bs-primary-dark) 100%
  );
  color: #111;
  border: none;
  box-shadow: 0 8px 22px rgba(253, 190, 21, 0.12);
}

.bs-filter-actions .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(253, 190, 21, 0.16);
  color: #fff;
}

/* Secondary action appearance */
.bs-filter-actions .button {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #374151;
}

/* Export CSV specific */
#bs-export-csv.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .bs-filters-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .bs-filter-actions {
    justify-self: start;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .bs-quick-dates {
    width: 100%;
  }
}

/* Small screens: tighter spacing */
@media (max-width: 480px) {
  .bs-filter-group input[type="text"],
  .bs-filter-group input[type="date"],
  .bs-filter-group select {
    padding: 8px 10px;
    font-size: 13px;
  }
  .bs-filter-actions .button,
  .bs-filter-actions .button-primary {
    flex: 1 1 auto;
    padding: 10px;
  }
}

/* Responsive específico para columna asesor */
@media (max-width: 1024px) {
  .bs-asesor-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  .bs-col-asesor {
    min-width: 100px;
  }

  .bs-asesor-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 15px;
  }
}

/* ============================================
   SCROLL HORIZONTAL PARA MÓVILES Y TABLETS
   ============================================ */

/* Estilos base para scroll horizontal */
.bs-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bs-table-container .bs-reservas-table {
  min-width: max-content; /* Asegurar que la tabla tenga el ancho necesario */
  table-layout: auto !important; /* Forzar layout automático para mantener anchos mínimos */
}

/* Móviles: Scroll completo con indicadores */
@media (max-width: 769px) {
  .bs-table-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
    position: relative !important;
    margin: 10px 0 !important;
    /* Scroll horizontal suave y visible */
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
    /* Mejorar experiencia táctil */
    touch-action: pan-x !important;
  }

  /* Webkit scrollbar para mejor UX */
  .bs-table-container::-webkit-scrollbar {
    height: 8px !important;
  }

  .bs-table-container::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 10px !important;
  }

  .bs-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
  }

  .bs-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
  }

  /* Indicador visual de scroll */
  .bs-table-container::after {
    content: "👉 Desliza para ver más" !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: rgba(59, 130, 246, 0.9) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 15px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    animation: fadeInOut 3s ease-in-out !important;
    pointer-events: none !important;
  }

  @keyframes fadeInOut {
    0%,
    100% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
  }

  .bs-reservas-table {
    min-width: 1200px !important;
    width: max-content !important; /* Permite que la tabla crezca según contenido */
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .bs-reservas-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f9fafb !important;
    padding: 12px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    border-bottom: 2px solid #e5e7eb !important;
  }

  .bs-reservas-table tbody td {
    padding: 16px 8px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #f3f4f6 !important;
    min-height: 48px !important;
    vertical-align: middle !important;
  }

  /* Anchos mínimos para cada columna */
  .bs-col-id {
    min-width: 60px !important;
  }
  .bs-col-cliente {
    min-width: 150px !important;
  }
  .bs-col-asesor {
    min-width: 120px !important;
  }
  .bs-col-destino {
    min-width: 100px !important;
  }
  .bs-col-monto {
    min-width: 100px !important;
  }
  .bs-col-saldo {
    min-width: 100px !important;
  }
  .bs-col-estado-pago {
    min-width: 110px !important;
  }
  .bs-col-estado-reserva {
    min-width: 110px !important;
  }
  .bs-col-fecha {
    min-width: 90px !important;
  }
  .bs-col-creacion {
    min-width: 90px !important;
  }
  .bs-col-acciones {
    min-width: 100px !important;
  }

  .bs-col-id {
    min-width: 70px !important;
    position: sticky !important;
    left: 0 !important;
    background: white !important;
    z-index: 5 !important;
    border-right: 2px solid #eff6ff !important;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1) !important;
  }

  .bs-status-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }

  .bs-cliente-email,
  .bs-cliente-telefono {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .bs-monto,
  .bs-saldo {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .bs-btn-ver {
    padding: 6px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .bs-fecha-creacion {
    font-size: 11px !important;
  }
}

/* Tablets: Scroll optimizado sin indicador */
@media (max-width: 1024px) and (min-width: 770px) {
  .bs-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
  }

  .bs-table-container::-webkit-scrollbar {
    height: 6px !important;
  }

  .bs-table-container::-webkit-scrollbar-track {
    background: #f8fafc !important;
  }

  .bs-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
  }

  .bs-reservas-table {
    min-width: 1100px !important;
  }
}

/* Móviles pequeños: Tabla más compacta */
@media (max-width: 480px) {
  .bs-reservas-table {
    min-width: 800px !important;
    width: 800px !important;
  }

  .bs-col-id {
    min-width: 50px !important;
  }

  .bs-col-cliente {
    min-width: 120px !important;
  }
  .bs-col-asesor {
    min-width: 100px !important;
  }
  .bs-col-destino {
    min-width: 80px !important;
  }
  .bs-col-monto {
    min-width: 80px !important;
  }
  .bs-col-saldo {
    min-width: 80px !important;
  }
  .bs-col-estado-pago {
    min-width: 90px !important;
  }
  .bs-col-estado-reserva {
    min-width: 90px !important;
  }
  .bs-col-fecha {
    min-width: 70px !important;
  }
  .bs-col-creacion {
    min-width: 70px !important;
  }
  .bs-col-acciones {
    min-width: 80px !important;
  }
}
