:root {
  --nav: #1d2735;
  --nav-dark: #121a25;
  --blue: #4c68ff;
  --blue-strong: #5b6bff;
  --teal: #15a6a6;
  --sand: #f7d690;
  --paper: #fcfaf4;
  --sea: #dff5f7;
  --line: #dde6f2;
  --soft-line: #edf2f8;
  --text: #243547;
  --muted: #7f8ca1;
  --panel: #ffffff;
  --bg: #eef3f9;
  --green: #1fba73;
  --orange: #f5a623;
  --red: #ff5c6a;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 107, 255, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(21, 166, 166, 0.08), transparent 22%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 146px;
  background:
    linear-gradient(180deg, rgba(37, 48, 64, 0.98), rgba(20, 28, 39, 0.98)),
    var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 14px 0 40px rgba(11, 17, 26, 0.12);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin: 18px 0 14px 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #7b8cff, #4bd1c5);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(91, 107, 255, 0.32);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 8px;
}

.side-nav button {
  position: relative;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f8fbff;
  text-align: left;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 180ms ease, transform 180ms ease;
}

.side-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.side-nav span {
  width: 15px;
  text-align: center;
  color: #fff;
}

.side-nav em {
  position: absolute;
  right: 8px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 8px;
  background: var(--red);
  font-style: normal;
  font-size: 11px;
}

.side-nav b {
  position: absolute;
  right: 8px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  background: #ff4d4f;
  font-size: 11px;
  font-weight: 500;
}

.side-nav hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin: 8px 0;
}

.side-nav .active {
  background:
    linear-gradient(90deg, rgba(91, 107, 255, 0.32), rgba(91, 107, 255, 0.12));
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(173, 182, 255, 0.18);
}

.side-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  color: #eef6ff;
}

.workspace {
  margin-left: 146px;
  width: calc(100% - 146px);
  height: 100vh;
  min-height: 100vh;
  padding: 20px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.topbar {
  min-height: 88px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 16px 24px;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #5b6bff, #27d3bf);
  font-size: 18px;
  color: #fff;
  box-shadow: 0 18px 30px rgba(91, 107, 255, 0.26);
}

.page-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f8ca1;
}

#pageTitle {
  font-size: 24px;
  letter-spacing: 0.02em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 107, 255, 0.1);
  color: #4f5eff;
  font-size: 12px;
  font-weight: 700;
}

.topbar-text {
  color: #8a97aa;
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-actions button {
  width: 38px;
  height: 38px;
  color: #506173;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(203, 214, 229, 0.8);
  border-radius: 12px;
  font-size: 17px;
  box-shadow: 0 10px 22px rgba(31, 44, 63, 0.06);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(208, 217, 229, 0.82);
  box-shadow: 0 16px 28px rgba(31, 44, 63, 0.08);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5b6bff, #15a6a6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip span {
  font-size: 11px;
  color: #8c98a9;
}

.panel {
  margin: 0;
  height: 100%;
  min-height: 0;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(223, 231, 242, 0.9);
  box-shadow: 0 30px 60px rgba(26, 42, 64, 0.08);
  backdrop-filter: blur(14px);
}

.dispatch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  padding: 24px 28px 18px;
  background:
    radial-gradient(circle at top left, rgba(91, 107, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.dispatch-hero-copy h1 {
  margin: 10px 0 12px;
  font-size: 32px;
  line-height: 1.18;
  color: #1b2c41;
}

.dispatch-hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #718092;
  line-height: 1.8;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 166, 166, 0.1);
  color: #1596a1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(224, 231, 240, 0.9);
  box-shadow: 0 16px 28px rgba(31, 44, 63, 0.06);
}

.hero-metric.accent {
  background: linear-gradient(135deg, #5b6bff, #7686ff);
  border-color: transparent;
  color: #fff;
}

.hero-metric span,
.hero-metric small,
.hero-metric strong {
  display: block;
}

.hero-metric span {
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
}

.hero-metric strong {
  margin: 10px 0 6px;
  font-size: 28px;
  color: inherit;
}

.hero-metric small {
  font-size: 12px;
  color: inherit;
  opacity: 0.72;
}

.tabs {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding-left: 16px;
}

.tab {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: #4a5664;
}

.tab.active {
  color: var(--blue-strong);
  border-bottom-color: var(--blue-strong);
  font-weight: 600;
}

.toolbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(226, 233, 242, 0.84);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}

.toolbar-elevated {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.toolbar-cluster,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-cluster {
  min-width: 0;
  flex: 1;
  gap: 10px;
}

.toolbar-note {
  font-size: 12px;
  color: #8b99aa;
  white-space: nowrap;
}

.toolbar-link-btn {
  border: 0;
  background: transparent;
  color: #2990ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.toolbar-link-btn:hover {
  color: #1477e6;
  text-decoration: underline;
}

.search-box {
  width: 320px;
  height: 42px;
  border: 1px solid rgba(212, 220, 232, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #637181;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
}

.search-box input::placeholder {
  color: #b3bdc8;
}

.filter-control {
  height: 40px;
  border: 1px solid rgba(212, 220, 232, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #42505f;
  padding: 0 12px;
}

.filter-separator {
  color: #7e8a99;
}

.icon-btn,
.ghost-btn,
.danger-btn,
.primary-btn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(212, 220, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: #42505f;
  padding: 0 15px;
  box-shadow: 0 12px 24px rgba(27, 44, 65, 0.05);
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.primary-btn {
  background: linear-gradient(135deg, #5b6bff, #7283ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 28px rgba(91, 107, 255, 0.28);
}

.danger-btn {
  color: #ff4d4f;
  border-color: #ffccc7;
  background: #fff;
}

.ghost-btn:hover,
.danger-btn:hover,
.icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.danger-btn:hover {
  border-color: #ff7875;
  color: #ff4d4f;
}

.toolbar-spacer {
  flex: 1;
}

.table-wrap {
  flex: 1;
  overflow: auto;
}

#recordsView table {
  min-width: 1680px;
}

#recordsView {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
}

.records-toolbar {
  min-height: 74px;
  justify-content: flex-start;
}

.records-search-box {
  width: 360px;
}

#recordsView td {
  vertical-align: middle;
  text-align: left;
  line-height: 1.7;
}

#recordsView th:nth-child(5),
#recordsView th:nth-child(6),
#recordsView td:nth-child(5),
#recordsView td:nth-child(6) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.records-source-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.records-source-group {
  padding: 8px 10px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.records-source-order {
  color: #2a3a4d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.records-source-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 6px;
}

.records-source-product {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f6ff;
  color: #506176;
  font-size: 12px;
  line-height: 1.4;
}

.records-operation-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.records-actor-block {
  padding-top: 7px;
  border-top: 1px dashed #dbe5f0;
  color: #536276;
  font-size: 12px;
  line-height: 1.55;
}

.records-actor-block.muted {
  color: #98a4b3;
}

.records-actor-title {
  color: #24364d;
  font-weight: 600;
}

.todo-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 252, 0.96));
}

.settings-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.98));
}

.permission-panel {
  background: linear-gradient(180deg, #f6f8fc, #eef3f9);
}

.permission-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 8px 0 0;
}

