.panelp {
  background: #ecf0f3; /* Blanco limpio en vez de #ecf0f3 para mejor contraste */
  border: 1px solid #e2e8f0; /* Borde gris claro sutil */
  border-radius: 16px;
  padding: 20px; /* Quitamos padding general → lo ponemos por sección */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Para que los bordes redondeados corten bien */
  transition: all 0.3s ease;
}
.header-product {
  margin-left: -14px;
  margin-right: -14px;
  margin-top: -15px;
  margin-bottom: 24px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 2px solid #062a56;
}

/* productos.css
   Estilos del módulo de productos (modal, formulario, animaciones)
*/

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes overlayOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Overlay */
#prModal {
  animation: overlayIn 0.22s ease forwards;
}
#prModal.closing {
  animation: overlayOut 0.2s ease forwards;
}

/* Caja del modal */
#prModal .modal-box {
  animation: modalIn 0.26s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}
#prModal.closing .modal-box {
  animation: modalOut 0.2s ease forwards;
}

/* Botón guardar deshabilitado */
#prSave[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

#prSave .btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* Grid formulario modal */
.pr-form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.pr-col-2 {
  grid-column: span 2;
}
.pr-col-3 {
  grid-column: span 3;
}
.pr-col-6 {
  grid-column: span 6;
}

.pr-section-label {
  grid-column: span 6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #8fa0b8;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-top: 4px;
}

.pr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pr-field label {
  font-size: 12px;
  font-weight: 700;
  color: #062a56;
}

.pr-field input,
.pr-field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #c4cfe0;
  background: #f8fafc;
  font-size: 14px;
  color: #0d1b3a;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.pr-field input:focus,
.pr-field select:focus {
  border-color: #062a56;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 42, 86, 0.1);
}
