﻿/* Each pane scrolls independently inside the signed-in workspace. */
.workspace-body.orders-view {
  max-width:none;
  padding:clamp(12px,1.7vw,25px) clamp(14px,2.4vw,38px) 14px;
}
.orders-workspace {
  --ov-gap:clamp(10px,1.15vw,18px);
}
.ov-top,.ov-toolbar,.ov-tabs,.ov-stats,.ov-pane-head,.ov-pager,.ov-hero,.ov-product header,.ov-movement,.ov-detail-id {
  display:flex; align-items:center; gap:10px;
}
.ov-top,.ov-toolbar { flex:none; }
.ov-top,.ov-pane-head,.ov-hero,.ov-product header,.ov-detail-id { justify-content:space-between; }
.ov-top { flex-wrap:wrap; padding-bottom:var(--ov-gap); }
.ov-top h2 { font-size:clamp(2rem,3.3vw,3.25rem); font-weight:650; letter-spacing:-.045em; line-height:1.04; }
.ov-tabs { gap:2px; padding:4px; border:1px solid var(--rule); border-radius:7px; background:var(--panel-surface); }
.ov-tabs button { background:transparent; color:var(--ink); font-weight:550; border-radius:7px; padding-inline:clamp(8px,1.1vw,19px); }
.ov-tabs button[aria-pressed=true] { background:var(--blue); color:white; }
.ov-toolbar { flex-wrap:wrap; gap:8px; padding:9px; margin-bottom:6px; border:1px solid var(--rule); border-radius:9px; background:var(--paper); overflow:visible; }
.ov-stats { gap:3px; flex-wrap:wrap; padding:2px; border-radius:7px; background:var(--steel-soft); }
.ov-review-choice { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.9rem; }
.ov-stage-filter { flex:none; min-height:32px; padding:3px 6px; gap:5px; border-color:var(--rule); background:transparent; color:var(--muted); font-size:13px; font-weight:400; text-transform:lowercase; white-space:nowrap; }
.ov-stage-filter span { font-size:12px; }
.ov-stage-filter:hover:not(:disabled),.ov-stage-filter:focus-visible { background:var(--control-hover); color:var(--ink); border-color:#9aaab5; }
.ov-stage-filter[aria-pressed=true] { background:var(--blue-wash); color:var(--blue); border-color:#ad8269; }
.ov-stage-filter[class*=tone-][aria-pressed=true],.ov-stage-filter[class*=tone-][aria-pressed=true]:hover:not(:disabled),.ov-stage-filter[class*=tone-][aria-pressed=true]:focus-visible { color:var(--status-ink); background:var(--status-fill); border-color:var(--status-accent); }
.ov-review-choice input { width:auto; min-height:0; margin:0; }
.ov-review-choice.is-disabled { opacity:.5; }
.ov-chip { max-width:100%; min-height:28px; gap:6px; padding:2px 8px; border:1px solid var(--rule); border-radius:6px; color:var(--ink); background:var(--blue-wash); font-size:.85rem; }
.ov-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ov-icon-filters,.ov-icon-filter-group,.ov-heading-filters { display:flex; align-items:center; gap:4px; }
.ov-icon-filters { flex:none; gap:7px; }
.ov-icon-filter-group { padding:2px; border:1px solid var(--rule); border-radius:7px; background:var(--steel-soft); }
.ov-icon-filter { position:relative; flex:none; width:34px; min-width:34px; min-height:34px; padding:5px; border-color:transparent; border-radius:5px; background:transparent; color:var(--muted); }
.ov-icon-filter .icon { width:20px; height:20px; }
.ov-icon-filter:hover:not(:disabled),.ov-icon-filter:focus-visible { background:var(--control-hover); color:var(--ink); border-color:#9aaab5; }
.ov-icon-filter[aria-pressed=true],.ov-icon-filter[aria-pressed=true]:hover,.ov-icon-filter[aria-pressed=true]:focus-visible { background:var(--blue-wash); color:var(--blue); border-color:#ad8269; box-shadow:inset 0 -2px var(--blue); }
.ov-icon-filter[data-tooltip]::after {
  content:attr(data-tooltip); position:absolute; z-index:8; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
  display:none; width:max-content; max-width:min(240px,70vw); padding:6px 8px; border:1px solid var(--rule); border-radius:5px;
  background:var(--ink); color:var(--paper); box-shadow:var(--panel-shadow); font:400 .8rem/1.35 system-ui,sans-serif;
  white-space:normal; pointer-events:none;
}
.ov-icon-filter[data-tooltip]:hover::after,.ov-icon-filter[data-tooltip]:focus-visible::after { display:block; }
.ov-heading-filters { min-width:0; overflow-x:auto; scrollbar-width:thin; }
.ov-heading-filters .ov-chip,.ov-heading-filters .ov-text-action { flex:none; min-height:24px; padding:1px 6px; font-size:.8rem; white-space:nowrap; }
.ov-toolbar-reset { flex:none; }
.ov-toolbar-reset .ov-text-action { white-space:nowrap; }
.ov-stat { gap:7px; background:transparent; color:var(--muted); font-weight:400; padding:5px 9px; border:0; border-radius:7px; white-space:nowrap; }
.ov-stat[aria-pressed=true] { color:var(--blue); background:var(--blue-wash); box-shadow:inset 0 -2px var(--blue); }
.ov-stat b,.ov-pane-head > span { padding:1px 6px; font-size:.85rem; color:var(--ink); border-radius:4px; background:var(--steel-soft); font-variant-numeric:tabular-nums; text-align:center; }
.ov-stat b { display:inline-block; min-width:calc(2ch + 12px); }
.ov-toolbar .order-search { flex:0 1 248px; min-width:150px; margin-left:auto; background:var(--paper); border-color:var(--rule); border-radius:7px; }
.ov-toolbar .order-search input { width:100%; padding:0; min-height:36px; border:0; background:transparent; font-size:1rem; }
.ov-toolbar .order-toolbar-actions { margin:0; gap:6px; }
.ov-toolbar .order-toolbar-actions:empty,.ov-view-select,.ov-back,.ov-lane-select { display:none; }
.ov-view-select label,.ov-lane-select { gap:2px; color:var(--muted); font-size:.86rem; }
.ov-view-select select,.ov-lane-select select { min-width:0; min-height:36px; width:auto; margin:0; padding:5px 10px; }
.ov-filter-toggle[aria-pressed=true] { background:var(--blue-wash); color:var(--blue); border-color:#ad8269; }
.ov-test-filter { min-width:210px; }
.ov-test-filter label { display:grid; gap:5px; color:var(--muted); font-size:.86rem; }
.ov-test-filter select { width:100%; margin:0; }
.ov-note { font-size:.9rem; color:var(--muted); }
.ov-content { position:relative; flex:1; display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden; }
.ov-split,.ov-board { flex:1; min-height:0; display:grid; gap:var(--ov-gap); }
.ov-split { grid-template-columns:minmax(0,1fr) minmax(0,1.17fr); }
.ov-pane,.ov-product,[data-pane=tasks] > section { background:var(--panel-surface),var(--paper); border:1px solid var(--rule); border-radius:var(--panel-radius); box-shadow:var(--panel-shadow); }
.ov-pane { overflow:auto; min-height:0; min-width:0; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--rule) transparent; }
[data-pane=orders] { overflow-y:scroll; scrollbar-gutter:stable; }
.ov-pane-head { position:sticky; top:0; z-index:1; min-height:52px; background:var(--paper); padding:12px 16px; border-bottom:1px solid var(--rule); }
.ov-pane-head h3 { flex:none; font-size:1.08rem; }
.ov-pane-head > span:last-child { flex:none; margin-left:auto; }
[data-pane=orders] > .ov-pane-head > span:last-child { min-width:calc(3ch + 12px); }
button.ov-row { justify-content:flex-start; width:100%; gap:12px; padding:12px 17px; margin:0; border:0; border-radius:0; border-bottom:1px solid var(--rule); background:transparent; color:var(--ink); text-align:left; font-size:1rem; }
.ov-row:last-child { border-bottom:0; }
button.ov-row:hover:not(:disabled),.ov-tabs button:not([aria-pressed=true]):hover,.ov-stat:hover { background:var(--steel-soft); color:var(--ink); }
button.ov-row[aria-pressed=true],button.ov-row[aria-pressed=true]:hover,.ov-product > button[aria-expanded=true] { background:var(--blue-wash); box-shadow:inset 3px 0 var(--blue); }
.ov-art { display:grid; place-items:center; flex:none; width:44px; height:42px; border:1px solid var(--rule); border-radius:7px; background:var(--steel-soft); color:var(--steel); }
.ov-art svg { width:100%; height:100%; }
.ov-row-main,.ov-row-end { display:grid; gap:2px; min-width:0; }
.ov-row-main { overflow-wrap:anywhere; }
.ov-row-main strong { font-weight:650; }
.ov-row-main > small:first-child,.ov-order-number,.ov-detail-id > span:first-child,.ov-hero div > span { font:.86rem/1.4 Consolas,monospace; }
.ov-row-end { margin-left:auto; justify-items:end; text-align:right; }
.ov-row small { font-size:.86rem; color:var(--muted); font-weight:400; }
.ov-order-route { display:flex; align-items:center; flex-wrap:wrap; gap:2px 5px; min-width:0; color:var(--muted); font-size:.86rem; font-weight:400; }
.ov-order-number { color:var(--steel); }
.ov-route-arrow { color:var(--blue); font-size:1rem; line-height:1; }
.ov-route-node { position:relative; white-space:nowrap; }
.ov-route-deliveries { --delivery-icon-size:20px; --delivery-glyph-size:17px; display:inline-flex; align-items:center; gap:2px; }
.ov-route-node[data-tooltip] { text-decoration:underline dotted; text-underline-offset:3px; cursor:help; }
.ov-route-node[data-tooltip]::after {
  content:attr(data-tooltip); position:absolute; z-index:4; top:calc(100% + 7px); left:0;
  display:none; width:max-content; max-width:min(280px,70vw); padding:7px 9px; border:1px solid var(--rule); border-radius:6px;
  background:var(--ink); color:var(--paper); box-shadow:var(--panel-shadow); font:400 .82rem/1.45 system-ui,sans-serif;
  white-space:pre-line; overflow-wrap:anywhere; text-align:left; pointer-events:none;
}
.ov-route-node[data-tooltip]:hover::after { display:block; }
.orders-workspace .order-status { width:fit-content; min-height:0; border-radius:var(--radius); gap:6px; padding:2px 7px; font-size:.86rem; font-weight:600; }
.orders-workspace .order-status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; flex:none; }
.ov-detail { display:flex; flex-direction:column; overflow:hidden; }
.ov-detail > .order-card { flex:1; min-height:0; display:flex; flex-direction:column; border:0; box-shadow:none; border-radius:0; background:none; }
.ov-hero,.ov-product header { border-bottom:1px solid var(--rule); background:var(--metal) top / 100% 3px no-repeat,var(--panel-surface),var(--steel-soft); }
.ov-hero { padding:20px 24px; }
.ov-hero small { font-size:.81rem; font-weight:650; color:var(--muted); letter-spacing:.07em; text-transform:uppercase; }
.ov-hero h2 { margin:4px 0; font-size:clamp(1.3rem,2vw,2rem); line-height:1.15; overflow-wrap:anywhere; }
.ov-hero > svg { flex:none; width:clamp(75px,9vw,130px); height:auto; aspect-ratio:128/104; color:var(--steel); }
.ov-order-hero {
  background:var(--metal) top / 100% 3px no-repeat,linear-gradient(110deg,#e8ded6,#e2ebef 65%,#d6e2e9);
}
.ov-order-hero > div { min-width:0; }
.ov-order-hero .ov-product-description { display:block; color:var(--ink); overflow-wrap:anywhere; }
.ov-detail-body { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; padding:18px 23px; }
.ov-detail { container-type:inline-size; }
.ov-detail-id {
  flex-wrap:wrap; gap:4px 12px; padding:12px 23px;
  border-bottom:1px solid var(--rule);
  background:var(--metal) top / 100% 3px no-repeat,var(--panel-surface);
}
.ov-order-hero + .ov-detail-id { background:var(--panel-surface); }
.ov-detail-id > span { display:inline-flex; align-items:center; }
.ov-detail-id > span:first-child { gap:6px; font-weight:650; }
button.ov-history-button,button.ov-history-button:hover:not(:disabled) {
  min-width:34px; min-height:34px; padding:6px; border-color:transparent;
  background:transparent; color:var(--steel); box-shadow:none;
}
button.ov-history-button:active:not(:disabled):not(:focus-visible) { transform:none; }
button.ov-history-button .icon,.ov-delivery-icon .icon { transition:transform 120ms ease; transform-origin:center; }
.ov-header-actions { display:flex; flex-wrap:nowrap; justify-content:flex-end; gap:6px; }
.ov-header-actions button { min-height:36px; padding:6px 10px; white-space:nowrap; }
.ov-action-row {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;
  align-items:start; gap:8px 14px; padding-block:10px; overflow-wrap:anywhere;
}
.ov-action-row + .ov-action-row { border-top:1px solid var(--rule); }
.ov-action-row[data-change] { border-inline-start:3px solid var(--status-accent); padding-inline:12px; background:linear-gradient(90deg,var(--status-fill),transparent); }
.ov-action-product { display:flex; align-items:start; gap:8px; }
.ov-action-product > div,.ov-action-message { min-width:0; }
.ov-action-product strong,.ov-action-product span:not(.ov-art),.ov-action-message > strong,.ov-action-message > span { display:block; }
.ov-action-product strong { font-size:1.12rem; }
.ov-action-product span:not(.ov-art) { color:var(--muted); font-size:.88rem; }
.ov-action-product + .ov-action-product { margin-top:8px; }
.ov-reason { margin:4px 0 0; white-space:pre-wrap; }
.ov-action-buttons { display:flex; grid-column:3; flex-wrap:wrap; justify-content:flex-end; gap:6px; max-width:240px; }
.ov-action-buttons button { min-height:36px; padding:6px 10px; white-space:normal; }
@container (max-width:650px) {
  .ov-action-row { grid-template-columns:minmax(0,1fr) auto; }
  .ov-action-message { grid-row:2; grid-column:1 / -1; }
  .ov-action-buttons { grid-column:2; grid-row:1; }
}
@container (max-width:440px) {
  .ov-detail-id { padding:8px 14px; }
  .ov-order-hero { align-items:flex-start; }
  .ov-order-hero > svg { width:64px; }
  .ov-header-actions { flex:1 1 100%; flex-wrap:wrap; justify-content:flex-start; }
  .ov-action-row { grid-template-columns:minmax(0,1fr); }
  .ov-action-message { display:contents; }
  .ov-action-row > .ov-action-products { order:0; }
  .ov-action-buttons { grid-column:1; grid-row:auto; order:1; justify-content:start; max-width:100%; }
  .ov-action-message > .ov-reason { order:2; }
}
@media (pointer:coarse) {
  button.ov-history-button,.ov-header-actions button,.ov-action-buttons button { min-height:44px; }
  button.ov-history-button { min-width:44px; }
}
.ov-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.ov-facts dt,.ov-product dt { color:var(--muted); font-size:.88rem; }
.ov-facts dd,.ov-product dd { font-weight:600; overflow-wrap:anywhere; }
@container (max-width:560px) {
  .ov-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width:320px) {
  .ov-facts { grid-template-columns:minmax(0,1fr); }
}
.ov-progress { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; border-top:1px solid var(--rule); padding-top:14px; margin-top:16px; }
.ov-progress h3 { flex:none; display:flex; gap:7px; align-items:center; font-size:1rem; }
.ov-movement-list { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--rule) transparent; padding-right:4px; }
.ov-movement { gap:12px; padding-top:12px; }
.ov-movement::before { content:""; width:5px; min-height:32px; flex:none; background:var(--status-accent); border-radius:2px; }
.ov-movement strong,.ov-movement small { display:block; }
.ov-movement b { margin-left:auto; white-space:nowrap; }
.ov-movement-reference { display:inline-flex; align-items:center; gap:4px; }
.ov-delivery-icon {
  position:relative; display:inline-grid; place-items:center; flex:none; width:var(--delivery-icon-size,24px); height:var(--delivery-icon-size,24px);
  border:0; background:transparent; color:var(--steel);
}
.ov-delivery-icon .icon { width:var(--delivery-glyph-size,18px); height:var(--delivery-glyph-size,18px); }
.ov-delivery-icon[data-tooltip]::after {
  content:attr(data-tooltip); position:absolute; z-index:8; top:calc(100% + 6px); left:50%; transform:translateX(-50%);
  display:none; width:max-content; max-width:min(220px,70vw); padding:6px 8px; border:1px solid var(--rule); border-radius:5px;
  background:var(--ink); color:var(--paper); box-shadow:var(--panel-shadow); font:400 .8rem/1.35 system-ui,sans-serif;
  white-space:normal; pointer-events:none;
}
@media (hover:hover) and (pointer:fine) {
  button.ov-history-button:hover:not(:disabled) .icon,.ov-delivery-icon:hover .icon { transform:scale(.86); }
  .ov-delivery-icon[data-tooltip]:hover::after { display:block; }
}
.ov-movement-product + .ov-movement-product { margin-top:14px; padding-top:12px; border-top:1px dashed var(--rule); }
.ov-movement-product > h4 { margin:10px 0 0; font-size:.92rem; }
.ov-movement .ov-text-action { display:block; min-height:0; padding:2px 0; border:0; border-radius:0; font-size:.86rem; text-align:left; }
.ov-text-action { padding:3px 1px; background:transparent; color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.ov-shipment-line { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:11px 4px; border:0; border-bottom:1px solid var(--rule); border-radius:0; background:transparent; color:var(--ink); text-align:left; }
.ov-shipment-line:hover:not(:disabled) { background:var(--steel-soft); }
.ov-shipment-line span,.ov-shipment-line small { display:block; min-width:0; }
.ov-shipment-line small { margin-top:2px; color:var(--muted); }
.ov-shipment-line b { flex:none; }
.order-history { overflow-wrap:anywhere; }
.ov-selection { padding-left:20px; }
.ov-selection li { padding:5px; }
.ov-pager { justify-content:center; padding:7px; font-size:13px; }
.ov-content > .ov-detail.opened { position:absolute; inset:0 0 0 auto; width:min(750px,100%); z-index:2; }
.ov-content > .ov-detail .ov-back { display:inline-flex; }
.ov-detail .ov-back,.ov-manifest > button:not(.ov-row) { margin:6px; }
.ov-pick { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--rule); }
.ov-pick input { width:auto; }
#picker-results { max-height:48dvh; overflow:auto; margin-block:8px; }

.ov-tasks { grid-template-columns:minmax(185px,.31fr) minmax(0,1fr); }
.ov-task-nav { align-self:start; padding:12px 8px; max-height:100%; }
.ov-task-link { display:flex; justify-content:space-between; width:100%; text-align:left; border:0!important; }
[data-pane=tasks],[data-pane=goods] { background:none; box-shadow:none; border:0; }
[data-pane=tasks] > section { overflow:hidden; margin-bottom:var(--ov-gap); }
.orders-workspace:is([data-layout=tasks],[data-layout=board],[data-layout=goods],[data-layout=cargo]) :is(.ov-row-main strong,.ov-board-main strong,.ov-product h3) {
  font-size:1rem; font-weight:650; line-height:inherit;
}
.orders-workspace:is([data-layout=tasks],[data-layout=board],[data-layout=goods],[data-layout=cargo]) :is(.ov-row small,.ov-board-top small,.ov-board-description,.ov-product header small) {
  font-size:.86rem; line-height:inherit; font-weight:400;
}
.ov-board { grid-auto-columns:minmax(160px,1fr); grid-auto-flow:column; overflow-x:auto; }
.ov-lane { padding:0 9px 5px; }
.ov-lane .ov-pane-head {
  margin-inline:-9px; padding:13px 10px;
  background:linear-gradient(105deg,var(--status-fill) 0%,var(--paper) 78%);
  box-shadow:inset 0 3px var(--status-accent);
}
.ov-lane .ov-pane-head h3 { border-left:3px solid var(--status-accent); padding-left:7px; }
.ov-board-card {
  display:flex; flex-direction:column; margin:8px 0; min-width:0; overflow:hidden;
  border:1px solid var(--rule); border-left:3px solid var(--status-accent); border-radius:var(--panel-radius);
  background:linear-gradient(112deg,var(--status-fill) 0%,var(--paper) 58%); box-shadow:var(--panel-shadow);
}
.ov-board-open {
  display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; min-width:0; min-height:0;
  padding:8px 10px 6px; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:left;
}
.ov-board-open:hover:not(:disabled) { background:rgb(255 255 255 / 28%); color:var(--ink); }
.ov-board-open[aria-pressed=true] { background:var(--blue-wash); box-shadow:inset 3px 0 var(--blue); }
.ov-board-top,.ov-board-foot,.ov-board-main,.ov-board-metrics { display:flex; align-items:center; width:100%; gap:7px; }
.ov-board-top { justify-content:space-between; }
.ov-board-top small { font-family:Consolas,monospace; color:var(--steel); }
.ov-board-main { justify-content:space-between; min-width:0; }
.ov-board-main > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ov-board-metrics { flex:none; justify-content:flex-end; width:auto; color:var(--steel); font-size:.86rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ov-board-metrics b + b::before { content:"·"; margin-right:7px; color:var(--muted); font-weight:400; }
.ov-board-description { color:var(--muted); }
.ov-board-foot { justify-content:space-between; min-height:37px; padding:5px 7px 5px 10px; border-top:1px solid var(--rule); font-size:.83rem; color:var(--muted); }
.ov-board-foot > span:first-child { display:inline-flex; align-items:center; min-width:0; gap:6px; overflow-wrap:anywhere; }
.ov-board-action { flex:none; min-height:28px; padding:3px 7px; font-size:.78rem; line-height:1.2; white-space:normal; }
.ov-lane .ov-art { width:30px; height:30px; }
.ov-goods { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr)); gap:var(--ov-gap); align-items:start; }
.ov-product { position:relative; padding:0 18px 12px; min-width:0; overflow:hidden; }
.ov-product header { padding:17px 18px 14px; margin:0 -18px 12px; overflow-wrap:anywhere; }
.ov-product h3 { font-size:1rem; font-weight:650; }
.ov-product header small { color:var(--muted); }
.ov-product header .ov-art { width:72px; height:60px; }
.ov-product-summary,.ov-product-statuses,.ov-product-status,.ov-product-status-popover > span,.ov-product-dialog-summary,.ov-product-dialog-nav { display:flex; align-items:center; }
.ov-product-summary { justify-content:space-between; gap:12px; }
.ov-product-summary > strong { flex:none; color:var(--ink); }
button.ov-product-orders-button,button.ov-product-orders-button:hover:not(:disabled) {
  min-height:28px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
  color:var(--blue); font-size:.9rem; font-weight:650; letter-spacing:.025em; text-transform:uppercase;
}
button.ov-product-orders-button:active:not(:disabled):not(:focus-visible) { transform:none; }
.ov-product-statuses {
  align-content:flex-start; flex-wrap:wrap; gap:4px 12px; height:calc(2 * 1.35em + 4px); margin:10px 0 0; overflow:hidden;
  color:var(--muted); font-size:.84rem; line-height:1.35;
}
.ov-product-status,.ov-product-status-popover > span { gap:4px; white-space:nowrap; }
.ov-product-status[hidden],.ov-product-more[hidden],.ov-product-status-popover > span[hidden] { display:none; }
.ov-product-status i,.ov-product-status-popover i { display:inline-block; flex:none; width:7px; height:7px; border-radius:50%; }
.ov-product-status b,.ov-product-status-popover b { color:var(--ink); font-weight:650; }
button.ov-product-more,button.ov-product-more:hover:not(:disabled) {
  min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
  color:var(--blue); font-size:.8rem; font-weight:650; line-height:1.35; text-transform:uppercase;
}
button.ov-product-more:active:not(:disabled):not(:focus-visible) { transform:none; }
.ov-product-status-popover {
  position:fixed; inset:auto; z-index:12; width:max-content; max-width:min(280px,calc(100vw - 16px)); max-height:min(240px,calc(100dvh - 16px));
  margin:0; padding:9px 11px; overflow:auto; border:1px solid var(--rule); border-radius:6px;
  background:var(--paper); color:var(--muted); box-shadow:var(--panel-shadow); font-size:.84rem;
}
.ov-product-status-popover > span { margin:0 0 6px; }.ov-product-status-popover > span:last-child { margin-bottom:0; }
.ov-product-status-popover::backdrop { background:transparent; }
.ov-distribution { display:block; width:100%; height:6px; border-radius:5px; overflow:hidden; margin:9px 0; }
.ov-distribution rect { fill:var(--status-accent); }
.ov-product i { background:var(--status-accent); }
.action-dialog.ov-product-dialog {
  width:min(860px,calc(100% - 24px)); height:auto; max-height:calc(100dvh - 24px);
  padding:0; overflow:hidden;
}
.action-dialog.ov-product-dialog:has(.ov-detail) { height:min(760px,calc(100dvh - 24px)); }
.ov-product-dialog .dialog-close { z-index:3; }
.ov-product-dialog-shell,.ov-product-dialog-content { min-height:0; }
.ov-product-dialog-shell { max-height:calc(100dvh - 24px); }
.ov-product-dialog-content { display:flex; flex-direction:column; }
.ov-product-dialog:has(.ov-detail) .ov-product-dialog-shell,.ov-product-dialog-content:has(.ov-detail) { height:100%; }
.ov-product-dialog-header { display:flex; align-items:center; justify-content:space-between; flex:none; gap:12px; margin:0; padding:20px 56px 16px 20px; }
.ov-product-dialog-header h2 { margin:3px 0 0; padding:0; font-size:clamp(1.25rem,2vw,1.75rem); }
.ov-product-dialog-header small { color:var(--muted); }
.ov-product-dialog-header > strong { flex:none; }
.ov-product-dialog-summary { flex:none; justify-content:space-between; gap:12px; padding:10px 20px; border-bottom:1px solid var(--rule); color:var(--muted); }
.ov-product-dialog-summary > span { color:var(--blue); font-weight:650; text-transform:uppercase; }
.ov-product-orders-list { flex:none; min-height:0; max-height:65dvh; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.ov-product-dialog-nav { flex:none; gap:12px; min-height:54px; padding:8px 56px 8px 12px; border-bottom:1px solid var(--rule); }
.ov-product-dialog-nav > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.ov-product-dialog .ov-detail { flex:1; min-height:0; border:0; border-radius:0; box-shadow:none; }
[data-layout=cargo] .ov-split { grid-template-columns:minmax(205px,.61fr) minmax(0,1.25fr); }
.ov-manifest .ov-hero > svg { width:57px; }
.ov-manifest .ov-facts { display:flex; flex-wrap:wrap; margin:0; padding:14px 20px; gap:18px; background:var(--paper); border-bottom:1px solid var(--rule); }
@media (max-width:900px), (max-height:500px) {
  .workspace-body.orders-view { padding:10px 12px; }
  .ov-tabs { display:none; }
  .ov-view-select { display:block; }
  .ov-view-select label { font-size:0; }
  .ov-view-select select { font-size:14px; max-width:160px; }
  .ov-top { gap:6px; padding-bottom:6px; }
  .ov-top h2 { font-size:2rem; }
  .ov-toolbar { padding:5px; gap:5px; }
  .ov-toolbar .order-search { margin:0; flex:1; min-width:100px; }
  .ov-split,[data-layout=cargo] .ov-split { grid-template-columns:minmax(0,1fr); }
  .ov-detail,.ov-manifest { display:none; }
  .ov-detail.opened { display:flex; position:absolute; z-index:1; inset:0; }
  .ov-product-dialog .ov-detail.opened { position:static; z-index:auto; inset:auto; }
  .ov-manifest.opened { display:block; position:absolute; z-index:1; inset:0; }
  .ov-back { display:inline-flex; }
  .ov-tasks { display:flex; flex-direction:column; gap:4px; }
  .ov-task-nav { align-self:stretch; flex:none; display:flex; overflow:auto; padding:3px; }
  .ov-task-link { flex:none; width:auto; margin:0 4px 0 0; gap:6px; }
  .ov-board { display:flex; overflow:hidden; }
  .ov-lane-select { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
  .ov-lane { display:none; flex:1; }.ov-lane.current { display:block; }
}
@media (max-width:600px) {
  .ov-stats { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ov-stat { gap:3px; justify-content:center; padding:4px 2px; white-space:normal; font-size:.85rem; }
  .ov-stat b { min-width:calc(2ch + 6px); padding:0 3px; }
  .ov-stage { flex:auto; }
  .ov-stage > .filter-menu-button { max-width:100%; }
  .ov-icon-filters { order:3; }
  .ov-toolbar-reset { order:4; }
  .ov-toolbar .order-search { flex:1 1 50%; }
  button.ov-row { padding:10px; gap:6px; }
  .ov-art { width:31px; height:32px; }
  .ov-detail-body,.ov-hero { padding:14px; }
  .ov-toolbar .order-search input { font-size:16px; }
  .ov-toolbar .order-toolbar-actions { flex-wrap:wrap; }
  .ov-board-main { align-items:flex-start; flex-wrap:wrap; }
  .ov-board-metrics { justify-content:flex-start; }
  .action-dialog.ov-product-dialog { width:calc(100% - 12px); max-height:calc(100dvh - 12px); }
  .action-dialog.ov-product-dialog:has(.ov-detail) { height:calc(100dvh - 12px); }
  .ov-product-dialog-shell { max-height:calc(100dvh - 12px); }
  .ov-product-dialog-header { padding:14px 52px 12px 14px; }
  .ov-product-dialog-summary { padding:9px 14px; }
}
@media (pointer:coarse) {
  .ov-board-action { min-height:44px; }
}
@media (max-height:500px) {
  .workspace-body.orders-view { padding:4px 10px; }
  .ov-top h2 { font-size:1.6rem; }
}
