/* VERIDIUM Freight · module: Traceability (prefix xt-) */
.xt-card > .mk-rows, .xt-card > .vd-table-scroll { border-top: 1px solid var(--vd-border-subtle); }
.xt-card { margin-bottom: 12px; }
.co-g .xt-card { margin-bottom: 0; }
.co-g { margin-bottom: 12px; }
.xt-pad { padding: 0 18px 14px; }
.mk-sub.xt-pad { margin: 12px 0 6px; padding-bottom: 0; }
.xt-p { margin: 0; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xt-p > i { vertical-align: -2px; }
.xt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.xt-pos { color: var(--vd-positive-text); }
.xt-neg { color: var(--vd-negative-text); }
.xt-bad { display: inline-flex; align-items: center; gap: 4px; color: var(--vd-negative-text); font-weight: 700; }
.xt-ok { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-positive-text); }
.xt-err { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-negative-text); }
.xt-kpi--neg .kpi__v { color: var(--vd-negative-text); }
.xt-kpi--att .kpi__v { color: var(--vd-attention-text); }
.xt-subnav { margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.xt-subnav .vd-segmented { flex-wrap: nowrap; }
.xt-tbl td { vertical-align: middle; }
.xt-mini { border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xt-mini .vd-table td, .xt-mini .vd-table th { padding-top: 7px; padding-bottom: 7px; }
.xt-tr--bad td { background: var(--vd-negative-tint); }
.xt-tr--key td { background: var(--vd-surface-2); font-weight: 600; }

/* lookup */
.xt-look__b { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px; }
.xt-look__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xt-look__in { flex: 1 1 320px; min-width: 0; }
.xt-look__ex .vd-chip .mono { margin-left: 4px; opacity: .75; }
.xt-res { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 13px/18px var(--font-sans); }
.xt-res > span { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.xt-res > span > span { color: var(--vd-text-2); font-size: 12px; }
.xt-res--col { flex-direction: column; align-items: stretch; }
.xt-res--col > .mk-rows { border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface); }
.xt-res__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xt-res__h .mono { font-size: 13px; word-break: break-all; }
.xt-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.xt-tl li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--vd-border-subtle); }
.xt-tl li:first-child { border-top: 0; }
.xt-tl li > i { font-size: 18px; color: var(--vd-text-2); margin-top: 1px; }
.xt-tl li.is-positive > i { color: var(--vd-positive-solid); }
.xt-tl li.is-processing > i { color: var(--vd-processing-solid); }
.xt-tl li.is-negative > i { color: var(--vd-negative-solid); }
.xt-tl li.is-attention > i { color: var(--vd-attention-solid); }
.xt-tl li > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.xt-tl b { font: 700 13px/18px var(--font-sans); }
.xt-tl li > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-tl time { font: 500 11.5px/18px var(--font-mono); color: var(--vd-text-2); white-space: nowrap; }
.xt-pub { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--vd-positive-tint); }
.xt-pub > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-pub b { font: 700 13.5px/18px var(--font-sans); }
.xt-pub > span > span { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-supporting); }

/* chain mini */
.xt-cm { display: inline-flex; align-items: center; gap: 0; vertical-align: middle; }
.xt-cm__n { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--vd-border-strong); background: var(--vd-surface); }
.xt-cm__n.is-on { background: var(--vd-positive-solid); box-shadow: none; }
.xt-cm__n.is-bad { background: var(--vd-negative-solid); box-shadow: none; }
.xt-cm__l { width: 18px; height: 2px; background: var(--vd-border-strong); }
.xt-cm__l.is-on { background: var(--vd-positive-solid); }

