/* ============================================================
   Decision Buttons v1 —— 决策模块优先级徽章 + 历史决策按钮
   优先级分级配色（紧急红/重要橙/一般蓝/补货紫）
   历史决策按钮：胶囊化+发光+图标对齐
   ============================================================ */

/* ---- 1. 优先级徽章：分级配色 + 左侧色条 + 微光 ---- */
#page-dashboard .prio-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  margin-left: 8px;
  letter-spacing: .3px;
  border-left: 2.5px solid;
  line-height: 1.2;
}
/* 紧急：红 */
#page-dashboard .prio-badge.prio-urgent {
  background: rgba(239, 68, 68, .13);
  color: #f87171;
  border-left-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, .18);
}
/* 重要：橙 */
#page-dashboard .prio-badge.prio-high {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-left-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, .15);
}
/* 一般：蓝 */
#page-dashboard .prio-badge.prio-low {
  background: rgba(59, 130, 246, .12);
  color: #60a5fa;
  border-left-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, .15);
}
/* 补货建议：紫 */
#page-dashboard .prio-badge.prio-restock {
  background: rgba(168, 85, 247, .13);
  color: #c084fc;
  border-left-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, .15);
}

/* ---- 2. 决策卡头部：标题与徽章对齐居中 ---- */
#page-dashboard .decision .dec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
#page-dashboard .decision .dec-head {
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* ---- 3. 历史决策按钮：胶囊 + 图标 + 发光 ---- */
#page-dashboard .decisions-card .config-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(99, 102, 241, .14));
  border: 1px solid rgba(139, 92, 246, .4);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: .2px;
  box-shadow: 0 0 10px rgba(139, 92, 246, .12);
}
#page-dashboard .decisions-card .config-btn:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, .30), rgba(99, 102, 241, .24));
  border-color: rgba(167, 139, 250, .65);
  color: #e9d5ff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(139, 92, 246, .30);
}
#page-dashboard .decisions-card .config-btn:active {
  transform: scale(.96);
}

/* ---- 4. 决策计数徽章：与按钮呼应 ---- */
#page-dashboard .decisions-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 6px;
}

/* ---- 5. 无障碍降级 ---- */
@media (prefers-reduced-motion: reduce) {
  #page-dashboard .decisions-card .config-btn,
  #page-dashboard .prio-badge { transition: none !important; }
}
