
/*************************************************************
 * CONTEXTO PEDIDO
 *************************************************************/
.unidad-label {
  font-weight: 600;
  color: #e11d48;
  margin-left: 6px;
}

h1 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/*************************************************************
 * BREADCRUMB
 *************************************************************/
.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 8px;
}

.breadcrumb-item {
  color: inherit;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #2563eb;
  font-weight: 600;
}

.breadcrumb-sep {
  margin: 0 6px;
}

/*************************************************************
 * BOTONES DE CATEGORÍA — estado activo / bloqueado
 *************************************************************/
/* Categoría seleccionada activa */
#categorias .btn-saul.activo {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
}
/* Bloqueado: se ve apagado sin importar el color base */
#categorias .btn-saul:disabled {
  background: #d1d5db !important;
  color: #9ca3af !important;
}

/*************************************************************
 * PASOS DEL PEDIDO (LAYOUT CENTRAL)
 *************************************************************/
.pedido-pasos {
  display: grid;
  gap: 10px;
}
@media (min-width: 900px) {
  .pedido-pasos {
    grid-template-columns: auto auto 180px;
    column-gap: 20px;
    align-items: start;
    justify-content: center;
  }
}
.paso h3 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.grupo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 300px;   /* ancho fijo para que los botones no se estiren */
}
.paso-accion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  max-width: 180px;
}
.acciones-tabla {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
/*************************************************************
 * MODAL PEDIDOS
 *************************************************************/
.modal-contenido {
  width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: modalFadeUp 0.25s ease;
}

.modal-contenido h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-contenido select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  margin-bottom: 16px;
}

.modal-contenido select:focus {
  outline: none;
  border-color: #2563eb;
}

.modal-contenido .acciones {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/*************************************************************
 * LISTA TIPO DE PEDIDO
 *************************************************************/
.lista-tipo-pedido {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
.lista-tipo-pedido li {
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s ease;
}
.lista-tipo-pedido li:last-child {
  border-bottom: none;
}
.lista-tipo-pedido li:hover {
  background: #f3f4f6;
}
.lista-tipo-pedido li.activo {
  background: #facc15;
  font-weight: 600;
  color: #111827;
}

/*************************************************************
 * DROPDOWN TIPO DE PEDIDO
 *************************************************************/
.dropdown-pedido {
  position: relative;
  width: 220px;
}
.dropdown-header {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.dropdown-header:hover {
  background: #e2e8f0;
}
.dropdown-lista {
  position: absolute;
  max-width: 320px;
  top: 110%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.dropdown-lista li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.dropdown-lista li:last-child {
  border-bottom: none;
}
.dropdown-lista li:hover:not(.usado):not(.sin-tipos) {
  background: #facc15;
}
.dropdown-lista li.activo {
  background: #facc15;
  font-weight: 600;
}
/* Tipo ya generado hoy */
.dropdown-lista li.usado {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
  font-style: italic;
}
/* Sin tipos disponibles */
.dropdown-lista li.sin-tipos {
  color: #94a3b8;
  cursor: default;
  text-align: center;
  padding: 14px 12px;
}
.dropdown-lista.hidden {
  display: none;
}
/*************************************************************
 * COMENTARIOS PEDIDO
 *************************************************************/
.comentarios-pedido {
  margin: 14px 0 10px;   /* sin auto — se alinea con la tabla */
}
.comentarios-pedido textarea {
  width: 100%;
  resize: none;
  padding: 8px 12px;     /* -4% de alto: menos padding vertical */
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.4;
}
/*************************************************************
 * ANIMACIÓN
 *************************************************************/
@keyframes modalFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