/* drawer */
.xt-dr--wide { width: min(860px, calc(100vw - 24px)); max-width: none; }
.xt-dr .vd-drawer__foot { flex-wrap: wrap; justify-content: flex-end; }
.xt-dr .vd-drawer__foot > .vd-btn { height: var(--vd-control-36); }
.xt-dr .vd-drawer__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xt-dtabs { overflow-x: auto; scrollbar-width: none; flex: none; }
.xt-dtabs .vd-segmented { flex-wrap: nowrap; }
.xt-chain { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.xt-ch__n { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 0 0 168px; padding: 12px; border-radius: 14px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); min-width: 0; }
.xt-ch__n.is-on { background: var(--vd-surface); box-shadow: inset 0 0 0 1.5px var(--vd-positive-solid); }
.xt-ch__n b { font: 700 13px/17px var(--font-sans); }
.xt-ch__n > span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-ch__e { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 0 0 150px; padding: 8px 12px; font: 500 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xt-ch__e::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed var(--vd-border-strong); z-index: 0; }
.xt-ch__e.is-on::before { border-top-style: solid; border-color: var(--vd-positive-solid); }
.xt-ch__e.is-bad::before { border-color: var(--vd-negative-solid); }
.xt-ch__e > * { position: relative; z-index: 1; background: var(--vd-surface); padding: 0 4px; align-self: center; text-align: center; }
.xt-ch__e b { font: 700 11.5px/15px var(--font-sans); color: var(--vd-text-1); }
.xt-sscc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.xt-sscc__i { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface); color: inherit; font: 500 11.5px/15px var(--font-sans); text-align: left; cursor: pointer; min-width: 0; }
.xt-sscc__i:hover { border-color: var(--vd-border-strong); }
.xt-sscc__i .mono { font-size: 12px; color: var(--vd-text-1); }
.xt-sscc__i > span { color: var(--vd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-sscc__h { display: flex; align-items: center; gap: 4px; color: var(--vd-text-1) !important; font-weight: 600; }
.xt-sscc__i.is-on .xt-sscc__h i { color: var(--vd-positive-solid); }
.xt-sscc__i.is-bad { border-color: var(--vd-negative-solid); background: var(--vd-negative-tint); }
.xt-sscc__i.is-bad .xt-sscc__h { color: var(--vd-negative-text) !important; }
.xt-line { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xt-line > i { flex: none; font-size: 18px; margin-top: 1px; color: var(--vd-text-2); }
.xt-line > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-line b { font: 700 13px/18px var(--font-sans); }
.xt-line > span > span { color: var(--vd-text-2); }
.xt-rsum { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.xt-rsum > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); }
.xt-rsum b { font: 800 18px/22px var(--font-sans); font-variant-numeric: tabular-nums; }
.xt-rsum span { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xt-rsum .is-positive { background: var(--vd-positive-tint); }
.xt-rsum .is-attention { background: var(--vd-attention-tint); }
.xt-rsum .is-negative { background: var(--vd-negative-tint); }
.xt-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.xt-pl__i { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 10px; border-left: 3px solid var(--vd-positive-solid); background: var(--vd-surface-2); font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); min-width: 0; }
.xt-pl__i .mono { color: var(--vd-text-1); }
.xt-pl__i.is-dmg, .xt-pl__i.is-sct, .xt-pl__i.is-part { border-left-color: var(--vd-attention-solid); }
.xt-pl__i.is-ref, .xt-pl__i.is-miss { border-left-color: var(--vd-negative-solid); }
.xt-pl__i.is-wait { border-left-color: var(--vd-border-strong); }
.xt-osdl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xt-osdl > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.xt-osdl b { font: 700 13px/18px var(--font-sans); }
.xt-osdl > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xt-pn { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; background: var(--vd-surface); }
.xt-pn__h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 700 13px/18px var(--font-sans); }
.xt-pn__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.xt-pn__g > div { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: var(--vd-surface-2); min-width: 0; }
.xt-pn__g > div.is-att { background: var(--vd-attention-tint); }
.xt-pn__g b { font: 800 17px/21px var(--font-sans); }
.xt-pn__g span { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xt-pn__w { grid-column: span 3; justify-content: center; }
.xt-pn__f { display: flex; align-items: center; gap: 6px; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xt-code { margin: 0; max-height: 340px; overflow: auto; padding: 12px; border-radius: 12px; background: var(--vd-surface-inverse); color: var(--vd-grey-200); font: 500 11px/15px var(--font-mono); white-space: pre; }
.xt-ev { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--vd-positive-tint); }
.xt-ev > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-ev b { font: 800 14px/19px var(--font-sans); }
.xt-ev > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); overflow-wrap: anywhere; }
.xt-hc { list-style: none; margin: 0; padding: 0; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xt-hc li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--vd-border-subtle); font: 500 12px/16px var(--font-sans); }
.xt-hc li:first-child { border-top: 0; }
.xt-hc time { font: 500 11px/16px var(--font-mono); color: var(--vd-text-2); }
.xt-hc li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* discrepancy */
.xt-items { display: flex; flex-direction: column; gap: 6px; }
.xt-it { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xt-it > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-it b { font: 700 13px/18px var(--font-sans); }
.xt-it > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-fault { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 3px 0 0 var(--vd-border-strong); }
.xt-fault--carrier { box-shadow: inset 3px 0 0 var(--vd-processing-solid); }
.xt-fault--shipper { box-shadow: inset 3px 0 0 var(--vd-attention-solid); }
.xt-fault > i { font-size: 20px; flex: none; }
.xt-fault > span { display: flex; flex-direction: column; gap: 2px; }
.xt-fault b { font: 700 13.5px/18px var(--font-sans); }
.xt-fault > span > span { font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-supporting); }
.xt-dl { display: flex; flex-wrap: wrap; gap: 6px; }
.xt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 600 11.5px/16px var(--font-sans); }
.xt-chip.is-ok { background: var(--vd-positive-tint); }
.xt-chip.is-late { background: var(--vd-negative-tint); color: var(--vd-negative-text); }

