.admin-body {
  background: #f3f6f5;
  color: var(--ink);
}

.admin-body.has-overlay {
  overflow: hidden;
}

.admin-boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: radial-gradient(circle at 50% 40%, #143442, #07141f);
  color: #fff;
}

.admin-boot-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: linear-gradient(145deg, #2ad6b1, #09755f);
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(14, 159, 127, 0.25);
  margin-bottom: 6px;
}

.admin-boot strong {
  font-size: 18px;
  letter-spacing: 2px;
}

.admin-boot span {
  color: #82a5a0;
  font-size: 10px;
  letter-spacing: 1px;
}

.fatal-error {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.fatal-error p {
  color: var(--muted);
  font-size: 13px;
}

/* ============ 布局 ============ */

.admin-layout {
  display: flex;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100dvh;
  flex: none;
  padding: 21px 16px 16px;
  color: #dbece8;
  background:
    radial-gradient(circle at 30% 0%, rgba(33, 185, 151, 0.11), transparent 33%),
    linear-gradient(180deg, #0b1f2c 0%, #091a25 72%, #071721 100%);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 212, 202, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 212, 202, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 5px;
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.sidebar-brand .brand-mark > span {
  font-size: 19px;
}

.sidebar-brand .brand-words {
  flex: 1;
}

.sidebar-brand .brand-words b {
  font-size: 16px;
  letter-spacing: 1.4px;
}

.sidebar-brand .brand-words em {
  font-size: 7px;
  letter-spacing: 2px;
  color: #617f7b;
}

.sidebar-collapse {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #6f918b;
}

.sidebar-collapse:hover {
  color: #d5ede8;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-collapse .icon {
  width: 16px;
  height: 16px;
}

.workspace-switch {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 2px 20px;
  padding: 10px 11px;
  border: 1px solid rgba(157, 211, 201, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-switch .workspace-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: rgba(44, 216, 179, 0.1);
  color: #4bdcbb;
}

.workspace-switch .workspace-icon .icon {
  width: 15px;
  height: 15px;
}

.workspace-switch > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.workspace-switch b {
  color: #d4e9e4;
  font-size: 10px;
  font-weight: 600;
}

.workspace-switch span {
  color: #5f7f79;
  font-size: 8px;
}

.workspace-switch > .icon {
  width: 13px;
  height: 13px;
  color: #5f7f79;
}

.side-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 0 2px;
}

.side-nav::-webkit-scrollbar {
  width: 0;
}

.nav-label {
  padding: 0 10px;
  margin: 0 0 8px;
  color: #4d6b66;
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 600;
}

.nav-label--spaced {
  margin-top: 22px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 41px;
  margin-bottom: 4px;
  padding: 0 11px;
  border-radius: 10px;
  color: #8fa9a4;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}

.nav-item:hover {
  color: #d9ebe7;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #eafffa;
  background: linear-gradient(90deg, rgba(18, 180, 143, 0.19), rgba(18, 180, 143, 0.05));
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: #32d5af;
  box-shadow: 0 0 13px rgba(50, 213, 175, 0.55);
}

.nav-item.active .icon {
  color: #42e0be;
  opacity: 1;
}

.nav-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #a8c7c1;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
}

.nav-badge.show {
  display: inline-flex;
}

.sidebar-fleet {
  position: relative;
  z-index: 1;
  margin: 15px 2px 14px;
  padding: 13px 13px 12px;
  border: 1px solid rgba(154, 213, 201, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
}

.sidebar-fleet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-fleet-head span {
  color: #6f8d87;
  font-size: 9px;
}

.sidebar-fleet-head b {
  color: #dff7f1;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.sidebar-fleet-bar {
  height: 3px;
  margin: 9px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sidebar-fleet-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26d2ab, #67e7c7);
  transition: width 0.5s ease;
}

.sidebar-fleet-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #587771;
  font-size: 8px;
}

.sidebar-fleet-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ed2ac;
}

.sidebar-bottom {
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(152, 205, 195, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 3px;
}

.sidebar-user .avatar {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  font-size: 10px;
}

.sidebar-user > div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sidebar-user b {
  color: #d9ebe7;
  font-size: 10px;
  font-weight: 600;
}

.sidebar-user span {
  color: #56736e;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #58736e;
}

.sidebar-user button:hover {
  color: #f0a0a0;
  background: rgba(213, 87, 87, 0.09);
}

.sidebar-user button .icon {
  width: 14px;
  height: 14px;
}

/* 主区 */

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

.backup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 30px;
  border-bottom: 1px solid #f0d9a8;
  background: linear-gradient(90deg, #fff8e8 0%, #fffdf7 65%, #f4fbf8 100%);
  color: #6d4b18;
}

.backup-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f5b642;
  color: #fff;
}

.backup-banner-copy {
  flex: 1;
  min-width: 0;
}

.backup-banner-copy b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #6a4812;
}

.backup-banner-copy p {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8a6d3d;
}

.backup-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.backup-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a7a45;
  cursor: pointer;
}

.backup-banner-close:hover {
  background: rgba(154, 122, 69, 0.1);
}

@media (max-width: 720px) {
  .backup-banner {
    align-items: flex-start;
    padding: 10px 14px;
  }

  .backup-banner-copy p {
    font-size: 11px;
  }

  .backup-banner-actions .btn {
    padding: 7px 10px;
    font-size: 11px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(226, 234, 231, 0.88);
  background: rgba(248, 250, 249, 0.82);
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa9a5;
  font-size: 10px;
}

.topbar-crumb .icon {
  width: 11px;
  height: 11px;
  color: #b6c2bf;
}

.topbar-crumb b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #edf7f2;
  color: #4f7b6f;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
}

.sync-chip:hover {
  background: #e3f3ec;
}

.sync-chip.offline {
  background: #fdf0ee;
  color: #b65d52;
}

.sync-chip.offline i {
  background: #d36b60;
  animation: none;
}

.sync-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1fbc95;
  animation: pulse 2.2s infinite;
}

.top-clock {
  min-width: 44px;
  color: #506660;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.top-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #7d918b;
}

.top-icon-btn:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}

.top-icon-btn .icon {
  width: 17px;
  height: 17px;
}

.notification-dot {
  display: none;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8763b;
  border: 1.5px solid #f8faf9;
}

.notification-dot.show {
  display: block;
}

.top-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 7px;
  border-radius: 10px;
}

.top-user-btn:hover {
  background: #fff;
}

.top-user-btn .avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 9px;
}

.top-user-meta {
  display: grid;
  gap: 1px;
  text-align: left;
}

.top-user-meta b {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.top-user-meta em {
  color: #9babaa;
  font-style: normal;
  font-size: 8px;
}

.top-user-btn > .icon {
  width: 11px;
  height: 11px;
  color: #9dadab;
}

.user-menu {
  position: absolute;
  top: 57px;
  right: 28px;
  display: none;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(10, 39, 31, 0.13);
}

.user-menu.show {
  display: block;
  animation: fadeUp 0.15s ease both;
}

.user-menu-head {
  display: grid;
  gap: 2px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid #eef2f0;
  margin-bottom: 5px;
}

.user-menu-head b {
  font-size: 11px;
}

.user-menu-head span {
  color: var(--muted);
  font-size: 9px;
  font-family: var(--mono);
}

.user-menu button,
.user-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 33px;
  padding: 0 9px;
  border-radius: 7px;
  color: #5f7470;
  font-size: 10px;
  text-align: left;
}

