.pedido-status-section .status-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #dde5f2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.pedido-status-section .status-card.is-loading {
  position: relative;
  opacity: 0.72;
  pointer-events: none;
}

.pedido-status-section .status-card.is-loading::after {
  content: "A carregar...";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pedido-id {
  font-size: 14px;
  color: #475569;
}

.status-msg {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.status-badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.status-aguardando {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.status-preparando {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.status-feito {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.status-cancelado {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.timeline .dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
}

.timeline li p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.timeline li.done {
  border-color: #86efac;
  background: #f0fdf4;
}

.timeline li.done .dot {
  border-color: #22c55e;
  background: #22c55e;
}

.timeline li.current {
  border-color: #93c5fd;
  background: #eff6ff;
}

.timeline li.current .dot {
  border-color: #2563eb;
  background: #2563eb;
}

.timeline li.cancelled {
  border-color: #fca5a5;
  background: #fef2f2;
}

.timeline li.cancelled .dot {
  border-color: #ef4444;
  background: #ef4444;
}

.status-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.meta-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.meta-item span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.meta-item strong {
  font-size: 14px;
  color: #0f172a;
}

.status-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-inline-error {
  margin-bottom: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

@media (max-width: 767px) {
  .pedido-status-section .status-card {
    padding: 14px;
  }

  .status-meta {
    grid-template-columns: 1fr;
  }

  .status-actions .btn {
    width: 100%;
  }
}
