:root {
  --brand: #ff821e;
  --brand-active: #f46d00;
  --nav-bg: #303643;
  --text: #303133;
  --text-2: #606266;
  --text-3: #999;
  --placeholder: #c0c4cc;
  --border: #dcdfe6;
  --border-light: #ebeef5;
  --bg-page: #303643;
  --bg-strip: #f7f7f7;
  --bg-hover: #f5f7fa;
  --radius: 4px;
  --radius-sm: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ---------- 顶部导航 ---------- */
.topbar {
  height: 60px;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 142px;
  flex: 0 0 142px;
  color: #f1f1f1;
  font-size: 14px;
  cursor: pointer;
}

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa63d, #ff7a00);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark::after { content: none; }

.nav { display: flex; align-items: center; height: 60px; flex: 1; }

.nav-item {
  height: 60px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.nav-item:hover { color: var(--brand); }
.nav-item.active { color: var(--brand-active); }
.nav-item .caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .85;
  margin-top: 1px;
  transition: transform .2s;
}
.nav-item.open .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 60px; left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  padding: 6px 0;
  display: none;
  z-index: 120;
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown li {
  padding: 0 20px;
  height: 34px;
  line-height: 34px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-dropdown li:hover { background: var(--bg-hover); color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 22px; padding-left: 12px; }
.nav-icon {
  color: #cfd3da;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.nav-icon:hover { color: #fff; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-badge {
  position: absolute;
  top: -2px; right: -3px;
  width: 7px; height: 7px;
  background: #ff3b30;
  border-radius: 50%;
}

/* ---------- 页面容器 ---------- */
.page {
  margin: 15px 30px 30px;
  background: #fff;
  border-radius: var(--radius);
  min-height: calc(100vh - 105px);
  display: flex;
  flex-direction: column;
}

.page.compact { min-height: 0; flex: 0 0 auto; }
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 49px;
  flex: 0 0 49px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-title .help {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid #c8c9cc;
  color: #c8c9cc;
  font-size: 9px;
  display: grid;
  place-items: center;
  font-weight: 400;
  cursor: help;
}
.page-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.page-body { padding: 0 20px 20px; flex: 1; }

/* 客户列表顶部状态页签：可横向滚动，两侧圆形箭头 */
.tabs-bar { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; }
.status-tabs {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs .tab { font-size: 13px; color: var(--text-2); cursor: pointer; flex: none; }
.status-tabs .tab:hover { color: var(--brand); }
.status-tabs .tab.on { color: var(--brand); font-weight: 600; }
.tabs-arw {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tabs-arw:hover { color: var(--brand); border-color: var(--brand); }

/* 第二行：筛选快捷条
   原站结构：外层 div.flex.bg-whitesmoke（#f5f5f5 / 内边距 5px 10px / 圆角 8px）
   + 每个 span.item-border（1px #dcdfe6 / 白底 / margin-left:-2px 让相邻边框重叠）
   首尾各 4px 圆角 —— 视觉上是一条连体分段条，不是分离的胶囊 */
.filter-chips {
  display: flex; flex-wrap: wrap;
  padding: 5px 10px; margin-bottom: 10px;
  border-radius: 8px; background: #f5f5f5;
}
.filter-chips .chip {
  display: block;
  height: 31px; margin-left: -2px;
  border: 1px solid #dcdfe6; border-radius: 0;
  background: #fff; color: #303133;
  font-size: 14px; cursor: pointer; position: relative;
}
.filter-chips .chip:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.filter-chips .chip:last-child { border-radius: 0 4px 4px 0; }
.filter-chips .chip > .chip-in {
  display: flex; align-items: center;
  height: 29px; padding: 5px 10px; box-sizing: border-box;
  max-width: 100px; border-radius: inherit;
}
.filter-chips .chip .chip-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-chips .chip:hover { color: var(--brand); z-index: 1; }
.filter-chips .chip.on { color: var(--brand); border-color: var(--brand); z-index: 2; }
.filter-chips .chip.dragging { opacity: .45; }

/* chip 展开面板：原站 el-popover（padding 12 / 圆角 4 / 边框 #ebeef5 / 0 2px 12px 阴影）
   每行「名称 …… 计数」，计数右对齐灰色 */
.chip-pop {
  position: fixed; z-index: 3200;
  padding: 12px; min-width: 152px;
  background: #fff; border: 1px solid #ebeef5; border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  font-size: 14px; color: #303133;
}
.chip-pop .cp-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; height: 30px; min-width: 152px;
  cursor: pointer; white-space: nowrap;
}
.chip-pop .cp-row:hover { color: var(--brand); }
.chip-pop .cp-row.on { color: var(--brand); font-weight: 600; }
.chip-pop .cp-num { color: #909399; font-size: 14px; }
.chip-pop .cp-row.on .cp-num { color: var(--brand); }
.chip-pop .cp-sep { height: 1px; margin: 6px 0; background: #ebeef5; }
.chip-pop .cp-clear { color: #909399; }
.chip-pop .cp-clear:hover { color: var(--brand); }
.chip-pop .cp-clear .cp-num { font-size: 15px; line-height: 1; }

/* 筛选条下拉面板（与 chip 面板同一视觉体系，多选带确定/清除） */
.cf-pop {
  position: fixed; z-index: 3200;
  background: #fff; border: 1px solid #ebeef5; border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  font-size: 13px; color: #303133; padding: 6px 0;
}
.cf-pop .cf-search-w { padding: 4px 10px 6px; }
.cf-pop .cf-search {
  width: 100%; height: 26px; border: 1px solid #dcdfe6; border-radius: 3px;
  padding: 0 8px; font-size: 12px; outline: none; color: #303133;
}
.cf-pop .cf-search:focus { border-color: var(--brand); }
.cf-pop .cf-list { max-height: 260px; overflow: auto; padding: 2px 0; }
.cf-pop .cf-row {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px; cursor: pointer; white-space: nowrap;
  color: #303133;
}
.cf-pop .cf-row:hover { background: #f5f7fa; }
.cf-pop .cf-row input { width: 14px; height: 14px; accent-color: var(--brand); flex: 0 0 14px; }
.cf-pop .cf-row .cf-tx { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cf-pop .cf-row .cf-num { color: #909399; font-size: 12px; flex: 0 0 auto; }
.cf-pop .cf-row .cf-ck { visibility: hidden; color: var(--brand); font-weight: 700; flex: 0 0 12px; }
.cf-pop .cf-row.on { color: var(--brand); }
.cf-pop .cf-row.on .cf-ck { visibility: visible; }
.cf-pop .cf-empty { padding: 10px 12px; color: #909399; }
.cf-pop .cf-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #ebeef5; margin-top: 4px; padding: 7px 12px 2px;
}
.cf-pop .cf-clear { color: #909399; cursor: pointer; }
.cf-pop .cf-clear:hover { color: var(--brand); }
.cf-pop .cf-ok { color: var(--brand); cursor: pointer; font-weight: 600; }

/* 清除筛选：无筛选时灰、有筛选时橙，提醒"现在不是初始状态" */
.btn.on { color: var(--brand); border-color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.btn:hover { color: var(--brand); border-color: #fbc99f; background: #fff8f1; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-active); border-color: var(--brand-active); color: #fff; }
.btn-sm { height: 24px; padding: 0 8px; font-size: 12px; }
.btn-group { display: inline-flex; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 1px solid rgba(255,255,255,.45); padding: 0 6px; }
.btn-group .btn:not(.btn-primary):last-child { border-left-color: var(--border); }

/* ---------- 筛选条 ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 0 12px; }
.field {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
  color: var(--text-2);
  padding: 0 26px 0 10px;
  display: inline-flex;
  align-items: center;
  min-width: 92px;
  position: relative;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path d='M0 0h8L4 6z' fill='%23c0c4cc'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.field:hover { border-color: #f0b27a; }
.field.on { border-color: #ff7d1a; color: #ff7d1a; background: #fff7ef; }
.field[data-datefilter] { cursor: pointer; }
.list-meta { padding: 2px 0 8px; font-size: 12px; color: var(--text-3); }
.field.placeholder { color: var(--placeholder); }
.field-dots { min-width: 34px; justify-content: center; padding: 0; background-image: none; letter-spacing: 2px; color: var(--text-3); }
.search {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 12px;
  width: 190px;
  color: var(--text-2);
  outline: none;
}
.search::placeholder { color: var(--placeholder); }
.search:focus { border-color: var(--brand); }

.toolbar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.toolbar .right { margin-left: auto; }

/* ---------- 标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.pill.blue { background: #0052d9; }
.pill.green { background: #1a7526; }
.pill.orange { background: #a44904; }
.pill.red { background: #d54941; }
.pill.grey { background: #8b8f96; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  background: #fff2e8;
  border: 1px solid #ffd6b0;
  color: #d4650a;
}
.tag .x { margin-left: 4px; color: #d4650a; opacity: .6; cursor: pointer; }

.link { color: #0052d9; cursor: pointer; font-size: 12px; }
.link:hover { text-decoration: underline; }

/* ---------- 表格 ---------- */
.table-wrap { flex: 1; overflow: auto; border-top: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
table.t-cust { min-width: 1570px; }
table.t-follow { min-width: 1100px; }
table.t-bill { min-width: 1010px; }
thead th {
  background: #f5f7fa;
  color: var(--text-2);
  font-weight: 400;
  text-align: left;
  height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
tbody td {
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:hover td { background: #fafcff; }
tbody tr.total td { font-weight: 700; color: var(--text); background: #fafafa; }
.col-idx { width: 50px; text-align: center; color: var(--text-3); }
.row-dot {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
}
.op-cell { display: flex; gap: 8px; align-items: center; height: 32px; }
.op-cell .op-more { color: #0052d9; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }

/* 行操作下拉 */
.row-menu {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
  padding: 5px 0;
  z-index: 300;
  min-width: 96px;
}
.row-menu div { padding: 0 14px; height: 32px; line-height: 32px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.row-menu div:hover { background: var(--bg-hover); color: var(--brand); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; font-size: 12px; color: var(--text-2); }
.pager .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pager .size { height: 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px 0 8px; display: inline-flex; align-items: center; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path d='M0 0h8L4 6z' fill='%23c0c4cc'/></svg>") no-repeat right 8px center; }
.pager .pages { display: flex; gap: 4px; margin-left: 4px; }
.pager .pg {
  min-width: 24px; height: 24px;
  border-radius: 2px;
  display: grid; place-items: center;
  color: var(--text-2);
  cursor: pointer;
  padding: 0 4px;
}
.pager .pg:hover { color: var(--brand); }
.pager .pg.active { background: #409eff; color: #fff; }
.pager .pg.disabled { color: #d0d3d9; cursor: default; }
.pager .total { margin-left: 4px; }

/* ---------- 工作台 ---------- */
.ws-strip {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  padding: 5px 10px;
  height: 102px;
  align-items: center;
}
.ws-strip-item {
  width: 150px;
  height: 72px;
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 12px;
}
.ws-strip-item:hover { background: var(--bg-hover); }
.ws-strip-item svg { width: 28px; height: 28px; }

/* 工作台：浅灰底 + 白色卡片 */
.page.workspace { background: var(--bg-strip); }
.page.workspace .page-head { height: 49px; }
.page.workspace .card {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 198px;
  padding: 0 18px 12px;
}
.card.tall { min-height: 426px; }
.card-head {
  display: flex;
  align-items: center;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.card-head .ops { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.card-head .seg { display: flex; gap: 10px; font-size: 12px; font-weight: 400; }
.card-head .seg span { color: #409eff; cursor: pointer; }
.card-head .seg span.on { color: var(--brand); }
.card-head .more { color: #409eff; cursor: pointer; }

.metrics { display: flex; justify-content: space-around; padding: 10px 0 16px; text-align: center; }
.metric-label { font-size: 12px; color: var(--text-2); line-height: 1.5; max-width: 44px; }
.metric-value { font-size: 24px; font-weight: 700; color: var(--brand); margin: 6px 0 2px; }
.metric-delta { font-size: 12px; color: var(--brand); }

.list-rows { padding: 0 2px; }
.list-row {
  display: flex;
  align-items: center;
  height: 42px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-2);
}
.list-row:last-child { border-bottom: 0; }
.list-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .meta { color: var(--text-3); font-size: 12px; }

.empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 13px;
  min-height: 100px;
}

.funnel { padding: 6px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.funnel-step {
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}
.funnel-rate { font-size: 11px; color: var(--text-3); height: 14px; line-height: 14px; }

/* ---------- 日历 ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; }
.cal-title { font-size: 16px; color: var(--text); }
.cal-switch { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; }
.cal-switch button {
  width: 40px; height: 26px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 12px;
}
.cal-switch button.on { background: var(--brand); color: #fff; }
.cal-switch button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cal-switch button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.calendar { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head {
  text-align: center;
  height: 38px;
  line-height: 38px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.cal-head:last-child { border-right: 0; }
.cal-cell {
  min-height: 64px;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 8px;
  position: relative;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-day {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--text-2);
}
.cal-day.today { background: var(--brand); color: #fff; }
.cal-day.other { color: #d0d3d9; }
.cal-add {
  position: absolute;
  right: 8px; top: 8px;
  color: #b9bec7;
  font-size: 14px;
  cursor: pointer;
}
.cal-add:hover { color: var(--brand); }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  z-index: 200;
}
.mask.show { display: block; }
.dialog {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1210px;
  max-width: calc(100vw - 80px);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  z-index: 240;
  display: none;
  flex-direction: column;
  max-height: 86vh;
}
.dialog.show { display: flex; }
.dialog-head {
  height: 40px;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}
.dialog-head .close { margin-left: auto; color: #909399; cursor: pointer; font-size: 14px; }
.dialog-body { padding: 20px 20px 24px; overflow: auto; }
.dialog-foot {
  padding: 10px 20px;
  background: var(--bg-strip);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.form-item { display: flex; align-items: center; gap: 12px; }
.form-item > label {
  width: 84px;
  flex: 0 0 84px;
  text-align: right;
  font-size: 13px;
  color: var(--text-2);
}
.form-item .req { color: #f56c6c; margin-right: 2px; }
.control { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.input {
  flex: 1;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.input:focus { border-color: var(--brand); }
.input::placeholder { color: var(--placeholder); }
.select-like {
  flex: 1;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 26px 0 10px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path d='M0 0h8L4 6z' fill='%23c0c4cc'/></svg>") no-repeat right 9px center;
  cursor: pointer;
}
.textarea {
  flex: 1;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.mini-btn {
  min-width: 26px; height: 32px;
  padding: 0 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-3);
  font-size: 13px;
}
.mini-btn:hover { color: var(--brand); border-color: #f0b27a; }
.upload {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  color: #409eff;
  font-size: 12px;
}
.upload span { cursor: pointer; }
.upload span + span { color: var(--text-3); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c8ccd4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aab0ba; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .dialog { width: calc(100vw - 80px); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ws-grid { grid-template-columns: 1fr; }
  .ws-strip { overflow-x: auto; }
  .ws-strip-item { width: 110px; flex: 0 0 110px; }
  .nav-item { padding: 0 8px; font-size: 13px; }
  .brand { width: 110px; flex-basis: 110px; }
  .page { margin: 12px; }
  .nav-right { gap: 14px; }
}

/* ---------- 补：二级菜单选中 / 弹出层 / toast ---------- */
.nav-dropdown li.on { color: var(--brand); background: var(--bg-hover); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 14px);
  background: #303133; color: #fff; font-size: 13px; padding: 9px 16px;
  border-radius: var(--radius); box-shadow: 0 8px 24px -8px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 补：设置项 ---------- */
.settings { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.setting-row {
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.setting-row p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }

.switch {
  width: 40px; height: 20px; border-radius: 10px; background: #dcdfe6;
  position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s;
}
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--brand); }
.switch.on i { left: 22px; }

/* ---------- 补：统计卡 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.stat-label { font-size: 12px; color: var(--text-3); }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text); margin: 4px 0 2px; }
.stat-sub { font-size: 11px; color: var(--text-3); }

/* ---------- 补：说明条 / 空页 ---------- */
.notice {
  margin-top: 14px; padding: 10px 14px; font-size: 12px; color: var(--text-2);
  background: #fdf6ec; border: 1px solid #faecd8; border-radius: var(--radius); line-height: 1.7;
}
.notice-page { padding: 48px 20px; text-align: center; color: var(--text-2); }
.notice-page b { display: block; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.notice-page p { margin: 6px 0; font-size: 13px; }
.notice-page code { background: #f5f7fa; padding: 1px 6px; border-radius: 3px; }

/* ---------- 补：日历事项 / 负责人选择 ---------- */
.cal-item {
  margin-top: 4px; font-size: 11px; line-height: 1.45; color: var(--text-2);
  background: #fff4e8; border-radius: 2px; padding: 2px 4px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-item b { font-weight: 600; color: #b85c00; }
.owner-pick { cursor: pointer; min-width: 96px; }

@media (max-width: 900px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   待办：事项条 / 抽屉 / 窄弹窗
   ========================================================= */
.cal-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cal-cell .cal-add { position: static; line-height: 1; }
.cal-item {
  margin-top: 6px;
  background: #f5f5f5;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
  padding: 5px;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.cal-item:hover { background: #fdf1e5; }
.cal-item.done { border-left-color: #d8dbe0; color: var(--text-3); background: #fafafa; }
.cal-item .ci-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-item .ci-user { color: var(--text-3); flex: 0 0 auto; }

.dialog.narrow { width: 520px; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 500px; max-width: 92vw;
  background: #fff;
  box-shadow: -6px 0 24px -12px rgba(0,0,0,.45);
  z-index: 220;
  display: none;
  flex-direction: column;
}
.drawer.show { display: flex; }
.drawer-head {
  height: 44px; padding: 0 18px; border-bottom: 1px solid #ddd;
  display: flex; align-items: center; font-size: 14px;
}
.drawer-head .close { margin-left: auto; color: #909399; cursor: pointer; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 18px 24px; }
.drawer-actions { display: flex; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.form-info { padding-top: 12px; }
.fi-row { display: flex; gap: 12px; padding: 7px 0; font-size: 13px; align-items: flex-start; }
.fi-row > label { flex: 0 0 120px; text-align: right; color: var(--text-2); font-size: 13px; }
.fi-row > span { flex: 1; color: var(--text); word-break: break-word; }
.fi-row .fi-text { white-space: pre-wrap; line-height: 1.7; }
.ck-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); cursor: pointer; }
.drawer-reply { margin-top: 16px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.dr-title { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.drawer-reply .textarea { width: 100%; min-height: 68px; }
.form-grid.one-col { grid-template-columns: 1fr; gap: 12px; }
.form-grid.one-col .form-item { align-items: flex-start; }
.form-grid.one-col .form-item > label { padding-top: 8px; }
.text-red { color: #d54941; }
.muted { color: var(--text-3); }
.btn-danger { color: #d54941; border-color: #f3c6c3; }
.btn-danger:hover { color: #fff; background: #d54941; border-color: #d54941; }

/* =========================================================
   功能设置：页签 + 表单行（对齐原站 el-tabs / label 250px）
   ========================================================= */
.f-alert {
  background: #f4f8ff; border: 1px solid #d9e6ff; color: var(--text-2);
  border-radius: var(--radius); padding: 8px 12px; font-size: 12px; margin-bottom: 4px;
}
.f-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border-light); margin-bottom: 2px; }
.f-tab {
  padding: 9px 14px; font-size: 14px; color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.f-tab:hover { color: var(--brand); }
.f-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.f-panel { padding: 14px 0 4px; }
.f-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed #f0f1f4;
}
.f-row:last-child { border-bottom: 0; }
.f-row > label {
  flex: 0 0 250px; width: 250px; text-align: right;
  font-size: 13px; color: var(--text-2); padding-top: 3px;
}
.f-ctl { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.f-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; flex: 1 1 320px; min-width: 220px; }
.f-val { font-size: 13px; color: var(--text); }
.f-select { flex: 0 0 200px; height: 28px; }
.f-protect { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }
.f-note { font-size: 12px; color: var(--text-3); line-height: 1.7; flex: 1 1 100%; }
.f-empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 26px 18px; text-align: center; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.f-empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }

@media (max-width: 900px) {
  .f-row { flex-direction: column; gap: 6px; }
  .f-row > label { flex: none; width: auto; text-align: left; }
  .drawer { width: 100%; }
  .fi-row { flex-direction: column; gap: 2px; }
  .fi-row > label { flex: none; text-align: left; color: var(--text-3); font-size: 12px; }
}

.plain-val { font-size: 13px; color: var(--text); }

/* 小屏：顶栏导航横向滚动，避免整页横向溢出（原站为桌面端） */
@media (max-width: 900px) {
  .topbar { padding: 0 8px; }
  .brand { width: auto; flex: 0 0 auto; margin-right: 6px; }
  .brand > span:last-child { display: none; }
  .nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { padding: 0 9px; font-size: 13px; }
  .nav-right { display: none; }
  .nav-dropdown { position: fixed; top: 60px; left: 8px; }
}

/* 小屏日历：保持 7 列可读，改为横向滚动 */
.cal-title { white-space: nowrap; }
@media (max-width: 720px) {
  .calendar { overflow-x: auto; }
  .cal-grid { min-width: 860px; }
  .cal-toolbar { flex-wrap: wrap; row-gap: 8px; }
}

/* =========================================================
   补：功能设置 · 字段表（客户/线索 8 列、联系人 3 列、自定义字段）
   ========================================================= */
.ftable-wrap {
  margin-top: 14px; border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: auto; background: #fff;
}
.ftable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.ftable th {
  background: #fafbfc; font-weight: 600; color: var(--text-2); text-align: left;
  padding: 9px 10px; border-bottom: 1px solid var(--border-light); white-space: nowrap;
}
.ftable th span[title] { border-bottom: 1px dashed var(--border); cursor: help; }
.ftable td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.ftable tbody tr:last-child td { border-bottom: 0; }
.ftable tbody tr:hover td { background: #fcfcfd; }
.ft-idx { width: 58px; text-align: center; color: var(--text-3); font-size: 12px; }
.ftable .ft-name { width: 42%; }
.ftable-wrap-fit { width: fit-content; max-width: 100%; }
.ftable.ftable-auto { width: auto; min-width: 640px; }
.ftable.ftable-auto .ft-name { width: 260px; }
.ft-ck { width: 96px; text-align: center; }
.ft-ops { width: 150px; white-space: nowrap; }
.ft-ops .link { margin-right: 10px; }
.ft-ops .link:last-child { margin-right: 0; }
.ft-sys {
  display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 11px;
  color: var(--text-3); background: #f2f4f7; border-radius: 3px; vertical-align: 1px;
}
.ft-hint { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--text-3); }
.ck-on { color: #f56c6c; font-weight: 700; }
.drag-dot { cursor: grab; color: var(--text-3); }
.ft-note {
  padding: 8px 12px; font-size: 12px; color: var(--text-3);
  background: #fafbfc; border-top: 1px solid var(--border-light);
}

/* 联系人字段：方形勾选框 */
.ck-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 11px; line-height: 1; color: #fff; cursor: pointer; background: #fff;
  transition: background .15s, border-color .15s;
}
.ck-box.on { background: #f56c6c; border-color: #f56c6c; }

/* 模块关闭提示 */
.f-modoff {
  margin-top: 14px; padding: 16px; border: 1px dashed var(--border);
  border-radius: var(--radius); background: #fafbfc;
  color: var(--text-2); font-size: 13px; line-height: 1.9;
}

/* 自定义字段 */
.f-custom { margin-top: 18px; }
.f-tip {
  padding: 9px 12px; background: #fdf6ec; color: #8a6d3b; font-size: 12px;
  line-height: 1.8; border-radius: var(--radius); margin-bottom: 10px;
}
.f-custom .ftable { min-width: 560px; }
.f-custom .ft-idx { text-align: left; padding-left: 12px; color: var(--text-2); }

/* =========================================================
   补：系统设置 · 团队设置（卡片 + 5 行）
   ========================================================= */
.team-card {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  background: #fff; overflow: hidden;
}
.team-row {
  display: flex; align-items: center; padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.team-row:last-child { border-bottom: 0; }
.team-row > label {
  flex: 0 0 150px; color: var(--text-2); font-size: 14px;
}
.team-row .tv { display: flex; align-items: center; gap: 12px; flex: 1; font-size: 14px; min-width: 0; }
.team-row .tv .f-desc { flex: 0 1 auto; min-width: 0; }

/* 小屏：字段表横向滚动，团队行上下排 */
@media (max-width: 720px) {
  .ftable-wrap { margin-left: 0; margin-right: 0; }
  .team-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .team-row > label { flex: none; }
  .team-row .tv { flex-wrap: wrap; }
}

/* =========================================================
   团队设置整页（按原站截图逐块还原：7 张卡片 12 行）
   ========================================================= */
.set-expire {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; background: #f7f8fa; border-radius: 4px;
  font-size: 13px; color: var(--text-2); margin-bottom: 14px;
}
.set-expire b { color: var(--text); font-weight: 600; }
.set-expire .lk { color: #4a7dfc; cursor: pointer; }
.set-expire .lk:hover { text-decoration: underline; }

.set-card {
  background: #fff; border: 1px solid #ebeef5; border-radius: 4px;
  margin-bottom: 14px; padding: 4px 20px;
}
.set-row {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 8px 0;
  border-bottom: 1px solid #f2f3f5;
}
.set-row:last-child { border-bottom: 0; }
.set-lb {
  flex: 0 0 300px; color: #606266; font-size: 13px;
}
.set-vt { font-size: 13px; color: #303133; min-width: 0; }
.set-desc {
  font-size: 12px; color: #909399; line-height: 1.7; min-width: 0;
}
.set-desc .warn { color: #ff7d1a; font-style: normal; }

/* 小号按钮：白底描边（团队名称「设置」、管理员「更改」、查看操作日志） */
.btn-mini {
  flex: none; padding: 4px 12px; font-size: 12px; line-height: 1.5;
  color: #606266; background: #fff; border: 1px solid #dcdfe6;
  border-radius: 3px; cursor: pointer; transition: all .15s;
}
.btn-mini:hover { color: #ff7d1a; border-color: #ffb27a; background: #fff8f2; }

/* 实心按钮：橙 / 绿 / 红 */
.btn-solid {
  flex: none; padding: 5px 14px; font-size: 12px; line-height: 1.5;
  color: #fff; border: 0; border-radius: 3px; cursor: pointer;
  transition: filter .15s;
}
.btn-solid:hover { filter: brightness(1.08); }
.btn-solid.orange { background: #ff7d1a; }
.btn-solid.green  { background: #67c23a; }
.btn-solid.red    { background: #f56c6c; }

/* 开关：橙 = 开，灰 = 关 */
.sw {
  position: relative; flex: none; display: inline-block;
  width: 36px; height: 20px; border-radius: 10px; background: #dcdfe6;
  cursor: pointer; transition: background .2s;
}
.sw::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.sw.on { background: #ff7d1a; }
.sw.on::after { transform: translateX(16px); }

/* =========================================================
   字段表：底部两个动作按钮 + 字段名两行（名称 + 说明）
   ========================================================= */
.ft-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-line {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; font-size: 13px; color: #606266;
  background: #fff; border: 1px solid #dcdfe6; border-radius: 3px; cursor: pointer;
  transition: all .15s;
}
.btn-line:hover { color: #ff7d1a; border-color: #ffb27a; background: #fff8f2; }
.btn-line .ic-plus { font-style: normal; font-size: 14px; line-height: 1; }
.btn-line .ic-search {
  width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 50%;
  position: relative; display: inline-block;
}
.btn-line .ic-search::after {
  content: ''; position: absolute; right: -4px; bottom: -3px;
  width: 5px; height: 1.6px; background: currentColor; transform: rotate(45deg);
}

.ft-name-t { display: block; }
.ftable .ft-hint {
  display: block; margin: 2px 0 0; font-size: 12px; color: #a8abb2;
  line-height: 1.5; white-space: normal;
}
.ftable .ft-name { white-space: normal; }

/* 全局搜索 / 通知列表项 */
.gs-g {
  margin: 10px 0 4px; font-size: 12px; color: #909399; font-weight: 600;
}
.gs-i {
  padding: 7px 8px; font-size: 13px; color: #303133; border-radius: 3px;
  cursor: pointer;
}
.gs-i:hover { background: #fff3e8; color: #ff7d1a; }
.gs-i .muted { color: #a8abb2; font-size: 12px; }

/* 顶栏红点带数字 */
.nav-badge {
  display: none; position: absolute; top: 4px; right: 4px;
  min-width: 14px; height: 14px; padding: 0 3px;
  background: #f56c6c; color: #fff; font-size: 10px; line-height: 14px;
  border-radius: 7px; text-align: center; font-style: normal;
}
.nav-badge.show { display: block; }
.nav-right .nav-icon { position: relative; }

/* 小屏：label 换行到上方 */
@media (max-width: 720px) {
  .set-row { flex-wrap: wrap; gap: 8px; }
  .set-lb { flex: 0 0 100%; }
  .set-desc { flex: 1 1 100%; }
}

/* 预览布局弹窗里的表单示意 */
.preview-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; padding: 12px; background: #fafbfc; border-radius: 4px; }
.pf-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-lb { flex: 0 0 96px; font-size: 12px; color: #606266; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-lb .req { color: #f56c6c; font-style: normal; margin-left: 2px; }
.pf-ip { flex: 1; height: 22px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; min-width: 0; }
@media (max-width: 720px) { .preview-form { grid-template-columns: 1fr; } }

/* =========================================================
   客户表单 / 字段设置弹窗（对齐原站 el-form、el-select、el-dialog）
   ========================================================= */
.dialog.w500 { width: 500px; }
.dialog.w600 { width: 600px; }
.dialog.w700 { width: 700px; }
.dialog.w800 { width: 800px; }
.dialog.w1000 { width: 1000px; }
.dialog.w1200 { width: 1200px; }
.form-item-full { grid-column: 1 / -1; }
.dialog.w80p { width: 80%; }
/* AI识别（原站 el-dialog 80%） */
.ai-extract { display: flex; flex-direction: column; gap: 16px; }
.ai-beta { text-align: center; color: #606266; font-size: 13px; }
.ai-tag { display: inline-block; background: #e8f8ee; color: #2eb872; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 3px; margin-right: 6px; }
.ai-grid { display: grid; grid-template-columns: 232px 220px 1fr; gap: 18px; align-items: stretch; }
.ai-ta { width: 100%; height: 112px; resize: none; font-size: 12px; line-height: 1.7; }
.ai-box { border: 1px dashed #d9dce3; border-radius: 4px; height: 112px; display: flex; align-items: center; justify-content: center; text-align: center; color: #b9bfca; font-size: 13px; cursor: pointer; padding: 0 16px; line-height: 1.6; }
.ai-box:hover { border-color: #ff7d1a; color: #ff7d1a; }
.ai-box.has { border-style: solid; border-color: #ff7d1a; color: #ff7d1a; }
/* 查工商下拉：企查查 / 天眼查 */
.gs-menu { background: #fff; border: 1px solid #e5e6eb; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); padding: 4px 0; min-width: 130px; }
.gs-item { padding: 8px 14px; font-size: 13px; cursor: pointer; }
.gs-item:hover { background: #f5f7fa; }
@media (max-width: 1240px) { .dialog.w1200 { width: calc(100vw - 40px); } }
@media (max-width: 1040px) { .dialog.w1000 { width: calc(100vw - 40px); } }
@media (max-width: 760px) { .dialog.w500, .dialog.w600, .dialog.w700, .dialog.w800, .dialog.w1000, .dialog.w1200 { width: calc(100vw - 40px); } }

/* 下拉：真控件，点开有面板 */
.sel {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: inline-flex;
  align-items: center;
  padding: 0 24px 0 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.sel:hover { border-color: #c0c4cc; }
.sel .sel-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel .sel-ar { position: absolute; right: 8px; color: var(--text-3); font-style: normal; font-size: 11px; }
.sel-pop {
  position: absolute;
  left: 0; top: calc(100% + 4px);
  z-index: 320;
  min-width: 100%;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
  padding: 4px 0;
}
.sel-pop .sel-i { display: block; padding: 0 12px; height: 30px; line-height: 30px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.sel-pop .sel-i:hover { background: var(--bg-hover); color: var(--brand); }
.sel-pop .sel-i.on { color: var(--brand); font-weight: 600; }
.sel-pop .sel-empty { display: block; padding: 8px 12px; color: var(--text-3); font-size: 12px; }

/* 标签多选 */
/* 标签选择器：原站是一个带边框的输入框，+ 在框内（不是裸按钮） */
.tagpick { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; background: #fff; min-width: 110px; box-sizing: border-box; vertical-align: middle; }
.tagpick:focus-within { border-color: var(--brand); }
.tagpick .tagpick-add {
  width: 20px; height: 20px; border-radius: 2px;
  border: 1px dashed var(--border); color: var(--text-3);
  display: inline-grid; place-items: center; cursor: pointer; position: relative;
}
.tagpick .tagpick-add:hover { color: var(--brand); border-color: var(--brand); }

/* 附件上传 */
.upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-btn { font-size: 12px; color: #0052d9; cursor: pointer; }
.up-btn:hover { text-decoration: underline; }
.up-file { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.up-file .x { cursor: pointer; color: var(--text-3); }
.up-file .x:hover { color: #e34d59; }

/* 新增/编辑字段弹窗 */
.fld-form { display: block; }
.fld-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.fld-lb { flex: 0 0 80px; text-align: right; font-size: 12px; color: var(--text-2); line-height: 28px; }
.fld-ctl { flex: 1; min-width: 0; }
.fld-tip { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.inp-append { display: flex; align-items: stretch; }
.inp-append .input { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.inp-append .append-txt {
  height: 28px; line-height: 26px; padding: 0 10px;
  border: 1px solid var(--border); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f5f7fa; font-size: 12px; color: var(--text-3); white-space: nowrap;
}
.rc-group { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 12px; }
.rc { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; color: var(--text-2); cursor: pointer; background: transparent; }
.rc:hover { border-color: var(--border); }
.rc input { margin: 0; accent-color: #ff7d1a; width: 14px; height: 14px; }
.rc.on { border-color: #ff7d1a; color: #ff7d1a; }
.rc.dis { opacity: .45; cursor: not-allowed; }
.ck-list { display: flex; flex-direction: column; gap: 10px; }
.ck-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.ck-line input { accent-color: #ff7d1a; }
.ck-line.dis { opacity: .5; }
.ck-line .q {
  width: 14px; height: 14px; border-radius: 50%;
  background: #c0c4cc; color: #fff;
  font-size: 10px; line-height: 14px; text-align: center; cursor: help;
}

/* 设置选项弹窗（状态 / 标签 / 等级 / 来源） */
.opt-wrap { min-height: 120px; }
.opt-alert {
  background: #f4f8ff; border: 1px solid #d9ecff; color: #5a7db5;
  font-size: 12px; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 14px;
}
/* 原站这里是 el-switch 表单行（不是绿色提示条） */
.opt-protect { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.opt-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.opt-tip2 { font-size: 12px; color: #909399; }
.opt-top { margin-bottom: 10px; }
.btn.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.opt-t { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 12px; }
.opt-t th, .opt-t td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); text-align: left; }
.opt-t th { color: var(--text-2); font-weight: 400; background: #fafafa; }
.opt-t .opt-h1 { width: 70px; color: var(--text-2); }
.opt-t .opt-h3 { width: 150px; text-align: right; }
.opt-t td.opt-h3 { text-align: right; }
.opt-t td.opt-h3 .link { margin-left: 10px; }
.opt-t-status .opt-h1 { font-weight: 600; color: var(--text); }
.opt-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; color: #fff; font-size: 12px; line-height: 18px; }
.opt-tagline { color: var(--text-3); font-size: 11px; margin-left: 6px; }
.opt-tip { font-size: 11px; color: var(--text-3); font-weight: 400; }
.opt-empty { color: var(--text-3); text-align: center; height: 40px; }
.drag-h { color: var(--text-3); cursor: move; }
.btn-mini {
  height: 24px; padding: 0 8px; font-size: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text-2); cursor: pointer;
}
.btn-mini:hover { color: var(--brand); border-color: var(--brand); }
.status-input { display: flex; align-items: center; gap: 8px; }
.status-color { width: 24px; height: 24px; border-radius: 2px; display: inline-block; flex: none; }
.color-board { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-cell {
  width: 28px; height: 28px; border-radius: 2px; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 12px;
  border: 2px solid transparent;
}
.sw-cell.on { border-color: #333; }

/* 跟进类型 / 打印模板面板 */
.flex-btn { display: flex; gap: 8px; }
.tpl-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tpl-btn {
  height: 28px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.tpl-btn:hover { border-color: var(--brand); color: var(--brand); }
.tpl-def { color: var(--text-3); font-size: 11px; }
.tpl-ar { font-style: normal; color: var(--text-3); font-size: 10px; }
.tpl-muted { color: var(--text-3); font-size: 12px; }

/* 未采集页签：把缺口写成结构化卡片，而不是一句"未展开" */
.gap-card { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.gap-h { padding: 10px 14px; background: #fafbfc; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 8px; }
.gap-tag { font-weight: 400; font-size: 11px; color: #b26a00; background: #fff7e6; border: 1px solid #ffe1a8; border-radius: 2px; padding: 0 6px; line-height: 16px; }
.gap-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.gap-t th { width: 140px; text-align: left; padding: 8px 14px; color: var(--text-3); font-weight: 400; background: #fcfcfd; border-bottom: 1px solid #f2f3f5; vertical-align: top; }
.gap-t td { padding: 8px 14px; color: var(--text-2); border-bottom: 1px solid #f2f3f5; }

/* [hidden] 要能压过 .fld-row 的 display:flex，否则"选项/公式"两行不会被藏起来 */
.fld-row[hidden] { display: none !important; }
.ck-line[hidden] { display: none !important; }

/* 必填未填：红框提示（原站保存时同样会标红并阻止保存） */
.is-err { border-color: #f5222d !important; box-shadow: 0 0 0 2px rgba(245, 34, 45, .12) !important; }

/* 推送日志抽屉（原站 el-drawer size=1200px） */
.drawer.wide { width: 1200px; }
@media (max-width: 1240px) { .drawer.wide { width: 96vw; } }

/* 功能设置 · 与第三方平台集成（对齐原站 el-alert + el-form + el-table） */
.api-alert {
  background: #f4f8ff; border: 1px solid #d9ecff; color: #5a7db5;
  font-size: 12px; line-height: 1.9; padding: 10px 14px; border-radius: 2px; margin: 14px 0 6px;
}
.api-red { color: #e34d59; }
.api-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.api-row > label { flex: 0 0 150px; text-align: right; font-size: 12px; color: #606266; line-height: 28px; }
.api-ctl { flex: 1; min-width: 0; }
.api-url { font-size: 12px; color: #303133; word-break: break-all; line-height: 28px; }
.api-note { color: #e34d59; font-size: 12px; line-height: 1.6; margin-top: 2px; }
.api-btns { display: flex; gap: 8px; }
.api-fields-t { font-size: 13px; color: #303133; margin-top: 16px; }
.api-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.api-t th, .api-t td { border: 1px solid #ebeef5; padding: 8px 12px; text-align: left; }
.api-t th { background: #fafafa; color: #909399; font-weight: 400; }
.api-log { padding: 15px; }
.api-log-empty { text-align: center; color: #909399; height: 60px; }

/* 功能设置 · 业务表单（原站 splitter：左分组 200px + 右表单列表） */
.bf-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; }
.bf-toolbar .size { height: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font-size: 12px; background: #fff; }
.bf-toolbar .search { width: 220px; }
.bf-body { display: flex; gap: 14px; align-items: flex-start; }
.bf-left { flex: 0 0 200px; }
.bf-right { flex: 1; min-width: 0; }
.bf-groups tr { cursor: pointer; }
.bf-groups tr.on td { background: #eaf2ff; color: var(--brand); }
.bf-groups th .link { margin-left: 6px; font-weight: 400; }
.bf-name { display: flex; align-items: center; gap: 8px; }
.bf-logo { width: 20px; height: 20px; border-radius: 3px; display: block; }
@media (max-width: 900px) { .bf-body { flex-direction: column; } .bf-left { flex: none; width: 100%; } }

/* 跟进到期提醒 / 丢公海提醒（原站 800px 抽屉） */
.rm-wrap { padding: 16px 18px 28px; }
.rm-tip { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.rm-days { width: 70px; text-align: center; }
.rm-t { margin-top: 14px; }
.rm-t .rm-g { width: 180px; font-weight: 600; color: var(--text); background: #fafafa; }
.rm-t td { vertical-align: middle; }
.rm-day { width: 80px; }
.rm-foot { margin-top: 18px; text-align: right; }

/* 管理快麦云打印机（原站 500px 弹窗） */
.printer-wrap { min-height: 120px; }
.printer-add { display: flex; gap: 8px; margin-top: 14px; }
.printer-add .input { flex: 1; }

/* 客户签单目标（原站 /crm/custarget/main） */
.ct-bar { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; }
.ct-bar .size { height: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font-size: 12px; background: #fff; min-width: 110px; }
.ct-bar .search { width: 220px; }
.ct-bar .ct-edit { margin-left: auto; }
.ct-pg { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ct-t th.ct-num, .ct-t td.ct-num { text-align: right; }
.ct-t td { height: 40px; }
.ct-ip { width: 90px; text-align: right; height: 26px; }
.ct-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.ct-add { display: flex; align-items: center; gap: 10px; }
.ct-btns { margin-left: auto; display: flex; gap: 8px; }

/* 业务员目标：日/周/月/年四张卡片 */
.tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 8px; }
.tg-card { border: 1px solid var(--border-light); border-radius: var(--radius); background: #fff; padding: 12px 14px; }
.tg-head { display: flex; align-items: center; margin-bottom: 10px; font-size: 14px; }
.tg-sm { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.tg-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.tg-arw { cursor: pointer; color: var(--text-3); padding: 0 4px; }
.tg-arw:hover { color: var(--brand); }
.tg-t th.ct-num, .tg-t td.ct-num { text-align: right; }
@media (max-width: 900px) { .tg-grid { grid-template-columns: 1fr; } }

/* 首页「设置显示图表」抽屉：原站右侧 320px */
.drawer.slim { width: 320px; }
.hc-list { padding: 8px 0; }
.hc-row { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 18px; font-size: 12px; color: var(--text-2); }
.hc-row:hover { background: var(--bg-hover); }
.hc-i { width: 18px; color: var(--text-3); }
.hc-n { flex: 1; }
.sw-btn { position: relative; width: 34px; height: 18px; border-radius: 9px; background: #dcdfe6; cursor: pointer; transition: background .15s; flex: none; }
.sw-btn i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw-btn.on { background: #ff821e; }
.sw-btn.on i { left: 18px; }

/* 首页图表：环形 / 图例 / 排行 / 走势 */
.donut-wrap { display: flex; gap: 14px; align-items: center; padding: 8px 0 4px; }
.donut { width: 120px; height: 120px; border-radius: 50%; position: relative; flex: none; }
.donut > span { position: absolute; inset: 26px; background: #fff; border-radius: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--text-2); }
.legend.col { flex-direction: column; flex-wrap: nowrap; padding-top: 6px; }
.legend .lg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend .lg i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend .lg b { font-weight: 400; color: var(--text-3); }
.rank { padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rank-name { flex: 0 0 64px; color: var(--text-2); text-align: right; }
.rank-bar { height: 20px; border-radius: 2px; color: #fff; font-size: 11px; line-height: 20px; text-align: center; min-width: 28px; }
.trend-svg { width: 100%; height: 90px; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); padding: 2px 4px 0; }
.metric { text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0; }
.metric-label { font-size: 12px; color: var(--text-3); }
.metric-value { font-size: 22px; font-weight: 600; color: #ff7d1a; line-height: 1.5; }
.metric-delta { font-size: 11px; color: #00a870; }
@media (max-width: 900px) { .donut-wrap { flex-direction: column; align-items: flex-start; } }

/* 首页指标标签不换行（4 列时"新增客户"会被拆成两行） */
.metric-label { white-space: nowrap; font-size: 11px; }
.ws-strip-item { cursor: pointer; }
.ws-strip-item:hover { color: var(--brand); }
.list-row .meta { color: var(--text-3); font-size: 11px; }

/* ============ 线索快捷条 / 行内可点名称 ============ */
.lead-quick { display: flex; align-items: center; gap: 20px; padding: 2px 0 12px; font-size: 12px; color: #606266; }
.lead-quick .lq { cursor: pointer; white-space: nowrap; }
.lead-quick .lq:hover { color: var(--brand); }
.lead-quick .lq.on { color: var(--brand); font-weight: 600; }
.row-link { color: #0052d9; cursor: pointer; }
.row-link:hover { text-decoration: underline; }
.t-follow-wide { min-width: 1560px; }

/* ============ 客户签单目标：列表合计 / 分页 / 导出 ============ */
.ct-total { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ct-search { width: 260px; }
.ct-table-wrap { overflow: auto; }
.ct-pager { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ct-pager .size { height: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font-size: 12px; background: #fff; }
.ct-pager .pages { display: flex; align-items: center; gap: 4px; }
.ct-pager .pg {
  min-width: 26px; height: 26px; padding: 0 4px; display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: 3px; font-size: 12px; color: #606266; cursor: pointer;
}
.ct-pager .pg:hover { color: var(--brand); }
.ct-pager .pg.active { background: var(--brand); color: #fff; }
.ct-pager .pg.disabled { color: #c0c4cc; cursor: default; }
.ct-pager .total { font-size: 12px; color: var(--text-3); }
.ct-t .total td { background: #fafafa; font-weight: 700; color: var(--text); }

/* ============ 跟进记录弹窗 ============ */
.fl-wrap { display: flex; gap: 20px; align-items: flex-start; }
.fl-main { flex: 1; min-width: 0; }
.fl-side {
  width: 272px; flex: 0 0 272px; border: 1px solid #ebeef5; border-radius: 4px;
  padding: 12px; background: #fafafa;
}
.fl-side-t { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #303133; margin-bottom: 12px; }
.fl-side-t .q {
  width: 14px; height: 14px; border-radius: 50%; background: #c0c4cc; color: #fff;
  font-size: 10px; display: inline-grid; place-items: center; cursor: help;
}
.fl-side-row { display: flex; gap: 10px; font-size: 12px; margin-bottom: 10px; color: #303133; }
.fl-side-row label { color: #909399; width: 40px; flex: 0 0 40px; }
.fl-side-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fl-side-btns .btn { width: 100%; }
.inp-plus { display: flex; align-items: center; gap: 6px; width: 100%; }
.inp-plus .input { flex: 1; min-width: 0; }
.inp-plus .plus {
  width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #dcdfe6; border-radius: 3px;
  display: grid; place-items: center; cursor: pointer; color: #606266; background: #fff;
}
.inp-plus .plus:hover { border-color: var(--brand); color: var(--brand); }
.fl-pick { margin-top: 6px; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; }
.fl-pick .input { border: none; border-bottom: 1px solid #ebeef5; border-radius: 0; }
.fl-pick-list { max-height: 180px; overflow: auto; }
.fl-pick-row { padding: 6px 10px; cursor: pointer; font-size: 12px; }
.fl-pick-row:hover { background: #f5f7fa; }
.fl-att { display: flex; gap: 10px; align-items: center; }
.att-btn { border: 1px dashed #dcdfe6; border-radius: 3px; padding: 3px 10px; cursor: pointer; font-size: 12px; color: #606266; }
.att-btn:hover { border-color: var(--brand); color: var(--brand); }
.form-item.full { grid-column: 1 / -1; }
.ent-act { padding: 4px 0; font-size: 12px; color: #606266; }
.pk-row { cursor: pointer; }
.pk-row:hover td { background: #f5f7fa; }
.pk-on td { background: #fff2e8 !important; }
.dialog.w900 { width: 900px; }
.fl-main .form-grid { grid-template-columns: 1fr; gap: 12px; }
.fl-main .form-item { align-items: flex-start; }
.fl-main .form-item > label { padding-top: 8px; }
/* 联系人列表行高对齐原站（40px 级） */
.t-contact td { height: 38px; }

/* ============ 用户设置（系统设置 → 用户设置） ============ */
.su-top { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; }
.su-top .size { height: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; font-size: 12px; background: #fff; min-width: 96px; }
.su-search { width: 180px; }
.su-tabs { margin-left: auto; display: flex; gap: 22px; font-size: 13px; }
.su-tabs .on { color: var(--brand); border-bottom: 2px solid var(--brand); padding: 0 2px 8px; }
.su-body { display: flex; gap: 18px; align-items: flex-start; }
.su-side { width: 170px; flex: 0 0 170px; border-right: 1px solid var(--border-light); padding-right: 12px; min-height: 320px; }
.su-side-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #303133; padding: 4px 0 10px; }
.su-side-h .link { font-size: 12px; }
.su-g { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; font-size: 13px; color: #606266; cursor: pointer; border-radius: 3px; }
.su-g:hover { background: #f5f7fa; }
.su-g.on { background: #fff2e8; color: var(--brand); }
.su-g-n { color: #909399; font-size: 12px; }
.su-g.on .su-g-n { color: var(--brand); }
.su-main { flex: 1; min-width: 0; }
.su-t td { height: 42px; }
.su-ava { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffe3c8; color: #a44904; font-size: 11px; margin-right: 8px; vertical-align: middle; }
.su-t tr.su-off td { color: #c0c4cc; }
.su-t tr.su-off .su-ava { background: #eee; color: #bbb; }
.dialog.w560 { width: 560px; }
.dialog.w640 { width: 640px; }
.opt-prob { color: #303133; }
.opt-desc { max-width: 420px; }
.opt-desc span { display: inline-block; max-width: 400px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.opt-desc-empty { color: #c0c4cc; }
.opt-rename { margin-left: 8px; font-size: 12px; }

/* ============ 列表页：副标题 + 彩色状态分组条 ============ */
.page-sub { font-size: 12px; color: #909399; margin: -2px 0 10px; }
.stage-bar { display: flex; padding: 2px 0 10px; }
.stage-bar .sg {
  flex: 1; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-size: 12px; cursor: pointer; opacity: .88; white-space: nowrap;
}
.stage-bar .sg:hover { opacity: 1; }
.stage-bar .sg:first-child { border-radius: 4px 0 0 4px; }
.stage-bar .sg:last-child { border-radius: 0 4px 4px 0; }
.stage-bar .sg b { font-weight: 400; }
.stage-bar .sg.on { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.sg-all { background: #8b8f96; }
.sg-follow { background: #1a7526; }
.sg-bill { background: #0052D9; }
.sg-lose { background: #c02a26; }
.sg-invalid { background: #9aa0a6; }

/* ============ 模块权限 ============ */
.perm-wrap { padding-top: 4px; }
.perm-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.perm-t th { background: #f5f7fa; height: 38px; padding: 0 10px; text-align: left; font-weight: 400; color: #606266; border-bottom: 1px solid #ebeef5; }
.perm-t td { height: 40px; padding: 0 10px; border-bottom: 1px solid #ebeef5; color: #303133; }
.perm-t tr:hover td { background: #fafcff; }
.perm-c { text-align: center !important; }
.perm-c input { width: 15px; height: 15px; accent-color: #2f6fe4; cursor: pointer; }
.perm-h { color: #909399; }
.perm-drag { cursor: move; margin-right: 8px; color: #c0c4cc; letter-spacing: -2px; }
.perm-g { color: #909399; }
.perm-sub { margin: 20px 0 8px; font-size: 13px; font-weight: 600; color: #303133; }
.dev-empty { text-align: center; color: #909399; height: 160px; }
.t-dev { min-width: 1180px; }

/* 具体状态胶囊行（列表页第二层） */
.status-pills { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 10px; }
.status-pills::-webkit-scrollbar { height: 4px; }
.status-pills::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 2px; }
.status-pills .sp {
  flex: none; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 3px; background: #fff;
  font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.status-pills .sp b { font-weight: 400; color: #909399; }
.status-pills .sp:hover { border-color: var(--brand); color: var(--brand); }
.status-pills .sp.on { border-color: var(--brand); color: var(--brand); background: #fff7ef; }
.status-pills .sp.on b { color: var(--brand); }

/* 状态弹窗放大 + 字段竖排 + 标签不截断 */
.dialog.w1100 { width: 1100px; }
.form-item.vert { flex-direction: column; align-items: flex-start; gap: 6px; }
.form-item.vert > label { width: auto; flex: none; text-align: left; }
.opt-t-status { table-layout: auto; width: 100%; }
.opt-t-status .opt-tag { max-width: none; white-space: nowrap; }
.opt-t-status td { vertical-align: middle; }

/* 弹窗内不允许横向滚动：内容按宽度收缩 */
.dialog { overflow: hidden; }
.dialog-body, #dlgBody { overflow-x: hidden; }
.form-grid, .form-item, .form-item > .control { min-width: 0; }
.form-item > .control { flex: 1; }
.form-item .input, .form-item .textarea { max-width: 100%; box-sizing: border-box; }

/* ============ 箭头流程条（一级分组 + 二级阶段） ============ */
.flow-bar { display: flex; padding: 2px 0 8px; }
.flow-bar .fw {
  position: relative; flex: 1; min-width: 96px; height: 46px; margin-left: -12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #8b8f96; color: #fff; font-size: 12px; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
}
.flow-bar .fw:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%); }
.flow-bar .fw b { font-weight: 400; }
.flow-bar .fw i { font-style: normal; font-size: 11px; opacity: .92; }
.flow-bar .fw:hover { filter: brightness(.94); }
.flow-bar .fw.on { box-shadow: inset 0 -3px 0 rgba(255,255,255,.85); }
.flow-bar .fw-follow { background: #1a7526; }
.flow-bar .fw-bill { background: #0052D9; }
.flow-bar .fw-lose { background: #c02a26; }
.flow-bar .fw-invalid { background: #9aa0a6; }
.flow-bar .fw.zero { background: #d8d8d8; color: #fff; }

.flow-stages { display: flex; padding: 0 0 10px; overflow-x: auto; }
.flow-stages::-webkit-scrollbar { height: 4px; }
.flow-stages::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 2px; }
.flow-stages .fw {
  position: relative; flex: 1; min-width: 0; height: 42px; margin-left: -10px; padding: 0 16px 0 20px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: #4a63c8; color: #fff; font-size: 12px; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.flow-stages .fw:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.flow-stages .fw b { font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.flow-stages .fw i { font-style: normal; font-size: 10px; opacity: .9; }
.flow-stages .fw.zero { background: #d8d8d8; }
.flow-stages .fw.on { box-shadow: inset 0 -3px 0 rgba(255,255,255,.85); }

/* 顶栏消息红点 */
.nav-badge {
  display: inline-block; min-width: 15px; height: 15px; padding: 0 4px; margin-left: 4px;
  border-radius: 8px; background: #f5222d; color: #fff; font-size: 10px; line-height: 15px;
  text-align: center; vertical-align: 2px;
}
/* 消息页表格 */
.t-msg { min-width: 1020px; }
.t-msg td.msg-over { color: #f5222d; }
.t-msg td { height: 40px; }

/* ============ 顶部分组统计行（取代彩色箭头块） ============ */
.stage-stats { display: flex; align-items: center; gap: 6px; padding: 2px 0 10px; font-size: 12px; color: #606266; flex-wrap: wrap; }
.stage-stats .ss { padding: 4px 12px; border-radius: 12px; cursor: pointer; white-space: nowrap; line-height: 18px; }
.stage-stats .ss b { font-weight: 600; margin-left: 3px; }
.stage-stats .ss:hover { background: #fff2e8; color: #d46b08; }
.stage-stats .ss.on { background: #fa8c16; color: #fff; }
.stage-stats .ss.on b { color: #fff; }

/* ============ 用户分组弹窗 ============ */
.ug-wrap { padding: 4px 2px 2px; }
.ug-add { display: flex; gap: 8px; align-items: center; }
.ug-add .input { flex: 1; height: 30px; }
.ug-hint { font-size: 12px; color: #909399; padding: 6px 0 10px; }
.ug-t { width: 100%; min-width: 0; table-layout: fixed; }
.ug-t th, .ug-t td { height: 38px; padding: 0 10px; font-size: 13px; }
.ug-t .ug-idx { color: #909399; }
.ug-t .ug-name { min-width: 0; }
.ug-t .ug-ip { height: 28px; width: 180px; margin-right: 8px; }
.ug-t .ug-ops { white-space: nowrap; }
.ug-t .ug-ops .link { margin-right: 12px; }
.ug-t .ug-num { color: #606266; }

/* ============ 签单列表 ============ */
.list-tabs { display: flex; gap: 18px; padding: 0 0 10px; border-bottom: 1px solid #ebeef5; margin-bottom: 12px; }
.list-tabs .lt { font-size: 13px; color: #606266; padding: 4px 2px 8px; cursor: default; }
.list-tabs .lt.on { color: #ff821e; border-bottom: 2px solid #ff821e; }
.t-bill { min-width: 1420px; }
.t-bill td, .t-bill th { height: 40px; }
.t-bill .num { text-align: right; }
.t-bill .ell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-bill .tag-ok { background: #f0f9eb; border: 1px solid #c2e7b0; color: #1a7526; border-radius: 3px; padding: 1px 6px; font-size: 12px; white-space: nowrap; }
.t-bill tfoot td { background: #fafafa; font-weight: 700; }

/* ============ 新增签单（整页表单） ============ */
.bf-card { background: #fff; border-radius: 4px; padding: 18px 20px 14px; }
.bf-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 22px; margin-bottom: 12px; }
.bf-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bf-item > label { flex: 0 0 74px; text-align: right; font-size: 12px; color: #606266; }
.bf-ctl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.bf-ctl .input { height: 30px; font-size: 12px; }
.bf-ctl .mini-btn { flex: 0 0 auto; }
.bf-ro { background: #f7f8fa; color: #909399; }
.bf-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: 6px; }

/* 收款 / 欠款页：金额右对齐、客户名省略 */
.t-bill .tag-warn { background: #fdf6ec; border: 1px solid #f5dab1; color: #b88230; border-radius: 3px; padding: 1px 6px; font-size: 12px; }
