/* 装维轨迹地图页样式（复用 app.css 的变量与顶栏/筛选条） */
body.map-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }

/* 主体布局：左列表 + 右地图 */
.map-main {
  flex: 1 1 auto; min-height: 0;
  display: flex; gap: 0;
}

/* ===== 左侧装维列表 ===== */
.map-side {
  flex: 0 0 268px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 5;
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px;
}
.side-title { font-weight: 700; font-size: 14px; }
.side-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--primary-soft); color: var(--primary); border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-left: 4px;
}
.side-tools { display: flex; gap: 6px; }
.side-search { margin: 0 12px 8px; }
.worker-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 12px; }
.side-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.wk-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; margin-bottom: 3px;
  transition: background .12s, border-color .12s;
}
.wk-item:hover { background: #f6f8fc; }
.wk-item.on { background: var(--primary-soft); border-color: #cfdcff; }
.wk-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 2px #fff inset; }
.wk-main { flex: 1 1 auto; min-width: 0; }
.wk-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-stat { flex: 0 0 auto; text-align: right; }
.wk-pts { font-size: 13px; font-weight: 700; color: var(--text); }
.wk-pts small { font-weight: 500; color: var(--muted); }
.wk-miss { font-size: 10.5px; color: var(--warn); }

/* ===== 右侧地图 ===== */
.map-stage { position: relative; flex: 1 1 auto; min-width: 0; }
#map { position: absolute; inset: 0; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 14px; background: var(--bg); z-index: 2;
}

/* 时序点 marker（HTML 自定义） */
.tp {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  color: #fff; font-weight: 700; font-size: 12px;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  cursor: pointer;
}
.tp span { transform: rotate(45deg); }
.tp.sel { outline: 3px solid rgba(255,255,255,.85); z-index: 10; }

/* 选中点详情卡 */
.point-card {
  position: absolute; right: 14px; top: 14px; width: 280px; z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.pc-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; color: #fff; }
.pc-seq { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); font-weight: 700; font-size: 12px; }
.pc-title { flex: 1 1 auto; font-weight: 700; font-size: 14px; }
.pc-close { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 6px; font-size: 16px; }
.pc-body { padding: 11px 13px; }
.pc-row { display: flex; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.pc-row b { flex: 0 0 58px; color: var(--muted); font-weight: 500; }
.pc-row span { flex: 1 1 auto; min-width: 0; word-break: break-all; }

/* 无坐标提示条 */
.miss-banner {
  position: absolute; left: 14px; bottom: 14px; max-width: 340px; z-index: 18;
  background: var(--warn-soft); color: #8a5a00; border: 1px solid #f0d59a;
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; line-height: 1.5;
  box-shadow: var(--shadow);
}
.miss-banner b { color: #7a4f00; }

/* 业务底色（marker / 卡片头复用） */
.biz-install { background: var(--c-install); }
.biz-dismantle { background: #0ea5b7; }
.biz-complaint { background: var(--c-complaint); }
.biz-rectify { background: var(--c-rectify); }
.biz-other { background: var(--c-other); }

@media (max-width: 720px) {
  .map-side { flex-basis: 200px; }
  .point-card { width: calc(100% - 28px); }
}
