/* schedule-pro.css - Diseño profesional SOLO para programación de búsquedas */

/* 1. CONTENEDOR PRINCIPAL - SOLO para programar búsqueda */
#programarBusqueda.section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 0;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* 2. HEADER ELEGANTE - SOLO dentro de programar búsqueda */
#programarBusqueda .schedule-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  backdrop-filter: blur(20px);
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#programarBusqueda .schedule-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

#programarBusqueda .schedule-header h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

#programarBusqueda .schedule-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* 3. FORMULARIO REDISEÑADO - SOLO el de schedule */
#programarBusqueda #scheduleForm {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
}

/* 4. TARJETAS DE SECCIÓN - SOLO dentro de programar búsqueda */
#programarBusqueda .schedule-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#programarBusqueda .schedule-section:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#programarBusqueda .schedule-section-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#programarBusqueda .schedule-section-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 5. GRID DE TIPOS DE BÚSQUEDA */
#programarBusqueda .search-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

#programarBusqueda .search-type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#programarBusqueda .search-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#programarBusqueda .search-type-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--card-color, #3b82f6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#programarBusqueda .search-type-card:hover::before {
  opacity: 1;
}

/* Colores específicos por tipo */
#programarBusqueda .search-type-card.estado {
  --card-color: #3b82f6;
}

#programarBusqueda .search-type-card.andalucia {
  --card-color: #10b981;
}

#programarBusqueda .search-type-card.euskadi {
  --card-color: #6b7280;
}

#programarBusqueda .search-type-card.avanzado {
  --card-color: #f59e0b;
}

#programarBusqueda .search-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#programarBusqueda .search-type-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

#programarBusqueda .search-type-badge {
  background: var(--card-color, #3b82f6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 6. OPCIONES EXPANDIBLES MEJORADAS */
#programarBusqueda .search-options-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#programarBusqueda .search-option-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

#programarBusqueda .search-option-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

#programarBusqueda .search-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#programarBusqueda .search-option-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#programarBusqueda .search-option-item input[type="radio"]:checked~.search-option-radio {
  border-color: var(--card-color, #3b82f6);
  background: var(--card-color, #3b82f6);
}

#programarBusqueda .search-option-item input[type="radio"]:checked~.search-option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

#programarBusqueda .search-option-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 7. SELECTOR DE DÍAS MEJORADO */
#programarBusqueda .days-selector {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#programarBusqueda .day-chip {
  position: relative;
  cursor: pointer;
}

#programarBusqueda .day-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

#programarBusqueda .day-chip-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

#programarBusqueda .day-chip input[type="checkbox"]:checked+.day-chip-label {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#programarBusqueda .day-chip:hover .day-chip-label {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 8. INPUTS Y CONTROLES MODERNOS */
#programarBusqueda .time-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

#programarBusqueda .form-control-modern {
  position: relative;
}

#programarBusqueda .form-control-modern label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#programarBusqueda .form-control-modern input,
#programarBusqueda .form-control-modern select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#programarBusqueda .form-control-modern input:focus,
#programarBusqueda .form-control-modern select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 9. SELECTOR MÚLTIPLE ESTILIZADO */
#programarBusqueda .multi-select-modern {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

#programarBusqueda .multi-select-modern::-webkit-scrollbar {
  width: 8px;
}

#programarBusqueda .multi-select-modern::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#programarBusqueda .multi-select-modern::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

#programarBusqueda .multi-select-modern option {
  background: #1e293b;
  color: white;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
}

#programarBusqueda .multi-select-modern option:checked {
  background: #3b82f6;
}

/* 10. BOTÓN DE ENVÍO ESPECTACULAR */
#programarBusqueda .submit-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#programarBusqueda .btn-schedule-pro {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#programarBusqueda .btn-schedule-pro::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
  border-radius: 50px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

