.config-horarios-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.config-horarios-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.config-horarios-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.config-horarios-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--color_texto, #111827);
}

.config-horarios-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.config-horarios-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-horarios-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #eef2f7;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.config-horarios-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 0;
}

.config-horarios-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.config-horarios-card-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.config-horarios-card-body {
  padding: 24px;
}

.config-horarios-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-horarios-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.config-horarios-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  color: #6b7280;
}

.config-horarios-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color_primario, #111827);
  animation: configHorariosSpin 0.8s linear infinite;
}

@keyframes configHorariosSpin {
  to {
    transform: rotate(360deg);
  }
}

.config-horarios-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  text-align: center;
  color: #9ca3af;
}

.config-horarios-empty i {
  font-size: 42px;
}

.config-horarios-empty p {
  margin: 0;
  font-size: 14px;
}

.config-horarios-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  border-radius: 18px;
  padding-bottom: 400px;
}

.config-horarios-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.config-horarios-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.config-horarios-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.config-horarios-row:last-child td {
  border-bottom: none;
}

.config-horarios-day {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.config-horarios-col-switch {
  width: 120px;
}

.config-horarios-fin-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-horarios-time-input {
  width: 140px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.config-horarios-time-input:focus {
  border-color: var(--color_primario, #111827);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.config-horarios-time-input:disabled {
  background: #f8fafc;
  color: #9ca3af;
  cursor: not-allowed;
}

.config-horarios-closed-label {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
}

.config-horarios-row.config-horarios-row-disabled {
  opacity: 0.8;
}

.d-none {
  display: none !important;
}

.config-horarios-table .global-switch {
  margin: 0 auto;
}

.config-horarios-table td .global-switch {
  display: block;
  margin: 0 auto;
}

.config-horarios-table td .global-switch-slider {
  background: #d1d5db;
}

.config-horarios-table td .global-switch input:checked + .global-switch-slider {
  background: var(--color-success);
}

@media (max-width: 768px) {
  .config-horarios-page {
    padding: 16px;
    gap: 16px;
  }

  .config-horarios-header {
    flex-direction: column;
    align-items: stretch;
  }

  .config-horarios-header-actions {
    width: 100%;
  }

  .config-horarios-header-actions .global-btn {
    width: 100%;
    justify-content: center;
  }

  .config-horarios-title {
    font-size: 24px;
  }

  .config-horarios-card-header {
    padding: 20px 20px 0;
  }

  .config-horarios-card-body {
    padding: 20px;
  }

  .config-horarios-table {
    min-width: 640px;
  }

  .config-horarios-table thead th,
  .config-horarios-table tbody td {
    padding: 14px 12px;
  }

  .config-horarios-time-input {
    width: 120px;
    height: 44px;
    font-size: 13px;
  }
}
