/* 门店巡检（#/auto/patrol）+ 运营记录（#/auto/ops）；表格/KPI/切换按钮复用评分页 rs-* */
.pt-wrap { padding: 4px 2px 40px; }
.pt-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.pt-sel { height: 34px; width: auto; min-width: 120px; }
.pt-pf { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 0 5px; line-height: 16px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.pt-pf-mt { background: #fff3d6; color: #a15c00; }
.pt-pf-tb { background: #e6f0ff; color: #1668dc; }
.pt-grid td { padding: 8px 10px; }
.pt-row { cursor: pointer; }
.pt-ok { color: #12a150; font-weight: 700; }
.pt-na { color: var(--muted, #c0c6d0); }
.pt-dot { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.pt-dot.p0 { background: #f04438; }
.pt-dot.p1 { background: #f79009; }
.pt-iss { white-space: normal; min-width: 220px; max-width: 420px; }
.pt-chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; margin: 2px 4px 2px 0; line-height: 18px; }
.pt-chip.p0 { background: #fde7e6; color: #c0362c; }
.pt-chip.p1 { background: #fff0db; color: #b45309; }
.pt-lv { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 5px; line-height: 18px; color: #fff; }
.pt-lv.p0 { background: #f04438; } .pt-lv.p1 { background: #f79009; } .pt-lv.p2 { background: #98a2b3; }
.pt-wrapc { white-space: normal; min-width: 200px; max-width: 360px; line-height: 1.5; }
.pt-diag td { vertical-align: top; }

.pt-is, .pt-todo { border: 1px solid var(--line, #eceff3); border-left-width: 4px; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: var(--card, #fff); }
.pt-is.p0, .pt-todo.p0 { border-left-color: #f04438; } .pt-is.p1, .pt-todo.p1 { border-left-color: #f79009; } .pt-is.p2, .pt-todo.p2 { border-left-color: #98a2b3; }
.pt-is-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-is-d { font-size: 13px; color: var(--muted, #667085); margin-top: 5px; }
.pt-is-a { font-size: 13px; margin-top: 4px; }
.pt-meta { margin-left: auto; font-size: 12px; color: var(--muted, #8a94a6); }
.pt-note { font-size: 12.5px; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--hover, #f5f7fa); }
.pt-acts { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.pt-todos { max-width: 980px; }

/* 运营记录 */
.op-pick { position: relative; }
.op-sug { position: absolute; top: 38px; left: 0; right: 0; z-index: 20; max-height: 360px; overflow: auto; background: var(--card, #fff);
  border: 1px solid var(--line, #e3e7ee); border-radius: 10px; box-shadow: 0 8px 24px #0000001f; }
.op-sug-i { padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.op-sug-i:hover { background: var(--hover, #f5f7fa); }
.op-sug-i .muted { margin-left: auto; font-size: 12px; }
.op-head { display: flex; align-items: center; margin: 4px 2px 12px; }
.op-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.op-tk { border: 1px solid var(--line, #eceff3); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; background: linear-gradient(135deg, #f0f9ff, #f6fef9); }
.op-tk-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.op-tk-h .btn { margin-left: auto; }
.op-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.op-form .inp { height: 36px; width: auto; }
.op-form #opContent { flex: 1; min-width: 240px; }
.op-list { max-width: 1040px; }
.op-ev { border: 1px solid var(--line, #eceff3); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: var(--card, #fff); }
.op-ev.auto { background: var(--hover, #f8fafc); }
.op-ev-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-day { font-weight: 700; font-variant-numeric: tabular-nums; }
.op-type { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #e7f6f4; color: #0e7a6e; font-weight: 600; }
.op-ops { margin-left: auto; display: flex; gap: 4px; }
.op-ev-c { margin: 6px 0 4px; font-size: 14px; }
.op-eff { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted, #667085); }
.op-v b { color: var(--text, #1d2939); }

@media (max-width: 720px) {
  .pt-meta { margin-left: 0; width: 100%; }
  .op-ops { margin-left: 0; }
}
@media (prefers-color-scheme: dark) {
  .pt-is, .pt-todo, .op-ev, .op-sug { background: #1a1d24; border-color: #2a2f3a; }
  .op-ev.auto, .pt-note { background: #20242d; }
  .op-tk { background: linear-gradient(135deg, #14202b, #15241d); border-color: #2a2f3a; }
  .pt-chip.p0 { background: #3a1c1c; color: #ff9b94; } .pt-chip.p1 { background: #3a2a14; color: #ffc073; }
  .pt-pf-mt { background: #3a2c10; color: #ffbe55; } .pt-pf-tb { background: #13284a; color: #7cb2ff; }
  .op-type { background: #123a35; color: #6fd6c7; }
  .op-v b { color: #e6e9ef; }
}

/* 巡店「评分」列：评价分按档位上色（2026-11-24） */
.pt-rt { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.pt-rt + .pt-dot { margin-left: 4px; transform: scale(.8); }
.pt-rt-low { color: #d92d20; background: rgba(217, 45, 32, .1); }
.pt-rt-pass { color: #dc6803; background: rgba(247, 144, 9, .12); }
.pt-rt-ok { color: #475467; background: rgba(102, 112, 133, .1); }
.pt-rt-good { color: #0e9384; background: rgba(14, 147, 132, .1); }
.pt-rt-best { color: #067647; background: rgba(18, 183, 106, .14); }

/* 变更记录页签的分节标题（2026-11-26） */
.pt-sec { font-weight: 600; margin: 18px 0 8px; font-size: 15px; }
.pt-sec .muted { font-weight: 400; font-size: 13px; }

/* 表头「负责人」筛选 */
.rs-table th.pt-owth { cursor: pointer; user-select: none; white-space: nowrap; }
.rs-table th.pt-owth:hover { color: var(--text, #1f2937); }
.rs-table th.pt-owth.on { color: #15874a; }
.pt-owcar { font-size: 10px; margin-left: 4px; opacity: .7; }
.pt-owpop { position: fixed; z-index: 1000; min-width: 160px; max-height: 360px; overflow: auto; padding: 6px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, #eceff3); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.pt-owpop button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: inherit; cursor: pointer; text-align: left; }
.pt-owpop button:hover { background: var(--hover, #f5f7fa); }
.pt-owpop button.on { background: #e8f5ee; color: #15874a; font-weight: 600; }
.pt-owpop em { font-style: normal; font-size: 12px; color: var(--muted, #8a94a6); }
@media (prefers-color-scheme: dark) { .pt-owpop { background: #1a1d24; border-color: #242a33; } .pt-owpop button.on { background: #173a26; } }
