.vendor-ops-page {
  --vo-bg: var(--glorion-black);
  --vo-bg-soft: var(--glorion-surface);
  --vo-surface: var(--glorion-surface);
  --vo-surface-2: var(--glorion-surface-2);
  --vo-surface-3: var(--glorion-border);
  --vo-border: var(--glorion-border);
  --vo-border-strong: var(--glorion-border-light);
  --vo-border-soft: var(--glorion-border);
  --vo-text: var(--glorion-text-primary);
  --vo-muted: var(--glorion-text-secondary);
  --vo-hint: var(--glorion-text-hint);
  --vo-blue: var(--glorion-blue-light);
  --vo-blue-strong: var(--glorion-blue);
  --vo-blue-soft: var(--glorion-blue-dim);
  --vo-gold: var(--glorion-gold-light);
  --vo-gold-soft: var(--glorion-gold-dim);
  --vo-teal: var(--glorion-teal-light);
  --vo-teal-soft: var(--glorion-teal-dim);
  --vo-coral: var(--glorion-red-light);
  --vo-coral-soft: var(--glorion-red-dim);
  min-height: 100vh;
  padding: 28px 24px 80px;
  background: var(--vo-bg);
  color: var(--vo-text);
}

.vendor-ops-page [hidden] { display: none !important; }

[data-theme="light"] .vendor-ops-page { --vo-gold: var(--glorion-gold-deep); }