/* forms */
.xt-form .xt-form__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0 18px 12px; }
.xt-form__w { grid-column: 1 / -1; }
.xt-form__f { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--vd-border-subtle); }
.xt-form--in { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xt-form--in > span { color: var(--vd-text-supporting); }
.xt-bal { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.xt-bal b { font: 800 40px/44px var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.xt-bal > span { font: 500 13px/18px var(--font-sans); color: var(--vd-text-2); }
.xt-sc--negative { color: var(--vd-negative-text); }
.xt-sc--attention { color: var(--vd-attention-text); }
.xt-sc--positive { color: var(--vd-positive-text); }
.xt-led { list-style: none; margin: 0; padding: 0; border: 1px solid var(--vd-border-subtle); border-radius: 12px; }
.xt-led li { display: grid; grid-template-columns: 82px minmax(0, 1fr) 44px 40px; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--vd-border-subtle); font: 500 12px/16px var(--font-sans); }
.xt-led li:first-child { border-top: 0; }
.xt-led time { font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xt-led li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.xt-led li > span:nth-child(2) > span { color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-led li > b { text-align: right; font: 800 14px/18px var(--font-sans); }
.xt-led li > .mono { text-align: right; color: var(--vd-text-2); }
.xt-dep { width: 110px; margin-left: auto; }
.xt-dep .vd-input__control { text-align: right; }
.xt-sel { min-width: 150px; height: 34px; font-size: 12.5px; }

/* PPWR */
.xt-ppwr { display: flex; flex-direction: column; gap: 16px; padding: 4px 18px 18px; }
.xt-pw { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 120px; align-items: center; gap: 16px; }
.xt-pw__h { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.xt-pw__h b { font: 700 13px/18px var(--font-sans); }
.xt-pw__h span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xt-pw__bar { position: relative; height: 14px; border-radius: 999px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xt-pw__f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--vd-attention-solid); }
.xt-pw__f.is-ok { background: var(--vd-positive-solid); }
.xt-pw__t { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--vd-text-1); }
.xt-pw__t i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font: 700 10px/12px var(--font-sans); font-style: normal; white-space: nowrap; }
.xt-pw__n { display: flex; flex-direction: column; text-align: right; }
.xt-pw__n b { font: 800 16px/20px var(--font-sans); }
.xt-pw__n span { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }

/* recalls */
.xt-rc.is-closed { opacity: .82; }
.xt-rc .vd-card__title { align-items: center; }
.xt-rcp { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0 18px 14px; }
.xt-rc .xt-rcp.xt-pad { padding: 0 18px 14px; }
.xt-rcp > div { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 12px; background: var(--vd-surface-2); min-width: 0; }
.xt-rcp span { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xt-rcp b { font: 800 18px/22px var(--font-sans); }
.xt-rcp em { font: 500 11px/14px var(--font-sans); font-style: normal; color: var(--vd-text-2); }
.xt-rc .xt-row.xt-pad { padding-top: 12px; border-top: 1px solid var(--vd-border-subtle); }
.xt-rc .mk-rows .mk-row .vd-btn { flex: none; }

/* protection */
.xt-sr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.xt-rsv { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 10px; }
.xt-rsv__r { display: flex; flex-direction: column; gap: 3px; margin: 0 18px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-supporting); }
.xt-rsv__r b { display: flex; align-items: center; gap: 6px; font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xt-rsv__r.is-stolen, .xt-rsv__r.is-unknown, .xt-rsv__r.is-missing { background: var(--vd-negative-tint); }
.xt-rsv__r.is-genuine { background: var(--vd-positive-tint); }
.xt-rsv__f { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 18px 16px; }
.xt-rsv__f .mono { color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-score { display: inline-flex; align-items: center; gap: 8px; }
.xt-score__b { position: relative; width: 70px; height: 6px; border-radius: 999px; background: var(--vd-surface-2); overflow: hidden; }
.xt-score__b > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--vd-positive-solid); }
.xt-score__b > span.is-attention { background: var(--vd-attention-solid); }
.xt-score__b > span.is-negative { background: var(--vd-negative-solid); }

/* GS1 */
.xt-gln { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.xt-gln .vd-input { max-width: 170px; }
.xt-gln .vd-input.is-error { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xt-labw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
.xt-labc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); }
.xt-labc .vd-btn { align-self: flex-start; }
.xt-label { display: flex; flex-direction: column; border: 2px solid var(--vd-grey-950); border-radius: 4px; background: var(--vd-surface); color: var(--vd-grey-950); font: 500 11px/14px var(--font-sans); }
.xt-label__top { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--vd-grey-950); }
.xt-label__top > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; min-width: 0; }
.xt-label__top > div + div { border-left: 1px solid var(--vd-grey-950); }
.xt-label__top span:first-child { font: 700 9px/12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.xt-label__top b { font: 700 12px/15px var(--font-sans); }
.xt-label__mid { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; align-items: center; padding: 10px; border-bottom: 2px solid var(--vd-grey-950); }
.xt-label__kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.xt-label__kv span { font: 700 9px/12px var(--font-sans); letter-spacing: .08em; }
.xt-label__kv b { font-size: 12.5px; overflow-wrap: anywhere; }
.xt-qr { width: 112px; height: 112px; }
.xt-label__bc { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--vd-grey-950); }
.xt-bars { width: 100%; height: 44px; }
.xt-label__bc .mono { text-align: center; font-size: 11px; margin-bottom: 6px; }
.xt-label__dl { padding: 6px 10px; font-size: 10px; overflow-wrap: anywhere; }
.xt-ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; padding: 0 18px 10px; }
.xt-ver { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 18px; }
.xt-file { position: relative; align-self: flex-start; overflow: hidden; cursor: pointer; }
.xt-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* producer: track panel and compose */
.xt-trk { display: flex; flex-direction: column; gap: 6px; }
.xt-trk__r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); border: 0; color: inherit; text-align: left; width: 100%; }
.xt-trk__r > i { flex: none; font-size: 16px; color: var(--vd-text-2); }
.xt-trk__r--b { cursor: pointer; background: var(--vd-attention-tint); }
.xt-trk__r--b > i:first-child { color: var(--vd-attention-solid); }
.xt-trk__r--neg { background: var(--vd-negative-tint); }
.xt-trk__r--neg > i { color: var(--vd-negative-solid); }
.xt-trk .xt-row { margin-top: 2px; }
.xt-cmp__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.xt-cmp__g .vd-segmented { width: 100%; }
.xt-cmp__g .vd-segmented__item { flex: 1 1 0; }
.xt-cmp__rt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.xt-rt { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/16px var(--font-sans); }
.xt-risk { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--vd-positive-tint); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xt-risk.is-attention { background: var(--vd-attention-tint); }
.xt-risk.is-negative { background: var(--vd-negative-tint); }
.xt-risk > i:first-child { font-size: 20px; flex: none; }
.xt-risk.is-positive > i:first-child { color: var(--vd-positive-solid); }
.xt-risk.is-attention > i:first-child { color: var(--vd-attention-solid); }
.xt-risk.is-negative > i:first-child { color: var(--vd-negative-solid); }
.xt-risk > span { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.xt-risk b { font: 700 13px/18px var(--font-sans); }
.xt-risk > span > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); }
.xt-dpp__b { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px; }
.xt-dpp__k { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.xt-dpp__k > div { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 12px; background: var(--vd-surface-2); min-width: 0; }
.xt-dpp__k b { font: 800 16px/20px var(--font-sans); overflow-wrap: anywhere; }
.xt-dpp__k span { font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xt-dpp { margin-top: 12px; }

/* consignee page */
.xt-kc .xk-h .vd-badge { margin-left: 4px; }
.xt-kc--neg { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); background: var(--vd-negative-tint); }
.xt-kc--neg .xk-h i { color: var(--vd-negative-solid); }
.xt-krow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.xt-scan { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); font: 500 13px/18px var(--font-sans); }
.xt-scan__f { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vd-grey-0) 70%, transparent); font-size: 22px; }
.xt-scan b { font: 800 16px/20px var(--font-sans); }
.xt-kpals { display: flex; flex-direction: column; gap: 5px; max-height: 460px; overflow-y: auto; }
.xt-kp { border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 3px 0 0 var(--vd-border-strong); }
.xt-kp.is-ok { box-shadow: inset 3px 0 0 var(--vd-positive-solid); }
.xt-kp.is-dmg, .xt-kp.is-sct, .xt-kp.is-part { box-shadow: inset 3px 0 0 var(--vd-attention-solid); }
.xt-kp.is-ref, .xt-kp.is-miss { box-shadow: inset 3px 0 0 var(--vd-negative-solid); }
.xt-kp.is-open { background: var(--vd-surface); box-shadow: inset 3px 0 0 var(--vd-text-1), inset 0 0 0 1px var(--vd-border); }
.xt-kp__h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 7px 10px 7px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xt-kp__h:disabled { cursor: default; }
.xt-kp__h > i { flex: none; font-size: 18px; color: var(--vd-text-2); }
.xt-kp.is-ok .xt-kp__h > i { color: var(--vd-positive-solid); }
.xt-kp.is-ref .xt-kp__h > i, .xt-kp.is-miss .xt-kp__h > i { color: var(--vd-negative-solid); }
.xt-kp.is-dmg .xt-kp__h > i, .xt-kp.is-sct .xt-kp__h > i, .xt-kp.is-part .xt-kp__h > i { color: var(--vd-attention-solid); }
.xt-kp__h > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.xt-kp__h .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.xt-kp__h > span:nth-child(2) > span:last-child { font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-kp__s { flex: none; font: 700 11.5px/15px var(--font-sans); text-align: right; max-width: 40%; }
.xt-kp__b { display: flex; flex-direction: column; gap: 8px; padding: 2px 12px 12px; }
.xt-kp__b .vd-chip-row { gap: 6px; }
.xt-chal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xt-chal__c { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px dashed var(--vd-border-strong); border-radius: 10px; background: var(--vd-surface); color: inherit; font: 600 12px/16px var(--font-sans); cursor: pointer; }
.xt-chal__c.is-ok { border-style: solid; border-color: var(--vd-positive-solid); background: var(--vd-positive-tint); }
.xt-chal__c.is-ok i { color: var(--vd-positive-solid); }
.xt-kfin { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--vd-border-subtle); }
.xt-hid { border-radius: 12px; background: var(--vd-surface-2); }
.xt-hid summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; font: 600 12.5px/17px var(--font-sans); cursor: pointer; }
.xt-hid[open] summary { border-bottom: 1px solid var(--vd-border-subtle); }
.xt-hid > .xt-kpals, .xt-hid > .xk-mut { margin: 8px 10px; display: flex; }
.xt-vl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.xt-vl li { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--vd-surface-2); font: 500 12px/16px var(--font-sans); }
.xt-vl li.is-positive i { color: var(--vd-positive-solid); }
.xt-vl li.is-negative { background: var(--vd-negative-tint); }
.xt-vl li.is-negative i { color: var(--vd-negative-solid); }
.xt-vl li .mono { font-size: 11.5px; }

