:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: #e9eef2;
  color: #17324d;
}

.dispatch-page-shell {
  width: 100%;
  height: 100dvh;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dispatch-page-topbar {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 14px;
  border-bottom: 1px solid #cbd7df;
  background: #fff;
  box-shadow: 0 3px 12px rgb(23 50 77 / 7%);
}

.dispatch-page-identity,
.dispatch-page-quick-view,
.dispatch-page-actions,
.dispatch-page-language {
  min-width: 0;
  display: flex;
  align-items: center;
}

.dispatch-page-identity {
  gap: 10px;
}

.dispatch-page-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #24758a;
  color: #fff;
  font: 700 15px/1 "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", "Segoe UI", sans-serif;
  letter-spacing: .03em;
}

.dispatch-page-identity > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dispatch-page-kicker {
  overflow: hidden;
  color: #6a7d8c;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dispatch-page-identity strong {
  overflow: hidden;
  color: #17324d;
  font: 680 18px/1.2 "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", "Segoe UI", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-page-actions {
  justify-content: flex-end;
  gap: 8px;
}

.dispatch-page-quick-view {
  flex: 0 1 250px;
  justify-content: center;
}

.dispatch-page-quick-view .dispatch-grid-quick-view-control {
  width: min(250px, 100%);
  display: grid;
  grid-template-columns: auto minmax(142px, 1fr);
  align-items: center;
  gap: 8px;
}

.dispatch-page-quick-view .dispatch-grid-quick-view-control > span {
  color: #536b7d;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dispatch-page-quick-view select {
  width: 100%;
  min-height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #b9cbd7;
  border-radius: 6px;
  background: #fff;
  color: #17324d;
  font: 600 12px/1.2 "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", "Segoe UI", sans-serif;
}

.dispatch-page-account {
  max-width: 280px;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid #bcd6cf;
  border-radius: 999px;
  background: #eef8f4;
  color: #286a58;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-page-language {
  padding: 2px;
  border: 1px solid #c2d1db;
  border-radius: 7px;
  background: #f3f6f8;
}

.dispatch-page-language button,
.dispatch-page-back,
.dispatch-page .secondary-button,
.dispatch-page .primary-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #b8cad5;
  border-radius: 6px;
  background: #fff;
  color: #245f69;
  font: 600 12px/1 "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.dispatch-page-language button {
  min-height: 28px;
  border: 0;
  background: transparent;
}

.dispatch-page-language button.active {
  background: #24758a;
  color: #fff;
}

.dispatch-page-language button:focus-visible,
.dispatch-page-back:focus-visible {
  outline: 3px solid rgb(36 117 138 / 30%);
  outline-offset: 2px;
}

.dispatch-page-main {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.dispatch-page-main > .dispatch-grid-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dispatch-page-main .dispatch-grid-scroll {
  min-height: 120px;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.dispatch-page-main .dispatch-grid-toolbar {
  border-top: 0;
}

.dispatch-page-guard {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #d9b871;
  border-radius: 8px;
  background: #fff8e6;
  color: #805a13;
  font-size: 13px;
  font-weight: 650;
}

.dispatch-page-guard[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .dispatch-page-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 8px 10px;
  }

  .dispatch-page-actions {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .dispatch-page-quick-view {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .dispatch-page-account {
    max-width: 180px;
  }

  .dispatch-page-main {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dispatch-page * {
    scroll-behavior: auto !important;
  }
}
