/* store-ops.css — 「店铺运营」数据面板样式（配合 style.css / gross.css / shell.css） */

.ops-content { display: flex; flex-direction: column; gap: 16px; }
.ops-view { display: flex; flex-direction: column; gap: 16px; }
.ops-view > .card { margin: 0; }

.ops-section-title {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700; color: var(--text-primary, #1d1d1f); margin-bottom: 14px;
}
.ops-section-title .sp-sub { font-weight: 400; }

/* KPI 卡 */
.ops-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ops-kpi {
  border: 1px solid var(--border-strong, #e5e7eb); border-radius: 12px;
  background: var(--bg-primary, #fff); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.ops-kpi-label { font-size: 12.5px; color: var(--text-secondary, #6b7280); font-weight: 600; }
.ops-kpi-value { font-size: 24px; font-weight: 700; color: var(--text-primary, #1d1d1f); letter-spacing: -0.02em; }
.ops-kpi-value.ops-kpi-warn { color: #b45309; }
.ops-kpi-value.ops-kpi-bad { color: #b91c1c; }
.ops-kpi-sub { font-size: 12px; color: var(--text-light, #9ca3af); }

/* 条形分布 */
.ops-bar-list { display: flex; flex-direction: column; gap: 8px; }
.ops-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ops-bar-label { width: 170px; min-width: 170px; color: var(--text-secondary, #4b5563); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-bar-track { flex: 1; height: 10px; border-radius: 6px; background: var(--bg-muted, #f3f4f6); overflow: hidden; }
.ops-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.ops-bar-val { width: 72px; min-width: 72px; text-align: right; color: var(--text-primary, #1d1d1f); font-variant-numeric: tabular-nums; }

/* 口径说明 */
.ops-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-muted, #f9fafb); border: 1px solid var(--border-strong, #e5e7eb);
  border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-secondary, #4b5563);
}
.ops-note-ic { color: #b45309; flex: none; width: 16px; height: 16px; margin-top: 1px; }
.ops-note-ic svg { width: 16px; height: 16px; }

/* 预警列表 */
.ops-alert-list { display: flex; flex-direction: column; gap: 8px; }
.ops-alert-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border-strong, #e5e7eb); border-radius: 10px; font-size: 13px;
}
.ops-alert-name { font-weight: 600; color: var(--text-primary, #1d1d1f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-alert-meta { margin-left: auto; color: var(--text-secondary, #6b7280); font-size: 12px; white-space: nowrap; }

/* 状态 chips */
.ops-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 空态门（升级/对接引导） */
.ops-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.ops-gate-ic { color: #0071e3; width: 44px; height: 44px; }
.ops-gate-ic svg { width: 44px; height: 44px; }
.ops-gate .eb-empty-title { font-size: 18px; }
.ops-gate .eb-empty-desc { max-width: 460px; }

/* 表格辅助 */
.ops-mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.ops-neg { color: #b91c1c; }
.ops-empty-td { color: var(--text-light, #9ca3af); text-align: center; padding: 22px 8px; }
