/* DISTINCT: workflow_breadcrumb_css — TC_C5_WORKFLOW_BREADCRUMB component styles, izolate cu prefix .wfb-* pentru a nu afecta alte componente TANCUL ERP. */
/* FRONTEND-USER-APPROVED: 2026-05-08-Card-C5-Workflow-Breadcrumb */

.wfb-container {
    background: var(--bg-card, #0f1117);
    border: 1px solid var(--border, #2a3040);
    border-radius: var(--radius-lg, 12px);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 52px;
    position: relative;
}

.wfb-container.hidden {
    display: none;
}

.wfb-container.loading::after {
    content: "Se incarca workflow...";
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-style: italic;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.wfb-stage {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.wfb-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm, 4px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: default;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

/* Arrow connector */
.wfb-arrow {
    color: var(--text-subtle, #4a5568);
    font-size: 14px;
    margin: 0 2px;
    flex-shrink: 0;
}

/* ---- STATE: done (verde) ---- */
.wfb-step.done {
    background: var(--brand-green-bg, rgba(41,168,112,0.10));
    border-color: var(--brand-green, #29a870);
    color: var(--brand-green, #29a870);
}

.wfb-step.done .wfb-icon {
    color: var(--brand-green, #29a870);
}

/* ---- STATE: active (albastru) ---- */
.wfb-step.active {
    background: var(--brand-navy-bg, rgba(61,82,196,0.10));
    border-color: var(--brand-navy, #3d52c4);
    color: #e2e8f0;
    box-shadow: 0 0 0 2px rgba(61,82,196,0.25);
}

.wfb-step.active .wfb-icon {
    color: #7c8fd4;
}

/* ---- STATE: missing (rosu clickabil) ---- */
.wfb-step.missing {
    background: var(--red-bg, #2d1a1a);
    border-color: var(--red, #E24B4A);
    color: var(--red-light, #f87171);
    cursor: pointer;
}

.wfb-step.missing:hover {
    background: rgba(226,75,74,0.2);
    transform: scale(1.03);
}

.wfb-step.missing .wfb-icon {
    color: var(--red-light, #f87171);
}

/* ---- STATE: disabled (gri) ---- */
.wfb-step.disabled {
    background: transparent;
    border-color: transparent;
    color: var(--text-subtle, #4a5568);
    opacity: 0.55;
}

.wfb-step.disabled .wfb-icon {
    color: var(--text-subtle, #4a5568);
}

/* Badge count */
.wfb-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    min-width: 16px;
    text-align: center;
}

.wfb-step.done .wfb-badge {
    background: rgba(41,168,112,0.20);
}

.wfb-step.active .wfb-badge {
    background: rgba(61,82,196,0.30);
}

.wfb-step.missing .wfb-badge {
    background: rgba(226,75,74,0.20);
}

/* Client name prefix */
.wfb-client-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Scrollbar hide */
.wfb-container::-webkit-scrollbar { display: none; }