.user-menu button:hover {
  background: #fdf2f2;
  color: var(--red);
}

.user-menu-link:hover {
  background: #f3faf7;
  color: #0e9378;
}

.user-menu .icon {
  width: 14px;
  height: 14px;
}

.admin-view {
  max-width: 1540px;
  margin: 0 auto;
  padding: 27px 30px 46px;
}

.admin-view.view-enter {
  animation: pageIn 0.28s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 页头 ============ */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5e8a7d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2.2px;
  font-weight: 600;
}

.page-kicker::before {
  content: "";
  width: 17px;
  height: 1px;
  background: #8db7aa;
}

.page-head h1 {
  margin: 9px 0 5px;
  color: #102732;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  font-weight: 700;
}

.page-head p {
  margin: 0;
  color: #7e918b;
  font-size: 11px;
  line-height: 1.55;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  color: #8ba09a;
  font-size: 9px;
  white-space: nowrap;
}

.live-updated i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #20c09a;
  animation: pulse 2s infinite;
}

.live-updated b {
  color: #5e7972;
  font-family: var(--mono);
  font-weight: 500;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #7d918b;
}

.icon-action:hover {
  color: var(--green);
  border-color: #cde5dc;
}

.icon-action .icon {
  width: 15px;
  height: 15px;
}

/* 提醒条 */

.alert-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #f2e5d4;
  border-radius: 11px;
  background: linear-gradient(90deg, #fffaf0, #fffdf9);
}

.alert-strip-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff2dc;
  color: #c48326;
  flex: none;
}

.alert-strip-icon .icon {
  width: 14px;
  height: 14px;
}

.alert-strip-list {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 18px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #766a58;
  text-align: left;
}

.alert-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tone);
  flex: none;
}

.alert-item b {
  color: #504537;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.alert-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.alert-item .icon {
  width: 12px;
  height: 12px;
  color: #b5a58f;
}

.alert-more {
  color: #b28449;
  font-size: 9px;
  white-space: nowrap;
}

/* KPI */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  position: relative;
  padding: 17px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 49, 40, 0.025);
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--kpi-soft, #eef7f4);
  opacity: 0.55;
}

.kpi-card--green { --kpi-color: #0e9f7f; --kpi-soft: #e7f6f1; }
.kpi-card--blue { --kpi-color: #3b7fc4; --kpi-soft: #eaf3fc; }
.kpi-card--amber { --kpi-color: #d59124; --kpi-soft: #fdf2df; }
.kpi-card--orange { --kpi-color: #e8763b; --kpi-soft: #fcf0e8; }
.kpi-card--violet { --kpi-color: #7159ce; --kpi-soft: #f0edfc; }

.kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--kpi-soft);
  color: var(--kpi-color);
}

.kpi-icon .icon {
  width: 15px;
  height: 15px;
}

.kpi-label {
  color: #7d918b;
  font-size: 10px;
  font-weight: 500;
}

.kpi-alert {
  display: inline-flex;
  align-items: center;
  height: 19px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 5px;
  background: #fdf0e9;
  color: #d66b30;
  font-size: 8px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.kpi-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 13px 0 10px;
}

.kpi-value b {
  color: #102732;
  font-family: var(--mono);
  font-size: 27px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.kpi-value span {
  color: #95a49f;
  font-size: 9px;
}

.kpi-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 23px;
}

.kpi-bottom > span:first-child {
  color: #96a5a0;
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 38px;
  height: 21px;
  flex: none;
}

.kpi-spark i {
  flex: 1;
  min-height: 2px;
  border-radius: 2px 2px 1px 1px;
  background: var(--kpi-color);
  opacity: 0.23;
}

.kpi-spark i:last-child {
  opacity: 0.8;
}

/* 面板 */

.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(19, 49, 40, 0.022);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 19px 14px;
}

.section-head h2 {
  margin: 0 0 3px;
  color: #1b343d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.section-head p {
  margin: 0;
  color: #9aaaa5;
  font-size: 8.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #729288;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--green);
}

.text-link .icon {
  width: 12px;
  height: 12px;
}

.overview-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.overview-grid--top {
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
}

.overview-grid--bottom {
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
}

/* 地图 */

.map-panel {
  overflow: hidden;
}

.live-map-wrap {
  position: relative;
  height: 352px;
  margin: 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1e2c;
}

.live-map-svg {
  width: 100%;
  height: 100%;
}

.map-road {
  stroke: #7ac6b7;
  stroke-opacity: 0.1;
  stroke-width: 1;
  fill: none;
}

.map-city-point circle {
  fill: #547a75;
  opacity: 0.65;
}

.map-city-point text {
  fill: #547a75;
  font-size: 9px;
  font-family: var(--font);
}

.map-city-active circle:first-child {
  fill: none;
  stroke: #4ad9b8;
  stroke-opacity: 0.32;
  stroke-width: 1.4;
}

.map-city-active circle:nth-child(2) {
  fill: #d8fff6;
}

.map-city-active text {
  fill: #c8e9e2;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
}

.map-route-halo {
  stroke-width: 9;
  stroke-opacity: 0.08;
  fill: none;
  stroke-linecap: round;
}

.map-route-line {
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 5;
  animation: routeFlow 15s linear infinite;
}

@keyframes routeFlow {
  to { stroke-dashoffset: -100; }
}

.map-truck-core {
  filter: url(#truckGlow);
}

.map-truck-halo {
  animation: mapPulse 2.8s ease-out infinite;
  transform-origin: center;
}

@keyframes mapPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.map-scale text {
  fill: #5f8780;
  font-size: 7px;
  font-family: var(--mono);
}

.map-overlay-top {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.map-region,
.map-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(163, 229, 216, 0.13);
  border-radius: 7px;
  background: rgba(7, 29, 38, 0.72);
  color: #8dc1b8;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.map-region .icon {
  width: 11px;
  height: 11px;
  color: #4fd9ba;
}

.map-signal i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #35d7b2;
  animation: pulse 2s infinite;
}

.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(163, 229, 216, 0.1);
  border-radius: 7px;
  background: rgba(7, 29, 38, 0.73);
  backdrop-filter: blur(8px);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #749c96;
  font-size: 7.5px;
}

.map-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.map-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(163, 229, 216, 0.1);
  border-radius: 7px;
  background: rgba(7, 29, 38, 0.73);
  backdrop-filter: blur(8px);
}

.map-count b {
  color: #5de5c5;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.map-count span {
  color: #7c9f99;
  font-size: 8px;
}

.map-count em {
  margin-left: 5px;
  padding-left: 8px;
  border-left: 1px solid rgba(161, 210, 201, 0.13);
  color: #5c817b;
  font-style: normal;
  font-size: 7px;
}

.map-foot-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 19px 14px;
}

.map-foot-stats > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.map-foot-stats span {
  color: #98a8a3;
  font-size: 8.5px;
}

.map-foot-stats b {
  color: #27444b;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}

/* 运力列表 */

.fleet-panel {
  display: flex;
  flex-direction: column;
}

.fleet-list {
  flex: 1;
  max-height: 372px;
  overflow-y: auto;
  padding: 0 9px;
}

.fleet-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.fleet-row:hover {
  background: #f8fbf9;
}

.fleet-avatar-wrap {
  position: relative;
  flex: none;
}

.fleet-avatar-wrap .avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 10px;
}

.online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: #b6c3be;
}

.online-dot.on {
  background: #24c19a;
}

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

