* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1f2937; }
.hidden { display: none !important; }

/* 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
  background: #fff; padding: 48px 40px; border-radius: 16px; width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); text-align: center;
}
.login-logo { font-size: 56px; margin-bottom: 12px; }
.login-box h1 { font-size: 22px; color: #1f2937; }
.login-sub { color: #9ca3af; font-size: 13px; margin: 4px 0 28px; letter-spacing: 1px; }
.form-group { margin-bottom: 16px; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 14px; outline: none; transition: border .2s;
}
.form-group input:focus { border-color: #667eea; }

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none;
  padding: 11px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600;
  transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; border: 1px solid #e5e7eb; padding: 6px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px; color: #6b7280;
}
.btn-ghost:hover { background: #f9fafb; }
.btn-danger { background: #ef4444; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.login-tip { margin-top: 18px; font-size: 12px; color: #9ca3af; }

/* 布局 */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #1f2937; color: #d1d5db; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
}
.logo { padding: 20px; font-size: 18px; font-weight: 700; color: #fff; border-bottom: 1px solid #374151; }
.logo span { margin-left: 6px; }
.nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: block; padding: 12px 22px; color: #d1d5db; text-decoration: none;
  font-size: 14px; cursor: pointer; transition: all .2s; border-left: 3px solid transparent;
}
.nav-item:hover { background: #374151; color: #fff; }
.nav-item.active { background: #374151; color: #fff; border-left-color: #667eea; }
.sidebar-footer { padding: 14px; border-top: 1px solid #374151; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }

.main { margin-left: 220px; flex: 1; min-width: 0; }
.topbar {
  background: #fff; padding: 16px 28px; border-bottom: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar h2 { font-size: 18px; }
.content { padding: 24px 28px; }

/* 卡片 */
.card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-left: 4px solid #667eea; display: flex; justify-content: space-between; align-items: center;
}
.stat-card .label { color: #6b7280; font-size: 13px; margin-bottom: 6px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #1f2937; }
.stat-card .icon { font-size: 36px; opacity: .6; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.orange { border-left-color: #f59e0b; }
.stat-card.blue { border-left-color: #3b82f6; }
.stat-card.red { border-left-color: #ef4444; }

/* 表格 */
.table-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.table-toolbar { padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #f3f4f6; }
.table-toolbar input, .table-toolbar select {
  padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; outline: none;
}
.table-toolbar input:focus, .table-toolbar select:focus { border-color: #667eea; }
.table-toolbar .spacer { flex: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
th { background: #f9fafb; color: #374151; font-weight: 600; }
.finance-table { min-width: 780px; }
.finance-cards { display: none; }
.finance-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; margin-bottom: 10px; }
.finance-card:last-child { margin-bottom: 0; }
.finance-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.finance-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.finance-card-grid > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.finance-card-grid span { color: #6b7280; font-size: 11px; }
.finance-card-grid b { font-size: 13px; overflow-wrap: anywhere; }
.finance-card-action { width: 100%; margin-top: 13px; min-height: 42px; }
.finance-reconcile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #f8fafc; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.finance-reconcile-summary > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.finance-reconcile-summary span { color: #64748b; font-size: 11px; }
.finance-reconcile-summary b { font-size: 13px; overflow-wrap: anywhere; }
.finance-reconcile-tip { color: #64748b; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.form-hint { margin-top: 5px; font-size: 12px; min-height: 18px; }
#mobileNavToggle { display: none; margin-left: auto; border: 0; border-radius: 7px; background: #374151; color: #fff; padding: 7px 12px; min-width: 44px; min-height: 42px; font-size: 18px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; z-index: 2; }
/* 列表页顶部筛选面板（订单列表等） */
.filter-panel {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.filter-panel .fp-item { display: flex; align-items: center; gap: 8px; }
.filter-panel .fp-label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.filter-panel .fp-ctl {
  width: 150px; padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 13px; outline: none; background: #fff; color: #374151;
}
.filter-panel .fp-ctl:focus { border-color: #667eea; }
.filter-panel .fp-ctl.fp-wide { width: 220px; }
.filter-panel .fp-ctl.fp-date { width: 140px; }
.filter-panel .fp-tilde { color: #9ca3af; }
.filter-panel .fp-ssel { min-width: 150px; }
.filter-panel .fp-ssel .ssel { width: 100%; }
.filter-panel .fp-ssel .ssel-btn { padding: 7px 10px; font-size: 13px; }
.filter-panel .fp-actions { display: flex; gap: 8px; margin-left: auto; }
tr:hover td { background: #f9fafb; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.tag-pending { background: #fef3c7; color: #92400e; }
.tag-packed { background: #ede9fe; color: #6d28d9; }
.tag-assigned, .tag-delivering, .tag-picking { background: #dbeafe; color: #1e40af; }
.tag-delivered { background: #d1fae5; color: #065f46; }
.tag-cancelled { background: #fee2e2; color: #991b1b; }
.tag-idle { background: #d1fae5; color: #065f46; }
.tag-busy { background: #dbeafe; color: #1e40af; }
.tag-offline { background: #e5e7eb; color: #4b5563; }
.tag-normal { background: #e5e7eb; color: #4b5563; }
.tag-urgent { background: #fee2e2; color: #991b1b; }
.tag-scheduled { background: #ede9fe; color: #5b21b6; }
.tag-csreview { background: #fef3c7; color: #92400e; }
.cat-badge { display:inline-block; background:#ecfeff; color:#155e75; border-radius:10px; padding:2px 8px; font-size:11px; font-weight:600; border:1px solid #a5f3fc; }
.tag-rejected { background: #ffedd5; color: #c2410c; }
.pin-badge { display:inline-block; background:#ede9fe; color:#5b21b6; border-radius:10px; padding:2px 8px; font-size:11px; font-weight:700; font-family:monospace; letter-spacing:1px; margin-top:2px; }
.stat-card.purple { border-left-color: #8b5cf6; }

/* 侧边栏二级菜单：父菜单可展开/收起，子菜单缩进 */
.nav-parent { display: flex; justify-content: space-between; align-items: center; }
.nav-arrow { font-size: 11px; transition: transform .2s; opacity: .7; }
.nav-group.open .nav-arrow { transform: rotate(90deg); }
.nav-group .nav-child { display: none; padding-left: 44px; font-size: 13px; }
.nav-group.open .nav-child { display: flex; justify-content: space-between; align-items: center; }
.nav-cnt { background: #4b5563; color: #fff; border-radius: 9px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.nav-item.active .nav-cnt { background: #667eea; }

/* 行内「操作」下拉菜单（fixed 定位由 JS 计算，避免被表格 overflow 裁剪） */
.dd { display: inline-block; }
.dd-menu { display: none; position: fixed; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 300; min-width: 140px; overflow: hidden; }
.dd-menu.show { display: block; }
.dd-menu a { display: block; padding: 9px 14px; font-size: 13px; color: #374151; cursor: pointer; white-space: nowrap; }
.dd-menu a:hover { background: #f3f4f6; color: #667eea; }

/* 订单号链接：任何页面点击可查看订单预览 */
.ono-link { color: #667eea; cursor: pointer; text-decoration: none; font-family: inherit; }
.ono-link:hover { text-decoration: underline; }
/* 订单预览弹窗 */
.op-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.op-table td { padding: 6px 4px; vertical-align: top; border-top: 1px dashed #f3f4f6; }
.op-k { color: #6b7280; width: 72px; white-space: nowrap; }
.op-tl { margin-top: 14px; border-top: 1px solid #f3f4f6; padding-top: 10px; }
.op-tl-item { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.op-tl-dot { width: 7px; height: 7px; border-radius: 50%; background: #667eea; flex: none; }
.op-tl-k { color: #6b7280; width: 34px; flex: none; }
.op-tl-v { color: #1f2937; }

.action-btns { display: flex; gap: 6px; }
.action-btns button {
  padding: 4px 10px; border: 1px solid #e5e7eb; background: #fff; border-radius: 5px;
  cursor: pointer; font-size: 12px; color: #374151;
}
.action-btns button:hover { background: #f9fafb; border-color: #667eea; color: #667eea; }
.action-btns button.danger:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.modal-box {
  position: relative; background: #fff; border-radius: 12px; width: 480px; max-width: 92vw;
  max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-close { font-size: 24px; cursor: pointer; color: #9ca3af; line-height: 1; }
.modal-body { padding: 20px; }
.inventory-detail-modal {
  width: min(96vw, 1180px);
  max-width: 96vw;
  max-height: 90vh;
}
.inventory-detail-modal .modal-body { overflow-x: auto; }
.inventory-detail-modal .modal-body table { min-width: 900px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #667eea; }
.form-row textarea { resize: vertical; min-height: 60px; }
.modal-foot { padding: 0 20px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* 产品管理图片 */
.p-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; cursor: zoom-in; display: block; }
.pv-img { width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e7eb; background: #f9fafb; }
.pv-empty { font-size: 12px; color: #9ca3af; border: 1px dashed #e5e7eb; border-radius: 8px; padding: 10px; text-align: center; }

/* 可搜索下拉（ssel）：按钮 + 展开面板，搜索框含在面板内选项上方 */
.ssel { position: relative; }
.ssel-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 13px; cursor: pointer; }
.ssel-btn:hover { border-color: #667eea; }
.ssel-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssel-placeholder { color: #9ca3af; }
.ssel-arrow { font-size: 11px; color: #9ca3af; flex: none; }
.ssel-panel { display: none; position: absolute; z-index: 400; top: calc(100% + 4px); left: 0; right: 0; min-width: 180px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); overflow: hidden; }
.ssel-panel.show { display: block; }
.ssel-q { width: 100%; padding: 9px 12px; border: none; border-bottom: 1px solid #f3f4f6; font-size: 13px; outline: none; background: #fafbfc; }
.ssel-q:focus { background: #fff; }
.ssel-list { max-height: 220px; overflow: auto; }
.ssel-opt { padding: 8px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssel-opt:hover { background: #f3f4f6; }
.ssel-opt.on { background: #eef2ff; color: #667eea; font-weight: 600; }
.ssel-empty { padding: 14px; text-align: center; color: #9ca3af; font-size: 12px; }

/* Shared search controls: multiple values and an explicit matching mode. */
.search-input-group { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; min-width: 180px; max-width: 100%; }
.search-input-group .search-multi-text { flex: 1 1 150px; min-width: 100px; max-width: 100%; min-height: 36px; height: 36px; resize: vertical; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font: inherit; font-size: 13px; line-height: 18px; }
.search-input-group .search-multi-text:focus { outline: none; border-color: #667eea; }
.search-mode { flex: 0 0 auto; min-height: 36px; max-width: 150px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 12px; color: #374151; }
.search-hint { width: 100%; font-size: 11px; color: #6b7280; line-height: 1.5; }
.search-input-group .search-mode { width: auto; }
.filter-panel .fp-item > .search-input-group { width: 300px; }
.search-multiselect { position: relative; min-width: 240px; max-width: 100%; }
.search-multi-button { display: block; width: 100%; min-height: 44px; padding: 11px 30px 11px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; font-size: 14px; text-align: left; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
.search-multi-button::after { content: '▾'; position: absolute; right: 11px; top: 13px; color: #6b7280; }
.search-multi-panel { position: absolute; z-index: 450; left: 0; top: calc(100% + 5px); width: 520px; max-width: min(92vw, 560px); border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #0003; padding: 11px; }
.search-multi-panel[hidden] { display: none; }
.search-multi-toolbar { display: flex; gap: 5px; }
.search-option-query { flex: 1; min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; }
.search-multi-toolbar .search-mode { max-width: 120px; width: auto; }
.search-clear { display: block; border: 0; background: #fff; color: #4f46e5; font-size: 12px; padding: 8px 3px; cursor: pointer; }
.search-multi-options { max-height: 360px; overflow: auto; }
.search-multi-done { display: block; width: 100%; padding: 11px; margin-top: 8px; border: 1px solid #c7d2fe; border-radius: 8px; background: #eef2ff; color: #4338ca; cursor: pointer; font-size: 14px; }
.search-multi-option { display: flex !important; align-items: center; gap: 10px; padding: 10px 7px; margin: 0 !important; font-size: 14px; line-height: 1.35; cursor: pointer; }
.search-multi-option:hover { background: #eef2ff; }
.search-multi-option input[type=checkbox] { width: 19px !important; height: 19px; flex: none; margin: 0; }
.search-multi-option span { overflow-wrap: anywhere; }
.search-empty { padding: 12px; text-align: center; color: #9ca3af; font-size: 12px; }
.ssel-panel .search-input-group { padding: 6px; }
.ssel-panel .search-hint { font-size: 10px; }
@media (max-width: 600px) {
  .search-input-group { width: 100%; min-width: 0; }
  .filter-panel .fp-item > .search-input-group { width: min(300px, 72vw); }
  .search-input-group .search-multi-text { width: 100% !important; }
  .search-multi-panel { width: min(92vw, 520px); }
}
@media (max-width: 900px) {
  #mobileNavToggle { display: block; }
  .app { display: block; }
  .sidebar { width: 100%; height: 58px; position: fixed; inset: 0 0 auto 0; max-height: 58px; overflow: hidden; z-index: 1200; transition: max-height .2s ease; }
  .sidebar.mobile-open { height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .sidebar .logo { height: 58px; padding: 14px 16px; display: flex; align-items: center; }
  .sidebar .nav { padding: 6px 0 10px; }
  .sidebar .nav-item { padding: 11px 18px; }
  .sidebar .sidebar-footer { padding: 10px 16px; }
  .main { margin-left: 0; padding-top: 58px; }
  .topbar { padding: 12px 14px; min-height: 58px; gap: 8px; flex-wrap: wrap; }
  .topbar h2 { font-size: 16px; }
  .topbar-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
  .content { padding: 14px 10px 24px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .stat-card { padding: 12px; min-width: 0; }
  .stat-card .value { font-size: 20px; }
  .stat-card .icon { font-size: 24px; }
  .table-card { overflow-x: auto; }
  .finance-summary-card { overflow-x: auto; }
  .finance-table.pending-table { display: none; }
  .finance-cards { display: block; padding: 10px; }
  .finance-reconcile-summary { grid-template-columns: 1fr; }
  .modal-box { width: min(94vw, 520px); max-height: 88vh; overflow-y: auto; }
  .inventory-detail-modal { width: 96vw; max-width: 96vw; }
  .inventory-detail-modal .modal-body table { min-width: 850px; }
  .modal-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #f3f4f6; padding-top: 12px; }
}
@media (max-width: 900px) {
  body.mobile-nav-open { overflow: hidden; }
  .sidebar.mobile-open .nav { display: block; min-height: 0; }
  .sidebar.mobile-open .sidebar-footer { flex: none; }
}

/* Toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; z-index: 200; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

/* 图表区 */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } }

/* ===== 实时地图 ===== */
#map { width: 100%; height: calc(100vh - 150px); min-height: 420px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); z-index: 1; }
.map-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.map-toolbar .info { font-size: 13px; color: #6b7280; }
.rider-marker { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50% 50% 50% 0; transform: rotate(-45deg); border:2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size:17px; }
.rider-marker span { transform: rotate(45deg); }
.rider-marker.idle { background:#10b981; }
.rider-marker.busy { background:#3b82f6; }
.rider-marker.offline { background:#9ca3af; }
.rider-marker.nogps { background:#f59e0b; }
.leaflet-popup-content { font-size: 13px; line-height: 1.7; margin: 10px 14px; }
.leaflet-popup-content b { font-size: 14px; }
.popup-row { color:#4b5563; }
.map-legend { position:absolute; right:12px; bottom:24px; z-index:1000; background:#fff; padding:10px 14px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:12px; }
.map-legend .dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }

/* 聚焦骑手信息面板 */
.rider-panel { position:absolute; top:12px; right:12px; z-index:1000; width:290px; max-height:calc(100% - 60px); overflow-y:auto; background:#fff; border-radius:10px; box-shadow:0 4px 16px rgba(0,0,0,.18); font-size:13px; }
.rp-head-bar { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #f3f4f6; }
.rp-close { margin-left:auto; cursor:pointer; color:#9ca3af; font-size:15px; padding:0 2px; }
.rp-close:hover { color:#ef4444; }
.rp-meta { padding:6px 12px; color:#6b7280; font-size:12px; border-bottom:1px solid #f3f4f6; }
.rp-orders { padding:8px 10px; }
.rp-order { border:1px solid #f3f4f6; border-radius:8px; padding:8px 10px; margin-bottom:8px; background:#fafbfc; }
.rp-order:last-child { margin-bottom:0; }
.rp-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.rp-no { font-family:monospace; font-size:11px; color:#9ca3af; }
.rp-cust { margin-top:4px; font-weight:600; }
.rp-cust a { color:#3b82f6; text-decoration:none; }
.rp-addr { margin-top:3px; color:#6b7280; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-dist { margin-top:5px; color:#d97706; font-size:12px; }
.rp-dist b { font-size:13px; }
.rp-prod { margin-top:3px; color:#6b7280; font-size:12px; }
.rp-empty { text-align:center; color:#9ca3af; padding:16px 0; }
.rp-nogps { color:#9ca3af; }
.target-marker { display:flex; align-items:center; justify-content:center; width:28px; height:28px; background:#f59e0b; color:#fff; border-radius:50%; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.3); font-size:14px; }
/* 问题件 */
.tag-problem { background:#ffedd5; color:#c2410c; font-weight:700; }
.rp-problem { border-color:#fdba74; background:#fff7ed; }
.rp-prob-reason { margin-top:4px; color:#c2410c; font-size:12px; font-weight:600; }
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#10b981; margin-right:6px; animation: blink 1.5s infinite; }
.live-dot.off { background:#9ca3af; animation:none; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== 登录页历史账号下拉 ===== */
#loginHist { position:absolute; left:0; right:0; top:100%; margin-top:4px; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.14); z-index:60; overflow:hidden; }
#loginHist .lh-item { display:flex; align-items:center; gap:8px; padding:10px 12px; font-size:14px; color:#374151; cursor:pointer; }
#loginHist .lh-item:hover { background:#f5f6ff; }
#loginHist .lh-clear { padding:9px 12px; font-size:12px; color:#ef4444; text-align:center; border-top:1px solid #f3f4f6; cursor:pointer; }
#loginHist .lh-clear:hover { background:#fef2f2; }
