:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172d29;
  background: #f4f6f7;
  font-size: 16px;
  --ink: #172d29;
  --muted: #506962;
  --teal: #11655a;
  --strong: #123a36;
  --surface: #fff;
  --line: #d9e2e4;
  --mint: #e9f3ee;
  --gold-bg: #fff3d9;
  --gold: #744900;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #af6a14; outline-offset: 3px; }
button, input, h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(calc(100% - 64px), 1180px); margin-inline: auto; }
svg { width: 19px; height: 19px; flex: none; display: block; }
[data-icon] { display: inline-flex; justify-content: center; align-items: center; flex: none; }
.mast { background: var(--strong); color: white; }
.mast-inner { display: flex; align-items: center; min-height: 71px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font-size: 22px; line-height: .98; font-weight: 800; }
.brand strong span { color: #89e5ce; }
.brand small { display: block; margin-top: 4px; font-size: 10px; font-weight: 650; color: #d0e6de; line-height: 1; }
.lab-badge { padding: 4px 8px; border: 1px solid #59796f; color: #eef4ef; border-radius: 4px; font-size: 11px; font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.lab-badge span, .pending-mark { width: 6px; height: 6px; border-radius: 50%; background: #e9b15b; flex: none; }
.account { display: flex; align-items: center; gap: 13px; margin-left: auto; min-width: 0; }
.account-label { min-width: 0; text-align: right; }
.account-label b, .account-label small { display: block; overflow-wrap: anywhere; }
.account-label b { font-size: 13px; }
.account-label small { color: #b9d7cc; font-size: 11px; margin-top: 2px; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; }
.mast-button { color: white; background: transparent; border: 1px solid #617e76; }
.mast-button:hover { background: #254e47; }
.intro { background: white; border-bottom: 1px solid var(--line); padding: 24px 0 20px; }
.intro-row, .intro-title { display: flex; align-items: center; gap: 13px; }
.intro-row { justify-content: space-between; margin-block: 0 16px; }
.section-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: #e7f4ee; color: var(--teal); border: 1px solid #d5eae0; border-radius: 8px; flex-shrink: 0; }
.section-symbol svg { width: 25px; height: 25px; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 750; }
.intro-title p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 6px; font-weight: 650; white-space: normal; }
.primary { color: white; background: #11655a; border: 1px solid #11655a; }
.primary:hover { background: #0d5047; }
.secondary { color: #29534a; background: white; border: 1px solid #cfded6; }
.secondary:hover { background: #ecf4ef; }
.refresh svg { width: 17px; height: 17px; }
.outlet-strip { padding: 9px 11px; min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #eef6f1; border: 1px solid #deebe3; border-radius: 6px; }
.outlet-label { color: var(--teal); }
.outlet-label svg { width: 17px; height: 17px; }
.outlet-strip strong { font-size: 13px; }
#outlet-code { color: var(--muted); font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.readonly { color: #415e55; font-size: 11px; display: flex; align-items: center; gap: 5px; margin-left: auto; white-space: nowrap; }
.readonly svg { width: 15px; height: 15px; }
.workspace-tabs { display: flex; align-items: stretch; gap: 16px; margin-block: 12px 0; }
.workspace-tabs a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; min-height: 44px; padding: 0 8px; border-bottom: 2px solid transparent; font-weight: 650; font-size: 13px; }
.workspace-tabs a svg { width: 16px; height: 16px; }
.workspace-tabs a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.workspace-tabs a:hover { background: #f3f8f5; }
.work-area { display: grid; grid-template-columns: minmax(290px, .78fr) minmax(0, 1.43fr); align-items: stretch; gap: 28px; margin-top: 24px; }
.pending, .detail { min-width: 0; }
.pending { border-right: 1px solid var(--line); padding-right: 24px; }
.pane-head { padding-bottom: 12px; }
.heading-row { display: flex; align-items: center; gap: 9px; min-height: 31px; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 750; }
.count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 4px; background: #deeee6; color: var(--teal); font-size: 12px; font-weight: 750; }
.search { min-width: 0; display: flex; gap: 8px; min-height: 44px; border: 1px solid #ceddd6; border-radius: 6px; align-items: center; padding-left: 11px; background: white; color: var(--muted); }
.search:focus-within { outline: 2px solid #af6a14; outline-offset: 2px; }
.search input { flex: 1 1 auto; width: 1px; min-height: 42px; border: 0; padding: 0 8px 0 0; background: transparent; color: var(--ink); outline: none; }
.search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { appearance: none; }
.clear { border: 0; border-left: 1px solid var(--line); min-height: 42px; width: 42px; background: transparent; color: var(--muted); }
.clear:hover { background: #f1f5f2; }
#transfer-list { display: grid; gap: 7px; }
.transfer-link { text-decoration: none; color: var(--ink); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 75px; padding: 10px 11px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.transfer-link:hover { border-color: #8eb2a4; background: #f0f8f4; }
.transfer-link[aria-current] { background: var(--mint); border-color: #9dc4b6; box-shadow: inset 3px 0 var(--teal); }
.row-icon { color: var(--teal); background: #edf4ef; border: 1px solid #e0ebe4; border-radius: 6px; min-height: 36px; }
.transfer-link[aria-current] .row-icon { background: #d7ebe2; border-color: #c7e0d6; }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-no { font-family: ui-monospace, Consolas, monospace; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.row-sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.row-end { display: inline-flex; gap: 6px; align-items: center; color: #4e6c61; }
.row-end small { font-size: 11px; white-space: nowrap; }
.detail { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 19px 20px 16px; }
.detail:focus:not(:focus-visible) { outline: none; }
.detail[data-empty] { display: none; }
.work-area:has(.detail[data-empty]) { grid-template-columns: minmax(0, 680px); }
.work-area:has(.detail[data-empty]) .pending { border: 0; padding-right: 0; }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 14px; }
.detail-head h2 { font-family: ui-monospace, Consolas, monospace; font-size: 24px; overflow-wrap: anywhere; }
.detail-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.status-chip { background: var(--gold-bg); color: var(--gold); padding: 5px 7px; border-radius: 4px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.status-chip .pending-mark { background: #b4791d; }
.status-chip.complete { background: #e4f3ea; color: #235e45; }
.status-chip.complete .pending-mark { background: #39825e; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 6px; border: 1px solid var(--line); background: #f4f8f5; padding: 10px 12px; }
.route > span { color: var(--teal); }
.loc { min-width: 0; }
.loc small, .loc strong, .loc span { display: block; overflow-wrap: anywhere; }
.loc small { color: var(--muted); font-size: 11px; }
.loc strong { margin: 3px 0 1px; font-size: 13px; }
.loc span { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.remark { color: var(--muted); font-size: 12px; margin-top: 10px; overflow-wrap: anywhere; }
.items-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 9px; }
.items-title h3 { font-size: 18px; }
.items-title span { color: var(--muted); font-size: 12px; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table thead { background: #edf4f0; color: #36574e; text-align: left; }
.table th { padding: 8px 8px; font-size: 13px; }
.table th:first-child { width: 33px; }
.table th:nth-child(3) { width: 54px; }
.table th:nth-child(4) { width: 56px; text-align: right; }
.table td { border-bottom: 1px solid #e6ede8; padding: 11px 8px; vertical-align: middle; font-size: 15px; }
.table td:first-child { color: var(--muted); font-size: 11px; }
.table td:last-child { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.table td:nth-child(3) { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.item-title, .item-sku { display: block; overflow-wrap: anywhere; }
.item-title { font-weight: 650; }
.item-sku { margin-top: 3px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 10px; }
.receive-actions, .receipt-actions, .receive-result { margin-top: 14px; }
.receive-actions { background: #eff5f2; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.receive-actions h3 { font-size: 17px; margin-bottom: 5px; }
.verify { display: flex; align-items: center; gap: 10px; min-height: 46px; font-weight: 650; font-size: 15px; cursor: pointer; }
.verify input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }
.receive-buttons { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.receive-buttons .button { flex: 0 1 auto; }
.receive-buttons .button:disabled { cursor: default; }
.receive-actions > p { font-size: 12px; color: var(--muted); margin: 5px 0; }
.receive-actions .receive-message { margin-top: 10px; font-size: 13px; color: #73500f; }
.receipt-actions, .receive-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.receive-result { border-radius: 6px; border: 1px solid #c6e1d2; background: #eaf6ee; padding: 10px 12px; color: #205b42; }
.receipt-actions strong, .receive-result strong { display: block; font-size: 13px; }
.receipt-actions div span, .receive-result div span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.receive-result a, .receipt-actions a { margin-left: auto; color: var(--teal); font-size: 13px; }
.receipt-actions a { text-decoration: none; }
.empty { color: var(--muted); padding: 18px 14px; border: 1px solid var(--line); background: #fff; border-radius: 6px; overflow-wrap: anywhere; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.empty .button { margin-top: 12px; }
.back { display: none; background: transparent; color: var(--teal); border: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; padding: 18px 0 max(18px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 11px; }
.footer span span { margin: 0 3px; }
.login-wrap { padding: 62px 0 30px; display: grid; justify-items: center; }
.login-panel { width: min(100%, 415px); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 25px; }
.login-panel h1 { font-size: 24px; padding: 12px 0 18px; }
.login-panel form { display: grid; gap: 8px; }
.login-panel label { font-size: 15px; font-weight: 700; }
.login-panel input { min-width: 0; min-height: 44px; border: 1px solid #c7d9d1; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.login-panel .primary { margin-top: 4px; }
.message { color: #8a392f; font-size: 13px; padding: 9px; background: #fff0ec; border-radius: 5px; }
.workspace-content { min-width: 0; }
body[data-site="pilot"] .workspace-tabs,
body[data-site="pilot"] #demo-signin { display: none; }
.module-rail { background: #eaf0ed; padding: 20px 14px; }
.module-rail h2 { font-size: 15px; margin: 0 0 12px; }
.module-rail nav { display: grid; gap: 6px; }
.module-rail a { min-height: 54px; border: 1px solid #d5dfdc; padding: 8px 10px; border-radius: 6px; display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.module-rail a svg { width: 20px; height: 20px; }
.module-rail a:hover { background: #f4f9f7; }
.module-rail a[aria-current="page"] { background: #dbeee6; color: #104c44; border-color: #82b4a4; box-shadow: inset 3px 0 var(--teal); }
.stock-workflow { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: start; gap: 24px; margin-top: 22px; }
body[data-site="pilot"] .stock-workflow { grid-template-columns: minmax(0, min(100%, 840px)); }
.stock-form, .stock-history { min-width: 0; }
.section-heading { border-bottom: 1px solid var(--line); min-height: 44px; padding: 0 0 10px; margin-bottom: 12px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-step { padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.form-step:first-child { padding-top: 0; }
.form-step h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.form-step h2 > span { display: inline-grid; place-items: center; color: #104c44; background: #deeee6; border-radius: 6px; width: 31px; height: 31px; flex: none; font-size: 16px; }
.form-step:first-child h2 > span { background: #e3eef7; color: #254f73; }
#step-photo > span { background: var(--gold-bg); color: var(--gold); }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-fields label,.scan-fields label,.bill-field label { font-weight: 650; font-size: 15px; min-width: 0; }
.form-fields input,.form-fields select,.scan-fields input { display: block; width: 100%; min-height: 46px; min-width: 0; border: 1px solid #c7d9d1; border-radius: 6px; color: var(--ink); padding: 7px 10px; margin-top: 5px; background: white; }
.scan-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-bottom: 12px; }
.scan-fields label { flex: 1 1 130px; }
.scan-fields .button { min-height: 46px; }
.camera-button { display: none; }
.stock-lines { background: white; }
.stock-lines td,.stock-lines th { padding: 6px; }
.stock-lines td:first-child { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.stock-lines td:first-child small { display: block; color: var(--muted); font: 10px ui-monospace,monospace; margin-top: 4px; }
.table.stock-lines th:first-child { width: auto; }
.table.stock-lines th:nth-child(2) { width: 42px; }
.table.stock-lines th:nth-child(3) { width: 74px; }
.table.stock-lines th:nth-child(4) { width: 42px; }
.stock-lines input { width: 100%; min-height: 44px; padding: 2px 3px; border: 1px solid #c7d9d1; border-radius: 4px; font: 16px ui-monospace,monospace; }
.line-remove { width: 42px; height: 44px; background: transparent; border: 0; color: #834f46; }
.line-remove:hover { background: #fbeee9; }
.line-remove svg { width: 16px; height: 16px; }
.bill-field { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.bill-field input { display: block; max-width: 100%; margin-top: 6px; font-size: 12px; }
.bill-field output { flex: 1 1 100%; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.bill-field.bill-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; justify-items: start; gap: 10px; }
.bill-preview img { width: min(220px, 100%); height: auto; grid-column: 1 / -1; }
.bill-preview output { grid-column: 1 / -1; }
.document-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.workflow-feedback,.scan-message { padding: 8px; border-radius: 5px; background: var(--mint); overflow-wrap: anywhere; margin: 10px 0; color: var(--teal); font-size: 13px; }
.saved-row { border-bottom: 1px solid var(--line); padding: 9px 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.saved-row small { display: block; color: var(--muted); font-size: 11px; }
.saved-row a { display: inline-block; color: var(--teal); margin-right: 9px; font-size: 12px; }
.camera-dialog { width: min(92%,480px); padding: 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.camera-dialog::backdrop { background: #172d29b0; }
.camera-dialog > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.camera-dialog h2 { font-size: 17px; }
.camera-dialog video { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #172d29; display: block; }
.camera-dialog p { font-size: 13px; margin-top: 8px; }
@media (min-width: 761px) {
  #workspace { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: calc(100vh - 71px); }
  .module-rail { border-right: 1px solid var(--line); }
  .workspace-content .wrap { width: min(calc(100% - 40px),1180px); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .workspace-content .work-area { grid-template-columns: minmax(190px, .8fr) minmax(0,1.2fr); gap: 11px; }
  .workspace-content .pending { padding-right: 10px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 62px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 9px; }
  .account { gap: 6px; }
  .account-label b { font-size: 11px; }
  .account-label small { font-size: 10px; }
  .mast-button { width: 38px; }
  .intro { padding: 17px 0 14px; }
  .intro-row { margin-block: 0 13px; }
  h1 { font-size: 26px; }
  .intro-title p { font-size: 12px; }
  .intro-title { gap: 9px; }
  .section-symbol { width: 42px; height: 42px; }
  .section-symbol svg { width: 21px; height: 21px; }
  .refresh { width: 44px; padding: 0; flex-shrink: 0; }
  .refresh-text { display: none; }
  .workspace-tabs { display: none; }
  .module-rail { border-bottom: 1px solid var(--line); padding: 12px 18px; }
  .module-rail nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #workspace[data-view="detail"] .module-rail { display: none; }
  .stock-workflow { display: block; margin-top: 14px; }
  .stock-history { display: none; }
  .camera-button { display: inline-flex; }
  .form-fields label:first-child { grid-column: 1 / -1; }
  .form-fields input,.form-fields select,.scan-fields input,.stock-lines input { font-size: 16px; }
  .scan-fields label { flex-basis: 100%; }
  .scan-fields .button { flex: 1 1 110px; }
  .table.stock-lines th:last-child { width: 52px; }
  .bill-field.bill-preview { grid-template-columns: minmax(0,1fr); }
  .document-review > .primary { width: 100%; }
  .verify { min-height: 42px; }
  .work-area { display: block; margin-top: 16px; }
  .pending { padding-right: 0; border-right: 0; }
  #workspace:not([data-view="detail"]) .detail { display: none; }
  #workspace[data-view="detail"] .pending, #workspace[data-view="detail"] .intro { display: none; }
  .detail { padding: 12px; }
  .detail-head h2 { font-size: 21px; }
  .back { display: inline-flex; padding: 0 4px; margin: -5px 0 7px; }
  .table th, .table td { padding-inline: 5px; }
  .table th:first-child { width: 23px; }
  .table th:nth-child(3) { width: 39px; }
  .table th:nth-child(4) { width: 42px; }
  .receive-buttons .button { flex: 1 1 100%; }
  .receive-buttons .primary { order: -1; }
  .receive-result a { margin-left: 0; }
  .login-wrap { padding-top: 34px; }
  .login-panel input, .search input { font-size: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .account-label { display: none; }
  .outlet-strip { gap: 5px; }
  .readonly { font-size: 10px; }
  .outlet-strip strong { font-size: 12px; }
}