/* driver and phone */
.xt-dcard .xt-step { min-height: 44px; }
.xt-dcard .stp { flex: none; }
.xt-dcard .vd-chip-row { gap: 6px; }
.xt-trip { display: flex; flex-direction: column; gap: 6px; }
.xt-trip > .mk-sub { margin-bottom: 2px; }
.xt-trip.is-phone .xt-trk__r { flex-wrap: wrap; }
.xt-mcard { cursor: pointer; }
.xt-dlb { flex: none; }

@media (max-width: 1023px) {
  .xt-labw { grid-template-columns: minmax(0, 1fr); }
  .xt-pw { grid-template-columns: minmax(0, 1fr) 100px; }
  .xt-pw__bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .xt-dr--wide { width: 100%; }
  .xt-cmp__g { grid-template-columns: minmax(0, 1fr); }
  .xt-pn__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xt-pn__w { grid-column: span 1; }
  .xt-ch__n { flex-basis: 140px; }
  .xt-ch__e { flex-basis: 110px; }
  .xt-hc li { grid-template-columns: 84px minmax(0, 1fr) 18px; }
  .xt-hc time { display: none; }
  .xt-led li { grid-template-columns: 64px minmax(0, 1fr) 36px; }
  .xt-led li > .mono { display: none; }
  .xt-look__b, .xt-ppwr, .xt-rsv, .xt-ver, .xt-dpp__b, .xt-form .xt-form__g { padding-left: 14px; padding-right: 14px; }
  .xt-rsv__r { margin: 0 14px; }
  .xt-rcp { padding-left: 14px; padding-right: 14px; }
  .xt-gln .vd-input { max-width: none; }
  .xt-sscc, .xt-pl { grid-template-columns: minmax(0, 1fr); }
  .xt-label__mid { grid-template-columns: minmax(0, 1fr) 90px; }
  .xt-qr { width: 90px; height: 90px; }
}
.xt-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0 18px 8px; }
@media (max-width: 767px) { .xt-prices { padding-left: 14px; padding-right: 14px; } }

