/* lancasteragentic.com home: the showcase's three views and the hero chat mock (R-1106-65). Loaded only by the Lancaster build
   (index.html variant block; the file sits in brands/lancaster/assets and is copied into assets/ by scripts/brand-lancaster.mjs),
   so reorderowl.com ships none of it. The site's own tokens and fonts everywhere except the Purchasing screen (.dash), which
   draws the purchasing app's page with that page's own palette and system font, as the Lancaster app shows it. */

/* an assistant, not a product: a plain sparkle (Lucide) where the brand mark used to be */
.avatar.bot svg { width: 20px; height: 20px; color: var(--forest); }
.gpt-from .spark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--mint); color: var(--forest); flex: none; }
.gpt-from .spark svg { width: 14px; height: 14px; }
.file .li { width: 26px; height: 26px; border-radius: 6px; background: var(--forest-tint); color: var(--forest); display: grid; place-items: center; flex: none; }
.file .li svg { width: 16px; height: 16px; }
.gpt-note { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
#v-ask .stats, #v-de-send .stats, #v-rep-sales .stats { display: flex; }

/* the chat runs a little longer than before (it now ends on the created PO), so the window is taller */
.vtabs button { transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.app { height: 640px; }
#data-entry-app, #reports-app { height: auto; }
@media (max-width: 1020px) { .app { height: 660px; } #data-entry-app, #reports-app { height: auto; } }
@media (max-width: 640px) { .app { height: 640px; } #data-entry-app, #reports-app { height: auto; } }
@media (max-width: 360px) { .app { height: 720px; } #data-entry-app, #reports-app { height: auto; } }
.view-scroll { overflow-y: auto; }
#v-ask .gpt, #v-de-send .gpt, #v-rep-sales .gpt, #v-rep-doc .gpt { padding-top: 14px; padding-bottom: 14px; gap: 8px; }
#v-ask .gpt-q, #v-de-send .gpt-q, #v-rep-sales .gpt-q, #v-rep-doc .gpt-q { padding: 8px 14px; }

/* Data entry and Reports/Documents showcase elements */
.gpt-q-doc { display: flex; flex-direction: column; gap: 8px; }
.doc-chip { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 8px; background: #fff; font-size: 12px; }
.doc-chip b { display: block; font-size: 12.5px; color: var(--ink); }
.doc-chip small { display: block; color: var(--muted); font-size: 11.5px; }
.pdf-badge { width: 28px; height: 28px; border-radius: 6px; background: #9B2C1F; color: #fff; display: grid; place-items: center; font: 700 9.5px/1 var(--body); letter-spacing: .04em; flex: none; }
.sheet .total-row td { font-weight: 700; background: var(--panel); border-top: 1px solid var(--line-2); border-bottom: 0; }
.doc-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.doc-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.doc-bar-title { min-width: 0; }
.doc-bar-title b { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-bar-title small { display: block; font-size: 11.5px; color: var(--muted); }
.doc-bar .pill { margin-left: auto; }
.doc-sheet { padding: 14px 16px; display: grid; gap: 10px; }
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.doc-head b { display: block; font: 700 15px/1.2 var(--display); color: var(--ink); }
.doc-head small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.doc-date { font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.doc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 12.5px; }
.doc-meta small { display: block; font: 600 10.5px/1.2 var(--body); color: var(--muted); margin-bottom: 2px; }
.doc-lines th, .doc-lines td { padding: 6px 10px; }
.doc-more td { color: var(--muted); font-size: 12px; border-bottom: 0; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.doc-foot b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .vtabs { flex-wrap: wrap; justify-content: center; overflow-x: visible; margin: 0 0 16px; padding: 0; gap: 6px; }
  .vtabs button { font-size: 13.5px; padding: 7px 12px 7px 9px; gap: 6px; }
  .gpt-q-doc { max-width: 100%; }
  .sheet.receipt-lines :is(th, td):nth-child(1), .sheet.receipt-lines :is(th, td):nth-child(3) { display: none; }
  .sheet.report-lines :is(th, td):nth-child(2) { display: none; }
  .sheet.doc-lines :is(th, td):nth-child(1) { display: none; }
  .doc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-sheet { padding: 12px; }
  .doc-foot { flex-wrap: wrap; }
}

/* ---- the Purchasing screen ---- */
#v-dash .view-scroll { display: flex; flex-direction: column; }
.dash {
  --d-fg: #302828; --d-muted: #6B615A; --d-line: #E7E5E0; --d-line2: #D6D3CC; --d-accent: #302828; --d-tint: #FFF0D8; --d-head-fg: #302828;
  --d-chip: #F5F4F0; --d-band: #FAFAF8; --d-ok: #1E6B45; --d-attn: #965700; --d-doi1: #F4CCCC; --d-doi2: #F8DFDF;
  display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 12px 16px 10px; background: #fff; color: var(--d-fg);
  font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: auto;
}
.dash b, .dash i { font-style: normal; }
.d-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.d-brand { display: flex; align-items: center; gap: 10px; height: 32px; }
.d-brand img { width: 30px; height: 30px; display: block; }
.d-name { font-size: 17px; line-height: 1.45; white-space: nowrap; }
.d-name span { color: var(--d-accent); }
.d-name b { font-weight: 700; }
.d-title { font-size: 18px; font-weight: 700; line-height: 32px; }
.d-icons, .d-right, .d-ph { display: flex; align-items: center; gap: 8px; }
.d-right { margin-left: auto; }
.d-ph { display: none; }
.d-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--d-line2); border-radius: 8px; background: #fff; color: var(--d-fg); font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; }
.d-btn svg { width: 16px; height: 16px; flex: none; }
.d-btn.ico { width: 38px; padding: 0; }
.d-btn.gear { width: 41px; padding: 0; }
.d-btn.gear svg { width: 17px; height: 17px; }
.d-btn.lang { padding: 0 9px; }
.d-btn.lang svg { width: 17px; height: 17px; color: #1A73E8; }
.d-btn.invite { padding: 0 11px; }
.d-btn.help i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--d-accent); border: 2px solid #fff; box-sizing: content-box; }
.d-btn.primary { background: var(--d-accent); border-color: var(--d-accent); color: #fff; font-weight: 600; }
.d-btn.primary .po-d { font-weight: 400; font-size: 12px; opacity: .92; }
.d-right > .d-btn.ico:first-child svg { color: var(--d-attn); }
.d-tabs { display: flex; gap: 2px; margin-top: 8px; box-shadow: inset 0 -1px 0 var(--d-line); overflow-x: auto; scrollbar-width: none; flex: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tab { flex: none; padding: 7px 12px; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; color: var(--d-muted); font: 500 13.5px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; }
.d-tab.on { color: var(--d-fg); font-weight: 700; border-bottom-color: var(--d-accent); }
.d-tab i { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--d-muted); }
.d-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex: none; overflow: hidden; }
.d-search { display: flex; align-items: center; gap: 8px; flex: 0 1 230px; min-width: 120px; height: 32px; padding: 0 10px; border: 1px solid var(--d-line2); border-radius: 8px; color: var(--d-muted); font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; overflow: hidden; }
.d-search svg { width: 14px; height: 14px; flex: none; color: var(--d-muted); }
.d-view { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--d-line2); border-radius: 8px; font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.d-view small { color: var(--d-muted); font-size: 13px; font-weight: 400; }
.d-view b { width: 0; height: 0; margin-left: 18px; border: 4.5px solid transparent; border-top: 5px solid var(--d-fg); border-bottom: 0; }
.d-bar .d-btn { flex: none; }
.d-btn.add { border-style: dashed; background: transparent; padding: 0 12px; }
.d-btn.add b { font-weight: 500; font-size: 15px; }
.d-count { margin-left: auto; min-width: 0; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--d-muted); font-size: 13px; }
.d-grid { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--d-line); border-radius: 10px; background: #fff; }
.d-grid:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.d-cap { flex: none; margin: 8px 2px 0; font: 400 13px/1.4 var(--body); color: var(--muted); }

.d-table { width: max(100%, 1341px); table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; line-height: 1.45; }
.d-table col:nth-child(1) { width: 34px; } .d-table col:nth-child(2) { width: 106px; } .d-table col:nth-child(3) { width: 150px; } .d-table col:nth-child(4) { width: 144px; }
.d-table col:nth-child(5) { width: 68px; } .d-table col:nth-child(6) { width: 63px; } .d-table col:nth-child(7) { width: 60px; } .d-table col:nth-child(8) { width: 67px; }
.d-table col:nth-child(9) { width: 62px; } .d-table col:nth-child(10) { width: 76px; } .d-table col:nth-child(11) { width: 89px; } .d-table col:nth-child(12) { width: 85px; }
.d-table col:nth-child(13) { width: 64px; } .d-table col:nth-child(14) { width: 64px; } .d-table col:nth-child(15) { width: 72px; } .d-table col:nth-child(16) { width: 75px; } .d-table col:nth-child(17) { width: 62px; }
.d-table th, .d-table td { padding: 0 8px; border-bottom: 1px solid var(--d-line); border-right: 1px solid var(--d-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: #fff; }
.d-table th:last-child, .d-table td:last-child { border-right: 0; }
.d-table thead th { height: 36px; background: var(--d-tint); color: var(--d-head-fg); font-weight: 600; line-height: 1.15; white-space: normal; position: sticky; top: 0; z-index: 3; }
.d-table td { height: 30px; }
.d-table tr.alt td { background: var(--d-band); }
.d-table .n { text-align: right; }
.d-table thead .n { text-align: right; }
.d-table .sel { text-align: center; padding: 0; }
.d-table .id { padding-right: 28px; position: relative; font-weight: 600; }
.d-table .desc { font-weight: 600; }
.d-table .jl { color: var(--d-accent); font-weight: 500; }
.d-table .vendor .jl { font-weight: 400; }
.d-table .chev { margin-left: 3px; color: var(--d-muted); font-weight: 400; }
.d-table .nic { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--d-attn); }
.d-table .nic svg { display: block; width: 14px; height: 14px; }
.d-table .on { color: var(--d-ok); }
.d-table td.q { padding-right: 20px; }
.d-table td.d1 { background: var(--d-doi1); }
.d-table td.d2 { background: var(--d-doi2); }
.d-table tfoot td { height: 34px; background: var(--d-chip); font-weight: 700; border-top: 2px solid var(--d-line2); border-bottom: 0; }
.d-table tfoot td.tl { font-weight: 600; }
.d-table thead th.sel, .d-table thead th.id, .d-table thead th.desc { z-index: 4; }
.d-table .h { display: flex; align-items: center; gap: 4px; }
.d-table .h svg { width: 14px; height: 14px; flex: none; color: #8A7F76; }
.d-table th.desc .h svg { color: var(--d-fg); }
.d-table .hq { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--d-head-fg); color: var(--d-tint); font-size: 12px; font-weight: 800; flex: none; }
.d-cb { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #6B615A; border-radius: 4px; background: #fff; vertical-align: middle; box-sizing: border-box; }
@media (min-width: 641px) {
  .d-table .sel, .d-table .id, .d-table .desc { position: sticky; z-index: 2; }
  .d-table .sel { left: 0; } .d-table .id { left: 34px; } .d-table .desc { left: 140px; border-right: 2px solid var(--d-line2); }
  .d-table tfoot td.id { z-index: 2; }
}

/* the page's own phone layout: the mark, the Create PO button, Filters and More; the table scrolls sideways in its frame */
@media (max-width: 640px) {
  .dash { padding: 10px 10px 8px; }
  .d-top { flex-wrap: nowrap; gap: 8px; }
  .d-name, .d-title, .d-icons, .d-bar, .d-right > .d-btn.ico, .d-btn.primary .po-d { display: none; }
  .d-right { flex: 1; margin: 0; min-width: 0; }
  .d-btn.primary { flex: 1; min-width: 0; justify-content: center; height: 44px; font-size: 14px; }
  .d-btn.primary > span { overflow: hidden; text-overflow: ellipsis; }
  .d-ph { display: flex; }
  .d-ph .d-btn.ico { width: 44px; height: 44px; }
  .d-tabs { margin-top: 10px; }
  .d-bar { display: none; }
  .d-grid { margin-top: 10px; }
  .d-table { width: 1341px; }
}