.permission-card {
  width: min(820px, 100%);
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(22, 36, 56, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.permission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf1f6;
}

.permission-head h2 {
  margin: 0;
  color: #2e3b4c;
  font-size: 16px;
  font-weight: 700;
}

.permission-close {
  border: 0;
  background: transparent;
  color: #8d99a8;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.permission-body {
  padding: 24px;
}

.permission-assignee {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permission-label {
  color: #556273;
  font-size: 14px;
}

.permission-label em {
  color: #ff5c6a;
  font-style: normal;
}

.permission-select {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #d7dfeb;
  background: #fff;
  padding: 0 14px;
  color: #4b596b;
}

.permission-scope {
  margin-top: 18px;
}

.permission-scope-title {
  margin-bottom: 12px;
  color: #2f3b4b;
  font-size: 14px;
  font-weight: 700;
}

.permission-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid #e1e8f2;
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  background: #fff;
}

.permission-switch-bar strong {
  display: block;
  color: #344153;
  font-size: 15px;
}

.permission-switch-bar p {
  margin: 6px 0 0;
  color: #8a96a6;
  font-size: 12px;
}

.permission-switch-wrap {
  position: relative;
  flex-shrink: 0;
}

.permission-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-switch-track {
  display: block;
  position: relative;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: #cfd8e6;
  transition: background 180ms ease;
}

.permission-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(26, 41, 61, 0.18);
  transition: transform 180ms ease;
}

.permission-switch-input:checked + .permission-switch-track {
  background: #4f95ff;
}

.permission-switch-input:checked + .permission-switch-track::after {
  transform: translateX(26px);
}

.permission-content {
  max-height: 520px;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease;
  opacity: 1;
}

.permission-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.permission-group {
  padding: 18px 20px 0;
  border-left: 1px solid #e1e8f2;
  border-right: 1px solid #e1e8f2;
  background: #fff;
}

.permission-group:last-of-type {
  padding-bottom: 20px;
  border-bottom: 1px solid #e1e8f2;
  border-radius: 0 0 12px 12px;
}

.permission-group h3 {
  margin: 0 0 14px;
  color: #344153;
  font-size: 15px;
}

.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.permission-item:last-child {
  margin-bottom: 0;
}

.permission-item input {
  margin-top: 3px;
  accent-color: #4f95ff;
}

.permission-item strong {
  display: block;
  color: #394555;
  font-size: 14px;
  font-weight: 600;
}

.permission-item span {
  display: block;
  margin-top: 4px;
  color: #8a96a6;
  font-size: 12px;
  line-height: 1.5;
}

.permission-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 22px;
  border-top: 1px solid #edf1f6;
  background: #fff;
}

.settings-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.settings-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 14px;
  color: #5f6b79;
  font-size: 14px;
  font-weight: 600;
}

.settings-crumb-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(76, 104, 255, 0.14);
  color: #4c68ff;
  font-size: 12px;
}

.settings-crumb-sep {
  color: #8f9aaa;
  font-weight: 400;
}

.settings-panel-card {
  flex: 1;
  min-height: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(223, 231, 242, 0.92);
  box-shadow: 0 18px 36px rgba(21, 35, 56, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 18px;
  height: 48px;
  border-bottom: 1px solid #e5ebf3;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.settings-tab {
  height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #556273;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}

.settings-tab.active {
  color: #2f86ff;
  border-bottom-color: #2f86ff;
  font-weight: 600;
}

.settings-body {
  flex: 1;
  min-height: 0;
  padding: 28px 28px 32px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  overflow: auto;
}

.settings-form-card {
  width: min(620px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(28, 49, 77, 0.08);
  overflow: hidden;
}

.settings-form-header {
  padding: 24px 24px 10px;
}

.settings-form-header h3 {
  margin: 0;
  font-size: 18px;
  color: #243547;
}

.settings-form-header p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8694a8;
}

.settings-form-grid {
  padding: 6px 24px 26px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-field-row {
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid #edf2f7;
}

.settings-label {
  color: #445162;
  font-size: 14px;
  font-weight: 600;
}

.settings-switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfd8e6;
  transition: background 180ms ease;
}

.settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(32, 50, 74, 0.18);
  transition: transform 180ms ease;
}

.settings-switch-input:checked + .settings-switch {
  background: #4f95ff;
}

.settings-switch-input:checked + .settings-switch::after {
  transform: translateX(18px);
}

.settings-switch-text {
  color: #4d5a6a;
  font-size: 13px;
  font-weight: 600;
}

.settings-select {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d7e1ee;
  background: #fff;
  padding: 0 14px;
  color: #243547;
  box-shadow: inset 0 1px 2px rgba(31, 54, 87, 0.03);
}

.settings-input-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-input {
  width: 140px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d7e1ee;
  background: #fff;
  padding: 0 14px;
  color: #243547;
  box-shadow: inset 0 1px 2px rgba(31, 54, 87, 0.03);
}

.settings-unit {
  color: #5f6b79;
  font-size: 14px;
  font-weight: 600;
}

.settings-hint {
  color: #8b97a6;
  font-size: 12px;
  line-height: 1.6;
}

.settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

.todo-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(226, 233, 242, 0.84);
}

.todo-page-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  color: #223247;
}

.todo-page-head p {
  margin: 0;
  color: #8b99aa;
  font-size: 15px;
}

.todo-head-notice {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(245, 166, 35, 0.36);
  background: rgba(255, 250, 239, 0.96);
  color: #ef8d11;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.todo-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px 12px;
}

.todo-filter-pill {
  height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  color: #42505f;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(27, 44, 65, 0.06);
}

.todo-filter-pill.active {
  border-color: rgba(236, 76, 155, 0.18);
}

.todo-filter-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff5e9b, #d84bff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.todo-filter-caret {
  color: #91a0b4;
  font-size: 14px;
}

.todo-segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(238, 242, 248, 0.96);
}

.todo-segmented button {
  height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: transparent;
  color: #67778c;
}

.todo-segmented button.active {
  background: #fff;
  color: #243547;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(27, 44, 65, 0.08);
}

.todo-search-box {
  margin-left: 4px;
  width: 440px;
  height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(225, 232, 241, 0.92);
  background: rgba(244, 247, 251, 0.96);
  color: #8d98ab;
  display: flex;
  align-items: center;
  gap: 10px;
}

.todo-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243547;
}

.todo-search-box input::placeholder {
  color: #a6b2c1;
}

.todo-list-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 20px;
  background: linear-gradient(180deg, rgba(236, 243, 249, 0.92), rgba(239, 244, 250, 0.98));
}

.todo-list {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.todo-column {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 229, 239, 0.9);
}

.todo-column-head strong {
  display: block;
  color: #213448;
  font-size: 16px;
}

.todo-column-head p {
  margin: 4px 0 0;
  color: #8d9aac;
  font-size: 12px;
}

.todo-column-badge {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 107, 255, 0.1);
  color: #4f60f6;
  font-size: 14px;
  font-weight: 700;
}

.todo-column-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.todo-column-empty {
  min-height: 160px;
  border-radius: 18px;
  border: 1px dashed rgba(195, 206, 220, 0.96);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  color: #94a1b3;
  font-size: 14px;
}

.todo-card {
  border-radius: 18px;
  border: 2px solid rgba(194, 226, 204, 0.86);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(33, 52, 72, 0.06);
  padding: 16px 18px 14px;
}

