/* ========================================
   Baróne App — Servicios (módulo en agenda)
   ======================================== */

.view-services.view-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.services-panel-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.services-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
}

.services-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.services-loading {
  text-align: center;
  opacity: 0.7;
  padding: var(--spacing-lg);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.service-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.service-card-main {
  flex: 1;
  min-width: 0;
}

.service-card-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.service-card-detail {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.35;
  margin-top: 0.25rem;
}

.service-card-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-accent-primary, var(--color-text-primary));
  white-space: nowrap;
}

.service-card-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Modal overlay (Alpine x-show) */
.services-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 100);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .services-modal-overlay {
    align-items: center;
  }
}

.services-modal-sheet {
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .services-modal-sheet {
    border-radius: var(--radius-2xl);
  }
}

/* Confirmación borrar: diálogo más compacto */
.services-modal-sheet--narrow {
  max-width: 22rem;
}

.services-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.services-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
}
