/* ============================================================
   通知中心抽屉 · 2026-07-07 · 复刻悟空 slide-detail-card-container
   ============================================================ */

/* 顶栏铃铛徽标：数字自适应 */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  font-family: -apple-system, "PingFang SC", sans-serif;
  box-shadow: 0 0 0 2px #fff;
}
.notif-badge.is-hidden { display: none !important; }

/* 抽屉外层：右侧半屏（对齐 detail-drawer：上避顶栏、下避分页条） */
.notif-drawer {
  position: fixed;
  top: var(--active-topbar-height, 56px);
  right: 0;
  bottom: var(--active-pager-height, 0px);
  width: calc(100vw * 2 / 3);
  min-width: 640px;
  background: #fff;
  box-shadow: -4px 0 18px rgba(9, 30, 66, 0.24);
  border-left: 1px solid #dfe1e6;
  z-index: 90;
  display: flex;
  flex-direction: column;
  animation: drawerIn .18s ease-out;
}
.notif-drawer.is-hidden {
  display: none !important;
}

/* 左边缘拖拽把手 —— 与详情抽屉同款 */
.notif-drawer-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 7;
  cursor: ew-resize;
  background: transparent;
}
.notif-drawer-resize-handle:hover,
.notif-drawer-resizing .notif-drawer-resize-handle {
  background: rgba(43, 108, 255, 0.18);
}
body.notif-drawer-resizing { user-select: none; }

/* 顶部条 */
.notif-drawer-topbar {
  position: relative;
  height: 52px;
  padding: 0 60px 0 24px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #eef1f5;
  flex-shrink: 0;
}
.notif-drawer-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2329;
}
/* 关闭按钮复用统一的 clue-drawer-close-float */

