/* ===== v29 主题（森林绿 + 暖橙 + 奶油白，参考图1+图2 UI design 配色）=====
 * 主色 ── 森林绿 #4E8C6B（来自图1 icon 主色）
 * 强调 ── 暖橙  #F39C5C（来自图1 会员充值橙色点缀）
 * 卡面 ── 奶油白 #FAF6EE（来自图2 页面底）
 * 深绿 ── 墨绿  #2C5F3F（用于品牌强调）
 * —— 同时保留 v28 兼容变量（--primary 仍作别名），降低大改面。 */
:root {
  --bg: #faf6ee;             /* 页面底：奶油米白 */
  --panel: #ffffff;          /* 卡片白 */
  --panel2: #f4eee2;         /* 次级卡（淡米） */
  --text: #2c2c2c;           /* 主文字：近墨黑 */
  --muted: #8a8a8a;          /* 次级灰 */
  --primary: #4e8c6b;        /* 品牌绿（森林绿） */
  --primary-d: #2e6a4d;      /* 品牌绿深 */
  --primary-soft: #e9f0e5;   /* 极浅绿（背景/选中态） */
  --accent: #f39c5c;         /* 暖橙强调 */
  --accent-d: #d97744;       /* 暖橙深（hover） */
  --accent-soft: #fce5d3;    /* 浅橙底 */
  --ink-green: #1f4632;      /* 极深绿（logo/标题） */
  --ok: #4e8c6b;
  --warn: #d97744;           /* 警示橙红（替代原橙黄） */
  --err: #e5484d;
  --line: #ece4d3;           /* 米色边框 */
  --radius: 14px;
  --shadow: 0 1px 3px rgba(45,80,55,.08), 0 6px 18px rgba(45,80,55,.06);
}
* { box-sizing: border-box; }
body.app-light {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
.hidden { display: none !important; }
button { cursor: pointer; font-family: inherit; border: none; }

/* 按钮 */
.btn-primary { background: var(--primary); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn-primary:hover { background: var(--primary-d); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.btn-danger { background: var(--err); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn-danger:hover { filter: brightness(.95); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
/* 全宽按钮（登录卡片 / 退出登录） */
.btn.block { display: block; width: 100%; border: none; cursor: pointer; box-sizing: border-box; }
.btn-ghost { background: transparent; color: var(--muted); font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.btn-ghost:hover { background: var(--panel2); color: var(--text); }
.btn-ghost.sm { font-size: 12px; padding: 2px 8px; }
.btn.sm, .btn-outline.sm { padding: 6px 12px; font-size: 12px; }

/* 基础按钮：同时兼容 HTML 中常用的 .btn / .btn.primary 写法 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: .15s;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--panel2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
/* 旧的 .btn-primary 写法保持兼容 */
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.block { display: block; width: 100%; }
.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.row-actions .btn-primary, .row-actions .btn-outline { flex: 1; min-width: 130px; }

/* v30：当前配送 - 预计到货时间 红色加粗放大 */
.eta-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.eta-hhmm {
  color: #e5484d;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
  background: #fff5f5;
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #ffd7d7;
}
.ri-time-eta { padding: 4px 0; }
.ri-store-name {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.ri-store-name:hover { color: var(--primary-d); }
.stops-actions { margin-top: 10px; }
.stops-actions .btn-primary {
  background: linear-gradient(135deg, #e5484d, #c83a3f);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: .5px;
}

/* v30：司机「我的」心情 / 编辑姓名 / 改密 */
.profile-mood { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.profile-mood .mood-select { padding: 4px 8px; font-size: 13px; }
.profile-mood .mood-note {
  flex: 1; min-width: 120px; padding: 5px 8px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.profile-actions { display: flex; gap: 6px; margin-top: 8px; }
.profile-actions .btn-ghost { background: #f3f6f9; border: 1px solid var(--line); color: var(--text); }
.profile-actions .btn-ghost:hover { background: #eaeef3; }

/* v30：门店端 我的中心 - 门店电话可编辑 + meituan-rms 按钮 */
.me-phone-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.inline-input {
  flex: 1; min-width: 140px; padding: 4px 8px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.card-head-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head-row .card-head { margin: 0; }

/* v37：产品清单 表格 4 列（名称 / 规格 / 送货数量 / 预估到达时间） */
.product-table-wrap {
  margin: 0 -4px 8px;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.product-table-wrap::-webkit-scrollbar { height: 4px; }
.product-table-wrap::-webkit-scrollbar-thumb { background: rgba(78,140,107,.4); border-radius: 2px; }
.product-table {
  width: max-content; /* v69c：固定为各列宽之和，宽屏不再被拉伸导致名称列变宽 */
  max-width: 100%;
  min-width: 360px; /* 极窄屏触发横向滚动，避免列挤变形 */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: fixed; /* v47：让产品名称列占大头，规格/数量固定窄列 */
}
.product-table th,
.product-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  vertical-align: middle;
  text-align: left;
  overflow: hidden;
}
.product-table th { font-weight: 600; color: var(--muted, #6b7280); background: rgba(78,140,107,.05); position: sticky; top: 0; z-index: 1; }
/* v69c：列宽定义 - 名称收窄固定 120px(最大132)，规格 84px，订货 68px，发货 58px，删除 36px */
.product-table th:nth-child(1), .product-table td:nth-child(1) { width: 120px; min-width: 88px; max-width: 132px; }
.product-table th:nth-child(2), .product-table td:nth-child(2) { width: 84px; }
.product-table th:nth-child(3), .product-table td:nth-child(3) { width: 68px; }
.product-table th:nth-child(4), .product-table td:nth-child(4) { width: 58px; padding: 0 2px; }
.product-table input { width: 100%; padding: 6px 6px; border: 1px solid var(--line, #e5e7eb); border-radius: 6px; background: #fff; font-size: 13px; box-sizing: border-box; }
.product-table td:nth-child(1) input { white-space: nowrap; text-overflow: ellipsis; }
.product-table input:focus { outline: none; border-color: var(--brand, #4e8c6b); }
.product-table th.col-del, .product-table td.col-del { width: 36px; text-align: center; padding: 0 2px; }
.prow-del {
  border: 0; background: transparent; color: #ef4444;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.prow-del:hover { background: rgba(239,68,68,.08); }
@media (max-width: 540px) {
  .product-table { min-width: 460px; }
  .product-table input { padding: 8px 6px; font-size: 13px; }
  .product-rows-tip { display: none; }
}
/* v31: 滑动提示 */
.product-rows-tip {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  margin: 2px 4px 8px;
  opacity: .75;
}
.product-rows-tip::before { content: '←'; }
.product-rows-tip::after { content: '→'; }

/* 顶栏 */
.appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; border-bottom: none;
  position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(47,125,79,.28);
}
.appbar-title { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.appbar-right { display: flex; align-items: center; gap: 8px; }
.appbar .who { color: rgba(255,255,255,.85); font-size: 13px; }
.appbar .btn-ghost { color: rgba(255,255,255,.92); }
.appbar .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* 主区 */
.main { max-width: 720px; margin: 0 auto; padding: 14px 14px 90px; }
section[hidden] { display: none; }

/* 卡片 */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card-head { position: relative; padding-left: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.card-head::before { content: ''; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px; border-radius: 4px; background: var(--primary); }
.muted { color: var(--muted); }
.sm { font-size: 12px; }

label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
input, select, textarea {
  width: 100%; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { min-height: 64px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }

/* 状态卡 */
.status-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow); flex-wrap: wrap;
}
.status-left { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.status-dot.on { background: #fff; animation: pulse 1.6s infinite; }
.status-dot.off { background: rgba(255,255,255,.55); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.5);} 70%{box-shadow:0 0 0 8px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }
.status-label { font-size: 16px; font-weight: 700; }
.status-sub { font-size: 12px; opacity: .85; }
.status-actions { display: flex; gap: 8px; }
.status-actions .btn-primary, .status-actions .btn-danger { min-width: 88px; }

/* 地图 */
canvas.map { width: 100%; border-radius: 10px; background: #eef2f6; display: block; }
.map { width: 100%; height: 300px; border-radius: 10px; background: #eef2f6; overflow: hidden; position: relative; }

/* 照片入口 + 网格 */
.photo-pick { display: flex; gap: 8px; margin-top: 6px; }
.photo-pick .btn-primary, .photo-pick .btn-outline { flex: 1; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: flex-start; }
.photo-grid img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-thumb { position: relative; display: inline-block; }

/* v33：拍照后"识别信息"手动触发按钮 */
.ocr-action { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ocr-action .ocr-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #4E8C6B 0%, #2E6CA4 100%);
  color: #fff; border: none; border-radius: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(46,108,164,.22);
  cursor: pointer; transition: .15s;
}
.ocr-action .ocr-btn:hover { filter: brightness(1.08); }
.ocr-action .ocr-btn:disabled { opacity: .6; cursor: not-allowed; }
.ocr-action .ocr-photo-count { font-weight: 500; opacity: .85; font-size: 12px; }
.ocr-action .ocr-action-hint { font-size: 11px; color: var(--muted); padding: 0 4px; line-height: 1.5; }
.photo-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; cursor: zoom-in; transition: transform .15s; }
.photo-thumb img:hover { transform: scale(1.05); border-color: var(--primary); }
.photo-thumb .photo-del {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--err); color: #fff; border: none; font-size: 13px; line-height: 20px; padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
/* v38：照片「↻ 重选」按钮：左上角蓝绿色，与删除按钮对称 */
.photo-thumb .photo-edit {
  position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand, #4e8c6b); color: #fff; border: none; font-size: 12px; line-height: 20px; padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}
.photo-thumb .photo-edit:hover { background: #3a6e52; }

/* v44：OCR 识别结果面板 */
.ocr-result { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.ocr-result[hidden] { display: none; }
.ocr-result-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.ocr-result-row .lbl { color: var(--muted); min-width: 64px; }
.ocr-result-row .val { color: #1f2329; font-weight: 600; }
.ocr-prod-title { font-size: 13px; color: var(--muted); margin: 10px 0 6px; font-weight: 600; }
.ocr-prod-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ocr-prod-table th, .ocr-prod-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.ocr-prod-table th { background: #f0f2f4; font-weight: 600; color: var(--muted); }
.ocr-prod-table .num { text-align: right; }
.ocr-raw-details { margin-top: 10px; font-size: 12px; }
.ocr-raw-details summary { cursor: pointer; color: var(--primary); user-select: none; }
.ocr-raw { white-space: pre-wrap; word-break: break-word; background: #1e1e1e; color: #d4d4d4; padding: 10px; border-radius: 8px; font-size: 11px; max-height: 200px; overflow: auto; margin-top: 6px; }

/* 今日任务卡片 */
.item-list { display: flex; flex-direction: column; gap: 12px; }
.stop-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.stop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stop-head strong { font-size: 14px; }
.stop-card .photo-grid { margin-top: 8px; }

/* 状态徽标 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.badge.pending { background: rgba(224,168,0,.16); color: #b07d00; }
.badge.completed { background: var(--primary-soft); color: var(--primary); }
.badge.working { background: rgba(26,115,232,.14); color: #1a73e8; }
.badge.pattern { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.badge.off_work { background: #eef1f5; color: var(--muted); }
.badge.err { background: rgba(229,72,77,.16); color: var(--err); }
.pill { display:inline-block; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 12px; }

/* ===== 个人中心 ===== */
.profile-head { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--primary-soft); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.avatar-edit { position: absolute; right: -4px; bottom: -4px; background: var(--primary); color: #fff; border: none; border-radius: 999px; font-size: 11px; padding: 3px 8px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-phone { color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.profile-plate { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.plate-text { font-weight: 600; color: var(--text); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
/* v31: iPhone SE (375px 以下) 4 KPI 挤, 改为 2 列 */
@media (max-width: 380px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics .metric-val { font-size: 22px; }
  .metrics .metric-label { font-size: 11px; }
}
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.metric-val { font-size: 20px; font-weight: 800; color: var(--primary); }
.metric-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

.overtime-list { display: flex; flex-direction: column; gap: 2px; }
.ot-row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ot-row:last-child { border-bottom: none; }
.ot-date { font-weight: 700; }
.ot-time { color: var(--muted); }
.ot-work { font-weight: 600; }
.ot-badge { font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: #eef1f5; }
.ot-badge.on { color: #b07d00; background: rgba(224,168,0,.16); font-weight: 600; }

/* ===== 底部 Tab 导航 ===== */
.tabbar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  max-width: 720px; margin: 0 auto;
}
.tab { flex: 1; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 4px 0; }
.tab .tab-ico { font-size: 20px; }
.tab.active { color: var(--primary); font-weight: 700; }

/* 大屏轻微收窄 */
@media (min-width: 760px) {
  .main { padding-top: 20px; }
}

/* 登录：蓝紫渐变 Banner 顶（参图4）/ + 白卡（v29） */
.login-body {
  display: flex; align-items: stretch; justify-content: center; min-height: 100vh;
  background: #f4f0fb;
  padding: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.login-shell {
  width: 100%; max-width: 480px;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(107,139,245,.18);
}
.login-banner {
  background: linear-gradient(135deg, #6b8bf5 0%, #b59fe8 100%);
  color: #fff;
  padding: 56px 26px 70px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.login-banner::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0%, transparent 70%);
  pointer-events: none;
}
.login-banner::after {
  content: ''; position: absolute; left: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.login-banner h1 {
  font-size: 26px; margin: 0 0 8px; letter-spacing: 1px; font-weight: 800;
  position: relative; z-index: 1;
}
.login-banner .sub {
  font-size: 13px; opacity: .9; margin: 0;
  position: relative; z-index: 1;
}
.login-banner .brand-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.login-banner .brand-row .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.login-banner .brand-row .brand-name { font-size: 16px; font-weight: 700; }

.login-card {
  flex: 1;
  background: #ffffff;
  padding: 26px 22px 32px;
  margin: -38px 14px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(20,40,80,.10);
  position: relative; z-index: 2;
}
.login-card .tabs {
  display: flex; gap: 0; margin-bottom: 22px;
  background: var(--panel2); border-radius: 10px;
  padding: 4px; position: relative;
}
.login-card .tab {
  flex: 1; padding: 10px 4px; border: none; background: transparent;
  color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.login-card .tab.active {
  background: #fff; color: var(--text);
  box-shadow: 0 2px 6px rgba(20,40,80,.08);
}
.login-card .tab.active::after {
  content: ''; display: block; height: 2px; width: 22px;
  margin: 4px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #6b8bf5, #b59fe8);
}
.login-card .panel-title {
  font-size: 16px; font-weight: 700; margin-bottom: 4px;
  color: var(--text);
}
.login-card .panel-sub {
  font-size: 12px; color: var(--muted); margin: 0 0 16px;
}
.login-form { text-align: left; }
.login-form label { margin-top: 14px; color: var(--muted); font-size: 12px; }
.login-form input {
  padding: 13px 14px; font-size: 15px;
  background: #f5f7fa; border-color: transparent;
  border-radius: 10px;
}
.login-form input:focus { background: #fff; }
.login-form .btn {
  width: 100%; margin-top: 22px;
  background: linear-gradient(135deg, #6b8bf5 0%, #b59fe8 100%);
  color: #fff; border: none;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(107,139,245,.42);
  font-size: 15px; padding: 14px; letter-spacing: .5px; font-weight: 600;
}
.login-form .btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.login-form .btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(107,139,245,.35); }
.login-form .btn.primary { background: linear-gradient(135deg, #6b8bf5 0%, #b59fe8 100%); border:none; }
.login-form .btn.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.login-form .btn.primary:active { transform: translateY(1px); }
.login-card .msg { min-height: 18px; font-size: 13px; margin: 12px 0 0; }
.login-card .msg.err { color: var(--err); }
.login-card .msg.ok { color: var(--ok); }
.login-card .hint {
  color: var(--muted); font-size: 11px; margin-top: 16px; line-height: 1.7;
  padding: 12px; background: #f9f6f0; border-radius: 10px;
  border: 1px dashed var(--line);
}
.login-foot {
  text-align: center; padding: 18px 0 24px; color: var(--muted); font-size: 11px;
}

/* 管理端独立登录（参考图5 极简左描述右卡片） */
.admin-login-body {
  margin: 0; min-height: 100vh;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f0f4fa 0%, #e7eefb 100%);
  color: var(--text);
}
.al-split {
  display: flex; min-height: 100vh;
}
.al-left {
  flex: 1; padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #f0f4fa 0%, #dde7f7 100%);
  position: relative; overflow: hidden;
}
.al-left::before {
  content: ''; position: absolute; right: 0; top: 0;
  width: 60%; height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(46,108,164,.18) 0%, transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(107,139,245,.16) 0%, transparent 60%);
  pointer-events: none;
}
.al-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 36px;
  position: relative; z-index: 1;
}
.al-brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #2e6ca4, #6b8bf5);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  box-shadow: 0 6px 18px rgba(46,108,164,.32);
}
.al-brand .name { font-size: 18px; font-weight: 800; color: var(--ink-green); letter-spacing: .5px; }
.al-title {
  font-size: 32px; font-weight: 800; color: var(--text); margin: 0 0 12px;
  line-height: 1.4; position: relative; z-index: 1;
}
.al-title .accent { color: var(--primary); }
.al-sub {
  font-size: 15px; color: var(--muted); margin: 0 0 22px; max-width: 380px; line-height: 1.7;
  position: relative; z-index: 1;
}
.al-points {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.al-points li {
  padding: 7px 14px; background: rgba(46,108,164,.1); color: #2e6ca4;
  border-radius: 18px; font-size: 13px; font-weight: 600;
}
.al-points li i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #2e6ca4; margin-right: 6px; vertical-align: middle;
}
.al-right {
  width: 460px; padding: 60px 50px;
  background: #ffffff;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: -10px 0 40px rgba(20,40,80,.06);
}
.al-right h2 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.al-right .al-sub2 { color: var(--muted); margin: 0 0 28px; font-size: 13px; }
.al-right .field { margin-bottom: 16px; }
.al-right .field label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600;
}
.al-right .field input {
  width: 100%; padding: 13px 14px; font-size: 15px;
  border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
}
.al-right .field input:focus {
  border-color: #2e6ca4; box-shadow: 0 0 0 3px rgba(46,108,164,.18);
  outline: none;
}
.al-right .al-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin: 4px 0 22px;
}
.al-right .al-row label {
  display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer;
}
.al-right .al-row a { color: #2e6ca4; text-decoration: none; }
.al-login-btn {
  width: 100%; padding: 14px; border-radius: 24px;
  background: #2e6ca4; color: #fff; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(46,108,164,.32);
  transition: .15s;
}
.al-login-btn:hover { background: #1e5a92; }
.al-login-btn:active { transform: translateY(1px); box-shadow: 0 3px 12px rgba(46,108,164,.3); }
.al-hint {
  margin-top: 24px; padding: 14px; background: #f0f4fa; border-radius: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.7;
}
.al-hint b { color: var(--text); }
.al-foot {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: var(--muted); font-size: 11px; z-index: 1;
}
@media (max-width: 880px) {
  .al-split { flex-direction: column; min-height: 100vh; }
  .al-left { padding: 30px 24px; min-height: 260px; }
  .al-title { font-size: 22px; }
  .al-right { width: 100%; padding: 32px 24px 40px; box-shadow: none; }
}

canvas.map { width: 100%; border-radius: 10px; background: #eef2f6; display: block; }
.map { width: 100%; height: 300px; border-radius: 10px; background: #eef2f6; overflow: hidden; position: relative; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--panel2); margin-bottom: 8px; }
.notice.unread { border-left: 3px solid var(--primary); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.call-btn { display: inline-flex; align-items: center; gap: 6px; }

/* ===== 打卡弹窗（里程表拍照 + 里程输入） ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,30,50,.5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-mask[hidden] { display: none !important; }
@media (min-width: 560px) { .modal-mask { align-items: center; } }
.modal {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,.2); animation: slideUp .22s ease;
}
@media (min-width: 560px) { .modal { border-radius: 18px; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.modal-x { background: transparent; border: none; font-size: 26px; line-height: 1; color: var(--muted); padding: 0 4px; }
.modal-tip { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.modal-foot { display: flex; gap: 10px; margin-top: 16px; }
.modal-foot .btn { flex: 1; }

/* v69：送达确认 modal 垂直堆叠；按钮分主/警示/取消三档；无「关闭网页」风险 */
.modal-foot.stacked { flex-direction: column; gap: 8px; }
.modal-foot.stacked .btn { width: 100%; flex: none; }
.delivered-btn-ok { background: #16a34a; color: #fff; border: 1px solid #16a34a; }
.delivered-btn-ok:hover { filter: brightness(.95); }
.delivered-btn-warn { background: #fff; color: #b45309; border: 1px solid #f59e0b; }
.delivered-btn-warn:hover { background: #fff7ed; }
.delivered-btn-cancel { background: transparent; color: var(--muted); border: none; padding: 8px; }

/* v69：自定义 toast（替代 alert；底部居中浮层，4 秒自动关闭） */
.d-toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  max-width: 80vw; padding: 10px 16px; border-radius: 999px;
  background: rgba(20,30,50,.92); color: #fff; font-size: 14px; line-height: 1.4;
  box-shadow: 0 6px 22px rgba(0,0,0,.25); z-index: 60; text-align: center;
}
.d-toast[hidden] { display: none !important; }

/* v69：文本输入 modal（替代原生 prompt） */
.modal-input {
  width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px;
  font-size: 15px; line-height: 1.4; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.modal-input:focus { border-color: var(--brand, #2f7d4f); }

/* 个人中心：加班明细带里程 */
.ot-item { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.ot-item:last-child { border-bottom: none; }
.ot-mileage { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 司机端中央 FAB（上班 / 下班） ===== */
.fab {
  position: fixed;
  left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-weight: 800;
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 0 0 6px rgba(47,125,79,.10);
  z-index: 25;
  cursor: pointer;
  transition: transform .15s;
}
.fab:active { transform: translateX(-50%) scale(.96); }
.fab.primary { background: linear-gradient(135deg, #4E8C6B, #2E6CA4); }   /* 上班 / 配送中：山系绿→都市蓝 */
.fab.warn    { background: linear-gradient(135deg, #E89B3C, #C16A1F); }   /* 备用暖橙（v24 起配送中改为绿色） */
.fab.danger  { background: linear-gradient(135deg, #C44545, #7E2222); }   /* 下班：深红 */
.fab .fab-ico { font-size: 22px; line-height: 1; }
.fab .fab-text { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
@media (min-width: 720px) {
  /* 桌面端：FAB 放在左下角 */
  .fab { left: auto; right: 28px; bottom: 28px; transform: none; }
  .fab:active { transform: scale(.96); }
}
@media (max-height: 580px) {
  .fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* 状态卡：圆形 FAB 模式下不需要右上的 actions 区，给个 meta chip 行 */
.status-card { gap: 12px; flex-wrap: wrap; }
.status-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-chip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 700; }

/* ===== 本次配送的门店及预估送达时间列表 ===== */
.stores-list { display: flex; flex-direction: column; gap: 10px; }
.store-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  transition: background .15s;
}
.store-row.completed { background: var(--primary-soft); border-color: #c5e5d2; opacity: .88; }
.sr-num {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.store-row.completed .sr-num { background: var(--primary-d); }
.sr-info { flex: 1; min-width: 0; }
.sr-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.sr-addr { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sr-eta { text-align: right; flex-shrink: 0; min-width: 78px; }
.sr-eta-label { font-size: 11px; color: var(--muted); }
.sr-eta-time { font-weight: 800; color: var(--primary-d); font-size: 17px; margin-top: 2px; }
.sr-eta.pending .sr-eta-time { color: var(--warn); }
.sr-eta.overdue .sr-eta-time { color: var(--err); }
.sr-eta.completed .sr-eta-time { color: var(--primary-d); font-size: 14px; }

/* ===== 当前配送任务：可拖拽 ===== */
.reorder-list { display: flex; flex-direction: column; gap: 10px; }
.reorder-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; position: relative;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.reorder-item.is-done { opacity: .6; background: var(--primary-soft); border-color: #c5e5d2; }
.reorder-item.dragging {
  opacity: .55; transform: scale(.99);
  box-shadow: 0 8px 24px rgba(20,30,50,.18);
}
.reorder-item.touch-drag { z-index: 10; }
.drag-over {
  border: 2px dashed var(--primary);
  background: var(--primary-soft);
}
.drag-handle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 18px; color: var(--muted); cursor: grab;
  -webkit-user-select: none; user-select: none;
  touch-action: none;
}
.drag-handle:active { cursor: grabbing; background: var(--primary-soft); color: var(--primary-d); }
/* v69t：上下箭头按钮（取代长按拖拽——手机拖拽会糊屏） */
.reorder-btns {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: 4px;
  width: 32px;
}
.rb-btn {
  width: 32px; height: 28px;
  border: 1px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary-d);
  border-radius: 6px;
  font-size: 14px; line-height: 1;
  padding: 0; margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(78,140,107,0.18);
  touch-action: manipulation;
}
.rb-btn:active { background: var(--primary); color: #fff; }
.rb-btn:disabled { opacity: .3; cursor: not-allowed; }
.ri-seq {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.reorder-item.is-done .ri-seq { background: var(--primary-d); }
.ri-body { flex: 1; min-width: 0; }
.ri-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ri-addr { font-size: 12px; margin-top: 4px; line-height: 1.5; }
.ri-time { font-size: 12px; margin: 4px 0 6px; }
.reorder-item .photo-grid { margin-top: 6px; }
.reorder-item .photo-thumb img { width: 64px; height: 64px; }

/* 合并拍照 + 自动识别提示 */
.photo-pick-single { margin-top: 6px; }
.ocr-hint { font-size: 12px; margin-top: 10px; line-height: 1.6; }
.ocr-hint .ok { color: var(--primary); font-weight: 600; }
.ocr-hint .warn { color: var(--warn); font-weight: 600; }
.ocr-hint .err { color: var(--err); font-weight: 600; }

/* 打卡弹窗内显示定位状态 */
.punch-meta { background: var(--panel2); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.punch-meta-item { font-size: 13px; }
#punchLocStatus { font-weight: 600; color: var(--primary-d); }


/* 司机端：每条 stop 的距离/时间/导航按钮 */
.store-brand { display: flex; align-items: center; gap: 10px; }
.store-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.store-title { font-size: 17px; font-weight: 800; letter-spacing: .5px; margin: 0; color: #fff; line-height: 1.1; }
.store-right { display: flex; align-items: center; gap: 8px; }
.topbar.topbar-store .btn.sm { background: rgba(255,255,255,.18); color: #fff; border: none; }
.topbar.topbar-store .btn.sm:hover { background: rgba(255,255,255,.28); }

/* 主区稍宽 */
.store-main { max-width: 760px; padding: 14px 14px 96px; }

/* ====== 顶部：时间+天气（仿图 1 的 .qq-banner-side） ====== */
.store-banner { margin-bottom: 14px; }
.store-banner-pill {
  display: flex; gap: 10px; align-items: stretch;
}
.store-time {
  flex: 1; background: linear-gradient(135deg, #FBF7F0 0%, #ffffff 100%);
  border: 1px solid #ece2d4; border-radius: 16px; padding: 12px 16px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 6px 18px rgba(78,140,107,.10);
}
.store-time-hm { font-size: 28px; font-weight: 800; color: #2E6CA4; line-height: 1; font-variant-numeric: tabular-nums; }
.store-time-date { color: #8a94a6; margin-top: 4px; font-size: 13px; }
.store-wx {
  width: 130px; flex-shrink: 0;
  background: linear-gradient(135deg, #FBF7F0 0%, #ffffff 100%);
  border: 1px solid #ece2d4; border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(78,140,107,.10);
}
.store-wx:hover { border-color: #d8c8b2; }
.store-wx-ico { font-size: 24px; line-height: 1; }
.store-wx-temp { font-size: 16px; font-weight: 800; color: #4E8C6B; line-height: 1; }
.store-wx-desc { color: #8a94a6; font-size: 12px; margin-top: 2px; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 440px) {
  .store-banner-pill { flex-direction: row; }
  .store-wx { width: auto; flex: 1; min-width: 110px; }
}

/* ====== 底部 2 tab 导航（门店端） ====== */
/* v71f: 修复原 3 列模板与 2 个 button 不齐的问题，改为 2 等分；每个 tab 内图标+文字整体居中且垂直对齐 */
.tabbar.store-tabbar {
  display: grid; grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto;
}
.tabbar.store-tabbar .tab {
  background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px;
  padding: 6px 0; border: none; cursor: pointer;
}
.tabbar.store-tabbar .tab.active { color: var(--primary); font-weight: 700; }
/* v28: emoji -> linear SVG icon */
.tabbar.store-tabbar .tab-ico {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: #9aa7b4;
  transition: color .18s ease, transform .18s ease;
  line-height: 0;
}
.tabbar.store-tabbar .tab.active .tab-ico { color: var(--primary); transform: translateY(-1px); }
.tabbar.store-tabbar .tab:active .tab-ico { transform: scale(.9); }

/* ====== 我的中心：头像 + 密码 + 统计 ====== */
.me-head { display: flex; align-items: center; gap: 16px; }
.me-head .avatar-wrap { flex-shrink: 0; }
.me-meta { flex: 1; min-width: 0; line-height: 1.5; }
.me-name { font-size: 17px; font-weight: 800; color: #0f172a; }
.me-phone, .me-addr { margin-top: 4px; }

.me-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 540px) { .me-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.me-stat {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 14px 10px; text-align: center;
}
.me-stat-val { font-size: 22px; font-weight: 800; color: #065f46; line-height: 1.1; }
.me-stat-label { font-size: 11px; color: #6b7280; margin-top: 4px; }

/* ====== 产品清单：5 渠道子 tab ====== */
.ch-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.ch-tab:hover { background: var(--panel2); color: var(--text); }
.ch-tab.active {
  background: linear-gradient(135deg, #4E8C6B 0%, #2E6CA4 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(46,108,164,.22);
}

/* 渠道表格状态徽标 */
.ch-table .badge.ok   { background: rgba(34,197,94,.16); color: #1f9e54; }
.ch-table .badge.wait { background: rgba(228,165,16,.16); color: #c97f1e; }

/* ====== 退出按钮 =========== */
body.store-body .btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
body.store-body .btn.danger:hover { filter: brightness(.95); }

/* body 主题（v29 森林绿主题；门店端以奶油白为底） */
body.store-body {
  background: linear-gradient(180deg, #faf6ee 0%, #f1eadf 100%);
  min-height: 100vh;
}

.stop-route b { color: var(--primary); }
.nav-btn { display: inline-flex; align-items: center; gap: 4px; }

/* 司机端：地图下方图例 */
#routeLegend { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 导航选择底部弹层 */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.nav-sheet {
  background: var(--panel); width: 100%; max-width: 480px;
  border-top-left-radius: 18px; border-top-right-radius: 18px;
  padding: 16px 14px 24px; box-shadow: 0 -8px 24px rgba(0,0,0,.15);
  animation: slideUp .25s ease;
}
.nav-title { font-size: 15px; font-weight: 700; padding: 4px 6px 12px; text-align: center; }
.nav-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-radius: 12px; text-decoration: none; color: inherit;
  transition: background .15s;
}
.nav-row:hover { background: var(--panel2); }
.nav-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.nav-name { font-size: 14px; font-weight: 600; }
.nav-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav-cancel {
  width: 100%; margin-top: 8px; padding: 12px;
  background: var(--panel2); color: var(--fg); border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40%); } to { transform: translateY(0); } }

/* 美团门店档案只读列表（取代手动新增） */
.mt-list { display: flex; flex-direction: column; gap: 8px; }
.mt-row {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fafbfc; display: flex; flex-direction: column; gap: 4px;
}
.mt-name { font-weight: 600; font-size: 14px; color: var(--text); }
.mt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mt-addr { font-size: 12px; line-height: 1.5; }
.mt-coord { font-size: 11px; font-family: ui-monospace, monospace; }

/* ===== 地图容器 ===== */
.map-box { height: 380px; width: 100%; border-radius: 12px; overflow: hidden; background: #eef2f7; }
.map-box.sm { height: 240px; border-radius: 10px; }
.map-box.md { height: 320px; border-radius: 12px; }

/* 全屏图片预览 */
.lightbox-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px; box-sizing: border-box;
  cursor: zoom-out;
}
.lightbox-mask.hidden { display: none; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; border: none;
  font-size: 22px; line-height: 36px; text-align: center; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.32); }

/* 复用管理端已有的 .adm-table / .table-wrap 样式（见下），门店端无需重复声明 */

/* 全屏图片预览 */
.lightbox-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px; box-sizing: border-box;
  cursor: zoom-out;
}
.lightbox-mask.hidden { display: none; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; border: none;
  font-size: 22px; line-height: 36px; text-align: center; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.32); }
.leaflet-container { height: 100%; width: 100%; }

/* ===== v46：门店端司机头像心跳动画 + Leaflet divIcon 容器透明化 ===== */
.dd-map-html-icon { background: transparent !important; border: 0 !important; }
.dd-map-html-icon > * { pointer-events: auto; }
@keyframes dd-driver-pulse {
  0%   { transform: scale(.6); opacity: .55; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== 每日配送工作报告卡片 ===== */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.report-card { background: var(--primary-soft); border: 1px solid #d8eadf; border-radius: 12px; padding: 14px; text-align: center; }
.rc-val { font-size: 24px; font-weight: 800; color: var(--primary-d); }
.rc-val small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.rc-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 产品汇总 ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; background: var(--primary-soft); color: var(--primary-d); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.pill.big { font-size: 14px; padding: 7px 14px; font-weight: 600; }

/* ===== 管理端：第一部分统计卡 + 在岗司机 + 配送表 ===== */
.card-sub {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin: 14px 0 8px; display: flex; align-items: center; gap: 6px;
}
.card-sub::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.text-right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.driver-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.drv-row {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.drv-name { font-weight: 700; font-size: 14px; }

/* v31: 表格横向滚动容器 + 边缘渐变提示可滑 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-top: 4px;
  position: relative;
  background:
    /* 左侧渐变阴影 */
    linear-gradient(to right, rgba(0,0,0,.08), rgba(0,0,0,0)) left center / 12px 100% no-repeat,
    /* 右侧渐变阴影 */
    linear-gradient(to left, rgba(0,0,0,.08), rgba(0,0,0,0)) right center / 12px 100% no-repeat,
    #fff;
  background-attachment: local, local, scroll;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(78,140,107,.4); border-radius: 2px; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.adm-table th, .adm-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.adm-table thead th { background: var(--panel2); color: var(--muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: var(--panel2); }
.adm-table td.small { font-size: 12px; color: var(--text); }

/* ===== 第二部分：路线卡片 ===== */
.route-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.route-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.rc-driver { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-name { font-weight: 700; font-size: 15px; }
.rc-phone { font-size: 12px; }
.rc-stop { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rc-arrow { color: var(--muted); font-size: 18px; }
.rc-store { flex: 1; min-width: 0; }
.rc-store-name { font-weight: 600; font-size: 14px; }
.rc-store-addr { font-size: 12px; margin-top: 2px; }
.rc-store-prod { font-size: 12px; margin-top: 4px; color: var(--primary-d); }
.rc-eta { text-align: right; white-space: nowrap; }
.rc-km { font-weight: 700; font-size: 16px; color: var(--primary-d); }
.rc-km small { font-size: 11px; margin-left: 2px; }
.rc-min { font-size: 12px; color: var(--warn); margin-top: 2px; font-weight: 600; }
.rc-arr { font-size: 12px; margin-top: 2px; }

/* ===== 管理端 · 桌面端布局 ===== */
body.admin {
  font-size: 14px;
  background: #f1f5f9;
}
body.admin .main,
.admin-main {
  max-width: 1400px;
  padding: 18px 22px 60px;
}
body.admin .appbar {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 24px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 60%, #166534 100%);
  box-shadow: 0 2px 18px rgba(22,101,52,.28);
}
body.admin .appbar-title { font-size: 18px; letter-spacing: .5px; }
body.admin .who { color: rgba(255,255,255,.92); font-size: 13px; }
body.admin .btn-ghost { color: rgba(255,255,255,.92); }
body.admin .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.admin-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) {
  .admin-cols { grid-template-columns: 1fr; }
}

.card-admin {
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.05);
}
body.admin .card-head {
  font-size: 16px;
  padding-left: 14px;
  margin-bottom: 16px;
}
body.admin .card-head::before { width: 5px; }
.head-right {
  font-size: 13px; font-weight: 400;
  display: inline-flex; align-items: center; gap: 8px;
}
.inline-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.inline-input { display: inline-block; width: auto; padding: 5px 8px; font-size: 13px; }

.dot-pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulse-admin 1.6s infinite;
}
@keyframes pulse-admin {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.map-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--muted);
  margin: 8px 0 4px;
}
.map-legend i {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 5px; vertical-align: middle;
}

.map-box-lg { height: 480px; border-radius: 12px; }
@media (max-width: 1100px) {
  .map-box-lg { height: 360px; }
}

.empty-tip { text-align: center; padding: 18px; color: var(--muted); }

/* 统计卡：桌面端 6 列布局 */
body.admin .report-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  body.admin .report-grid { grid-template-columns: repeat(3, 1fr); }
}
body.admin .report-card { padding: 18px 12px; border-radius: 12px; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
body.admin .rc-val { font-size: 28px; }
body.admin .rc-label { font-size: 12px; }

/* 在岗司机：横向卡片网格 */
.driver-list-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.drv-row { padding: 12px 14px; }
.drv-phone { font-size: 12px; }
.drv-coord { font-size: 11px; margin-top: 4px; }

/* 路线卡片：当前门店 + 待配送门店 */
.route-card {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
body.admin .rc-driver { font-size: 14px; }
body.admin .rc-name { font-size: 16px; }
body.admin .rc-phone { font-size: 13px; color: var(--muted); }
.rc-total { font-size: 12px; margin-left: auto; }

.rc-current {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.rc-pin { font-size: 20px; }
.rc-store { flex: 1; min-width: 0; }
.rc-store-name { font-weight: 600; font-size: 14px; }
.rc-store-addr { font-size: 12px; margin-top: 2px; }
.rc-eta { text-align: right; white-space: nowrap; min-width: 100px; }
body.admin .rc-km { font-size: 18px; }
body.admin .rc-min { font-size: 13px; }
body.admin .rc-arr { font-size: 12px; }
body.admin .rc-arr b { color: var(--primary); font-size: 14px; }

.rc-pending {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}
.rc-pending-head {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.rc-pending-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 12px;
}
.rc-pending-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rc-pending-seq {
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary-d);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.rc-pending-name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-all-done {
  padding: 10px 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  color: var(--primary-d);
  font-weight: 600;
}

/* 个人中心 Modal 在桌面端居中且更宽 */
body.admin .modal { max-width: 720px; }
body.admin .modal-mask { align-items: center; padding: 24px; }
body.admin .modal { border-radius: 18px; max-height: 86vh; overflow-y: auto; }

/* ============================================================
   管理驾驶舱 · 高级界面样式（v17）
   ============================================================ */
body.admin {
  background: #faf6ee;
}
body.admin .appbar.dash-appbar {
  background: linear-gradient(120deg, #4e8c6b 0%, #2e6a4d 55%, #1f4632 100%);
  box-shadow: 0 2px 22px rgba(46, 106, 77, .35);
  padding: 12px 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-brand { display: flex; align-items: center; gap: 12px; }
.dash-logo {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.dash-title { font-size: 18px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.dash-sub { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.dash-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 日期切换器 */
.dash-date {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.16); border-radius: 10px; padding: 3px;
}
.dash-date-btn {
  width: 28px; height: 30px; border: none; border-radius: 8px;
  background: transparent; color: #fff; font-size: 18px; font-weight: 700; line-height: 1;
}
.dash-date-btn:hover { background: rgba(255,255,255,.2); }
.dash-date-input {
  width: auto; border: none; background: rgba(255,255,255,.95); color: #1f4632;
  border-radius: 8px; padding: 5px 8px; font-size: 13px; font-weight: 600;
}
.dash-date-input::-webkit-calendar-picker-indicator { cursor: pointer; }
.dash-today {
  background: rgba(255,255,255,.95); color: #1f4632; border: none;
  padding: 6px 12px; font-size: 13px; font-weight: 700; border-radius: 8px;
}
.dash-today:hover { background: #fff; }
body.admin .btn.dash-shortage {
  background: #f59e0b; color: #fff; border: none; font-weight: 700;
  padding: 8px 14px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
body.admin .btn.dash-shortage:hover { background: #ea8c0a; }
body.admin .who.mono { font-family: ui-monospace, Consolas, monospace; }

/* 主区域（v59-fix：移除 1320px 上限，管理端大屏铺满整行；窄屏仍可横向滚动表格） */
.dash-main { max-width: none; width: 100%; padding: 20px 22px 60px; box-sizing: border-box; }

/* 卡片 */
.dash-card {
  background: #fff; border: 1px solid #e6ecf2; border-radius: 16px;
  padding: 20px 22px; margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(20,30,50,.05), 0 10px 30px rgba(20,30,50,.05);
}
.dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 16px;
  padding-left: 14px; position: relative;
}
.dash-card-head::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, #4e8c6b, #2e6a4d);
}
.dash-sub { font-size: 13px; font-weight: 700; color: #475569; margin: 4px 0 10px; display: flex; align-items: center; gap: 6px; }

/* KPI 卡 */
.dash-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-kpi {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #eef2f6; border-left: 4px solid var(--accent, #4e8c6b);
  border-radius: 12px; padding: 14px 14px;
  box-shadow: 0 1px 2px rgba(20,30,50,.04);
  transition: transform .15s, box-shadow .15s;
}
.dash-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,30,50,.10); }
.dash-kpi-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent, #4e8c6b) 14%, #fff);
}
.dash-kpi-body { min-width: 0; }
.dash-kpi-val { font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.dash-kpi-val small { font-size: 13px; font-weight: 700; margin-left: 2px; color: var(--accent, #4e8c6b); }
.dash-kpi-label { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* 分析看板下半部分：司机概况 + 完成率 */
.dash-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 900px) { .dash-split { grid-template-columns: 1fr; } }
.dash-panel { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 14px 16px; }
.dash-bars { display: flex; flex-direction: column; gap: 12px; }
.dash-bar-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; }
.dash-bar-name { font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar-track { height: 10px; border-radius: 999px; background: #e6ecf2; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4e8c6b, #2e6a4d); transition: width .4s; }
.dash-bar-meta { font-size: 12px; color: #94a3b8; white-space: nowrap; }

.dash-panel-ring { display: flex; flex-direction: column; align-items: center; }
.dash-ring-wrap { display: flex; justify-content: center; padding: 6px 0; }
.dash-ring {
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dash-ring-inner {
  width: 112px; height: 112px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,30,50,.08);
}
.dash-ring-val { font-size: 30px; font-weight: 800; color: #4e8c6b; }
.dash-ring-lbl { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* 地图 */
.dash-map { height: 460px; width: 100%; border-radius: 12px; overflow: hidden; background: #eef2f7; }
@media (max-width: 1100px) { .dash-map { height: 360px; } }

.dash-table th:first-child, .dash-table td:first-child { text-align: center; }
.dash-table tbody tr td { vertical-align: middle; }

/* 缺货明细 */
.dash-shortage-list { display: flex; flex-direction: column; gap: 12px; }
.dash-shortage-item { border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: 12px 14px; }
.dash-shortage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-shortage-actions { display: flex; align-items: center; gap: 8px; }
.dash-shortage-prod { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
body.admin .btn-ghost.btn-ghost { color: #b45309; }
body.admin .btn-ghost[data-del] { padding: 3px 10px; border: 1px solid #fcd34d; border-radius: 8px; color: #b45309; background: #fff; }
body.admin .btn-ghost[data-del]:hover { background: #fef3c7; }

/* 缺货上报弹窗内的产品行：三列 */
#shRows .row { align-items: flex-end; }
#shRows .row > div:first-child { flex: 2; }
#shRows .row > div:nth-child(2) { flex: 0 0 90px; }
#shRows .row > div:last-child { flex: 2; }


/* ============================================================
   司机端 · 高级界面（v18）
   ============================================================ */
body.dri-body {
  background: linear-gradient(180deg, #faf6ee 0%, #f1eadf 100%);
  --primary: #4e8c6b;
  --primary-d: #2e6a4d;
  --primary-soft: #e9f0e5;
  --radius-lg: 18px;
}

/* 司机端顶栏：森林绿渐变（v29 主题，与图1配色统一） */
.dri-appbar {
  background: linear-gradient(120deg, #4e8c6b 0%, #2e6a4d 55%, #1f4632 100%);
  box-shadow: 0 4px 18px rgba(46,106,77,.30);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
/* 司机端 v24 起：顶栏空置（退出按钮移至「我的」页面），收起为 0 高度避免占位 */
.dri-appbar[aria-hidden="true"] { padding: 0; height: 0; min-height: 0; overflow: hidden; box-shadow: none; }
.dri-brand { display: flex; align-items: center; gap: 10px; }
.dri-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.dri-title { font-size: 17px; font-weight: 800; letter-spacing: .3px; color: #fff; line-height: 1.1; }
.dri-sub { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 3px; }
.dri-topbar-right { display: flex; align-items: center; gap: 10px; }
/* 顶部状态条已移除（原 .dri-status-chip 弃用） *//* 主区稍宽 */
.dri-main { max-width: 760px; padding: 16px 16px 100px; }

/* 司机端「我的」页面退出登录卡片 */
.logout-card { margin-top: 16px; }
.logout-card .btn { margin-top: 6px; padding: 14px 18px; font-size: 15px; }

/* 日期范围 */
.dri-daterow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.daterange { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.daterange .chip {
  border: none; background: transparent;
  padding: 6px 14px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.daterange .chip:hover { background: var(--panel2); color: var(--text); }
.daterange .chip.active { background: linear-gradient(135deg, #4e8c6b, #2e6a4d); color: #fff; box-shadow: 0 4px 10px rgba(46,106,77,.28); }
.daterange-inputs { display: inline-flex; align-items: center; gap: 6px; }
.daterange-inputs input { width: 130px; padding: 6px 8px; font-size: 13px; border-radius: 8px; }
.range-text { font-size: 12px; color: var(--muted); }
.range-label { display: inline-block; margin-left: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #4E8C6B; background: rgba(78,140,107,.10); border-radius: 999px; }

/* 6 KPI 卡 */
.dri-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 540px) { .dri-kpis { grid-template-columns: repeat(2, 1fr); } }
.dri-kpi {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #eef2f7;
  border-left: 4px solid var(--accent, #4e8c6b);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(20,30,50,.04), 0 6px 18px rgba(20,30,50,.05);
  transition: transform .15s, box-shadow .15s;
}
.dri-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,30,50,.10); }
.dri-kpi .ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
}
.dri-kpi .body { min-width: 0; line-height: 1.1; }
.dri-kpi .val { font-size: 22px; font-weight: 800; color: #0f172a; }
.dri-kpi .val small { font-size: 12px; font-weight: 700; margin-left: 2px; color: var(--accent, #4e8c6b); }
.dri-kpi .lbl { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* 上班/下班 状态卡（紧凑风格） */
.dri-shift {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #4e8c6b 0%, #2e6a4d 100%);
  color: #fff; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(46,106,77,.28);
}
.dri-shift-left { display: flex; align-items: center; gap: 10px; }
.dri-shift-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.dri-shift-dot.on { background: #fff; animation: pulse 1.6s infinite; }
.dri-shift-dot.off { background: rgba(255,255,255,.45); }
.dri-shift-label { font-size: 15px; font-weight: 800; }
.dri-shift-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.dri-shift-meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* 司机端卡片（高级） */
.card-dri {
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(20,30,50,.04), 0 8px 24px rgba(20,30,50,.05);
}
@media (max-width: 540px) {
  .card-dri { padding: 14px 14px; margin-bottom: 12px; border-radius: 14px; }
}
@media (max-width: 380px) {
  .card-dri { padding: 12px 12px; }
}
.card-dri-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800; color: #0f172a;
  margin: 0 0 12px;
  padding-left: 12px; position: relative;
}
.card-dri-head::before {
  content: ''; position: absolute; left: 0; top: 1px; bottom: 1px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #4e8c6b, #22c55e);
}


/* 缺货明细（司机端） */
.shortage-row {
  border: 1px solid #fde68a; background: #fffbeb;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.shortage-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.shortage-prod { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 简化停车费表单 */
.park-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.park-row select, .park-row input { flex: 1; min-width: 130px; }
.park-row button { flex: 0 0 auto; min-width: 110px; }

/* 底部 3 列 nav + 凸出圆形 FAB */
.dri-tabbar {
  display: grid; grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto;
}
.dri-tabbar .tab { background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 8px 0; border: none; cursor: pointer; }
.dri-tabbar .tab.active { color: var(--primary); font-weight: 700; }
.tab-fab-slot { display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.tab-fab-slot .fab {
  position: relative; pointer-events: auto;
  left: auto; bottom: auto; transform: none;
  width: 64px; height: 64px;
  margin-top: -22px;
  box-shadow: 0 8px 22px rgba(46,106,77,.35), 0 0 0 6px #fff;
}
.tab-fab-slot .fab .fab-ico { font-size: 22px; }
.tab-fab-slot .fab .fab-text { font-size: 11px; }
@media (min-width: 760px) {
  .tab-fab-slot .fab { margin-top: -22px; }
}
/* 原来的 .fab 通用规则也保留，让它在小屏默认使用 bottom:96px；此处我们用 .dri-tabbar 内置定位 */

/* 状态卡 meta chip（沿用 v15） */
.meta-chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px;
  border-radius: 999px; background: rgba(255,255,255,.18); color: #fff;
  font-size: 12px; font-weight: 700;
}

/* ============================================================
   v19：克制配色 + 通知分组
   ============================================================ */

/* v29：管理员驾驶舱顶栏——森林绿渐变（与图1配色统一） */
body.admin { background: #faf6ee; }
body.admin .appbar.dash-appbar {
  background: linear-gradient(120deg, #4e8c6b 0%, #2e6a4d 100%);
  box-shadow: 0 4px 18px rgba(46,106,77,.28);
}

/* dash-shortage 类名已不再使用，下面这段是把残留样式降级为「已读清空」 */
.dash-shortage, .dash-shortage-list, .dash-shortage-item,
.dash-shortage-head, .dash-shortage-actions, .dash-shortage-prod { display: none !important; }

/* 通用 pill（不再用饱和橙色） */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef2f6; color: #334155; border: 1px solid #e6ecf2;
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500;
}

/* 门店端：通知置顶 + 分组样式 */
.section-notif { display: flex; align-items: center; justify-content: space-between; }
.notif-card { padding: 14px 14px; }
.notif-group { display: flex; flex-direction: column; gap: 8px; }
.notif-divider {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--muted); margin: 12px 0 4px;
  font-weight: 700; letter-spacing: .3px;
}
.notif-divider::before, .notif-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.notif-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--panel); transition: border-color .15s, background .15s;
}
.notif-item-pending {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #99f6e4;
  border-left: 4px solid #0d9488;
}
.notif-item-completed { opacity: .85; }
.notif-item.unread { box-shadow: inset 0 0 0 1px rgba(78,140,107,.18); }

.notif-row1 {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.notif-type { font-weight: 700; color: #334155; }
.notif-status {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.notif-status.pending { background: rgba(13,148,136,.12); color: #0d9488; }
.notif-status.completed { background: var(--panel2); color: var(--muted); }
.notif-time { margin-left: auto; }

.notif-row2 { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.notif-row2 strong { color: #0f172a; font-weight: 700; }
.notif-body { color: #475569; margin-top: 2px; white-space: pre-wrap; }

.notif-row3 { margin-top: 8px; display: flex; gap: 6px; }
.notif-read-btn { padding: 4px 10px; font-size: 12px; }

/* 门店端顶栏：森林绿渐变（v29 主题，与图1配色统一） */
.topbar.topbar-store {
  background: linear-gradient(120deg, #4e8c6b 0%, #2e6a4d 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(46,106,77,.25);
}
.topbar.topbar-store h2 { color: #fff; }
.topbar.topbar-store .who { color: rgba(255,255,255,.85); }
.topbar.topbar-store #logout { background: rgba(255,255,255,.18); color: #fff; }

/* 状态徽标：从「刺目饱和」调到「柔和语义」 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.pending   { background: #fef3c7; color: #92400e; }
.badge.completed { background: #d1fae5; color: #065f46; }
.badge.working   { background: #dbeafe; color: #1e40af; }
.badge.pattern   { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge.err       { background: #fee2e2; color: #b91c1c; }

/* 整体弱化原 v15 的「荧光绿」按钮主色，但仍用同一主色系避免品牌破坏 */
.btn.primary { background: #4e8c6b; border-color: #4e8c6b; }
.btn.primary:hover { background: #2e6a4d; border-color: #2e6a4d; }
.appbar .btn-primary, .btn.btn-primary { /* 若顶栏上用到，继承了浅色管理端预览风格 */ }


/* ============================================================
   v20 · 轻丘品牌视觉规范（司机/门店：奶白底 · 山系绿/都市蓝）
   ============================================================ */

/* 状态徽标：确认 / 待确认（门店、司机、管理端共用） */
.badge.ok { background: rgba(34,197,94,.16); color: #1f9e54; }
.badge.wait { background: rgba(232,155,60,.16); color: #c97f1e; }

/* ===== 司机端首页：品牌 Banner（轻丘产品海报轮播）===== */
.qq-banner-wrap {
  display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px;
}
.qq-banner {
  position: relative; flex: 1; min-height: 134px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #4E8C6B 0%, #2E6CA4 100%);
  box-shadow: 0 10px 30px rgba(46,108,164,.18);
}
.qq-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.qq-banner-slide.active { opacity: 1; }
.qq-poster {
  position: absolute; inset: 0; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* 三张海报：内联 background-image 为主，下面三行仅作图片加载失败时的纯色底备用 */
.qq-poster-1 { background-color: #4E8C6B; }
.qq-poster-2 { background-color: #2E6CA4; }
.qq-poster-3 { background-color: #5BAE86; }
.qq-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.qq-poster-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.qq-poster-tag {
  align-self: flex-start; background: rgba(255,255,255,.22); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.qq-poster-title { color: #fff; font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.qq-poster-sub { color: rgba(255,255,255,.92); font-size: 13px; margin-top: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
/* .qq-poster-deco 旧版装饰圆，真实图背景后已不再使用 */
.qq-banner-dots { position: absolute; bottom: 10px; left: 18px; display: flex; gap: 6px; z-index: 3; }
.qq-banner-dots .dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.45); transition: .3s; }
.qq-banner-dots .dot.active { background: #fff; width: 18px; }

.qq-banner-side { width: 116px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.qq-time {
  flex: 1; background: linear-gradient(135deg, #FBF7F0 0%, #ffffff 100%);
  border: 1px solid #ece2d4; border-radius: 16px; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 6px 18px rgba(78,140,107,.10);
}
.qq-time-hm { font-size: 30px; font-weight: 800; color: #2E6CA4; line-height: 1; }
.qq-time-date { color: #8a94a6; margin-top: 4px; }
.qq-weather {
  background: linear-gradient(135deg, #FBF7F0 0%, #ffffff 100%);
  border: 1px solid #ece2d4; border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(78,140,107,.10);
}
.qq-weather-ico { font-size: 26px; line-height: 1; }
.qq-weather-temp { font-size: 18px; font-weight: 800; color: #4E8C6B; }
.qq-weather-desc { color: #8a94a6; }
@media (max-width: 440px) {
  .qq-banner-wrap { flex-direction: column; }
  .qq-banner-side { width: auto; flex-direction: row; }
  .qq-time, .qq-weather { flex: 1; }
}

/* ===== 司机端：门店损坏待确认列表 ===== */
.damage-list { display: flex; flex-direction: column; gap: 10px; }
.dmg-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel2); }
.dmg-row.is-confirmed { opacity: .85; border-color: #cfe9d8; background: #f1faf4; }
.dmg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dmg-head strong { font-size: 14px; }
.dmg-amt { margin-left: auto; font-weight: 800; color: #4E8C6B; }
.dmg-items { font-size: 13px; margin-top: 6px; color: var(--text); }
.dmg-note { margin-top: 4px; }
.dmg-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dmg-flag { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.dmg-flag.ok { background: rgba(34,197,94,.16); color: #1f9e54; }
.dmg-flag.wait { background: rgba(232,155,60,.16); color: #c97f1e; }
.dmg-status { margin-left: auto; }

/* ===== 门店端：损坏提报表单 + 确认记录 ===== */
.dmg-row-edit { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.dmg-row-edit .dmg-name { flex: 2; min-width: 0; }
.dmg-row-edit .dmg-qty { flex: 0 0 80px; }
.dmg-row-edit .dmg-price { flex: 0 0 92px; }
.dmg-del {
  flex: 0 0 auto; width: 34px; height: 38px; border-radius: 10px;
  background: #fee2e2; color: #b91c1c; border: none; font-size: 18px; line-height: 1;
}
.dmg-del:hover { background: #fecaca; }
.dmg-record { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel2); }
.dmg-record-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dmg-amount { font-size: 18px; font-weight: 800; color: #4E8C6B; }
.dmg-record-items { font-size: 13px; margin-top: 6px; }
.dmg-record-note { font-size: 12px; margin-top: 4px; color: var(--muted); }
.dmg-confirm-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* 通用小工具 */
.req { color: #f87171; }
.row-end { display: flex; justify-content: flex-end; margin-top: 10px; }
.field { margin-top: 10px; }
.field label { display: block; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.photo-pick-row { display: flex; gap: 10px; margin-top: 6px; }
.photo-pick-row .btn { flex: 1; }


/* ============================================================
   v20 · 管理驾驶舱深色科技风
   深墨绿蓝 #16242B · 山系绿 #4E8C6B · 都市蓝 #3E84C4 · 玻璃拟态
   ============================================================ */
body.admin-dark {
  background: #f4f6f9;
  --panel: #ffffff;
  --panel2: #f1f5f9;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4E8C6B;
  --primary-d: #3E84C4;
  --primary-soft: rgba(78,140,107,.10);
  --ok: #16a34a;
  --warn: #E89B3C;
  --err: #ef4444;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(15,23,42,.06);
}
body.admin-dark .appbar.dash-appbar {
  background: linear-gradient(120deg, #10202a 0%, #16242B 55%, #0f1c24 100%);
  border-bottom: 1px solid rgba(78,140,107,.25);
  box-shadow: 0 4px 22px rgba(0,0,0,.5), inset 0 0 0 1px rgba(78,140,107,.08);
}
body.admin-dark .dash-logo {
  background: rgba(78,140,107,.18);
  color: #4E8C6B;
  box-shadow: inset 0 0 0 1px rgba(78,140,107,.4), 0 0 14px rgba(78,140,107,.35);
}
body.admin-dark .dash-title { color: #eaf2ef; }
body.admin-dark .dash-sub { color: rgba(178,210,196,.75); }

/* 卡片：玻璃拟态 */
body.admin-dark .dash-card {
  background: linear-gradient(180deg, rgba(36,52,59,.78), rgba(22,36,43,.82));
  border: 1px solid rgba(120,170,150,.14);
  box-shadow: 0 10px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}
body.admin-dark .dash-card-head { color: #eaf2ef; }
body.admin-dark .dash-card-head::before {
  background: linear-gradient(180deg, #4E8C6B, #3E84C4);
  box-shadow: 0 0 10px rgba(78,140,107,.5);
}
body.admin-dark .dash-sub { color: #a9bcc9; }
body.admin-dark .muted { color: #9aa7b4; }
body.admin-dark .empty-tip { color: #9aa7b4; }

/* KPI 卡 */
body.admin-dark .dash-kpi {
  background: linear-gradient(180deg, rgba(30,44,52,.9), rgba(22,34,40,.9));
  border: 1px solid rgba(255,255,255,.07);
  border-left: 4px solid var(--accent, #4E8C6B);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
body.admin-dark .dash-kpi-ico {
  background: color-mix(in srgb, var(--accent, #4E8C6B) 22%, rgba(0,0,0,.2));
  color: var(--accent, #4E8C6B);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #4E8C6B) 35%, transparent);
}
body.admin-dark .dash-kpi-val { color: #eaf2ef; }
body.admin-dark .dash-kpi-val small { color: var(--accent, #4E8C6B); }
body.admin-dark .dash-kpi-label { color: #9aa7b4; }

/* 分析看板下半部分 */
body.admin-dark .dash-panel { background: rgba(15,24,30,.6); border: 1px solid rgba(255,255,255,.06); }
body.admin-dark .dash-bar-name { color: #cdd9e1; }
body.admin-dark .dash-bar-track { background: rgba(255,255,255,.08); }
body.admin-dark .dash-bar-fill {
  background: linear-gradient(90deg, #4E8C6B, #3E84C4);
  box-shadow: 0 0 10px rgba(62,132,196,.4);
}
body.admin-dark .dash-bar-meta { color: #8a99a6; }
body.admin-dark .dash-ring-inner {
  background: #16242B;
  box-shadow: 0 2px 10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06);
}
body.admin-dark .dash-ring-val { color: #4E8C6B; }
body.admin-dark .dash-ring-lbl { color: #8a99a6; }

/* 地图 */
body.admin-dark .dash-map {
  background: #0e181e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(78,140,107,.1);
}
body.admin-dark .map-legend { color: #9aa7b4; }

/* 表格 */
body.admin-dark .table-wrap { background: rgba(15,24,30,.5); border-color: rgba(255,255,255,.08); }
body.admin-dark .adm-table th,
body.admin-dark .adm-table td { border-bottom: 1px solid rgba(255,255,255,.07); color: #dbe5ea; }
body.admin-dark .adm-table thead th { background: rgba(255,255,255,.04); color: #9aa7b4; }
body.admin-dark .adm-table tbody tr:hover { background: rgba(255,255,255,.04); }

/* 路线卡片 */
body.admin-dark .route-card { background: rgba(22,36,43,.7); border: 1px solid rgba(255,255,255,.08); box-shadow: none; }
body.admin-dark .rc-name { color: #eaf2ef; }
body.admin-dark .rc-phone { color: #9aa7b4; }
body.admin-dark .badge.working { background: rgba(62,132,196,.18); color: #7fb2e6; }
body.admin-dark .rc-current {
  background: linear-gradient(135deg, rgba(232,155,60,.14), rgba(232,155,60,.06));
  border-color: rgba(232,155,60,.35);
}
body.admin-dark .rc-km { color: #E89B3C; }
body.admin-dark .rc-min { color: #f0b35e; }
body.admin-dark .rc-arr b { color: #4E8C6B; }
body.admin-dark .rc-pending { background: rgba(15,24,30,.5); border-color: rgba(255,255,255,.08); }
body.admin-dark .rc-pending-head { color: #cdd9e1; }
body.admin-dark .rc-pending-list li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.admin-dark .rc-pending-seq { background: rgba(78,140,107,.2); color: #9fe0c0; }
body.admin-dark .rc-all-done { background: rgba(78,140,107,.14); color: #9fe0c0; }

/* 设置 Modal + 通用卡片（深色） */
body.admin-dark .modal { background: #16242B; color: #e6edf2; border: 1px solid rgba(255,255,255,.08); }
body.admin-dark .modal-head { color: #eaf2ef; }
body.admin-dark .modal-x { color: #9aa7b4; }
body.admin-dark .modal-tip { color: #9aa7b4; }
body.admin-dark .card { background: rgba(22,36,43,.6); border-color: rgba(255,255,255,.08); }
body.admin-dark .card-sub { color: #cdd9e1; }
body.admin-dark .card-sub::before { background: #4E8C6B; }
body.admin-dark .mt-row { background: rgba(15,24,30,.5); border-color: rgba(255,255,255,.08); }
body.admin-dark .mt-name { color: #e6edf2; }
body.admin-dark .mt-addr, body.admin-dark .mt-meta, body.admin-dark .mt-coord { color: #9aa7b4; }

body.admin-dark input, body.admin-dark select, body.admin-dark textarea {
  background: rgba(15,24,30,.7); color: #e6edf2; border-color: rgba(255,255,255,.12);
}
body.admin-dark input:focus, body.admin-dark select:focus, body.admin-dark textarea:focus {
  border-color: #4E8C6B; box-shadow: 0 0 0 3px rgba(78,140,107,.25);
}

/* 按钮（深色驾驶舱） */
body.admin-dark .btn { background: rgba(255,255,255,.06); color: #e6edf2; border-color: rgba(255,255,255,.12); }
body.admin-dark .btn:hover { background: rgba(255,255,255,.12); }
body.admin-dark .btn.primary,
body.admin-dark .btn-primary {
  background: #4E8C6B; border-color: #4E8C6B; color: #fff;
  box-shadow: 0 6px 18px rgba(78,140,107,.35);
}
body.admin-dark .btn.primary:hover,
body.admin-dark .btn-primary:hover { background: #57a07d; border-color: #57a07d; }
body.admin-dark .btn.sm.primary { background: #4E8C6B; border-color: #4E8C6B; }

/* 日期切换器 */
body.admin-dark .dash-date { background: rgba(255,255,255,.08); }
body.admin-dark .dash-date-input { background: rgba(15,24,30,.7); color: #e6edf2; }
body.admin-dark .dash-today { background: rgba(78,140,107,.9); color: #fff; }
body.admin-dark .dash-date-btn { color: #e6edf2; }
body.admin-dark .dash-date-btn:hover { background: rgba(255,255,255,.14); }

/* 顶栏文字 */
body.admin-dark .who { color: rgba(255,255,255,.85); }
body.admin-dark .btn-ghost { color: rgba(255,255,255,.85); }
body.admin-dark .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   v27 · 管理中心（center.html）
   ============================================================ */

/* Tab 切换条 */
.ctr-tabs {
  display: flex; gap: 6px; margin: 18px 0 14px;
  padding: 6px; border-radius: 14px;
  background: rgba(22,36,43,.7); border: 1px solid rgba(255,255,255,.07);
  width: fit-content;
}
.ctr-tab {
  padding: 9px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #9aa7b4; background: transparent;
  transition: .16s;
}
.ctr-tab:hover { color: #e6edf2; background: rgba(255,255,255,.06); }
.ctr-tab.active {
  color: #fff;
  background: linear-gradient(120deg, #4E8C6B, #3E84C4);
  box-shadow: 0 6px 18px rgba(78,140,107,.35);
}
.ctr-pane { margin-top: 4px; }
.ctr-divider { height: 1px; background: rgba(255,255,255,.08); margin: 20px 0 16px; }

/* 密码单元格 */
.pwd-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.pwd-txt {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px; letter-spacing: 1px; color: #cbd5e1;
  background: rgba(255,255,255,.05); padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
}
.pwd-cell .btn-ghost.sm { font-size: 11px; padding: 2px 6px; white-space: nowrap; }

/* 系统信息栅格 */
.ctr-sys-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 18px;
}
.ctr-sys-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(15,24,30,.5); border: 1px solid rgba(255,255,255,.06);
}
.ctr-sys-k { font-size: 12px; color: #9aa7b4; }
.ctr-sys-v { font-size: 13px; font-weight: 600; color: #e6edf2; text-align: right; }

/* 统计副标题（门店端履约率分母说明） */
.me-stat-sub { font-size: 11px; color: #9aa7b4; margin-top: 3px; }

/* 管理中心按钮：删除用危险色 */
.btn.sm.danger, body.admin-dark .btn.sm.danger {
  background: rgba(248,113,113,.16); color: #f87171; border-color: rgba(248,113,113,.35);
}
.btn.sm.danger:hover, body.admin-dark .btn.sm.danger:hover {
  background: rgba(248,113,113,.28); border-color: rgba(248,113,113,.5);
}

@media (max-width: 700px) {
  .ctr-tabs { width: 100%; }
  .ctr-tab { flex: 1; padding: 9px 8px; font-size: 13px; }
}


/* ============================================================
   v28 门店端：顶部 Banner（实物图 + 励志话术 + 时间 + 天气）
   ============================================================ */
.sb-banner {
  position: relative; overflow: hidden;
  height: 178px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #4E8C6B 0%, #2E6CA4 100%);
  box-shadow: 0 6px 18px rgba(78,140,107,.14);
  isolation: isolate;
}
.sb-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.12); transform: scale(1.08);
  transition: opacity .45s ease;
}
.sb-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .45s ease;
}
.sb-img.is-loaded { opacity: 1; }
.sb-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,26,22,.44) 0%, rgba(9,26,22,.10) 36%, rgba(9,26,22,.66) 100%);
}
.sb-top {
  position: relative; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
}
.sb-time { text-align: right; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.sb-time-hm { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.sb-time-date { font-size: 12px; opacity: .92; margin-top: 5px; }
.sb-wx {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 999px; padding: 6px 12px 6px 10px;
  color: #fff; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease;
}
.sb-wx:active { background: rgba(255,255,255,.28); }
.sb-wx-ico { font-size: 20px; line-height: 1; }
.sb-wx-temp { font-size: 15px; font-weight: 800; line-height: 1.1; }
.sb-wx-desc {
  font-size: 11px; opacity: .9; margin-top: 2px;
  max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-quote {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 16px 16px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.sb-quote-txt { font-size: 19px; font-weight: 800; letter-spacing: .3px; line-height: 1.36; }
.sb-quote-sub { font-size: 12px; opacity: .9; margin-top: 5px; }

/* ============================================================
   v28 司机状态卡（有配送 / 无配送两种形态）
   ============================================================ */
.sb-drv { display: flex; align-items: center; gap: 12px; }
.sb-drv-av {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #4E8C6B, #2E6CA4);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sb-drv-info { flex: 1; min-width: 0; }
.sb-drv-name {
  font-size: 15px; font-weight: 700; color: #0f172a;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sb-drv-eta { font-size: 13px; color: #475569; margin-top: 3px; }
.sb-drv-eta b { color: #4e8c6b; font-size: 15px; }
.sb-drv-call { flex-shrink: 0; }
.sb-idle { background: #f8fafc; border: 1px solid #e2e8f0; }

/* ============================================================
   v28 配送分析图表（近 30 天）
   ============================================================ */
.chart-legend { display: flex; gap: 14px; font-size: 11px; color: #6b7280; margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.chart-legend .lg-bar { background: linear-gradient(90deg, #4E8C6B, #2E6CA4); }
.chart-legend .lg-line { background: #cbd5e1; height: 3px; border-radius: 2px; }
.sb-chart { width: 100%; }
.sb-chart svg { display: block; width: 100%; height: auto; }

/* TOP 产品横条 */
.tp-row {
  display: grid; grid-template-columns: 1fr 92px 38px;
  align-items: center; gap: 10px; padding: 6px 0;
}
.tp-name { font-size: 13px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bar { height: 8px; background: #eef2f5; border-radius: 999px; overflow: hidden; }
.tp-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4E8C6B, #2E6CA4);
}
.tp-qty { font-size: 13px; font-weight: 700; color: #065f46; text-align: right; }

@media (max-width: 400px) {
  .sb-banner { height: 158px; }
  .sb-quote-txt { font-size: 17px; }
  .sb-time-hm { font-size: 26px; }
}

/* ===== v32：管理端 / 管理中心 改白色底（覆盖 admin-dark 写死深色规则） ===== */
body.admin-dark .appbar.dash-appbar {
  background: linear-gradient(120deg, #ffffff 0%, #f0fdf4 55%, #eef6ff 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
body.admin-dark .dash-logo {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(78,140,107,.25);
}
body.admin-dark .dash-title { color: #1f2937; }
body.admin-dark .dash-sub { color: var(--muted); }
body.admin-dark .dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
body.admin-dark .dash-card-head { color: #1f2937; }
body.admin-dark .dash-card-head::before { box-shadow: none; }
body.admin-dark .muted { color: var(--muted); }
body.admin-dark .empty-tip { color: var(--muted); }
body.admin-dark .dash-kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #4E8C6B);
  box-shadow: var(--shadow);
}
body.admin-dark .dash-kpi-ico {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: none;
}
body.admin-dark .dash-kpi-val { color: #1f2937; }
body.admin-dark .dash-kpi-val small { color: var(--primary); }
body.admin-dark .dash-kpi-label { color: var(--muted); }
body.admin-dark .dash-panel { background: var(--panel2); border: 1px solid var(--line); }
body.admin-dark .dash-bar-name { color: #374151; }
body.admin-dark .dash-bar-track { background: #e5e7eb; }
body.admin-dark .dash-bar-meta { color: var(--muted); }
body.admin-dark .dash-ring-inner {
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(15,23,42,.08), inset 0 0 0 1px var(--line);
}
body.admin-dark .dash-ring-val { color: var(--primary); }
body.admin-dark .dash-ring-lbl { color: var(--muted); }
body.admin-dark .dash-map {
  background: #eef2f6;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px var(--primary-soft);
}
body.admin-dark .map-legend { color: var(--muted); }
body.admin-dark .table-wrap { background: var(--panel); border-color: var(--line); }
body.admin-dark .adm-table th,
body.admin-dark .adm-table td { border-bottom: 1px solid var(--line); color: #374151; }
body.admin-dark .adm-table thead th { background: #f3f4f6; color: var(--muted); }
body.admin-dark .adm-table tbody tr:hover { background: #f9fafb; }
body.admin-dark .route-card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
body.admin-dark .rc-name { color: #1f2937; }
body.admin-dark .rc-phone { color: var(--muted); }
body.admin-dark .badge.working { background: rgba(62,132,196,.12); color: #2563eb; }
body.admin-dark .rc-current {
  background: linear-gradient(135deg, rgba(232,155,60,.12), rgba(232,155,60,.05));
  border-color: rgba(232,155,60,.3);
}
body.admin-dark .rc-km { color: var(--warn); }
body.admin-dark .rc-min { color: #d97706; }
body.admin-dark .rc-arr b { color: var(--primary); }
body.admin-dark .rc-pending { background: var(--panel2); border-color: var(--line); }
body.admin-dark .rc-pending-head { color: #374151; }
body.admin-dark .rc-pending-list li { background: #f3f4f6; border-color: var(--line); }
body.admin-dark .rc-pending-seq { background: var(--primary-soft); color: var(--primary); }
body.admin-dark .rc-all-done { background: var(--primary-soft); color: var(--primary); }
body.admin-dark .modal { background: #fff; color: #1f2937; border: 1px solid var(--line); }
body.admin-dark .modal-head { color: #1f2937; }
body.admin-dark .modal-x { color: var(--muted); }
body.admin-dark .modal-tip { color: var(--muted); }
body.admin-dark .card { background: var(--panel); border-color: var(--line); }
body.admin-dark .card-sub { color: #374151; }
body.admin-dark .card-sub::before { background: var(--primary); }
body.admin-dark .mt-row { background: var(--panel2); border-color: var(--line); }
body.admin-dark .mt-name { color: #1f2937; }
body.admin-dark .mt-addr, body.admin-dark .mt-meta, body.admin-dark .mt-coord { color: var(--muted); }
body.admin-dark input, body.admin-dark select, body.admin-dark textarea {
  background: #fff; color: #1f2937; border-color: var(--line);
}
body.admin-dark input:focus, body.admin-dark select:focus, body.admin-dark textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
body.admin-dark .btn { background: #fff; color: #1f2937; border-color: var(--line); }
body.admin-dark .btn:hover { background: #f3f4f6; }
body.admin-dark .btn.primary,
body.admin-dark .btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(78,140,107,.25);
}
body.admin-dark .btn.primary:hover,
body.admin-dark .btn-primary:hover { background: #57a07d; border-color: #57a07d; }
body.admin-dark .btn.sm.primary { background: var(--primary); border-color: var(--primary); }
body.admin-dark .dash-date { background: var(--panel2); }
body.admin-dark .dash-date-input { background: #fff; color: #1f2937; }
body.admin-dark .dash-today { background: var(--primary); color: #fff; }
body.admin-dark .dash-date-btn { color: #1f2937; }
body.admin-dark .dash-date-btn:hover { background: #f3f4f6; }
body.admin-dark .who { color: #374151; }
body.admin-dark .btn-ghost { color: #374151; }
body.admin-dark .btn-ghost:hover { background: #f3f4f6; color: #1f2937; }
/* 管理中心 center.html 暗色类同步改白 */
body.admin-dark .ctr-tabs { background: var(--panel2); border-color: var(--line); }
body.admin-dark .ctr-tab { color: var(--muted); }
body.admin-dark .ctr-tab:hover { color: #1f2937; background: #f3f4f6; }
body.admin-dark .ctr-tab.active { color: #fff; background: linear-gradient(120deg, #4E8C6B, #3E84C4); }
body.admin-dark .ctr-divider { background: var(--line); }
body.admin-dark .pwd-txt { color: #374151; background: #f3f4f6; border-color: var(--line); }

/* ===== v32：司机端 门店「导航 / 删除」按钮 ===== */
.ri-actions { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.ri-nav, .ri-del {
  border: none; cursor: pointer; font-size: 12px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; line-height: 1; white-space: nowrap;
}
.ri-nav { background: rgba(46,108,164,.12); color: #2E6CA4; }
.ri-nav:active { background: rgba(46,108,164,.22); }
.ri-del { background: rgba(220,38,38,.10); color: #dc2626; }
.ri-del:active { background: rgba(220,38,38,.2); }

/* v39：当前配送任务卡片头部「开始配送」按钮槽 + 状态卡定位提示 */
.card-dri-actions { margin-left: auto; }
/* v40：卡片头部「开始配送」紧凑按钮（避免文案太长换行占两行） */
.btn-start-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(46,108,164,.18);
}
.btn-start-sm:disabled { box-shadow: none; }
.dri-shift-loc { margin-top: 2px; }

/* ===== 司机端 · 待出发路线 ===== */
.route-node {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; position: relative;
}
.route-node.is-active { border-color: var(--primary); background: var(--primary-soft); }
.route-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.route-leg {
  margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
/* v57：待出发路线卡片底部「立即配送」入口（每次刷新重渲染均可见） */
.route-start-footer {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.route-start-footer .btn-primary.block { width: 100%; }

/* v48：路线空态地图 - 高度放大至 320，可清楚显示周边建筑/道路 */
.route-return-map {
  position: relative; height: 320px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: #eef2f5; /* 加载前的占位底色 */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
.route-return-map .dd-map-html-icon { background: transparent !important; border: 0 !important; }
.route-return-map .leaflet-control-zoom a { background: rgba(255,255,255,.92) !important; }
.route-return-info {
  margin-top: 10px; padding: 10px 12px;
  background: var(--primary-soft, rgba(78,140,107,.08));
  border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.route-return-info .rti-label { color: var(--muted); white-space: nowrap; }
.route-return-info .rti-eta {
  font-size: 22px; font-weight: 700; color: var(--primary, #4e8c6b);
  line-height: 1; white-space: nowrap;
}
.route-return-info .rti-dist { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }
.route-return-info .rti-factory { color: var(--ink); font-weight: 600; }
.route-return-info-empty { padding: 10px 12px; }
.rti-pulse {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary, #4e8c6b);
  margin-right: 6px; vertical-align: middle;
  animation: rti-pulse 1.4s infinite ease-in-out;
}
@keyframes rti-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.65); }
}

/* ============= v49：拍照完成站 + 自动推进 + 全单完成横幅 ============= */
.reorder-item.is-active {
  background: linear-gradient(180deg, #ecfeff 0%, #fff 60%);
  border-color: #06b6d4;
  box-shadow: 0 1px 0 #06b6d4 inset, 0 4px 12px rgba(6,182,212,0.10);
}
.reorder-item.is-active::before {
  content: '正在进行';
  position: absolute;
  top: -1px; left: 0;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 4px 0;
  letter-spacing: 0.5px;
  z-index: 1;
}
.reorder-item { position: relative; }
.reorder-item.is-done { background: #f8fafc; opacity: 0.94; }
.reorder-item.is-done .ri-store-name { color: #475569; }
.badge.badge-go { background: #06b6d4; color: #fff; font-weight: 600; }

/* v69y：in_progress 卡内「✓ 已送达」按钮 — 取消大绿块，改小号跟随 ETA 行 */
.ri-done-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(16,185,129,0.20);
  transition: transform 0.1s, box-shadow 0.15s;
  vertical-align: middle;
  touch-action: manipulation;
}
.ri-done-inline:active { transform: scale(0.96); box-shadow: 0 1px 3px rgba(16,185,129,0.18); }
.ri-done-inline[disabled] { background: #cbd5e1; box-shadow: none; cursor: not-allowed; color: #64748b; }

/* 完成态缩略图（送达凭证 - 单独一张大图 + 文字标签） */
.ri-arr-photo { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ri-arr-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 2px solid #10b981; box-shadow: 0 1px 3px rgba(16,185,129,0.25); cursor: zoom-in; }

/* v58：移除「本次配送任务已完成」绿色横幅（CSS 同步清掉） */


/* ============= v49：精度数字标签（Leaflet tooltip） ============= */
.dd-acc-tip {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid #06b6d4 !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0e7490 !important;
  white-space: nowrap !important;
}
.dd-acc-tip::before { display: none !important; } /* 隐藏默认三角 */
.dd-acc-num { font-weight: 700; letter-spacing: 0.2px; color: #0e7490; }

/* ============= v50：司机端三 tab + 内联上班打卡 + 门店端全宽大地图 ============= */
/* 司机端：底部中间 tab 状态机配色（首/末 tab 走默认 .tab 配色） */
.dri-tabbar-v50 .tab.clk-start   { color: #2E6CA4; }
.dri-tabbar-v50 .tab.clk-start .tab-ico   { color: #2E6CA4; }
.dri-tabbar-v50 .tab.clk-shipping { color: #4E8C6B; }
.dri-tabbar-v50 .tab.clk-shipping .tab-ico { color: #4E8C6B; }
.dri-tabbar-v50 .tab.clk-end     { color: #C44545; font-weight: 700; }
.dri-tabbar-v50 .tab.clk-end .tab-ico     { color: #C44545; }
.dri-tabbar-v50 .tab.clk-finished { color: #9aa7b4; }
.dri-tabbar-v50 .tab.clk-finished .tab-ico { color: #9aa7b4; }
.dri-tabbar-v50 .tab.clk-end { position: relative; }
.dri-tabbar-v50 .tab.clk-end::after {
  content: ''; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 3px; background: #C44545;
}
/* 内联打卡卡闪动提示 */
.punch-card-flash { animation: punchFlash 1.1s ease; }
@keyframes punchFlash {
  0%   { box-shadow: 0 0 0 0 rgba(78,140,107,.55); }
  100% { box-shadow: 0 0 0 14px rgba(78,140,107,0); }
}

/* 门店端：司机实时位置 → 全宽大地图（与底部 tab 对齐，边缘出血） */
.map-fullwrap {
  position: relative; width: 100%; height: 460px;
  margin: 0 -14px; border-radius: 0; overflow: hidden;
  background: #eef2f7; box-shadow: 0 6px 20px rgba(78,140,107,.10);
}
.map-fullwrap .map-box.map-full { height: 100%; width: 100%; border-radius: 0; }
.driver-chip-floating {
  position: absolute; top: 12px; left: 12px; z-index: 500;
  max-width: calc(100% - 24px);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.dc-name { font-size: 14px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.dc-badge { font-size: 11px; font-weight: 600; color: #fff; background: #4E8C6B; padding: 1px 7px; border-radius: 999px; }
.dc-meta { margin-top: 4px; font-size: 12px; color: #475569; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dc-call { color: #2E6CA4; text-decoration: none; font-weight: 600; }
.dc-eta { color: #0f766e; } .dc-eta b { color: #0f766e; font-size: 14px; }

/* v51：停车费 - 门店名文本展示 + 拍照上传付费截图 */
.park-row-v51 { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.park-store-cell { flex: 1 1 220px; min-width: 0; background: #F7FAFC; border: 1px dashed #CBD5E1; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.park-store-lbl { font-size: 11px; }
.park-store-name { font-size: 14px; font-weight: 700; color: #0f172a; word-break: break-all; }
.park-store-name.is-pending { color: #94a3b8; font-weight: 500; }
.park-store-name.is-ok { color: #0f766e; }
.park-row-v51 #expAmount { flex: 0 0 130px; }
.park-photo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.park-photo-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.park-photo-preview { flex: 1 1 160px; min-height: 44px; min-width: 0; background: #F7FAFC; border: 1px dashed #CBD5E1; border-radius: 10px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.park-photo-preview img { max-width: 60px; max-height: 44px; border-radius: 6px; object-fit: cover; cursor: zoom-in; }
.park-photo-preview .muted.sm { font-size: 11px; }
@media (max-width: 480px) {
  .park-row-v51 { flex-direction: column; }
  .park-row-v51 #expAmount { flex: 1 1 auto; width: 100%; }
  .park-photo-btn { flex: 1 1 auto; justify-content: center; }
}





/* ===== v54：提交停车费（搬到"我的"tab，下拉选门店 + 金额，去截图） ===== */
.park-card-v54 { border-top: 3px solid #4E8C6B; }
.park-row-v54 { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.park-store-sel {
  flex: 1 1 220px; min-width: 0;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  appearance: auto;
  cursor: pointer;
}
.park-store-sel:focus { outline: 2px solid #4E8C6B; outline-offset: -2px; }
#expAmount { flex: 0 0 130px; }
@media (max-width: 480px) {
  .park-row-v54 { flex-direction: column; }
  #expAmount { flex: 1 1 auto; width: 100%; }
}


/* ===== v55：已完成配送模块（默认折叠，仅展示 门店名/完成时间/配送商品数） ===== */
.completed-module { border-top: 3px solid #10b981; }
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}
.cm-count { font-size: 13px; font-weight: 600; color: #047857; margin-left: 2px; }
.cm-toggle { font-size: 16px; color: #64748b; transition: transform 0.15s; }
.cm-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cm-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 14px;
}
.cm-store { font-weight: 700; color: #0f172a; }
.cm-time { color: #475569; }
.cm-count { color: #047857; font-weight: 600; }
@media (max-width: 480px) {
  .cm-row { gap: 4px 10px; font-size: 13px; }
}


/* ===== v56：ETA 锁定标识（开始配送后计算一次，不再变更） ===== */
.eta-locked {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.7;
  cursor: help;
}

/* v69i+: Amap route map container + pins */
.route-map-wrap{position:relative;margin:8px 0 4px;border-radius:12px;overflow:hidden;background:#eef2ee;}
.route-map{width:100%;height:240px;}
.route-map-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#8a8a8a;background:rgba(255,255,255,0.7);text-align:center;padding:8px;}
.map-pin{width:30px;height:30px;border-radius:50% 50% 50% 0;background:var(--primary);border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;}
.mp-seq{transform:rotate(45deg);color:#fff;font-weight:700;font-size:13px;}
.map-pin.start{background:var(--accent);font-size:15px;transform:rotate(0);}

/* v69l：同门店多物流方式聚合 — 批次块 + 产品表 */
.batch-block{margin:8px 0 0;padding:8px 10px;background:#f6faf7;border:1px solid #d8ebe0;border-radius:10px;}
.batch-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600;color:#234;margin-bottom:2px;}
.batch-eta{font-weight:500;color:#2f6f52;font-size:12px;margin-left:2px;}
.batch-products{margin-top:6px;max-height:220px;overflow:auto;border-radius:8px;background:#fff;}
.batch-products .product-table{min-width:0;}
.product-table.mini{font-size:13px;background:#fff;width:100%;table-layout:fixed;}
.product-table.mini th,.product-table.mini td{padding:6px 4px;white-space:nowrap;}
.product-table.mini th:nth-child(1),.product-table.mini td:nth-child(1){width:auto;min-width:0;max-width:none;text-align:left;font-weight:500;}
.product-table.mini th:nth-child(2),.product-table.mini td:nth-child(2){width:64px;text-align:center;}
.product-table.mini th:nth-child(3),.product-table.mini td:nth-child(3){width:48px;text-align:center;}
.product-table.mini th:nth-child(4),.product-table.mini td:nth-child(4){width:48px;text-align:center;}
.batch-block .ri-done-inline{margin-top:6px;}
/* v69q：防御性隐藏任何残留的门店地址节点（即便缓存层注入也不显示） */
.ri-addr{display:none !important;visibility:hidden !important;height:0 !important;line-height:0 !important;font-size:0 !important;overflow:hidden !important;margin:0 !important;padding:0 !important;}
