/* The shop back office (/shop) and its admin (/shop-admin). Phase 1 of the
   marketplace, 13 Nov 2026.

   Built on the --tli- tokens in theme-inv.css, the live site's palette since the
   redesign launched (12 Nov 2026), and NOT on the mockups' inv.css: that file's
   values drifted from the shipped ones (its rule is #C5BFB3, the site's #C9C0B1;
   its muted ink and small-brass text differ too). Class shapes follow inv.css so
   the screens read like the mockups: square corners, 2px boxes, condensed
   capitals, the brass shadow on a primary button.

   Everything is under .bo- so nothing here restyles a page that isn't the back
   office. Loaded lazily with the screen (App.jsx), like partner.css. */

.bo {
  --bo-gutter: 40px;
  background: var(--tli-surface);
  color: var(--tli-ink);
  font-family: var(--tli-font-sans);
  font-size: 16px;
  min-height: 100vh;
  padding-top: var(--nav-h, 64px);
}
.bo *, .bo *::before, .bo *::after { box-sizing: border-box; }
.bo a { color: inherit; }
.bo :focus-visible { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo .bo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- type ---------------------------------------------------------------- */
.bo-eyebrow { font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-accent-text); margin: 0; }
.bo-kick { font: 400 11px/1.4 var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); margin: 0; }
.bo-h1, .bo-h2, .bo-h3 {
  font-family: var(--tli-font-display); font-stretch: var(--tli-display-stretch); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0; margin: 0; overflow-wrap: anywhere;
}
.bo-h1 { font-size: clamp(34px, 6vw, 56px); line-height: .9; }
.bo-h2 { font-size: 28px; line-height: .92; }
.bo-h3 { font-size: 21px; line-height: .95; }
.bo-lede { font-family: var(--tli-font-serif); font-size: 18px; line-height: 1.5; color: var(--tli-ink-soft); margin: 0; max-width: 62ch; }
.bo-p { font-size: 14px; line-height: 1.55; color: var(--tli-ink-soft); margin: 0; }
.bo-meta { font-size: 13px; color: var(--tli-ink-muted); }
.bo-mono { font-family: var(--tli-font-mono); }
.bo-num { font-variant-numeric: tabular-nums; }
.bo-stat-n { font-family: var(--tli-font-display); font-stretch: var(--tli-display-stretch); font-weight: 900; font-size: 52px; line-height: .95; font-variant-numeric: tabular-nums; }
.bo-big { font-family: var(--tli-font-display); font-stretch: var(--tli-display-stretch); font-weight: 900; font-size: 40px; line-height: .95; font-variant-numeric: tabular-nums; }

/* ---- the frame: top bar, side nav, content -------------------------------- */
.bo-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 14px var(--bo-gutter); border-bottom: 1px solid var(--tli-rule); background: var(--tli-surface);
}
.bo-top-l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.bo-top-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bo-shopname { font: 600 15px var(--tli-font-sans); }
.bo-main { padding: 32px var(--bo-gutter) 96px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bo-head { display: flex; flex-direction: column; gap: 10px; }

/* ---- surfaces ---------------------------------------------------------------- */
.bo-card { background: var(--tli-surface); border: 2px solid var(--tli-rule-strong); padding: 20px; min-width: 0; }
.bo-well { background: var(--tli-surface-bar); border: 1px solid var(--tli-rule); padding: 16px; }
.bo-voice { background: var(--tli-voice); color: var(--tli-on-voice); padding: 14px 16px; font-size: 14px; }
.bo-voice a, .bo-voice strong { color: var(--tli-on-voice); }
.bo-sec { border-top: 2px solid var(--tli-rule-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.bo-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bo-grid-2 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.bo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bo-stack { display: flex; flex-direction: column; gap: 12px; }
.bo-flash { background: var(--tli-surface-bar); border: 2px solid var(--tli-rule-strong); padding: 12px 16px; font-size: 14px; }
.bo-flash.bad { border-color: var(--tli-down); color: var(--tli-down); }

/* ---- buttons ----------------------------------------------------------------- */
/* .bo-prefixed: the theme's [data-tli-look="inv"] button { font: inherit } is
   (0,1,1) and beat a bare .bo-btn, which drew buttons in the text face. */
.bo .bo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 2px solid var(--tli-ink); border-radius: 0; background: var(--tli-ink); color: var(--tli-on-panel);
  font-family: var(--tli-font-display); font-stretch: var(--tli-display-stretch); font-weight: 900; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.bo .bo-btn:hover:not(:disabled) { color: var(--tli-on-panel); transform: translate(-2px, -2px); box-shadow: var(--tli-shadow-press); }
.bo .bo-btn.primary { box-shadow: var(--tli-shadow-press); }
.bo .bo-btn.primary:hover:not(:disabled) { box-shadow: 8px 8px 0 var(--tli-accent); }
.bo .bo-btn.ghost { background: transparent; color: var(--tli-ink); }
.bo .bo-btn.ghost:hover:not(:disabled) { color: var(--tli-ink); box-shadow: 5px 5px 0 var(--tli-ink); }
.bo .bo-btn.small { min-height: 34px; padding: 5px 11px; font-size: 15px; }
.bo .bo-btn:disabled { opacity: .45; cursor: not-allowed; }
.bo .bo-link { color: var(--tli-voice); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--tli-font-sans); }

/* ---- chips ------------------------------------------------------------------- */
.bo-chip {
  display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--tli-font-mono); letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 8px; border: 1.5px solid var(--tli-ink); background: transparent; color: var(--tli-ink); white-space: nowrap;
}
.bo-chip.voice { background: var(--tli-voice); border-color: var(--tli-voice); color: var(--tli-on-voice); }
.bo-chip.ok { border-color: var(--tli-up); color: var(--tli-up); }
.bo-chip.bad { border-color: var(--tli-down); color: var(--tli-down); }
.bo-chip.dim { border-color: var(--tli-rule); color: var(--tli-ink-muted); }
.bo-chip.ink { background: var(--tli-ink); color: var(--tli-on-panel); }

/* ---- key / value rows and tables -------------------------------------------- */
.bo-kv { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--tli-rule); }
.bo-kv > :first-child { color: var(--tli-ink-soft); }
.bo-kv > :last-child { text-align: right; font-weight: 600; }
.bo-terms { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--tli-rule); }
.bo-terms .bo-big { grid-row: span 2; }
.bo-terms b { font-size: 15px; }
.bo-tbl-wrap { overflow-x: auto; }
.bo-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-tbl th { text-align: left; font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); padding: 10px 8px; border-bottom: 2px solid var(--tli-ink); white-space: nowrap; }
.bo-tbl td { padding: 12px 8px; border-bottom: 1px solid var(--tli-rule); vertical-align: middle; }
.bo-tbl tr.click { cursor: pointer; }
.bo-tbl tr.click:hover td { background: var(--tli-surface-bar); }
.bo-tbl tr.click:focus-visible td { outline: 2px solid var(--tli-focus); outline-offset: -2px; }

