@import url(https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap);
/* PrismJS 1.29.0
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+css-extras+json+json5+jsonp+liquid+markup-templating+sql&plugins=line-highlight+line-numbers+show-language+highlight-keywords+inline-color+toolbar */
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}@media print{.line-highlight{-webkit-print-color-adjust:exact;color-adjust:exact}}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:#f4f1ef;font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:after,.line-numbers .line-highlight:before{content:none}pre[id].linkable-line-numbers span.line-numbers-rows{pointer-events:all}pre[id].linkable-line-numbers span.line-numbers-rows>span:before{cursor:pointer}pre[id].linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(128,128,128,.2)}
pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}
div.code-toolbar{position:relative}div.code-toolbar>.toolbar{position:absolute;z-index:10;top:.3em;right:.2em;transition:opacity .3s ease-in-out;opacity:0}div.code-toolbar:hover>.toolbar{opacity:1}div.code-toolbar:focus-within>.toolbar{opacity:1}div.code-toolbar>.toolbar>.toolbar-item{display:inline-block}div.code-toolbar>.toolbar>.toolbar-item>a{cursor:pointer}div.code-toolbar>.toolbar>.toolbar-item>button{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar>.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar>.toolbar-item>span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,.2);box-shadow:0 2px 0 0 rgba(0,0,0,.2);border-radius:.5em}div.code-toolbar>.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar>.toolbar-item>span:focus,div.code-toolbar>.toolbar>.toolbar-item>span:hover{color:inherit;text-decoration:none}
span.inline-color-wrapper{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyIDIiPjxwYXRoIGZpbGw9ImdyYXkiIGQ9Ik0wIDBoMnYySDB6Ii8+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDBoMXYxSDB6TTEgMWgxdjFIMXoiLz48L3N2Zz4=);background-position:center;background-size:110%;display:inline-block;height:1.333ch;width:1.333ch;margin:0 .333ch;box-sizing:border-box;border:1px solid #fff;outline:1px solid rgba(0,0,0,.5);overflow:hidden}span.inline-color{display:block;height:120%;width:120%}

body {
    margin: 0;
    color: darkblue;
}

code[class*="language-"],
pre[class*="language-"] {
    margin: 0;
    font-size: 13px;
}

.codejar-linenumbers {
    mix-blend-mode: normal !important;
    text-shadow: none !important;
}

.react-split {
  flex: 1;
  height: 100%;
  position: relative;
  width: 100%;
}
.react-split__pane {
  height: 100%;
  position: absolute;
  white-space: normal;
  width: 100%;
  overflow: hidden;
}
.react-split__sash {
  height: 100%;
  position: absolute;
  top: 0;
  transition: background-color 0.1s;
  width: 100%;
  z-index: 2;
}
.react-split__sash--disabled {
  pointer-events: none;
}
.react-split__sash--vertical {
  cursor: col-resize;
}
.react-split__sash--horizontal {
  cursor: row-resize;
}
.react-split__sash-content {
  width: 100%;
  height: 100%;
}
.react-split__sash-content--active {
  background-color: #175ede;
}
.react-split--dragging.react-split--vertical {
  cursor: col-resize;
}
.react-split--dragging.react-split--horizontal {
  cursor: row-resize;
}

body.react-split--disabled {
  user-select: none;
}

.split-sash-content {
  width: 100%;
  height: 100%;
}
.split-sash-content.split-sash-content-vscode.split-sash-content-active {
  background-color: #175ede;
}
/* ============================================================
   Processings — Variant 1 ("Focused") visual system.
   Scoped under .op so it does not leak into the rest of admin.
   ============================================================ */

.op,
.op-fullbleed {
  --op-font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --op-font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --op-bg: #f6f6f4;
  --op-bg-2: #eeeeea;
  --op-surface: #ffffff;
  --op-surface-2: #fafaf8;
  --op-line: #e4e4df;
  --op-line-2: #d6d6d0;
  --op-ink: #1a1a1d;
  --op-ink-2: #4a4a4f;
  --op-ink-3: #76767c;
  --op-ink-4: #9a9aa0;

  --op-brand: #3d4673;
  --op-brand-2: #4f5a8f;
  --op-brand-3: #6772a8;
  --op-brand-soft: #eef0f7;
  --op-brand-tint: #f5f6fb;

  --op-ok: #1f7a4d;
  --op-ok-soft: #e6f3eb;
  --op-warn: #b8761b;
  --op-warn-soft: #fbf2e1;
  --op-err: #c4332d;
  --op-err-soft: #fbe9e7;
  --op-info: #2a6bb8;
  --op-info-soft: #e8f0fa;

  --op-sh-1: 0 1px 0 rgba(20,20,30,.04), 0 1px 2px rgba(20,20,30,.06);
  --op-sh-2: 0 1px 0 rgba(20,20,30,.04), 0 4px 14px rgba(20,20,30,.08);
  --op-sh-3: 0 2px 0 rgba(20,20,30,.04), 0 14px 40px rgba(20,20,30,.14);

  font-family: var(--op-font-sans);
  color: var(--op-ink);
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  box-sizing: border-box;
}