.vo-shell { max-width: 1480px; margin: 0 auto; }
.vo-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.vo-header-main { max-width: 720px; }
.vo-header h1 { margin: 5px 0 6px; font: 650 clamp(30px, 3vw, 40px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.vo-header p { margin: 0; color: var(--vo-muted); font-size: 14px; line-height: 1.55; }
.vo-eyebrow { color: var(--vo-hint) !important; font: 650 10px/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.vo-header-tools { display: flex; align-items: center; gap: 10px; }
.vo-handler { min-width: 250px; padding: 12px; border: 1px solid var(--vo-border); border-radius: 10px; background: var(--vo-surface); }
.vo-handler label, .vo-form > label, .vo-row label { display: grid; gap: 6px; color: var(--vo-muted); font-size: 12px; font-weight: 650; }
.vo-handler select, .vo-form input, .vo-form select, .vo-row input, .vo-row select, .vo-dialog input, .vo-dialog select, .vo-dialog textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; color: var(--vo-text);
  background: var(--vo-surface-2); border: 1px solid var(--vo-border); border-radius: 7px;
}
.vo-dialog textarea { min-height: 92px; resize: vertical; font: inherit; line-height: 1.5; }
.vendor-ops-page input::placeholder { color: var(--vo-hint) !important; }
.vo-form input[readonly] { color: var(--vo-muted); background: var(--vo-surface-2); cursor: default; }
.vo-handler select:focus, .vo-form input:focus, .vo-form select:focus, .vo-dialog input:focus, .vo-dialog select:focus, .vo-dialog textarea:focus { outline: 2px solid rgba(96, 147, 184, .72); outline-offset: 1px; border-color: var(--vo-blue); }
.vo-tabs { display: flex; gap: 22px; overflow-x: auto; width: 100%; max-width: 100%; margin-bottom: 18px; padding: 0; border-bottom: 1px solid var(--vo-border); background: transparent; }
.vo-tabs button { min-height: 42px; padding: 0 1px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--vo-muted); font-size: 13px; font-weight: 620; cursor: pointer; }
.vo-tabs button:hover { color: var(--vo-text); background: transparent; }
.vo-tabs button.active { border-bottom-color: var(--vo-blue); background: transparent; color: var(--vo-text); }
.vo-panel, .vo-stack, .vo-grid { display: grid; gap: 16px; }
.vo-grid-two { grid-template-columns: minmax(320px,.85fr) minmax(420px,1.35fr); align-items: start; }
.vo-card { min-width: 0; padding: 18px; border: 1px solid var(--vo-border); border-radius: 10px; background: var(--vo-surface); }
.vo-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vo-card-title > div { display: flex; align-items: center; gap: 10px; }
.vo-card-title > div > span { display: none; }
.vo-card h2 { margin: 0; font: 620 17px/1.2 "Space Grotesk", sans-serif; }
.vo-form { display: grid; gap: 13px; }
.vo-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.vo-workflow-box { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid var(--vo-border-soft); border-radius: 8px; background: var(--vo-surface-2); }
.vo-workflow-box .vo-help { grid-column: 1 / -1; margin: 0; }
.vo-workflow-box label { display: grid; gap: 6px; color: var(--vo-muted); font-size: 12px; font-weight: 650; }
.vo-batch-patch-flow { align-items: end; }
.vo-batch-patch-flow > div { display: grid; gap: 5px; align-self: center; }
.vo-batch-patch-flow > div > strong { font-size: 13px; }
.vo-batch-patch-flow .vo-help { color: var(--vo-muted); }
.vo-primary, .vo-quiet, .vo-action { border-radius: 7px; font-weight: 680; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease; }
.vo-primary { min-height: 43px; padding: 0 16px; border: 1px solid var(--vo-blue); color: #fff; background: var(--vo-blue-strong); }
.vo-primary:hover { border-color: var(--vo-blue); background: var(--glorion-blue); transform: translateY(-1px); }
.vo-primary:active, .vo-quiet:active, .vo-action:active { transform: translateY(1px); }
.vo-primary:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.vo-primary.danger { border-color: var(--vo-coral); color: #fff; background: var(--glorion-red); }
.vo-primary.danger:hover { border-color: var(--vo-coral); background: var(--glorion-red); }
.vo-quiet, .vo-action { min-height: 34px; padding: 0 11px; border: 1px solid var(--vo-border); color: var(--vo-text); background: var(--vo-surface-2); font-size: 12px; }
.vo-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vo-quiet:hover, .vo-action:hover { border-color: var(--vo-border-strong); background: var(--vo-surface-3); }
.vo-action.primary { border-color: rgba(96,147,184,.6); background: var(--vo-blue-soft); }
.vo-action.danger { border-color: var(--vo-coral); color: var(--vo-coral); background: var(--vo-coral-soft); }
.vo-primary:focus-visible, .vo-quiet:focus-visible, .vo-action:focus-visible, .vo-tabs button:focus-visible { outline: 2px solid rgba(96,147,184,.8); outline-offset: 2px; }
.vo-list { display: grid; gap: 10px; }
.vo-order-group {
  overflow: hidden; border: 1px solid var(--vo-border); border-radius: 10px; background: var(--vo-surface);
  content-visibility: auto; contain-intrinsic-size: 520px;
}
.vo-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 16px; }
.vo-order-identity { min-width: 0; }
.vo-order-head h3 { margin: 4px 0; font-size: 16px; line-height: 1.3; }
.vo-order-head-controls { display: flex; align-items: center; gap: 14px; }
.vo-order-bulk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vo-order-summary { display: grid; grid-template-columns: repeat(3,auto); align-items: center; gap: 7px 16px; text-align: right; }
.vo-order-summary span { color: var(--vo-muted); font-size: 11px; }
.vo-order-summary strong { color: var(--vo-text); font: 700 14px/1.2 "IBM Plex Mono", monospace; }
.vo-order-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; margin-top: 8px; }
.vo-order-doc .vo-badge { min-width: 0; overflow-wrap: anywhere; }
.vo-order-doc .vo-actions { justify-content: flex-start; }
.vo-order-doc-no { color: var(--vo-text); border-color: var(--vo-border-strong); }
.vo-order-doc-empty { color: var(--vo-hint); }
.vo-order-doc-detail { padding-inline: 16px; padding-bottom: 13px; }
.vo-order-toggle { flex: 0 0 auto; gap: 7px; white-space: nowrap; }
.vo-order-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transform: rotate(180deg); transition: transform .2s cubic-bezier(.16,1,.3,1); }
.vo-order-toggle[aria-expanded="false"] svg { transform: rotate(0); }
.vo-order-collapse { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .2s cubic-bezier(.16,1,.3,1), opacity .16s ease-out; }
.vo-order-collapse-inner { min-height: 0; overflow: hidden; }
.vo-order-group.is-collapsed .vo-order-collapse { grid-template-rows: 0fr; opacity: 0; }
.vo-material-ledger { border-block: 1px solid var(--vo-border); background: var(--vo-surface-2); }
.vo-material-ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; }
.vo-material-ledger-head > div { display: grid; gap: 3px; }
.vo-material-ledger-head strong { font-size: 13px; }
.vo-material-ledger-head span { color: var(--vo-muted); font-size: 11px; }
.vo-material-ledger-list { display: grid; border-top: 1px solid var(--vo-border-soft); }
.vo-material-ledger-list .vo-empty.compact { margin: 0; padding: 12px 16px; }
.vo-material-ledger-row {
  display: grid; grid-template-columns: minmax(210px,1fr) repeat(3,minmax(92px,.28fr)) auto;
  align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--vo-border-soft);
}
.vo-material-ledger-row:last-child { border-bottom: 0; }
.vo-material-ledger-row > div:first-child { display: grid; gap: 4px; min-width: 0; }
.vo-material-ledger-row > div:first-child strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vo-material-ledger-row > div:first-child span, .vo-material-metric span { color: var(--vo-muted); font-size: 10px; }
.vo-material-metric { display: grid; gap: 4px; }
.vo-material-metric strong { font: 650 12px/1.2 "IBM Plex Mono", monospace; }
.vo-material-metric.is-vendor strong { color: var(--vo-gold); }
.vo-work-rows { display: grid; }
.vo-work-row { display: grid; grid-template-columns: minmax(210px,.75fr) auto minmax(260px,1.25fr); gap: 9px 14px; padding: 13px 16px; border-top: 1px solid var(--vo-border-soft); }
.vo-work-row:first-child { border-top: 0; }
.vo-work-row:hover { background: var(--vo-surface-2); }
.vo-work-row-main { display: grid; align-content: start; gap: 4px; min-width: 0; }
.vo-work-row-main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vo-work-row-main span { color: var(--vo-muted); font: 500 10px/1.3 "IBM Plex Mono", monospace; }
.vo-work-row-state { justify-self: end; }
.vo-work-row .vo-badges { align-self: start; margin: 0; }
.vo-work-row-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vo-work { padding: 14px; border: 1px solid var(--vo-border-soft); border-radius: 8px; background: var(--vo-surface-2); }
.vo-work:hover { border-color: var(--vo-border-strong); }
.vo-work-head, .vo-work-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vo-work h3 { margin: 0 0 4px; font-size: 14px; }
.vo-meta { color: var(--vo-muted); font-size: 12px; }
.vo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.vo-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--vo-border-soft); border-radius: 999px; background: var(--vo-surface-2); color: var(--vo-muted); font: 500 11px/1 "IBM Plex Mono", monospace; }
.vo-badge.blue { color: var(--vo-blue); border-color: var(--vo-blue); background: var(--vo-blue-soft); }
.vo-badge.gold { color: var(--vo-gold); border-color: var(--vo-gold); background: var(--vo-gold-soft); }
.vo-badge.vo-badge-gold { color: var(--vo-gold); border-color: var(--vo-gold); background: var(--vo-gold-soft); }
.vo-badge.success { color: var(--vo-teal); border-color: var(--vo-teal); background: var(--vo-teal-soft); }
.vo-badge.vo-info-source, .vo-badge.vo-info-quantity { color: var(--vo-blue); border-color: var(--vo-blue); background: var(--vo-blue-soft); }
.vo-badge.vo-info-total { color: var(--vo-text); border-color: var(--vo-border-strong); background: var(--vo-surface-2); }
.vo-badge.vo-info-route, .vo-badge.vo-info-price-pending { color: var(--vo-gold); border-color: var(--vo-gold); background: var(--vo-gold-soft); }
.vo-badge.vo-info-progress, .vo-badge.vo-info-location, .vo-badge.vo-info-price-confirmed { color: var(--vo-teal); border-color: var(--vo-teal); background: var(--vo-teal-soft); }
.vo-badge.vo-status { min-height: 26px; padding-inline: 9px; font-weight: 650; }
.vo-status.status-planned { color: var(--vo-blue); border-color: var(--vo-blue); background: var(--vo-blue-soft); }
.vo-status.status-active, .vo-status.status-partially-returned { color: var(--vo-gold); border-color: var(--vo-gold); background: var(--vo-gold-soft); }
.vo-status.status-ready, .vo-status.status-accepted, .vo-status.status-completed { color: var(--vo-teal); border-color: var(--vo-teal); background: var(--vo-teal-soft); }
.vo-status.status-cancelled { color: var(--vo-coral); border-color: var(--vo-coral); background: var(--vo-coral-soft); }
.vo-status.status-neutral { color: var(--vo-text); border-color: var(--vo-border-strong); background: var(--vo-surface-2); }
.vo-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vo-empty { margin: 18px 0; text-align: center; color: var(--vo-hint); font-size: 13px; }
.vo-notice { margin-bottom: 13px; padding: 11px 13px; border: 1px solid var(--vo-teal); border-radius: 9px; color: var(--vo-teal); background: var(--vo-teal-soft); font-size: 13px; }
.vo-notice.error { border-color: var(--vo-coral); color: var(--vo-coral); background: var(--vo-coral-soft); }
.vo-table-wrap { overflow: auto; }
.vo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vo-table th { padding: 10px 9px; text-align: left; color: var(--vo-muted); border-bottom: 1px solid var(--vo-border); white-space: nowrap; }
.vo-table td { padding: 11px 9px; border-bottom: 1px solid var(--vo-border-soft); vertical-align: top; }
.vo-table tr:hover td { background: var(--vo-surface-2); }
.vo-result { display: grid; align-content: center; min-height: 260px; }
.vo-result-number { margin: 6px 0; color: var(--vo-text); font: 650 clamp(34px,6vw,64px)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.vo-result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.vo-result-grid div { padding: 11px; border: 1px solid var(--vo-border-soft); border-radius: 8px; background: var(--vo-surface-2); }
.vo-result-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.vo-inline-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vo-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
.vo-check input { width: 16px !important; min-height: 16px !important; accent-color: var(--vo-blue-strong); }
.vo-help { margin: -2px 0 0; color: var(--vo-hint); font-size: 11px; line-height: 1.55; }
.vo-field-error { min-height: 15px; color: var(--vo-coral); font-size: 11px; font-weight: 500; }
.vo-field-error:empty { display: none; }
.vo-form input[aria-invalid="true"] { border-color: var(--vo-coral); box-shadow: 0 0 0 1px var(--vo-coral-soft); }
.vo-batch-form { grid-column: 1 / -1; padding: 20px; }
.vo-batch-form .vo-card-title { padding-bottom: 14px; border-bottom: 1px solid var(--vo-border); }
.vo-batch-form > .vo-help { color: var(--vo-muted); font-size: 12px; }
.vo-batch-form input::placeholder, .vo-vendor-po-option .vo-help { color: var(--vo-muted) !important; }
.vo-batch-form .vo-card-title > div { align-items: flex-start; flex-direction: column; gap: 5px; }
.vo-batch-form .vo-card-title > div > span { display: inline-flex; }
.vo-batch-masters { grid-template-columns: minmax(190px,.8fr) minmax(190px,.8fr) minmax(260px,1.4fr); }
.vo-batch-fieldset { min-width: 0; margin: 2px 0; padding: 0; border: 0; }
.vo-batch-fieldset legend { margin-bottom: 8px; color: var(--vo-muted); font-size: 12px; font-weight: 680; }
.vo-batch-items { display: grid; gap: 7px; max-height: min(460px, 48vh); overflow: auto; padding: 1px; scrollbar-gutter: stable; }
.vo-batch-items .vo-empty { margin: 26px 0; padding: 18px; border: 1px dashed var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
/* Toolbar, not a card: it controls the rows below, so it must not carry the
   same border/background weight as them. A hairline rule is the whole chrome. */
.vo-batch-selectall {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 2px 7px; margin-bottom: 1px;
  border-bottom: 1px solid var(--vo-border);
  position: sticky; top: 0; z-index: 1; background: var(--vo-surface);
}
.vo-batch-selectall label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12px; line-height: 1.2; color: var(--vo-text);
}
/* Same escape hatch the row checkboxes use: a global touch-target rule sets
   min-height 42px on inputs, which would make this control taller than the
   rows it governs. */
.vo-batch-selectall input {
  width: 16px !important; height: 16px; min-height: 16px !important;
  margin: 0; padding: 0 !important; accent-color: var(--vo-blue-strong); cursor: pointer;
}
.vo-batch-selectall-count {
  font-size: 11px; font-variant-numeric: tabular-nums; color: var(--vo-muted);
  white-space: nowrap;
}
.vo-batch-item {
  display: grid; grid-template-columns: 24px minmax(180px,1fr) minmax(64px,.26fr) minmax(64px,.26fr) minmax(150px,.48fr);
  align-items: center; gap: 12px; min-height: 74px; padding: 10px 12px;
  border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.vo-batch-items.show-vendor-price .vo-batch-item { grid-template-columns: 24px minmax(180px,1fr) minmax(64px,.24fr) minmax(64px,.24fr) minmax(140px,.42fr) minmax(150px,.46fr); }
.vo-batch-item:has(.vo-batch-check:checked) { border-color: var(--vo-blue); background: var(--vo-blue-soft); box-shadow: inset 3px 0 0 var(--vo-blue-strong); }
.vo-batch-item:has(.vo-batch-qty-input:invalid:not(:disabled)) { border-color: var(--vo-coral); box-shadow: inset 3px 0 0 var(--glorion-red); }
.vo-batch-item.is-disabled { opacity: .58; }
.vo-batch-check, .vo-return-check { width: 18px !important; height: 18px; min-height: 18px !important; padding: 0 !important; accent-color: var(--vo-blue-strong); cursor: pointer; }
.vo-batch-item-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--vo-text); cursor: pointer; }
.vo-batch-thumb { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border: 1px solid var(--vo-border); border-radius: 8px; color: var(--vo-muted); background: var(--vo-surface); font: 700 11px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; }
.vo-batch-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vo-batch-item-copy { display: grid; gap: 5px; min-width: 0; }
.vo-batch-item-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.vo-batch-item-copy > span, .vo-batch-metric span, .vo-batch-qty > span, .vo-batch-price > span { color: var(--vo-muted); font-size: 11px; }
.vo-batch-metric { display: grid; gap: 5px; }
.vo-batch-metric strong { color: var(--vo-text); font: 650 14px/1 "IBM Plex Mono", monospace; }
.vo-batch-qty { display: grid; gap: 5px; color: var(--vo-muted); font-weight: 650; }
.vo-batch-price { display: none; gap: 5px; color: var(--vo-muted); font-weight: 650; }
.vo-batch-items.show-vendor-price .vo-batch-price { display: grid; }
.vo-batch-qty input, .vo-batch-price input { min-height: 40px; font: 650 14px/1 "IBM Plex Mono", monospace; }
.vo-batch-qty input:disabled, .vo-batch-price input:disabled { opacity: .45; cursor: not-allowed; }
.vo-item-error { display: none; grid-column: 5; color: var(--vo-coral); font-size: 11px; }
.vo-batch-items.show-vendor-price .vo-item-error { grid-column: 5 / 7; }
.vo-batch-item:has(.vo-item-error:not(:empty)) .vo-item-error { display: block; }
.vo-batch-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; border-top: 1px solid var(--vo-border); }
.vo-batch-submit-copy { display: grid; gap: 4px; min-width: 0; }
.vo-batch-summary { margin: 0; color: var(--vo-muted); font-size: 13px; line-height: 1.5; }
.vo-batch-summary strong { color: var(--vo-blue); }
.vo-batch-blocker { margin: 0; color: var(--vo-coral); font-size: 12px; line-height: 1.45; }
.vo-batch-blocker:empty { display: none; }
.vo-batch-submit-row .vo-primary { min-width: 220px; }
.vo-vendor-po-option { padding: 13px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
.vo-vendor-po-toggle { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 11px !important; color: var(--vo-text) !important; cursor: pointer; }
.vo-vendor-po-toggle input { width: 19px !important; height: 19px; min-height: 19px !important; padding: 0 !important; accent-color: var(--vo-blue-strong); }
.vo-vendor-po-toggle span { display: grid; gap: 3px; }
.vo-vendor-po-toggle strong { font-size: 13px; }
.vo-vendor-po-toggle small { color: var(--vo-muted); font-size: 11px; font-weight: 500; }
.vo-vendor-po-fields { display: grid; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--vo-border); }
.vo-vendor-po-fields .vo-row { grid-template-columns: minmax(220px,.7fr) minmax(280px,1.3fr); }
.vo-vendor-po-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid var(--vo-teal); border-radius: 8px; background: var(--vo-teal-soft); }
.vo-vendor-po-result > div:first-child { display: grid; gap: 3px; }
.vo-vendor-po-result span { color: var(--vo-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.vo-vendor-po-result strong { color: var(--vo-teal); font: 700 13px/1.3 "IBM Plex Mono", monospace; }
.vo-vendor-po-history { display: grid; gap: 10px; }
.vo-vendor-po-history .vo-card-title { margin-bottom: 0; }
.vo-vendor-po-history .vo-card-title > div:first-child { margin-right: auto; }
.vo-vendor-po-history:has(#voVendorPoList[hidden]) > .vo-help { display: none; }
.vo-vendor-po-list { display: grid; gap: 7px; }
.vo-vendor-po-row { display: grid; grid-template-columns: minmax(220px,1fr) minmax(120px,.3fr) auto; align-items: center; gap: 14px; padding: 12px 13px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
.vo-vendor-po-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.vo-vendor-po-ident { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.vo-vendor-po-row > div:first-child > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-vendor-po-row > div:first-child > span, .vo-vendor-po-total span { color: var(--vo-muted); font-size: 11px; }
/* Long unbroken text (e.g. a void/revision reason) must wrap, not widen the page */
.vo-vendor-po-ident, .vo-vendor-po-row > div:first-child > span { min-width: 0; overflow-wrap: anywhere; }
/* Running text for names too long to fit: transform-only (compositor), applied
   by JS only when the text actually overflows its box. */
.vo-marquee { text-overflow: clip; }
.vo-marquee-inner {
  display: inline-block; will-change: transform;
  /* the wrapper span must keep its parent's typography — generic row span
     rules (e.g. .vo-work-row-main span, .vo-material-ledger-row spans) have
     higher specificity and would otherwise restyle the name */
  font: inherit !important; color: inherit !important; letter-spacing: inherit !important;
  animation: vo-marquee-shuttle var(--vo-marquee-duration, 6s) ease-in-out 1.2s infinite alternate;
}
@keyframes vo-marquee-shuttle { from { transform: translateX(0); } to { transform: translateX(var(--vo-marquee-shift, 0px)); } }
@media (prefers-reduced-motion: reduce) { .vo-marquee-inner { animation: none; } }
.vo-vendor-po-total { display: grid; gap: 4px; text-align: right; }
.vo-vendor-po-detail { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--vo-border-soft); }
.vo-vendor-po-detail[hidden] { display: none; }
.vo-vendor-po-detail .vo-table td { overflow-wrap: anywhere; }
.vo-vendor-po-detail .right { text-align: right; white-space: nowrap; }
.vo-vendor-po-detail-thumb { width: 24px; height: 24px; margin-right: 7px; border-radius: 4px; object-fit: cover; vertical-align: middle; }
.vo-vendor-po-detail-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; color: var(--vo-muted); font-size: 11px; }
.vo-vendor-po-detail-meta span { overflow-wrap: anywhere; }
.vo-vendor-po-total strong { font: 700 13px/1.2 "IBM Plex Mono", monospace; }

.vo-shipment-list { display: grid; gap: 10px; }
.vo-shipment-card { overflow: hidden; border: 1px solid var(--vo-border); border-radius: 9px; background: var(--vo-surface-2); }
.vo-shipment-card.is-return { margin-left: 22px; border-left: 3px solid var(--vo-teal); }
.vo-shipment-card.is-return .vo-shipment-number { color: var(--vo-teal); }
.vo-shipment-head, .vo-shipment-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 15px; }
.vo-shipment-head { border-bottom: 1px solid var(--vo-border); }
.vo-shipment-head h3 { margin: 4px 0; font-size: 15px; line-height: 1.35; }
.vo-shipment-number { margin: 0; color: var(--vo-gold); font: 700 11px/1.2 "IBM Plex Mono", monospace; letter-spacing: .04em; }
.vo-shipment-lines { display: grid; }
.vo-shipment-line { display: grid; grid-template-columns: minmax(180px,1fr) repeat(4,minmax(86px,.36fr)); align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--vo-border-soft); }
.vo-shipment-line:last-child { border-bottom: 0; }
.vo-shipment-line > div { display: grid; gap: 4px; min-width: 0; }
.vo-shipment-line > div:first-child strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vo-shipment-metric span { color: var(--vo-muted); font-size: 10px; line-height: 1.25; }
.vo-shipment-metric strong { font: 650 13px/1.2 "IBM Plex Mono", monospace; }
.vo-shipment-metric.is-sent strong { color: var(--vo-blue); }
.vo-shipment-metric.is-returned strong { color: var(--vo-teal); }
.vo-shipment-metric.is-vendor strong { color: var(--vo-gold); }
.vo-shipment-metric.is-transit strong { color: var(--vo-muted); }
.vo-shipment-foot { align-items: center; border-top: 1px solid var(--vo-border); }
.vo-badge-complete { color: var(--vo-teal); border-color: var(--vo-teal); background: var(--vo-teal-soft); }

.vo-return-dialog { width: min(760px, calc(100vw - 28px)); }
.vo-return-items { display: grid; gap: 8px; }
.vo-return-item { display: grid; grid-template-columns: 24px minmax(180px,1fr) minmax(150px,.46fr); align-items: center; gap: 12px; min-height: 66px; padding: 10px 12px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
.vo-return-item:has(.vo-return-check:checked) { border-color: var(--vo-teal); background: var(--vo-teal-soft); box-shadow: inset 3px 0 0 var(--glorion-teal); }
.vo-return-item > label:not(.vo-return-qty) { display: grid; gap: 4px; min-width: 0; color: var(--vo-text); cursor: pointer; }
.vo-return-item > label:not(.vo-return-qty) strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vo-return-item > label:not(.vo-return-qty) span { color: var(--vo-muted); font-size: 11px; }
.vo-return-qty { display: grid; gap: 5px; color: var(--vo-muted); font-size: 11px; font-weight: 650; }
.vo-return-qty input { font: 650 14px/1 "IBM Plex Mono", monospace; }
.vo-return-qty input:disabled { opacity: .45; cursor: not-allowed; }
.vo-order-bulk-dialog { width: min(1080px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: hidden; }
.vo-order-bulk-dialog .vo-dialog-inner { grid-template-rows: auto auto minmax(180px,1fr) auto auto; max-height: calc(100vh - 30px); }
.vo-order-bulk-table-wrap { overflow: auto; min-height: 180px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); scrollbar-gutter: stable; }
.vo-order-bulk-table { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; color: var(--vo-text); font-size: 12px; }
.vo-order-bulk-table th { position: sticky; top: 0; z-index: 2; padding: 10px; color: var(--vo-muted); background: var(--vo-surface); border-bottom: 1px solid var(--vo-border-strong); text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.vo-order-bulk-table td { padding: 10px; border-bottom: 1px solid var(--vo-border); vertical-align: middle; background: var(--vo-surface-2); }
.vo-order-bulk-table tbody tr:last-child td { border-bottom: 0; }
.vo-order-bulk-table tbody tr.is-selected td { background: var(--vo-blue-soft); }
.vo-order-bulk-table tbody tr:not(.is-selected) { opacity: .58; }
.vo-order-bulk-select { width: 42px; text-align: center !important; }
.vo-dialog .vo-order-bulk-select input, .vo-dialog .vo-order-bulk-check { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--vo-blue-strong); cursor: pointer; }
.vo-order-bulk-item { display: grid; gap: 3px; min-width: 175px; cursor: pointer; }
.vo-order-bulk-item strong { overflow: hidden; max-width: 260px; color: var(--vo-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vo-order-bulk-item span { color: var(--vo-hint); font: 500 10px/1.3 "IBM Plex Mono", monospace; }
.vo-order-bulk-item + .vo-order-bulk-free, .vo-order-bulk-free { display: block; margin-top: 4px; color: var(--vo-gold); font-size: 10px; line-height: 1.35; }
.vo-order-bulk-number, .vo-order-bulk-rate { font: 600 11px/1.35 "IBM Plex Mono", monospace; white-space: nowrap; }
.vo-order-bulk-input { display: grid; gap: 4px; min-width: 116px; }
.vo-dialog .vo-order-bulk-input input, .vo-dialog .vo-order-bulk-reason { min-height: 38px; padding: 7px 9px; font: 650 13px/1 "IBM Plex Mono", monospace; }
.vo-order-bulk-input small { color: var(--vo-hint); font-size: 10px; font-weight: 500; line-height: 1.35; }
.vo-dialog .vo-order-bulk-reason { min-width: 150px; margin-top: 6px; font-size: 11px; font-weight: 500; line-height: 1.3; }
.vo-order-bulk-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 -22px -22px; padding: 13px 22px; border-top: 1px solid var(--vo-border-strong); background: var(--vo-surface); box-shadow: 0 -8px 18px rgba(0,0,0,.16); }
.vo-order-bulk-totals { display: grid; gap: 4px; min-width: 0; }
.vo-order-bulk-totals strong { font-size: 12px; }
.vo-order-bulk-totals span { color: var(--vo-muted); font-size: 11px; line-height: 1.4; }
.vo-order-bulk-footer .vo-action-dialog-actions { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.vo-bill-choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
.vo-bill-choice input { margin-top: 3px; accent-color: var(--vo-blue-strong); }
.vo-partner-payment-card { overflow: hidden; padding: 0; }
.vo-partner-payment-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid var(--vo-border); }
.vo-partner-payment-head > div { display: grid; gap: 5px; min-width: 0; }
.vo-partner-payment-head h2 { margin: 0; }
.vo-partner-payment-head .vo-help { margin: 0; max-width: 70ch; color: var(--vo-muted); }
.vo-partner-payment-picker { display: grid; gap: 6px; min-width: min(280px,100%); color: var(--vo-muted); font-size: 12px; font-weight: 650; }
.vo-partner-payment-picker select { width: 100%; min-height: 42px; padding: 8px 11px; color: var(--vo-text); background: var(--vo-surface-2); border: 1px solid var(--vo-border); border-radius: 7px; }
.vo-partner-payment-picker select:focus { outline: 2px solid rgba(96,147,184,.72); outline-offset: 1px; border-color: var(--vo-blue); }
.vo-partner-payment-picker select:disabled { opacity: .55; cursor: not-allowed; }
.vo-partner-payment-body > .vo-empty { margin: 0; padding: 24px 18px; }
.vo-partner-payment-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--vo-border); }
.vo-partner-payment-metric { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 112px; padding: 17px 18px; border-right: 1px solid var(--vo-border); }
.vo-partner-payment-metric:last-child { border-right: 0; }
.vo-partner-payment-metric > span { color: var(--vo-muted); font-size: 11px; font-weight: 650; }
.vo-partner-payment-metric > strong { overflow-wrap: anywhere; color: var(--vo-text); font: 700 19px/1.2 "IBM Plex Mono", monospace; letter-spacing: -.02em; }
.vo-partner-payment-metric > small { color: var(--vo-muted); font-size: 10px; line-height: 1.45; }
.vo-partner-payment-metric.is-ready { background: var(--vo-blue-soft); }
.vo-partner-payment-metric.is-ready > strong { color: var(--vo-blue); }
.vo-partner-payment-metric.is-payable { background: var(--vo-gold-soft); }
.vo-partner-payment-metric.is-payable > strong { color: var(--vo-gold); }
.vo-partner-payment-metric.is-paid > strong { color: var(--vo-teal); }
.vo-partner-payment-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; }
.vo-partner-payment-detail-head p { display: grid; gap: 2px; margin: 0; min-width: 0; }
.vo-partner-payment-detail-head strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vo-partner-payment-detail-head p span { color: var(--vo-muted); font-size: 11px; }
.vo-partner-payment-toggle { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vo-partner-payment-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.vo-partner-payment-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.vo-partner-payment-detail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--vo-border); background: var(--vo-surface-2); }
.vo-partner-payment-detail > section { min-width: 0; padding: 16px 18px 18px; }
.vo-partner-payment-detail > section + section { border-left: 1px solid var(--vo-border); }
.vo-partner-payment-detail h3 { margin: 0 0 10px; color: var(--vo-muted); font-size: 12px; font-weight: 680; }
.vo-partner-detail-table { background: var(--vo-surface); }
.vo-partner-detail-table .right { text-align: right; white-space: nowrap; }
.vo-empty.compact { margin: 0; padding: 12px 0; text-align: left; }
.vo-tutorial-button { min-width: 112px; min-height: 44px; }
.vo-dialog { width: min(700px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; color: var(--vo-text); border: 1px solid var(--vo-border-strong); border-radius: 10px; background: var(--vo-surface); box-shadow: 0 8px 8px rgba(0,0,0,.46); animation: vo-dialog-enter .18s cubic-bezier(.16,1,.3,1); }
.vo-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); animation: vo-backdrop-enter .18s ease-out; }
.vo-dialog-inner { padding: 22px; }
.vo-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.vo-dialog-head h2 { margin: 4px 0 0; font: 640 23px/1.15 "Space Grotesk", sans-serif; }
.vo-dialog-close { width: 40px; min-width: 40px; min-height: 40px; padding: 0; font-size: 20px; }
.vo-tutorial-steps { display: grid; gap: 11px; counter-reset: tutorial; }
.vo-tutorial-step { position: relative; padding: 15px 16px 15px 52px; border: 1px solid var(--vo-border); border-radius: 8px; background: var(--vo-surface-2); }
.vo-tutorial-step::before { counter-increment: tutorial; content: counter(tutorial); position: absolute; left: 15px; top: 15px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--vo-text); background: var(--vo-blue-soft); border: 1px solid rgba(96,147,184,.3); font: 650 12px/1 "IBM Plex Mono", monospace; }
.vo-tutorial-step h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.35; }
.vo-tutorial-step p { max-width: 70ch; margin: 0; color: var(--vo-muted); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.vo-dialog-form { display: grid; gap: 13px; }
.vo-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.vo-action-dialog { width: min(520px, calc(100vw - 28px)); }
.vo-dialog-context { margin: 0; color: var(--vo-blue); font-size: 12px; font-weight: 700; }
.vo-dialog-description { max-width: 62ch; margin: -3px 0 3px; color: var(--vo-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.vo-action-fields { display: grid; gap: 13px; }
.vo-action-field { display: grid; gap: 6px; color: var(--vo-muted); font-size: 12px; font-weight: 650; }
.vo-action-field-help { color: var(--vo-hint); font-size: 11px; font-weight: 500; line-height: 1.45; }
.vo-action-section { margin: 3px 0 -3px; padding-top: 12px; border-top: 1px solid var(--vo-border); }
.vo-action-section strong { display: block; margin-bottom: 3px; color: var(--vo-text); font-size: 13px; }
.vo-action-section span { color: var(--vo-hint); font-size: 11px; line-height: 1.45; }
.vo-dialog-error { padding: 10px 11px; border: 1px solid var(--vo-coral); border-radius: 7px; color: var(--vo-coral); background: var(--vo-coral-soft); font-size: 12px; line-height: 1.45; }
.vo-action-dialog-actions { margin-top: 7px; padding-top: 15px; border-top: 1px solid var(--vo-border); }
.vo-action-dialog-actions button { min-height: 42px; }

@keyframes vo-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vo-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .vo-grid-two { grid-template-columns: 1fr; }
  .vo-batch-item { grid-template-columns: 24px minmax(170px,1fr) repeat(2,minmax(58px,.25fr)) minmax(140px,.46fr); }
  .vo-batch-items.show-vendor-price .vo-batch-item { grid-template-columns: 24px minmax(170px,1fr) repeat(2,minmax(58px,.25fr)); }
  .vo-batch-items.show-vendor-price .vo-batch-qty { grid-column: 2 / 4; }
  .vo-batch-items.show-vendor-price .vo-batch-price { grid-column: 4 / 5; }
  .vo-batch-items.show-vendor-price .vo-item-error { grid-column: 2 / -1; }
  .vo-shipment-line { grid-template-columns: minmax(180px,1fr) repeat(4,minmax(76px,.3fr)); }
}
@media (max-width: 980px) {
  .vo-header { align-items: stretch; flex-direction: column; }
  .vo-header-tools { width: 100%; }
  .vo-handler { min-width: 0; flex: 1; }
  .vo-batch-masters { grid-template-columns: 1fr 1fr; }
  .vo-batch-masters label:last-child { grid-column: 1 / -1; }
  .vo-batch-item { grid-template-columns: 24px minmax(170px,1fr) repeat(2,minmax(58px,.25fr)); }
  .vo-batch-qty { grid-column: 2 / -1; grid-template-columns: minmax(130px,1fr) minmax(140px,.6fr); align-items: center; }
  .vo-batch-items.show-vendor-price .vo-batch-qty { grid-column: 2 / 3; grid-template-columns: 1fr; }
  .vo-batch-items.show-vendor-price .vo-batch-price { grid-column: 3 / -1; }
  .vo-item-error { grid-column: 2 / -1; }
  .vo-vendor-po-row { grid-template-columns: minmax(180px,1fr) auto; }
  .vo-vendor-po-row .vo-actions { grid-column: 1 / -1; }
  .vo-shipment-line { grid-template-columns: minmax(180px,1fr) repeat(2,minmax(90px,.34fr)); }
  .vo-shipment-line .vo-shipment-metric:nth-child(4), .vo-shipment-line .vo-shipment-metric:nth-child(5) { margin-top: 4px; }
  .vo-material-ledger-row { grid-template-columns: minmax(190px,1fr) repeat(3,minmax(80px,.3fr)); }
  .vo-material-ledger-row .vo-actions { grid-column: 1 / -1; }
  .vo-work-row { grid-template-columns: minmax(180px,.7fr) auto minmax(230px,1.3fr); }
  .vo-partner-payment-detail { grid-template-columns: 1fr; }
  .vo-partner-payment-detail > section + section { border-top: 1px solid var(--vo-border); border-left: 0; }
}
@media (max-width: 640px) {
  .vendor-ops-page { padding: 17px 10px 82px; }
  .vo-header-tools { flex-direction: column; }
  .vo-row { grid-template-columns: 1fr; }
  .vo-workflow-box { grid-template-columns: 1fr; }
  .vo-card { padding: 14px; }
  .vo-partner-payment-card { padding: 0; }
  .vo-partner-payment-head { align-items: stretch; flex-direction: column; padding: 14px; }
  .vo-partner-payment-picker { min-width: 0; }
  .vo-partner-payment-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vo-partner-payment-metric { min-height: 106px; padding: 14px; }
  .vo-partner-payment-metric:nth-child(2) { border-right: 0; }
  .vo-partner-payment-metric:nth-child(-n+2) { border-bottom: 1px solid var(--vo-border); }
  .vo-partner-payment-detail-head { align-items: stretch; flex-direction: column; padding: 12px 14px; }
  .vo-partner-payment-toggle { width: 100%; min-height: 44px; justify-content: center; }
  .vo-partner-payment-detail > section { padding: 14px; }
  .vo-batch-form { padding: 14px; }
  .vo-batch-masters { grid-template-columns: 1fr; }
  .vo-batch-masters label:last-child { grid-column: auto; }
  .vo-batch-items { max-height: none; overflow: visible; }
  .vo-batch-item { grid-template-columns: 22px minmax(0,1fr) minmax(60px,.34fr) minmax(60px,.34fr); gap: 9px; min-height: 0; padding: 12px 10px; }
  .vo-batch-items.show-vendor-price .vo-batch-item { grid-template-columns: 22px minmax(0,1fr) minmax(60px,.34fr) minmax(60px,.34fr); }
  .vo-batch-item-main { grid-column: 2 / -1; min-height: 38px; justify-content: center; }
  .vo-batch-check { grid-row: 1; align-self: center; }
  .vo-batch-metric { grid-row: 2; }
  .vo-batch-metric:nth-of-type(1) { grid-column: 2; }
  .vo-batch-metric:nth-of-type(2) { grid-column: 3; }
  .vo-batch-qty { grid-column: 2 / -1; grid-template-columns: 1fr; }
  .vo-batch-items.show-vendor-price .vo-batch-qty { grid-column: 2 / -1; }
  .vo-batch-items.show-vendor-price .vo-batch-price { grid-column: 2 / -1; }
  .vo-batch-qty input, .vo-batch-price input { min-height: 44px; }
  .vo-item-error { grid-column: 2 / -1; }
  .vo-vendor-po-fields .vo-row { grid-template-columns: 1fr; }
  .vo-vendor-po-result { align-items: stretch; flex-direction: column; }
  .vo-vendor-po-result .vo-actions, .vo-vendor-po-result .vo-action { width: 100%; }
  .vo-vendor-po-result .vo-actions { flex-direction: column; }
  .vo-vendor-po-result .vo-action { min-height: 44px; }
  .vo-vendor-po-row { grid-template-columns: 1fr; }
  .vo-vendor-po-total { text-align: left; }
  .vo-vendor-po-row .vo-actions, .vo-vendor-po-row .vo-action { width: 100%; }
  .vo-vendor-po-row .vo-actions { flex-direction: column; }
  .vo-vendor-po-row .vo-action { min-height: 44px; }
  .vo-batch-submit-row { align-items: stretch; flex-direction: column; }
  .vo-batch-submit-row .vo-primary { width: 100%; min-width: 0; min-height: 46px; }
  .vo-shipment-head, .vo-shipment-foot { padding: 12px; }
  .vo-shipment-card.is-return { margin-left: 10px; }
  .vo-shipment-head { align-items: flex-start; }
  .vo-shipment-line { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 12px; }
  .vo-shipment-line > div:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
  .vo-shipment-foot { align-items: stretch; flex-direction: column; }
  .vo-shipment-foot .vo-actions, .vo-shipment-foot .vo-action { width: 100%; }
  .vo-shipment-foot .vo-action { min-height: 44px; }
  .vo-return-item { grid-template-columns: 22px minmax(0,1fr); gap: 10px; }
  .vo-return-qty { grid-column: 2; }
  .vo-return-qty input { min-height: 44px; }
  .vo-result-grid { grid-template-columns: 1fr; }
  .vo-work-foot { align-items: stretch; flex-direction: column; }
  .vo-order-head { align-items: stretch; flex-direction: column; padding: 13px 12px; }
  .vo-order-head-controls { align-items: stretch; flex-direction: column; gap: 10px; }
  .vo-order-bulk-actions { justify-content: flex-start; }
  .vo-order-bulk-actions .vo-action { min-height: 44px; }
  .vo-order-summary { grid-template-columns: repeat(3,1fr); text-align: left; }
  .vo-order-toggle { align-self: flex-end; min-height: 40px; }
  .vo-material-ledger-head { align-items: stretch; flex-direction: column; padding: 12px; }
  .vo-material-ledger-head .vo-action { width: 100%; min-height: 44px; }
  .vo-material-ledger-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; }
  .vo-material-ledger-row > div:first-child, .vo-material-ledger-row .vo-actions { grid-column: 1 / -1; }
  .vo-material-ledger-row .vo-actions, .vo-material-ledger-row .vo-action { width: 100%; }
  .vo-material-ledger-row .vo-action { min-height: 44px; }
  .vo-work-row { grid-template-columns: minmax(0,1fr) auto; padding: 12px; }
  .vo-work-row .vo-badges, .vo-work-row-foot { grid-column: 1 / -1; }
  .vo-work-row-foot { align-items: stretch; flex-direction: column; }
  .vo-work-row-foot .vo-actions, .vo-work-row-foot .vo-action { width: 100%; }
  .vo-work-row-foot .vo-action { min-height: 44px; }
  .vo-actions { justify-content: flex-start; }
  .vo-dialog-inner { padding: 18px; }
  .vo-dialog-head h2 { font-size: 20px; }
  .vo-action-dialog-actions button { flex: 1; min-height: 44px; }
  .vo-order-bulk-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .vo-order-bulk-dialog .vo-dialog-inner { max-height: calc(100vh - 18px); padding: 16px; }
  .vo-order-bulk-table { min-width: 740px; }
  .vo-dialog .vo-order-bulk-input input { min-height: 46px; }
  .vo-order-bulk-footer { align-items: stretch; flex-direction: column; gap: 10px; margin: 0 -16px -16px; padding: 12px 16px; }
  .vo-order-bulk-footer .vo-dialog-actions { width: 100%; }
  .vo-order-bulk-footer .vo-dialog-actions button { flex: 1; min-height: 44px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .vo-dialog { max-height: calc(100vh - 12px); }
  .vo-dialog-inner { padding: 14px 18px; }
  .vo-dialog-head { margin-bottom: 10px; }
  .vo-return-items { max-height: 42vh; overflow: auto; }
  .vo-order-bulk-dialog .vo-dialog-inner { max-height: calc(100vh - 14px); }
  .vo-order-bulk-table-wrap { min-height: 100px; }
  .vo-action-dialog-actions { position: sticky; bottom: 0; margin-inline: -2px; padding-bottom: 2px; background: var(--vo-surface); }
}

@media (prefers-reduced-motion: reduce) {
  .vo-primary, .vo-quiet, .vo-action { transition: none; }
  .vo-order-collapse, .vo-order-toggle svg { transition: none; }
  .vo-partner-payment-toggle svg { transition: none; }
  .vo-dialog, .vo-dialog::backdrop { animation: none; }
}
