/* UniCirc Workspace 2 — Reorders (prefix ro-). Small additions only; colours come from the ws2.css variables (the original dark UniCirc colours; no new colours). */

/* search on the list */
.ro-search { position: relative; display: flex; align-items: center; }
.ro-search .ic { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.ro-search input { width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; -webkit-appearance: none; appearance: none; }
.ro-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.ro-uptodate { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ro-uptodate .ic { color: var(--ok); }
/* the "Your turn" chip sits after the title, as on the other lists */
.ro-rows .row-t .chip { margin-left: 6px; vertical-align: 1px; }

/* a row this role can read but not open (same look as a.row, no chevron) */
.ro-static { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; }

/* record page */
.ro-sheet, .ro-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.ro-sheet:hover, .ro-link:hover { text-decoration-color: var(--ink); }
.ro-helpl { margin-left: 4px; color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.ro-rq { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.3; color: var(--ink-3); white-space: nowrap; }
.ro-dd { display: block; color: var(--ink-3); font-size: 13.5px; }
.ro-warn { color: var(--wait); font-weight: 600; }
.ro-dchg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 18px; }
.ro-dchg s { color: var(--ink-3); }
.ro-dchg .muted { font-size: 14.5px; }
.ro-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ro-hist li { display: grid; gap: 4px; }
.done-panel .ro-pct { font-weight: 600; color: var(--ink); }
#ro-msgs { scroll-margin-top: calc(var(--top) + 16px); }

/* dialogs */
.ro-sum { gap: 4px; }
.ro-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ro-quick > .hint { flex-basis: 100%; }
.ro-quick .b { white-space: normal; text-align: left; font-weight: 500; }
.ro-live { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ro-live:empty { display: none; }
.ro-live.ok { color: var(--ok); }
.ro-live.wait { color: var(--wait); }
.ro-live.bad { color: var(--bad); }
.fld.ro-need textarea { border-color: var(--wait); box-shadow: 0 0 0 3px var(--wait-tint); }
.ro-checks { display: grid; gap: 8px; }
.ro-ck { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.ro-ck input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ok); cursor: pointer; }
.ro-ck:has(input:checked) { border-color: var(--ok); background: var(--ok-tint); }
.ro-ck:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fld.bad .ro-ck:not(:has(input:checked)) { border-color: var(--bad); }

/* phones: facts as short lines, rows without a side column */
@media (max-width: 860px) {
  .ro-facts > div { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 14px; }
  .ro-facts b { font-size: 20px; }
  .ro-static { grid-template-columns: minmax(0, 1fr); }
  .ro-dchg { font-size: 17px; }
  /* long status words wrap instead of pushing the page sideways at 390 px */
  .ro-rows .row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
  .ro-rows .chip { white-space: normal; }
}

/* one flow: the first order says so, with the Decision Sheet's quantities (chip + one plain line) */
.ro-kind { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 10px; color: var(--ink-2); font-size: 14.5px; }
.ro-kind .chip { margin-top: 1px; }

/* recycled fabric on a reorder and garment IDs (RFID): long ID lists wrap inside the card; the "Use … m" button sits next to its live line */
.ro-ids { overflow-wrap: anywhere; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ro-maxl { margin-top: -6px; }
.ro-maxl .ro-live { flex: 1 1 200px; }
#ro-fabric { scroll-margin-top: calc(var(--top) + 16px); }