.fleet-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fleet-name b {
  color: #263f46;
  font-size: 10.5px;
  font-weight: 600;
}

.fleet-name span {
  color: #9babaa;
  font-size: 8px;
  font-family: var(--mono);
}

.fleet-route {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #718b84;
  font-size: 8.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fleet-route .icon {
  width: 11px;
  height: 11px;
  color: #9bb2ab;
}

.fleet-route em {
  color: #a8b6b1;
  font-style: normal;
  font-size: 7.5px;
}

.fleet-idle {
  color: #a6b4af;
}

.fleet-progress {
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: #eef3f1;
  overflow: hidden;
}

.fleet-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13af89, #5bddbd);
}

.fleet-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}

.fleet-side .status-pill {
  height: 20px;
  padding: 0 7px;
  font-size: 8px;
}

.fleet-side em {
  color: #a4b2ad;
  font-style: normal;
  font-size: 7px;
}

.fleet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 17px 0;
  padding-top: 11px;
  border-top: 1px solid #eef2f0;
  color: #99a8a3;
  font-size: 8px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4f8979;
}

.online-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22bf98;
}

.fleet-foot .mini-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #0b8f72;
  font-size: 8px;
  font-weight: 600;
}

/* 表格 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th {
  padding: 9px 13px;
  border-top: 1px solid #f0f4f2;
  border-bottom: 1px solid #edf2ef;
  background: #f9fbfa;
  color: #93a39e;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: left;
  white-space: nowrap;
}

.data-table th:first-child {
  padding-left: 19px;
}

.data-table th:last-child {
  padding-right: 19px;
}

.data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #f0f4f2;
  color: #425b60;
  font-size: 10px;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.14s ease;
}

.data-table tbody tr:hover {
  background: #f8fbfa;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .num {
  text-align: right;
}

.data-table th.num {
  text-align: right;
}

.data-table th:nth-last-child(1),
.data-table td:nth-last-child(1) {
  width: 36px;
  padding-right: 16px;
}

.order-cell {
  display: grid;
  gap: 3px;
}

.order-cell b {
  color: #213b42;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.order-cell > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #56746b;
  font-size: 9.5px;
}

.order-cell > span i {
  color: #a0b9b1;
  font-style: normal;
}

.order-cell > span em {
  color: #a3b2ad;
  font-style: normal;
  font-size: 8px;
}

.order-cell small {
  display: block;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #a6b3af;
  font-size: 8px;
}

.order-cell--wide {
  min-width: 240px;
}

.driver-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.driver-cell .avatar {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  font-size: 8px;
}

.driver-cell > span {
  display: grid;
  gap: 1px;
}

.driver-cell b {
  color: #38544f;
  font-size: 9.5px;
  font-weight: 600;
}

.driver-cell em {
  color: #a4b4af;
  font-style: normal;
  font-size: 7.5px;
  font-family: var(--mono);
}

.cargo-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: #f3f7f5;
  color: #5f7b71;
  font-size: 8.5px;
}

.money {
  color: #1b3d38 !important;
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

.muted-cell {
  color: #8fa09a !important;
  white-space: nowrap;
  font-size: 8.5px !important;
}

.text-muted {
  color: #b6c2be;
}

.row-arrow {
  color: #b0bfba;
}

.row-arrow .icon {
  width: 14px;
  height: 14px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 55px 20px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #f2f7f5;
  color: #9db3ac;
}

.empty-state > span .icon {
  width: 22px;
  height: 22px;
}

.empty-state b {
  color: #405c56;
  font-size: 12px;
  font-weight: 600;
}

.empty-state p {
  max-width: 300px;
  margin: 0 0 5px;
  color: #9aaba5;
  font-size: 9px;
  line-height: 1.6;
}

.empty-state--sm {
  padding: 28px 15px;
}

.empty-mini {
  padding: 26px 15px;
  color: #a1b0ab;
  font-size: 9px;
  text-align: center;
}

/* 调度动态 */

.activity-list {
  padding: 0 13px 10px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 7px;
  border-radius: 8px;
  text-align: left;
}

.activity-row:hover {
  background: #f8fbf9;
}

.activity-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #eff5f3;
  color: #78968d;
  flex: none;
}

.activity-dot.is-driver {
  background: #e9f7f2;
  color: #0e9f7f;
}

.activity-dot.is-admin {
  background: #eef3fa;
  color: #4b7fb2;
}

.activity-dot .icon {
  width: 12px;
  height: 12px;
}

.activity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.activity-copy b {
  color: #3c5651;
  font-size: 9.5px;
  font-weight: 600;
}

.activity-copy em {
  color: #9cabaa;
  font-style: normal;
  font-size: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-row time {
  color: #a9b6b2;
  font-size: 7.5px;
  white-space: nowrap;
}

/* ============ 运单工作台 ============ */

.orders-workbench,
.receipts-workbench {
  overflow: hidden;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-bottom: 1px solid #edf2ef;
  flex-wrap: wrap;
}

.seg-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #f3f6f5;
  flex-wrap: wrap;
}

.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  color: #85968f;
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}

.seg-tab em {
  color: #a5b3ae;
  font-style: normal;
  font-family: var(--mono);
  font-size: 8px;
}

.seg-tab:hover {
  color: #526e64;
}

.seg-tab.active {
  background: #fff;
  color: #1d3c33;
  box-shadow: 0 2px 7px rgba(20, 49, 39, 0.06);
  font-weight: 600;
}

.seg-tab.active em {
  color: #0e9f7f;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-left: auto;
  padding: 0 5px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-box .icon {
  width: 14px;
  height: 14px;
  color: #a3b3ae;
}

.search-box input {
  width: 166px;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 9.5px;
}

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

.search-box button {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f0f5f3;
  color: #54766b;
  font-size: 8.5px;
  font-weight: 600;
}

.search-box button:hover {
  background: #eaf4f0;
  color: var(--green-dark);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 19px;
  border-top: 1px solid #f0f4f2;
  color: #9aa9a4;
  font-size: 8px;
}

.table-footer b {
  color: #506e64;
  font-family: var(--mono);
  font-weight: 500;
}

/* ============ 司机管理 ============ */

.driver-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

.driver-summary-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.driver-summary-card > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #f1f7f5;
  color: #688a7f;
}

.driver-summary-card > span.green { background: #e8f7f2; color: #0e9f7f; }
.driver-summary-card > span.amber { background: #fdf3e4; color: #cf8b22; }
.driver-summary-card > span.blue { background: #ebf3fc; color: #3b7fc4; }

.driver-summary-card > span .icon {
  width: 16px;
  height: 16px;
}

.driver-summary-card > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.driver-summary-card b {
  color: #16323a;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
}

.driver-summary-card em {
  color: #94a5a0;
  font-style: normal;
  font-size: 9px;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.driver-card {
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 49, 40, 0.02);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.driver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 55, 44, 0.07);
}

.driver-card--pending {
  border-color: #f0e5d5;
  background: linear-gradient(150deg, #fffdf9, #fff 42%);
}

.driver-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.driver-card-avatar {
  position: relative;
}

.driver-card-avatar .avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 12px;
}

.driver-card-avatar .online-dot {
  width: 9px;
  height: 9px;
}

.driver-card-name {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.driver-card-name > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.driver-card-name b {
  color: #1c3740;
  font-size: 13px;
  font-weight: 600;
}

.driver-card-name > span {
  color: #99aaa4;
  font-size: 8.5px;
  font-family: var(--mono);
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: #fdf2e2;
  color: #bb7b18;
  font-size: 7.5px;
  font-weight: 600;
}

.pending-badge.disabled {
  background: #f1f3f3;
  color: #8d9b98;
}

.more-btn {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: #a4b3ae;
}

.more-btn:hover {
  background: #f6f9f7;
  color: #5a746c;
}

.more-btn .icon {
  width: 15px;
  height: 15px;
}

.driver-card-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f0f4f2;
  color: #8fa29b;
  font-size: 8px;
  flex-wrap: wrap;
}

.driver-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.driver-card-meta .icon {
  width: 11px;
  height: 11px;
  color: #a5b6b0;
}

.driver-task {
  margin-top: 12px;
  padding: 11px 11px 9px;
  border: 1px solid #e9f2ee;
  border-radius: 10px;
  background: #f7fbf9;
}

.driver-task--idle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f9faf9;
  border-color: #eff2f1;
}

.task-idle-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0f4f2;
  color: #8ea39c;
}

