/* Prewash — feature styles (prewash-) layered on mds.css.
   The Prewash view is built from generic mds- primitives (cards, mds-data step tables,
   mds-cardtext prose, mds-list). The only feature-specific bit is the interactive Prewash
   Calculation card: a stack of label + input rows, with the computed minimum-water result on the
   last row. Layout/colour tokens come from mds.css. */

/* Each calculator field is a row: label (a .mds-cardtext <p>, kept for render-parity) on the left,
   the input/select (or the computed result) on the right. */
.prewash-calc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mds-space-3);
    padding: var(--mds-space-1-5) 0;
    border-bottom: 1px solid var(--mds-line);
}
.prewash-calc__row:last-child { border-bottom: none; }
.prewash-calc__row p { margin: 0; color: var(--mds-text); }

.prewash-calc__input {
    width: 150px;
    max-width: 45%;
    padding: var(--mds-space-1) var(--mds-space-2);
    border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius);
    background: var(--mds-surface);
    font-family: inherit;
    font-size: var(--mds-text-sm);
    color: var(--mds-title);
}
.prewash-calc__input:focus { outline: none; border-color: var(--mds-accent); }

/* The computed result (and the result-row label) read as the emphasised value of the card. */
.prewash-calc__result-row p { font-weight: 600; color: var(--mds-title); }
.prewash-calc__result { font-weight: 600; color: var(--mds-accent-ink); text-align: right; }
.prewash-calc__result--error { color: var(--mds-danger); font-weight: 400; }
