/* VERIDIUM Warehouse · shared layer on top of DS Main (ds.css) and the Freight page layer (mkt.css). Light only. */
:root { --wh-zone: #f7f8fa; --wh-zone-line: #c9d0d8; --wh-rack: #dde2e8; --wh-yard: #e4e7eb; }

/* ---------- legal status chip (neutral: colour is only for deviations) ---------- */
.wh-legal { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--vd-surface-soft); color: var(--vd-text-supporting); font: 600 11.5px/1 var(--font-sans); white-space: nowrap; }
.wh-legal i { font-size: 13px; }
.wh-legal--susp, .wh-legal--nonu, .wh-legal--tsf { background: repeating-linear-gradient(135deg, var(--vd-surface-soft) 0 5px, var(--vd-surface) 5px 8px); box-shadow: inset 0 0 0 1px var(--vd-border); }

/* ---------- small helpers ---------- */
.wh-epc { display: block; margin-top: 2px; font-size: 10.5px; color: var(--vd-text-3); }
.wh-feed { max-width: 100%; }
.wh-crash { margin: 24px; padding: 16px; border-radius: 12px; background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.wh-crash pre { white-space: pre-wrap; font: 500 11px/15px var(--font-mono); }
.wh-sscc { font: 500 12px/16px var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.wh-kpi { display: flex; flex-direction: column; gap: 2px; }
.wh-kpi b { font: 700 22px/28px var(--font-sans); letter-spacing: -.02em; }
.wh-kpi span { font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.wh-clock { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/16px var(--font-mono); white-space: nowrap; }
.wh-clock.is-attention { color: var(--vd-attention-text); }
.wh-clock.is-negative { color: var(--vd-negative-text); }
.wh-wa { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 5px; border: 1px dashed var(--vd-border-strong); color: var(--vd-text-2); font: 600 10px/14px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

/* ---------- site twin (floor plan) ---------- */
.mk-map.wh-floor { background: #eef0f3; }
.wh-floor .f-ground { fill: #eef0f3; }
.wh-floor .f-yard { fill: var(--wh-yard); }
.wh-floor .f-slot { fill: none; stroke: #c3c9d1; stroke-width: 1.2; stroke-dasharray: 5 4; }
.wh-floor .f-slot__t { font: 600 10px var(--font-mono); fill: #8a929c; }
.wh-floor .f-road { fill: none; stroke: #cfd4da; stroke-width: 22; stroke-linejoin: round; }
.wh-floor .f-gate rect { fill: var(--mk-ink); }
.wh-floor .f-gate text { font: 700 11px var(--font-sans); fill: var(--vd-text-2); }
.wh-floor .f-bldg { fill: #fff; stroke: #9ba2ac; stroke-width: 2; }
.wh-floor .f-zone__r { fill: var(--wh-zone); stroke: var(--wh-zone-line); stroke-width: 1.2; }
.wh-floor .f-zone.is-fenced .f-zone__r { stroke: #69717d; stroke-dasharray: 7 4; stroke-width: 1.6; }
.wh-floor .f-zone__h { stroke: none; }
.wh-floor .f-hatch { stroke: #d5dae0; stroke-width: 2; }
.wh-floor .f-rack { fill: var(--wh-rack); }
.wh-floor .f-zone__t { font: 600 11.5px var(--font-sans); fill: var(--vd-text-supporting); }
.wh-floor .f-zone__k { font: 800 13px var(--font-sans); fill: var(--vd-text-1); }
.wh-floor .f-area rect { fill: #fafbfc; stroke: #e2e6eb; stroke-width: 1; }
.wh-floor .f-area text { font: 600 11px var(--font-sans); fill: var(--vd-text-2); }
.wh-floor .f-door rect { fill: #69717d; }
.wh-floor .f-door--in rect { fill: #4a525e; }
.wh-floor .f-door text { font: 700 11px var(--font-mono); fill: var(--vd-text-supporting); }
.wh-floor .f-ov__hit { fill: transparent; stroke: transparent; stroke-width: 2.5; cursor: pointer; }
.wh-floor .f-ov:hover .f-ov__hit { stroke: #9ba2ac; }
.wh-floor .f-ov.is-sel .f-ov__hit { stroke: var(--mk-ink); stroke-width: 3; }
.wh-floor .f-ov.is-alarm .f-ov__hit { stroke: var(--vd-negative-solid); stroke-width: 3; fill: rgba(180, 35, 49, .05); }
.wh-floor .f-ov.is-dim { opacity: .35; }
.wh-floor .f-ov__track { fill: #e2e6eb; }
.wh-floor .f-ov__fill { fill: #4a525e; }
.wh-floor .f-ov__fill.is-tight { fill: var(--vd-attention-solid); }
.wh-floor .f-ov__t { font: 600 11px var(--font-mono); fill: var(--vd-text-2); }
.wh-floor .f-temp { font: 700 11px var(--font-mono); fill: var(--vd-text-supporting); }
.wh-floor .f-temp.is-bad { fill: var(--vd-negative-text); }
.wh-floor .f-held { fill: var(--vd-attention-solid); stroke: #fff; stroke-width: 1.5; }
.wh-floor .f-pal { fill: var(--mk-ink); stroke: #fff; stroke-width: 2; }
.wh-floor .f-door-hl { fill: none; stroke: var(--mk-ink); stroke-width: 2.5; }
.wh-floor .t-fork { fill: #f2b04a; stroke: #5e4416; stroke-width: 1; }
.wh-floor .t-forks { fill: #3b424d; }
.wh-floor .t-rob, .mk-truck .t-rob { fill: #7fb3e6; stroke: #1f4a73; stroke-width: 1; }
.wh-floor .t-rob__eye, .mk-truck .t-rob__eye { fill: #1f4a73; }
.wh-floor .t-rob__top, .mk-truck .t-rob__top { fill: none; }
.mk-truck.is-load .t-rob__top { fill: #c9a26a; stroke: #5e4416; stroke-width: .6; }
.mk-truck.is-alarm .t-rob { fill: #f19a9a; stroke: #8a1f1f; }
.wh-floor .t-seat { fill: #3b424d; }
.mk-truck .t-fork { fill: #f2b04a; stroke: #5e4416; stroke-width: 1; }
.mk-truck .t-forks, .mk-truck .t-seat { fill: #3b424d; }
.wh-floor .mk-truck.is-dim { opacity: .45; }
.wh-floorhost { position: relative; min-height: 260px; border-radius: 14px; overflow: hidden; background: #eef0f3; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.wh-floorhost--lg { height: min(68vh, 640px); }
.wh-floorhost--md { height: 420px; }
.wh-floorhost--sm { height: 260px; }
.wh-maphost { position: relative; border-radius: 14px; overflow: hidden; background: var(--mk-land); }

/* re-renders caused by the simulation must not replay entrance animations (only navigation animates) */
.wh-still .fade, .wh-still .mk-body, .wh-still .vd-drawer, .wh-still .mk-dr, .wh-still .vd-veil { animation: none !important; }
/* bell tooltip in the top bar must not push the page wider on phones */
.mk-top .vd-has-tooltip > .vd-tooltip--bottom { left: auto; right: 0; transform: none; }

/* prototype bar: everything fits at 1440 and 1280 (labels and the tag go first, then button texts) */
@media (max-width: 1599px) { .proto__tag, .proto__lbl { display: none; } }
/* v0.4: page selects on the scanner and long page lists may still exceed the width — wrap instead of hiding Reset and notes */
@media (min-width: 700px) { .proto { flex-wrap: wrap; row-gap: 6px; } }
@media (max-width: 1365px) { .proto { gap: 8px; } .proto__seg a { padding: 0 7px; } .proto select { max-width: 180px; } .proto__push .proto__t { display: none; } .proto__push { gap: 6px; } }

/* in-product switchers: shown only on embedded pages (demo desk), where the dark prototype bar is absent */
.wh-sw { position: relative; cursor: pointer; }
.wh-sw__sel { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.wh-sw--user { display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px 2px 2px; border-radius: 12px; }
.wh-sw--user:hover { background: var(--vd-surface-soft); }
.wh-sw:focus-within { outline: 2px solid var(--vd-spectrum-optic-blue); outline-offset: 2px; }

/* the notes panel must not cover an open drawer and its primary button: it moves left of the drawer (the page behind is veiled) */
@media (min-width: 1100px) {
  #app:has(.vd-drawer) > .ru-note { right: calc(var(--vd-drawer-md) + 24px); }
  #app:has(.vd-drawer--sm) > .ru-note { right: calc(var(--vd-drawer-sm) + 24px); }
  #app:has(.vd-drawer--lg) > .ru-note { right: calc(var(--vd-drawer-lg) + 24px); }
}
@media (max-width: 1099px) { #app:has(.vd-drawer) > .ru-note { display: none; } }
/* pointer entering the panel straight onto a control underneath: the panel turns see-through and click-through (shell, mousemove) */
.ru-note { transition: opacity .12s ease-out; }
.ru-note.is-peek { opacity: .06; pointer-events: none; }
/* …and anything under it can be scrolled out from beneath it */
@media (min-width: 768px) { #app:has(> .ru-note) .mk-body { padding-bottom: min(46vh, 420px); } }

/* ---------- notification bell (count from the notification centre, x_platform.js) ---------- */
.wh-bellw { position: relative; display: inline-flex; }
.wh-belln { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--vd-negative, #c62828); color: #fff; font: 700 10px/16px var(--font-sans); text-align: center; pointer-events: none; }

/* prototype marker on every page (also in embed mode) */
.wh-fict { margin: 24px auto 12px; padding: 0 16px; max-width: 760px; text-align: center; font-size: 11px; line-height: 1.4; color: var(--vd-text-3, #8a93a3); }

/* accessibility: the DS tertiary text token (2.57:1) is used for real text in this module · raised to the AA level of the secondary text (4.55:1 on #f4f6f8) */
:root { --vd-text-3: #69717d; }

/* geo map · label density by zoom (towns hide on a country-wide view, cities on a very wide one) */
.mk-map.is-far .m-city--0 { display: none; }
.mk-map.is-far2 .m-city--1 text { display: none; }
.mk-map.is-far2 .m-ctry text { font-size: 15px; }
.mk-map:not(.is-far) .m-ctry--far, .mk-map.is-far .m-ctry--near { display: none; }

/* v0.4: section header actions (mode badge + Ask) wrap on phones instead of widening the page */
@media (max-width: 640px) { .mk-area { flex-wrap: wrap; row-gap: 8px; } .mk-area__act { flex-wrap: wrap; margin-left: 0; min-width: 0; max-width: 100%; } .mk-area__act > * { max-width: 100%; } .mk-area__act .vd-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* step 8.1 · shell drawers (Help, Organisation and sites, Document) and the note of a page switched off in the site profile */
.wh-shh{margin:16px 0 6px;font-size:13px;font-weight:700;color:var(--vd-text-secondary,#3b424d)}
.wh-shh:first-child{margin-top:0}
.wh-shrow{cursor:default;align-items:flex-start}
.wh-shrow .grow{min-width:0;overflow-wrap:anywhere}
.wh-shact{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.wh-offnote{display:flex;gap:8px;align-items:center;margin:8px 12px;padding:8px 12px;border-radius:10px;background:#fcefd9;color:#94570a;font-size:13px;overflow-wrap:anywhere}
.wh-offnote a{color:inherit;font-weight:700}
/* step 9.3 (W08) · right to left (Arabic) and CJK: the frame mirrors through dir="rtl" on <html>; only rules that anchor to a physical side are flipped */
[dir="rtl"] .mk-top .vd-has-tooltip > .vd-tooltip--bottom { right: auto; left: 0; }
[dir="rtl"] .vd-has-tooltip > .vd-tooltip--right { left: auto; right: calc(100% + 6px); }
[dir="rtl"] .vd-input, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { text-align: start; }
[dir="rtl"] .mono, [dir="rtl"] code, [dir="rtl"] .vd-num { direction: ltr; unicode-bidi: isolate; }
.is-cjk body, :lang(zh), :lang(ja) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:lang(hi) { line-height: 1.5; }