.task-idle-icon .icon {
  width: 15px;
  height: 15px;
}

.driver-task--idle > div {
  display: grid;
  gap: 2px;
}

.driver-task--idle b {
  color: #647b73;
  font-size: 9px;
  font-weight: 600;
}

.driver-task--idle span {
  color: #a1b0ab;
  font-size: 8px;
}

.driver-task-route {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #28463f;
  font-size: 10px;
}

.driver-task-route b {
  font-weight: 600;
}

.driver-task-route > span:not(.status-pill) {
  color: #a0b4ad;
  display: inline-flex;
}

.driver-task-route .status-pill {
  margin-left: auto;
  height: 20px;
  font-size: 7.5px;
}

.driver-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #99aaa5;
  font-size: 7.5px;
}

.driver-task-foot em {
  font-style: normal;
  color: #6c8880;
  font-family: var(--mono);
}

.driver-task-progress {
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: #e8f0ed;
  overflow: hidden;
}

.driver-task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12ad87, #5bddbd);
}

.driver-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.driver-card-stats > div {
  display: grid;
  gap: 2px;
  padding: 0 9px;
  border-right: 1px solid #eef2f1;
}

.driver-card-stats > div:first-child {
  padding-left: 0;
}

.driver-card-stats > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.driver-card-stats b {
  color: #2c4a45;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.driver-card-stats span {
  color: #9daca7;
  font-size: 7.5px;
}

.driver-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.driver-card-actions .btn {
  flex: 1;
  height: 31px;
  padding: 0 8px;
  font-size: 8.5px;
  border-radius: 8px;
}

/* ============ 统计 ============ */

.range-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
  padding: 12px 15px;
  flex-wrap: wrap;
}

.range-presets {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #f3f6f5;
}

.range-presets button {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #83968f;
  font-size: 8.5px;
  font-weight: 500;
}

.range-presets button:hover {
  color: #456259;
}

.range-presets button.active {
  background: #fff;
  color: #1f4238;
  box-shadow: 0 2px 7px rgba(20, 49, 39, 0.06);
  font-weight: 600;
}

.range-form {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #93a49e;
  font-size: 8.5px;
}

.range-form label {
  color: #778d85;
  font-weight: 600;
}

.range-form input {
  width: 126px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #48635b;
  font-size: 8.5px;
  outline: none;
}

.range-form input:focus {
  border-color: #a7d8c9;
}

.range-form .btn {
  height: 32px;
}

.range-note {
  margin-left: auto;
  color: #9faea9;
  font-size: 8px;
}

.stats-kpi-grid {
  margin-bottom: 17px;
}

.stats-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 15px;
}

.stats-grid--main {
  grid-template-columns: minmax(0, 2fr) minmax(295px, 0.85fr);
}

.stats-grid--rankings {
  grid-template-columns: 1fr 1fr;
}

.chart-panel {
  min-width: 0;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8fa19a;
  font-size: 8px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i.bar {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #17b18b;
}

.chart-legend i.line {
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: #eca43e;
}

.chart-wrap {
  padding: 0 15px 0 8px;
}

.stats-chart {
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: #eef3f1;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.chart-axis {
  fill: #a3b1ac;
  font-family: var(--mono);
  font-size: 8px;
}

.chart-dot {
  fill: #f2a33c;
  stroke: #fff;
  stroke-width: 1.5;
}

.weight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 3px 18px 16px;
  padding: 11px 0;
  border-top: 1px solid #eef2f0;
  background: #fafcfb;
  border-radius: 8px;
}

.weight-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid #e9efed;
}

.weight-strip > div:last-child {
  border-right: 0;
}

.weight-strip span {
  color: #99a8a3;
  font-size: 8px;
}

.weight-strip b {
  color: #3c5b52;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.weight-strip b.green {
  color: var(--green);
}

.status-chart-panel {
  padding-bottom: 13px;
}

.donut-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 3px 18px 9px;
}

.donut-chart {
  position: relative;
  width: 140px;
  height: 140px;
  flex: none;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center b {
  color: #1e3b3f;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
}

.donut-center span {
  color: #97a8a2;
  font-size: 8px;
}

.donut-legend {
  display: grid;
  gap: 7px;
  flex: 1;
}

.donut-legend > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.donut-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #84968f;
  font-size: 8px;
}

.donut-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.donut-legend b {
  color: #4a6560;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.status-summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 18px 0;
  padding-top: 10px;
  border-top: 1px solid #eef2f0;
  color: #97a7a2;
  font-size: 8px;
}

.status-summary-foot b {
  color: #477168;
  font-family: var(--mono);
  font-weight: 600;
}

.rank-table {
  padding: 0 14px 12px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  border-bottom: 1px solid #f1f4f2;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-index {
  width: 21px;
  color: #b2bfba;
  font-family: var(--mono);
  font-size: 9px;
  flex: none;
}

.rank-index.top {
  color: #d69a35;
  font-weight: 600;
}

.rank-row .avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 8px;
}

.rank-copy {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.rank-copy b {
  color: #3d5753;
  font-size: 9.5px;
  font-weight: 600;
}

.rank-copy span {
  color: #a0afaa;
  font-size: 7.5px;
}

.rank-value {
  color: #1d3b37;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.route-rank-list {
  padding: 2px 16px 12px;
}

.route-rank-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}

.route-rank-no {
  width: 18px;
  color: #acbbb5;
  font-family: var(--mono);
  font-size: 8px;
}

.route-rank-main {
  flex: 1;
  display: grid;
  gap: 5px;
}

.route-rank-main b {
  color: #47615a;
  font-size: 9.5px;
  font-weight: 500;
}

.route-rank-main > span {
  height: 3px;
  border-radius: 2px;
  background: #f0f4f2;
  overflow: hidden;
}

.route-rank-main i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #15ab85, #6edfc1);
}

.route-rank-value {
  display: grid;
  gap: 1px;
  text-align: right;
}

.route-rank-value b {
  color: #4d6860;
  font-size: 8.5px;
  font-weight: 600;
}

.route-rank-value span {
  color: #a1b0ab;
  font-size: 7px;
  font-family: var(--mono);
}

/* ============ 回单 ============ */

.receipt-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

.receipt-summary > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.receipt-summary > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef7f3;
  color: #3d9880;
}

.receipt-summary > div > span .icon {
  width: 16px;
  height: 16px;
}