/* ---- DataTable: search, filters and sorting on every list ----------------------- */
.bo-dt-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.bo-dt-q { flex: 1 1 220px; min-width: 0; }
.bo-dt-f { flex: 0 1 200px; min-width: 0; }
.bo-dt-n { margin-left: auto; white-space: nowrap; }
.bo-dt-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.bo-dt-sort:hover { color: var(--tli-ink); }
.bo-dt-sort:focus-visible { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo-tbl th[aria-sort="ascending"], .bo-tbl th[aria-sort="descending"] { color: var(--tli-ink); }
@media (max-width: 600px) { .bo-dt-f { flex: 1 1 100%; } .bo-dt-n { margin-left: 0; } }

/* ---- the set-up checklist ------------------------------------------------------ */
.bo-check { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--tli-rule); }
.bo-check .mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font: 500 14px var(--tli-font-mono); border: 2px solid var(--tli-rule-strong); }
.bo-check.done .mark { background: var(--tli-up); border-color: var(--tli-up); color: var(--tli-on-panel); }
.bo-check.todo .mark { background: var(--tli-voice); border-color: var(--tli-voice); color: var(--tli-on-voice); }
.bo-check.later { color: var(--tli-ink-muted); }
.bo-check.later .mark { border-color: var(--tli-rule); color: var(--tli-ink-faint); }
.bo-check b { font-size: 15px; }
/* Coming later: shown, so a shop sees the whole road, but plainly not live.
   Muted ink (4.9:1 on the page, so still readable), dashed boxes and an
   "Opens later" chip: never colour alone. */
.bo-group + .bo-group { margin-top: 22px; }
.bo .bo-grouph { justify-content: space-between; padding: 8px 0 4px; border-bottom: 2px solid var(--tli-rule-strong); }
.bo-coming .bo-grouph { border-bottom-style: dashed; border-bottom-color: var(--tli-rule); }
.bo-coming, .bo-coming .bo-p, .bo-coming b, .bo-coming .bo-big, .bo-coming .bo-h3, .bo-coming .bo-eyebrow, .bo-coming .bo-meta { color: var(--tli-ink-faint); }
/* A note in a greyed-out section sits on the bar colour, where the faint ink is 4.4:1 (QA UI-13, axe on /shop/page); muted ink there is 5.1:1. */
.bo-coming .bo-flash:not(.bad), .bo-coming .bo-flash:not(.bad) .bo-p, .bo-coming .bo-flash:not(.bad) b, .bo-coming .bo-flash:not(.bad) .bo-meta { color: var(--tli-ink-muted); }
.bo-card.bo-coming, .bo-well.bo-coming { border: 2px dashed var(--tli-rule); background: transparent; }
.bo-coming .bo-check .mark { border-color: var(--tli-rule); color: var(--tli-ink-faint); background: transparent; }
.bo-track { height: 10px; background: var(--tli-rule); overflow: hidden; }
.bo-fill { height: 100%; background: var(--tli-voice); }

/* ---- steps strip ----------------------------------------------------------- */
.bo-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; }
.bo-steps > span { display: flex; gap: 8px; align-items: center; color: var(--tli-ink-muted); }
.bo-steps > span.done { color: var(--tli-up); }
.bo-steps .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font: 500 12px var(--tli-font-mono); border: 2px solid var(--tli-rule); }
.bo-steps .done .n { background: var(--tli-up); border-color: var(--tli-up); color: var(--tli-on-panel); }

/* ---- tabs -------------------------------------------------------------------- */
.bo-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 2px solid var(--tli-ink); font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.bo .bo-tabs a, .bo .bo-tabs button, .bo .bo-tabs span { padding: 14px 0; text-decoration: none; color: var(--tli-ink-muted); border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.bo .bo-tabs .on { color: var(--tli-ink); border-bottom-color: var(--tli-voice); }
.bo .bo-tabs span.soon { cursor: default; color: var(--tli-ink-faint); }

/* ---- forms ------------------------------------------------------------------- */
.bo-fld { display: flex; flex-direction: column; gap: 6px; font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); min-width: 0; }
.bo .bo-inp { height: 44px; border: 2px solid var(--tli-rule-strong); border-radius: 0; background: var(--tli-surface); padding: 0 12px; font: 400 15px var(--tli-font-sans); text-transform: none; letter-spacing: 0; color: var(--tli-ink); width: 100%; }
.bo textarea.bo-inp { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.bo select.bo-inp { appearance: auto; }
.bo .bo-inp[readonly], .bo .bo-inp:disabled { background: var(--tli-surface-bar); color: var(--tli-ink-soft); }
.bo-fld .bo-err { color: var(--tli-down); text-transform: none; letter-spacing: 0; font: 600 13px var(--tli-font-sans); }
.bo-form { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bo-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.bo-choice label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--tli-rule-strong);
  font: 600 14px var(--tli-font-sans); text-transform: none; letter-spacing: 0; color: var(--tli-ink); cursor: pointer;
}
.bo-choice input { accent-color: var(--tli-ink); width: 16px; height: 16px; margin: 0; }
.bo-choice label:has(input:checked) { background: var(--tli-ink); color: var(--tli-on-panel); }
.bo-tick { display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.45 var(--tli-font-sans); color: var(--tli-ink-soft); text-transform: none; letter-spacing: 0; }
.bo-tick input { accent-color: var(--tli-ink); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }

/* ---- agreement text --------------------------------------------------------- */
.bo-doc { font-family: var(--tli-font-serif); font-size: 16px; line-height: 1.6; color: var(--tli-ink-soft); white-space: pre-wrap; max-height: 360px; overflow: auto; padding: 16px; border: 1px solid var(--tli-rule); background: var(--tli-surface-bar); }

/* ---- log -------------------------------------------------------------------- */
.bo-log { display: flex; flex-direction: column; }
.bo-log > div { display: grid; grid-template-columns: 118px 90px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--tli-rule); font-size: 13px; }
.bo-log .t { font-family: var(--tli-font-mono); color: var(--tli-ink-muted); }

/* ---- sign in and the centred states ---------------------------------------- */
.bo-centre { max-width: 520px; margin: 0 auto; padding: 12vh 16px 96px; display: flex; flex-direction: column; gap: 18px; }

/* ---- records: finding one, its parts, the lists (phase 2) -------------------- */
/* A field with its button beside it: the field takes the room. */
.bo-fld .bo-row > .bo-inp { flex: 1 1 auto; min-width: 0; }
.bo-fld .bo-row > .bo-btn { flex: none; }
.bo-hint { font: 400 13px/1.45 var(--tli-font-sans); color: var(--tli-ink-muted); text-transform: none; letter-spacing: 0; }
.bo-price-rule { margin: 0; }
.bo-price-pct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bo-price-pct .bo-inp { flex: none; width: 88px; text-align: right; }
.bo-price-sign, .bo-price-unit { font: 600 18px var(--tli-font-sans); color: var(--tli-ink); letter-spacing: 0; text-transform: none; }
.bo-warn { color: var(--tli-voice); }
.bo-file { height: auto; padding: 10px 12px; }

.bo .bo-cand {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 72px; padding: 8px;
  border: 2px solid var(--tli-rule-strong); background: var(--tli-surface); color: var(--tli-ink); cursor: pointer; font: 400 14px/1.35 var(--tli-font-sans);
}
.bo .bo-cand:hover, .bo .bo-cand:focus-visible { background: var(--tli-surface-bar); }
.bo-cand img, .bo-cand-noart { width: 56px; height: 56px; object-fit: cover; background: var(--tli-surface-bar); display: block; }
.bo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bo .bo-pick {
  min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--tli-rule-strong); background: var(--tli-surface); color: var(--tli-ink);
  font: 600 14px var(--tli-font-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.bo .bo-pick.on { background: var(--tli-ink); color: var(--tli-on-panel); }

.bo-slot { border: 2px dashed var(--tli-rule); display: flex; flex-direction: column; min-height: 140px; }
.bo-slot.req { border-color: var(--tli-voice); }
.bo-slot.done { border-style: solid; border-color: var(--tli-up); }

.bo-slot-add { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px;
  cursor: pointer; font: 600 13px/1.3 var(--tli-font-sans); text-align: center; }
.bo-slot-add > span:first-of-type { font: 400 24px/1 var(--tli-font-mono); }
.bo-slot-add:focus-within { outline: 2px solid var(--tli-focus); outline-offset: 2px; }

.bo-bulk { position: sticky; top: calc(var(--nav-h, 64px) + 4px); z-index: 2; background: var(--tli-surface-bar); border: 2px solid var(--tli-rule-strong); padding: 12px; gap: 8px; }
.bo-sticky { position: sticky; top: calc(var(--nav-h, 64px) + 16px); }

/* ---- phones ------------------------------------------------------------------ */
/* Orders and money (phase 5a, components/ShopOrders.jsx). */
.bo-ostats { gap: 28px 40px; }
.bo-ostats > div { display: flex; flex-direction: column; gap: 2px; }
.bo-crumbs { font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); margin: 0; }
.bo-addr { font-style: normal; white-space: pre-line; font-size: 15px; line-height: 1.5; background: var(--tli-surface-bar); padding: 12px 14px; }
.bo .bo-inp.bo-money { width: 96px; }
.bo-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Common Ground parity 7: the home page's week, stock and slow movers. */
.bo-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.bo-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--tli-rule-strong); display: flex; flex-direction: column; gap: 10px; }
.bo-timeline li { position: relative; font-size: 14px; }
.bo-timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; background: var(--tli-ink); }

