.bm-pill { display:inline-block; padding:1px 5px; border-radius:3px; font-size:10px; font-weight:600; margin-right:2px; white-space:nowrap; }
.bm-pill.bm-dim { opacity:0.32; }
.bm-pill.bm-chat { background:rgba(99,102,241,0.2); color:#818cf8; }
.bm-pill.bm-drunk { background:rgba(244,114,182,0.2); color:#f472b6; }
.bm-pill.bm-touch { background:rgba(248,113,113,0.2); color:#f87171; }
.bm-pill.bm-char { background:rgba(52,211,153,0.2); color:#34d399; }
.bm-pill.bm-charimg { background:rgba(132,204,22,0.2); color:#bef264; }
.bm-pill.bm-charimg:hover { background:rgba(132,204,22,0.35); }
.bm-pill.bm-charready { background:rgba(16,185,129,0.2); color:#6ee7b7; }
.bm-pill.bm-charready:hover { background:rgba(16,185,129,0.35); }
.bm-pill.bm-skin { background:rgba(52,211,153,0.2); color:#34d399; }
.bm-pill.bm-video { background:rgba(251,191,36,0.2); color:#fbbf24; }
.bm-pill.bm-image { background:rgba(56,189,248,0.2); color:#38bdf8; }
.bm-pill.bm-coin { background:rgba(234,179,8,0.2); color:#facc15; }
.bm-pill.bm-vip { background:rgba(168,85,247,0.2); color:#c084fc; }
.bm-pill.bm-intimacy { background:rgba(239,68,68,0.2); color:#fca5a5; }
.bm-pill.bm-intimacy:hover { background:rgba(239,68,68,0.35); }
.bm-pill.bm-char:hover { background:rgba(52,211,153,0.35); }
.bm-pill.bm-video:hover { background:rgba(251,191,36,0.35); }
.bm-pill.bm-image:hover { background:rgba(56,189,248,0.35); }
.bm-pill.bm-vip:hover { background:rgba(168,85,247,0.35); }
.bm-pill.bm-sub { background:rgba(255,215,0,0.2); color:#ffd700; }
.bm-pill.bm-coinpack { background:rgba(251,191,36,0.18); color:#fcd34d; }
.bm-pill.bm-gift { background:rgba(244,114,182,0.2); color:#f472b6; }
.bm-pill.bm-dayAggregate { background:rgba(160,160,160,0.2); color:#aaa; }
.bm-day-marker { font-size:11px; color:#888; background:#1a1a2e; padding:4px 8px; border-radius:3px; display:inline-block; margin:8px 0 4px; }
.bm-day-clickable { cursor:pointer; user-select:none; }
.bm-day-clickable:hover { background:#22223e; color:#ccc; }
.bm-day-toggle { color:#666; font-size:10px; }
.bm-tl-row { display:flex; gap:6px; padding:5px 8px; font-size:11px; color:#ccc; align-items:center; border-radius:3px; }
.bm-tl-row-clickable { cursor:pointer; transition:background 0.12s; }
.bm-tl-row-clickable:hover { background:#1f1f33; color:#eee; }
.bm-tl-time { color:#666; width:42px; flex-shrink:0; font-variant-numeric:tabular-nums; }
.bm-tl-desc { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bm-tl-arrow { color:#4ea3ff; font-size:14px; flex-shrink:0; padding-right:4px; }

/* === 深色主题：scope 到 #dashboardTab_behavior 和 #dashboardTab_payments ===
   注意：选择器列表必须用 `selector1 X, selector2 X` 形式，不能写成 `selector1, selector2 X`
   （那样会把 selector1 当作完整规则单独应用） */

/* 容器主体 */
#dashboardTab_behavior,
#dashboardTab_payments {
  background: #0a0a0f;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: calc(100vh - 60px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -20px;
  padding: 0;
}

/* .container 还原原版 1200px 居中 */
#dashboardTab_behavior .container,
#dashboardTab_payments .container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
  background: transparent;
}

/* Scoped 通用按钮（避免与 analytics dashboard .btn-primary 冲突） */
#dashboardTab_behavior .btn,
#dashboardTab_payments .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: #fff; cursor: pointer; transition: opacity 0.2s;
}
#dashboardTab_behavior .btn:hover,
#dashboardTab_payments .btn:hover { opacity: 0.85; }
#dashboardTab_behavior .btn:disabled,
#dashboardTab_payments .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 表格深色主题 */
#dashboardTab_behavior table,
#dashboardTab_payments table {
  background: transparent; color: #e0e0e0;
}

/* 覆盖 analytics dashboard styles.css 全局浅色 thead/th/td */
#dashboardTab_behavior thead,
#dashboardTab_payments thead,
#dashboardTab_behavior thead th,
#dashboardTab_payments thead th {
  background: transparent !important;
  position: static;
}
#dashboardTab_behavior th,
#dashboardTab_payments th {
  color: #888 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px !important;
  border-bottom: 1px solid #333 !important;
  background: transparent !important;
}
#dashboardTab_behavior td,
#dashboardTab_payments td {
  padding: 8px !important;
  font-size: 13px !important;
  border-bottom: 1px solid #222 !important;
  background: transparent;
  color: inherit;
}
#dashboardTab_behavior table tr:hover td,
#dashboardTab_payments table tr:hover td {
  background: #1a1a2e !important;
}

/* 输入框与下拉深色 */
#dashboardTab_behavior input[type="text"],
#dashboardTab_payments input[type="text"],
#dashboardTab_behavior select,
#dashboardTab_payments select {
  background: #1a1a2e !important;
  color: #e0e0e0 !important;
  border: 1px solid #333 !important;
}

/* 链接颜色 */
#dashboardTab_behavior a,
#dashboardTab_payments a { color: #5bb8f5; }

/* 弹窗 z-index 覆盖 .admin-nav-bar (z-index:9999)
   原版 cm-chat-modal 是 z-index:500，在 analytics dashboard 内会被顶部 nav-bar 遮住 */
#cm-chat-modal { z-index: 10001 !important; }