/* ===== W1 (v0.5) · seams and new features ===== */
.xt-cm.is-na .xt-cm__n { box-shadow: inset 0 0 0 2px var(--vd-border-subtle); background: transparent; }
.xt-cm.is-na .xt-cm__l { background: var(--vd-border-subtle); }
/* INV-10 settlement */
.xt-set { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xt-set > i { flex: none; font-size: 20px; margin-top: 1px; }
.xt-set > span { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.xt-set b { font: 700 13px/18px var(--font-sans); }
.xt-set > span > span { color: var(--vd-text-2); }
.xt-set.is-ok { background: var(--vd-positive-tint); }
.xt-set.is-ok > i { color: var(--vd-positive-solid); }
.xt-set.is-offered { background: var(--vd-processing-tint); }
.xt-set.is-accepted { background: var(--vd-positive-tint); }
.xt-set.is-disputed { background: var(--vd-attention-tint); }
.xt-set.is-no { display: block; }
.xt-set.is-no summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--vd-text-2); }
.xt-set.is-no ul { margin: 6px 0 6px 26px; padding: 0; color: var(--vd-text-2); }
.xt-set .mono { overflow-wrap: anywhere; }
.xt-set__a { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.xt-set--car { margin: 6px 0; }
/* INV-14 damage & loss */
.xt-ins { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 14px; }
.xt-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xt-in > .vd-tile { flex: none; }
.xt-in__t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; min-width: 0; font: 500 12.5px/17px var(--font-sans); }
.xt-in b { font: 700 13px/18px var(--font-sans); }
.xt-in__t > span { color: var(--vd-text-2); }
.xt-par { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 14px; }
.xt-par__r { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 130px 80px; align-items: center; gap: 10px; font: 500 12.5px/17px var(--font-sans); }
.xt-par__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-par__b { height: 10px; border-radius: 5px; background: var(--vd-surface-2); overflow: hidden; }
.xt-par__b > span { display: block; height: 100%; border-radius: 5px; background: var(--vd-attention-solid); }
.xt-par__v { text-align: right; }
.xt-par__c { text-align: right; }
.xt-hrule { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.xt-hrule__i { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--vd-processing-tint); font: 500 12.5px/17px var(--font-sans); }
.xt-hrule__i > span { color: var(--vd-text-2); }
/* INV-18 distribution guard */
.xt-dist { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font: 500 12.5px/17px var(--font-sans); }
.xt-dist.is-neg { background: var(--vd-negative-tint); }
.xt-dist.is-att { background: var(--vd-attention-tint); }
.xt-dist > i { font-size: 20px; flex: none; }
.xt-dist > span { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.xt-dist b { font: 700 13px/18px var(--font-sans); }
/* INV-15 photo multi-code check */
.xt-ph { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.xt-face { width: 200px; max-width: 100%; height: auto; }
.xt-face__w { fill: var(--vd-red-25); stroke: var(--vd-amber-100); }
.xt-face__p { fill: var(--vd-red-300); }
.xt-face__c { fill: var(--vd-amber-100); stroke: var(--vd-amber-100); }
.xt-face__q { fill: none; stroke: var(--vd-positive-solid); stroke-width: 2; }
.xt-face__q.is-bad { stroke: var(--vd-negative-solid); stroke-width: 3; }
.xt-ph__r { font: 600 12.5px/17px var(--font-sans); color: var(--vd-positive-text); }
.xt-ph__r.is-bad { color: var(--vd-negative-text); }
/* INV-17 quality hold */
.xt-temp { width: 100%; max-width: 420px; height: auto; margin: 8px 0; }
.xt-temp__ok { fill: var(--vd-positive-tint); }
.xt-temp__l { fill: none; stroke: var(--vd-negative-solid); stroke-width: 2; }
.xt-temp text { font: 500 9px/1 var(--font-sans); fill: var(--vd-text-2); }
.xt-rsv__r.is-hold { background: var(--vd-attention-tint); }
/* INV-23 scan anything */
.xt-fab { position: absolute; right: 14px; bottom: 74px; z-index: 7; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--vd-text-1); color: var(--vd-surface); font: 700 14px/1 var(--font-sans); box-shadow: 0 6px 18px color-mix(in srgb, var(--vd-grey-950) 22%, transparent); cursor: pointer; }
.xt-fab i { font-size: 20px; }
.xt-fab--mp { bottom: 84px; }
.xt-fab--ap { bottom: 86px; }
.xt-fab--page { position: fixed; right: 18px; bottom: 18px; }
.xt-scn { display: flex; flex-direction: column; gap: 10px; }
.xt-scn__cam { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 110px; border-radius: 12px; background: var(--vd-surface-inverse); color: var(--vd-grey-250); font: 500 12px/16px var(--font-sans); }
.xt-scn__cam i { font-size: 34px; }
.xt-scn__d { display: flex; flex-wrap: wrap; gap: 6px; }
.xt-scn__r { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); font: 500 12.5px/17px var(--font-sans); }
.xt-scn__r > i { font-size: 22px; flex: none; }
.xt-scn__r > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-scn__r b { font: 700 14px/19px var(--font-sans); }
.xt-scn__r > span > span { color: var(--vd-text-2); overflow-wrap: anywhere; }
.xt-scn__r.is-positive { background: var(--vd-positive-tint); } .xt-scn__r.is-positive > i { color: var(--vd-positive-solid); }
.xt-scn__r.is-negative { background: var(--vd-negative-tint); } .xt-scn__r.is-negative > i { color: var(--vd-negative-solid); }
.xt-scn__r.is-attention { background: var(--vd-attention-tint); }
.xt-scn__r.is-processing { background: var(--vd-processing-tint); }
.xt-scn__a { display: flex; flex-direction: column; gap: 8px; }
.xt-scn__e { font: 500 11px/14px var(--font-sans); color: var(--vd-text-3); }
.xt-scv { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--vd-grey-950) 35%, transparent); }
.xt-scd { position: fixed; z-index: 91; right: 18px; bottom: 74px; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); overflow: auto; padding: 14px; border-radius: 16px; background: var(--vd-surface); box-shadow: 0 12px 40px color-mix(in srgb, var(--vd-grey-950) 25%, transparent); }
.xt-scd__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font: 700 15px/20px var(--font-sans); }
.xt-scsh .ap-docs__b { padding-bottom: 14px; }
.xt-chk { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font: 500 12.5px/17px var(--font-sans); }
.xt-occ { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0 18px 14px; }
@media (max-width: 767px) {
  .xt-par__r { grid-template-columns: minmax(0, 1fr) 90px; }
  .xt-par__b { grid-column: 1 / -1; grid-row: 2; }
  .xt-par__c { display: none; }
  .xt-ins, .xt-par, .xt-occ { padding-left: 14px; padding-right: 14px; }
  .xt-fab--page { right: 12px; bottom: 12px; }
  .xt-scd { right: 16px; left: 16px; width: auto; bottom: 66px; }
}
.xt-form__g .stp { width: max-content; }
.xt-rc .mk-row.is-ro{opacity:.72}
.xt-osdr{display:block;margin-top:2px;white-space:nowrap}
/* phone: the area header row (xq scope chip + two buttons) wraps instead of overflowing */
@media (max-width: 600px) { .mk-area:has(.xt-hact) .mk-area__act { flex-wrap: wrap; margin-left: 0; width: 100%; } }
.xt-stsc { margin: 8px 0 12px; }

