/* ===== ESTADOS DE COLORES (Badges) ===== */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 12px;
    border-radius: 9999px;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}
.status-RECEIVED { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-IN_TRANSIT { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.status-ARRIVED { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-WAREHOUSED { background: #cce7ff; color: #004085; border: 1px solid #b8daff; }
.status-DELIVERED { background: #d1f7c4; color: #0f5132; border: 1px solid #badbcc; }

/* ===== HISTORIAL DE BÚSQUEDAS (CHIPS) ===== */
.search-history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.search-history-title {
    color: hsl(var(--muted-foreground));
    font-size: 0.85em;
    font-weight: 500;
    width: 100%;
}
.history-chip {
    padding: 6px 14px;
    background: hsl(var(--muted));
    color: hsl(var(--primary));
    border-radius: 20px;
    font-size: 0.85em;
    font-family: monospace;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid hsl(var(--border));
    transition: all 0.2s ease;
}
.history-chip:hover {
    background: hsl(var(--accent));
    color: white;
    border-color: hsl(var(--accent));
}
.history-clear {
    padding: 6px 12px;
    background: transparent;
    color: #e74c3c;
    font-size: 0.8em;
    cursor: pointer;
    border: none;
    font-weight: 600;
}
.history-clear:hover { text-decoration: underline; }

/* ===== HISTORIAL DE MOVIMIENTOS ===== */
.history-item {
    background: hsl(var(--muted) / 0.5);
    border-left: 4px solid hsl(var(--primary));
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
@media (min-width: 640px) {
    .history-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
}
.history-status { font-weight: 600; color: hsl(var(--foreground)); font-size: 0.95em; }
.history-date { color: hsl(var(--muted-foreground)); font-size: 0.85em; margin-left: auto; }