/* Messages and offers (phase 5b, components/ShopOrders.jsx). */
.bo-msgs { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.bo .bo-thread { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--tli-rule); text-decoration: none; color: inherit; }
.bo .bo-thread.on { border: 2px solid var(--tli-ink); }
.bo .bo-thread.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; background: var(--tli-voice); vertical-align: middle; }
.bo-snip { font-size: 14px; color: var(--tli-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bo-chat li { max-width: 85%; padding: 10px 14px; background: var(--tli-surface-bar); white-space: pre-line; }
.bo-chat li.shop { align-self: flex-end; background: var(--tli-surface); border: 2px solid var(--tli-ink); }
.bo-chat li.system { align-self: center; max-width: 100%; background: transparent; border: 1px dashed var(--tli-rule); }
.bo-chat li .bo-p { margin: 0 0 4px; }

/* The gate (phase 6, components/ShopAdminReports.jsx). */
.bo-gate { position: relative; height: 14px; background: var(--tli-surface-bar); border: 1px solid var(--tli-rule); }
.bo-gate-fill { height: 100%; background: var(--tli-voice); }
.bo-gate-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--tli-ink); }

@media (max-width: 900px) {
  .bo-msgs { grid-template-columns: minmax(0, 1fr); }
  .bo-msgs.has-thread > div:last-child { order: -1; }
  .bo { --bo-gutter: 16px; }
  .bo-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .bo-main { padding-top: 24px; }
  .bo-stat-n { font-size: 44px; }
  .bo-log > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bo-check { grid-template-columns: 32px minmax(0, 1fr); }
  .bo-check > :last-child { grid-column: 2; }
  .bo-sticky, .bo-bulk { position: static; }
  .bo-cand { grid-template-columns: 56px minmax(0, 1fr); }
  .bo-cand > :last-child:not(img) { grid-column: 2; justify-self: start; }
}

/* ==== Set-up and stock workflow (14 Nov 2026, claude/bo-setup-ux) ===========
   The home's "needs you now", the guided set-up steps, the terms screen, the
   stock-sources panel, "where do you edit", channel logos, the menu's counts.
   components/ShopApp.jsx, ShopSync.jsx, ShopStock.jsx, ShopReports.jsx. */

/* Targets: every control here is at least 44px (WCAG 2.5.5). */
.bo .bo-tap { display: inline-flex; align-items: center; min-height: 44px; }
/* Link-style buttons in tables and button rows, and ticks in tables, are at
   least 24px to tap (QA UI-13, axe target-size on webhooks, newsletters,
   the team and your account). Not in running text, where they stay inline. */
.bo td button.bo-link, .bo .bo-row > button.bo-link, .bo .bo-nl-acts button.bo-link { display: inline-flex; align-items: center; min-height: 24px; vertical-align: middle; }
.bo td input[type="checkbox"], .bo td input[type="radio"] { width: 24px; height: 24px; }
.bo .bo-check-in { width: 22px; height: 22px; margin: 11px; accent-color: var(--tli-ink); }
.bo-main:focus, .bo-main h1[tabindex="-1"]:focus, .bo-main h2[tabindex="-1"]:focus { outline: none; }

/* The menu's counts: a number and, for screen readers, "waiting". The
   menu is positioned, so the hidden words stay inside its scroll on a phone
   (an absolute .bo-sr in a static scroller widened the page to 991px). */
.bo-tbl-wrap { position: relative; }
.bo-tbl .bo-num { white-space: nowrap; }

/* The set-up steps: the next one stands out by a box, a "Next" label and the
   primary button, not by colour alone. Done ones fold to a line. */
.bo-check.next { border: 2px solid var(--tli-ink); padding: 16px 14px; margin: 8px 0; background: var(--tli-surface); }
.bo-check.next .mark { background: var(--tli-ink); border-color: var(--tli-ink); color: var(--tli-on-panel); }
.bo-check.todo:not(.next) .mark { background: transparent; color: var(--tli-ink); border-color: var(--tli-rule-strong); }
.bo-check.done b { color: var(--tli-ink-soft); }

/* Needs you now. */

/* The terms, on their own. */
.bo-gate-terms { max-width: 760px; margin: 0 auto; padding: 40px 16px 96px; display: flex; flex-direction: column; gap: 18px; }
.bo-gate-terms .bo-steps { list-style: none; margin: 0; padding: 0; }
.bo-gate-terms .bo-steps li { display: flex; gap: 8px; align-items: center; color: var(--tli-ink-muted); }
.bo-gate-terms .bo-steps li.on { color: var(--tli-ink); }
.bo-gate-terms .bo-steps li.on .n { background: var(--tli-ink); border-color: var(--tli-ink); color: var(--tli-on-panel); }
.bo .bo-doc.bo-doc-tall { max-height: min(60vh, 640px); font-size: 17px; line-height: 1.65; }

/* Channel marks. The Shopify bag keeps clear space of about half its "S". */
.bo-logo { display: inline-flex; align-items: center; flex: none; }
.bo-logo-space { padding: 4px; }
.bo-logo-img { display: block; width: auto; }
.bo-logo-link { display: inline-flex; text-decoration: none; }
.bo-logo-txt { display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; min-width: 28px;
  font: 700 12px/1 var(--tli-font-sans); letter-spacing: .01em; border: 2px solid var(--tli-ink); color: var(--tli-ink); background: var(--tli-surface); white-space: nowrap; }
.bo-logo-txt.bo-logo-discogs { background: var(--tli-ink); color: var(--tli-on-panel); }
.bo-logo-txt.bo-logo-sheet, .bo-logo-txt.bo-logo-counter, .bo-logo-txt.bo-logo-backoffice { border-style: dashed; font-family: var(--tli-font-mono); font-weight: 500; text-transform: uppercase; }
.bo-fine { font-size: 12px; line-height: 1.45; color: var(--tli-ink-muted); margin: 0; }

/* Your stock sources. */
.bo-src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--tli-rule); }
.bo-src { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tli-rule); }
.bo-src.problem { border-left: 4px solid var(--tli-down); padding-left: 10px; }
.bo-src-problem { color: var(--tli-down); }
.bo-src-do { justify-content: flex-end; }
/* Discogs as where the shop edits: fields set on Discogs, shown read-only. */
.bo-locked { padding: 8px 12px; border-left: 3px solid var(--tli-ink); background: var(--tli-surface-bar); color: var(--tli-ink); }