.op {
  background: var(--op-bg);
  border-radius: 12px;
  border: 1px solid var(--op-line);
  /* overflow: visible so .op-sidebar can `position: sticky` against the
     viewport. Corner rounding is restored on .op-sidebar / .op-main below. */
}

.op-fullbleed {
  display: block;
  margin-bottom: 16px;
}
.op-fullbleed * { box-sizing: border-box; }

.op * { box-sizing: border-box; }
.op .op-mono {
  font-family: var(--op-font-mono);
  font-variant-numeric: tabular-nums;
}
.op .op-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  border: 1px solid var(--op-line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--op-surface);
  font: 500 10.5px/1 var(--op-font-mono);
  color: var(--op-ink-2);
}

/* Layout — sidebar + main */
.op-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 70vh;
}
.op-main {
  background: var(--op-bg);
  padding: 24px 32px 40px;
  min-width: 0;
  border-top-right-radius: 11px;
  border-bottom-right-radius: 11px;
}
.op-sidebar {
  background: var(--op-surface);
  border-right: 1px solid var(--op-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Stick to the viewport (below the 48px fixed AppBar) so the packer
     always sees the batch list while the order card scrolls. */
  position: sticky;
  top: 48px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-top-left-radius: 11px;
  border-bottom-left-radius: 11px;
}
.op-sidebar-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--op-line);
}
.op-sidebar-list {
  flex: 1;
  overflow: auto;
  padding: 8px 8px 16px;
}
.op-sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--op-line);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.op-sec-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--op-ink-3);
}
.op-progress {
  height: 6px;
  background: var(--op-bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.op-progress > i {
  display: block;
  height: 100%;
  background: var(--op-brand);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}

/* Sidebar item row */
.op-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--op-ink-2);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  position: relative;
}
.op-row + .op-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--op-line);
}
.op-row.is-active::before,
.op-row.is-active + .op-row::before {
  display: none;
}
.op-row:hover { background: var(--op-bg-2); }
.op-row.is-active {
  background: var(--op-brand-soft);
  color: var(--op-brand);
  /* Inset border via box-shadow so the active row pops without shifting
     surrounding rows by a pixel. */
  box-shadow: inset 0 0 0 1.5px var(--op-brand);
}
.op-row.is-active .op-row-id {
  font-weight: 700;
}
/* Lift secondary text on the active row so recipient + star name read
   clearly against the brand-soft background. */
.op-row.is-active .op-row-name {
  color: var(--op-ink);
  font-weight: 500;
}

/* Dim done rows via explicit text colors instead of blanket opacity, so
   the green completion badge and on-hold warning stay vivid while the
   text recedes — packed orders read as "you've already done this". */
