/* v89 DESIGN ROUND: page layer (release), per DESIGN-V89.md section 7. Tokens only; components come from next-v89.css.
   Release (#/deliver), its Shipments tab (#/custody), the clinic's Shipments, 503A copies, Settings and the Issue dialogs. */

/* ---- a page head's count line sits under the purpose line at 13/20 (".phead p" is more specific than ".v89-product") ---- */
.v89r-page .phead p.v89-product { font-size: var(--t-small-size); line-height: var(--t-small-lh); margin-top: var(--s-1); }

/* ---- Release: the lots still waiting on a review, said once under the table ---- */
.v89r-wait {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--gray-100);
  font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-700);
}
.v89r-wait > svg.i { width: 16px; height: 16px; flex: none; color: var(--gray-500); }
.v89r-wait > .link { margin-left: auto; flex: none; font-size: var(--t-small-size); line-height: var(--t-small-lh); }
/* a note under a card: 12px from it, not a section's 24 */
#view .page.v89r-page > .card + .v89r-line, #view .page.v89r-page > .grid + .v89r-line { margin-top: var(--s-3); }
#view .page.v89r-page > .v89r-gap { margin: 0 0 var(--s-4); }
/* the Ready table: the lot and its id on two lines, numbers right, one line per cell */
.v89r-page #readyTable td.two > .v89-id { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-page #readyTable td { white-space: nowrap; }
.v89r-page #readyTable td.two { white-space: normal; }
/* v90: the open items a passport would show: the count, and the items named under it (full words in the title) */
.v89r-page #readyTable td.v89r-oi { white-space: normal; max-width: 280px; }
.v89r-page #readyTable td.v89r-oi .l1 { display: block; font-size: var(--t-body-size); line-height: var(--t-body-lh); color: var(--gray-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v89r-page #readyTable td.v89r-oi .l2 { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the table ends with its footer: the count on the left, the release rule and its link on the right */
.v89r-page [data-batchscope] .tfoot, .v89r-page .grid.g-main .tfoot { min-height: 48px; padding: var(--s-3) var(--s-4); font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-page [data-batchscope] .tfoot .link, .v89r-page .grid.g-main .tfoot .link { margin-left: var(--s-2); font-size: var(--t-small-size); line-height: var(--t-small-lh); }
/* the All / Recall notice switch: filter chips */
.v89r-filters { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
/* the passport panel: labels in one column wide enough for "Documents cleared by"; long ids wrap, never clip */
.v89r-page aside.panel dl.kv { grid-template-columns: minmax(0, 8em) minmax(0, 1fr); column-gap: var(--s-3); }
.v89r-page aside.panel dl.kv dd { overflow-wrap: anywhere; min-width: 0; }
.v89r-page #passLib td.v89-id { white-space: nowrap; }
/* an empty tab: the empty state is the card's whole body */
.v89r-emptycard .v89-empty, .v89r-emptycard .empty { padding: var(--s-12) var(--s-6); }
.v89r-emptycard .v89-empty > span { display: block; max-width: 64ch; margin: var(--s-1) auto 0; }
.v89r-cardnote { margin: 0; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--gray-100); font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }

/* ---- Shipments: the dot matrix without a grey tray and a white card inside it ---- */
.v89r-page .umatrix { background: none; border: 0; padding: 0; box-shadow: none; gap: var(--s-3); }
.v89r-page .umatrix .um-g { background: var(--gray-50); border: 0; border-radius: var(--r-ctl); box-shadow: none; padding: var(--s-3) var(--s-4); }
.v89r-page .umatrix .um-h b { font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--w-medium); color: var(--gray-900); }
.v89r-page .umatrix .um-h .v89-id { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-page .um-l { margin-top: var(--s-3); font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
/* the exceptions, when one holds something: full width, rows without icon tiles */
.v89r-page .grid.g-2.v89r-exc { grid-template-columns: minmax(0, 1fr); }
.v89r-page .v89r-exc .slist .tile { display: none; }
.v89r-page .v89r-exc .slist > div { padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--gray-100); }
.v89r-page .v89r-exc .slist > div:last-child { border-bottom: 0; }
/* none holds anything: one quiet line */
#view .page .v89r-clear { margin: 0; padding: 0; }
#view .page .v89r-clear .v89-check { align-items: flex-start; color: var(--gray-700); }
#view .page .v89r-clear .v89-check svg { margin-top: 2px; }
#view .page .stack > .v89r-clear { margin-top: var(--s-1); }

/* ---- the clinic's box card: its facts are a quiet row, not a bordered strip inside the card ---- */
.v89r-clinic .v89r-box .card-h h2 { flex: 0 1 auto; }
.v89r-clinic .v89r-lot { font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
#view .v89r-clinic .v89r-box .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-4); grid-auto-flow: row;
  margin: 0 0 var(--s-4); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
#view .v89r-clinic .v89r-box .facts > div { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; min-width: 0; }
#view .v89r-clinic .v89r-box .facts > div + div { border-left: 0; }
#view .v89r-clinic .v89r-box .facts small { font-size: var(--t-small-size); line-height: var(--t-small-lh); font-weight: var(--w-medium); color: var(--gray-500); letter-spacing: 0; text-transform: none; }
#view .v89r-clinic .v89r-box .facts span { font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--w-regular); color: var(--gray-900); white-space: normal; overflow: visible; }
#view .v89r-clinic .v89r-box .inglist { margin: 0; padding: 0; border-top: 1px solid var(--gray-100); }
#view .v89r-clinic .v89r-box .inglist li { display: grid; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--gray-100); font-size: var(--t-body-size); line-height: var(--t-body-lh); color: var(--gray-900); }
#view .v89r-clinic .v89r-box .inglist li .v89-check { justify-self: end; font-size: var(--t-small-size); line-height: var(--t-small-lh); }
#view .v89r-clinic .v89r-box .meta { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.v89r-clinic .v88unit { height: 22px; padding: 0 var(--s-2); margin: var(--s-1) var(--s-2) 0 0; border-radius: var(--r-chip); font-size: var(--t-label-size); line-height: var(--t-label-lh); background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-700); }
.v89r-clinic .v88unit .mono { font-family: var(--font); font-weight: var(--w-medium); font-variant-numeric: tabular-nums slashed-zero; font-size: inherit; }

/* ---- 503A copies: the privacy sentence and the file's state as one quiet line ---- */
#view .page .cfbar.v89r-cfbar {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-6); padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0;
}
.v89r-cfbar .cfbar-t { display: flex; align-items: flex-start; gap: var(--s-2); flex: 1 1 320px; min-width: 0; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-cfbar .cfbar-t svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gray-500); }
.v89r-cfbar .cfbar-a { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.v89r-cfbar .cfbar-a .link { font-size: var(--t-small-size); line-height: var(--t-small-lh); }
/* an order waiting to be filled without a good determination: one callout (tone fill, tone text), not a card with a tile */
#view .v89r-copies section.card.stale { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--attention-bg); color: var(--attention-fg); border: 0; border-radius: var(--r-ctl); box-shadow: none; }
#view .v89r-copies section.card.stale .st-ic { width: 16px; height: 16px; min-width: 16px; margin-top: 2px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: currentColor; display: block; }
#view .v89r-copies section.card.stale .st-ic svg.i { width: 16px; height: 16px; }
#view .v89r-copies section.card.stale .st-tx b { display: block; font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--w-semibold); color: inherit; }
#view .v89r-copies section.card.stale .st-tx p { margin: var(--s-1) 0 0; font-size: var(--t-body-size); line-height: var(--t-body-lh); color: inherit; }
/* the menu's file choosers are rows like the rest */
.v84menu label.btn.mi { cursor: pointer; }
/* the empty panel: the problem on the left, how it works on the right; its primary first */
.v89r-copies .copy-empty .ce-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); }
#view .v89r-copies section.card.copy-empty.v89r-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); padding: var(--s-6); align-items: start; }
.v89r-hero .ce-l { padding: 0; max-width: none; }
.v89r-hero .ce-l h2 { margin: 0 0 var(--s-2); }
.v89r-hero .ce-l p { margin: 0; font-size: var(--t-body-size); line-height: var(--t-body-lh); color: var(--gray-700); }
.v89r-how { padding: 0 0 0 var(--s-6); border-left: 1px solid var(--gray-200); }
.v89r-how h3 { margin: 0 0 var(--s-3); font-size: var(--t-small-size); line-height: var(--t-small-lh); font-weight: var(--w-medium); color: var(--gray-500); }
#view .v89r-how ol.ce-r { list-style: none; counter-reset: v89r; display: grid; gap: var(--s-3); margin: 0; padding: 0; border: 0; background: none; }
#view .v89r-how ol.ce-r > li { counter-increment: v89r; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--s-2); margin: 0; padding: 0; border: 0; background: none; }
#view .v89r-how ol.ce-r > li::before { content: counter(v89r); grid-row: span 2; width: 20px; height: 20px; border-radius: var(--r-chip); background: var(--gray-100); color: var(--gray-700); font-size: var(--t-label-size); line-height: 20px; font-weight: var(--w-medium); text-align: center; }
#view .v89r-how ol.ce-r > li b { display: block; font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--w-medium); color: var(--gray-900); }
#view .v89r-how ol.ce-r > li span { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }

