/* A workflow drawn horizontally, doubling as a tab strip.
 *
 * Shared: the Analysis upload, Variant Interpretation's form and Analysis Explore.
 * Markup: templates/DisCanVis/Elements/_flow_steps.html. Behaviour: ../js/flow_steps.js.
 * Icon colours and the type / label / detail text styles come from
 * pages/UseCases/css/use_case_examples.css (`uc-flow-step--*`, `uc-flow-step__*`),
 * the component the same pages draw vertically — load that file too.
 */
.flow-h {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(9rem, 1fr);
    gap: 0;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.flow-h-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem 0.6rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    text-align: left;
    color: inherit;
    cursor: pointer;
}
/* The connector from this step's icon to the next one. */
.flow-h-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(0.65rem + 1.05rem - 1px);
    left: calc(0.75rem + 2.1rem + 0.4rem);
    right: 0.4rem;
    height: 2px;
    background: var(--bs-border-color);
}
.flow-h-step.is-done:not(:last-child)::after { background: var(--bs-success); }
.flow-h-step:hover:not(:disabled) { background: rgba(var(--bs-primary-rgb), 0.04); }
.flow-h-step.is-active {
    border-bottom-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
}
.flow-h-step:disabled { cursor: default; opacity: 0.45; }
/* Size and shape only: border and fill per step type come from `uc-flow-step--*`. */
.flow-h-step .uc-flow-step__icon {
    width: 2.1rem;
    height: 2.1rem;
    position: relative;
    z-index: 1;
}
.flow-h-body { display: flex; flex-direction: column; min-width: 0; }
.flow-h-step .uc-flow-step__label { font-size: 0.88rem; }
.flow-h-step .uc-flow-step__detail {
    font-size: 0.72rem;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* A pane the strip is not showing. Separate from Bootstrap's d-none, which the
   forms already toggle for their own reasons — a field can be hidden by its mode
   and by the step at once, and each must be undoable on its own. */
.flow-pane-hidden { display: none !important; }

/* The same diagram as a read-only guide (_flow_guide.html). Steps that open a
   part of the page are buttons; the rest only describe, so they do not react. */
.flow-h--guide { grid-auto-columns: minmax(8.5rem, 1fr); margin-bottom: 0.5rem; }
.flow-h--guide .flow-h-step { cursor: default; border-bottom: 0; border-radius: 0.5rem; }
.flow-h--guide button.flow-h-step { cursor: pointer; }
.flow-h--guide button.flow-h-step:hover { background: rgba(var(--bs-primary-rgb), 0.06); }
.flow-h--guide .uc-flow-step__detail { display: block; -webkit-line-clamp: unset; overflow: visible; }
