/* ============================================================================
   售后服务待处理点位 · 处理计划（独立路由 /offline/）
   与全量点位图同一套设计语言：扁平、细边框、无投影
   ========================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #26323D; background: #EEF3F7; overflow: hidden; -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------------- 地图区 */
#mapWrap { position: absolute; inset: 0; }
.amap-host { width: 100%; height: 100%; display: none; }
.amap-host.on { display: block; }
/* 隔离层叠上下文：高德内部 160 的版权条不能盖到页面自身浮层上 */
#mapWrap, .amap-host { isolation: isolate; }
.amap-host .amap-logo, .amap-host .amap-copyright { opacity: .62; }

.fb { display: none; position: absolute; inset: 0; padding: 22px; overflow: auto; background: #EEF3F7; }
.fb.on { display: block; }
.fb-head { max-width: 1100px; margin: 0 auto 12px; font-size: 13px; color: #5C6B78; }
.fb-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border: 1px solid #C9D4DD;
          border-radius: 3px; color: #2E4A63; background: #fff; font-size: 12px; }
.fb-body { max-width: 1100px; margin: 0 auto; padding: 8px; background: #fff;
           border: 1px solid #DCE3E9; border-radius: 6px; }
.fb-body svg { display: block; }

/* 顺序号标点 */
.op {
  border: 2px solid #fff; border-radius: 50%; color: #fff; cursor: pointer;
  font: 700 11.5px/18px -apple-system, "PingFang SC", sans-serif; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .34);
}
.op.on { box-shadow: 0 0 0 3px rgba(22, 50, 74, .38), 0 1px 3px rgba(0, 0, 0, .34); }
.op.dim { opacity: .32; }

/* 点位名称浮标 */
.lb {
  padding: 1px 5px; border: 1px solid #9BB0C2; border-radius: 3px;
  background: #FFFFFF; color: #16324A; font-weight: 600;
  font: 600 11px/1.35 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap; max-width: 152px; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; box-shadow: 0 1px 3px rgba(22, 50, 74, .20);
}
.lb.big { font-size: 11.5px; color: #0F2A44; border-color: #7E97AD; box-shadow: 0 1px 3px rgba(22, 50, 74, .26); }

/* InfoWindow */
.amap-info-content { padding: 0; border-radius: 6px; overflow: hidden; }
.iw { min-width: 210px; max-width: 300px; padding: 10px 12px; font: 13px/1.5 -apple-system, "PingFang SC", sans-serif; }
.iw-name { font-size: 14px; font-weight: 600; color: #16324A; }
.iw-row { margin: 6px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iw-tag { display: inline-block; padding: 1px 7px; border-radius: 3px; color: #fff; font-size: 11.5px; }
.iw-day { display: inline-block; padding: 1px 7px; border-radius: 3px; border: 1px solid #C9D4DD;
          color: #3D4C59; font-size: 11.5px; }
.iw-c { color: #55636F; font-size: 12px; letter-spacing: .2px; }
.iw-task { margin-top: 6px; padding-top: 6px; border-top: 1px solid #EEF1F4; color: #55636F; font-size: 12px; }
.iw-task b { color: #2E4A63; font-weight: 600; }

/* ---------------------------------------------------------------- 侧栏 */
#panel {
  position: absolute; left: 18px; top: 18px; bottom: 18px; width: 372px; z-index: 30;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #E1E6EB; border-radius: 10px; transition: transform .22s ease;
}
body.fold #panel { transform: translateX(calc(-100% - 26px)); }

.p-head { padding: 12px 16px 9px; border-bottom: 1px solid #EEF1F4; }
.p-title { font-size: 15px; font-weight: 700; color: #16324A; letter-spacing: .2px; }
.p-sub { margin-top: 3px; font-size: 12.5px; color: #7B8794; line-height: 1.45; }
.p-sub b { color: #C0392B; font-weight: 700; }
.p-nav { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid #DCE3E9;
         border-radius: 4px; font-size: 11.5px; color: #3D4C59; text-decoration: none; background: #FBFCFD; }
.p-nav:hover { border-color: #8FA9BE; color: #16324A; }

.p-days { padding: 8px 12px 7px; border-bottom: 1px solid #EEF1F4; }
.day-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.day-chip {
  display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #E1E6EB;
  border-radius: 4px; background: #fff; font: 11.5px/1.3 inherit; color: #55636F; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.day-chip .dc-d { font-weight: 600; color: #2E4A63; }
.day-chip .dc-n { color: #98A4B0; font-size: 11px; margin-left: auto; }
.day-chip.on { border-color: #8FA9BE; background: #F2F7FC; }
.day-chip .dc-bar { display: inline-block; flex: 0 0 auto; width: 3px; height: 12px; border-radius: 2px; }

.p-tools { padding: 8px 12px 9px; border-bottom: 1px solid #EEF1F4; }
#q { width: 100%; height: 30px; padding: 0 10px; border: 1px solid #DCE3E9; border-radius: 5px;
     font: 13px inherit; color: #26323D; outline: none; background: #FBFCFD; }
#q:focus { border-color: #8FA9BE; background: #fff; }
.p-btns { margin-top: 7px; display: flex; gap: 8px; }
.p-btns button { flex: 1; height: 28px; border: 1px solid #DCE3E9; border-radius: 5px; background: #fff;
                 font: 12.5px inherit; color: #3D4C59; cursor: pointer; }
.p-btns button:hover { border-color: #8FA9BE; color: #16324A; }
.p-btns button.on { border-color: #8FA9BE; background: #F2F7FC; color: #16324A; }

.p-count { padding: 8px 14px; font-size: 12px; color: #7B8794; background: #FAFBFC; border-bottom: 1px solid #EEF1F4; }

.p-list { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.p-list::-webkit-scrollbar { width: 8px; }
.p-list::-webkit-scrollbar-thumb { background: #C9D4DD; border-radius: 4px; }
.p-list::-webkit-scrollbar-thumb:hover { background: #A9B8C6; }
.p-list::-webkit-scrollbar-track { background: #F5F8FA; }
.d-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; background: #F4F7FA; border-bottom: 1px solid #E9EEF2;
  font-size: 12.5px; font-weight: 600; color: #3D4C59;
}
.d-head .d-num { margin-left: auto; color: #8A96A2; font-weight: 400; font-size: 11.5px; }
.row { display: flex; gap: 9px; padding: 7px 14px; border-bottom: 1px solid #F1F4F7; cursor: pointer; }
.row:hover { background: #F7FAFC; }
.row.on { background: #EDF4FA; }
.seq {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  color: #fff; font: 700 11px/18px -apple-system, "PingFang SC", sans-serif; text-align: center;
}
.row-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.row-nm { font-size: 13px; font-weight: 500; color: #26323D; line-height: 1.3; }
.row-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; line-height: 1.35; }
.tg { display: inline-block; padding: 0 5px; border-radius: 2px; font-size: 11px; color: #fff; }
.tg-sec { background: #8A96A2; }
.tg-warn { background: #C0392B; }
.row-rk { font-size: 11.5px; color: #98A4B0; }
.row-wk { font-size: 11px; color: #8A96A2; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-src { padding: 6px 14px; border-top: 1px solid #EEF1F4; font-size: 11px; color: #A2ACB7;
         background: #FAFBFC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#panelToggle {
  position: absolute; top: 18px; left: 402px; z-index: 31; height: 30px; padding: 0 13px;
  border: 1px solid #E1E6EB; border-radius: 15px; background: #fff;
  font: 12.5px inherit; color: #3D4C59; cursor: pointer;
}
body.fold #panelToggle { left: 18px; }

@media (max-width: 860px) {
  #panel { left: 12px; right: 12px; top: 58px; bottom: 12px; width: auto; }
  body.fold #panel { transform: translateX(calc(-100% - 30px)); }
  #panelToggle { top: 14px; left: 12px; }
  body:not(.fold) #panelToggle { left: 12px; }
}
