:root {
  --ink: #20352d;
  --muted: #849089;
  --green: #25684e;
  --line: #e6eae7;
  --bg: #f6f8f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-icon {
  background: var(--green);
  color: white;
  border-radius: 8px;
  font-size: 24px;
  padding: 0 5px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 10px;
  color: #96a199;
}
.warehouse {
  margin: 32px 0;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.warehouse span {
  float: right;
}
.nav-label {
  font-size: 10px;
  color: #99a49e;
  padding: 0 12px;
  margin-bottom: 13px;
  letter-spacing: 2px;
}
.nav {
  text-align: left;
  border: 0;
  background: none;
  padding: 14px 12px;
  border-radius: 5px;
  color: #69786f;
  margin-bottom: 7px;
}
.nav span {
  float: right;
  font-size: 11px;
}
.nav.active {
  color: var(--green);
  background: #eaf3ed;
  font-weight: 650;
}
.side-note {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #fafcf9;
  padding: 15px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.side-note small {
  display: block;
  line-height: 1.9;
  color: #8b958f;
  margin-top: 6px;
  font-size: 11px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a9874;
  margin-right: 6px;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12px;
}
.avatar {
  background: #eef1eb;
  border-radius: 50%;
  padding: 10px;
  color: #5c7566;
}
.operator small {
  display: block;
  font-size: 10px;
  color: #8c9990;
  margin-top: 4px;
}
.operator > .dot {
  margin-left: auto;
}
main {
  margin-left: 224px;
}
header {
  height: 72px;
  background: #ffffffb0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 12px;
  color: #839087;
}
header span {
  margin: 0 14px;
}
header b {
  font-weight: 500;
  color: #42574b;
}
.header-right {
  display: flex;
  align-items: center;
}
.header-right .dot {
  margin: 0 7px;
}
.header-right #today {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 32px 38px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7a9283;
  font-weight: 600;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 7px 0 8px;
}
p {
  color: #87928b;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.button {
  border: 1px solid #dce3dd;
  background: white;
  color: #435d4c;
  border-radius: 5px;
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.button:hover {
  background: #f0f6f1;
}
.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.primary:hover {
  background: #19543d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 25px 0 24px;
  padding: 22px 0;
}
.stats > div {
  padding: 0 27px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  display: block;
  color: #849087;
  font-size: 11px;
}
.stats strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  margin-top: 7px;
  line-height: 1.2;
}
.stats small {
  font-size: 11px;
  font-weight: 400;
  color: #94a096;
  margin-left: 5px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step {
  background: #edf3ef;
  color: #4d7c60;
  font-size: 10px;
  padding: 5px 6px;
  border-radius: 4px;
}
.badge {
  background: #f4f6f3;
  color: #7b8b7e;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 4px;
}
#scanForm {
  padding: 20px 23px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
label span {
  float: right;
  font-size: 10px;
  font-weight: 400;
  color: #9ba59d;
}
input:not([type="checkbox"]),
select {
  border: 1px solid #dfe6df;
  border-radius: 5px;
  background: #fff;
  color: #304b3a;
  padding: 11px 13px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #4a9270;
  box-shadow: 0 0 0 3px #eff6f0;
}
input::placeholder {
  color: #a4aea6;
  font-size: 12px;
}
#scanForm input {
  width: 100%;
  margin-bottom: 18px;
}
.input-icon {
  position: relative;
}
.input-icon > span {
  position: absolute;
  left: 13px;
  top: 9px;
  font-size: 20px;
  color: #8a9b8d;
}
.input-icon input {
  padding-left: 40px;
}
.separator {
  height: 1px;
  background: var(--line);
  margin: 1px 0 19px;
}
.sku-input input {
  background: #f8fbf8;
  border-color: #94b5a0;
}
.scan-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
}
.scan-options {
  display: flex;
  gap: 20px;
  padding: 19px 23px 6px;
}
.scan-options label {
  font-size: 10px;
  color: #75877a;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.hint {
  padding: 0 23px 18px;
  font-size: 10px;
  color: #9aa59c;
}
.live {
  font-size: 10px;
  color: #6c8d78;
}
.destination {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #fff, #f7faf6);
}
#destinationBody {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 25px;
  min-height: 330px;
}
.box-illustration {
  font-size: 76px;
  color: #aac0ad;
  line-height: 1.1;
  transform: rotate(-7deg);
  margin-bottom: 24px;
}
.waiting {
  font-size: 19px;
  font-weight: 600;
  color: #718a76;
  margin-bottom: 9px;
}
.flow {
  font-size: 10px;
  color: #9aab9a;
  margin-top: 38px;
}
.flow span {
  margin: 0 14px;
  color: #c1cec0;
}
.destination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 17px 21px;
  font-size: 10px;
  color: #99a59b;
}
.text-button {
  border: 0;
  background: none;
  color: #577962;
  font-size: 11px;
}
.destination-number {
  font-size: 42px;
  letter-spacing: 1px;
  margin: 12px 0;
  color: #236448;
  font-weight: 700;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.destination-sku {
  font-size: 14px;
  margin: 10px 0;
  color: #597660;
  overflow-wrap: anywhere;
}
.destination-progress {
  width: 75%;
  height: 6px;
  border-radius: 4px;
  background: #e2ebe2;
  margin: 18px 0 10px;
  overflow: hidden;
}
.destination-progress div {
  background: #6a9d73;
  height: 100%;
}
.seal-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 26px;
  padding: 19px 23px;
}
.seal-panel p {
  font-size: 10px;
  margin: 7px 0 0 38px;
}
.dark {
  background: #f1f1e9;
  color: #8b8e65;
}
.seal-panel form {
  display: flex;
  gap: 9px;
  width: 49%;
}
.seal-panel input {
  flex: 1;
  width: 0;
}
.record-panel {
  overflow: hidden;
}
.records-heading {
  padding: 22px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.count {
  font-size: 10px;
  padding: 2px 7px;
  background: #edf3ed;
  border-radius: 4px;
  color: #6f8974;
}
.records-heading p {
  font-size: 10px;
  margin-top: 7px;
}
.record-actions {
  display: flex;
  gap: 9px;
}
.record-actions input {
  width: 210px;
  font-size: 11px;
}
.record-actions select {
  font-size: 11px;
  padding: 9px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f7f9f6;
  color: #829286;
  font-size: 10px;
  font-weight: 500;
  padding: 13px 20px;
  border-block: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  font-size: 11px;
  border-bottom: 1px solid #eff2ee;
}
td.code {
  font-family: Consolas, monospace;
  color: #597260;
}
.status {
  padding: 4px 7px;
  font-size: 10px;
  border-radius: 4px;
  background: #edf5ed;
  color: #608469;
}
.status.closed {
  background: #f0f1ef;
  color: #90998f;
}
.empty {
  text-align: center;
  padding: 47px;
  color: #94a294;
}
.empty strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 23px;
  color: #9ba69b;
  font-size: 10px;
}
footer {
  display: flex;
  font-size: 11px;
  color: #9ba99d;
  gap: 12px;
  margin: 25px 0;
}
footer span {
  font-size: 9px;
  letter-spacing: 1px;
}
footer span:last-child {
  margin-left: auto;
  letter-spacing: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 440px;
  padding: 26px;
  box-shadow: 0 25px 90px #193c3026;
}
dialog::backdrop {
  background: #17372655;
}
dialog label {
  margin-top: 20px;
}
dialog input {
  width: 100%;
  display: block;
  margin-top: 8px;
}
dialog p {
  margin: 12px 0;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
}
.two-col {
  display: flex;
  gap: 16px;
}
.two-col label {
  width: 50%;
}
dialog .primary {
  width: 100%;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  background: #244c38;
  color: #fff;
  box-shadow: 0 7px 25px #23473230;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
#toast.show {
  opacity: 1;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .workspace-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 180px;
    padding: 26px 13px;
  }
  main {
    margin-left: 180px;
  }
  .content {
    padding: 25px 20px;
  }
  .brand small {
    display: none;
  }
  header {
    padding: 0 20px;
  }
  .records-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .record-actions {
    width: 100%;
    margin-top: 10px;
  }
  .record-actions input {
    flex: 1;
  }
  .seal-panel {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .seal-panel form {
    width: 100%;
  }
}
@media (max-width: 760px) {
  aside {
    position: relative;
    width: 100%;
    padding: 15px;
    display: block;
  }
  .brand {
    font-size: 18px;
  }
  .warehouse,
  .nav-label,
  .side-note,
  .operator {
    display: none;
  }
  .nav {
    display: inline-block;
    margin: 13px 4px 0;
    padding: 9px;
  }
  .nav span {
    display: none;
  }
  main {
    margin: 0;
  }
  header {
    height: 50px;
  }
  .header-right {
    display: none;
  }
  .content {
    padding: 22px 14px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 0 12px;
  }
  .stats strong {
    font-size: 23px;
  }
  .stats {
    padding: 16px 0;
  }
  .record-actions {
    flex-wrap: wrap;
  }
  .record-actions input {
    width: 100%;
    flex-basis: 100%;
  }
  .page-heading p {
    max-width: 230px;
  }
  .table-footer {
    gap: 12px;
  }
  .destination-number {
    font-size: 34px;
  }
  h1 {
    font-size: 25px;
  }
}

