/* SHS Materials installer app: its own layout, on the shared tokens set in app.css (colours, spacing, type).
   Nothing here names a colour of its own. Loaded after app.css, on the installer page only. */

/* header: Back, the emblem, three places */
.brand { display: flex; align-items: center; gap: var(--s2); font-size: var(--t3); min-width: 32px; }
.brand-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: var(--t3); letter-spacing: .04em; }
.brand-copy small { font-size: var(--t1); font-weight: 600; color: var(--muted); }
.surface-back { flex: 0 0 auto; min-width: 60px; min-height: 44px; padding: var(--s1) var(--s2) var(--s1) 0; border: 0; background: transparent; color: var(--ink);
  font-size: var(--t3); font-weight: 700; text-align: left; white-space: nowrap; }
.surface-back:disabled { color: var(--muted); }
.surface-child .brand-copy { display: none; }
.surface-child .brand { flex: 1 1 auto; }
.shs-surface #app .back { display: none; }
@media (max-width: 370px) { .brand-copy small { display: none; } .navbtn { padding-inline: var(--s1); } }
@media (max-width: 330px) { .brand-copy { display: none; } .surface-back { min-width: 56px; } }

/* the list's context, stuck under the header: job and supplier side by side, one 44px row in place of two */
.strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s3); }
.strip .ctx-row { flex-wrap: nowrap; gap: var(--s1); min-height: 44px; }
.strip .ctx-row .link { font-size: var(--t1); padding: 0 var(--s1); }

/* home */
.card.pick { border-color: var(--edge); }
/* carry on with a list: the job number, then which supplier and how many items, as strong as the number */
#app .card.choice:has(> span.muted) > b { font-size: var(--t4); font-variant-numeric: tabular-nums; }
#app .card.choice > span.muted { display: block; color: var(--ink); font-size: var(--t2); font-weight: 600; }

/* the list screen: the name and "saved" take one short row each, the items come next */
input.title-input { border: 0; border-bottom: 2px solid var(--edge); border-radius: 0; background: transparent; padding: var(--s1) 0; margin: 0; min-height: 44px; font-weight: 600; }
.saved-row { margin: var(--s1) 0 0; }
.saved-row .status { padding: 0; font-size: var(--t1); gap: var(--s1); border: 0; align-items: center; }
.saved-row .status .ic { width: 16px; font-size: var(--t2); }
.surface-list h2 { margin-top: var(--s3); }
.surface-list .lines { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.surface-list .line { border: 0; border-radius: 0; margin: 0; border-bottom: 1px solid var(--line); }
.surface-list .line:last-child { border-bottom: 0; }
.surface-list .editor { border-radius: 0; }
.surface-add { margin: var(--s3) 0 var(--s2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.surface-add > summary { min-height: var(--tap); padding: var(--s3) 0; }
.surface-add .mic { padding: var(--s1) 0; }
.surface-pickup { background: transparent; border: 0; text-align: left; padding-left: 0; margin: var(--s1) 0; text-decoration: underline; text-underline-offset: 3px; }
.bottom .surface-actions .primary { flex: 1.2; }
.bottom .surface-actions .btn { padding: var(--s3) var(--s2); }

/* my lists: search across the width, four places as tabs, and what tells one list from another in front */
.surface-lists input[type=search]::placeholder { font-size: var(--t2); }
.surface-lists .surface-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: var(--s3) 0 0; }
.surface-filters button { color: var(--muted); font-size: var(--t2); min-height: 44px; border-bottom: 3px solid transparent; }
.surface-filters button + button { border-left: 0; }
.surface-filters button.on { background: transparent; color: var(--ink); border-bottom-color: var(--accent); }
.surface-filters button.on:focus-visible { outline-color: var(--ink); }
.surface-lists .list-card { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: var(--s3) 0; }
/* the name is often the same on every card ("Job 9001 list"): it is the quiet line; supplier and item count lead */
.surface-lists .list-card b { font-size: var(--t2); font-weight: 600; }
.surface-lists .list-card > div:nth-of-type(1) { color: var(--muted); }
.surface-lists .list-card > div:nth-of-type(2) { color: var(--ink); font-size: var(--t3); font-weight: 600; margin: var(--s1) 0; }
.surface-lists .list-card > div:nth-of-type(3) { font-size: var(--t1); }
/* sent, waiting, failed or not sent: a pill, in words and colour */
.surface-lists .list-card .status { display: inline-flex; align-items: center; gap: var(--s1); border: 0; margin-top: var(--s2); padding: var(--s1) var(--s3); border-radius: var(--r);
  font-size: var(--t1); font-weight: 600; line-height: 1.3; text-align: left; background: var(--accent-soft); color: var(--ink); }
.surface-lists .list-card .status .ic { width: auto; font-size: var(--t1); line-height: 1.3; color: inherit; }
.surface-lists .list-card .status.good { background: var(--good-soft); color: var(--good); }
.surface-lists .list-card .status.bad { background: var(--bad-soft); color: var(--bad); }
/* not sent is not "waiting": no dots, a plain pill */
.surface-lists .list-card .status.surface-unsent { background: var(--fill); }
.surface-lists .list-card .status.surface-unsent .ic { display: none; }

/* check and send: who it goes to comes first, right under Quote request / Order (surface.js moves the card there) */
.surface-send h1 { margin: var(--s1) 0 var(--s2); }
.surface-to p { margin: 0 0 var(--s1); }
.surface-to .to { font-size: var(--t3); font-weight: 700; }
.surface-to .to b { font-weight: 400; color: var(--muted); }
.surface-to details.email > summary { margin: 0; }
/* the Send button says what is sent on one line; who it goes to is on the line under it */
/* One line at normal text size; at a large text size it wraps and is never cut short. */
.bottom .surface-sendbtn { white-space: normal; overflow-wrap: anywhere; }
.bottom .surface-sendto { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.surface-version { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s5); overflow-wrap: anywhere; font-size: var(--t1); }