.bo-edit-at { display: block; font-size: 12px; font-weight: 400; }
.bo .bo-inp[readonly] { background: transparent; border-style: dashed; color: var(--tli-ink-soft); }
.bo .bo-upload { position: relative; overflow: hidden; }
.bo .bo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.bo .bo-upload:focus-within { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo .bo-upload[aria-disabled] { opacity: .45; }

/* Where do you edit your stock? */
.bo-edit-opts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bo .bo-edit-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 14px; border: 2px solid var(--tli-rule-strong); cursor: pointer; background: var(--tli-surface); }
.bo .bo-edit-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tli-ink); }
.bo .bo-edit-opt.on { border-color: var(--tli-ink); box-shadow: inset 0 0 0 1px var(--tli-ink); }
.bo .bo-edit-opt.off { cursor: not-allowed; border-style: dashed; color: var(--tli-ink-muted); }
.bo-means { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--tli-ink-soft); display: flex; flex-direction: column; gap: 2px; }
.bo-flow { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px; background: var(--tli-surface-bar); border: 1px solid var(--tli-rule); }
.bo-flow-src, .bo-flow-to { display: flex; flex-direction: column; gap: 8px; }
.bo-flow-src { padding: 14px; border: 2px solid var(--tli-ink); background: var(--tli-surface); }
.bo-flow-arrow { position: relative; height: 2px; background: var(--tli-ink); }
.bo-flow-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--tli-ink); border-right: 0; }
.bo-flow-arrow span { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font: 400 10px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); }
.bo-flow-node { padding: 8px 10px; border: 1px solid var(--tli-rule-strong); background: var(--tli-surface); font-size: 14px; font-weight: 600; }
.bo-flow-node .bo-meta { margin-left: auto; font-weight: 400; }
.bo-flow-node.off { border-style: dashed; color: var(--tli-ink-muted); }
.bo-flow-back { grid-column: 1 / -1; font-size: 14px; color: var(--tli-ink-soft); border-top: 1px dashed var(--tli-rule-strong); padding-top: 10px; }
.bo-details summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

@media (max-width: 600px) {
  .bo-src { grid-template-columns: minmax(0, 1fr); }
  .bo-src-do { justify-content: flex-start; }
  .bo-flow { grid-template-columns: minmax(0, 1fr); }
  .bo-flow-arrow { width: 2px; height: 36px; justify-self: center; }
  .bo-flow-arrow::after { right: auto; left: -6px; top: auto; bottom: -2px; border: 7px solid transparent; border-top: 10px solid var(--tli-ink); border-bottom: 0; }
  .bo-flow-arrow span { top: 10px; left: 12px; right: auto; white-space: nowrap; text-align: left; }
  .bo-check.next { padding: 12px 10px; }
  .bo-gate-terms { padding-top: 24px; }
}
/* ==== end of set-up and stock workflow ===================================== */

/* =================================================================================
   DAY-TO-DAY SCREENS (14 Nov 2026): orders, offer rules, racks, picking, stock
   takes and stickers (components/ShopOrders.jsx, ShopTools.jsx). Everything here
   is under .bo-dd / .bo-or / .bo-rk / .bo-st, so it can't reach other screens.
   ================================================================================= */
/* What a step is for, and what to do next. */
.bo-dd-guide { border-left: 4px solid var(--tli-accent); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 4px; }
/* 44px targets: tabs, a tick box's whole cell, small buttons on these screens. */
.bo .bo-dd .bo-tabs button, .bo .bo-dd-tabs button { min-height: 44px; }
.bo .bo-dd .bo-btn.small { min-height: 44px; }
.bo .bo-dd-box { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px 0; cursor: pointer; }
.bo .bo-dd-box input { width: 20px; height: 20px; margin: 0; accent-color: var(--tli-ink); }
.bo .bo-dd .bo-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.bo .bo-dd .bo-tick { min-height: 44px; align-items: center; }
.bo .bo-dd .bo-tabs button { min-width: 44px; }
.bo .bo-dd .bo-dt-sort, .bo .bo-or .bo-dt-sort { min-height: 44px; }
/* Screen-reader text inside a scrolled table is absolutely placed: without a
   positioned box around the table it escaped the scroll and widened the page
   at 390px (Pricing by 30px, New releases by 262px). */
.bo .bo-tbl-wrap { position: relative; }
/* Due today: brass, beside cherry for overdue; always with the words. */
.bo .bo-chip.soon { border-color: var(--tli-accent); color: var(--tli-accent-text); background: var(--tli-surface-bar); }
/* The "needs doing" tiles: each one a shortcut to its view. */
.bo-dd-due { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.bo .bo-dd-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 14px; text-align: left;
  border: 2px solid var(--tli-rule-strong); background: var(--tli-surface); color: var(--tli-ink); cursor: pointer; font: inherit; }
.bo .bo-dd-tile:hover { background: var(--tli-surface-bar); }
.bo .bo-dd-tile.flat { cursor: default; background: transparent; border-style: dashed; }
.bo .bo-dd-tile.bad { border-color: var(--tli-down); }
.bo .bo-dd-tile.bad .bo-big { color: var(--tli-down); }
.bo .bo-dd-tile.soon { border-color: var(--tli-accent); }
.bo-dd-tools { justify-content: space-between; align-items: flex-end; }
.bo-dd-dates summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 600 14px var(--tli-font-sans); }
.bo-dd-recs { display: inline-block; min-width: 14ch; max-width: 34ch; }
.bo-dd .bo-tbl a.bo-link { white-space: nowrap; }
/* On a phone a wide table scrolls sideways rather than breaking titles mid-word. */
.bo-dd .bo-tbl td { overflow-wrap: normal; word-break: normal; }
.bo-dd-rec { display: inline-block; min-width: 16ch; }
.bo-dd .bo-tbl td[style*="right"] { white-space: nowrap; }
.bo-dd-duecell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 15ch; }
.bo-dd-duecell .bo-chip { white-space: normal; line-height: 1.3; }
.bo-dd-postrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px 14px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--tli-rule); }
/* A sentence that says how urgent something is, in a coloured rule, never colour alone. */
.bo-dd-cue { margin: 0; padding: 8px 12px; border-left: 4px solid var(--tli-rule-strong); background: var(--tli-surface-bar); font-size: 14px; }
.bo-dd-cue.bad { border-color: var(--tli-down); color: var(--tli-down); }
.bo-dd-cue.soon, .bo-dd-cue.warn { border-color: var(--tli-accent); }
.bo-dd-cue.ok { border-color: var(--tli-up); color: var(--tli-up); }
/* An order's steps: paid, confirmed, posted, delivered, paid to you. */
.bo .bo-dd-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.bo-dd-steps li { display: flex; gap: 8px; align-items: center; color: var(--tli-ink-muted); }
.bo-dd-steps li.done { color: var(--tli-up); }
.bo-dd-steps li.done .n { background: var(--tli-up); border-color: var(--tli-up); color: var(--tli-on-panel); }
/* The five steps of racks, labels and picking. */
.bo-dd-stepnav { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bo .bo-dd-stepnav button { display: flex; gap: 10px; align-items: flex-start; min-height: 64px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 2px solid var(--tli-rule-strong); background: var(--tli-surface); color: var(--tli-ink); font: inherit; }
.bo .bo-dd-stepnav button:hover { background: var(--tli-surface-bar); }
.bo .bo-dd-stepnav button.on { background: var(--tli-ink); color: var(--tli-on-panel); border-color: var(--tli-ink); }
.bo .bo-dd-stepnav button.on .bo-meta { color: var(--tli-on-panel-muted); }
.bo-dd-stepnav .n { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font: 500 13px var(--tli-font-mono); border: 2px solid currentColor; }
.bo-dd-stepnav .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bo-dd-stepnav .t b { font-size: 14px; }
.bo-dd-got { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--tli-ink-muted); }