.receipt-summary p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.receipt-summary b {
  color: #173239;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.receipt-summary em {
  color: #96a6a1;
  font-style: normal;
  font-size: 8.5px;
}

.date-range-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #97a7a2;
  font-size: 8px;
}

.date-range-inline input {
  width: 118px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #5b726b;
  font-size: 8.5px;
}

.date-range-inline .btn {
  height: 32px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 17px;
}

.receipt-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.receipt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20, 55, 44, 0.08);
}

.receipt-thumb {
  position: relative;
  height: 152px;
  background: #eef2f0;
  overflow: hidden;
}

.receipt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.receipt-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 35, 0.38), transparent 55%);
  pointer-events: none;
}

.receipt-thumb-veil {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(11, 36, 44, 0.76);
  color: #e1f5f0;
  font-size: 8px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

.receipt-thumb-veil .icon {
  width: 12px;
  height: 12px;
}

.receipt-card:hover .receipt-thumb-veil {
  opacity: 1;
}

.receipt-archived {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(7, 38, 32, 0.7);
  color: #9df0dc;
  font-size: 7.5px;
  backdrop-filter: blur(6px);
}

.receipt-archived .icon {
  width: 10px;
  height: 10px;
}

.receipt-body {
  padding: 11px 12px 10px;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.receipt-head b {
  color: #233e43;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
}

.receipt-head .status-pill {
  height: 19px;
  padding: 0 6px;
  font-size: 7px;
}

.receipt-route {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #6e8981;
  font-size: 8.5px;
}

.receipt-route .icon {
  width: 10px;
  height: 10px;
  color: #a5b8b1;
}

.receipt-weights {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 0;
  border-top: 1px solid #f0f4f2;
  border-bottom: 1px solid #f0f4f2;
}

.receipt-weights span {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.receipt-weights em {
  color: #9caca7;
  font-style: normal;
  font-size: 7px;
}

.receipt-weights b {
  color: #4f6a63;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.receipt-weights b.green {
  color: var(--green);
}

.receipt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #9baba6;
  font-size: 7.5px;
}

.receipt-foot time {
  font-family: var(--mono);
}

/* ============ 弹层 ============ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay--drawer {
  justify-content: flex-end;
  padding: 0;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 30, 0.47);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100vw);
  height: 100dvh;
  background: #f5f7f6;
  box-shadow: -20px 0 60px rgba(3, 18, 26, 0.22);
  animation: drawIn 0.26s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes drawIn {
  from { transform: translateX(32px); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer--loading {
  justify-content: center;
  align-items: center;
}

.drawer-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d857d;
  font-size: 10px;
}

.drawer-loader .icon {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 24px 17px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.drawer-kicker {
  color: #7a9a8f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1.7px;
  font-weight: 600;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.drawer-title h2 {
  margin: 0;
  color: #152e38;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.drawer-title .status-pill {
  height: 23px;
}

.overlay-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #7d918b;
  flex: none;
}

.overlay-close:hover {
  background: #f2f6f4;
  color: #314e48;
}

.overlay-close .icon {
  width: 16px;
  height: 16px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 17px 21px 28px;
}

.drawer-route-card {
  padding: 17px 18px 13px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 20%, rgba(52, 209, 172, 0.1), transparent 40%),
    linear-gradient(140deg, #0d2431, #0b1e2a);
  color: #dff4ef;
  box-shadow: 0 14px 30px rgba(9, 38, 44, 0.15);
}

.drawer-route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7fa89f;
  font-size: 9px;
}

.drawer-route-top em {
  color: #5d9388;
  font-style: normal;
  font-family: var(--mono);
}

.drawer-route-line {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: start;
  gap: 5px;
  margin-top: 15px;
}

.route-node {
  display: flex;
  gap: 8px;
}

.route-node > i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #35d7b2;
  box-shadow: 0 0 0 3px rgba(53, 215, 178, 0.13);
  flex: none;
}

.route-node--end > i {
  background: #ffd28d;
  box-shadow: 0 0 0 3px rgba(255, 210, 141, 0.1);
}

.route-node > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-node span {
  color: #5f817a;
  font-size: 7.5px;
}

.route-node b {
  color: #f0fbf8;
  font-size: 15px;
  font-weight: 600;
}

.route-node em {
  color: #789b94;
  font-style: normal;
  font-size: 8px;
  line-height: 1.45;
}

.route-connector {
  position: relative;
  height: 30px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.route-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(88, 219, 187, 0.35) 0 3px, transparent 3px 7px);
}

.route-connector > span {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  background: #42d9b5;
}

.route-connector > i {
  position: absolute;
  left: calc(50% - 10px);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #143b41;
  color: #4fe1bf;
  box-shadow: 0 0 0 3px rgba(13, 36, 49, 0.7);
  font-style: normal;
}

.route-connector > i .icon {
  width: 11px;
  height: 11px;
}

.drawer-route-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(164, 219, 207, 0.09);
  color: #5f837b;
  font-size: 7.5px;
}

.drawer-route-foot span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.drawer-route-foot .icon {
  width: 10px;
  height: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.detail-cell {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  background: #fff;
}

.detail-cell span {
  color: #97a7a2;
  font-size: 8px;
}

.detail-cell b {
  color: #3f5a55;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-cell b.money {
  color: #0c8b70;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.drawer-section {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.drawer-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.drawer-section-head h3 {
  margin: 0 0 3px;
  color: #294640;
  font-size: 11px;
  font-weight: 600;
}

.drawer-section-head p {
  margin: 0;
  color: #9baaa5;
  font-size: 8px;
  line-height: 1.5;
}

.weight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.weight-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  background: #f7faf9;
  border: 1px solid #eef3f0;
}

.weight-grid span {
  color: #97a6a1;
  font-size: 7.5px;
}

.weight-grid b {
  color: #45645b;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.weight-grid .highlight {
  background: #f0faf6;
  border-color: #d9f0e6;
}

.weight-grid .highlight b {
  color: var(--green);
}

.ticket-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  border: 1px solid #edf1ef;
  border-radius: 9px;
  background: #fbfcfb;
  text-align: left;
}

.ticket-preview:hover {
  border-color: #cfe6dd;
}

.ticket-preview img {
  width: 42px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e5ebe8;
  background: #fff;
}

.ticket-preview > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6a8580;
  font-size: 8.5px;
  flex-wrap: wrap;
}

.ticket-preview .icon {
  width: 13px;
  height: 13px;
  color: #8da59e;
}

.ticket-preview em {
  display: block;
  width: 100%;
  color: #a2b2ac;
  font-style: normal;
  font-size: 7.5px;
}

.receipt-waiting {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 9px;
  background: #fbf8f0;
  border: 1px solid #f3ead7;
}

.receipt-waiting > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fdf2df;
  color: #c78a28;
  flex: none;
}

.receipt-waiting .icon {
  width: 16px;
  height: 16px;
}

.receipt-waiting b {
  display: block;
  color: #73603f;
  font-size: 9px;
  font-weight: 600;
}

.receipt-waiting p {
  margin: 3px 0 0;
  color: #a29173;
  font-size: 8px;
  line-height: 1.5;
}

.drawer-track-stats {
  display: flex;
  gap: 21px;
  margin-bottom: 9px;
}

.drawer-track-stats > div {
  display: grid;
  gap: 2px;
}

.drawer-track-stats span {
  color: #99aaa5;
  font-size: 7.5px;
}

.drawer-track-stats b {
  color: #3a5f55;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.linear-progress {
  height: 4px;
  border-radius: 999px;
  background: #edf2f0;
  overflow: hidden;
}

.linear-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12af88, #5ce0c0);
}

.drawer-track-route {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #9aa9a4;
  font-size: 7.5px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 13px;
  bottom: 14px;
  width: 1px;
  background: #eaf0ee;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 6px 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f0f4f2;
  color: #8da29a;
  flex: none;
  border: 2px solid #fff;
}

.timeline-dot.driver {
  background: #e7f6f0;
  color: #0e9f7f;
}

.timeline-dot.admin {
  background: #ecf2fa;
  color: #4e81b5;
}

.timeline-dot .icon {
  width: 11px;
  height: 11px;
}

.timeline-copy {
  display: grid;
  gap: 2px;
  padding-top: 1px;
}

.timeline-copy b {
  color: #49615d;
  font-size: 9px;
  font-weight: 600;
}

.timeline-copy p {
  margin: 0;
  color: #98a8a3;
  font-size: 8px;
  line-height: 1.45;
}

.timeline-copy time {
  color: #b3bfbb;
  font-size: 7px;
  font-family: var(--mono);
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 21px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer-foot > div {
  display: flex;
  gap: 7px;
}

.drawer-foot .btn {
  height: 34px;
  font-size: 9px;
}

/* 通用 modal */

.modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  max-height: min(880px, calc(100dvh - 40px));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(4, 21, 28, 0.28);
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.993); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal--sm {
  width: min(430px, 100%);
}

.modal--md {
  width: min(590px, 100%);
}

.modal--lg {
  width: min(760px, 100%);
}

.modal--receipt {
  width: min(1000px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 23px 15px;
  border-bottom: 1px solid #eef2f0;
}

.modal-kicker {
  color: #6f978b;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1.8px;
  font-weight: 600;
}

.modal-head h2 {
  margin: 8px 0 4px;
  color: #152f38;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.modal-head p {
  margin: 0;
  max-width: 560px;
  color: #94a49f;
  font-size: 9px;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 18px 23px 0;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 -2px;
  color: #577168;
  font-size: 9px;
  font-weight: 600;
}

.form-section-title span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #edf7f3;
  color: #0e9f7f;
  font-family: var(--mono);
  font-size: 7px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid--two {
  grid-template-columns: 1fr 1fr;
}

.form-grid--three {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.modal-form .field {
  gap: 6px;
}

.modal-form .field > label {
  font-size: 9px;
}

.modal-form .field > label span {
  font-size: 8px;
}

.modal-form .field input,
.modal-form .field select {
  height: 37px;
  border-radius: 8px;
  font-size: 10px;
}

.modal-form .field textarea {
  height: 62px;
  border-radius: 8px;
  font-size: 10px;
}

.distance-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px dashed #dbe9e4;
  border-radius: 8px;
  background: #f8fcfa;
  color: #7f9b92;
  font-size: 8.5px;
}

.distance-preview .icon {
  width: 13px;
  height: 13px;
  color: #0e9f7f;
}

.distance-preview span {
  flex: 1;
}

.distance-preview b {
  color: #0c8c71;
  font-family: var(--mono);
  font-size: 10px;
}

.invite-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f5faf8;
  border: 1px solid #e2f0ea;
  color: #749188;
  font-size: 8.5px;
  line-height: 1.6;
}

.invite-tip .icon {
  width: 13px;
  height: 13px;
  color: #4f9f89;
  margin-top: 1px;
  flex: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px -23px 0;
  padding: 13px 23px;
  border-top: 1px solid #eef2f0;
  background: #fbfcfb;
}

.modal-actions--center {
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  border-top: 0;
  background: transparent;
  padding-top: 4px;
}

.modal-actions > div {
  display: flex;
  gap: 7px;
}

.modal-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9daca7;
  font-size: 8px;
  line-height: 1.4;
}

