/* ============================================================
 * 悦点进销存 Web 版 · 消息中心（FR-10）
 * 列表条目 / 类型 chips / 顶栏铃铛红点
 * ============================================================ */

/* ---------- 顶栏铃铛 ---------- */
.notice-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.notice-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger, #f53f3f);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-style: normal;
  text-align: center;
  font-weight: 600;
}

/* ---------- 20261113i：今日待办（从工作台迁入，点消息中心才加载） ---------- */
.msg-todos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.msg-todo {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.msg-todo:hover { border-color: rgba(22, 119, 255, .45); box-shadow: 0 6px 18px rgba(29, 33, 41, .08); }
.msg-todo.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(22, 119, 255, .12); }
.msg-todo .mt-icon {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #1677ff; color: #fff;
}
.msg-todo .mt-icon svg { width: 15px; height: 15px; }
.msg-todo .mt-icon.t-orange { background: #ff8f1f; }
.msg-todo .mt-icon.t-red { background: #ff3141; }
.msg-todo .mt-icon.t-purple { background: #7b61ff; }
.msg-todo .mt-icon.t-gray { background: #86909c; }
.msg-todo .mt-label { font-size: 13.5px; color: var(--t2); }
.msg-todo .mt-num { margin-left: auto; font-size: 18px; font-weight: 700; color: var(--t1); }
.msg-todo .mt-num.hot { color: var(--danger); }

/* ---------- 类型筛选 chips ---------- */
.msg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.msg-chip {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--t2, #4e5969);
  background: var(--bg2, #f7f8fa);
  border: 1px solid rgba(29, 33, 41, 0.06);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.msg-chip b { color: var(--danger, #f53f3f); }
.msg-chip.active { background: var(--brand, #1677ff); color: #fff; border-color: transparent; }
.msg-chip.active b { color: #fff; }

/* ---------- 汇总文案 ---------- */
.msg-sum { color: var(--t3, #86909c); font-size: 13px; margin-left: 8px; }

/* ---------- 消息列表 ---------- */
.msg-list { padding: 4px 0; }
.msg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(29, 33, 41, 0.05);
  cursor: pointer;
}
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: var(--bg2, #f7f8fa); }
/* 未读：整行淡底 + 左侧竖条 */
.msg-item.unread { background: rgba(22, 119, 255, 0.04); box-shadow: inset 3px 0 0 var(--brand, #1677ff); }
.msg-item.unread:hover { background: rgba(22, 119, 255, 0.08); }

.msg-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.msg-i-audit   { background: rgba(22, 119, 255, 0.1);  color: #1677ff; }
.msg-i-stock   { background: rgba(255, 125, 0, 0.12);  color: #ff7d00; }
.msg-i-due     { background: rgba(245, 63, 63, 0.1);   color: #f53f3f; }
.msg-i-version { background: rgba(0, 180, 42, 0.1);    color: #00b42a; }

.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 14px; color: var(--t1, #1d2129); display: flex; align-items: center; gap: 6px; }
.msg-item.unread .msg-title { font-weight: 600; }
.msg-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger, #f53f3f);
}
.msg-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--t3, #86909c);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.msg-time { flex-shrink: 0; font-size: 12px; color: var(--t3, #86909c); }

/* 20261111m：从消息中心跳来的模块 tab，顶部最多一个「← 返回消息中心」快捷方式
   （原「来自消息中心」定位横幅已按用户口径撤掉）。 */
.msg-back-bar { margin: 0 0 10px; }
.msg-back-link {
  font-size: 13px; color: #1677ff; text-decoration: none; cursor: pointer;
}
.msg-back-link:hover { text-decoration: underline; }
