/* Workflow stepper — modern pastel / rounded refresh.
   State fills are pastel tints of the theme tokens (via color-mix), each step is a
   rounded "pill" row with a colored left accent bar, and the legacy triangle-notch
   connectors have been removed in favor of vertical spacing. */

/* Current status rendered inline in the card-header subtitle (replaces the old
   standalone banner). Color-coded by state to match the stepper accents. */
.workflow-status-current {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workflow-status-current strong {
    font-weight: 700;
}

.workflow-status-in-progress {
    color: var(--theme-accent-primary);
}

.workflow-status-completed {
    color: var(--bs-success);
}

ul.workflow-bar {
    padding-left: 0px;
    margin-bottom: 0;
    list-style: none;
}

ul.workflow-bar > li {
    width: 100%;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-200);
    border-left: 4px solid var(--bs-gray-400);
    border-radius: 0.5rem;
    list-style: none;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

    ul.workflow-bar > li:last-child {
        margin-bottom: 0;
    }

/* Step row: number + name on the left, status on the right. */
.workflow-step {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

/* "What to Enter" instructions — rounded inset panel beneath the in-progress step. */
.workflow-step-instructions {
    margin: 0 1.25rem 1rem 70px;
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--bs-gray-800);
    background: var(--bs-white);
    border: 1px solid color-mix(in srgb, var(--theme-accent-primary) 25%, var(--bs-white));
    border-radius: 0.5rem;
}

.workflow-bar > li.completed {
    background: color-mix(in srgb, var(--theme-nav-secondary) 8%, var(--bs-white));
    border-color: color-mix(in srgb, var(--theme-nav-secondary) 25%, var(--bs-white));
    border-left-color: var(--theme-nav-secondary);
}

.workflow-bar > li.in-progress {
    background: color-mix(in srgb, var(--theme-accent-primary) 12%, var(--bs-white));
    border-color: color-mix(in srgb, var(--theme-accent-primary) 30%, var(--bs-white));
    border-left-color: var(--theme-accent-primary);
    box-shadow: 0 2px 6px var(--modern-shadow-black-rgb-20);
    cursor: pointer;
}

.workflow-step-id {
    flex: 0 0 auto;
    width: 55px;
    text-align: left;
}

.workflow-step-number {
    background: var(--bs-gray-500);
    border: 2px solid var(--bs-white);
    border-radius: 50%;
    box-shadow: inset 1px 1px 1px 0px var(--modern-shadow-black-rgb-20);
    color: var(--bs-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
    height: 35px;
    width: 35px;
    text-align: center;
    display: inline-block;
}

.workflow-bar > li.completed .workflow-step-number {
    background: var(--theme-nav-secondary);
}

.workflow-bar > li.in-progress .workflow-step-number {
    background: var(--theme-accent-primary);
}

.workflow-step-name {
    flex: 1 1 auto;
    color: var(--bs-gray-600);
    font-weight: 600;
    text-transform: uppercase;
}

.workflow-bar > li.in-progress .workflow-step-name {
    color: var(--modern-nav-selected);
}

.workflow-step-status {
    flex: 0 0 auto;
    text-transform: uppercase;
    color: var(--bs-gray-600);
    letter-spacing: 1px;
    font-weight: 600;
    margin-left: 1rem;
}

.workflow-bar > li.completed .workflow-step-status {
    color: var(--theme-nav-secondary);
}

.workflow-bar > li.in-progress .workflow-step-status {
    color: var(--theme-accent-primary);
}

.workflow-step-instructions ul {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.25rem;
}

.workflow-step-instructions li {
    margin-bottom: 0.25rem;
}

    .workflow-step-instructions li:last-child {
        margin-bottom: 0;
    }
