/* ============================================================
   pedidos-bodega.css - Estilos especificos para pedidos a bodega
   Timeline de estados + complementos al design system
   ============================================================ */

/* ====== TIMELINE DE ESTADOS ====== */
.pb-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 1.5rem;
  margin-bottom: .75rem;
  background: var(--brand-surface);
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  overflow-x: auto;
  animation: comFadeUp .4s ease both;
}

.pb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 80px;
  position: relative;
}

.pb-step__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  border: 2px solid var(--brand-border);
  background: var(--brand-bg);
  color: var(--brand-text-muted);
  transition: all .2s;
}

.pb-step__label {
  font-size: .7rem;
  color: var(--brand-text-muted);
  text-align: center;
  white-space: nowrap;
}

.pb-step__line {
  flex: 1;
  min-width: 24px;
  max-width: 60px;
  height: 2px;
  background: var(--brand-border);
  margin: 0 .25rem;
  margin-bottom: 1.5rem;
  transition: background .2s;
}

.pb-step--done .pb-step__dot {
  border-color: var(--brand-accent);
  background: rgba(147, 193, 31, .12);
  color: var(--brand-accent);
}

.pb-step--done ~ .pb-step__line,
.pb-step--done + .pb-step__line {
  background: var(--brand-accent);
}

.pb-step--active .pb-step__dot {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(147, 193, 31, .15);
}

.pb-step--active .pb-step__label {
  color: var(--brand-accent);
  font-weight: 600;
}

.pb-step--danger .pb-step__dot {
  border-color: var(--status-danger);
  background: rgba(239, 68, 68, .12);
  color: var(--status-danger);
}

.pb-step--danger .pb-step__label {
  color: var(--status-danger);
  font-weight: 600;
}

/* ====== ACTIONS BAR ====== */
.com-actions-bar {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  animation: comFadeUp .5s ease both;
}

/* ====== SUMMARY CARD ====== */
.com-summary {
  max-width: 360px;
  margin-left: auto;
}

.com-summary__row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: .875rem;
}

.com-summary__row--total {
  border-bottom: none;
  padding-top: .75rem;
  font-size: 1rem;
}

.com-summary__obs {
  margin-top: .75rem;
  font-size: .82rem;
  color: var(--brand-text-muted);
  padding: .5rem .75rem;
  background: var(--brand-bg);
  border-radius: 8px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .pb-timeline {
    padding: .75rem;
    gap: 0;
  }
  .pb-step { min-width: 56px; }
  .pb-step__dot { width: 28px; height: 28px; font-size: .7rem; }
  .pb-step__label { font-size: .6rem; }
  .pb-step__line { min-width: 12px; max-width: 30px; }

  .com-actions-bar {
    flex-direction: column;
  }
  .com-summary { max-width: 100%; }
}