#programarBusqueda .btn-schedule-pro:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#programarBusqueda .btn-schedule-pro:hover::before {
  opacity: 1;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 11. UTILIDADES */
#programarBusqueda .hidden {
  display: none !important;
}

/* 12. Botón toggle mejorado */
#programarBusqueda .toggle-expand-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#programarBusqueda .toggle-expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

#programarBusqueda .search-type-card.disabled .toggle-expand-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

#programarBusqueda .search-type-card.disabled .toggle-expand-btn:hover {
  transform: none;
}

/* 13. Botón seleccionar todos */
#programarBusqueda .btn-select-all {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

#programarBusqueda .btn-select-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 14. Lista de programaciones */
#programarBusqueda .scheduled-list-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

/* 15. Mensajes */
#programarBusqueda #scheduleMessage {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  color: white;
}

#programarBusqueda #scheduleMessage:not(:empty) {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 16. Ajustes para elementos del formulario */
#programarBusqueda .form-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-bottom: 1rem;
}

#programarBusqueda .form-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

#programarBusqueda .user-info-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 2rem;
  color: white;
}

#programarBusqueda .user-info-badge strong {
  color: #3b82f6;
  font-weight: 700;
}

/* 17. RESPONSIVE */
@media (max-width: 768px) {
  #programarBusqueda.section {
    margin: 1rem;
    border-radius: 16px;
  }

  #programarBusqueda .schedule-header {
    padding: 2rem 1.5rem;
  }

  #programarBusqueda .schedule-header h2 {
    font-size: 2rem;
  }

  #programarBusqueda #scheduleForm {
    padding: 1.5rem;
  }

  #programarBusqueda .search-types-grid {
    grid-template-columns: 1fr;
  }

  #programarBusqueda .time-input-group {
    grid-template-columns: 1fr;
  }

  #programarBusqueda .days-selector {
    justify-content: center;
  }

  #programarBusqueda .btn-schedule-pro {
    width: 100%;
  }
}

/* ===== Thor Light Overrides (blanco + naranjas) para #programarBusqueda ===== */
#programarBusqueda.section {
  --thl-bg: #ffffff;
  --thl-card: #ffffff;
  --thl-muted: #fafbff;
  --thl-border: #e6ebf2;
  --thl-text: #20324b;
  --thl-sub: #6b778c;
  --thl-primary: #ff7a18;
  --thl-primary-600: #f36a05;
  --thl-primary-700: #e25f00;

  background: var(--thl-bg) !important;
  border: 1px solid var(--thl-border) !important;
  box-shadow: 0 18px 50px rgba(26, 33, 52, .08) !important;
}

/* Header claro */
#programarBusqueda .schedule-header {
  background: var(--thl-bg) !important;
  border-bottom: 1px solid var(--thl-border) !important;
}

#programarBusqueda .schedule-header h2 {
  color: var(--thl-text) !important;
  text-shadow: none !important;
}

#programarBusqueda .schedule-subtitle {
  color: var(--thl-sub) !important;
}

/* Form wrap */
#programarBusqueda #scheduleForm {
  background: var(--thl-bg) !important;
}

/* Tarjetas/secciones */
#programarBusqueda .schedule-section {
  background: var(--thl-card) !important;
  border: 1px solid var(--thl-border) !important;
  backdrop-filter: none !important;
}

#programarBusqueda .schedule-section:hover {
  background: var(--thl-card) !important;
  box-shadow: 0 10px 30px rgba(26, 33, 52, .10) !important;
}

/* Títulos */
#programarBusqueda .schedule-section-title {
  color: var(--thl-text) !important;
}

/* Tarjetas de tipo */
#programarBusqueda .search-type-card {
  background: #fff !important;
  border-color: var(--thl-border) !important;
}

#programarBusqueda .search-type-card:hover {
  border-color: var(--thl-primary) !important;
  box-shadow: 0 8px 24px rgba(26, 33, 52, .08) !important;
}