/* ---- Settings: the workspace monogram in grey; the release rules as one list with dividers ---- */
.v89r-settings .setnav .sn-who .av {
  width: 32px; height: 32px; min-width: 32px; border-radius: var(--r-ctl); background: var(--gray-100); color: var(--gray-700); box-shadow: none; border: 0;
  font-size: var(--t-label-size); line-height: var(--t-label-lh); font-weight: var(--w-semibold); display: inline-grid; place-items: center;
}
.v89r-settings .plist.v89r-rules { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--gray-200); border-radius: var(--r-ctl); background: var(--gray-0); box-shadow: none; overflow: hidden; }
.v89r-settings .plist.v89r-rules > label.prow { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: var(--s-3) var(--s-4); }
.v89r-settings .plist.v89r-rules > label.prow + label.prow { border-top: 1px solid var(--gray-100); }
.v89r-settings .plist.v89r-rules > label.prow:hover { background: var(--gray-50); }
.v89r-settings .setbody table td.r .v89-check, .v89r-settings .setbody table td.r .v89-muted { font-size: var(--t-small-size); line-height: var(--t-small-lh); }
.v89r-settings .setbody table td.r .v89-check { justify-content: flex-end; }

/* ---- the Issue passports dialogs: the passport's definition as the first line ---- */
#dialog .v89r-def { margin: 0 0 var(--s-4); font-size: var(--t-body-size); line-height: var(--t-body-lh); color: var(--gray-500); max-width: 80ch; }
#dialog .slrow .tx .v89-id { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
#dialog .issue-row .tx .v89-id { color: var(--gray-700); }