.todo-card.pending {
  border-color: rgba(255, 217, 102, 0.92);
}

.todo-card.urgent {
  border-color: rgba(255, 207, 112, 0.94);
}

.todo-card.confirmed {
  border-color: rgba(176, 241, 200, 0.94);
}

.todo-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.todo-person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.todo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff5a52, #ff4040);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}

.todo-person-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.todo-person-line strong {
  font-size: 16px;
  color: #1e3046;
}

.todo-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.todo-badge-violet {
  background: rgba(102, 116, 255, 0.12);
  color: #6a71ff;
}

.todo-badge-green {
  background: rgba(48, 201, 115, 0.14);
  color: #18a85b;
}

.todo-badge-red {
  background: rgba(255, 92, 106, 0.12);
  color: #ff5463;
}

.todo-badge-amber {
  background: rgba(245, 166, 35, 0.14);
  color: #e48f19;
}

.todo-card-side {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #9aa8ba;
  font-size: 13px;
  white-space: nowrap;
}

.todo-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.todo-confirm-btn {
  min-width: 116px;
  height: 42px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.todo-transfer-btn {
  min-width: 116px;
  height: 38px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.todo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.todo-info-box {
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(228, 233, 242, 0.96);
  background: rgba(248, 250, 253, 0.98);
}

.todo-info-box.is-warning {
  border-color: rgba(255, 214, 153, 0.9);
  background: rgba(255, 246, 235, 0.98);
}

.todo-info-box span,
.todo-info-box strong,
.todo-info-box a,
.todo-info-box p {
  display: block;
}

.todo-info-box span {
  color: #9aa7ba;
  font-size: 12px;
  margin-bottom: 6px;
}

.todo-info-box strong,
.todo-info-box a {
  color: #2c3a4d;
  font-size: 15px;
  text-decoration: none;
}

.todo-info-box a {
  color: #6472ff;
}

.todo-info-box p {
  margin: 6px 0 0;
  color: #9aa8ba;
  font-size: 12px;
}

.todo-card-foot {
  margin-top: 10px;
  padding: 0 4px;
}

.todo-card-foot p {
  margin: 0 0 8px;
  color: #8b98ab;
  font-size: 13px;
}

.todo-card-foot span {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.todo-confirm-editor {
  margin-top: 16px;
}

.todo-confirm-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-confirm-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(226, 233, 241, 0.96);
  background: #f8fbff;
}

.todo-confirm-product-main strong,
.todo-confirm-product-main span {
  display: block;
}

.todo-confirm-product-main strong {
  font-size: 15px;
  color: #243547;
}

.todo-confirm-product-main strong em {
  font-style: normal;
  color: #6b7a8d;
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

.todo-confirm-product-main span {
  margin-top: 4px;
  font-size: 12px;
  color: #8c99aa;
}

.todo-confirm-stepper {
  display: grid;
  grid-template-columns: 34px 50px 34px;
  align-items: center;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2ff;
}

.todo-confirm-stepper button {
  height: 34px;
  border: 0;
  background: #f2f4ff;
  color: #5b6bff;
  font-size: 18px;
}

.todo-confirm-stepper span {
  text-align: center;
  color: #3647cf;
  font-weight: 700;
}

.todo-confirm-ship-grid {
  display: grid;
  gap: 12px;
}

.todo-confirm-ship-grid.is-compact {
  grid-template-columns: minmax(0, 1fr);
}

.todo-confirm-ship-grid.is-extended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.todo-qty-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-qty-label {
  color: #5f7185;
  font-size: 12px;
  font-weight: 700;
}

.todo-confirm-static-qty {
  min-width: 118px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3647cf;
  font-weight: 700;
}

.todo-confirm-remaining {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(188, 199, 214, 0.96);
  background: rgba(255, 255, 255, 0.92);
}

.todo-confirm-remaining.is-pending {
  border-color: rgba(255, 191, 81, 0.9);
  background: rgba(255, 248, 236, 0.98);
}

.todo-confirm-remaining.is-complete {
  border-color: rgba(150, 221, 181, 0.96);
  background: rgba(241, 255, 247, 0.98);
}

.todo-confirm-remaining strong,
.todo-confirm-remaining span {
  display: block;
}

.todo-confirm-remaining strong {
  color: #203247;
  font-size: 14px;
}

.todo-confirm-remaining span {
  margin-top: 4px;
  color: #7f8d9f;
  font-size: 12px;
}

.todo-confirm-remark {
  display: block;
  margin-top: 14px;
  text-align: left;
}

.todo-confirm-remark span {
  display: block;
  margin-bottom: 8px;
  color: #506173;
  font-size: 13px;
  font-weight: 700;
}

.todo-confirm-remark textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(214, 223, 234, 0.96);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 120px;
  font: inherit;
  color: #243547;
  background: #fbfcff;
  outline: 0;
}

.todo-confirm-upload {
  display: block;
  margin-top: 14px;
  text-align: left;
}

.todo-confirm-upload span {
  display: block;
  margin-bottom: 8px;
  color: #506173;
  font-size: 13px;
  font-weight: 700;
}

.todo-confirm-upload input[type="file"] {
  display: block;
  width: 100%;
  border: 1px dashed rgba(191, 203, 219, 0.98);
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fbff;
  color: #64758a;
}

.todo-confirm-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 24px;
}

.todo-file-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(91, 107, 255, 0.1);
  color: #5364ff;
  font-size: 12px;
  font-weight: 600;
}

.todo-file-empty {
  color: #96a2b3;
  font-size: 12px;
}

.todo-foot-ok {
  color: #18b769;
}

.todo-foot-warn {
  color: #ff7c4a;
}

.todo-empty {
  min-height: 240px;
  border-radius: 22px;
  border: 1px dashed rgba(195, 206, 220, 0.96);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  place-items: center;
  color: #94a1b3;
  font-size: 16px;
}

.dispatch-board {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  min-height: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(21, 166, 166, 0.12), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(247, 214, 144, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.94) 0%, rgba(239, 244, 251, 0.94) 100%);
}

.board-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px 10px;
}

.board-filterbar-compact {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 0 0 6px;
  overflow: visible;
}

.status-filter-chip {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(12, 138, 149, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #4a5a69;
  box-shadow: 0 12px 22px rgba(27, 44, 65, 0.05);
  white-space: nowrap;
  flex: 0 0 auto;
}

.status-filter-chip.status-all {
  border-color: rgba(79, 100, 119, 0.24);
  color: #4f6477;
}

.status-filter-chip.status-dispatchable {
  border-color: rgba(255, 159, 67, 0.35);
  color: #d9811f;
}

.status-filter-chip.status-pending {
  border-color: rgba(12, 138, 149, 0.3);
  color: #0c8a95;
}

.status-filter-chip.status-running {
  border-color: rgba(225, 90, 52, 0.3);
  color: #ca4f2c;
}

.status-filter-chip.status-neutral {
  border-color: rgba(124, 139, 153, 0.32);
  color: #667384;
}

.status-filter-chip.status-completed {
  border-color: rgba(52, 168, 83, 0.3);
  color: #2f8f4e;
}

.status-filter-chip.active {
  color: #fff;
}

.status-filter-chip.status-all.active {
  background: #4f6477;
  border-color: #4f6477;
}

.status-filter-chip.status-dispatchable.active {
  background: #ff9f43;
  border-color: #ff9f43;
}

.status-filter-chip.status-pending.active {
  background: #0c8a95;
  border-color: #0c8a95;
}

.status-filter-chip.status-running.active {
  background: #e15a34;
  border-color: #e15a34;
}

.status-filter-chip.status-neutral.active {
  background: #7c8b99;
  border-color: #7c8b99;
}

.status-filter-chip.status-completed.active {
  background: #34a853;
  border-color: #34a853;
}

.board-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 340px;
  gap: 18px;
  padding: 0 24px 24px;
  transition: grid-template-columns 260ms cubic-bezier(0.22, 1, 0.36, 1), gap 260ms cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
  align-items: stretch;
}