.modal-hint .icon {
  width: 12px;
  height: 12px;
}

.modal--success {
  align-items: center;
  padding: 27px 28px 24px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, #28c9a3, #0d9476);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 159, 127, 0.24);
}

.success-mark .icon {
  width: 24px;
  height: 24px;
}

.modal--success h2 {
  margin: 8px 0 6px;
  color: #16333b;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.success-desc {
  max-width: 360px;
  margin: 0;
  color: #8d9f99;
  font-size: 9px;
  line-height: 1.65;
}

.success-desc b {
  color: #47675e;
  font-family: var(--mono);
}

.invite-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid #e0eee8;
  border-radius: 9px;
  background: #f7fbf9;
}

.invite-link-box span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #607f76;
  font-family: var(--mono);
  font-size: 9px;
}

.invite-link-box .icon {
  width: 12px;
  height: 12px;
}

.invite-link-box button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0e8e72;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.success-steps {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 15px;
  text-align: left;
}

.success-steps > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fbfa;
}

.success-steps > div > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #e7f6f0;
  color: #0e9f7f;
  font-family: var(--mono);
  font-size: 8px;
  flex: none;
}

.success-steps p {
  display: grid;
  gap: 1px;
  margin: 0;
}

.success-steps b {
  color: #55716a;
  font-size: 8.5px;
  font-weight: 600;
}

.success-steps em {
  color: #a1b0ab;
  font-style: normal;
  font-size: 7.5px;
}

.alert-modal-list {
  padding: 10px 15px 16px;
  overflow-y: auto;
}

.alert-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 9px;
  border-bottom: 1px solid #f0f4f2;
  text-align: left;
}

.alert-modal-row:last-child {
  border-bottom: 0;
}

.alert-modal-row:hover {
  background: #f9fbfa;
}

.alert-modal-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tone-soft, #eef3f2);
  color: var(--tone, #728691);
  flex: none;
}

.alert-modal-icon .icon {
  width: 15px;
  height: 15px;
}

.alert-modal-row > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.alert-modal-row b {
  color: #425d57;
  font-size: 9.5px;
  font-weight: 600;
}

.alert-modal-row p {
  margin: 0;
  color: #9aaba5;
  font-size: 8px;
  line-height: 1.5;
}

.alert-modal-row > .icon {
  width: 13px;
  height: 13px;
  color: #aebcb7;
}

/* 局域网协同弹层 */

.modal--network {
  width: min(760px, 100%);
}

.network-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(235px, 0.65fr);
  gap: 0;
  overflow-y: auto;
}

.network-main {
  padding: 17px 20px 18px;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dcefe7;
  border-radius: 10px;
  background: #f4fbf8;
}

.network-status.offline {
  border-color: #f1ded9;
  background: #fdf6f4;
}

.network-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1cc39b;
  box-shadow: 0 0 0 4px rgba(28, 195, 155, 0.12);
  flex: none;
}

.network-status.offline .network-status-dot {
  background: #d2675b;
  box-shadow: 0 0 0 4px rgba(210, 103, 91, 0.1);
}

.network-status > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.network-status b {
  color: #3d655b;
  font-size: 9.5px;
  font-weight: 600;
}

.network-status em {
  color: #91a49e;
  font-style: normal;
  font-size: 7.5px;
}

.network-status .mini-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #0e9277;
  font-size: 7.5px;
  font-weight: 600;
}

.network-list {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  border: 1px solid #edf2f0;
  border-radius: 9px;
  background: #edf2f0;
  overflow: hidden;
}

.network-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
}

.network-row span {
  min-width: 94px;
  color: #9baaa5;
  font-size: 7.5px;
}

