/* Warehouse workstation: readable at a distance, clear keyboard focus. */
:root {
  --ink: #203c30;
  --muted: #647b6b;
  --line: #dfe7df;
  --bg: #f4f7f3;
}
body {
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
button,
input,
select {
  transition:
    border-color 0.16s,
    background-color 0.16s,
    box-shadow 0.16s;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible {
  outline: 3px solid #85b99b;
  outline-offset: 3px;
}
aside {
  width: 208px;
  background: #fbfcfa;
}
main {
  margin-left: 208px;
}
header {
  height: 62px;
  background: #fff;
}
.content {
  max-width: 1500px;
  padding: 28px 32px;
}
.brand {
  letter-spacing: -1px;
}
.brand small {
  letter-spacing: 0.7px;
}
.warehouse {
  font-size: 12px;
  background: #f3f6f0;
}
.nav {
  font-size: 13px;
}
.nav.active {
  box-shadow: inset 3px 0 #2b7354;
}
.page-heading p {
  font-size: 13px;
  color: #677e6c;
  max-width: 680px;
}
.eyebrow {
  color: #657e6d;
  font-size: 10px;
}
h1 {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -1px;
}
.stats {
  padding: 18px 0;
  margin: 22px 0;
  box-shadow: 0 3px 12px #264d3410;
}
.stats span {
  font-size: 12px;
  color: #6b7f6f;
}
.stats strong {
  font-size: 30px;
  font-weight: 650;
}
.stats > div {
  padding-left: 25px;
}
.panel {
  border-radius: 9px;
}
.panel-title {
  padding: 18px 23px;
}
h2 {
  font-size: 15px;
}
.step {
  font-size: 11px;
}
.badge {
  font-size: 11px;
  color: #477658;
  background: #ecf4eb;
}
.workspace-grid {
  grid-template-columns: minmax(320px, 0.91fr) minmax(360px, 1.09fr);
  gap: 20px;
}
.scan-panel {
  box-shadow: 0 4px 18px #305c3e09;
}
label {
  font-size: 13px;
}
label span {
  font-size: 11px;
  color: #758a7a;
}
input::placeholder {
  font-size: 13px;
  color: #879a8a;
}
#scanForm input {
  height: 46px;
  font-size: 15px;
  margin-bottom: 18px;
}
#sku {
  font-size: 19px !important;
  font-family: Consolas, "Microsoft YaHei", monospace;
  border-width: 2px;
  height: 52px !important;
}
.input-icon > span {
  top: 10px;
}
.sku-input > span {
  top: 12px;
}
.scan-submit {
  font-size: 14px;
  padding: 12px 16px;
}
.scan-options {
  gap: 18px;
}
.scan-options label {
  font-size: 12px;
  color: #526e5a;
}
.scan-options input {
  width: 15px;
  height: 15px;
}
.hint {
  font-size: 11px;
  color: #718475;
}
.undo-action {
  padding: 0 23px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.undo-shortcut {
  font-size: 11px;
  color: #8a735b;
}
#undoBtn {
  color: #94613b;
  background: #fffcf6;
  border-color: #e7d9c6;
}
#undoBtn:hover {
  background: #f8eddf;
}
.destination {
  background: #f1f7ef;
  border-color: #d4e3d1;
}
.destination .panel-title {
  background: #f8fbf6;
}
.destination-number {
  font-size: clamp(36px, 4vw, 64px);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-weight: 700;
  letter-spacing: 0;
  margin: 17px 0;
  color: #1d5c3e;
  line-height: 1.15;
}
.destination-sku {
  font-size: 16px;
  font-weight: 500;
}
.destination p {
  font-size: 13px;
  color: #5d7865;
}
.destination-qty {
  margin-top: 23px;
  font-size: 16px !important;
}
.print-current {
  margin-top: 18px;
}
.destination-footer {
  color: #6e8673;
  font-size: 11px;
}
.box-illustration {
  transform: none;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  color: #8bab8e;
}
.box-illustration svg {
  width: 100%;
  height: 100%;
}
.waiting {
  font-size: 21px;
  color: #56745b;
}
.flow {
  font-size: 12px;
  color: #728b77;
}
.seal-panel {
  margin: 20px 0 24px;
  gap: 26px;
  padding: 20px 23px;
  background: #fffefb;
  border-color: #e1e3d5;
}
.seal-panel p {
  font-size: 12px;
  color: #78836e;
  margin-left: 39px;
  max-width: 390px;
}
.full-barcode-card {
  padding: 13px 24px 10px;
  max-width: 430px;
  border-color: #ccd9cb;
  box-shadow: 0 3px 10px #325d3010;
  flex-shrink: 0;
}
.full-barcode-card svg {
  height: 68px;
  shape-rendering: crispEdges;
}
.full-barcode-caption span {
  font-size: 11px;
}
#sealTarget {
  font-size: 14px;
  color: #315b40;
  margin-top: 9px;
}
.records-heading {
  padding: 22px;
}
.records-heading p {
  font-size: 12px;
  color: #718372;
}
.record-actions input {
  font-size: 12px;
}
.record-actions select {
  font-size: 12px;
}
.record-actions .button {
  font-size: 12px;
}
th {
  font-size: 12px;
  color: #617866;
  padding: 14px 18px;
}
td {
  font-size: 12px;
  padding: 15px 18px;
}
tbody tr:hover {
  background: #f8fbf6;
}
.status {
  font-size: 11px;
  padding: 5px 8px;
}
.status.closed {
  background: #f1efe9;
  color: #8a7b65;
}
.void-qty {
  color: #a18c77;
  font-size: 10px;
}
.table-footer {
  font-size: 11px;
  color: #728775;
}
.table-wrap {
  max-height: 470px;
}
thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.empty {
  padding: 45px;
  color: #83937f;
}
.table-footer span:first-child {
  font-weight: 600;
}
.storage-notice {
  padding: 15px 20px;
  border: 1px solid #d8aa91;
  background: #fff2e8;
  color: #8a492e;
  border-radius: 6px;
  margin-top: 20px;
  line-height: 1.8;
}
.storage-notice[hidden] {
  display: none;
}
dialog {
  max-height: 90vh;
  overflow: auto;
  width: 500px;
  padding: 27px;
}
.undo-detail {
  margin: 18px 0;
  line-height: 1.9;
  padding: 16px;
  background: #f5f7f0;
  border-left: 3px solid #8da477;
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.dialog-actions .primary {
  margin: 0;
}
.undo-command-label {
  margin-top: 18px;
}
#undoCommand {
  width: 100%;
  font-size: 13px;
}
.undo-command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.undo-command-grid > div {
  border: 1px solid #e0e6db;
  border-radius: 5px;
  padding: 12px 8px;
  text-align: center;
}
.undo-command-grid svg {
  height: 42px;
  shape-rendering: crispEdges;
}
.undo-command-grid b {
  font:
    10px Consolas,
    "Microsoft YaHei",
    monospace;
  color: #68806b;
  display: block;
  margin-top: 7px;
}
@media (max-width: 1100px) {
  aside {
    width: 180px;
  }
  main {
    margin-left: 180px;
  }
  .content {
    padding: 24px 20px;
  }
  .workspace-grid {
    grid-template-columns: minmax(270px, 1fr) minmax(280px, 1fr);
  }
  .seal-panel {
    flex-direction: row;
    align-items: center;
  }
  .full-barcode-card {
    width: 45%;
    padding-inline: 15px;
  }
  .seal-panel p {
    margin-left: 0;
  }
  .seal-panel > div:first-child {
    flex: 1;
  }
}
@media (max-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .destination-number {
    font-size: 48px;
  }
  #destinationBody {
    min-height: 280px;
  }
  .seal-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .full-barcode-card {
    width: 100%;
    max-width: none;
  }
  .stats > div {
    padding-left: 14px;
  }
}
@media (max-width: 760px) {
  aside {
    width: 100%;
  }
  main {
    margin-left: 0;
  }
  .content {
    padding: 20px 14px;
  }
  .stats {
    margin: 20px 0;
  }
  .stats strong {
    font-size: 25px;
  }
  .stats span {
    font-size: 10px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .undo-action {
    flex-wrap: wrap;
  }
  .scan-options {
    flex-wrap: wrap;
  }
  .table-footer {
    flex-direction: column;
    gap: 7px;
  }
  .undo-command-grid {
    gap: 8px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading > .button {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.brand {
  white-space: nowrap;
  font-size: 21px;
  gap: 8px;
}
.brand small {
  font-size: 7px;
  letter-spacing: 0.5px;
}
.brand-icon {
  flex-shrink: 0;
}
.box-sku-list {
  width: min(90%, 420px);
  margin-top: 16px;
  display: grid;
  gap: 7px;
  max-height: 180px;
  overflow: auto;
  text-align: left;
}
.box-sku-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 13px;
  background: #ffffffa6;
  border: 1px solid #dce8d8;
  border-radius: 5px;
}
.box-sku-list span {
  font:
    13px Consolas,
    "Microsoft YaHei",
    monospace;
  overflow-wrap: anywhere;
}
.box-sku-list b {
  font-size: 15px;
  white-space: nowrap;
}
.sealed-summary {
  margin: 0 0 24px;
  border-color: #cbdcc7;
}
.sealed-summary[hidden] {
  display: none;
}
.sealed-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}
.sealed-items {
  display: block;
}
.manifest-order + .manifest-order {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e8df;
}
.manifest-order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.manifest-order-heading h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  color: #6e8270;
}
.manifest-order-heading code {
  color: #284d36;
  font-size: 14px;
  margin-left: 8px;
  overflow-wrap: anywhere;
}
.manifest-order-heading > span {
  color: #5c7a62;
  font-size: 12px;
  white-space: nowrap;
}
.manifest-order-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.next-tracking {
  display: block;
  margin: -8px 0 14px auto;
  padding: 0;
  font-size: 11px;
}
kbd {
  font:
    10px Consolas,
    monospace;
  background: #eef2ea;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 4px;
}
.record-actions {
  flex-wrap: wrap;
}
.identity-reminder {
  padding: 10px 12px;
  margin: 0 0 16px;
  border: 1px solid #e5d3ac;
  border-radius: 5px;
  background: #fffbef;
  color: #82602c;
  font-size: 12px;
  line-height: 1.7;
}
.identity-reminder[hidden] {
  display: none;
}
.identity-reminder span {
  display: block;
  color: #897958;
  font-size: 11px;
}
.identity-reminder b {
  font:
    600 13px Consolas,
    "Microsoft YaHei",
    monospace;
}
.seal-button {
  padding: 16px 24px;
  font-size: 16px;
  flex-shrink: 0;
  min-width: 96px;
}
.seal-panel {
  gap: 18px;
}
.record-panel table {
  table-layout: fixed;
}
.record-panel th:first-child {
  width: 20%;
}
.record-panel th:nth-child(2) {
  width: 25%;
}
.record-panel th:nth-child(3) {
  width: 55%;
}
.record-panel td {
  padding: 18px 22px;
  white-space: normal;
}
.record-panel .box-group-start:not(:first-child) > td {
  border-top: 2px solid #dce5d9;
}
.record-box-cell {
  vertical-align: top;
  background: #f8fbf5;
  border-right: 1px solid #e6ece2;
}
.record-box-cell > strong {
  display: block;
  font:
    650 16px Consolas,
    "Microsoft YaHei",
    monospace;
  color: #24553a;
  overflow-wrap: anywhere;
}
.record-box-meta {
  display: block;
  font-size: 11px;
  color: #85977e;
  margin-top: 7px;
}
.record-box-cell > .text-button {
  padding: 0;
  margin-top: 13px;
  font-size: 11px;
}
.record-order-cell {
  font:
    13px Consolas,
    "Microsoft YaHei",
    monospace;
  overflow-wrap: anywhere;
  color: #536d58;
  vertical-align: middle;
}
.record-sku-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.record-sku-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e3e9df;
  background: #f8faf6;
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 100%;
}
.record-sku-item code {
  font:
    13px Consolas,
    "Microsoft YaHei",
    monospace;
  overflow-wrap: anywhere;
}
.record-sku-item b {
  font-size: 14px;
  color: #2d6848;
  white-space: nowrap;
}
.record-sku-item.voided {
  background: #faf6f0;
  color: #9a8368;
}
.record-sku-item small {
  font-size: 10px;
  color: #a18e76;
}
@media (max-width: 760px) {
  .record-panel table {
    min-width: 590px;
  }
  .record-panel td {
    padding: 14px;
  }
  .record-panel th:first-child {
    width: 22%;
  }
  .record-panel th:nth-child(2) {
    width: 27%;
  }
  .record-panel th:nth-child(3) {
    width: 51%;
  }
}
@media (max-width: 900px) {
  .seal-button {
    width: 100%;
  }
}
.sealed-item {
  padding: 18px;
  border: 1px solid #dde5d9;
  border-radius: 6px;
  background: white;
}
.sku-barcode {
  padding: 0 6px;
}
.sku-barcode svg {
  display: block;
  width: 100%;
  height: 64px;
  shape-rendering: crispEdges;
}
.sealed-item-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.sealed-item-caption strong {
  font:
    14px Consolas,
    "Microsoft YaHei",
    monospace;
  overflow-wrap: anywhere;
}
.sealed-item-caption b {
  color: #276447;
  font-size: 24px;
  white-space: nowrap;
}
.barcode-unavailable {
  color: #9b633d;
  font-size: 12px;
}
@media (max-width: 760px) {
  .sealed-items {
    grid-template-columns: 1fr;
  }
}
.button[hidden],
.text-button[hidden] {
  display: none;
}
.record-box-cell > .record-print-sku {
  display: block;
  margin-top: 9px;
  font-weight: 600;
}
.open-boxes-panel {
  margin-top: 20px;
}
.open-boxes-panel .records-heading {
  padding-bottom: 14px;
}
.open-boxes-panel .records-heading p {
  font-size: 12px;
}
.open-boxes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}
.open-box-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe7db;
  background: #f8fbf5;
  padding: 15px;
  border-radius: 6px;
}
.open-box-card.selected {
  border-color: #42855b;
  box-shadow: 0 0 0 2px #dfeede;
}
.open-box-card strong {
  font:
    650 17px Consolas,
    "Microsoft YaHei",
    monospace;
  color: #2b5d3c;
  overflow-wrap: anywhere;
}
.open-box-card p {
  font-size: 11px;
  margin-top: 6px;
  color: #7a8e76;
}
.open-box-card .button {
  padding: 8px 13px;
}
.open-box-empty {
  padding: 0 0 4px;
  color: #83927c;
  font-size: 12px;
}
.seal-panel {
  flex-wrap: wrap;
}
.seal-panel .select-box-form {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 0 0;
  border-top: 1px solid #e5e8dc;
}
.select-box-form label {
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
}
.seal-panel .select-box-form input {
  flex: 1;
  width: auto;
}
.record-box-cell > .record-seal-action {
  margin-left: 14px;
  color: #876438;
  font-weight: 600;
}
@media (max-width: 760px) {
  .open-boxes-list {
    grid-template-columns: 1fr;
  }
  .seal-panel .select-box-form {
    flex-wrap: wrap;
  }
  .select-box-form label {
    width: 100%;
  }
  .seal-panel .select-box-form input {
    min-width: 170px;
  }
}