.board-stage.is-dispatching {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 12px;
}

.map-panel,
.dispatch-focus,
.board-strip {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 228, 240, 0.8);
  box-shadow: 0 28px 48px rgba(16, 39, 57, 0.08);
  overflow: hidden;
}

.map-panel {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 260ms ease;
}

.map-backdrop {
  position: relative;
  flex: 1;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(222, 244, 246, 0.86), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(21, 166, 166, 0.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(21, 166, 166, 0.04) 0 1px, transparent 1px 72px);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.ready {
  background: #ff9f43;
}

.legend-dot.pending {
  background: #0c8a95;
}

.legend-dot.running {
  background: #e15a34;
}

.dispatch-map,
.map-fallback {
  position: absolute;
  inset: 0;
}

.dispatch-map {
  background: #dfe9ec;
  cursor: grab;
}

.dispatch-map:active {
  cursor: grabbing;
}

.leaflet-pane,
.leaflet-control-container {
  z-index: 1;
}

.leaflet-marker-pane,
.leaflet-overlay-pane,
.leaflet-tooltip-pane {
  z-index: 4;
}

.leaflet-map-pane,
.leaflet-tile-pane {
  will-change: transform;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 14px 26px rgba(16, 39, 57, 0.12) !important;
}

.leaflet-control-zoom a {
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  color: #28455c !important;
}

.leaflet-tooltip {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(16, 39, 57, 0.18);
  padding: 0;
  background: transparent;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  border-top-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(255, 255, 255, 0.98) !important;
}

.dispatch-route-arrow {
  background: transparent;
  border: 0;
}

.dispatch-order-marker {
  background: transparent;
  border: 0;
  overflow: visible !important;
}

.map-tip-card {
  min-width: 210px;
  max-width: 246px;
  padding: 12px 14px 13px;
  border-radius: 16px;
  border: 1px solid rgba(224, 232, 242, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow:
    0 18px 34px rgba(18, 42, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #314253;
}

.map-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.map-tip-city {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(12, 138, 149, 0.08);
  color: #0f6f88;
  font-size: 11px;
  font-weight: 700;
}

.map-tip-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.map-tip-status.new {
  color: #9a6700;
  background: #fff4d6;
  border-color: #ffe08a;
}

.map-tip-status.ready {
  color: #1868db;
  background: #eaf4ff;
  border-color: #bedcff;
}

.map-tip-status.running {
  color: #b75b00;
  background: #fff3e2;
  border-color: #ffd3a5;
}

.map-tip-status.done {
  color: #2f7d1f;
  background: #eefbe8;
  border-color: #c9eebf;
}

.map-tip-status.not-dispatched {
  color: #667384;
  background: #f3f5f8;
  border-color: #d9e0e8;
}

.map-tip-order {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #17324a;
}

.map-tip-project {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #5f7183;
  word-break: break-word;
}

.map-tip-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(227, 233, 241, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6a7a8c;
}

.map-tip-label {
  letter-spacing: 0.04em;
}

.map-tip-footer strong {
  color: #1d344b;
  font-size: 13px;
}

.map-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.65;
}

.glow-a {
  width: 240px;
  height: 240px;
  background: rgba(12, 138, 149, 0.22);
  top: -40px;
  left: 12%;
}

.glow-b {
  width: 200px;
  height: 200px;
  background: rgba(255, 169, 77, 0.18);
  right: 4%;
  bottom: 10%;
}

.map-fallback {
  display: grid;
  place-items: center;
  color: #5d6d7c;
  font-size: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.52));
}

.board-side {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.board-side,
.dispatch-focus {
  height: 100%;
  min-height: 0;
}

.panel-heading {
  padding: 22px 22px 12px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 17px;
  color: #183148;
}

.panel-heading p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #7c8794;
}

.city-card h4,
.rail-card h4,
.focus-item h4 {
  margin: 0;
  font-size: 15px;
  color: #163148;
}

.city-card p,
.rail-card span,
.focus-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8090a0;
}

.dispatch-focus {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

.board-focus-empty {
  margin: auto 18px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(16, 39, 57, 0.14);
  padding: 22px;
  color: #718091;
  line-height: 1.8;
}

.board-focus {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  min-width: 0;
}

.board-focus.board-focus-workbench {
  display: flex;
  overflow: hidden;
}

.board-focus-card {
  padding: 0 18px 18px;
  overflow: visible;
  min-height: max-content;
  animation: panelSwapIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.focus-overview-card {
  padding-top: 6px;
}

.focus-overview-head {
  padding-bottom: 320px;
  position: relative;
}

.focus-overview-side {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
}

.dispatch-workbench-panel {
  flex: 1;
  height: 100%;
  padding: 0 14px 14px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(255, 255, 255, 0.98));
  animation: none;
  will-change: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dispatch-smart-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 199, 102, 0.88);
  background: rgba(255, 248, 232, 0.96);
  color: #8a5a00;
  font-size: 13px;
  font-weight: 600;
}

.dispatch-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 4px 12px;
  flex-wrap: wrap;
}

.dispatch-inline-head h3 {
  margin: 10px 0 6px;
  font-size: 24px;
  color: #102739;
}

.dispatch-inline-head p {
  margin: 0;
  font-size: 13px;
  color: #6e7e8d;
}

.dispatch-inline-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.dispatch-inline-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 138, 149, 0.08), rgba(255, 255, 255, 0.98));
  color: #4c5968;
  font-size: 13px;
}

.dispatch-inline-grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 240px;
  gap: 1px;
  flex: 1;
  min-height: 0;
  height: auto;
  background: #e7edf7;
  border: 1px solid #e0e7f0;
  border-radius: 16px;
  overflow: hidden;
}

.dispatch-title-line h3 {
  margin: 0;
}

.focus-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}

.focus-head > div {
  flex: 1;
  min-width: 0;
}

.focus-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.focus-city {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(12, 138, 149, 0.1);
  color: #0f6f88;
  font-size: 12px;
}

.focus-head h3 {
  margin: 10px 0 6px;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #102739;
  white-space: normal;
  overflow: visible;
  word-break: break-all;
}

.focus-head p {
  margin: 0;
  font-size: 13px;
  color: #6e7e8d;
}

.focus-back-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(97, 117, 137, 0.72);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.focus-back-btn:hover {
  color: #4b77d9;
}