.network-row b {
  flex: 1;
  color: #4b6761;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  word-break: break-all;
}

.network-row em {
  color: #8eb1a6;
  font-style: normal;
  font-size: 7px;
  white-space: nowrap;
}

.network-row button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #f1f8f5;
  color: #4e8e7d;
}

.network-row button .icon {
  width: 11px;
  height: 11px;
}

.network-tips {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.network-tips > div {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.network-tips > div > span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #edf7f3;
  color: #0e9f7f;
  font-family: var(--mono);
  font-size: 6.5px;
  flex: none;
}

.network-tips p {
  display: grid;
  gap: 1px;
  margin: 0;
}

.network-tips b {
  color: #607b73;
  font-size: 8px;
  font-weight: 600;
}

.network-tips em {
  color: #9caba6;
  font-style: normal;
  font-size: 7px;
  line-height: 1.45;
}

.network-warning {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fbf7ed;
  color: #967f54;
  font-size: 7px;
  line-height: 1.5;
}

.network-warning .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

.network-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 18px 17px;
  border-left: 1px solid #eef2f0;
  background: #fbfcfb;
}

.network-qr img {
  width: 100%;
  max-width: 208px;
  border: 1px solid #e6ece9;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(17, 52, 41, 0.08);
}

.network-qr b {
  margin-top: 5px;
  color: #4f6b64;
  font-size: 8.5px;
  font-weight: 600;
}

.network-qr span {
  color: #9daca7;
  font-size: 7px;
}

.network-qr-note {
  max-width: 190px;
  margin: 3px 0 0;
  color: #abb8b4;
  font-size: 6.5px;
  line-height: 1.5;
  text-align: center;
}

.network-qr a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  color: #0e9277;
  font-size: 7.5px;
  font-weight: 600;
}

.network-qr a .icon {
  width: 10px;
  height: 10px;
}

/* 回单弹层 */

.receipt-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  min-height: 0;
  overflow-y: auto;
}

.receipt-large {
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(45deg, #eef2f0 25%, transparent 25%, transparent 75%, #eef2f0 75%),
    linear-gradient(45deg, #eef2f0 25%, #f7f9f8 25%, #f7f9f8 75%, #eef2f0 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  overflow: auto;
}

.receipt-large img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(12, 34, 26, 0.18);
  background: #fff;
}

.receipt-meta {
  padding: 20px;
  border-left: 1px solid #eef2f0;
}

.receipt-meta-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eef2f0;
}

.receipt-meta-head > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e9f7f2;
  color: #0e9f7f;
}

.receipt-meta-head .icon {
  width: 16px;
  height: 16px;
}

.receipt-meta-head > div {
  display: grid;
  gap: 2px;
}

.receipt-meta-head b {
  color: #36554c;
  font-size: 10px;
  font-weight: 600;
}

.receipt-meta-head em {
  color: #97a8a2;
  font-style: normal;
  font-size: 8px;
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 13px;
  border: 1px solid #eef2f0;
  border-radius: 9px;
  background: #eef2f0;
  overflow: hidden;
}

.receipt-meta-grid > div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: #fff;
}

.receipt-meta-grid span {
  color: #9baba6;
  font-size: 7.5px;
}

.receipt-meta-grid b {
  color: #4a645e;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.receipt-meta-grid .highlight b {
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}

.receipt-file {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 9px;
  border-radius: 7px;
  background: #f7faf9;
  color: #708b83;
  font-size: 8px;
}

.receipt-file em {
  color: #a2b1ac;
  font-style: normal;
  font-family: var(--mono);
}

.receipt-meta-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.receipt-meta-actions .btn {
  flex: 1;
  height: 35px;
  font-size: 9px;
}

.driver-detail-body {
  padding: 18px 22px 4px;
  overflow-y: auto;
}

.driver-detail-hero {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d2735, #123b46);
  color: #e6f8f4;
}

.driver-detail-hero .avatar {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 13px;
}

.driver-detail-hero > div:nth-child(2) {
  display: grid;
  gap: 3px;
  flex: 1;
}

.driver-detail-hero b {
  font-size: 14px;
  font-weight: 600;
}

.driver-detail-hero span {
  color: #7ea49d;
  font-size: 8.5px;
}

.driver-detail-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.driver-detail-score b {
  color: #ffd28d;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}

.driver-detail-score span {
  color: #71958e;
  font-size: 7.5px;
}

.driver-current-order {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid #eaf1ee;
  border-radius: 9px;
  background: #fbfcfb;
  text-align: left;
}

.driver-current-order > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.driver-current-order b {
  color: #3a544e;
  font-family: var(--mono);
  font-size: 9.5px;
}

.driver-current-order span {
  color: #8b9f98;
  font-size: 8.5px;
}

.driver-current-order > .icon {
  width: 14px;
  height: 14px;
  color: #a6b5b0;
}

/* 视图错误与骨架 */

.view-error {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 100px 20px;
  text-align: center;
}

.view-error-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #fdf2e8;
  color: #d48b34;
}

.view-error h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.view-error p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.page-head--loading {
  display: block;
}

