/* t-adjust — T5 Edit the job at the fitting (K-01). Layout only; lines, figures, breakdown, sheet and bar are shared. Tokens only. */
.t-adjust { padding-bottom: var(--space-40); }
.t-adjust__eyebrow { margin: 0 0 var(--space-4); }
.t-adjust__content { display: flex; flex-direction: column; margin-top: var(--rhythm-block); }
.t-adjust__info { margin-bottom: var(--rhythm-block); }
.t-adjust__info .banner__text { text-wrap: pretty; }
.t-adjust__garments { display: flex; flex-direction: column; gap: var(--rhythm-group); }
.t-adjust__card.card { padding-block: var(--space-4); }   /* the shared .card: tissue + chalk ring */

/* one adjust row: label | $ input | remove-or-undo, the error under the pair */
.t-adjust__row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 52px; align-items: center; column-gap: var(--space-8); padding-block: var(--space-8); box-shadow: inset 0 -1px 0 var(--neutral-100); }
.t-adjust__row > * { min-width: 0; }
.t-adjust__label { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-block: var(--space-4); }
.t-adjust__label label { color: var(--ink); }
.t-adjust__mark { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); font-variant-numeric: tabular-nums; }
.t-adjust__mark:empty { display: none; }
.t-adjust__mark s { color: var(--neutral-600); text-decoration-thickness: 1px; }
.t-adjust__box { min-height: 48px; }
.t-adjust__box .field__affix { padding-left: var(--space-12); }
.t-adjust__box .field__input { padding-left: var(--space-4); padding-right: var(--space-8); font-variant-numeric: tabular-nums; }
.t-adjust__box--error { box-shadow: inset 0 0 0 1px var(--error); }
.t-adjust__box--error:focus-within { box-shadow: inset 0 0 0 2px var(--error); }
.t-adjust__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-family: var(--font-sans); cursor: pointer; }
.t-adjust__btn--x { font-size: var(--size-16); color: var(--neutral-600); }
.t-adjust__btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.t-adjust__btn:disabled { opacity: .5; cursor: not-allowed; }
.t-adjust__was { grid-column: 2; text-align: right; padding-right: var(--space-8); color: var(--neutral-600); font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.t-adjust__err { grid-column: 1 / -1; }
.t-adjust__err:empty { display: none; }
.t-adjust__err p { margin: var(--space-4) 0 0; }
.t-adjust__add { padding-block: var(--space-4); }
.t-adjust__add .list-row { padding-inline: 0; }
.t-adjust__row:last-child { box-shadow: none; }   /* P2-2: no hairline between the services and the docs block */

.t-adjust__empty-err { margin-top: var(--rhythm-group); }
.t-adjust__empty-err:empty { display: none; }
.t-adjust__note.sec { gap: 0; }
.t-adjust__frozen { grid-column: 1 / -1; margin: 0; }
.t-adjust__figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); }
.t-adjust__breakdown { margin-top: var(--rhythm-group); }
.t-adjust__fine { margin: 0; text-wrap: pretty; }

/* the add-a-service sheet */
.t-adjust-sheet { display: flex; flex-direction: column; width: 100%; }
/* M7-2-T-03: nothing changed → no two-up figures (the summary + breakdown say it once) */
.t-adjust__figures--none { display: none; }
@media (max-width: 21.25em) { .t-adjust__figures { grid-template-columns: minmax(0, 1fr); } }
/* P1-2 zoom tier: the label takes its own row, then the input and the remove button share the next */
@media (max-width: 18.75em) {
  .t-adjust__row { grid-template-columns: minmax(0, 1fr) 52px; }
  .t-adjust__label { grid-column: 1 / -1; }
  .t-adjust__was { grid-column: 1; }
}

/* K-01: the card head (type · tag · Remove item), the new-item / removed-item cards, Add an item */
.t-adjust__head { min-height: 44px; padding-top: var(--space-4); box-shadow: inset 0 -1px 0 var(--neutral-100); }   /* K-04: the head is the shared garmentHead (icon, name, tag … Remove item) */
.t-adjust__head .garment-head { margin-bottom: 0; }
/* the head's link is the shared textLink (M7-1-T-05): pushed to the right edge, drawn at the small size */
.t-adjust__head .text-link { margin-right: calc(-1 * var(--space-8)); font-size: var(--size-12); line-height: var(--lh-12); }
.t-adjust__card--new.card { box-shadow: inset 0 0 0 1px var(--success); }
.t-adjust__card--gone { padding-bottom: var(--space-12); }
.t-adjust__card--gone .t-adjust__head { box-shadow: none; }
.t-adjust__gone-list { list-style: none; margin: 0; padding: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); font-variant-numeric: tabular-nums; }
.t-adjust__gone-list s { text-decoration-thickness: 1px; }
.t-adjust__card--add { padding-block: var(--space-4); }
.t-adjust__card--add .list-row { padding-inline: 0; }
.t-adjust__card--add .list-row:disabled { opacity: .5; cursor: not-allowed; }
.t-adjust__max { margin: 0 0 var(--space-8); }
.t-adjust__summary { margin-bottom: var(--space-4); }
.t-adjust__summary:empty { display: none; }
.t-adjust__back { align-self: flex-start; margin: 0 0 var(--space-4) calc(-1 * var(--space-8)); }
.t-adjust-sheet { gap: 0; }
.t-adjust__lead-pair { min-width: 0; }   /* P1-3 (D-224): the pair may wrap; only label + amount stays together (.nb in the markup) */

/* K-02: the garment icon leads the card head; a removed card dims it; the docs block closes the card */
.t-adjust__head { padding-bottom: var(--space-8); }
/* P2-2 (D-229): inside a garment card: services → 24 → docs block (Before / Pinned / comment 8 apart, no hairline, no inset panel) → Remove item */
.t-adjust__card .docs-editor { margin: var(--rhythm-block) 0 0; padding: 0; gap: var(--rhythm-tight); box-shadow: none; }

/* M7: the bar lead is two columns (what Sarah pays | what you take home); the figures, not a dotted sentence */
.t-adjust__lead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4) var(--space-12); width: 100%; }
.t-adjust__lead-pair b { color: var(--ink); font-weight: 600; }
/* D-196: the bar note is a footnote until she has tried to send or leave, then error ink */
.t-adjust[data-tried="true"] + .action-bar .action-bar__note { color: var(--error-ink); }

/* CR-5: Remove item is the card's last row, a red text link at the left under + Add comment */
.t-adjust__remove { display: flex; padding-top: var(--rhythm-tight); }
.t-adjust__remove .text-link { margin-left: calc(-1 * var(--space-8)); min-height: 44px; }

/* Study-1 B2: the private General notes take the old note's place, on the section rhythm */
.t-adjust__notes { display: contents; }
/* Study-1 B1: edit after the fitting — due date, reason + photo */
.t-adjust__due-change { display: flex; }
.t-adjust__due-change .text-link { margin-left: calc(-1 * var(--space-8)); }
.t-adjust__why .text-area { margin: 0; }
.t-adjust__photo { display: flex; align-items: center; gap: var(--space-16); }
.t-adjust__photo-add .list-row { padding-inline: 0; }
.t-adjust__consent { margin: var(--space-4) 0 0; }   /* SF-34: the photo-consent line under the fitting intro */