.focus-popover-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(41, 144, 255, 0.14);
  background: rgba(41, 144, 255, 0.06);
  color: #5e7388;
  font-size: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.focus-popover-btn:hover:not(:disabled) {
  border-color: rgba(41, 144, 255, 0.28);
  background: rgba(41, 144, 255, 0.1);
  color: #2d5f8f;
}

.focus-popover-btn.is-active {
  border-color: rgba(41, 144, 255, 0.28);
  background: rgba(41, 144, 255, 0.12);
  color: #2d5f8f;
}

.focus-popover-btn:disabled {
  cursor: default;
  opacity: 0.56;
}

.focus-popover-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(41, 144, 255, 0.12);
  color: #2990ff;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.no-address-popover {
  position: absolute;
  top: 42px;
  right: 0;
  width: min(360px, calc(100vw - 72px));
  max-height: 280px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(222, 230, 239, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(19, 39, 62, 0.14);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
  overflow: hidden;
}

.no-address-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.no-address-popover-head strong {
  font-size: 14px;
  color: #102739;
}

.no-address-popover-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a97a5;
  font-size: 12px;
  cursor: pointer;
}

.no-address-popover-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.no-address-card {
  display: block;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(223, 231, 240, 0.84);
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 1));
}

.no-address-card strong {
  display: block;
  margin-bottom: 6px;
  color: #102739;
}

.no-address-card p {
  margin: 0;
  color: #6e7e8d;
  font-size: 12px;
  line-height: 1.6;
}

.no-address-popover.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
}

.focus-project-name + .focus-project-address {
  margin-top: 6px;
}

.focus-project-address {
  line-height: 1.6;
}

.focus-meta {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 166, 166, 0.07), rgba(255, 255, 255, 1));
  font-size: 13px;
  color: #4c5968;
  border: 1px solid rgba(223, 231, 240, 0.88);
}

.focus-actions {
  display: flex;
  gap: 10px;
  padding: 16px 0;
}

.focus-action-hint {
  margin-top: -4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 186, 73, 0.12), rgba(255, 244, 226, 0.9));
  border: 1px solid rgba(255, 186, 73, 0.22);
  color: #8c5a12;
  font-size: 12px;
  line-height: 1.6;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.focus-grid article {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(223, 231, 240, 0.84);
  padding: 16px;
  box-shadow: 0 16px 26px rgba(26, 42, 64, 0.05);
}

.focus-grid strong {
  display: block;
  font-size: 24px;
  color: #102739;
}

.focus-grid span {
  display: block;
  margin-top: 6px;
  color: #7c8894;
  font-size: 12px;
}

.focus-section {
  padding-top: 18px;
}

.focus-meta + .focus-section,
.focus-grid + .focus-section {
  padding-top: 12px;
}

.focus-items {
  display: grid;
  gap: 10px;
}

.focus-overview-items {
  grid-template-columns: 1fr;
}

.focus-item {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(223, 231, 240, 0.84);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  box-shadow: 0 16px 26px rgba(26, 42, 64, 0.04);
}

.focus-overview-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.focus-overview-item:hover {
  transform: translateY(-1px);
  border-color: rgba(70, 128, 255, 0.24);
  box-shadow: 0 18px 28px rgba(26, 42, 64, 0.08);
}

.focus-overview-item strong {
  display: block;
  margin-bottom: 6px;
}

.dispatch-source-card {
  position: relative;
  overflow: hidden;
}

.dispatch-source-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: rgba(124, 136, 148, 0.4);
}

.dispatch-source-card.is-confirmed {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 1));
  border-color: rgba(52, 168, 83, 0.26);
  box-shadow: 0 18px 30px rgba(52, 168, 83, 0.08);
}

.dispatch-source-card.is-confirmed::before {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.dispatch-source-card.is-pending {
  border-color: rgba(91, 107, 255, 0.18);
}

.dispatch-source-card.is-pending::before {
  background: linear-gradient(180deg, #5b6bff, #7c3aed);
}

.dispatch-source-card.is-followup {
  background: linear-gradient(135deg, rgba(255, 249, 235, 0.98), rgba(255, 255, 255, 1));
  border-color: rgba(245, 166, 35, 0.24);
}

.dispatch-source-card.is-followup::before {
  background: linear-gradient(180deg, #f59e0b, #f97316);
}

.dispatch-source-card.is-awaiting-receipt {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 1));
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 18px 30px rgba(59, 130, 246, 0.08);
}

.dispatch-source-card.is-awaiting-receipt::before {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.dispatch-source-card.is-received {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 1));
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 18px 30px rgba(16, 185, 129, 0.1);
}

.dispatch-source-card.is-received::before {
  background: linear-gradient(180deg, #10b981, #059669);
}

.focus-item-side {
  text-align: right;
  flex-shrink: 0;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.focus-item-side strong {
  display: block;
  color: #102739;
  font-size: 20px;
}

.focus-item-side span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #7c8894;
}

.biz-mini-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.biz-mini-tag-sale {
  background: #fff1f0;
  color: #cf1322;
}

.biz-mini-tag-rent {
  background: #eff6ff;
  color: #1d4ed8;
}

.dispatch-source-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(124, 136, 148, 0.12);
  color: #51606f;
  white-space: nowrap;
}

.dispatch-source-card.is-confirmed .dispatch-source-state {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.dispatch-source-card.is-pending .dispatch-source-state {
  background: rgba(91, 107, 255, 0.14);
  color: #4052e8;
}

.dispatch-source-card.is-followup .dispatch-source-state {
  background: rgba(245, 158, 11, 0.16);
  color: #c2410c;
}

.dispatch-source-card.is-awaiting-receipt .dispatch-source-state {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.dispatch-source-card.is-received .dispatch-source-state {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.compact-outbound-card {
  gap: 8px;
}

.compact-outbound-card > div:first-child {
  flex: 1;
  min-width: 0;
}

.compact-outbound-side {
  min-width: 56px;
  width: 56px;
  gap: 6px;
}

.compact-outbound-side strong {
  font-size: 15px;
  line-height: 1.1;
}

.compact-outbound-side .dispatch-source-state {
  min-width: 52px;
  padding: 4px 6px;
  font-size: 11px;
}

.dispatch-source-note {
  color: #c2410c !important;
  font-weight: 600;
}

.dispatch-source-action-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
}

.dispatch-source-action-title {
  margin-bottom: 6px;
  font-weight: 700;
  color: #102739 !important;
}

.dispatch-source-actions {
  margin-top: 10px;
}

.followup-section {
  padding-top: 14px;
}

.focus-alert-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 214, 144, 0.28), rgba(255, 243, 217, 0.88));
  border: 1px solid rgba(245, 166, 35, 0.22);
  color: #8d5b00;
  font-size: 13px;
  line-height: 1.5;
}

.followup-item {
  align-items: flex-start;
}

.followup-main {
  flex: 1;
  min-width: 0;
}

.followup-main p {
  margin: 6px 0 0;
  color: #657585;
  line-height: 1.55;
}

.followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.followup-action-btn {
  min-height: 34px;
}

.followup-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #7c8894;
  font-size: 12px;
}

.followup-side strong {
  color: #d97706;
}

.map-marker-shell {
  position: relative;
  display: inline-flex;
}