.sk-line {
  height: 10px;
  margin-bottom: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eaf0ee, #f5f8f7, #eaf0ee);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-line--sm { width: 100px; height: 6px; }
.sk-line--lg { width: 250px; height: 22px; margin: 12px 0; }
.sk-line--md { width: 340px; height: 8px; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.sk-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 17px;
}

.sk-card {
  height: 124px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ecf1ef, #f8faf9, #ecf1ef);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-panel-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}

.sk-panel {
  height: 420px;
  border-radius: 17px;
  background: linear-gradient(90deg, #ecf1ef, #f8faf9, #ecf1ef);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

/* 桌面侧边栏收起 */
@media (min-width: 961px) {
  .sidebar {
    transition: width 0.22s ease;
  }

  .admin-layout.sidebar-collapsed .sidebar {
    width: 78px;
    padding-left: 11px;
    padding-right: 11px;
  }

  .admin-layout.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
  }

  .admin-layout.sidebar-collapsed .sidebar-brand .brand-words,
  .admin-layout.sidebar-collapsed .workspace-switch > div,
  .admin-layout.sidebar-collapsed .workspace-switch > .icon:last-child,
  .admin-layout.sidebar-collapsed .nav-label,
  .admin-layout.sidebar-collapsed .nav-item > span,
  .admin-layout.sidebar-collapsed .nav-badge,
  .admin-layout.sidebar-collapsed .sidebar-fleet,
  .admin-layout.sidebar-collapsed .sidebar-user > div,
  .admin-layout.sidebar-collapsed .sidebar-user > button {
    display: none;
  }

  .admin-layout.sidebar-collapsed .sidebar-collapse {
    position: absolute;
    right: 7px;
    top: 28px;
    width: 22px;
    height: 22px;
  }

  .admin-layout.sidebar-collapsed .workspace-switch {
    justify-content: center;
    padding: 8px;
    margin-top: 22px;
  }

  .admin-layout.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0;
  }

  .admin-layout.sidebar-collapsed .nav-item.active::before {
    left: -11px;
  }

  .admin-layout.sidebar-collapsed .sidebar-user {
    justify-content: center;
  }
}

/* ============ 响应式 ============ */

@media (max-width: 1280px) {
  .admin-view {
    padding: 24px;
  }

  .overview-grid--top {
    grid-template-columns: minmax(0, 1.6fr) minmax(285px, 1fr);
  }

  .overview-grid--bottom {
    grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr);
  }

  .driver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 224px;
  }

  .kpi-card {
    padding: 15px 15px 12px;
  }

  .kpi-value b {
    font-size: 23px;
  }

  .overview-grid--top,
  .overview-grid--bottom {
    grid-template-columns: 1fr;
  }

  .fleet-list {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .stats-grid--main {
    grid-template-columns: 1fr;
  }

  .status-chart-panel {
    min-height: 230px;
  }

  .donut-layout {
    justify-content: center;
  }

  .driver-summary,
  .receipt-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .receipt-modal-body {
    grid-template-columns: 1fr;
  }

  .receipt-meta {
    border-left: 0;
    border-top: 1px solid #eef2f0;
  }
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 60px rgba(3, 18, 26, 0.24);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-collapse {
    display: none;
  }

  .sidebar-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(4, 20, 28, 0.42);
    backdrop-filter: blur(2px);
  }

  .sidebar-scrim.show {
    display: block;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    padding: 0 18px;
  }

  .admin-view {
    padding: 21px 18px 40px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .page-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .sync-chip {
    display: none;
  }

  .top-user-meta {
    display: none;
  }

  .fleet-list {
    grid-template-columns: 1fr;
  }

  .driver-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid--rankings {
    grid-template-columns: 1fr;
  }

  .search-box {
    margin-left: 0;
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 60px;
    padding: 0 13px;
  }

  .topbar-crumb {
    font-size: 9px;
  }

  .top-clock {
    display: none;
  }

  .top-user-btn > .icon {
    display: none;
  }

  .user-menu {
    right: 13px;
    top: 52px;
  }

  .admin-view {
    padding: 18px 13px 35px;
  }

  .page-head h1 {
    font-size: 23px;
  }

  .page-head-actions {
    gap: 6px;
  }

  .live-updated {
    width: 100%;
  }

  .kpi-grid,
  .sk-kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .kpi-card {
    padding: 13px 13px 11px;
  }

  .kpi-icon {
    width: 26px;
    height: 26px;
  }

  .kpi-value {
    margin: 10px 0 8px;
  }

  .kpi-value b {
    font-size: 21px;
  }

  .kpi-bottom > span:first-child {
    font-size: 7.5px;
  }

  .kpi-spark {
    width: 29px;
  }

  .live-map-wrap {
    height: 300px;
    margin: 0 9px;
  }

  .map-foot-stats {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 10px 13px;
  }

  .map-count em {
    display: none;
  }

  .fleet-foot {
    flex-wrap: wrap;
  }

  .fleet-foot .mini-link {
    margin-left: 0;
  }

  .section-head {
    padding: 14px 14px 11px;
  }

  .filter-bar {
    padding: 10px 12px;
    gap: 7px;
  }

  .seg-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .seg-tab {
    flex: none;
  }

  .search-box {
    width: 100%;
    flex: auto;
  }

  .orders-workbench .search-box {
    width: 100%;
  }

  .table-footer {
    padding: 10px 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .driver-summary,
  .receipt-summary {
    gap: 8px;
  }

  .driver-summary-card,
  .receipt-summary > div {
    padding: 11px 12px;
  }

  .driver-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .driver-card {
    padding: 14px;
  }

  .range-panel {
    gap: 9px;
    padding: 10px;
  }

  .range-presets {
    width: 100%;
    overflow-x: auto;
  }

  .range-presets button {
    flex: 1;
    white-space: nowrap;
  }

  .range-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .range-form input {
    flex: 1;
    width: 100px;
  }

  .range-note {
    margin-left: 0;
  }

  .weight-strip {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 8px 10px;
    margin: 4px 12px 13px;
  }

  .weight-strip > div:nth-child(2) {
    border-right: 0;
  }

  .donut-layout {
    gap: 7px;
  }

  .donut-chart {
    width: 118px;
    height: 118px;
  }

  .receipt-grid {
    padding: 12px;
  }

  .date-range-inline {
    width: 100%;
  }

  .date-range-inline input {
    flex: 1;
    width: auto;
  }

  .receipt-thumb {
    height: 175px;
  }

  .overlay {
    padding: 0;
  }

  .modal {
    width: 100% !important;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    align-self: flex-end;
    animation: sheetIn 0.24s ease both;
  }

  @keyframes sheetIn {
    from { transform: translateY(18px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }

  .overlay {
    align-items: flex-end;
  }

  .modal-head {
    padding: 17px 17px 13px;
  }

  .modal-head h2 {
    font-size: 18px;
  }

  .modal-form {
    padding: 15px 17px 0;
  }

  .form-grid--two,
  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    margin-left: -17px;
    margin-right: -17px;
    padding: 11px 17px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .modal-actions > div {
    justify-content: flex-end;
  }

  .modal-hint {
    order: 2;
  }

  .drawer {
    width: 100vw;
  }

  .drawer-head {
    padding: 16px 17px 13px;
  }

  .drawer-body {
    padding: 13px 13px 24px;
  }

  .drawer-foot {
    padding: 10px 13px;
    flex-wrap: wrap;
  }

  .drawer-foot > div {
    width: 100%;
  }

  .drawer-foot .btn {
    flex: 1;
  }

  .drawer-route-card {
    padding: 14px;
  }

  .drawer-route-line {
    grid-template-columns: 1fr 34px 1fr;
  }

  .drawer-route-line .route-node b {
    font-size: 13px;
  }

  .weight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-large img {
    max-height: 50vh;
  }

  .receipt-meta {
    padding: 15px;
  }

  .receipt-modal-body {
    display: block;
  }

  .alert-strip {
    align-items: flex-start;
  }

  .alert-strip-list {
    flex-direction: column;
    gap: 6px;
  }

  .alert-item {
    width: 100%;
  }

  .alert-item span {
    white-space: normal;
    line-height: 1.4;
  }

  .alert-more {
    display: none;
  }

  .modal--success {
    padding: 22px 18px 20px;
  }

  .network-body {
    grid-template-columns: 1fr;
  }

  .network-qr {
    border-left: 0;
    border-top: 1px solid #eef2f0;
  }

  .network-qr img {
    max-width: 170px;
  }

  .network-row {
    flex-wrap: wrap;
  }

  .network-row b {
    flex-basis: calc(100% - 110px);
  }
}

@media (max-width: 430px) {
  .kpi-grid,
  .sk-kpi-row {
    grid-template-columns: 1fr;
  }

  .kpi-value b {
    font-size: 24px;
  }

  .topbar-crumb span {
    display: none;
  }

  .top-user-btn {
    padding: 0;
  }

  .driver-task-route {
    flex-wrap: wrap;
  }
}

/* Cloudflare 云端协同面板 */
.network-qr--cloud {
  justify-items: center;
  align-content: start;
}

.network-qr--cloud .cloud-glyph {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 4px 0 9px;
  border: 1px solid #dbece6;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, #f4fbf8, #e8f7f1);
  color: #0e9f7f;
  box-shadow: 0 12px 28px rgba(15, 92, 76, 0.08);
}

.network-qr--cloud .cloud-glyph .icon {
  width: 36px;
  height: 36px;
}

.network-qr--cloud b {
  font-size: 10px;
}

.network-qr--cloud span {
  color: #7d9a92;
  font-size: 7px;
}

.network-qr--cloud .network-qr-note {
  max-width: 190px;
  margin: 8px 0 4px;
  color: #9bada7;
  font-size: 6.8px;
  line-height: 1.55;
  text-align: center;
}