#programarBusqueda .search-type-title {
  color: var(--thl-text) !important;
}

#programarBusqueda .search-type-badge {
  background: var(--thl-primary) !important;
  color: #fff !important;
}

/* Opciones expandibles */
#programarBusqueda .search-option-item {
  background: #fff !important;
  border: 1px solid var(--thl-border) !important;
}

#programarBusqueda .search-option-item:hover {
  background: #fff7f0 !important;
  border-color: var(--thl-primary) !important;
}

#programarBusqueda .search-option-label {
  color: var(--thl-text) !important;
}

#programarBusqueda .search-option-radio {
  border-color: var(--thl-border) !important;
}

/* Chips de días */
#programarBusqueda .day-chip-label {
  background: #fff !important;
  color: var(--thl-sub) !important;
  border: 1px solid var(--thl-border) !important;
}

#programarBusqueda .day-chip input[type="checkbox"]:checked+.day-chip-label {
  background: linear-gradient(180deg, var(--thl-primary) 0%, var(--thl-primary-600) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 122, 24, .25) !important;
}

/* Inputs modernos */
#programarBusqueda .form-control-modern label {
  color: var(--thl-sub) !important;
}

#programarBusqueda .form-control-modern input,
#programarBusqueda .form-control-modern select {
  background: #fff !important;
  border: 1px solid var(--thl-border) !important;
  color: var(--thl-text) !important;
}

#programarBusqueda .form-control-modern input:focus,
#programarBusqueda .form-control-modern select:focus {
  background: #fff !important;
  border-color: var(--thl-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, .18) !important;
}

/* Multi-select */
#programarBusqueda .multi-select-modern {
  background: #fff !important;
  border: 1px solid var(--thl-border) !important;
}

#programarBusqueda .multi-select-modern option {
  background: #fff !important;
  color: var(--thl-text) !important;
}

#programarBusqueda .multi-select-modern option:checked {
  background: var(--thl-primary) !important;
  color: #fff !important;
}

/* Botones principales */
#programarBusqueda .btn-schedule-pro {
  background: linear-gradient(180deg, var(--thl-primary) 0%, var(--thl-primary-600) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 122, 24, .35) !important;
}

#programarBusqueda .btn-schedule-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 122, 24, .45) !important;
}

/* Botón seleccionar todos */
#programarBusqueda .btn-select-all {
  background: linear-gradient(180deg, #ff9a57 0%, var(--thl-primary) 100%) !important;
  color: #fff !important;
  border: none !important;
}

/* Badges/info */
#programarBusqueda .user-info-badge {
  background: #fff !important;
  color: var(--thl-text) !important;
  border: 1px solid var(--thl-border) !important;
}

#programarBusqueda .user-info-badge strong {
  color: var(--thl-primary) !important;
}

/* Mensajes */
#programarBusqueda #scheduleMessage {
  color: var(--thl-text) !important;
}

#programarBusqueda #scheduleMessage:not(:empty) {
  background: #eefcf4 !important;
  color: #16a34a !important;
  border: 1px solid #c7f0d8 !important;
}

/* === Thor Light – legibilidad y lista de programaciones === */

/* 1) Tipografía y contraste general (sin tocar botones primarios) */
#programarBusqueda .schedule-header h2,
#programarBusqueda .schedule-section-title,
#programarBusqueda .search-type-title,
#programarBusqueda .form-label,
#programarBusqueda label {
  color: var(--thl-text, #20324b) !important;
}

#programarBusqueda .schedule-subtitle,
#programarBusqueda .form-help {
  color: var(--thl-sub, #6b778c) !important;
}

#programarBusqueda .form-control-modern input,
#programarBusqueda .form-control-modern select {
  color: var(--thl-text, #20324b) !important;
  font-weight: 600;
}

#programarBusqueda .form-control-modern input::placeholder {
  color: #98a3b8 !important;
  opacity: 1 !important;
}