.map-marker-biz-tags {
  position: absolute;
  top: -10px;
  right: -6px;
  display: inline-flex;
  gap: 4px;
  z-index: 2;
}

.map-marker-biz-tag {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(25, 41, 66, 0.18);
}

.map-marker-biz-tag-sale {
  background: #fff1f0;
  color: #cf1322;
}

.map-marker-biz-tag-rent {
  background: #eff6ff;
  color: #1d4ed8;
}

.map-marker-alert {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5c6a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(255, 92, 106, 0.28);
}

table {
  min-width: 1540px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  padding: 0 13px;
  height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

th {
  height: 37px;
  background: #e9edf2;
  font-weight: 500;
  color: #222d39;
}

td a {
  color: var(--blue);
  text-decoration: none;
}

.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  margin-right: 12px;
}

.danger-link {
  color: var(--red);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid transparent;
}

.tag.new {
  color: #7a5a00;
  background: #fff5cc;
  border-color: #ffe58f;
}

.tag.ready {
  color: #096dd9;
  background: #e6f4ff;
  border-color: #91caff;
}

.tag.running {
  color: #ad6800;
  background: #fff7e6;
  border-color: #ffd591;
}

.tag.done {
  color: #237804;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.tag.outbound {
  color: #455a64;
  background: #f4f6f8;
  border-color: #d9dee5;
}

.outbound-action-btn {
  min-width: 88px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.not-dispatched {
  color: #5c5f66;
  background: #f2f3f5;
  border-color: #d9dce1;
}

.pagination {
  height: 55px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #4d5866;
}

.pagination button,
.pagination select,
.pagination input {
  height: 32px;
  border: 1px solid #d9dfe7;
  border-radius: 4px;
  background: #fff;
  min-width: 32px;
  text-align: center;
}

.pagination .page-current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.pagination input {
  width: 50px;
}

.drawer-mask,
.modal-mask,
.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.confirm-mask {
  z-index: 2050;
}

.drawer-mask.is-visible,
.confirm-mask.is-visible {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(1120px, calc(100vw - 166px));
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 18%, #ffffff 100%);
  z-index: 2010;
  box-shadow: -18px 0 48px rgba(19, 38, 61, 0.18);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(219, 229, 240, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 220ms ease;
  will-change: transform, opacity;
}

.drawer.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.drawer-head,
.modal-head {
  min-height: 61px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head-modern {
  min-height: 84px;
  padding: 18px 26px 16px;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-bottom: 1px solid #e6edf5;
  backdrop-filter: blur(10px);
}

.drawer-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-head-kicker {
  color: #7f92a7;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.drawer-head-modern h2 {
  margin: 0;
  font-size: 22px;
  color: #10283c;
}

h2 {
  margin: 0;
  font-size: 16px;
  color: #1f2933;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  color: #486078;
  line-height: 1;
}

.close-btn:hover {
  border-color: #b7c9dc;
  background: #fff;
}

.drawer-body {
  padding: 28px 28px 96px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--blue);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 46px;
  margin-bottom: 30px;
}

.info-item span {
  display: block;
  color: #8793a1;
  font-size: 12px;
  margin-bottom: 8px;
}

.info-item strong {
  color: #2f3b48;
  font-weight: 500;
}

.info-item a {
  color: var(--blue);
  text-decoration: none;
}

.activity-card {
  border-radius: 6px;
  background: #f7f9fc;
  padding: 14px 12px;
  margin-bottom: 12px;
}

.activity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.activity-title {
  color: var(--blue);
  font-weight: 700;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #505b63;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
}

.activity-meta {
  color: #7f8b98;
  font-size: 12px;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2px;
}

.activity-box {
  background: #fff;
  border-radius: 5px;
  padding: 14px;
  min-height: 100px;
}

.activity-box h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.activity-box p {
  margin: 6px 0;
  font-size: 13px;
  color: #4d5866;
}

.timeline {
  margin-top: 18px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding-bottom: 16px;
  position: relative;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  bottom: -2px;
  border-left: 1px solid #d9e5f6;
}

.timeline-row:last-child::before {
  display: none;
}

.dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  margin-top: 2px;
  background: var(--blue);
}

.timeline-content {
  background: #f7f9fc;
  border-radius: 6px;
  padding: 12px 14px;
}

.timeline-content strong {
  display: block;
  margin-bottom: 5px;
}

.timeline-content p {
  margin: 0;
  color: #687586;
  font-size: 13px;
  line-height: 1.7;
}

.order-page-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.98));
}

.order-page-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
}

.order-page-sidebar {
  border-right: 1px solid rgba(223, 231, 242, 0.9);
  background: rgba(248, 251, 255, 0.96);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.order-page-sidebar-head {
  padding: 22px 22px 14px;
}

.order-page-sidebar-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #223247;
}

.order-page-sidebar-head p {
  margin: 0;
  color: #8190a3;
  font-size: 13px;
}

.order-page-search {
  margin: 0 18px 14px;
}

.order-page-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 18px;
}

.order-page-row {
  width: 100%;
  border: 1px solid rgba(223, 231, 242, 0.9);
  background: #fff;
  border-radius: 16px;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.order-page-row strong {
  font-size: 15px;
  color: #1d3147;
}

.order-page-row span,
.order-page-row em {
  font-style: normal;
  color: #7c8a9b;
  font-size: 12px;
}

.order-page-row:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 144, 255, 0.34);
}

.order-page-row.active {
  border-color: rgba(41, 144, 255, 0.55);
  box-shadow: 0 14px 30px rgba(41, 144, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
}

.order-detail-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.order-detail-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: #92a0b0;
  font-size: 15px;
}

.order-detail-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.order-detail-header {
  padding: 20px 24px 0;
}

.order-detail-crumb {
  color: #7e8a99;
  font-size: 13px;
  margin-bottom: 10px;
}

.order-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.order-detail-title-row h1 {
  margin: 0 0 8px;
  font-size: 32px;
  color: #1d3147;
}

.order-detail-title-row p {
  margin: 0;
  color: #748295;
  font-size: 14px;
}

.order-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(41, 144, 255, 0.1);
  color: #2990ff;
  font-weight: 700;
  font-size: 13px;
}

.order-detail-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(223, 231, 242, 0.9);
  overflow: auto;
  padding-bottom: 0;
}

.order-detail-tab {
  border: 0;
  background: transparent;
  color: #5f6f82;
  height: 50px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.order-detail-tab.active {
  color: #2990ff;
  border-bottom-color: #2990ff;
  font-weight: 700;
}

.order-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0;
  min-height: 0;
  flex: 1;
}

.order-log-panel {
  min-width: 0;
  padding: 16px 20px 24px 24px;
}

.order-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #647486;
  font-size: 13px;
}

.order-log-head strong {
  color: #203348;
  font-size: 16px;
}

.order-log-list {
  min-height: 0;
}

.order-log-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

.order-log-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: -4px;
  border-left: 1px solid #dbe6f5;
}

.order-log-item:last-child::before {
  display: none;
}

.order-log-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  background: #2990ff;
  box-shadow: 0 0 0 4px rgba(41, 144, 255, 0.12);
}

.order-log-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.order-log-meta strong {
  color: #203348;
  font-size: 14px;
}

.order-log-meta span {
  color: #7e8d9f;
  font-size: 12px;
}

