/* Staff site, 12 of 13: the job's flow strip and extra work. */

/* --- the job's flow (FlowStrip): numbered circles joined by a line, then the one next action --- */
.flow-card { border-top: 3px solid var(--primary); }
.flow { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .25rem; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; min-width: 0; }
/* The line into each step from the one before, behind the circles; solid blue once the step before is done. */
.flow-step + .flow-step::before {
    content: ""; position: absolute; top: 13px; right: 50%; width: calc(100% + .25rem); height: 2px; background: var(--line);
}
.flow-step.done + .flow-step::before { background: var(--primary); }
.flow-dot {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
    border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--muted);
    font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.flow-step.done .flow-dot { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.flow-step.current .flow-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px var(--info-wash); }
.flow-step.warn .flow-dot { border-color: var(--warn); background: var(--warn-wash); color: var(--warn-ink); }
.flow-step.skipped .flow-dot { border-style: dashed; }
.flow-label { font-weight: 600; font-size: var(--fs-small); line-height: 1.25; }
.flow-step:is(.todo, .skipped) .flow-label { color: var(--muted); font-weight: 500; }
.flow-detail { font-size: var(--fs-smaller); color: var(--muted); line-height: 1.25; }
.flow-step.warn .flow-detail { color: var(--warn-ink); }
.flow-now { display: none; }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.flow-actions > * { margin: 0; }
.flow-actions summary.btn { list-style: none; display: inline-flex; align-items: center; }
.flow-actions summary.btn::-webkit-details-marker { display: none; }
.flow-actions details[open] { flex-basis: 100%; }
.flow-also summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.flow-form { display: grid; gap: .5rem; margin-top: .75rem; max-width: 36rem; }
.flow-form > .btn { justify-self: start; }
.addons-pick { border: 0; padding: 0; margin: 0; display: grid; gap: .25rem; min-width: 0; }
.addons-pick legend { font-weight: 600; padding: 0; margin-bottom: .25rem; }
.flow-sent { margin-top: 1rem; border-top: 1px solid var(--line-soft); padding-top: .75rem; }
.flow-sent p { margin: 0 0 .5rem; }
/* Extra work: the billed lines read as a note; an unbilled extra's offer on a draft invoice. */
.extra-billed { margin: .25rem 0; color: var(--muted); }
.extra-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line-soft); }
.extra-offer p { margin: 0; }
.project-card-next { margin-top: .35rem; font-size: var(--fs-small); }

/* A phone shows the circles and, under them, the one step in hand; the button and its forms take the full width. */
@media (max-width: 480px) {
    .flow { margin-bottom: .5rem; }
    .flow-label, .flow-detail { display: none; }
    .flow-now { display: block; margin: 0 0 1rem; }
    .flow-actions > :is(form, details, p) { flex: 1 1 100%; }
    .flow-actions .btn-primary, .flow-form > .btn { width: 100%; justify-self: stretch; }
}