/* Offer rules. */
.bo-or-where { line-height: 1.5; }
.bo-or-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bo .bo-flash.bo-or-warn { border-color: var(--tli-accent); }
.bo .bo-or-rule { border-width: 2px; margin: 0; min-inline-size: 0; display: flex; flex-direction: column; gap: 12px; }
.bo .bo-or-rule legend { padding: 0 6px; }
.bo .bo-or-rule.bad { border-color: var(--tli-down); }
.bo-or-sum { padding-bottom: 8px; border-bottom: 1px solid var(--tli-rule); }
.bo-or-grid { display: grid; gap: 18px 28px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.bo-or-err { margin: 0; color: var(--tli-down); font: 600 14px var(--tli-font-sans); }
.bo-or-warn { color: var(--tli-accent-text); }
.bo .bo-or .bo-tick .bo-inp.bo-money { height: 36px; width: 80px; margin: -6px 0 0 6px; }
.bo-or-bar { background: var(--tli-surface); padding: 10px 0; z-index: 2; }
.bo-or-result { border-left-width: 6px; }
.bo-or-result.accept { border-left-color: var(--tli-up); }
.bo-or-result.decline, .bo-or-result.not_taken, .bo-or-result.fix_rules { border-left-color: var(--tli-down); }
.bo-or-result.counter, .bo-or-result.open { border-left-color: var(--tli-accent); }

/* Racks: the shop floor editor. */
.bo .bo-rk-sec { margin: 0; min-inline-size: 0; display: flex; flex-direction: column; gap: 8px; }
.bo-rk-secrow { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

/* Stickers: the settings beside a preview of the print itself. */
.bo-st-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.bo-st-pv { overflow: hidden; border: 2px solid var(--tli-rule-strong); background: #fff; max-width: 100%; }
.bo-st-pv iframe { border: 0; display: block; background: #fff; pointer-events: none; }
.bo .bo-dd input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--tli-ink); }

@media (max-width: 900px) {
  .bo-dd-stepnav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bo-or-grid, .bo-st-grid, .bo-rk-secrow { grid-template-columns: minmax(0, 1fr); }
  .bo-dd-postrow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .bo .bo-dd-stepnav button { min-height: 52px; padding: 8px; gap: 8px; }
  .bo-dd-stepnav button:last-child { grid-column: 1 / -1; }
  .bo-dd-due { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-dd-tools { align-items: stretch; }
}
/* ---- end of the day-to-day screens block ---------------------------------------- */

/* ===========================================================================
   Admin: shops pipeline, payment terms, terms editor (ShopAdmin.jsx; Ric,
   14 Nov 2026). Other agents append their own blocks after this one.
   =========================================================================== */
.bo-pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 2px solid var(--tli-rule-strong); }
.bo-pipe-step { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-left: 1px solid var(--tli-rule); min-width: 0; }
.bo-pipe-step:first-child { border-left: 0; }
.bo-pipe-step .bo-stat-n { font-size: 40px; }
.bo-pipe-step.none .bo-stat-n { color: var(--tli-ink-faint); }
/* A DataTable inside a flex column (.bo-sec, .bo-stack) must not grow to the
   table's width: the table scrolls inside its own wrapper instead. */
.bo .bo-dt { min-width: 0; max-width: 100%; }
/* ...and a visually hidden label inside a cell (position: absolute) is held by
   the wrapper, or it pushes the page sideways on a phone. */
.bo .bo-tbl-wrap { position: relative; }
.bo-acts { gap: 8px 12px; flex-wrap: nowrap; }
.bo-acts-stage .bo-inp { height: 34px; width: auto; min-width: 150px; font-size: 13px; padding: 0 8px; }
.bo-tbl td .bo-acts { white-space: nowrap; }
.bo dialog.bo-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border: 2px solid var(--tli-ink); border-radius: 0; background: var(--tli-surface); color: var(--tli-ink); }
.bo dialog.bo-modal::backdrop { background: rgb(21 19 18 / .45); }
.bo dialog.bo-docmodal { width: min(880px, calc(100vw - 32px)); }
.bo dialog.bo-docmodal .bo-card { border: 0; padding: 0; box-shadow: none; }
.bo dialog.bo-docmodal .bo-doc { max-height: min(60vh, 640px); }
.bo-tform { display: flex; flex-direction: column; border-top: 2px solid var(--tli-rule-strong); }
.bo-tform-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--tli-rule); }
.bo-tform-row.changed { background: var(--tli-surface-bar); box-shadow: inset 3px 0 0 var(--tli-voice); }
.bo-cell-wide { min-width: 200px; }
.bo-tform-l { font: 600 14px var(--tli-font-sans); color: var(--tli-ink); }
.bo-tform-n { display: inline-flex; gap: 8px; align-items: center; }
.bo-tform-s { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bo-tform-type { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 0 12px 10px; border: 0; border-bottom: 1px solid var(--tli-rule); }
.bo-tform-type legend { padding: 0; margin-bottom: 2px; }
.bo-tform-type .bo-tick { min-height: 32px; }
.bo-fees-g { margin: 0; padding: 0; border: 0; border-top: 2px solid var(--tli-rule-strong); }
.bo-fees-g legend { padding: 14px 0 4px; }
.bo-roles { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--tli-font-sans); color: var(--tli-ink); margin-top: 8px; }
.bo-roles th, .bo-roles td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--tli-rule); vertical-align: top; }
.bo-roles thead th { font: 500 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); border-bottom: 2px solid var(--tli-rule-strong); }
.bo-roles tbody th { font-weight: 400; }
.bo-roles td { width: 80px; white-space: nowrap; }
.bo-voice .bo-link, .bo-voice button.bo-link { color: inherit; text-decoration: underline; font-weight: 600; }
.bo-tform-std { flex-basis: 100%; font-size: 12px; }
.bo-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bo-editor-grid > :only-child { grid-column: 1 / -1; }
.bo textarea.bo-inp.bo-editor-body { min-height: 420px; font: 400 15px/1.55 var(--tli-font-mono); }
.bo-editor .bo-doc { max-height: 70vh; }
.bo-editor-title { font: 700 18px var(--tli-font-sans); }
@media (max-width: 900px) {
  .bo-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bo-pipe-step:nth-child(4) { border-left: 0; }
  .bo-pipe-step:nth-child(n+4) { border-top: 1px solid var(--tli-rule); }
  .bo-pipe-step .bo-stat-n { font-size: 32px; }
  .bo-tform-row { grid-template-columns: minmax(0, 1fr); }
  .bo-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .bo textarea.bo-inp.bo-editor-body { min-height: 300px; }
}

/* ==== Sales across your channels (15 Nov 2026, claude/channel-reports) =====
   components/ShopReports.jsx SalesReport. One colour a channel, everywhere on
   the report (swatches, chart, legend), from the site's own palette: The
   Lead-In brass, Shopify green, Discogs ink, the sheet a warm grey, the counter
   oxblood. Every colour sits next to the channel's name or logo. */