.order-log-card {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 12px 14px;
}

.order-log-title,
.order-log-detail {
  margin: 0;
  color: #33465b;
  line-height: 1.7;
}

.order-log-title {
  font-weight: 600;
}

.order-log-detail {
  margin-top: 6px;
  color: #6f7e91;
  font-size: 13px;
}

.order-summary-panel {
  border-left: 1px solid rgba(223, 231, 242, 0.9);
  background: rgba(249, 251, 255, 0.9);
  padding: 16px;
}

.order-summary-card {
  background: #fff;
  border: 1px solid rgba(223, 231, 242, 0.9);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.order-summary-card h3 {
  margin: 0 0 14px;
  color: #223247;
  font-size: 16px;
}

.order-summary-card dl {
  margin: 0;
}

.order-summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f9;
}

.order-summary-card dl div:last-child {
  border-bottom: 0;
}

.order-summary-card dt,
.order-summary-card dd {
  margin: 0;
  font-size: 13px;
}

.order-summary-card dt {
  color: #7c8a9b;
}

.order-summary-card dd {
  color: #243547;
  font-weight: 600;
  text-align: right;
}

.order-page-empty {
  padding: 24px 14px;
  text-align: center;
  color: #8ea0b2;
  font-size: 13px;
}

.drawer-overview {
  margin-bottom: 28px;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: inline-block;
  margin: 0 12px 0 0;
  font-size: 28px;
  color: #142c42;
}

.drawer-status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.drawer-status-pill.is-dispatchable {
  background: #fff4e6;
  color: #d97706;
}

.drawer-status-pill.is-pending {
  background: #eef6ff;
  color: #2563eb;
}

.drawer-status-pill.is-running {
  background: #eef4ff;
  color: #4f46e5;
}

.drawer-status-pill.is-done {
  background: #edfdf2;
  color: #16a34a;
}

.drawer-section {
  padding: 24px 0;
  border-top: 1px solid #edf1f5;
}

.drawer-section-title {
  margin: 0 0 18px;
  font-size: 20px;
  color: #162f45;
}

.drawer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.drawer-info-item {
  padding: 16px 18px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: rgba(249, 252, 255, 0.9);
}

.drawer-info-item span {
  display: block;
  margin-bottom: 8px;
  color: #8b98a7;
  font-size: 13px;
}

.drawer-info-item strong,
.drawer-info-item a {
  color: #274056;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.drawer-product-list,
.drawer-detail-stack,
.drawer-timeline {
  display: grid;
  gap: 14px;
}

.drawer-product-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fafcff;
  padding: 16px 18px;
}

.drawer-product-icon,
.drawer-box-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: #5b6bff;
  font-size: 14px;
  font-weight: 700;
}

.drawer-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.drawer-product-row strong {
  color: #1d3348;
  font-size: 17px;
}

.drawer-product-qty {
  color: #26435d;
  font-size: 15px;
  font-weight: 600;
}

.drawer-product-main p {
  margin: 0 0 8px;
  color: #8390a0;
  font-size: 13px;
}

.drawer-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #94a0ad;
  font-size: 12px;
}

.drawer-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #dce6f7;
  border-radius: 14px;
  overflow: hidden;
  background: #dce6f7;
  margin-bottom: 18px;
}

.drawer-kpi-strip div {
  background: #eef4ff;
  padding: 18px 12px;
  text-align: center;
}

.drawer-kpi-strip strong {
  display: block;
  color: #3056d3;
  font-size: 30px;
  line-height: 1;
}

.drawer-kpi-strip span {
  display: block;
  margin-top: 8px;
  color: #6f8093;
  font-size: 13px;
}

.drawer-subtitle {
  margin: 4px 0 0;
  font-size: 15px;
  color: #2a4358;
}

.drawer-detail-card {
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(33, 54, 77, 0.04);
}

.drawer-detail-card.is-success {
  background: #effcf4;
  border-color: #b8ebca;
}

.drawer-detail-card.is-waiting {
  background: #fffaf0;
  border-color: #f6d89d;
}

.drawer-detail-card.is-outbound {
  background: #fff9ea;
  border-color: #f4d47d;
}

.drawer-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.drawer-detail-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff6b6b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.drawer-detail-person strong {
  color: #233a51;
  font-size: 15px;
}

.drawer-detail-person strong a {
  color: #4f6fff;
  text-decoration: none;
  margin-left: 6px;
}

.drawer-detail-person p,
.drawer-detail-foot {
  margin: 4px 0 0;
  color: #7f8d9d;
  font-size: 13px;
}

.drawer-detail-foot {
  padding-top: 12px;
  border-top: 1px dashed #e3eaf2;
}

.drawer-detail-state {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.drawer-detail-state.is-success {
  background: #dff8e6;
  color: #1f9d55;
}

.drawer-detail-state.is-waiting {
  background: #fff0cf;
  color: #d97706;
}

.drawer-detail-state.is-outbound {
  background: #ffe7a3;
  color: #b7791f;
}

.drawer-empty-card {
  border: 1px dashed #d4dce7;
  border-radius: 14px;
  padding: 22px;
  color: #91a0b0;
  text-align: center;
}

.drawer-timeline-section {
  padding-bottom: 8px;
}

.drawer-timeline-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.drawer-timeline-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.drawer-timeline-icon.system {
  background: #8b9bb0;
}

.drawer-timeline-icon.action {
  background: #22c55e;
}

.drawer-timeline-main {
  position: relative;
  padding-bottom: 12px;
}

.drawer-timeline-main::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 30px;
  bottom: -2px;
  border-left: 1px solid #dde5ef;
}

.drawer-timeline-row:last-child .drawer-timeline-main::before {
  display: none;
}

.drawer-timeline-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-timeline-head strong {
  color: #2f455a;
  font-size: 14px;
}

.drawer-timeline-head span {
  color: #92a0ae;
  font-size: 12px;
}

.drawer-timeline-card {
  border-radius: 12px;
  background: #f6f9fc;
  padding: 14px 16px;
  color: #40576c;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #e7edf4;
}

.dispatch-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1120px, calc(100vw - 56px));
  height: min(774px, calc(100vh - 44px));
  background: #fff;
  z-index: 2020;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#dispatchModal,
#modalMask {
  display: none !important;
}

.dispatch-workbench-head {
  min-height: 52px;
  padding: 0 26px;
}

.dispatch-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  height: 22px;
  align-items: center;
  margin-left: 10px;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff7e6;
  color: #d48806;
  font-size: 12px;
}

.modal-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 232px 1fr 278px;
  background: #f6f7fb;
  gap: 1px;
  border-bottom: 0;
}

.product-pane,
.candidate-pane,
.summary-pane {
  background: #fbfcff;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.product-pane,
.candidate-pane {
  padding-bottom: 12px;
}

.summary-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#dispatchSummary {
  flex: 1;
  overflow: auto;
}

.pane-title {
  min-height: 56px;
  line-height: 1.5;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  background: #fff;
  color: #19233c;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pane-title::after {
  content: "点击商品，查看可调度来源";
  display: block;
  color: #8d98ad;
  font-weight: 400;
  font-size: 12px;
}

.candidate-pane .pane-title::after {
  content: "按到期时间正序，越早越靠前";
}

