/* TUL - the Launchpad's review sheet, "Change it first" before anything is written (tul-review-sheet-v1.js, TUL_REVIEW_SHEET;
   LA-02). Tokens only (the family token sheet's names), light by default and dark by the tokens; class prefix trs-; nothing
   under 11px. A field is a line the person clicks to correct: drawn as a line until it is hovered or has the focus, then as
   a box. The sheet sits over the Decisions panel, centred; on a phone (820px and under) it takes the whole screen with a
   16px gutter, its controls 44px, the foot kept in reach. Nothing scrolls sideways; the scrolling body keeps room on every
   side for a focus ring (it is never clipped). */
.trs{position:fixed;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.trs *,.trs *::before,.trs *::after{box-sizing:border-box}
.trs [hidden]{display:none}
.trs-scrim{position:absolute;inset:0;background:var(--s0);opacity:.6}
:root[data-tul-theme="light"] .trs-scrim{background:var(--ink);opacity:.28}
.trs-sheet{position:relative;display:flex;flex-direction:column;width:min(640px,100%);max-width:100%;max-height:100%;min-width:0;
  background:var(--s1);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-card,8px);box-shadow:var(--sh-2);font-size:14px;line-height:1.5}
.trs-hd{display:flex;flex-direction:column;gap:2px;min-width:0;padding:16px 16px 8px;border-bottom:1px solid var(--line-soft)}
.trs-k{margin:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.trs-h{margin:0;padding:var(--sp-1,4px);margin-left:calc(-1 * var(--sp-1,4px));font-size:18px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.trs-h:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.trs-by{margin:0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
/* the scrolling body: its padding is the focus ring's room (2px ring, 2px offset) on every side */
.trs-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:12px}
.trs-lede{margin:0;font-size:13px;color:var(--ink-2)}
.trs-note{margin:0;padding:8px 12px;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);background:var(--s0);font-size:13px;overflow-wrap:anywhere}
.trs-bad{border-color:var(--bad);background:var(--bad-soft)}
.trs-note[data-tone="bad"]{border-color:var(--bad);background:var(--bad-soft)}
.trs-note:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* K4: an earlier approval's Undo bar, which the kernel marks while a sheet is up, is drawn above the sheet's backdrop */
.tlp-undo[data-tul-above]{z-index:96}
.trs-lock{margin:0;padding:8px 12px;border-left:2px solid var(--taupe);font-size:13px;color:var(--ink-2)}
.trs-list{display:flex;flex-direction:column;gap:12px;min-width:0}
.trs-f{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:4px 0}
.trs-f[data-changed]{border-left:2px solid var(--attn);padding-left:8px}
.trs-l{margin:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.trs-req,.trs-ro{font-weight:400;color:var(--faint)}
.trs-help{margin:0;font-size:12px;color:var(--faint)}
.trs-has{margin:0;padding:2px 0;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.trs-in{width:100%;max-width:100%;min-height:36px;padding:6px 8px;border:1px solid transparent;border-bottom-color:var(--line-soft);
  border-radius:var(--r-ctl,4px);background:transparent;color:var(--ink);font:inherit;font-size:14px}
.trs-in:hover{border-color:var(--line)}
.trs-in:focus{border-color:var(--line);background:var(--s0)}
.trs-in:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.trs-in[aria-invalid="true"]{border-color:var(--bad)}
.trs-ta{min-height:72px;resize:vertical;line-height:1.5}
.trs-st{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.trs-ch{font-size:12px;font-weight:600;color:var(--attn)}
.trs-err{margin:0;font-size:12px;color:var(--bad)}
.trs-money{display:flex;flex-direction:column;gap:4px;padding:6px 8px;border-bottom:1px solid var(--line-soft)}
.trs-mls{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.trs-ml{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;min-width:0}
.trs-mw{min-width:0;overflow-wrap:anywhere}
.trs-ma{font-variant-numeric:tabular-nums}
.trs-mt{margin:0;font-size:13px;color:var(--ink-2)}
/* AN-1: the cost lines a person corrects - a words box (an SRFCO's trade and scope) and an amount box per line, Remove beside
   them, the figure list's flag under a line the agent entered; Add a line and the total under the list */
.trs-medit{gap:8px;padding:4px 0;border-bottom:0}
.trs-mle{display:flex;flex-direction:column;gap:2px;min-width:0}
.trs-mle+.trs-mle{border-top:1px solid var(--line-soft);padding-top:6px}
.trs-mrow{display:grid;grid-template-columns:minmax(0,1fr) 10em auto;gap:4px 8px;align-items:center;min-width:0}
.trs-mrow3{grid-template-columns:minmax(0,.6fr) minmax(0,1fr) 10em auto}
.trs-ma{text-align:right}
.trs-mrm{min-height:28px;padding:0 8px;font-size:12px}
.trs-fl{margin:0;padding-left:8px;border-left:2px solid var(--attn);font-size:12px;color:var(--ink-2);overflow-wrap:anywhere}
.trs-mfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px}
.trs-foot{display:flex;flex-direction:column;gap:8px;padding:12px 16px 16px;border-top:1px solid var(--line-soft)}
.trs-foot-w{margin:0;font-size:12px;color:var(--ink-2)}
.trs-acts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.trs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-ctl,4px);
  background:var(--s1);color:var(--ink);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.trs-btn:hover{background:var(--s2)}
.trs-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.trs-btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.trs-back{min-height:28px;padding:0 8px;font-size:12px}
.trs-primary{background:var(--taupe);border-color:var(--taupe);color:var(--s0);font-weight:600}
.trs-primary:hover{background:var(--taupe-deep)}

/* a phone: the whole screen with a 16px gutter; 44px controls; 16px type in the boxes (no zoom on focus) */
@media (max-width:820px){
  .trs{padding:0}
  .trs-sheet{width:100%;height:100%;max-height:none;border-radius:0;border:0}
  .trs-hd,.trs-body,.trs-foot{padding-left:16px;padding-right:16px}
  .trs-btn,.trs-in,.trs-back{min-height:44px}
  .trs-in{font-size:16px}
  .trs-acts .trs-btn{flex:1 1 140px}
  .trs-mrow,.trs-mrow3{grid-template-columns:minmax(0,1fr) auto}
  .trs-mrow .trs-mw{grid-column:1 / -1}
  .trs-mrm{min-height:44px}
}
@media print{
  .trs{display:none}
}