.bo { --bo-ch-leadin: var(--tli-accent); --bo-ch-shopify: var(--tli-up); --bo-ch-discogs: var(--tli-ink); --bo-ch-sheet: #7E7364; --bo-ch-counter: var(--tli-voice); --bo-ch-backoffice: #4F6D8A; }
.bo [data-ch="leadin"] { --bo-ch: var(--bo-ch-leadin); }
.bo [data-ch="shopify"] { --bo-ch: var(--bo-ch-shopify); }
.bo [data-ch="discogs"] { --bo-ch: var(--bo-ch-discogs); }
.bo [data-ch="sheet"] { --bo-ch: var(--bo-ch-sheet); }
.bo [data-ch="counter"] { --bo-ch: var(--bo-ch-counter); }
/* The shop's own phone and email orders (Common Ground parity 2): slate blue. */
.bo [data-ch="backoffice"] { --bo-ch: var(--bo-ch-backoffice); }
.bo-sw { display: inline-block; flex: none; width: 12px; height: 12px; background: var(--bo-ch, var(--tli-rule)); }

/* The filters: one row on a wide screen, stacked on a phone. */
.bo-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px; background: var(--tli-surface-bar); border: 1px solid var(--tli-rule); }
.bo-fl { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 170px; max-width: 260px; border: 0; padding: 0; margin: 0; }
.bo-fl .bo-inp { width: 100%; }
.bo-fl-dates { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; max-width: none; flex: 1 1 340px; }
.bo-fl-dates label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 130px; min-width: 0; }
.bo-fl-ch { flex: 1 1 100%; max-width: none; }
.bo-fl-ch legend { padding: 0; margin-bottom: 6px; }
.bo .bo-pick-ch { display: inline-flex; align-items: center; gap: 6px; }
.bo-sx-sum { align-items: flex-start; }
.bo-sx-sum > .bo-p { flex: 1 1 320px; }

/* Headline numbers. The number is a button: it opens the sales behind it. */
.bo-rt { display: flex; flex-direction: column; gap: 6px; }
.bo .bo-rt-n { all: unset; cursor: pointer; font-family: var(--tli-font-display); font-stretch: var(--tli-display-stretch); font-weight: 900; font-size: 40px; line-height: .95;
  font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--tli-rule); overflow-wrap: anywhere; }
.bo .bo-rt-n:hover { text-decoration-color: var(--tli-ink); }
.bo .bo-rt-n:focus-visible { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo-rt.bo-coming .bo-big { font-size: 28px; }
.bo-rt-by summary { cursor: pointer; font-size: 13px; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.bo-rt-by summary::before, .bo-legend summary::before { content: "▸"; display: inline-block; width: 14px; }
.bo-rt-by[open] summary::before, .bo-legend[open] summary::before { content: "▾"; }
.bo-rt-by summary::-webkit-details-marker, .bo-legend summary::-webkit-details-marker { display: none; }
.bo-rt-by ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.bo .bo-rt-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 2px 0; border-top: 1px solid var(--tli-rule); font-size: 14px; }
.bo .bo-rt-row .bo-num { margin-left: auto; font-weight: 600; }
.bo .bo-rt-row:hover { background: var(--tli-surface-bar); }
.bo .bo-rt-row:focus-visible { outline: 2px solid var(--tli-focus); outline-offset: -2px; }
.bo-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bo-chg.up { color: var(--tli-up); }
.bo-chg.down { color: var(--tli-down); }
.bo-chg.flat { color: var(--tli-ink-muted); }
.bo-est { font-style: italic; }

/* Sales by channel. */
.bo-chtbl td, .bo-chtbl th { white-space: nowrap; }
.bo-chtbl tr.bo-tot th, .bo-chtbl tr.bo-tot td { border-top: 2px solid var(--tli-ink); font: inherit; font-weight: 700; color: var(--tli-ink); text-transform: none; letter-spacing: 0; }
.bo-legend summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.bo-legend dl { margin: 0 0 8px; }
.bo-legend-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tli-rule); }
.bo-legend-row dt { display: flex; align-items: center; gap: 8px; }
.bo-legend-row dd { margin: 0; }

/* Over time. */
.bo-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.bo-keys li { display: inline-flex; align-items: center; gap: 6px; }
.bo-chart { width: 100%; min-width: 0; overflow: hidden; }
.bo-chart svg { display: block; max-width: 100%; height: auto; }
.bo-chart-grid { stroke: var(--tli-rule); stroke-width: 1; }
.bo-chart-base { stroke: var(--tli-ink); stroke-width: 2; }
.bo-chart-ax { font: 400 11px var(--tli-font-mono); fill: var(--tli-ink-muted); }
.bo-chart-hit { fill: transparent; }
.bo-chart-bar { cursor: pointer; outline: none; }
.bo-chart-bar:hover .bo-chart-hit, .bo-chart-bar:focus-visible .bo-chart-hit { fill: var(--tli-surface-bar); }
.bo-chart-bar:focus-visible .bo-chart-hit { stroke: var(--tli-focus); stroke-width: 2; }
.bo-chart .bo-bar-seg { fill: var(--bo-ch, var(--tli-ink)); }

/* The sales behind the numbers. */
.bo-drill { background: var(--tli-surface-bar); padding: 8px 12px; font-size: 14px; }
#bo-sales-lines:focus { outline: none; }
.bo-sl-rec { min-width: 170px; }
.bo-chn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.bo-basis { min-width: 84px; }

@media (max-width: 600px) {
  .bo-filters { padding: 12px; gap: 10px 8px; }
  .bo-fl { max-width: none; flex: 1 1 calc(50% - 8px); }
  .bo-fl .bo-inp { font-size: 14px; padding: 0 6px; }
  .bo-fl-ch, .bo-fl-dates { flex: 1 1 100%; }
  .bo .bo-rt-n { font-size: 34px; }
  .bo-legend-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
/* ==== end of sales across your channels ===================================== */
/* Stock (components/ShopStock.jsx): where each copy is on sale, "Needs you",
   ageing, copies of a pressing and a copy's timeline. A state is a mark and a
   word, never colour alone. */

.bo-chip.bo-cs { text-transform: none; letter-spacing: 0; font: 500 12px/1.2 var(--tli-font-sans); padding: 3px 7px; gap: 5px; }
.bo-chip.bo-cs b { font-weight: 700; }

.bo-needs { display: flex; flex-direction: column; gap: 8px; }

.bo-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--tli-rule-strong); display: flex; flex-direction: column; gap: 10px; }
.bo-timeline li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; position: relative; }
.bo-timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 8px; height: 8px; background: var(--tli-ink); }

/* The channel table stacks on a phone, so each row's fix is in reach. */