.required {
  color: #b55d47;
  font-style: normal;
  margin-left: 3px;
}
.seal-panel form[hidden] {
  display: none;
}
.full-barcode-card {
  width: 49%;
  max-width: 550px;
  background: white;
  border: 1px solid #dde5de;
  border-radius: 5px;
  padding: 14px 22px 10px;
}
.full-barcode-card svg {
  display: block;
  height: 64px;
  width: 100%;
}
.full-barcode-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 14px;
}
.full-barcode-caption b {
  font:
    14px Consolas,
    monospace;
  letter-spacing: 3px;
}
.full-barcode-caption span {
  font-size: 10px;
  color: #819086;
}
#sealTarget {
  display: block;
  font-weight: 600;
  color: #466d53;
  margin-top: 5px;
}
@media (max-width: 1100px) {
  .full-barcode-card {
    width: 100%;
  }
}

.next-parcel-code{margin:10px 0;color:#507366;font-size:13px}.next-parcel-code summary{cursor:pointer}.next-parcel-code svg{display:block;max-width:230px;height:45px;background:white;margin-top:8px}.next-parcel-code p{margin:5px 0}#scanChoiceDialog{max-width:760px;width:90vw}#scanChoiceDialog .button{flex:1;display:flex;flex-direction:column;gap:12px;white-space:normal}#scanChoiceDialog svg{width:100%;height:65px}#scanChoiceValue{overflow-wrap:anywhere}#scanChoiceCode{width:100%}

.scan-recognition{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:10px 0;color:#246b54}.scan-recognition code{overflow-wrap:anywhere}.scan-mode{background:#fff4dc;color:#845117;padding:10px;border-radius:6px}.scan-recovery-codes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 18px 0}.scan-recovery-codes button{background:white;border:1px solid #dbe5dc;border-radius:6px;padding:10px 6px;cursor:pointer;color:#255a47;display:flex;flex-direction:column;gap:8px;align-items:center;font:inherit}.scan-recovery-codes span{width:100%}.scan-recovery-codes svg{width:100%;height:48px;display:block}.scan-recovery-codes small{font-size:10px}.scan-recovery-help{font-size:12px;color:#60776b;margin:8px 18px 12px}@media(max-width:640px){.scan-recovery-codes{grid-template-columns:1fr}.scan-recovery-codes svg{max-width:240px;margin:auto}}

.current-parcel{display:flex;gap:12px;align-items:baseline;background:#f4f8f4;padding:12px;border-radius:6px;margin-top:12px;color:#6c8073}.current-parcel strong{color:#245c48;overflow-wrap:anywhere}.scan-type-actions{display:flex;gap:8px;align-items:flex-start;margin:12px 18px 0;flex-wrap:wrap}.scan-type-actions .button{padding:9px 15px;font-size:14px}.scan-corrections{margin-left:auto;font-size:13px;max-width:260px}.scan-corrections summary{cursor:pointer;padding:9px;color:#698074}.scan-corrections p{color:#7c897d;font-size:12px}
#sealButton kbd { color:#164b37; background:#f5faf6; border:1px solid #c1d7c8; font-size:13px; font-weight:700; line-height:1.2; padding:3px 6px; border-radius:4px; }

.forecast-panel{margin:12px 18px 0;padding:12px 14px;border:1px solid #dbe7df;border-radius:8px;background:#fff;text-align:left;flex-shrink:0}.forecast-panel header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#285b48}.forecast-panel header>span{font-size:11px;color:#7b8f80}.forecast-panel header button{margin-left:auto;font-size:12px}.forecast-panel>p{font-size:13px;color:#697f70;margin:8px 0}.forecast-panel .forecast-mismatch{background:#fff0dc;color:#925a1f;border-left:3px solid #d38c35;padding:8px}.forecast-rows{max-height:240px;overflow:auto}.forecast-source+.forecast-source{border-top:1px solid #dbe7df;padding-top:10px;margin-top:10px}.forecast-source-head{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;margin-bottom:8px}.forecast-source-head code{margin-left:auto;overflow-wrap:anywhere;color:#6a8274}.forecast-panel table{border-collapse:collapse;width:100%;font-size:12px;table-layout:fixed}.forecast-panel th{text-align:left;color:#758c7c;font-weight:500;background:#f5f8f4;padding:7px}.forecast-panel td{border-bottom:1px solid #edf1eb;padding:7px;overflow-wrap:anywhere}.forecast-panel small{display:block;font-size:11px;color:#956e43;margin-top:3px}.forecast-quantity-error{color:#aa632a}.forecast-request{font-size:10px;color:#90a194;margin-top:8px}.forecast-request summary{cursor:pointer}.forecast-request code{overflow-wrap:anywhere}

.forecast-identity-choices{display:flex;flex-wrap:wrap;gap:7px}.forecast-identity-choices p{flex-basis:100%;font-size:12px;color:#976124}.forecast-identity-choices .button{padding:6px 12px;font-size:13px}

.scan-panel{display:flex;flex-direction:column}.origin-photo-qr{align-self:flex-end;display:flex;flex-direction:column;align-items:center;gap:6px;width:178px;margin:24px 22px 22px auto;padding:7px 7px 12px;border:1px solid #e0e8e0;border-radius:8px;background:white;color:#285e4a;text-decoration:none}.origin-photo-qr img{display:block;width:160px;height:160px;background:white}.origin-photo-qr strong{font-size:14px;font-weight:600}.origin-photo-qr:focus-visible{outline:3px solid #5a9878;outline-offset:3px}@media(min-width:801px){.origin-photo-qr{margin-top:auto}}

/* Scoped phone-photo authorization; no focus changes or scanner input handlers. */
.origin-photo-qr{width:224px;padding:12px;gap:8px}.origin-photo-qr img{display:block;width:200px;height:200px;background:#fff}.origin-photo-qr small{font-size:12px;text-align:center;line-height:1.5}
