* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fb; color: #1f2d3d; font-size: 14px; }

/* 通用按钮 */
.btn { display: inline-block; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; padding: 8px 16px; }
.btn-primary { background: #4A6CF7; color: #fff; }
.btn-primary:hover { background: #3b5bd9; }
.btn-ghost { background: transparent; color: #8a95a6; border: 1px solid #dfe3ea; }
.btn-ghost:hover { color: #4A6CF7; border-color: #4A6CF7; }
.btn-danger { background: #f56c6c; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-danger-ghost { background: transparent; color: #f56c6c; border: 1px solid #f56c6c; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 登录 */
.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; background: linear-gradient(135deg,#4A6CF7 0%,#6a8bff 60%,#8fb1ff 100%); }
.login-card { width: 380px; background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-logo { font-size: 28px; font-weight: 700; color: #4A6CF7; text-align: center; }
.login-sub { text-align: center; color: #8a95a6; margin: 8px 0 28px; font-size: 13px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; margin-bottom: 6px; color: #5a6b8c; font-size: 13px; }
.login-field input { width: 100%; border: 1px solid #dfe3ea; border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.login-field input:focus { outline: none; border-color: #4A6CF7; }
.login-err { color: #f56c6c; font-size: 13px; min-height: 20px; margin-bottom: 4px; }

/* 布局 */
#app { display: flex; height: 100vh; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e7eaf0; display: flex; flex-direction: column; }
.brand { padding: 24px 20px 16px; border-bottom: 1px solid #eef1f6; }
.brand-name { font-size: 20px; font-weight: 700; color: #4A6CF7; }
.brand-sub { font-size: 12px; color: #8a95a6; }
.menu { flex: 1; padding: 12px 8px; overflow-y: auto; }
.menu-item { padding: 10px 14px; border-radius: 6px; cursor: pointer; color: #5a6b8c; margin-bottom: 2px; }
.menu-item:hover { background: #f0f4ff; color: #4A6CF7; }
.menu-item.active { background: #4A6CF7; color: #fff; }
.side-foot { padding: 12px; border-top: 1px solid #eef1f6; }
.who { font-size: 13px; color: #5a6b8c; margin-bottom: 8px; text-align: center; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e7eaf0; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.t-title { font-size: 18px; font-weight: 600; }
.t-right { display: flex; align-items: center; gap: 8px; }
.t-link { color: #4A6CF7; cursor: pointer; text-decoration: none; font-size: 13px; }
.t-link.sep { color: #c3cbd8; cursor: default; }
.t-user { color: #5a6b8c; font-size: 13px; }
.content { flex: 1; padding: 20px 24px; overflow-y: auto; }

/* 卡片/栅格 */
.card { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(16,32,57,.08); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.cell { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(16,32,57,.06); }
.cell .cn { font-size: 26px; font-weight: 700; color: #1f2d3d; }
.cell .cl { font-size: 12px; color: #8a95a6; margin-top: 4px; }
.cell.primary .cn { color: #4A6CF7; }
.cell.warn .cn { color: #f5a623; }
.cell.danger .cn { color: #f56c6c; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f6; }
.table th { background: #f7f8fc; color: #5a6b8c; font-weight: 600; }
.table tr:hover td { background: #fafbff; }

/* 人事绩效表 */
.hr-table th { font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; }
.hr-table td { vertical-align: middle; }
.hr-table tr:hover td { background: #f4f8ff; }
.hr-table .kpi-cell { min-width: 130px; }
.kpi-bar { height: 6px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.kpi-fill { height: 100%; background: linear-gradient(90deg,#40a9ff,#69c0ff); border-radius: 4px; transition: width .3s; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag.blue { background: #eaf0ff; color: #4A6CF7; }
.tag.green { background: #e6f7ed; color: #27ae60; }
.tag.orange { background: #fff4e6; color: #f5a623; }
.tag.red { background: #fdeaea; color: #f56c6c; }
.tag.gray { background: #f0f2f6; color: #8a95a6; }
.tag.purple { background: #f0eaff; color: #7c3aed; }
.tag.cyan { background: #e6faff; color: #0ea5b7; }

/* 表单 */
.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.form-item { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.form-item label { font-size: 12px; color: #5a6b8c; margin-bottom: 4px; }
.form-item input, .form-item select, .form-item textarea { border: 1px solid #dfe3ea; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.form-item input:focus, .form-item select:focus { outline: none; border-color: #4A6CF7; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }

/* 漏斗 */
.funnel-row { display: flex; align-items: center; margin-bottom: 10px; font-size: 13px; }
.funnel-label { width: 70px; color: #5a6b8c; }
.funnel-bar-wrap { flex: 1; background: #f0f2f6; border-radius: 4px; height: 26px; overflow: hidden; }
.funnel-bar { height: 100%; background: linear-gradient(90deg,#4A6CF7,#6a8bff); color: #fff; line-height: 26px; font-size: 12px; padding: 0 8px; text-align: right; }

/* 统计条 */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-chip { background: #fff; border-radius: 8px; padding: 10px 16px; box-shadow: 0 1px 3px rgba(16,32,57,.05); }
.stat-chip .k { font-size: 12px; color: #8a95a6; }
.stat-chip .v { font-size: 18px; font-weight: 600; }
.stat-chip .v.reach { color: #27ae60; }
.stat-chip .v.unreach { color: #f5a623; }

.loading { text-align: center; color: #8a95a6; padding: 80px 0; }
.empty { text-align: center; color: #a8b2c2; padding: 40px 0; }
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(20,30,48,.88); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; z-index: 999; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.txt-money { font-variant-numeric: tabular-nums; }
.mt8 { margin-top: 8px; }
.gap { margin-left: 8px; }
.text-danger { color: #f56c6c; }
.text-success { color: #27ae60; }

/* OKR 模块 */
.okr-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 1100px) { .okr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .okr-grid { grid-template-columns: repeat(2, 1fr); } }
.okr-cell { background: #f8fafd; border: 1px solid #e7eaf0; border-radius: 8px; padding: 12px; }
.oc-k { color: #8a95a6; font-size: 12px; margin-bottom: 6px; }
.oc-v { font-size: 18px; font-weight: 600; color: #1f2d3d; }
.oc-t { font-size: 12px; color: #8a95a6; font-weight: 400; margin-left: 4px; }
.oc-bar { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.oc-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.oc-pct { font-size: 12px; color: #8a95a6; text-align: right; }
.okr-cell .text-success { color: #27ae60; }
.okr-cell .text-danger { color: #f56c6c; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 24px 0; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal-content { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.2); width: 92%; max-width: 520px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e7eaf0; flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #e7eaf0; flex-shrink: 0; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin: 2px 4px 2px 0; }
.tag-primary { background: #e8eeff; color: #4A6CF7; border: 1px solid #c5d4ff; }
.tag-ghost { background: #f4f6fb; color: #8a95a6; border: 1px solid #dfe3ea; }
.text-muted { color: #8a95a6; }

/* 表格多岗身份列：竖排显示，完整不截断 */
td.pos-tags { max-width: 170px; }
td.pos-tags .tag { display: block; width: fit-content; max-width: 160px; margin: 2px 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td { vertical-align: middle; }
/* 身份标签删除按钮 */
.tag .tag-x { display: inline-block; margin-left: 5px; color: #c0392b; font-weight: bold; cursor: pointer; text-decoration: none; }

/* OKR 部门 TAB */
.okr-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e7eaf0; margin-bottom: 16px; flex-wrap: wrap; }
.okr-tab { padding: 8px 18px; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 14px; color: #5b6b80; cursor: pointer; transition: .2s; }
.okr-tab:hover { color: #1f2d3d; background: #f4f6fb; }
.okr-tab.active { color: #4A6CF7; border-bottom-color: #4A6CF7; font-weight: 600; }
.okr-dim-table td { vertical-align: middle; }
.okr-dim-table .cell-input { width: 100%; padding: 4px 6px; border: 1px solid #dfe3ea; border-radius: 4px; font-size: 13px; background: #fff; }
.okr-dim-table .cell-input:focus { border-color: #4A6CF7; outline: none; }
.tag .tag-x:hover { color: #e74c3c; background: rgba(231,76,60,.12); border-radius: 3px; padding: 0 3px; }

/* ============ 经营看板（丰富版） ============ */
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 16px; align-items: start; }
.dash-cols .card { margin-bottom: 0; }
.card .mt16 { margin-top: 16px; }
.kpi-note { font-size: 12px; color: #8a95a6; margin-top: 2px; }
.hbar { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 13px; }
.hb-l { width: 92px; flex: none; color: #5a6b8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { flex: 1; background: #f0f2f6; border-radius: 4px; height: 18px; overflow: hidden; }
.hb-f { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4A6CF7, #6a8bff); min-width: 2px; }
.hb-f.green { background: linear-gradient(90deg, #27ae60, #5ad38a); }
.hb-f.orange { background: linear-gradient(90deg, #f5a623, #ffc069); }
.hb-f.red { background: linear-gradient(90deg, #f56c6c, #ff9a9a); }
.hb-f.gray { background: #b8c2d0; }
.hb-v { width: 100px; flex: none; text-align: right; color: #1f2d3d; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-v small { color: #a8b2c2; font-weight: 400; margin-left: 2px; }
.kv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.kv-chip { background: #f7f8fc; border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 12px; min-width: 96px; }
.kv-chip .k { font-size: 11px; color: #8a95a6; }
.kv-chip .v { font-size: 16px; font-weight: 700; color: #1f2d3d; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kv-chip .v.success { color: #27ae60; }
.kv-chip .v.danger { color: #f56c6c; }
.kv-chip .v.warn { color: #f5a623; }
.kv-chip .v.primary { color: #4A6CF7; }
.trend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.fin-sum-line { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #eef1f6; }
.fin-sum-line:last-child { border-bottom: none; }
.fin-sum-line b { font-variant-numeric: tabular-nums; }
.sub-tip { font-size: 12px; color: #a8b2c2; margin: 0 0 8px; }

/* ===== 经营看板（精致化 2026-09） ===== */
.dash-kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dash-kpi .cell { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 16px 18px; }
.dash-kpi .cell .cn { font-size: 24px; line-height: 1.15; }
.dash-kpi .cell .cl { margin-top: 0; }
.dash-kpi .cell .kpi-note { font-size: 11px; color: #a8b2c2; margin-top: auto; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1280px) { .dash-kpi { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title .sub-tip { margin: 0; font-weight: 400; }

.dash-cols { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.dash-section { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eef1f6; }
.dash-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.dash-section .sub-tip { font-weight: 600; color: #5a6b8c; margin: 0 0 10px; font-size: 12px; letter-spacing: .5px; }
.dash-section .empty-inline { color: #a8b2c2; font-size: 12px; padding: 6px 0; }

.kv-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.kv-chip { padding: 10px 12px; min-width: 0; }
.kv-chip .k { font-size: 11px; }
.kv-chip .v { font-size: 18px; word-break: break-all; }
.kv-chip .v small { font-size: 11px; font-weight: 400; color: #a8b2c2; margin-left: 2px; }

.hbar { font-size: 13px; margin: 8px 0; }
.hb-l { width: 108px; font-size: 13px; }
.hb-v { width: 96px; }
.hb-v small { color: #a8b2c2; }

.funnel-row { align-items: center; }
.funnel-row .funnel-bar { text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel-row[data-stage="new"] .funnel-bar { background: linear-gradient(90deg, #4A6CF7, #7d97ff); }
.funnel-row[data-stage="follow"] .funnel-bar { background: linear-gradient(90deg, #23b3a6, #5ed5cb); }
.funnel-row[data-stage="intent"] .funnel-bar { background: linear-gradient(90deg, #8e6cf2, #b59bff); }
.funnel-row[data-stage="deal"] .funnel-bar { background: linear-gradient(90deg, #27ae60, #5ad38a); }
.funnel-row[data-stage="lost"] .funnel-bar { background: linear-gradient(90deg, #b8c2d0, #d5dce5); }
.funnel-row .funnel-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.funnel-row .funnel-label .num { font-weight: 600; color: #1f2d3d; }

.table thead th { padding: 11px 12px; font-size: 12px; letter-spacing: .3px; }
.table tbody td { padding: 10px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tag { margin: 3px 6px 3px 0; }

/* ===== 宽表右侧「操作」列冻结 =====
   订单类看板列多（10 列 / min-width 1680px），横向滚动时操作列会被推出屏幕，
   供应链每处理一单都要先滚到最右 → 把操作列钉在右侧，按钮始终可见。
   ⚠️ 粘性 td 必须有实底 background，否则横向滚动时下层单元格的文字会透出来。
   ⚠️ 分隔线只能用 box-shadow（表格布局下 td 的 border 不参与 sticky 绘制）。 */
.table th.col-sticky-r, .table td.col-sticky-r { position: sticky; right: 0; }
.table td.col-sticky-r { z-index: 2; background: #fff; box-shadow: inset 1px 0 0 #eef1f6; }
.table th.col-sticky-r { z-index: 3; background: #f7f8fc; box-shadow: inset 1px 0 0 #eef1f6; }
.table tr:hover td.col-sticky-r { background: #fafbff; }

.fin-sum-line { font-size: 13px; padding: 9px 0; }

/* ===== 订单专区（供应链发货） ===== */
.od-up .od-file { position: relative; display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed #a78bfa; color: #7c3aed; background: #faf7ff; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all .2s; }
.od-up .od-file:hover { background: #f3ebff; border-color: #7c3aed; }
.od-up .od-file input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.od-up .od-file::before { content: '📎'; }
.od-up-st { margin-left: 8px; font-size: 12px; color: #27ae60; font-weight: 600; }
.od-link { color: #7c3aed; text-decoration: none; font-weight: 600; }
.od-link:hover { text-decoration: underline; }

/* ===== 门店运营 V2（admin 健康总览） ===== */
.modal.modal-wide .modal-content { max-width: 880px; }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #f6f4ff; border: 1px solid #e4dcff; border-radius: 10px; padding: 14px 16px; text-align: center; }
.stat-card b { display: block; font-size: 26px; color: #6d28d9; }
.stat-card span { font-size: 12px; color: #888; }
.st-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.st-tag.st-ok { background: #dcfce7; color: #15803d; }
.st-tag.st-warn { background: #fef3c7; color: #b45309; }
.st-tag.st-bad { background: #ffe4e6; color: #be123c; }
.st-tag.st-muted { background: #eee; color: #888; }
.st-hd { display: flex; align-items: center; gap: 18px; margin: 6px 0 12px; }
.st-num { font-size: 44px; font-weight: 800; color: #6d28d9; line-height: 1; }
.st-num small { font-size: 14px; }
.st-meta { color: #888; font-size: 12px; line-height: 1.7; }
.st-risk { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.st-risk.ok { background: #dcfce7; color: #15803d; }
.st-risk.warn { background: #fef3c7; color: #b45309; }
.st-risk.bad { background: #ffe4e6; color: #be123c; }
.st-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.st-chip { padding: 3px 12px; border-radius: 999px; background: #f1f1f6; color: #999; font-size: 12px; }
.st-chip.on { background: #ede9fe; color: #6d28d9; font-weight: 600; }
.st-warns { background: #fff1f2; border: 1px solid #fecdd3; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.st-warn-item { color: #be123c; font-size: 13px; padding: 2px 0; }
.st-ok-txt { color: #15803d; font-size: 13px; padding: 2px 0; }
.st-sec { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: #4c1d95; border-bottom: 2px solid #ede9fe; padding-bottom: 6px; }
.st-req { font-size: 11px; color: #e11d48; border: 1px solid #fecdd3; border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.st-req.opt { color: #999; border-color: #ddd; }
.st-doc-on td { background: #f0fdf4; }
.st-link { color: #7c3aed; }
.sub-tip { color: #aaa; font-size: 12px; }
.st-tl { display: flex; gap: 12px; padding: 8px 0; border-left: 2px solid #ede9fe; margin-left: 6px; }
.st-tl.warn { border-left-color: #f59e0b; }
.st-tl.bad { border-left-color: #f43f5e; }
.st-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; margin: 6px 0 0 2px; flex-shrink: 0; }
.st-tl.warn .st-tl-dot { background: #f59e0b; }
.st-tl.bad .st-tl-dot { background: #f43f5e; }
.st-tl-body { flex: 1; }
.st-tt { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #ede9fe; color: #6d28d9; font-size: 12px; }
.st-tl-c { color: #333; font-size: 13px; margin-top: 4px; line-height: 1.6; }
.st-tl-n { color: #0891b2; font-size: 12px; margin-top: 4px; }

/* ============ 订单专区 KPI 卡片矩阵 ============ */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 1280px) { .kpi-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .kpi-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .kpi-cards { grid-template-columns: 1fr; } }
.kpi-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px 14px;
  box-shadow: 0 2px 8px rgba(16,32,57,.06);
  border: 1px solid #eef1f6;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,32,57,.10); }
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--kc, #cbd5e1);
}
.kpi-card .kc-icon {
  position: absolute;
  right: 14px; top: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: var(--kc-bg, #f1f5f9);
  color: var(--kc, #64748b);
}
.kpi-card .kc-k {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: .2px;
}
.kpi-card .kc-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 6px;
}
.kpi-card .kc-v {
  font-size: 28px;
  font-weight: 700;
  color: #1f2d3d;
  line-height: 1.1;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.kpi-card .kc-v.zero { color: #cbd5e1; }
.kpi-card .kc-foot {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  display: flex; align-items: center; gap: 4px;
}
.kpi-card .kc-foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--kc, #cbd5e1);
}
.kpi-card .kc-foot .dot.pulse {
  box-shadow: 0 0 0 0 var(--kc, #cbd5e1);
  animation: kc-pulse 1.6s infinite;
}
@keyframes kc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,166,35,.55); }
  70% { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
/* 状态色板 */
.kpi-card.kc-sku     { --kc: #64748b; --kc-bg: #f1f5f9; }
.kpi-card.kc-low     { --kc: #ef4444; --kc-bg: #fee2e2; }
.kpi-card.kc-pending { --kc: #f59e0b; --kc-bg: #fef3c7; }
.kpi-card.kc-receipt { --kc: #7c3aed; --kc-bg: #ede9fe; }
.kpi-card.kc-tolog   { --kc: #2563eb; --kc-bg: #dbeafe; }
.kpi-card.kc-shipping{ --kc: #06b6d4; --kc-bg: #cffafe; }
.kpi-card.kc-orders  { --kc: #10b981; --kc-bg: #d1fae5; }
.kpi-card.kc-total   { --kc: #4f46e5; --kc-bg: #e0e7ff; }

/* ============ 门店运营 TAB + 食亨分账 ============ */
.vtab { display: flex; gap: 10px; margin-bottom: 16px; border-bottom: 2px solid #eef1f6; padding-bottom: 10px; }
.vtab-btn { background: #fff; border: 1px solid #e2e6ee; color: #5a6b8c; border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: pointer; transition: all .18s; }
.vtab-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.vtab-btn.on { background: linear-gradient(135deg, #7c3aed, #6a5cf7); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(124,58,237,.25); }
/* 经营看板 · Tab 面板显隐 */
.dash-panel { display: none; }
.dash-panel.on { display: block; }
.sh-pre { background: #0f172a; color: #d6e0f5; border-radius: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.6; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-all; }

/* ============ 门店外卖经营日报 · 数据看板 ============ */
.ops-grp { margin-bottom: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; }
.ops-grp-t { font-size: 13px; font-weight: 500; color: #5a6b8c; margin-bottom: 8px; letter-spacing: .3px; }
.ops-grp .form-item input { width: 120px; }
.form-item select.input, .modal select, .form-item select { padding: 8px 10px; border: 1px solid #e2e6ee; border-radius: 8px; font-size: 13px; background: #fff; color: #1e293b; min-width: 150px; }
.modal textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #e2e6ee; border-radius: 8px; font-size: 12px; line-height: 1.5; font-family: inherit; resize: vertical; }
.err-tip { color: #ef4444; font-size: 12px; }

/* ============ 发货单流程进度条 ============ */
.sstep { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.sstep .lbl { font-size: 11px; font-weight: 500; }
.sstep.done { background: #ecfdf5; color: #0f9d58; border: 1px solid #b7ebcf; }
.sstep.cur { background: #fff; color: #7c3aed; border: 1.5px solid #7c3aed; box-shadow: 0 0 0 2px rgba(124,58,237,.12); }
.sstep.todo { background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb; }
.od-state { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.od-state.pending { color: #b45309; background: #fef3c7; }
.od-state.approved { color: #7c3aed; background: #f3e8ff; }
.od-state.to_logistics { color: #1d4ed8; background: #dbeafe; }
.od-state.shipping { color: #0e7490; background: #cffafe; }
.od-state.delivered { color: #16a34a; background: #dcfce7; }
.od-state.cancelled, .od-state.rejected { color: #9ca3af; background: #f3f4f6; }
.od-flt { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 10px; }
.ord-chip { border: 1px solid #e4e7ee; background: #fff; color: #6b7280; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: all .15s; }
.ord-chip b { font-weight: 600; margin-left: 2px; }
.ord-chip:hover { border-color: #b8c2d4; color: #1f2d3d; }
.ord-chip.on { background: #4A6CF7; border-color: #4A6CF7; color: #fff; box-shadow: 0 1px 4px rgba(74,108,247,.25); }
.ord-chip.on b { color: #fff; }

/* 可搜索下拉（新建订货·发货客户） */
.csx { position: relative; min-width: 240px; }
.csx-in { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #dfe3ea; border-radius: 6px; font-size: 13px; background: #fff; color: #1f2d3d; }
.csx-in:focus { outline: none; border-color: #4A6CF7; box-shadow: 0 0 0 2px rgba(74,108,247,.15); }
.csx-drop { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #dfe3ea; border-radius: 8px; box-shadow: 0 8px 24px rgba(31,45,61,.12); }
.csx-item { padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f1f3f7; display: flex; gap: 8px; align-items: center; color: #1f2d3d; }
.csx-item:last-child { border-bottom: none; }
.csx-item:hover { background: #eef2ff; }
.csx-sub { color: #9aa3b2; font-size: 12px; }
.csx-empty { padding: 14px; text-align: center; color: #9aa3b2; font-size: 12px; }

/* 订货单证上传缩略图预览 */
.pur-thumb { height: 46px; width: auto; max-width: 130px; object-fit: cover; border-radius: 6px; cursor: zoom-in; vertical-align: middle; border: 1px solid #dfe3ea; box-shadow: 0 1px 3px rgba(31,45,61,.08); background: #fff; }
.pur-thumb:hover { border-color: #4A6CF7; }
/* 凭证多图：上传缩略图列表（可追加/删除） */
.od-up-lst { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; min-height: 6px; }
.od-up-th { position: relative; display: inline-flex; cursor: zoom-in; }
.od-up-th img { height: 52px; width: auto; max-width: 130px; object-fit: cover; border-radius: 6px; border: 1px solid #dfe3ea; box-shadow: 0 1px 3px rgba(31,45,61,.08); background: #fff; }
.od-up-th.ok img { border-color: #93c5fd; }
.od-up-del { position: absolute; top: -7px; right: -7px; width: 17px; height: 17px; background: #e11d48; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(225,29,72,.45); user-select: none; }
.od-up-del:hover { background: #be123c; }

/* 经营看板 · 经营业绩期间切换（本月/上月/全年） */
.prd-seg { display: inline-flex; border: 1px solid #e2e6ee; border-radius: 8px; overflow: hidden; background: #f8f9fc; }
.prd-seg .prd-btn { border: 0; background: transparent; color: #5a6b8c; font-size: 13px; padding: 6px 16px; cursor: pointer; transition: all .18s; border-right: 1px solid #e2e6ee; }
.prd-seg .prd-btn:last-child { border-right: 0; }
.prd-seg .prd-btn:hover { color: #7c3aed; }
.prd-seg .prd-btn.on { background: linear-gradient(135deg, #7c3aed, #6a5cf7); color: #fff; font-weight: 600; }
