/* AI 巡店 WB 版 基础样式（WB 主色调：洋红 #cb11ab / 深紫 #7a0dc4） */
.sidebar {
  background: linear-gradient(180deg, #2d0a4e 0%, #3a1053 100%);
  color: #e2e8f0;
  transition: width .2s;
}
.logo-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #cb11ab, #7a0dc4);
  color: #fff; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #c4b5fd; font-size: 14px; white-space: nowrap;
  transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item-active { background: #cb11ab; color: #fff; box-shadow: 0 4px 12px rgba(203,17,171,.45); }
.topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.kpi-value { font-size: 26px; font-weight: 700; color: #0f172a; }
.kpi-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 500;
}
.chip-critical { background: #fef2f2; color: #dc2626; }
.chip-warning  { background: #fffbeb; color: #d97706; }
.chip-info     { background: #eff6ff; color: #2563eb; }
.chip-ok       { background: #ecfdf5; color: #059669; }
.chip-muted    { background: #f1f5f9; color: #64748b; }
.table-row-hover:hover { background: #f8fafc; }
/* 环比变化徽章 */
.dyn-up   { color: #059669; }
.dyn-down { color: #dc2626; }
.dyn-zero { color: #94a3b8; }
/* 商品缩略图 */
.thumb {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; background: #f1f5f9;
  flex-shrink: 0;
}
.toast {
  background: #0f172a; color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: toast-in .25s ease;
}
.toast-error { background: #dc2626; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 可点击的分类筛选 chip(按钮去默认样式 + hover 反馈,照 OZON 版) */
.chip-btn { cursor: pointer; border: 0; font-family: inherit; transition: opacity .15s; }
.chip-btn:hover { opacity: .8; }
.chip-active { background: #4f46e5; color: #fff; }
/* 店铺徽章(all 模式行首展示:店铺名短标签,照 OZON 版) */
.store-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 3px 8px; border-radius: 999px;
  background: #eef2ff; color: #4f46e5;
  white-space: nowrap;
}
/* 多行截断(2行,预警消息等;Tailwind 同义类的兜底定义) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