/* 2) Contenedor de la lista */
#programarBusqueda .scheduled-list-container {
  background: #fff !important;
  border: 1px solid var(--thl-border, #e6ebf2) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(26, 33, 52, .06) !important;
}

/* Grid/stack de elementos */
#programarBusqueda .scheduled-list,
#programarBusqueda .scheduled-list-container>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

/* 3) Tarjeta de cada programación (funciona aunque sean <li>) */
#programarBusqueda .scheduled-list-container .scheduled-card,
#programarBusqueda .scheduled-list-container .scheduled-item,
#programarBusqueda .scheduled-list-container>ul>li {
  background: #fff;
  border: 1px solid var(--thl-border, #e6ebf2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(26, 33, 52, .06);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

#programarBusqueda .scheduled-list-container .scheduled-card:hover,
#programarBusqueda .scheduled-list-container .scheduled-item:hover,
#programarBusqueda .scheduled-list-container>ul>li:hover {
  transform: translateY(-2px);
  border-color: var(--thl-primary, #ff7a18);
  box-shadow: 0 10px 24px rgba(255, 122, 24, .12);
}

/* 4) Cabecera de tarjeta: título + badges + estado */
#programarBusqueda .scheduled-list-container .sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#programarBusqueda .scheduled-list-container .sc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--thl-text, #20324b);
}

#programarBusqueda .scheduled-list-container .badge {
  background: #fff3e7;
  color: #9b3b00;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid #ffd8b0;
}

#programarBusqueda .scheduled-list-container .status-pill {
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

#programarBusqueda .scheduled-list-container .status-pill.active {
  background: #eafff3;
  color: #147a3d;
  border-color: #b8f0ce;
}

#programarBusqueda .scheduled-list-container .status-pill.paused {
  background: #fff8e6;
  color: #a46400;
  border-color: #ffe1b3;
}

/* 5) Metadatos (frecuencia, horas, próximo disparo…) */
#programarBusqueda .scheduled-list-container .sc-meta {
  margin-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  color: var(--thl-sub, #6b778c);
  font-size: .92rem;
}

#programarBusqueda .scheduled-list-container .sc-meta .meta {
  display: flex;
  align-items: center;
  gap: .4rem;
}

#programarBusqueda .scheduled-list-container .sc-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d7e3;
}

#programarBusqueda .scheduled-list-container .next-run {
  background: #eef7ff;
  color: #124a86;
  border: 1px solid #cfe3ff;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-weight: 700;
}

/* 6) Acciones de tarjeta (pausar, reanudar, eliminar) */
#programarBusqueda .scheduled-list-container .sc-actions {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

#programarBusqueda .scheduled-list-container .sc-actions .btn {
  background: #fff;
  color: var(--thl-text, #20324b);
  border: 1px solid var(--thl-border, #e6ebf2);
  padding: .5rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s ease;
}

#programarBusqueda .scheduled-list-container .sc-actions .btn:hover {
  border-color: var(--thl-primary, #ff7a18);
  box-shadow: 0 4px 12px rgba(255, 122, 24, .15);
  transform: translateY(-1px);
}

#programarBusqueda .scheduled-list-container .sc-actions .btn-primary {
  background: linear-gradient(180deg, var(--thl-primary, #ff7a18) 0%, var(--thl-primary-600, #f36a05) 100%);
  color: #fff;
  border: none;
}

#programarBusqueda .scheduled-list-container .sc-actions .btn-danger {
  background: #fff;
  color: #b42318;
  border: 1px solid #f2c6c3;
}

#programarBusqueda .scheduled-list-container .sc-actions .btn-danger:hover {
  background: #ffeceb;
  border-color: #e9a39d;
}

/* 7) Estado vacío elegante */
#programarBusqueda .scheduled-empty {
  background: #fff;
  border: 1px dashed var(--thl-border, #e6ebf2);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--thl-sub, #6b778c);
}