/* The shop page: photos of the shop (cover first) and "Fill in from my website". */
.bo-pp { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bo-pp-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bo-pp-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tli-surface-bar); border: 2px solid var(--tli-rule); }
.bo-pp-item.cover .bo-pp-img { border-color: var(--tli-ink); }
.bo-pp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bo-pp-badge { position: absolute; left: 6px; top: 6px; padding: 2px 6px; background: var(--tli-ink); color: var(--tli-surface); font: 700 11px/1.4 var(--tli-font-sans); text-transform: uppercase; letter-spacing: .04em; }
.bo .bo-pp-cap { height: 36px; font-size: 13px; padding: 0 8px; width: 100%; min-width: 0; }
.bo-pp-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bo .bo-pp-acts .bo-link { min-height: 32px; text-align: left; }
.bo-pp-add { border: 2px dashed var(--tli-rule); aspect-ratio: 4 / 3; cursor: pointer; }
.bo dialog.bo-sf { width: min(820px, calc(100vw - 32px)); }
.bo-sf-row { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--tli-rule); min-width: 0; }
.bo-sf-l { font: 700 14px var(--tli-font-sans); color: var(--tli-ink); }
.bo-sf-cmp { display: grid; gap: 10px 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bo-sf-k { display: block; font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-soft); }
.bo-sf-v { margin: 4px 0 0; white-space: pre-line; max-height: 168px; overflow: auto; overflow-wrap: anywhere; font: 400 14px/1.45 var(--tli-font-sans); }
.bo-sf-hours { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bo-sf-hours .bo-tick { min-height: 32px; align-items: center; color: var(--tli-ink); }
.bo-sf-imgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.bo-sf-img { position: relative; display: block; aspect-ratio: 1; border: 2px solid var(--tli-rule); background: var(--tli-surface-bar); cursor: pointer; }
.bo-sf-img.on { border-color: var(--tli-ink); }
.bo-sf-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bo-sf-img input { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; margin: 0; accent-color: var(--tli-ink); z-index: 1; }
.bo-sf-info { margin: 0; display: grid; gap: 4px; }
.bo-sf-info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.bo-sf-info dt { color: var(--tli-ink-soft); font-size: 13px; }
.bo-sf-info dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 600px) {
  .bo-sf-cmp { grid-template-columns: minmax(0, 1fr); }
  .bo-pp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-sf-info div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Buy a collection (15 Nov 2026, components/ShopStock.jsx BuyIns). A record on
   the counter: what it is, its grade in two taps, what you'd sell it for, the
   offer, take / bin / hand back. The offer panel sits beside on a till screen;
   on a phone it follows the records, with a bar at the bottom to jump to it. */
.bi-line-top { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bi-line-top img, .bi-line-top .bo-cand-noart { width: 56px; height: 56px; object-fit: cover; }
.bo .bi-x { width: 44px; height: 44px; border: 2px solid var(--tli-rule-strong); background: var(--tli-surface); color: var(--tli-ink); font: 600 20px/1 var(--tli-font-sans); cursor: pointer; }
.bi-line.bi-passed { opacity: .6; }
.bi-grade { display: flex; flex-direction: column; gap: 8px; }
.bi-g { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: start; }
.bi-g > .bo-kick { padding-top: 15px; }
.bi-grade .bo .bo-pick, .bi-grade .bo-pick { min-width: 44px; padding: 0 8px; }
.bi-price { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
.bi-pound { display: flex; align-items: center; gap: 6px; font: 600 15px var(--tli-font-sans); color: var(--tli-ink); text-transform: none; letter-spacing: 0; }
.bi-pound .bo-inp { flex: 1 1 auto; min-width: 0; }
.bi-money .bi-pound .bo-inp { max-width: 160px; }
.bi-n .bo-inp { width: 96px; }
.bi-binrow { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--tli-rule); padding-top: 12px; }
.bi-binrow .bo-row { align-items: flex-end; }
.bi-open { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.bi-addr { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.bi-rules .bi-pound .bo-inp { max-width: 120px; }
.bi-total .bo-btn.primary { width: 100%; white-space: normal; }
.bi-stat { display: flex; flex-direction: column; gap: 6px; }
.bi-table .bo-tbl { min-width: 600px; }
.bi-table .bo-tbl td { white-space: nowrap; }
.bi-bar { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 0 calc(-1 * var(--bo-gutter)); background: var(--tli-surface); border-top: 2px solid var(--tli-rule-strong); font-size: 15px; }
@media (max-width: 600px) {
  .bi-g { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bi-g > .bo-kick { padding-top: 0; }
  .bi-week .bo-big { font-size: 30px; }
}

/* Catalogue and stock fields (Common Ground parity 1a, 15 Nov 2026):
   components/ShopStock.jsx, ShopSync.jsx (the media library), ShopApp.jsx
   (DataTable's typed and ranged filters behind "More filters"). */
.bo-dt-more { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 10px 0 0; border-top: 1px solid var(--tli-rule); min-width: 0; }
.bo-dt-fl { display: block; font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-ink-muted); margin: 0 0 4px; }
.bo-dt-range { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; flex: 0 1 300px; }
.bo-dt-range legend { padding: 0; }
.bo-dt-range label { flex: 1 1 120px; min-width: 0; }
.bo-dt-range .bo-inp { width: 100%; min-width: 0; }

.bo .bo-btn.danger { background: var(--tli-down); border-color: var(--tli-down); color: var(--tli-surface); }

.bo-media { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bo-media-item { min-width: 0; }
.bo-media-item .bo-inp { height: 36px; font-size: 13px; padding: 0 8px; width: 100%; min-width: 0; }
.bo-media-item .bo-link { text-align: left; min-height: 32px; }
.bo-media-pick { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.bo-media-btn { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; }
.bo-media-btn:focus-visible { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo-media-btn:disabled { cursor: default; opacity: .55; }
.bo-media-btn .bo-meta { overflow-wrap: anywhere; }
.bo-file-btn { position: relative; cursor: pointer; }
@media (max-width: 600px) {
  .bo-dt-range { flex: 1 1 100%; }
  .bo-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
}

/* ---- the till (/shop/pos, Common Ground parity 4) --------------------------
   Full screen over the site's nav, phone first: one column on a phone, two
   (finding on the left, the sale on the right) from a wide phone held sideways
   or an iPad up. Touch targets are 56px or more. Nothing scrolls sideways: the
   body scrolls, the bar stays. */
.bo-pos {
  position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; min-width: 0;
  background: var(--tli-surface); color: var(--tli-ink); font-family: var(--tli-font-sans); overflow: hidden;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
html.bo-pos-on, html.bo-pos-on body { overflow: hidden; }
html.bo-pos-on .site-footer { display: none; }   /* nothing of the site behind the till */
.bo-pos-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--tli-surface-panel); color: var(--tli-on-panel); }
.bo-pos-id { display: flex; flex-direction: column; min-width: 0; }
.bo-pos-id b { font: 900 18px/1.1 var(--tli-font-display); font-stretch: var(--tli-display-stretch); text-transform: uppercase; overflow-wrap: anywhere; }
.bo-pos-id small { font-size: 12px; color: var(--tli-on-panel-muted); overflow-wrap: anywhere; }
.bo-pos-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.bo .bo-pos-tab, .bo-pos-tab {
  min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--tli-on-panel-muted); background: transparent; color: var(--tli-on-panel); font: 700 14px var(--tli-font-sans); text-decoration: none; cursor: pointer;
}
.bo-pos-tab.on { background: var(--tli-accent); border-color: var(--tli-accent); color: var(--tli-on-accent); }
.bo-pos-tab:disabled { opacity: .4; cursor: not-allowed; }
.bo-pos-offline { padding: 10px 16px; background: var(--tli-voice); color: var(--tli-on-voice); font-size: 14px; }
.bo-pos-offline.sending { background: var(--tli-surface-bar); color: var(--tli-ink); }
.bo-pos-clash { padding: 10px 16px; border: 2px solid var(--tli-down); color: var(--tli-down); font-size: 14px; background: var(--tli-surface); }
.bo-pos-clash ul { margin: 0; padding-left: 18px; }
.bo-pos-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bo-pos-body > * { min-width: 0; }
.bo-pos-sell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.bo-pos-find, .bo-pos-basket { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bo .bo-inp.bo-pos-scan { height: 56px; font-size: 18px; }
.bo .bo-inp.bo-pos-amt { height: 56px; font: 900 26px var(--tli-font-display); font-stretch: var(--tli-display-stretch); }
.bo-pos-tools, .bo-pos-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-pos-tools .bo-btn { flex: 1 1 0; min-height: 52px; padding: 8px 10px; }
.bo-pos-quick > * { flex: 1 1 120px; }
.bo-pos-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.bo-pos-found, .bo-pos-lines, .bo-pos-paid, .bo-pos-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bo-pos-item {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px;
  padding: 8px 12px; border: 2px solid var(--tli-rule-strong); background: var(--tli-surface);
}
.bo-pos-item:focus-visible { outline: 2px solid var(--tli-focus); outline-offset: 2px; }
.bo-pos-item:active { background: var(--tli-surface-bar); }
.bo-pos-item:disabled { opacity: .45; cursor: not-allowed; }
.bo-pos-item .t, .bo-pos-lines .t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.bo-pos-item .t small, .bo-pos-lines .t small { font-size: 12px; color: var(--tli-ink-muted); }
.bo-pos-item .p, .bo-pos-lines .p { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bo-pos-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--tli-rule); min-width: 0; }
.bo-pos-lines .q { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.bo-pos-lines .q b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.bo .bo-pos-step, .bo-pos-step { width: 48px; height: 48px; border: 2px solid var(--tli-ink); background: var(--tli-surface); color: var(--tli-ink); font: 700 22px var(--tli-font-sans); cursor: pointer; padding: 0; }
.bo-pos-step:disabled { opacity: .35; cursor: not-allowed; }
.bo-pos-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 2px solid var(--tli-ink); padding-top: 10px; }
.bo-pos-total b { font: 900 34px var(--tli-font-display); font-stretch: var(--tli-display-stretch); }
.bo .bo-btn.bo-pos-go { width: 100%; min-height: 64px; font-size: 22px; }
.bo .bo-pos-key, .bo-pos-key {
  min-height: 60px; min-width: 60px; padding: 8px 12px; border: 2px solid var(--tli-ink); background: var(--tli-surface); color: var(--tli-ink);
  font: 900 22px var(--tli-font-display); font-stretch: var(--tli-display-stretch); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.bo-pos-key.wide { font: 700 16px var(--tli-font-sans); text-align: center; }
.bo-pos-key small { font: 400 11px var(--tli-font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--tli-ink-muted); }
.bo-pos-key.on { background: var(--tli-ink); color: var(--tli-on-panel); }
.bo-pos-key.on small { color: var(--tli-on-panel-muted); }
.bo-pos-key.go { background: var(--tli-accent); border-color: var(--tli-ink); color: var(--tli-on-accent); }
.bo-pos-key:disabled { opacity: .35; cursor: not-allowed; }
.bo-pos-pin { display: flex; flex-direction: column; gap: 14px; max-width: 420px; width: 100%; margin: 0 auto; }
.bo-pos-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bo-pos-dots { display: flex; gap: 12px; justify-content: center; padding: 6px 0; }
.bo-pos-dots span { width: 16px; height: 16px; border: 2px solid var(--tli-ink); border-radius: 50%; }
.bo-pos-dots span.on { background: var(--tli-ink); }
.bo-pos-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bo-pos-keypad .bo-pos-key { min-height: 64px; }
.bo-pos-pay, .bo-pos-done { display: flex; flex-direction: column; gap: 12px; max-width: 640px; width: 100%; margin: 0 auto; }
.bo-pos-due { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--tli-surface-panel); color: var(--tli-on-panel); }
.bo-pos-due span { font: 400 11px var(--tli-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tli-on-panel-muted); }
.bo-pos-due b { font: 900 44px/1 var(--tli-font-display); font-stretch: var(--tli-display-stretch); overflow-wrap: anywhere; }
.bo-pos-due small { font-size: 13px; color: var(--tli-on-panel-muted); }
.bo-pos-due.ok b { color: var(--tli-accent-on-dark); }
.bo-pos-paid li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--tli-rule); font-size: 15px; }
.bo-pos-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.bo-pos-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bo-pos-stats div { border: 2px solid var(--tli-rule-strong); padding: 10px; display: flex; flex-direction: column; min-width: 0; }
.bo-pos-stats span { font: 400 11px var(--tli-font-mono); text-transform: uppercase; color: var(--tli-ink-muted); }
.bo-pos-stats b { font: 900 26px var(--tli-font-display); font-stretch: var(--tli-display-stretch); overflow-wrap: anywhere; }
.bo-pos-cash { font-size: 16px; margin: 0; }
.bo-pos-cash b { font-size: 20px; }
.bo-pos-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.bo-pos-tick input { width: 22px; height: 22px; }
.bo-pos-modal { position: absolute; inset: 0; background: rgba(20, 17, 13, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 2; }
.bo-pos-modal .bo-card { max-width: 440px; width: 100%; }
.bo-pos-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; align-items: end; }
.bo-pos-plain li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--tli-rule); overflow-wrap: anywhere; }
.bo-pos-set .bo-card h3 { margin-right: auto; }
.bo-pos-set .bo-voice .bo-inp { color: var(--tli-ink); }
.bo-pos .bo-flash { margin: 0; }
.bo-pos .bo-fld .bo-row { flex-wrap: nowrap; }
.bo-pos .bo-fld .bo-row > .bo-inp { min-width: 0; }
/* A phone held sideways, an iPad, a computer: finding on the left, the sale on the right. */
@media (min-width: 720px) {
  .bo-pos-sell { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); align-items: start; }
  .bo-pos-basket { position: sticky; top: 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .bo-pos-top { padding: 4px 12px; }
  .bo .bo-pos-tab, .bo-pos-tab { min-height: 38px; }
  .bo-pos-due b { font-size: 32px; }
}
@media (max-width: 380px) {
  .bo-pos-tools .bo-btn { font-size: 15px; }
  .bo-pos-two { grid-template-columns: minmax(0, 1fr); }
}
@media print { .bo-pos { position: static; } }

/* ---- newsletters (Common Ground parity 5, ShopNewsletters.jsx) ------------------ */
.bo-nl-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .bo-nl-grid { grid-template-columns: minmax(0, 1fr); } }
.bo-nl-block { gap: 12px; }
.bo-nl-err { color: var(--tli-down); font-weight: 600; }
.bo-nl-ul { margin: 6px 0 0; padding-left: 18px; }
.bo-nl-ul li { margin: 2px 0; }
.bo-nl-tools { gap: 6px; }
.bo .bo-nl-rich { min-height: 120px; padding: 10px 12px; line-height: 1.55; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; font: 16px/1.55 var(--tli-font-sans); }
.bo-nl-rich h2 { font: 700 22px/1.2 var(--tli-font-sans); margin: 6px 0; }
.bo-nl-rich h3 { font: 700 18px/1.25 var(--tli-font-sans); margin: 4px 0; }
.bo-nl-rich p { margin: 0 0 10px; }
.bo-nl-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; }
.bo .bo-nl-thumb { aspect-ratio: 1; padding: 0; border: 2px solid var(--tli-rule); background: var(--tli-surface-bar); cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bo .bo-nl-thumb.on { border-color: var(--tli-voice); outline: 2px solid var(--tli-voice); }
.bo-nl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bo-nl-picked, .bo-nl-found { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tli-rule); }
.bo-nl-picked li, .bo-nl-found li { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--tli-rule); min-width: 0; }
.bo-nl-picked li > span:first-child, .bo-nl-found li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bo-nl-frame { border: 1px solid var(--tli-rule); background: var(--tli-surface-bar); overflow: hidden; margin: 0 auto; max-width: 100%; }
.bo-nl-frame.phone { width: 375px; }
.bo-nl-frame.desktop { width: 100%; }
.bo-nl-frame iframe { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.bo .bo-nl-code { font: 12px/1.45 var(--tli-font-mono); overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.bo-nl-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bo-nl-qr-img { width: 180px; height: 180px; background: #fff; padding: 8px; }
.bo-nl-qr p { font: 700 18px/1.3 var(--tli-font-sans); margin: 0; }
@media print {
body:has(.bo-nl-qr) .bo-top { display: none !important; }
  body:has(.bo-nl-qr) .bo-main * { visibility: hidden; }
  body:has(.bo-nl-qr) .bo-nl-qr, body:has(.bo-nl-qr) .bo-nl-qr * { visibility: visible; }
  body:has(.bo-nl-qr) .bo-nl-qr { position: absolute; left: 0; top: 0; }
  .bo-nl-qr-img { width: 70mm; height: 70mm; }
}
.bo .bo-nl-url { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.bo-nl-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bo-nl-acts { gap: 4px 10px; }
.bo .bo-nl-acts .bo-link { white-space: nowrap; }
@media (max-width: 560px) { .bo-nl-acts { flex-direction: column; align-items: flex-start; } }