.op-row.is-done:not(.is-active) .op-row-id {
  color: var(--op-ink-4);
  font-weight: 500;
}
.op-row.is-done:not(.is-active) .op-row-name {
  color: var(--op-ink-4);
}
.op-row.is-done:not(.is-active) .op-cert-pill {
  opacity: 0.7;
}
.op-row-num {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--op-bg-2);
  color: var(--op-ink-3);
  font-size: 10px; font-weight: 600;
}
.op-row.is-active .op-row-num { background: var(--op-brand); color: #fff; }
.op-row.is-done .op-row-num { background: var(--op-ok); color: #fff; }
.op-row-id {
  font-family: var(--op-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--op-ink);
}
.op-row.is-active .op-row-id { color: var(--op-brand); }
.op-row-name {
  font-size: 11.5px;
  color: var(--op-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-row-line {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.op-row-line-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.op-cert-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--op-bg-2);
  color: var(--op-ink-3);
}
.op-row.is-active .op-cert-pill {
  background: rgba(61,70,115,.18);
  color: var(--op-brand);
}

/* Sidebar item badges */
.op-badges {
  display: flex;
  gap: 3px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.op-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: var(--op-bg-2);
  color: var(--op-ink-3);
  border: 1px solid var(--op-line);
  overflow: hidden;
  position: relative;
}
.op-badge.op-badge-img {
  padding: 0;
  background: #fff;
}
.op-badge-img-el {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  display: block;
}
.op-badge .op-badge-qty {
  font-family: var(--op-font-mono);
  opacity: .85;
}
.op-badge.op-badge-img .op-badge-qty {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 3px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-top-left-radius: 4px;
  opacity: 1;
  line-height: 1;
}
.op-badge-more {
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--op-bg-2);
  color: var(--op-ink-3);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}

/* Batch header */
.op-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.op-batch-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: var(--op-ink);
}

/* Card */
.op-card {
  background: var(--op-surface);
  border: 1px solid var(--op-line);
  border-radius: 12px;
  box-shadow: var(--op-sh-1);
  padding: 24px;
}
.op-card.is-active {
  border-color: var(--op-brand-2);
  box-shadow: 0 0 0 1px var(--op-brand-2), var(--op-sh-2);
}
.op-card.is-empty {
  padding: 48px;
  text-align: center;
}

.op-hr {
  height: 1px;
  background: var(--op-line);
  margin: 14px 0;
}

/* Chips */
.op-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--op-bg-2);
  color: var(--op-ink-2);
  white-space: nowrap;
}
.op-chip.brand { background: var(--op-brand-soft); color: var(--op-brand); }
.op-chip.ok    { background: var(--op-ok-soft);    color: var(--op-ok); }
.op-chip.warn  { background: var(--op-warn-soft);  color: var(--op-warn); }
.op-chip.err   { background: var(--op-err-soft);   color: var(--op-err); }
.op-chip.info  { background: var(--op-info-soft);  color: var(--op-info); }

/* Card body grid */
.op-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .op-body { grid-template-columns: 1fr; }
}

/* Certificate panels */
.op-cert-panel {
  background: var(--op-brand-tint);
  border: 1px solid var(--op-line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.op-cert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.op-cert-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--op-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.op-cert-id {
  font-family: var(--op-font-mono);
  color: var(--op-ink-4);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.op-cert-star {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--op-ink);
  letter-spacing: -0.01em;
}
.op-cert-actions {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  flex-shrink: 0;
}
.op-cert-product {
  font-size: 12.5px;
  color: var(--op-ink-3);
}

.op-unresolved {
  border: 1px dashed var(--op-warn);
  border-radius: 10px;
  padding: 14px;
  background: rgba(184,118,27,.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.op-unresolved-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--op-warn);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Item card inside cert panel */
.op-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--op-surface);
  border: 1px solid var(--op-line);
  border-radius: 8px;
}
.op-item.is-strike .op-item-name { text-decoration: line-through; color: var(--op-ink-3); }
.op-item-thumb {
  width: 40px; height: 40px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: #fff;
  color: var(--op-ink-3);
  border: 1px solid var(--op-line-2);
  flex: 0 0 auto;
  overflow: hidden;
}
.op-item-thumb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Frame thumbnail style: generic frame silhouette (border in the variant's
   display.color) with the product image as a circular chip in the bottom
   right. Outline color is set inline on the .op-thumb-frame-outline node. */
.op-item-thumb.op-thumb-frame {
  background: #f5f1e7;
  position: relative;
  display: block; /* override the parent's flex/grid centring */
}
.op-thumb-frame-outline {
  position: absolute;
  inset: 5px;
  border: 2.5px solid var(--op-ink-3);
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: none;
}
.op-thumb-frame-chip {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--op-ink-3);
  box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(0,0,0,.2);
}
.op-badge.op-badge-frame {
  background: #f5f1e7;
  padding: 0;
  position: relative;
  display: block;
}
.op-badge.op-badge-frame .op-thumb-frame-outline {
  inset: 3px;
  border-width: 1.5px;
  border-radius: 2px;
}
.op-badge.op-badge-frame .op-thumb-frame-chip {
  width: 11px;
  height: 11px;
  right: 2px;
  bottom: 2px;
  box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px rgba(0,0,0,.2);
}
.op-item-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--op-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-item-qty {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  display: grid; place-items: center;
  background: var(--op-bg-2);
  color: var(--op-ink-2);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--op-font-mono);
}
/* Multiple-units warning: operators easily miss "×2" against the same neutral
 * background as "×1", so packing the wrong count is a common error. The
 * red-on-black highlight makes a multi-unit item visually unmissable. */
.op-item-qty.is-multi {
  background: #ff3b30;
  color: #111;
  border: 2px solid #111;
  padding: 0 6px;
}