/* 抽屉主体：左菜单 + 右列表 */
.notif-drawer-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ============ 左侧菜单 ============ */
.notif-menus {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #eef1f5;
  background: #f8fafc;
  padding: 16px 0;
  overflow-y: auto;
}
.notif-menus-wrap { padding: 0 8px; }
.notif-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #4a5568;
  transition: background 0.15s;
  user-select: none;
  position: relative;
}
.notif-menu-item:hover { background: #eaf3ff; }
.notif-menu-item.is-active {
  background: #2b6cff;
  color: #fff;
}
.notif-menu-item.is-active .notif-menu-label { color: #fff; }
.notif-menu-icon { font-size: 16px; }
.notif-menu-label { flex: 1; }
.notif-menu-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-weight: 600;
}
.notif-menu-badge:empty { display: none; }
.notif-menu-item.is-active .notif-menu-badge { background: rgba(255,255,255,.28); }

/* ============ 右侧列表 ============ */
.notif-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* 顶部工具栏 */
.notif-main-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  flex-shrink: 0;
}
#notifBizTypeFilter {
  padding: 6px 10px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #fff;
  color: #1f2329;
  font-size: 13px;
  cursor: pointer;
  min-width: 140px;
}
.notif-filter-label {
  font-size: 13px;
  color: #4a5568;
  margin-left: 4px;
}
.notif-tab {
  padding: 5px 14px;
  border: 1px solid #d9dde3;
  background: #fff;
  color: #4a5568;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.notif-tab:hover { border-color: #2b6cff; color: #2b6cff; }
.notif-tab.is-active {
  background: #2b6cff;
  border-color: #2b6cff;
  color: #fff;
}

/* 更多菜单 */
.notif-more-wrap {
  position: relative;
  margin-left: auto;
}
.notif-more-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #4a5568;
  line-height: 1;
  padding: 0;
}
.notif-more-btn:hover { border-color: #2b6cff; color: #2b6cff; }
.notif-more-menu {
  position: absolute;
  top: 32px;
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 10;
  padding: 4px 0;
}
.notif-more-menu.is-hidden { display: none; }
.notif-more-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #1f2329;
}
.notif-more-menu button:hover { background: #f2f6fc; color: #2b6cff; }

/* 总数行 */
.notif-total-row {
  padding: 10px 20px;
  font-size: 12px;
  color: #86909c;
  border-bottom: 1px solid #eef1f5;
  background: #fbfcfd;
  flex-shrink: 0;
}
.notif-total-row span { color: #2b6cff; font-weight: 600; margin: 0 2px; }

/* 消息列表滚动区 */
.notif-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 0;
}
.notif-empty {
  padding: 80px 20px;
  text-align: center;
  color: #86909c;
  font-size: 14px;
}

/* ============ 消息卡片 ============ */
.notif-cell {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f6fc;
  background: #fff;
  transition: background 0.15s;
  position: relative;
}
.notif-cell:hover { background: #fafbfd; }
.notif-cell.is-unread { background: #f5f9ff; }
.notif-cell.is-unread:hover { background: #eef4ff; }

.notif-cell-hd {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #eef4ff;
  color: #2b6cff;
}
.notif-cell.is-type-approval .notif-cell-hd { background: #fff7e6; color: #fa8c16; }
.notif-cell.is-type-contract .notif-cell-hd { background: #eef4ff; color: #2b6cff; }
.notif-cell.is-type-payment .notif-cell-hd { background: #f6ffed; color: #52c41a; }
.notif-cell.is-type-customer .notif-cell-hd { background: #f9f0ff; color: #722ed1; }
.notif-cell.is-type-clue .notif-cell-hd { background: #fff2f0; color: #ff4d4f; }
.notif-cell.is-type-mention .notif-cell-hd { background: #fff1f0; color: #f5222d; }

.notif-cell-bd {
  flex: 1;
  min-width: 0;
}
.notif-cell-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2329;
  margin-bottom: 4px;
}
.notif-cell-des {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: break-word;
}
.notif-cell-des .click-content {
  color: #2b6cff;
  cursor: pointer;
  margin: 0 2px;
}
.notif-cell-des .click-content:hover { text-decoration: underline; }

/* brief 表格 */
.notif-brief {
  background: #f8fafc;
  border-radius: 4px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin-top: 6px;
}
.notif-brief-cell {
  display: flex;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.notif-brief-label {
  color: #86909c;
  flex-shrink: 0;
  min-width: 60px;
}
.notif-brief-value {
  color: #1f2329;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-brief-value.is-link {
  color: #2b6cff;
  cursor: pointer;
}
.notif-brief-value.is-link:hover { text-decoration: underline; }

/* 右侧：时间 + 操作 */
.notif-cell-ft {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 12px;
  color: #86909c;
  min-width: 60px;
}
.notif-cell-time { white-space: nowrap; }
.notif-cell-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  border: none;
  padding: 0;
  cursor: pointer;
}
.notif-unread-dot:hover { transform: scale(1.15); }
.notif-cell.is-read .notif-unread-dot { display: none; }

.notif-del-btn {
  background: none;
  border: none;
  color: #2b6cff;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.notif-del-btn:hover { color: #ff4d4f; text-decoration: underline; }

/* 抽屉遮罩层继承已有 .drawer-overlay */

/* ============================================================
   用户反馈中心抽屉 · 2026-08-31
   ============================================================ */
.feedback-drawer {
  position: fixed;
  top: var(--active-topbar-height, 56px);
  right: 0;
  bottom: var(--active-pager-height, 0px);
  width: calc(100vw * 2 / 3);
  min-width: 520px;
  background: #fff;
  box-shadow: -4px 0 18px rgba(9, 30, 66, 0.22);
  border-left: 1px solid #dfe1e6;
  border-radius: 14px 0 0 14px;
  z-index: 91;
  display: flex;
  flex-direction: column;
  animation: drawerIn .18s ease-out;
}
.feedback-drawer.is-hidden { display: none !important; }

.feedback-drawer-topbar {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  flex-shrink: 0;
}
.feedback-drawer-title {
  font-size: 15px; font-weight: 700; color: #172b4d;
}
.feedback-drawer-hint {
  flex: 1; font-size: 12px; color: #5e6c84; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.feedback-close { position: relative; }

.feedback-drawer-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px 0;
  border-bottom: 1px solid #eef1f5;
  flex-shrink: 0;
}
.fb-tab {
  border: none; background: none; cursor: pointer;
  padding: 8px 14px; font-size: 13px; color: #5e6c84;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
}
.fb-tab:hover { color: #172b4d; background: #f4f6f9; }
.fb-tab.is-active {
  color: #2b6cff; font-weight: 600; border-bottom-color: #2b6cff;
}

.feedback-drawer-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px;
  min-height: 0;
}

/* 提交表单 */
.fb-submit-wrap { max-width: 560px; }
.fb-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fb-label { width: 96px; font-size: 13px; color: #42526e; text-align: right; flex-shrink: 0; }
.fb-input { flex: 1; min-width: 0; }
.fb-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.fb-field-static { flex: 1; font-size: 13px; color: #172b4d; }
.fb-submit-btn { margin-left: 110px; }
.fb-note { margin: 4px 0 0 110px; font-size: 12px; color: #5e6c84; line-height: 1.6; }
.fb-note b { color: #2b6cff; }

.fb-type-btns { display: flex; gap: 10px; flex: 1; }
.fb-type-btn {
  border: 1px solid #d4d7dd; background: #fff;
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #42526e; transition: all .15s ease;
}
.fb-type-btn:hover { border-color: #2b6cff; color: #2b6cff; }
.fb-type-btn.is-active {
  background: #e9f2ff; border-color: #2b6cff; color: #2b6cff; font-weight: 600;
}

/* 列表 */
.fb-loading { padding: 40px; text-align: center; color: #5e6c84; }
.fb-empty { padding: 60px 20px; text-align: center; color: #8a94a6; line-height: 1.8; font-size: 13px; }
.fb-list-head {
  font-size: 13px; color: #5e6c84; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid #eef1f5;
}
.fb-card {
  border: 1px solid #eef1f5; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px; background: #fff;
  transition: box-shadow .15s ease;
}
.fb-card:hover { box-shadow: 0 2px 10px rgba(9, 30, 66, .06); }
.fb-card-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-type-icon { font-size: 16px; }
.fb-type-label { font-size: 13px; font-weight: 600; color: #172b4d; }
.fb-mod { font-size: 12px; color: #5e6c84; background: #f4f6f9; padding: 2px 8px; border-radius: 4px; }
.fb-aspect { font-size: 13px; color: #2b6cff; margin-bottom: 6px; }
.fb-desc { font-size: 13px; color: #172b4d; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.fb-meta { font-size: 12px; color: #8a94a6; display: flex; gap: 14px; flex-wrap: wrap; }
.fb-trigger { color: #c78a00; }
.fb-result {
  margin-top: 8px; font-size: 12px; color: #2da44e; background: #f0fbf3;
  padding: 6px 10px; border-radius: 6px;
}
.fb-item-actions { display: flex; gap: 10px; margin-top: 10px; }

/* 状态徽标 */
.fb-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.fb-s-pending { background: #fff7e6; color: #c78a00; }
.fb-s-accepted { background: #e9f2ff; color: #2b6cff; }
.fb-s-rejected { background: #fdecea; color: #e5534b; }
.fb-s-fixed { background: #f0fbf3; color: #2da44e; }