.summary-pane .pane-title::after {
  content: "被调度商品及对应负责人";
}

.product-card,
.candidate-card,
.summary-card {
  margin: 12px 14px;
  border: 1px solid #e4e9f5;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
}

.product-card {
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-height: 118px;
}

.product-card.active {
  border-color: #5d6bff;
  background: #f0f2ff;
  box-shadow: 0 0 0 1px rgba(93, 107, 255, 0.08);
}

.product-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #eef1ff;
  color: #6673ff;
}

.product-card-main h3,
.candidate-card h3,
.summary-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.product-card-main p,
.candidate-card p,
.summary-card p {
  margin: 4px 0;
  color: #687586;
  font-size: 12px;
}

.selected-chip {
  position: absolute;
  right: 12px;
  bottom: 14px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #fff1d6;
  color: #d48806;
  font-size: 12px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: start;
  min-height: 98px;
}

.candidate-card.selected {
  border-color: #6673ff;
  background: #f1f3ff;
  box-shadow: inset 0 0 0 1px rgba(102, 115, 255, 0.12);
}

.candidate-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1c2;
  color: #e29900;
  font-size: 12px;
}

.candidate-card.selected .candidate-rank {
  background: #ffe2e1;
  color: #ff6257;
}

.candidate-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #18abc2;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.candidate-avatar.small {
  width: 28px;
  height: 28px;
}

.candidate-main {
  min-width: 0;
}

.candidate-main h3 {
  display: inline;
}

.candidate-main p {
  white-space: normal;
  line-height: 1.5;
}

.candidate-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.candidate-title a {
  color: #3d6cff;
  text-decoration: none;
  font-size: 13px;
}

.due-pill {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.due-pill.urgent {
  background: #fff1f0;
  color: #ff4d4f;
}

.due-pill.normal {
  background: #eafaf0;
  color: #21a35b;
}

.candidate-actions {
  display: grid;
  gap: 6px;
  justify-self: end;
  align-self: center;
  width: 104px;
}

.candidate-actions input {
  width: 96px;
  height: 30px;
  border: 1px solid #d6dde6;
  border-radius: 4px;
  padding: 0 8px;
}

.candidate-actions select {
  width: 96px;
  height: 30px;
  border: 1px solid #d6dde6;
  border-radius: 4px;
  background: #fff;
  padding: 0 8px;
}

.stepper {
  display: grid;
  grid-template-columns: 28px 44px 28px;
  align-items: center;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f7ff;
}

.stepper button {
  height: 30px;
  border: 0;
  background: #f0f2ff;
  color: #6673ff;
}

.stepper button:disabled {
  color: #c2c8d8;
  background: #f5f6fa;
  cursor: not-allowed;
}

.stepper span {
  text-align: center;
  color: #4851d9;
  font-weight: 600;
}

.mini-btn {
  height: 30px;
  border: 1px solid #6673ff;
  background: #fff;
  color: #6673ff;
  border-radius: 4px;
}

.mini-btn.selected {
  background: #6673ff;
  color: #fff;
}

.mini-btn.fulfilled,
.mini-btn:disabled {
  border-color: #d6dbe6;
  background: #f4f6fb;
  color: #9aa5b8;
  cursor: not-allowed;
}

.summary-empty {
  margin: 18px 12px;
  height: 120px;
  border: 1px dashed #cfd7e2;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #98a4b3;
}

.summary-total {
  margin: 12px 14px 0;
  color: #19233c;
  font-weight: 700;
  background: transparent;
  padding: 0;
}

.summary-card {
  position: relative;
  padding: 16px 14px 14px;
}

.summary-remove {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #aab2c2;
  font-size: 18px;
}

.summary-person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-meta {
  min-width: 0;
}

.summary-person h3 {
  margin: 0 0 4px;
}

.summary-person span:last-child {
  color: #8d98ad;
  font-size: 12px;
}

.summary-product {
  border-radius: 6px;
  background: #f7f8fc;
  padding: 10px 12px;
}

.summary-product p {
  margin: 6px 0 0;
  color: #687586;
  font-size: 12px;
}

.summary-product b {
  float: right;
  color: #5364ff;
}

.modal-foot {
  min-height: 138px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  width: 100%;
  margin-top: auto;
}

.summary-pane .modal-foot {
  border-top: 1px solid #eef2f6;
}

.notice {
  flex: 1;
  color: #6c7786;
  position: relative;
  padding-top: 26px;
  font-size: 13px;
  line-height: 1.6;
}

.notice::before {
  content: "已选 " attr(data-progress) " 件";
  position: absolute;
  left: 0;
  top: 0;
  color: #536079;
}

.notice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6673ff 0 42%, #eef1f6 42% 100%);
}

.modal-foot .ghost-btn {
  display: none;
}

.modal-foot .primary-btn {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  background: #6673ff;
  border-color: #6673ff;
}

.notice.warn {
  color: #ad6800;
}

.notice.ok {
  color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  top: 68px;
  transform: translateX(-50%);
  z-index: 2100;
  background: rgba(31, 41, 51, 0.92);
  color: #fff;
  border-radius: 4px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@keyframes panelSwapIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirm-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2060;
  width: min(860px, calc(100vw - 40px));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 26px 28px 22px;
  text-align: left;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.confirm-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff7e6;
  color: #fa8c16;
  font-weight: 700;
  font-size: 22px;
}

.confirm-dialog h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.confirm-dialog p {
  margin: 0;
  color: #687586;
  line-height: 1.7;
}

.todo-transfer-dialog {
  width: min(520px, calc(100vw - 40px));
}

.todo-transfer-field {
  display: block;
  margin-top: 18px;
  text-align: left;
}

.todo-transfer-field span {
  display: block;
  margin-bottom: 8px;
  color: #506173;
  font-size: 13px;
  font-weight: 700;
}

.todo-transfer-field select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(214, 223, 234, 0.96);
  padding: 0 14px;
  background: #fff;
  color: #243547;
  font-size: 14px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .todo-confirm-ship-grid.is-extended,
  .todo-confirm-ship-grid.is-compact {
    grid-template-columns: 1fr;
  }
}

.empty-cell {
  height: 180px;
  text-align: center;
  color: #98a4b3;
}

.hidden {
  display: none !important;
}

.icon-btn,
.ghost-btn,
.danger-btn,
.primary-btn,
.status-filter-chip,
.focus-city,
.selected-chip,
.due-pill,
.summary-total {
  white-space: nowrap;
}

.icon-btn,
.ghost-btn,
.danger-btn,
.primary-btn,
.status-filter-chip,
.due-pill {
  flex-shrink: 0;
}

.dispatch-inline-head h3,
.pane-title,
.product-card-main h3,
.candidate-card h3,
.summary-card h3,
.candidate-title a,
.summary-total {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-inline-head p,
.pane-title::after,
.product-card-main p,
.candidate-card p,
.summary-card p,
.candidate-main p {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.candidate-title {
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  body {
    min-width: 1080px;
  }

  .board-stage {
    grid-template-columns: minmax(0, 1.25fr) 320px;
  }

  .board-stage.is-dispatching {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .modal-grid {
    grid-template-columns: 245px 1fr 310px;
  }

  .todo-list {
    flex-direction: column;
  }
}
