/* Quick outbound keeps the live work area in view; setup retains its own scroll. */
#appView.app-shell .workspace[data-view="quickOutbound"] {
  --qo-line: #e2e7ee;
  --qo-muted: #667085;
  --qo-ink: #243247;
  padding: 12px 16px;
  background: #f4f6f9;
}

#appView.app-shell .workspace[data-view="quickOutbound"] > .topbar {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--qo-line);
  box-shadow: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] > #content {
  min-width: 0;
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
}

#appView.app-shell .workspace[data-view="quickOutbound"] > .topbar {
  max-width: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
  display: grid;
  grid-template-columns: 126px 70px minmax(140px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 0;
  margin: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-metric > span,
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field > span {
  margin-bottom: 3px;
  color: var(--qo-muted);
  font-size: 12px;
  line-height: 16px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-metric strong,
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoWeight {
  height: 36px;
  font-size: 23px;
  line-height: 1.2;
  color: var(--qo-ink);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-count {
  padding-left: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field {
  grid-column: auto;
  grid-row: auto;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field input {
  height: 36px;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons {
  grid-column: auto;
  grid-row: auto;
  gap: 6px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons button,
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions > .page-refresh-button {
  width: auto;
  min-width: 74px;
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 36px;
  margin-bottom: 8px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs {
  flex: 0 0 auto;
  align-self: stretch;
  align-items: center;
  gap: 18px;
  margin: 0;
  border: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button {
  height: 36px;
  min-height: 36px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  line-height: 22px;
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button[aria-selected="true"] {
  border-bottom-color: #2563eb;
  color: #2457bb;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-controls {
  justify-content: flex-end;
  gap: 5px 8px;
  min-width: 0;
  font-size: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentOperator {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorPicker {
  display: flex;
  align-items: center;
  gap: 6px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorSelect {
  width: 180px;
  max-width: 21vw;
  min-height: 30px;
  height: 30px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorConfirm {
  min-height: 30px;
  height: 30px;
  min-width: 48px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorHint {
  color: var(--qo-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

#appView.app-shell .workspace[data-view="quickOutbound"]:has(#qoPanel-settings:not([hidden])) .qo-operator-controls {
  display: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-station-row {
  flex: 0 0 auto;
  margin: 0 0 8px;
  gap: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  flex: 1;
  width: 100%;
  gap: 8px;
  margin: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--qo-line);
  border-radius: 6px;
  background: #fff;
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts span {
  font-size: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts strong {
  margin-left: auto;
  font-size: 17px;
  line-height: 24px;
  color: var(--qo-ink);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts small {
  font-size: 12px;
  line-height: 20px;
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > .qo-amount-card {
  border-left: 3px solid #e6b875;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > .qo-amount-card strong {
  color: #9a591c;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > .qo-carrier-card {
  border-left: 3px solid #7ca7ed;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > .qo-carrier-card strong {
  color: #2457a5;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  min-width: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback .qo-statebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-basis: auto;
  gap: 4px 12px;
  min-height: 24px;
  margin: 0;
  padding: 0 2px;
  border: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoStatus {
  min-width: 0;
  padding: 0;
  color: #3d5979;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoStatus[data-tone="error"] {
  color: #b42318;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoUploadStatus {
  margin-left: auto;
  max-width: 100%;
  color: #667085;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
  overflow-wrap: anywhere;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoUploadStatus:empty,
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback:has(#qoProgress:not([hidden])) #qoStatus[data-presentation="stage"]:not([data-tone="error"]),
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback:has(#qoProgress:not([hidden])) .qo-statebar:has(#qoStatus[data-presentation="stage"]:not([data-tone="error"])):has(#qoUploadStatus:empty),
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback:has(#qoProgress:not([hidden])) #qoResult {
  display: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr);
  align-items: center;
  gap: 8px 20px;
  min-height: 46px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d9e4f6;
  border-radius: 6px;
  background: #f1f6ff;
  color: #285391;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > strong {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > span {
  font-size: 12px;
  line-height: 18px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step {
  align-items: center;
  gap: 6px;
  border-top-width: 2px;
  padding-top: 5px;
  color: #6b778a;
  font-size: 12px;
  line-height: 20px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step > span {
  flex-basis: 18px;
  height: 18px;
  font-size: 10px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step > small {
  display: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-active {
  color: #2457a5;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-done {
  color: #18734e;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-error {
  color: #b42318;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-complete {
  border-color: #c0dfcc;
  background: #f0f9f3;
  color: #18734e;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-error {
  border-color: #f1c5c0;
  background: #fff5f4;
  color: #b42318;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoResult {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #c0dfcc;
  border-radius: 6px;
  background: #f0f9f3;
  color: #18734e;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanNotice:not(:empty) {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #f1c5c0;
  border-radius: 6px;
  background: #fff5f4;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-panel {
  padding: 14px;
  border: 1px solid var(--qo-line);
  border-radius: 8px;
  box-shadow: 0 2px 6px #24324704;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera {
  position: static;
  padding: 0;
  background: #101b2a;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-footer {
  min-height: 34px;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--qo-line);
  background: #fff;
  font-size: 12px;
  line-height: 20px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-footer > span {
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder {
  scrollbar-width: thin;
  scrollbar-color: #c9d1dd transparent;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title {
  align-items: center;
  gap: 8px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong {
  font-size: 20px;
  line-height: 25px;
  color: var(--qo-ink);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > span {
  font-size: 11px;
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder > p {
  margin: 6px 0 8px;
  color: var(--qo-muted);
  font-size: 12px;
  line-height: 19px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-total {
  font-size: 17px;
  color: var(--qo-ink);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-actions {
  align-items: center;
  gap: 6px 10px;
  padding: 7px 0;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-actions > div:first-child > small {
  display: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-buttons {
  flex-wrap: nowrap;
  gap: 6px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-buttons button {
  min-height: 32px;
  height: 32px;
  padding: 4px 10px;
  border-color: #d0dae9;
  border-radius: 5px;
  color: #365779;
  font-size: 12px;
  font-weight: 600;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder #qoPrintStatus {
  font-size: 12px;
  line-height: 18px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 1px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #d9e4f6;
  border-radius: 6px;
  background: #f4f7fc;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > span {
  grid-column: 2;
  font-size: 11px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > strong {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  float: none;
  margin: 0;
  font-size: 48px !important;
  line-height: 1.1;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > strong:only-child,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > span + strong:last-child {
  grid-column: 1 / -1;
  grid-row: auto;
  font-size: 14px !important;
  line-height: 20px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > b {
  grid-column: 2;
  padding: 0;
  font-size: 12px;
  line-height: 18px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > div {
  grid-column: 2;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting::after {
  display: none;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom-color: #edf0f4;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > img,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > .qo-no-image {
  width: 100%;
  height: clamp(170px, 22vh, 210px);
  min-width: 0;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #f8fafc;
  object-fit: contain;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > .qo-product-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product-copy > strong {
  font-size: 14px;
  line-height: 22px;
  color: var(--qo-ink);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product-copy > p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--qo-muted);
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity {
  min-width: 96px;
  padding: 8px 12px;
  gap: 6px;
  border-width: 1px;
  border-radius: 6px;
  background: #f1f6fd;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-quantity > strong {
  font-size: 52px;
  line-height: 1;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-quantity > span {
  font-size: 25px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity-multiple {
  background: #fff4df;
  border-color: #e8c386;
  color: #9c4600;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-top: 6px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar > details {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar > details > summary {
  padding: 5px 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--qo-muted);
  cursor: pointer;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoHistory,
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoTiming {
  position: absolute;
  bottom: calc(100% + 7px);
  z-index: 20;
  width: min(620px, calc(100vw - 270px));
  max-height: min(420px, 48dvh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  box-shadow: 0 8px 28px #24324720;
  background: #fff;
  text-align: left;
  color: #475467;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoHistory {
  left: 0;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoTiming {
  right: 0;
  font-size: 12px;
  line-height: 20px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-row {
  gap: 10px;
  padding: 9px 0;
  font-size: 12px;
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings {
  padding: 12px 2px 20px;
}

@media (min-width: 1001px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] > #content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera video {
    flex: 1 1 0;
    width: 100%;
    height: 0;
    min-height: 0;
    object-fit: contain;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-footer {
    flex: 0 0 auto;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-empty {
    height: 100%;
    min-height: 0;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

}

@media (min-width: 1001px) and (max-height: 720px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] {
    padding-block: 8px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] > .topbar {
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar,
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-station-row,
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback {
    margin-bottom: 6px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > img,
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > .qo-no-image {
    height: 170px;
  }
}

@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 12px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
    grid-template-columns: 126px 70px minmax(0, 1fr);
    gap: 8px 12px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar {
    flex-wrap: wrap;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera {
    height: auto;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera video {
    height: clamp(250px, 42vh, 460px);
    min-height: 0;
    flex: none;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-empty {
    height: auto;
    min-height: 260px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoHistory,
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoTiming {
    width: min(620px, calc(100vw - 48px));
  }
}

@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons button {
    flex: 1;
    min-width: 0;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-controls {
    justify-content: flex-start;
    width: 100%;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorSelect {
    max-width: 52vw;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts {
    grid-template-columns: 1fr;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product {
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr);
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-buttons {
    width: auto;
    margin-left: auto;
  }

  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-buttons button {
    padding-inline: 7px;
  }
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-timing { display:none; }

/* Keep secondary order context beside the tabs, not above the camera. */
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar {
  justify-content: flex-start;
  gap: 8px 16px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar #qoOrderFacts {
  flex: 1 1 350px;
  width: auto;
  min-width: 300px;
  max-width: 680px;
  grid-template-columns: minmax(130px, .7fr) minmax(160px, 1.3fr);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar #qoOrderFacts > div {
  min-height: 32px;
  padding: 3px 8px;
  gap: 3px 8px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar #qoOrderFacts strong {
  font-size: 15px;
  line-height: 22px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-controls {
  margin-left: auto;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-controls[data-confirmed="true"]:has(#qoOperatorPicker:not([hidden])) #qoCurrentOperator {
  display: block;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress:not(.qo-progress-error):not(.qo-progress-complete) .qo-progress-heading > span {
  display: none;
}
#appView.app-shell .workspace[data-view="quickOutbound"]:has(#qoPanel-settings:not([hidden])) #qoOrderFacts {
  display: none;
}
@media (max-width: 1100px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar {
    flex-wrap: wrap;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar #qoOrderFacts {
    flex: 1 1 300px;
  }
}
@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar #qoOrderFacts {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

/* Parcel identity, bin and reprint stay visible while its products scroll. */
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-summary,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-tools {
  flex: 0 0 auto;
  min-width: 0;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  margin: 6px 0 8px;
  color: var(--qo-muted);
  font-size: 12px;
  line-height: 19px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting {
  margin: 0 0 8px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProducts {
  flex: 1 1 0;
  min-height: 96px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9d1dd transparent;
  scrollbar-gutter: stable;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProducts:focus-visible {
  outline: 2px solid #7ca7ed;
  outline-offset: -2px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProducts.qo-products-multiple .qo-product > img,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProducts.qo-products-multiple .qo-product > .qo-no-image {
  height: clamp(110px, 16vh, 170px);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-tools {
  margin-top: 8px;
  border-top: 1px solid #edf0f4;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-weight-rule {
  margin: 6px 0;
  color: var(--qo-muted);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-actions {
  margin: 0;
  padding: 6px 0 0;
  border: 0;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-empty {
  flex: 1;
}
@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder {
    order: -1;
    overflow: visible;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProducts {
    flex: none;
    min-height: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
    gap: 10px;
  }
}
@media (min-width: 1001px) and (max-height: 540px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
    flex: none;
    height: 350px;
  }
}

/* Compact command area and one calm palette for the whole station. */
#appView.app-shell .workspace[data-view="quickOutbound"] {
  --qo-accent: #365e7c;
  --qo-success: #246b55;
  --qo-error: #9a3d3d;
  --qo-line: #dfe5eb;
  --qo-ink: #26394a;
  --qo-muted: #697986;
  background: #f3f5f7;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
  grid-template-columns: 126px 70px minmax(150px, 300px) minmax(180px, 1fr) auto;
  gap: 10px 16px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentOperator {
  display: block;
  max-width: 100%;
  color: var(--qo-ink);
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorSelect {
  width: 150px;
  max-width: none;
  height: 27px;
  min-height: 27px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorConfirm {
  height: 27px;
  min-height: 27px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoStart.primary {
  border-color: var(--qo-accent);
  background: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button[aria-selected="true"] {
  color: var(--qo-accent);
  border-bottom-color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > div {
  background: #fff;
  border-left-color: #bdcbd7;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts strong,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-total {
  color: var(--qo-ink);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting {
  border-color: #d7e1e9;
  background: #f1f5f8;
  color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity {
  border-color: #d2dde6;
  background: #f1f5f8;
  color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity-multiple {
  border-color: #e2d4bf;
  background: #f8f3eb;
  color: #825c30;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-label-buttons button {
  border-color: #cbd7e0;
  color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera {
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  max-height: calc(100% - 150px);
  overflow: hidden;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera video {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: contain;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  gap: 8px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoStatus {
  color: var(--qo-ink);
  font-size: 21px;
  line-height: 29px;
  font-weight: 700;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoStatus[data-tone="error"] {
  color: var(--qo-error);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback #qoUploadStatus {
  font-size: 17px;
  line-height: 26px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress {
  grid-template-columns: 1fr;
  flex: 0 0 auto;
  padding: 12px 14px;
  gap: 10px;
  border-color: #d7e1e9;
  background: #eef3f7;
  color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > strong {
  font-size: 25px;
  line-height: 32px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > span {
  font-size: 17px;
  line-height: 25px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step {
  font-size: 14px;
  line-height: 22px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-active {
  color: var(--qo-accent);
  border-color: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-active > span {
  background: var(--qo-accent);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-complete {
  background: #f0f6f2;
  border-color: #cbded2;
  color: var(--qo-success);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-done {
  color: var(--qo-success);
  border-color: #80ae96;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-done > span {
  background: #e1eee5;
  color: var(--qo-success);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-error,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanNotice:not(:empty) {
  border-color: #e6cdca;
  background: #fbf3f2;
  color: var(--qo-error);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-error {
  color: var(--qo-error);
  border-color: #c48f89;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-step.is-error > span {
  background: #f3dfdc;
  color: var(--qo-error);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanNotice:not(:empty) {
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoResult {
  color: var(--qo-success);
  background: #f0f6f2;
  border-color: #cbded2;
  font-size: 25px;
  line-height: 32px;
}
@media (min-width: 1001px) and (max-width: 1200px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
    grid-template-columns: 120px 70px minmax(150px, 300px) auto;
    gap: 8px 12px;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field {
    grid-column: 3;
    grid-row: 1;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons {
    grid-column: 4;
    grid-row: 1;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 8px 16px;
  }
}
@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
    grid-template-columns: 126px 70px minmax(0, 1fr);
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-scan-field {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack {
    height: auto;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera {
    max-height: none;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback {
    flex: none;
    overflow: visible;
  }
}
@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons {
    grid-row: 4;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanInput:focus {
  outline: 2px solid #a4b6c4;
  border-color: #6e8a9f;
  box-shadow: none;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-footer {
  font-size: 14px;
  line-height: 22px;
}
/* The stage card already explains a current failure; keep the parcel code nearby. */
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback:has(#qoProgress.qo-progress-error:not([hidden])) #qoStatus[data-tone="error"] {
  display: none;
}
@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
    display: flex;
    flex-direction: column;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack {
    display: contents;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback {
    order: -2;
  }
}

#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-metric > span {
  white-space: nowrap;
}

/* Fee receipts stay separate from merchandise prices and the next scan. */
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-fees,
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-last-success {
  flex: 0 0 auto; padding: 12px 14px; border: 1px solid var(--qo-line);
  border-radius: 10px; background: #fff; min-width: 0;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-fees { margin: 0 0 10px; background: #f6f9fb; }
.qo-fee-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qo-fee-totals > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qo-fee-totals span,.qo-last-heading > div > span { color: #657585; font-size: 12px; }
.qo-fee-totals strong { font-size: 25px; line-height: 32px; color: #26394a; font-variant-numeric: tabular-nums; }
.qo-fee-totals > div + div strong { font-size: 21px; color: #365e7c; }
.qo-fee-details { margin-top: 6px; font-size: 12px; }
.qo-fee-details summary { cursor: pointer; color: #52677a; padding: 4px 0; }
.qo-fee-lines { max-height: 132px; overflow: auto; overscroll-behavior: contain; }
.qo-fee-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #e4eaf0; font-size: 13px; }
.qo-fee-line > span { min-width: 0; overflow-wrap: anywhere; }
.qo-fee-line b { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.qo-fee-line small { display: block; margin-top: 3px; font-size: 12px; color: #6d7d8c; }
.qo-fee-line.is-pending { color: #8b652b; }
.qo-fee-loading,.qo-fee-muted,.qo-last-product { color: #6d7d8c; font-size: 12px; line-height: 19px; }
.qo-fee-error { display: flex; align-items: center; justify-content: space-between; color: #9a3d3d; font-size: 13px; }
.qo-last-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qo-last-heading > div { display: grid; gap: 4px; min-width: 0; }
.qo-last-heading strong { font-size: 18px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.qo-last-ok { color: #246b55; background: #edf6f0; padding: 4px 7px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.qo-last-product { margin: 5px 0 10px; overflow-wrap: anywhere; }
.qo-last-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.qo-last-actions button { min-height: 40px; padding: 8px 18px; }
.qo-last-empty { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #6d7d8c; }
.qo-last-empty strong { color: #415569; }
.qo-fee-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; border: 1px solid #dfe5eb; border-radius: 14px; padding: 22px; color: #26394a; box-shadow: 0 20px 70px #152b4433; }
.qo-fee-dialog::backdrop { background: #14243566; }
.qo-fee-dialog header,.qo-fee-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qo-fee-dialog h2 { margin: 0; font-size: 20px; }
.qo-fee-dialog header button { border: 0; font-size: 22px; background: transparent; }
.qo-fee-target { display: grid; gap: 5px; margin: 16px 0; padding: 12px; background: #f3f6f8; border-radius: 8px; overflow-wrap: anywhere; }
.qo-fee-target span,.qo-fee-target small { font-size: 12px; color: #657585; }
.qo-fee-target strong { font-size: 19px; }
.qo-fee-dialog label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.qo-fee-dialog input,.qo-fee-dialog select,.qo-fee-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #cfd8e1; border-radius: 7px; font: inherit; font-size: 16px; background: #fff; }
.qo-fee-dialog :disabled { opacity: .6; }
.qo-fee-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qo-fee-dialog-status { min-height: 22px; margin: 10px 0; font-size: 14px; line-height: 22px; }
.qo-fee-dialog footer { justify-content: flex-end; }
.qo-fee-dialog button { min-height: 42px; padding: 8px 14px; border: 1px solid #cfd8e1; border-radius: 7px; cursor: pointer; background: #fff; font: inherit; }
.qo-fee-dialog button.primary { color: #fff; background: #365e7c; border-color: #365e7c; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback { flex: 1 1 auto; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera { max-height: calc(100% - 265px); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong { font-size: 25px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-total { font-size: 20px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts .qo-amount-card { border-left: 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts .qo-amount-card strong { font-size: 14px; font-weight: 600; }
@media (max-width:1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera { max-height: none; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-last-success { order: 2; }
}
@media (max-width:600px) {
  .qo-fee-totals strong { font-size: 23px; }
  .qo-fee-totals > div { display: grid; gap: 2px; }
  .qo-last-empty { flex-wrap: wrap; }
  .qo-fee-dialog { padding: 16px; }
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-lines { max-height: 82px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess { padding: 10px 14px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess .qo-last-heading button { min-height: 40px; flex: 0 0 auto; padding: 8px 14px; background: #365e7c; border-color: #365e7c; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess .qo-last-product { margin: 4px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera { max-height: calc(100% - 275px); }
@media(max-width:1000px){
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera { max-height: none; }
}

/* Current work first; receipts and workstation preferences remain secondary. */
#appView.app-shell .workspace[data-view="quickOutbound"] .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .topbar > div:first-child:has(#pageTitle:empty):has(#pageDesc:empty) { display: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions { order: 1; flex: none; width: 100%; min-width: 0; grid-column: 1; grid-row: 1; }
#appView.app-shell .workspace[data-view="quickOutbound"] #tabletTools { order: 2; flex: none; grid-column: 2; grid-row: 1; margin-left: auto; align-self: end; padding-bottom: 1px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #tabletTools .tablet-mode-toggle { font-size: 12px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-panel { border: 0; box-shadow: 0 2px 10px #2432470a; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; width: 100%; margin: 8px 0 10px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts .qo-carrier-card { order: -1; flex: 1 1 220px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts .qo-amount-card { flex: 0 0 auto; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts strong { margin: 0; font-size: 13px; font-weight: 600; text-align: left; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts small { color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-label { color: var(--qo-muted); font-size: 12px; line-height: 16px; font-weight: 400; }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCurrentOperator { line-height: 36px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-duplicate { padding-block: 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-duplicate .qo-progress-heading { margin: 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback { flex: 0 0 auto; overflow: auto; max-height: 40%; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera { flex: 0 1 auto; max-height: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera video { flex: 0 1 auto; height: auto; max-height: min(58vh, 680px); }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-footer[hidden], #appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess[hidden] { display: none !important; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress { border: 0; box-shadow: 0 2px 8px #24324708; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading { gap: 4px 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > strong { font-size: 23px; overflow-wrap: anywhere; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > span { font-size: 16px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-feedback:has(#qoProgress.qo-progress-error:not([hidden])) .qo-statebar:has(#qoUploadStatus:empty) { display: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanNotice:not(:empty), #appView.app-shell .workspace[data-view="quickOutbound"] #qoResult { border: 0; box-shadow: 0 2px 8px #24324708; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; padding: 9px 12px; border: 0; border-radius: 6px; margin: 6px 0 4px; background: #f5f7f9; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-totals strong { font-size: 19px; line-height: 26px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-totals > div + div strong { font-size: 14px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-details { margin: 0 0 0 auto; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees:has(.qo-fee-details[open]) { display: block; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-details[open] { margin-top: 6px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-details summary { padding: 3px 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong { font-size: 24px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product { padding: 14px 0; border: 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > img, #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-no-image { border: 0; background: #f6f7f9; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity { border: 0; border-radius: 8px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity:not(.qo-quantity-multiple) { background: transparent; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity strong { font-size: 48px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-previous { margin: 8px 0 4px; padding: 12px; background: #f5f7f9; border-radius: 8px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-previous header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #415569; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-previous header b { position: static; font-size: 14px; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-previous-body { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-previous-meta { display: grid; gap: 5px; flex: 1; min-width: 180px; color: #657585; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-proof-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-proof-thumbnails a { display: block; width: 116px; height: 82px; border-radius: 6px; overflow: hidden; background: white; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-proof-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-proof-empty { font-size: 12px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess { margin-top: auto; border: 0; box-shadow: 0 2px 10px #2432470a; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess .qo-last-heading strong { font-size: 16px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess .qo-fee-totals strong { font-size: 18px; line-height: 24px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess .qo-fee-totals > div + div strong { font-size: 14px; }
@media (max-width: 1000px) {
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions { flex-basis: 100%; }
#appView.app-shell .workspace[data-view="quickOutbound"] #tabletTools { margin-left: auto; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts { justify-content: flex-start; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar { flex-wrap: wrap; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack .qo-feedback { max-height: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera video { max-height: none; }
}
@media (max-width: 600px) {
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong { font-size: 20px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity strong { font-size: 42px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts { flex-basis: 100%; }
}

@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] > .topbar { grid-template-columns: minmax(0, 1fr); }
  #appView.app-shell .workspace[data-view="quickOutbound"] #tabletTools { grid-column: 1; grid-row: 2; width: auto; }
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts .qo-carrier-card { border-left: 0; }

#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees .qo-fee-totals > div { display: flex; align-items: baseline; gap: 8px; }

@media (max-width: 1300px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls { grid-template-columns: auto minmax(0, auto) auto; align-items: center; gap: 6px 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCurrentOperator { line-height: 28px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorHint { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls { grid-template-columns: auto minmax(0, 1fr); }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorPicker { grid-column: 1 / -1; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong { white-space: normal; overflow-wrap: anywhere; }
}

@media (min-width: 1601px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls { grid-template-columns: minmax(0, max-content) auto; justify-content: start; column-gap: 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-label { grid-column: 1 / -1; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorPicker { grid-column: 2; grid-row: 2; align-self: center; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorHint { grid-column: 1 / -1; }
}
@media (min-width: 1001px) and (max-width: 1600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions:has(#qoOperatorPicker:not([hidden])) #qoCommandbar { grid-template-columns: 126px 70px minmax(150px, 300px) minmax(0, 1fr); }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions:has(#qoOperatorPicker:not([hidden])) .qo-operator-controls { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 6px 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions:has(#qoOperatorPicker:not([hidden])) #qoCurrentOperator { line-height: 28px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions:has(#qoOperatorPicker:not([hidden])) .qo-scan-field { grid-column: 3; grid-row: 1; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions:has(#qoOperatorPicker:not([hidden])) #qoHeaderButtons { grid-column: 4; grid-row: 1; }
}

/* Station quality pass: one continuous work surface, restrained type and clear device state. */
#appView.app-shell .workspace[data-view="quickOutbound"] {
  --qo-ink: #1e2937;
  --qo-muted: #596779;
  --qo-line: #dde3ea;
  --qo-accent: #074bde;
  --qo-success: #226844;
  background: #f5f6f8;
  color: var(--qo-ink);
  font-variant-numeric: tabular-nums;
  padding: 16px 20px 10px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar {
  align-items: center;
  gap: 14px 22px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions :is(.qo-metric,.qo-scan-field) > span {
  font-size: 12px; color: var(--qo-muted); margin-bottom: 6px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoWeight {
  font-size: 25px; letter-spacing: -.7px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-count { padding-left: 20px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoScanInput {
  height: 42px; border: 1px solid #c9d2df; border-radius: 5px; font-size: 14px; background: white;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanInput:focus {
  border-color: var(--qo-accent); outline: 2px solid #074bde25; outline-offset: 2px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanInput[readonly] { background: #f8f9fb; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentOperator { font-size: 20px; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoHeaderButtons button {
  height: 38px; min-height: 38px; border-radius: 5px; font-weight: 600;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoStart.primary {
  background: var(--qo-accent); border-color: var(--qo-accent); color: #fff;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoRetry { color: #9a3d3d; border-color: #cfaeaa; background: white; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar {
  min-height: 42px; margin-bottom: 12px; gap: 12px 24px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs { gap: 24px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button {
  height: 42px; min-height: 42px; font-size: 13px; color: var(--qo-muted); font-weight: 500;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button[aria-selected="true"] {
  color: var(--qo-ink); border-bottom-color: var(--qo-ink); font-weight: 700;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-station-health {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: flex-end; min-width: 0;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-health-item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--qo-muted); font-size: 12px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-health-item b { font-weight: 500; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-health-item i { width: 5px; height: 5px; border-radius: 50%; background: #b9a27e; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-health-item.is-ready i { background: var(--qo-success); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-panel {
  border: 1px solid var(--qo-line); border-radius: 6px; box-shadow: none;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera { background: #fff; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-heading {
  display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto;
  min-height: 36px; padding: 0 14px; background: #fff; color: var(--qo-ink); font-size: 12px; font-weight: 600;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCameraLive { font-weight: 400; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCameraLive[data-live="true"]::before {
  content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; border-radius: 50%; background: var(--qo-success);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-viewport {
  position: relative; min-width: 0; min-height: 0; aspect-ratio: 16 / 9; background: #131b27;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-stack .qo-camera video {
  display: block; width: 100%; height: 100%; max-height: none; object-fit: contain;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-idle {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 10px; background: #edf0f4; color: var(--qo-muted); font-size: 13px; text-align: center; padding: 16px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-idle strong { font-size: 22px; font-weight: 600; color: #465568; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-idle button { margin-top: 10px; font-size: 12px; background: white; border-radius: 5px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-idle[hidden] { display: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-camera-footer { padding: 7px 14px; font-size: 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-camera-stack { gap: 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder { padding: 20px 22px 14px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong {
  font-size: 25px; letter-spacing: -.7px; line-height: 34px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-meta { font-size: 12px; line-height: 20px; margin: 4px 0 14px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts { gap: 10px 24px; padding-bottom: 14px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts > div { padding: 0; gap: 6px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting {
  display: grid; grid-template-columns: minmax(65px,auto) minmax(0,1fr); gap: 2px 18px;
  align-items: center; padding: 10px 14px; margin: 0 0 12px; border: 0; border-left: 2px solid #074bde;
  border-radius: 0; background: #f2f5fa; color: var(--qo-ink);
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > span { grid-column: 1 / -1; font-size: 11px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > strong {
  grid-column: 1; grid-row: 2 / 4; float: none; margin: 0; font-size: 42px !important; letter-spacing: -2px; line-height: 1.2;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > b { padding: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting > div { grid-column: 2; margin: 0; font-size: 11px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting::after { display: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentFees { background: transparent; border-top: 1px solid var(--qo-line); border-bottom: 1px solid var(--qo-line); border-radius: 0; padding: 9px 0; margin: 0 0 4px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product {
  border-bottom: 1px solid #e9edf2; padding: 18px 0; gap: 14px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product:last-child { border-bottom: 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product > img {
  background: #f7f8fa; border-radius: 4px; cursor: zoom-in;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product-copy > strong {
  font-size: 16px; line-height: 1.6; color: var(--qo-ink); font-weight: 600;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product-copy p { font-size: 12px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity {
  min-width: 84px; padding: 10px 14px; border-radius: 4px; letter-spacing: -1px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity-multiple {
  color: #865521; background: #f8f2e8;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-product .qo-quantity strong { font-size: 46px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress {
  box-shadow: none; border: 1px solid var(--qo-line); border-left: 3px solid var(--qo-accent); border-radius: 4px; background: white;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-complete { border-left-color: var(--qo-success); background: #f5f9f6; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-error { border-left-color: var(--qo-error); background: #fcf6f5; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > strong { font-size: 24px; line-height: 32px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress .qo-progress-heading > span { font-size: 14px; line-height: 22px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoLastSuccess {
  margin-top: auto; box-shadow: none; border: 1px solid var(--qo-line); border-radius: 4px; padding: 12px 14px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-empty {
  display: flex; flex: 1; gap: 0; padding: 20px; min-height: 270px; height: 100%; color: var(--qo-muted);
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty-mark {
  font-size: 80px; font-weight: 300; letter-spacing: -6px; line-height: 1; color: #d7dfe9; margin-bottom: 26px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty h2 { font-size: 22px; line-height: 32px; font-weight: 600; color: var(--qo-ink); margin: 0 0 8px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty p { font-size: 13px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty-flow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding: 0; margin: 30px 0; list-style: none; font-size: 12px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty-flow span { display: block; font-size: 11px; color: #6c7b90; margin-bottom: 7px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty button { border-radius: 5px; font-size: 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar { min-height: 34px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-panel[open] {
  position: absolute; bottom: 0; left: 0; z-index: 30; width: min(700px,calc(100vw - 280px));
  background: white; border: 1px solid var(--qo-line); padding: 12px 16px; border-radius: 5px; box-shadow: 0 8px 32px #1e29371a;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar .qo-history-panel[open] > summary { padding: 0 0 10px; color: var(--qo-ink); font-weight: 600; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoHistoryCount { margin-left: 8px; font-size: 11px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 8px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-tools input { min-width: 0; flex: 1; width: 180px; height: 34px; font-size: 12px; border-radius: 4px; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-tools button { min-height: 34px; font-size: 12px; border-radius: 4px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoHistoryStatus { flex-basis: 100%; font-size: 12px; color: var(--qo-muted); overflow-wrap: anywhere; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoHistory {
  position: static; width: auto; max-height: min(360px,45dvh); padding: 0; border: 0; box-shadow: none;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; font-size: 13px;
}
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-identity { min-width: 0; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-identity strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-identity span,
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-weight small { display: block; margin-top: 4px; font-size: 11px; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-empty { font-size: 13px; padding: 18px 0; color: var(--qo-muted); }
#appView.app-shell .workspace[data-view="quickOutbound"] :is(button,summary,input,select,[role="button"]):focus-visible { outline: 2px solid var(--qo-accent); outline-offset: 3px; }
.qo-media-dialog { width: min(920px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dde3ea; border-radius: 6px; color: #1e2937; box-shadow: 0 16px 64px #1e293733; }
.qo-media-dialog::backdrop { background: #10182888; }
.qo-media-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid #dde3ea; }
.qo-media-dialog h2 { margin: 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.qo-media-dialog header button { flex: 0 0 auto; border-radius: 4px; }
.qo-media-body { display: grid; place-items: center; min-height: 200px; padding: 16px; overflow: auto; }
.qo-media-body :is(img,video) { display: block; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.qo-media-body p { font-size: 14px; color: #596779; }
@media (min-width: 1001px) and (max-height: 820px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] { padding-top: 10px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar { min-height: 34px; margin-bottom: 8px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button { height: 34px; min-height: 34px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder { padding: 14px 18px 10px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-meta { margin-bottom: 8px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrderFacts { padding-bottom: 8px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-sorting { padding: 6px 12px; margin-bottom: 6px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress { padding: 10px 12px; gap: 6px; }
}
@media (max-width: 1000px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] { padding: 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-station-health { justify-content: flex-start; gap: 6px 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar { align-items: flex-start; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout { gap: 14px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-panel[open] { width: min(700px,calc(100vw - 32px)); }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder { padding: 16px; }
}
@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-station-health { width: 100%; justify-content: space-between; gap: 4px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-health-item { font-size: 11px; gap: 4px; min-height: 36px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-tabs button { min-height: 44px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOrder .qo-order-title > strong { font-size: 21px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-empty-flow { gap: 16px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-row { gap: 8px; font-size: 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-history-row button { font-size: 11px; min-height: 36px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-bottom-bar #qoHistory { max-height: 45dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress { animation: qo-stage-reveal 160ms ease-out; }
  .qo-media-dialog[open] { animation: qo-stage-reveal 160ms ease-out; }
}
@keyframes qo-stage-reveal { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
/* Setup uses the same quiet type and controls as the live station. */
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-setting-card {
  border: 1px solid var(--qo-line); border-radius: 5px; box-shadow: none; padding: 20px; background: white;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-device-icon { display: none; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-setting-card h3 { font-size: 15px; font-weight: 600; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-device-tag { background: transparent; color: var(--qo-muted); border: 0; font-size: 12px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings :is(input,select,button) { border-radius: 4px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings :is(.qo-help,.qo-footnote,.qo-connection-status) { color: var(--qo-muted); font-size: 12px; line-height: 1.7; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-settings-intro h2 { font-size: 18px; font-weight: 600; color: var(--qo-ink); }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-scale-reading { background: #f5f7f9; border: 0; border-radius: 4px; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-settings .qo-scale-reading strong { color: var(--qo-ink); }
@media (min-width: 1001px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoPanel-work .qo-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
}
@media (max-width: 600px) {
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions #qoCommandbar { gap: 8px 12px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #pageHeaderActions .qo-operator-controls {
    grid-template-columns: minmax(95px,1fr) auto; gap: 0 10px; align-items: center;
  }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-operator-label { grid-column: 1; grid-row: 1; font-size: 11px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoCurrentOperator { grid-column: 1; grid-row: 2; font-size: 16px; line-height: 22px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorPicker { grid-column: 2; grid-row: 1 / 3; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorSelect { width: 130px; max-width: 36vw; }
  #appView.app-shell .workspace[data-view="quickOutbound"] #qoOperatorConfirm { min-width: 40px; padding: 3px 6px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-viewbar { gap: 0; margin-bottom: 8px; }
  #appView.app-shell .workspace[data-view="quickOutbound"] .qo-station-health { padding: 0; }
  #appView.app-shell .workspace[data-view="quickOutbound"] > .topbar { margin-bottom: 4px; padding-bottom: 6px; }
}
/* Keep receipt feedback independent of progress rows and captured-parcel focus. */
#appView.app-shell .workspace[data-view="quickOutbound"] #qoSuccessNotice {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(900px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff7900;
  box-shadow: none;
  pointer-events: none;
  text-align: center;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoSuccessNotice[hidden] {
  display: none;
}
#qoSuccessNotice .qo-success-context { font-size: 17px; font-weight: 600; }
#qoSuccessNotice .qo-success-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: clamp(44px, 14vw, 128px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
}
#qoSuccessNotice .qo-success-title > span {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  flex: none;
  padding: 0;
  line-height: 1;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 1em;
}
#qoSuccessNotice .qo-success-code {
  max-width: 100%;
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1.35;
  color: inherit;
  overflow-wrap: anywhere;
}
#qoSuccessNotice .qo-success-weight { font-size: 19px; font-variant-numeric: tabular-nums; }

/* Keep all abnormal workbench feedback distinctly red. */
#appView.app-shell .workspace[data-view="quickOutbound"] { --qo-error: #e11d2e; }
#appView.app-shell .workspace[data-view="quickOutbound"] #qoProgress.qo-progress-error .qo-progress-heading > strong,
#appView.app-shell .workspace[data-view="quickOutbound"] #qoScanNotice:not(:empty) {
  color: #e11d2e;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#appView.app-shell .workspace[data-view="quickOutbound"] #qoStatus[data-tone="error"],
#appView.app-shell .workspace[data-view="quickOutbound"] #qoDebugStatus[data-tone="error"] { color: #e11d2e !important; }
#appView.app-shell .workspace[data-view="quickOutbound"]:has(#qoRetry:not([hidden])) #qoUploadStatus { color: #e11d2e; }