/* ===== v0.6 (W3) · FL5-15 recall in transit: consignee banner, quarantine rows, driver notice, carrier strip ===== */
.xt-qban { border-color: var(--vd-negative-solid); background: var(--vd-negative-tint); }
.xt-qban .xk-h { color: var(--vd-negative-solid); }
.xt-qbar { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; margin: 0 0 10px; border-radius: 8px; background: var(--vd-negative-tint); color: var(--vd-text-1); font-size: 13px; }
.xt-qbar .ph-fill, .xt-qbar i { color: var(--vd-negative-solid); flex: none; margin-top: 2px; }
.xt-kp.is-q { box-shadow: inset 3px 0 0 var(--vd-negative-solid); }
.xt-kp.is-q .xt-kp__s { color: var(--vd-negative-solid); }
.xt-drn .ap-card { margin: 0 0 10px; }
.xt-btn-neg { color: var(--vd-negative-solid); border-color: var(--vd-negative-solid); }
.xt-rstrip { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.xt-rstrip__r { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--vd-negative-tint); border: 1px solid var(--vd-negative-solid); min-width: 0; }
.xt-rstrip__r > i, .xt-rstrip__r > .ph-fill { color: var(--vd-negative-solid); flex: none; }
.xt-rstrip__r .grow { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.xt-rstrip__r .grow span { color: var(--vd-text-2); font-size: 12px; overflow-wrap: anywhere; }
.xt-rstrip.is-phone .xt-rstrip__r { flex-wrap: wrap; }
.xt-rstrip.is-phone .xt-rstrip__r .vd-btn { margin-left: auto; }

/* ===== v0.6 (W3) · input lots, certificates, mock recall, assets (GRAI), effectiveness ===== */
.xt-lot { display: inline-block; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--vd-surface-2); border: 1px solid var(--vd-border-subtle); margin: 1px 2px 1px 0; white-space: nowrap; }
.xt-nowrap { white-space: nowrap; }
.xt-nowrap .vd-btn + .vd-btn { margin-left: 4px; }
.xt-bin-ed td { background: var(--vd-surface-2); }
.xt-bin-ed .vd-chip-row { margin-top: 6px; flex-wrap: wrap; }
.xt-mr__h { display: flex; gap: 14px; align-items: center; padding: 4px 16px 10px; flex-wrap: wrap; }
.xt-mr__clock { font-family: var(--font-mono, ui-monospace, monospace); font-size: 28px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 8px; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.xt-mr__s { list-style: none; margin: 0; padding: 0 16px 8px; display: flex; flex-direction: column; gap: 6px; }
.xt-mr__s li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--vd-text-2); }
.xt-mr__s li > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.xt-mr__s li > span span { overflow-wrap: anywhere; }
.xt-mr__s li.is-done { color: var(--vd-text-1); }
.xt-mr__s li.is-done > i:first-child, .xt-mr__s li.is-done .ph-fill { color: var(--vd-positive-solid); }
.xt-mr__s time { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--vd-text-2); }
.xt-mr__res { display: flex; gap: 10px; align-items: center; margin: 4px 16px 14px; padding: 10px 12px; border-radius: 10px; flex-wrap: wrap; }
.xt-mr__res > span { display: flex; flex-direction: column; flex: 1; min-width: 200px; font-size: 13px; }
.xt-mr__res.is-ok { background: var(--vd-positive-tint); }
.xt-mr__res.is-bad { background: var(--vd-attention-tint); }
.xt-coo-ok { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 6px 0; border-radius: 8px; background: var(--vd-positive-tint); flex-wrap: wrap; }
.xt-coo-ok > span { display: flex; flex-direction: column; flex: 1; min-width: 180px; font-size: 13px; }
.xt-crisis.is-on { box-shadow: inset 0 0 0 1.5px var(--vd-negative-solid); }
.xt-eff { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.xt-eff > span { flex: 1; min-width: 220px; }
.xt-eff__bar { width: 120px; height: 8px; border-radius: 4px; background: var(--vd-border-subtle); overflow: hidden; flex: none; }
.xt-eff__bar i { display: block; height: 100%; background: var(--vd-positive-solid); }
.xt-ad { display: flex; flex-direction: column; gap: 6px; }
.xt-ad .xt-tl { margin: 0; }
.xt-labdr .vd-drawer__body { display: flex; flex-direction: column; gap: 10px; }
tr.is-sel td { background: var(--vd-processing-tint); }
@media (max-width: 767px) {
  .xt-mr__clock { font-size: 22px; }
  .xt-nowrap { white-space: normal; }
  .xt-nowrap .vd-btn { margin: 2px 0; }
}
/* UX5-05: the phone app's Scan button never covers the last row of a list */
.ap.mp:has(.xt-fab--mp) .mp-scroll { padding-bottom: 84px; }
/* UX5-06: low-value columns of xt tables hide on phones (status, amounts and actions stay) */
@media (max-width: 767px) { .xt-hs { display: none; } }
/* SELF-xt-3: an alcohol lot without its certificate of analysis is blocked for production */
.xt-blk { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; color: var(--vd-negative-solid); margin-right: 4px; }
/* phone: the lot cell carries material and supplier (their own columns hide) */
.xt-so { display: none; }
@media (max-width: 767px) { .xt-so { display: block; max-width: 140px; } }
/* ===== v0.7 ===== */
/* FL6-09: a replacing despatch advice names the versions it supersedes */
.xt-daprev { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; }
.xk-p.xt-daprev { color: var(--vd-attention-text); }
/* IN4-01: released to trade or not, and the out-of-custody signals */
.xt-rel { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--vd-attention-tint); font-size: 13px; }
.xt-rel.is-ok { background: var(--vd-positive-tint); }
.xt-rel > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xt-rel > span > span { color: var(--vd-text-2); font-size: 12px; }
.xt-pub.is-hold { background: var(--vd-attention-tint); }
.xt-simp { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.xt-ooc td { vertical-align: top; }
.xt-ooc__a { display: flex; flex-wrap: wrap; gap: 4px; min-width: 220px; }
.xt-lnk { border: 0; background: none; padding: 0; color: var(--vd-text-1); font: 600 12px/16px var(--font-sans); cursor: pointer; text-decoration: underline; }
@media (max-width: 767px) { .xt-ooc__a { min-width: 0; } .xt-ooc__a .vd-btn { min-height: 36px; } }
/* IN4-03: onward deliveries (receiver portal, van app, producer downstream, outlet link) */
.xt-van.is-cur { box-shadow: inset 0 0 0 1.5px var(--vd-processing-solid); }
.xt-van__a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.xt-van__a .vd-field { flex: 1 1 100%; margin: 0; }
.xt-van__ok { display: inline-flex; gap: 6px; align-items: center; font: 600 13px/18px var(--font-sans); color: var(--vd-positive-solid); }
.xt-ds { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 14px; }
.xt-ds__k { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.xt-olk { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--vd-negative-tint); }
.xt-olk > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
/* IN4-05: re-case sheet inside the damaged pallet row */
.xt-rk { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--vd-surface-2); }
.xt-rk > b { display: flex; gap: 6px; align-items: center; font: 600 13.5px/18px var(--font-sans); }
.xt-rk__n { display: inline-flex; gap: 6px; align-items: center; font: 600 13px/18px var(--font-sans); }
.xt-rk__lbl { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1.5px dashed var(--vd-border-strong); border-radius: 8px; background: var(--vd-surface); max-width: 100%; overflow-wrap: anywhere; }
.xt-rk__lbl .mono:first-child { font-size: 16px; font-weight: 700; }
/* RE-UX4-30 (xy gap): every xt button on the delivery link / receiving card is a 36 px tap target on phones */
@media (max-width: 767px) { .xt-kc .vd-btn--32, .xt-krow .vd-btn--32, .xt-van .vd-btn--32 { min-height: 36px; } }
/* v0.8 · RE-UX4-30: tap targets at phone width */
@media (max-width: 767px) { .xt-risk { min-height: 44px; } }
/* v0.8 · IN5-06 quality complaints and signals */
.xt-qcp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.xt-qcp > span { font: 500 13px/18px var(--font-sans); color: var(--vd-text-supporting); display: inline-flex; gap: 6px; align-items: center; }
.xt-qcp--pp { padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xt-qck { min-width: 0; flex: 1 1 200px; max-width: 320px; }
.xt-qcs__w { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.xt-qcs__c { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--vd-border); border-radius: 10px; cursor: pointer; font: 500 13px/18px var(--font-sans); }
.xt-qcs__c input { accent-color: var(--vd-text-1); }
.xt-qcs__c:has(input:checked) { border-color: var(--vd-text-1); background: var(--vd-surface-2); }
.xt-qcs__ph { display: flex; align-items: center; gap: 8px; min-height: 40px; font: 500 13px/18px var(--font-sans); cursor: pointer; }
.xt-qcs__in { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid var(--vd-border); border-radius: 8px; font: inherit; }
.xt-qs__k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.xt-qs__k > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); }
.xt-qs__k span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); }
.xt-qs__k b { font: 700 18px/24px var(--font-sans); }
.xt-qs__r.is-hot { box-shadow: inset 3px 0 0 var(--vd-negative-solid); }
.xt-qsd__h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.xt-qsd__h b { font: 700 15px/22px var(--font-sans); }
.xt-qsd__h span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); }
.xt-qsd__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.xt-qsd__c { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--vd-border); border-radius: 12px; min-width: 0; }
.xt-qsd__kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font: 500 12px/16px var(--font-sans); }
.xt-qsd__kv > span:first-child { color: var(--vd-text-supporting); }
.xt-qsd__kv > span:last-child { overflow-wrap: anywhere; }
.xt-qsd__ok { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--vd-positive-tint); font: 500 13px/18px var(--font-sans); }
/* v0.8 · IN5-14 near you */
.xt-near { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xt-near > b { display: flex; gap: 6px; align-items: center; font: 700 14px/20px var(--font-sans); }
.xt-near__r { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--vd-canvas); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xt-near__r > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.xt-near__r b { font: 600 13px/18px var(--font-sans); }
.xt-near__r span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); }
@media (max-width: 767px) { .xt-qs__k { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xt-qsd__kv { grid-template-columns: 84px minmax(0, 1fr); } }
/* v0.8 · IN5-09 contract bottling */
.xt-cob__s { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.xt-cob__s > span { display: flex; flex-direction: column; min-width: 0; }
.xt-cob__s b { font: 700 14px/20px var(--font-sans); }
.xt-cob__s span span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); overflow-wrap: anywhere; }
.xt-cob__l { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xt-cob__l li { display: flex; gap: 8px; align-items: flex-start; font: 500 13px/18px var(--font-sans); }
.xt-cob__l li > span { display: flex; flex-direction: column; min-width: 0; }
.xt-cob__l li span span { font-size: 12px; color: var(--vd-text-supporting); overflow-wrap: anywhere; }
.xt-cob__l li.is-done > i { color: var(--vd-positive-solid); }
/* v0.8 · IN5-12 kits on the staff phone */
.xt-kitp { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xt-kitp > b { display: flex; gap: 6px; align-items: center; font: 700 14px/20px var(--font-sans); }
.xt-kitp > span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-supporting); }

/* IN5-06 · quality signal map */
.xt-qsm { display: block; width: 100%; max-width: 520px; height: auto; margin: 4px 0; background: var(--vd-surface-2); border-radius: 12px; }
.xt-qsm__l { stroke: var(--vd-negative-solid); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .7; }
.xt-qsm__s { fill: var(--vd-text-1); }
.xt-qsm__o { fill: var(--vd-negative-solid); stroke: var(--vd-grey-0); stroke-width: 2; }
.xt-qsm text { font: 600 9px/1 var(--font-sans); fill: var(--vd-text-2); }
.xt-qsd__c .vd-btn { white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; line-height: 18px; text-align: left; justify-content: flex-start; }
.xt-fault--unclear { box-shadow: inset 3px 0 0 var(--vd-attention-solid); }
