.workflow-status-badge {
    display: inline-block !important;
    min-width: 70px;
    width: auto;
    padding: .5em .4em !important;
    border: 0;
    border-radius: 7px !important;
    background-color: var(--status-bg, #707070) !important;
    color: var(--status-fg, #fff) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}
.workflow-status-badge::before { display: none !important; }
body.dark .workflow-status-badge,
body.dark .ord-page .workflow-status-badge,
body.dark .ord-page .ord-table .workflow-status-badge { background-color:var(--status-bg, #707070) !important; color:var(--status-fg, #fff) !important; }

/* Keep customer order and return status labels aligned across list rows. */
.customer-orders-page .orders-progress-label,
.customer-return-list .workflow-status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    height: 26px;
    padding: 0 8px !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
}

/* Component dimensions take precedence over page-specific badge sizing. */
.workflow-status-badge.status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 1 auto;
    width: var(--badge-width, auto);
    min-width: var(--badge-min-width, 0);
    max-width: 100%;
    height: var(--badge-height, auto);
    padding: var(--badge-padding, 5px 9px) !important;
    font-size: var(--badge-font-size, 12px) !important;
    line-height: 1.35 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    gap: 4px;
    vertical-align: middle;
}