/* Address column */
.op-addr {
  font-size: 13px;
  color: var(--op-ink-2);
  line-height: 1.5;
  margin-top: 8px;
}
.op-addr .op-addr-name {
  color: var(--op-ink);
  font-weight: 600;
  font-size: 13.5px;
}
.op-banner {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.op-banner.warn { background: var(--op-warn-soft); color: var(--op-warn); }
.op-banner.err  { background: var(--op-err-soft); color: var(--op-err); }
.op-banner.info { background: var(--op-info-soft); color: var(--op-info); }

/* Tracking column */
.op-scan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: var(--op-surface);
  border: 1px dashed var(--op-brand-3);
  border-radius: 14px;
  margin-top: 8px;
}
.op-scan-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--op-brand);
  font-size: 12px;
  font-weight: 600;
}
.op-scan-hint {
  color: var(--op-ink-3);
  font-size: 12px;
}
.op-shipping-co {
  font-size: 12px;
  color: var(--op-ink-3);
}

/* Bump the react-admin TextInput inside the scan box so the tracking field
   gets the large, scanner-friendly hit target the design calls for. */
.op-scan .MuiFormControl-root,
.op-scan .RaTextInput-root {
  margin: 0;
}
.op-scan .MuiInputBase-root {
  min-height: 52px;
  font-family: var(--op-font-mono);
  font-size: 17px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.op-scan .MuiInputBase-input {
  padding-top: 14px;
  padding-bottom: 14px;
}
.op-scan .MuiInputLabel-root {
  font-size: 13px;
}
.op-scan .MuiButton-root {
  min-height: 40px;
  font-weight: 600;
}

/* Top row of focused card */
.op-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.op-id {
  font-family: var(--op-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--op-ink);
}
.op-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.op-position {
  font-size: 13px;
  color: var(--op-ink-3);
}

/* Top toolbar wrapper */
.op-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Empty state */
.op-empty-emoji {
  font-size: 32px;
  margin-bottom: 6px;
}
.op-empty-title {
  font-size: 18px;
  font-weight: 600;
}
.op-empty-sub {
  color: var(--op-ink-3);
  margin-top: 4px;
}

/* Animation */
@keyframes op-slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes op-pop { 0% { transform: scale(.97); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.op-anim-slide { animation: op-slide-up .25s ease-out; }
.op-anim-pop   { animation: op-pop .2s ease-out; }

/* Notes / errors / warnings */
.op-msg-err {
  color: var(--op-err);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.op-msg-warn {
  color: var(--op-warn);
  font-size: 12.5px;
  margin-bottom: 4px;
}
/* Customer notes are the easiest thing to miss in the focused-card view —
 * they used to share the soft-yellow look with the on-hold banner above
 * them. Make them visually distinct: saturated amber background, thicker
 * border, larger type, and a black accent stripe on the left. */
.op-banner.op-note-banner {
  background: #fff3a3;
  color: #1a1a1a;
  border: 2px solid #b58900;
  border-left-width: 8px;
  border-left-color: #1a1a1a;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.op-banner.op-note-banner strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.op-banner.op-note-banner svg {
  color: #1a1a1a;
}

/* "Items needed" summary card */
.op-summary-card {
  background: var(--op-surface);
  border: 1px solid var(--op-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--op-sh-1);
}
.op-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.op-summary-headline {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: var(--op-ink);
}
.op-summary-headline-sub {
  font-size: 12px;
  color: var(--op-ink-3);
}
.op-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.op-summary-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--op-surface-2);
  border: 1px solid var(--op-line);
  border-radius: 8px;
  transition: opacity .15s;
}
.op-summary-row.is-done {
  opacity: 0.55;
}
.op-summary-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--op-line-2);
  overflow: hidden;
  flex: 0 0 auto;
}
.op-summary-body {
  min-width: 0;
}
.op-summary-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--op-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-summary-progress {
  margin-top: 4px;
  height: 4px;
  background: var(--op-bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.op-summary-progress > i {
  display: block;
  height: 100%;
  background: var(--op-brand);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.op-summary-row.is-done .op-summary-progress > i {
  background: var(--op-ok);
}
.op-summary-counts {
  text-align: right;
  flex: 0 0 auto;
}
.op-summary-remaining {
  font-size: 16px;
  font-weight: 700;
  color: var(--op-ink);
  letter-spacing: -0.02em;
}
.op-summary-row.is-done .op-summary-remaining {
  color: var(--op-ok);
}
.op-summary-sub {
  font-size: 11px;
  color: var(--op-ink-3);
}

/* Reset MUI heaviness inside .op for buttons we adopt */
.op .MuiButton-root { text-transform: none; }