/* two lines set at 13.5px by older layers: the Settings sections' lead paragraphs and the Issue dialog's "dispensed as
   purchased" tick */
.v89r-settings .v88say { font-size: var(--t-body-size); line-height: var(--t-body-lh); }
#dialog form[data-form="issue"] label.v82chk, #dialog form[data-form="mintSeals"] label.v82chk { font-size: var(--t-body-size); line-height: var(--t-body-lh); }

/* ---- phone ---- */
@media (max-width: 699px) {
  .v89r-wait { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; }
  .v89r-wait > svg.i { margin-top: 2px; }
  .v89r-wait > .link { grid-column: 2; margin-left: 0; }
  /* a ready lot's card leads with its name and id, not an empty label column */
  #view .v89r-page #readyTable td.ck + td { display: block; padding: 0 var(--s-8) var(--s-1) 0; }
  #view .v89r-page #readyTable td.ck + td::before { display: none; }
  #view .v89r-page #readyTable td.v89r-oi { max-width: none; }
  #view .v89r-page #readyTable td.v89r-oi .l2 { white-space: normal; }
  #view .v89r-copies section.card.copy-empty.v89r-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-4); }
  .v89r-how { padding: var(--s-5) 0 0; border-left: 0; border-top: 1px solid var(--gray-200); }
  .v89r-page aside.panel dl.kv { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .v89r-page aside.panel dl.kv dd { margin-bottom: var(--s-2); }
  #view .v89r-clinic .v89r-box .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v89r-cfbar .cfbar-a { flex-wrap: wrap; }
  /* the Issued list's search takes its own row above the filter chips */
  .v89r-page .grid.g-main .toolbar { flex-wrap: wrap; row-gap: var(--s-2); }
  .v89r-page .grid.g-main .toolbar > label.field { flex: 1 1 100%; }
  .v89r-page .grid.g-main .toolbar > .v89r-filters { margin-left: 0; }
}

/* v92 (fix round, G2): the clinic's box: the passport's id with its release code named under it; the units a quiet line */
#view .v89r-clinic .facts span.v89r-sub { display: block; margin: 0; font-weight: var(--w-regular); font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-clinic p.v89r-units { margin: var(--s-3) 0 0; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
.v89r-clinic p.v89r-units .v89-id { color: var(--gray-700); }
/* Release, v92 (G2): the search at the end of the tabs row (it was an 80px band of its own); one footer under the table */
.v89r-tabs { display: flex; align-items: center; }
.v89r-tabs > label.field.v89r-search { margin: 0 0 var(--s-1) auto; flex: 0 1 260px; height: 32px; min-height: 32px; }
.v89r-page .tfoot .v89r-wait2 { color: var(--gray-500); }
.v89r-page .tfoot .v89r-wait2 .link { font-size: inherit; line-height: inherit; }
/* each decision owed on the passport is a quiet link to where it is settled */
/* v93 (decision 13): each decision owed is an inline link in the accent, as every link in the app (grey text with a grey
   underline was a third link style) */
.v89r-oi .l2 a.v89r-oil { color: var(--accent); font-weight: var(--w-medium); text-decoration: none; }
.v89r-oi .l2 a.v89r-oil:hover { color: var(--accent-hover); }
.v89r-page aside.panel dd.v89r-passid { overflow-wrap: anywhere; white-space: normal; }

/* =============================================================== v93 FIX ROUND (H2) */
/* decision 20: a passport row is named by its passport id, the order and the release code labelled under it */
.v89r-page #passLib td.v93-passcell .l1 { display: block; }
.v89r-page #passLib td.v93-passcell .l2 { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); white-space: normal; }
.v89r-page #passLib td.v93-passcell .l2 .v89-id { color: var(--gray-700); font-weight: var(--w-regular); }
.v93-pass { white-space: nowrap; }
.v89r-page aside.panel .v89r-sub { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
/* the clinic's box: the passport id, then its order and the release code on the slip, each a labelled line */
.v89r-clinic .facts .v93-passfact { display: block; }
.v89r-clinic .facts .v93-passfact .v89r-sub { display: block; font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-500); }
#view .v89r-clinic .facts .v93-passfact .v89r-sub .v89-id { display: inline; color: var(--gray-700); font-weight: var(--w-regular); }
#view .v89r-clinic .facts .v93-passfact > .v93-pass { display: block; }
/* what is certain from here, with no green check: a passport was issued */
.v89r-clinic .card-h .v93-issued { font-size: var(--t-small-size); line-height: var(--t-small-lh); color: var(--gray-700); white-space: nowrap; }
/* the test-report group: one secondary button and a ghost button, never a button beside a blue link */
#view .v89r-clinic .v89pf-acts > button.link { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); border: 1px solid var(--gray-300); border-radius: var(--r-ctl); background: var(--gray-0); color: var(--gray-900); font-size: var(--t-body-size); line-height: var(--t-body-lh); font-weight: var(--w-medium); text-decoration: none; }
#view .v89r-clinic .v89pf-acts > button.link:hover { background: var(--gray-50); color: var(--gray-900); }
/* the decisions owed wrap onto a second line rather than being cut ("FD…") */
.v89r-page #readyTable td.v89r-oi .l2 { white-space: normal; overflow: visible; text-overflow: clip; }
.v89r-page #readyTable td.v89r-oi a.v89r-oil { white-space: nowrap; }
/* the "nothing needs you" line wraps on a phone (the check's one-line rule pushed the page to 994px) */
.v89r-page .v89r-clear .v89-check { white-space: normal; align-items: flex-start; max-width: 100%; }
.v89r-page .v89r-clear .v89-check svg { flex: none; margin-top: 2px; }
