[v-cloak] { display: none; }
html, body, #app { height: 100%; margin: 0; font-size: 14px; }
/* 孚盟式单元格编辑（20261108f170）：内联列平时纯文本显示，hover 提示可点击，点击才出现控件 */
.cell-edit-view { min-height: 24px; line-height: 24px; padding: 0 6px; margin: 0 -6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-edit-view:hover { background: #ecf5ff; color: #409eff; box-shadow: inset 0 0 0 1px #b3d8ff; }
.cell-edit-box { margin: 0 -6px; }
/* 单据编辑冲突醒目提示（20261108f167）：红色粗边框 + 放大字号，确保用户第一时间看到 */
.doc-lock-alert.el-message-box { border: 2px solid #f56c6c; border-radius: 10px; box-shadow: 0 10px 30px rgba(245,108,108,.28); }
.doc-lock-alert .el-message-box__title { color: #f56c6c; font-size: 18px; font-weight: 700; }
.doc-lock-alert .el-message-box__message { font-size: 15px; color: #303133; line-height: 1.7; font-weight: 600; }
.doc-lock-alert .el-message-box__status { font-size: 26px !important; }
.root-box { height: 100%; }
/* 跟进提醒右下角弹窗（20261006n；20261031f64 改为常驻、须人工关闭，超 3 条进汇总抽屉） */
.remind-stack { position: fixed; right: 18px; bottom: 18px; z-index: 4000; display: flex; flex-direction: column; gap: 10px; width: 330px; }
.remind-card { background: #fff; border: 1px solid #f3d19e; border-left: 4px solid #e6a23c; border-radius: 10px; box-shadow: 0 8px 24px rgba(230,162,60,.22); padding: 10px 12px; cursor: pointer; }
.remind-head { display: flex; justify-content: space-between; align-items: center; }
.remind-title { font-weight: 600; color: #303133; font-size: 13px; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-bell { font-size: 14px; }
.remind-close { font-style: normal; color: #909399; font-size: 17px; line-height: 1; cursor: pointer; flex: none; }
.remind-close:hover { color: #f56c6c; }
.remind-body { margin-top: 6px; }
.remind-content { color: #606266; font-size: 13px; line-height: 1.5; max-height: 72px; overflow: hidden; word-break: break-all; }
.remind-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #909399; font-size: 12px; margin-top: 5px; }
.remind-tip { color: #b9bdc4; font-size: 11px; margin-top: 5px; }
.remind-enter-active, .remind-leave-active { transition: all .25s ease; }
.remind-enter-from, .remind-leave-to { opacity: 0; transform: translateX(30px); }
/* 汇总抽屉：超过 3 条时的折叠面板（20261031f64） */
.remind-drawer { background: rgba(255,255,255,.96); border: 1px solid #e4e7ed; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.14); overflow: hidden; }
.remind-drawer-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; background: linear-gradient(90deg,#f3f7ff,#eef4ff); border-bottom: 1px solid transparent; }
.remind-drawer.open .remind-drawer-head { border-bottom-color: #e8eefb; }
.remind-drawer-ico { font-size: 14px; }
.remind-drawer-title { flex: 1; font-size: 13px; font-weight: 600; color: #303133; }
.remind-drawer-hint { font-size: 11.5px; color: #909399; }
.remind-drawer-arrow { font-style: normal; color: #909399; font-size: 12px; transition: transform .2s; }
.remind-drawer-arrow.open { transform: rotate(180deg); }
.remind-drawer-body { max-height: 260px; overflow-y: auto; padding: 4px 6px 6px; }
.remind-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.remind-row:hover { background: #f5f8ff; }
.remind-row-bell { font-size: 12px; flex: none; }
.remind-row-title { flex: 1; font-size: 12.5px; color: #303133; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-row-time { flex: none; font-size: 11.5px; color: #a8abb2; font-family: 'DIN Alternate',Consolas,monospace; }
.layout { height: 100%; }
/* 20261108f179：左侧导航浅色科技感——白→浅蓝渐变底 + 光带分隔；f180：logo 改图片、选中菜单调浅 */
.el-aside { background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 55%, #ecf3fc 100%); border-right: 1px solid #e2ecf8; }
.menu-logo { position: relative; padding: 16px 16px 14px; text-align: center; }
.menu-logo-img { max-width: 152px; max-height: 46px; display: inline-block; vertical-align: middle; }
.menu-logo::after { content: ''; display: block; width: 58px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); box-shadow: 0 0 8px rgba(56, 189, 248, .55); }
.el-menu { border-right: none; }
.el-header { background: #fff; border-bottom: 1px solid #ebeef5; display: flex; align-items: center; justify-content: space-between; }
.el-main { background: #f5f7fa; padding: 16px; }
.page-placeholder { background: #fff; border-radius: 8px; padding: 110px 0 80px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar.sub { margin-top: -8px; }

/* 高级搜索面板（20261006x，参考孚盟高级筛选） */
.adv-panel { background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.adv-panel .adv-logic { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.adv-panel .adv-logic-label { font-size: 13px; color: #606266; }
.adv-panel .adv-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.adv-panel .adv-actions { display: flex; align-items: center; gap: 8px; }

.toolbar .spacer { flex: 1; }
.stat-cards .el-col { margin-bottom: 16px; }
.stat-card { text-align: center; }
.stat-num { font-size: 26px; font-weight: 700; margin: 4px 0; }
.stat-label { color: #909399; font-size: 13px; }
.pager { position: sticky; bottom: 0; z-index: 20; margin-top: 0; padding: 10px 6px; justify-content: flex-end; background: #fff; border-top: 1px solid #ebeef5; box-shadow: 0 -2px 10px rgba(0,0,0,.04); border-radius: 0 0 6px 6px; }
/* 20261031 单据列表单元格右键复制菜单：所有列表通用 */
.cell-menu { position: fixed; z-index: 4000; min-width: 186px; max-width: 260px; background: #fff; border: 1px solid #e4e7ed; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.14); padding: 4px 0; user-select: none; }
.cell-menu-item { padding: 8px 14px; font-size: 13px; color: #303133; cursor: pointer; white-space: nowrap; }
.cell-menu-item:hover { background: #ecf5ff; color: #409eff; }
.cell-menu-tip { padding: 5px 14px 7px; font-size: 12px; color: #909399; border-top: 1px solid #f2f6fc; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 客户档案「动态」子表（20261031，参考孚盟：说说您的想法 + 分类 + 时间线） ===== */
.mom-editor { background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.mom-editor .el-textarea__inner { border: none; background: transparent; box-shadow: none; padding: 2px 2px 6px; font-size: 13px; }
.mom-editor-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mom-editor-tip { font-size: 12px; color: #c0c4cc; }
.mom-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mom-filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: #f4f5f7; color: #606266; font-size: 12px; cursor: pointer; transition: all .15s; user-select: none; }
.mom-filter em { font-style: normal; color: #909399; font-size: 12px; }
.mom-filter:hover { background: #e9f2ff; color: #409eff; }
.mom-filter.active { background: #409eff; color: #fff; box-shadow: 0 2px 8px rgba(64,158,255,.32); }
.mom-filter.active em { color: rgba(255,255,255,.85); }
.mom-list { min-height: 60px; }
.mom-group { margin-bottom: 8px; }
.mom-group-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #303133; font-weight: 600; padding: 8px 2px; }
.mom-group-head em { font-style: normal; color: #a8abb2; font-weight: 400; }
.mom-group-dot { width: 7px; height: 7px; border-radius: 50%; background: #c0c4cc; }
.mom-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; }
.mom-item:hover { background: #fafbfd; }
.mom-icon { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.mom-ic-follow { background: linear-gradient(135deg,#7c6cf5,#5b4ce0); }
.mom-ic-follow_auto { background: linear-gradient(135deg,#9b7bf7,#7857e8); }
.mom-ic-schedule { background: linear-gradient(135deg,#4d9bff,#2f7cf0); }
.mom-ic-moment { background: linear-gradient(135deg,#3fc38b,#28a86f); }
.mom-ic-log { background: linear-gradient(135deg,#b6bec9,#98a2b0); }
.mom-body { flex: 1; min-width: 0; }
.mom-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.mom-avatar { width: 22px; height: 22px; border-radius: 50%; background: #e9f2ff; color: #409eff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mom-av-follow, .mom-av-follow_auto { background: #efecff; color: #6a5cf0; }
.mom-av-schedule { background: #e8f2ff; color: #2f7cf0; }
.mom-av-moment { background: #e6f8f0; color: #21a06a; }
.mom-av-log { background: #f1f3f6; color: #8a94a6; }
.mom-user { color: #1f2d3d; font-weight: 600; }
.mom-action { color: #606266; }
.mom-time { margin-left: auto; color: #a8abb2; font-size: 12px; font-family: Consolas, monospace; }
.mom-del { color: #c0c4cc; font-size: 12px; cursor: pointer; }
.mom-del:hover { color: #f56c6c; }
.mom-card { margin-top: 8px; background: #f7f8fa; border-radius: 6px; padding: 9px 12px; }
.mom-content { font-size: 13px; color: #4b5563; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
/* 20261109f189：动态里的跟进结果（显示在跟进内容之前） */
.mom-result { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6a5cf0; background: #efecff; border-radius: 4px; padding: 1px 8px; margin-bottom: 6px; }
.mom-result b { font-weight: 600; }
.mom-result + .mom-content { margin-top: 0; }
.mom-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e6e8eb; font-size: 12px; color: #909399; }
.mom-meta-item b { font-weight: 400; color: #a8abb2; }
.mom-more { text-align: center; padding: 12px 0 4px; }
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d2935 0%, #2c3e50 55%, #3a5169 100%); }
.login-card { width: 380px; padding: 12px 8px; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.login-card h3 { text-align: center; margin: 8px 0 22px; letter-spacing: 1px; }
.dialog-text { max-height: 340px; overflow: auto; background: #f8f9fb; padding: 12px; border-radius: 6px; }
.dialog-line { margin: 6px 0; line-height: 1.6; }
.role-tag-ai { margin-right: 8px; }
.mt16 { margin-top: 16px; }

/* ===== 工作台首页（20261010j 科技感改版） ===== */
/* 顶部横幅 */
/* 20261108f179：工作台欢迎横幅改浅色玻璃拟态（浅蓝网格 / 青蓝光晕 / 深色渐变标题） */
.wb-hero { position:relative; overflow:hidden; border-radius:12px; padding:22px 26px; display:flex; align-items:center; gap:26px; background:linear-gradient(120deg,#f5faff 0%,#e9f2ff 48%,#e6f8fb 100%); border:1px solid rgba(120,170,255,.28); box-shadow:0 10px 26px rgba(64,120,200,.14); margin-bottom:14px; }
.wb-hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(59,130,246,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(59,130,246,.07) 1px,transparent 1px); background-size:26px 26px; -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.95),rgba(0,0,0,.3)); mask-image:linear-gradient(90deg,rgba(0,0,0,.95),rgba(0,0,0,.3)); }
.wb-hero-glow { position:absolute; border-radius:50%; filter:blur(46px); opacity:.4; pointer-events:none; }
.wb-hero-glow.g1 { width:230px; height:230px; right:130px; top:-100px; background:radial-gradient(circle,#22d3ee,transparent 70%); }
.wb-hero-glow.g2 { width:190px; height:190px; right:-50px; bottom:-90px; background:radial-gradient(circle,#3b82f6,transparent 70%); }
.wb-hero-main { position:relative; z-index:1; flex:1; min-width:0; }
.wb-hero-hello { font-size:21px; font-weight:700; letter-spacing:.5px; background:linear-gradient(100deg,#162c5e 0%,#1d4ed8 55%,#0891b2 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.wb-hero-hello::after { content:''; display:block; width:44px; height:3px; margin-top:8px; border-radius:2px; background:linear-gradient(90deg,#22d3ee,#3b82f6); box-shadow:0 0 10px rgba(34,211,238,.8); }
.wb-hero-date { font-size:12px; color:#7488a5; margin-top:9px; letter-spacing:.3px; }
.wb-hero-chips { position:relative; z-index:1; display:flex; gap:12px; }
.wb-chip { min-width:96px; padding:10px 16px; border-radius:10px; background:rgba(255,255,255,.62); border:1px solid rgba(120,170,255,.32); backdrop-filter:blur(4px); display:flex; flex-direction:column; align-items:center; gap:2px; transition:all .18s; }
.wb-chip.clickable { cursor:pointer; }
.wb-chip.clickable:hover { background:#fff; transform:translateY(-2px); box-shadow:0 8px 18px rgba(64,120,200,.18); }
.wb-chip.warn { border-color:rgba(248,113,113,.5); background:rgba(254,242,242,.9); }
.wb-chip.warn.clickable:hover { background:#fee2e2; }
.wb-chip-num { font-size:20px; font-weight:700; color:#16305e; font-family:Consolas,'DIN Alternate',monospace; line-height:1.2; }
.wb-chip.warn .wb-chip-num { color:#dc2626; }
.wb-chip-label { font-size:11px; color:#7b8ca6; }
.wb-chip.warn .wb-chip-label { color:#e11d48; }
.wb-hero-ctrl { position:relative; z-index:1; display:flex; align-items:center; gap:8px; }
.wb-hero-ctrl .el-select .el-input .el-input__inner { background:rgba(255,255,255,.85); border-color:rgba(120,170,255,.4); color:#33415e; }
.wb-hero-ctrl .el-select .el-input .el-input__inner::-webkit-input-placeholder { color:#9aa8bd; }
.wb-hero-ctrl .el-select .el-input .el-select__caret { color:#7b8ca6; }
.wb-hero-ctrl .wb-refresh-btn { background:rgba(255,255,255,.85); border-color:rgba(120,170,255,.4); color:#33415e; }
.wb-hero-ctrl .wb-refresh-btn:hover { background:#fff; color:#1d4ed8; }
/* KPI 统计卡 */
.wb-kpi-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:14px; }
.wb-stat { position:relative; overflow:hidden; background:#fff; border-radius:12px; padding:16px 18px 14px; border:1px solid #eef1f6; box-shadow:0 2px 10px rgba(15,40,80,.05); transition:all .2s; }
.wb-stat.clickable { cursor:pointer; }
.wb-stat.clickable:hover { transform:translateY(-3px); box-shadow:0 10px 22px rgba(15,40,80,.13); border-color:transparent; }
.wb-stat::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--ac); border-radius:4px 0 0 4px; }
.wb-stat::after { content:''; position:absolute; right:-26px; top:-26px; width:88px; height:88px; border-radius:50%; background:var(--ac-soft); }
.wb-stat.c-blue { --ac:#3b82f6; --ac-soft:rgba(59,130,246,.12); }
.wb-stat.c-cyan { --ac:#06b6d4; --ac-soft:rgba(6,182,212,.12); }
.wb-stat.c-gold { --ac:#f59e0b; --ac-soft:rgba(245,158,11,.12); }
.wb-stat.c-purple { --ac:#8b5cf6; --ac-soft:rgba(139,92,246,.12); }
.wb-stat-icon { position:relative; z-index:1; width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--ac-soft); color:var(--ac); margin-bottom:10px; }
.wb-stat-num { position:relative; z-index:1; font-size:26px; font-weight:700; color:#1e293b; line-height:1.1; font-family:Consolas,'DIN Alternate',monospace; }
.wb-stat-label { position:relative; z-index:1; font-size:12px; color:#8a94a6; margin-top:3px; }
.wb-stat-sub { position:relative; z-index:1; font-size:11px; color:#c0c7d1; margin-top:2px; }
.wb-stat-line { position:absolute; left:0; right:0; bottom:0; height:2px; background:linear-gradient(90deg,var(--ac),transparent); opacity:0; transition:opacity .2s; }
.wb-stat.clickable:hover .wb-stat-line { opacity:1; }
/* 三列面板 */
.wb-home-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr 1.1fr; gap:14px; }
.wb-panel { background:#fff; border-radius:12px; border:1px solid #eef1f6; box-shadow:0 2px 10px rgba(15,40,80,.05); overflow:hidden; display:flex; flex-direction:column; }
.wb-panel-head { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #f0f3f8; font-weight:600; font-size:13px; color:#1e293b; background:linear-gradient(180deg,#fbfcfe,#f6f8fb); }
.wb-panel-head::before { content:''; width:8px; height:8px; border-radius:2px; background:linear-gradient(135deg,#3b82f6,#22d3ee); box-shadow:0 0 8px rgba(34,211,238,.65); flex:none; }
.wb-panel-badge { margin-left:auto; font-size:11px; font-weight:600; color:#3b82f6; background:rgba(59,130,246,.1); padding:2px 8px; border-radius:10px; }
.wb-panel-tip { color:#c0c7d1; cursor:help; font-size:12px; font-weight:400; }
.wb-panel-body { padding:14px 16px; flex:1; }
/* 跟进方式分布条形图 */
.wb-bars { display:flex; flex-direction:column; gap:14px; padding-top:2px; }
.wb-bar-row { display:flex; align-items:center; gap:10px; }
.wb-bar-name { width:60px; flex:none; font-size:12px; color:#5b6472; text-align:right; }
.wb-bar-track { flex:1; height:8px; border-radius:4px; background:#f1f4f8; overflow:hidden; }
.wb-bar-fill { height:100%; border-radius:4px; position:relative; transition:width .7s cubic-bezier(.25,.8,.35,1); }
.wb-bar-fill::after { content:''; position:absolute; right:0; top:0; bottom:0; width:6px; background:rgba(255,255,255,.45); border-radius:4px; }
.wb-bar-fill.c-blue { background:linear-gradient(90deg,#3b82f6,#22d3ee); box-shadow:0 0 8px rgba(59,130,246,.35); }
.wb-bar-fill.c-green { background:linear-gradient(90deg,#10b981,#6ee7b7); box-shadow:0 0 8px rgba(16,185,129,.35); }
.wb-bar-fill.c-orange { background:linear-gradient(90deg,#f59e0b,#fcd34d); box-shadow:0 0 8px rgba(245,158,11,.35); }
.wb-bar-fill.c-purple { background:linear-gradient(90deg,#8b5cf6,#c4b5fd); box-shadow:0 0 8px rgba(139,92,246,.35); }
.wb-bar-fill.c-gray { background:linear-gradient(90deg,#94a3b8,#cbd5e1); }
.wb-bar-val { width:40px; flex:none; font-size:13px; font-weight:700; color:#1e293b; font-family:Consolas,monospace; text-align:right; }
/* 20261109f190：分布图数字穿透（科技感渐变数字，仅点击数字跳转）；20261110f191：去掉数字旁小箭头 */
.wb-bar-val.wb-drill-num { cursor:pointer; width:auto; min-width:40px; padding:0 2px; color:transparent; -webkit-text-fill-color:transparent; background:linear-gradient(90deg,#2563eb,#06b6d4); -webkit-background-clip:text; background-clip:text; border-radius:4px; transition:transform .18s, filter .18s; }
.wb-bar-val.wb-drill-num:hover { transform:scale(1.18); filter:drop-shadow(0 0 6px rgba(37,99,235,.55)); }
.wb-bar-pct { width:36px; flex:none; font-size:11px; color:#9aa4b2; text-align:right; font-family:Consolas,monospace; }
/* 提醒小秘书发光列表 */
.wb-sec-list { display:flex; flex-direction:column; gap:8px; }
.wb-sec-row { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:8px; background:#f8fafc; border:1px solid #f0f3f8; transition:all .15s; }
.wb-sec-row.clickable { cursor:pointer; }
.wb-sec-row.clickable:hover { border-color:#bcd9ff; background:#f3f9ff; transform:translateX(3px); }
.wb-sec-row.danger:hover { border-color:#fecaca; background:#fef5f5; }
.wb-sec-dot { width:8px; height:8px; border-radius:50%; flex:none; }
.wb-sec-dot.b-blue { background:#3b82f6; box-shadow:0 0 7px rgba(59,130,246,.75); }
.wb-sec-dot.b-cyan { background:#06b6d4; box-shadow:0 0 7px rgba(6,182,212,.75); }
.wb-sec-dot.b-gold { background:#f59e0b; box-shadow:0 0 7px rgba(245,158,11,.75); }
.wb-sec-dot.b-orange { background:#fb923c; box-shadow:0 0 7px rgba(251,146,60,.75); }
.wb-sec-dot.b-red { background:#ef4444; box-shadow:0 0 7px rgba(239,68,68,.75); }
.wb-sec-label { font-size:12.5px; color:#5b6472; flex:1; }
.wb-sec-num { font-size:16px; font-weight:700; color:#1e293b; font-family:Consolas,monospace; }
/* 系统提醒时间轴 */
.wb-tl { display:flex; flex-direction:column; max-height:420px; overflow:auto; padding:4px 2px 4px 6px; }
.wb-tl-item { position:relative; padding:0 0 16px 20px; }
.wb-tl-item:last-child { padding-bottom:4px; }
.wb-tl-item::before { content:''; position:absolute; left:5px; top:14px; bottom:-2px; width:1.5px; background:linear-gradient(#dbe7f5,#eef3f9); }
.wb-tl-item:last-child::before { display:none; }
.wb-tl-dot { position:absolute; left:0; top:5px; width:11px; height:11px; border-radius:50%; background:#fff; border:2.5px solid #3b82f6; box-shadow:0 0 8px rgba(59,130,246,.45); transition:background .15s; }
.wb-tl-item.clickable { cursor:pointer; }
.wb-tl-item.clickable:hover .wb-tl-title { color:#2563eb; }
.wb-tl-item.clickable:hover .wb-tl-dot { background:#3b82f6; }
.wb-tl-title { font-size:13px; font-weight:600; color:#1e293b; transition:color .15s; }
.wb-tl-sub { font-size:12px; color:#6b7686; margin-top:3px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.wb-tl-meta { font-size:11px; color:#9aa4b2; margin-top:4px; font-family:Consolas,monospace; }
@media (max-width:1280px) { .wb-home-grid { grid-template-columns:1fr 1fr; } .wb-hero-chips { display:none; } }
@media (max-width:900px) { .wb-home-grid { grid-template-columns:1fr; } .wb-hero { flex-wrap:wrap; } }
/* 工作台内部子 tab */
.workbench-tabs { display:flex; gap:4px; border-bottom:1px solid #ebeef5; padding:0 4px; margin-bottom:10px; background:#fff; border-radius:6px 6px 0 0; }
.wtab { padding:8px 18px; cursor:pointer; font-size:13px; color:#606266; border-bottom:2px solid transparent; transition:all .15s; }
.wtab:hover { color:#409EFF; }
.wtab.active { color:#409EFF; border-bottom-color:#409EFF; font-weight:600; }
/* ===== 工作台 › 跟进汇总（20261031f48） ===== */
.wb-sum-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 14px; margin-bottom:10px; background:#fff; border:1px solid #eef1f6; border-radius:8px; box-shadow:0 1px 4px rgba(15,40,80,.04); }
/* ===== 工作台 › 审批（20261110f199，参考孚盟 MX） ===== */
.wtab-badge { display:inline-block; min-width:16px; height:16px; line-height:16px; padding:0 4px; margin-left:4px; font-size:11px; color:#fff; background:#f56c6c; border-radius:8px; vertical-align:1px; }
.appr-tabs { display:flex; align-items:center; gap:2px; border-bottom:1px solid #ebeef5; margin-bottom:10px; background:#fff; border-radius:6px 6px 0 0; padding:0 6px; }
.appr-tab { padding:9px 18px; font-size:13px; color:#606266; cursor:pointer; border-bottom:2px solid transparent; transition:all .15s; }
.appr-tab:hover { color:#409EFF; }
.appr-tab.on { color:#409EFF; border-bottom-color:#409EFF; font-weight:600; }
.appr-panel { background:#fff; border:1px solid #eef1f6; border-radius:8px; box-shadow:0 1px 4px rgba(15,40,80,.04); overflow:hidden; }
.appr-subject { color:#1e293b; font-weight:500; }
.appr-st { display:inline-block; padding:1px 8px; font-size:12px; border-radius:10px; }
.appr-st.st-pending { color:#b45309; background:#fef3c7; }
.appr-st.st-approved { color:#047857; background:#d1fae5; }
.appr-st.st-rejected { color:#b91c1c; background:#fee2e2; }
.appr-st.st-draft { color:#475569; background:#f1f5f9; }
.appr-st.st-voided { color:#6b7280; background:#f3f4f6; }
.appr-yes { color:#047857; }
.appr-no { color:#c2410c; }
.appr-empty-tip { padding:10px 14px; font-size:12px; color:#909399; border-top:1px solid #f4f6fa; background:#fcfdff; }
.wb-sum-nav { display:flex; align-items:center; gap:6px; }
.wb-sum-divider { width:1px; height:20px; background:#e8edf4; }
.wb-sum-range { font-size:13px; color:#1e293b; font-family:Consolas,monospace; min-width:196px; text-align:center; }
.wb-sum-spacer { flex:1; }
.wb-sum-hint { font-size:12px; color:#909399; }
.wb-sum-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.wb-sum-kpi { display:flex; flex-direction:column; gap:4px; padding:14px 16px; background:linear-gradient(135deg,#fff,#f7fbff); border:1px solid #eef1f6; border-radius:10px; box-shadow:0 2px 10px rgba(15,40,80,.05); }
.wb-sum-kpi-num { font-size:22px; font-weight:700; font-family:Consolas,monospace; background:linear-gradient(100deg,#2563eb,#06b6d4); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.wb-sum-kpi-lab { font-size:12px; color:#7b8794; }
.wb-sum-trend { display:flex; align-items:flex-end; gap:8px; overflow-x:auto; padding:6px 2px 2px; }
.wb-sum-b { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:46px; flex:1; }
.wb-sum-b-val { font-size:12px; color:#334155; font-family:Consolas,monospace; font-weight:600; }
.wb-sum-b-track { width:100%; max-width:46px; height:110px; display:flex; align-items:flex-end; background:#f4f7fb; border-radius:4px; overflow:hidden; }
.wb-sum-b-track i { display:block; width:100%; background:linear-gradient(180deg,#60a5fa,#22d3ee); border-radius:4px; box-shadow:0 0 8px rgba(34,211,238,.35); transition:height .5s ease; }
.wb-sum-b-lab { font-size:11px; color:#9aa4b2; font-family:Consolas,monospace; white-space:nowrap; }
.wb-sum-pct { display:flex; align-items:center; gap:8px; }
.wb-sum-pct i { display:block; height:6px; width:0; border-radius:3px; background:linear-gradient(90deg,#3b82f6,#22d3ee); max-width:70px; transition:width .5s ease; }
.wb-sum-pct span { font-size:11px; color:#7b8794; font-family:Consolas,monospace; }
.wb-sum-pct-all { font-size:11px; color:#909399; }
.wb-sum-row-total td { background:#fafcff !important; font-weight:600; }
/* 20261031f54：跟进汇总穿透（KPI 卡 / 时间桶柱 / 矩阵行名与数字 → 跟进列表明细） */
.wb-sum-kpi.clickable, .wb-sum-b.clickable { cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.wb-sum-kpi.clickable:hover, .wb-sum-b.clickable:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(37,99,235,.16); }
.wb-sum-b.clickable:hover .wb-sum-b-track { background:#e8f1ff; }
.wb-sum-link { cursor:pointer; color:#2563eb; }
.wb-sum-link:hover { text-decoration:underline; }
/* 20261101f79：跟进曲线看板（所选统计时段 × 粒度 × 维度，每人一条折线） */
.wb-sum-curve-peak { font-size:11px; font-weight:600; color:#64748b; background:#f4f7fb; border:1px solid #e6edf6; padding:2px 8px; border-radius:10px; flex:none; }
.wb-sum-curve .wb-panel-badge { margin-left:0; }
.wb-sum-curve-box { position:relative; }
.wb-sum-curve-svg { display:block; width:100%; height:240px; }
/* 20261101f83：曲线纵轴数值（随跟进量自适应）+ 每个数据点直接标注跟进数量 */
.wb-sum-curve-y { position:absolute; left:0; top:0; width:44px; height:240px; pointer-events:none; z-index:3; }
.wb-sum-curve-y span { position:absolute; right:4px; transform:translateY(-50%); font-size:11px; line-height:1; color:#9aa4b2; font-family:Consolas,monospace; }
.wb-sum-curve-vals { position:absolute; left:0; top:0; width:100%; height:240px; pointer-events:none; z-index:4; }
.wb-sum-curve-vals span { position:absolute; transform:translate(-50%,-130%); font-size:11px; font-weight:600; line-height:1.2; font-family:Consolas,monospace; background:rgba(255,255,255,.88); border-radius:3px; padding:0 2px; }
.wb-sum-curve-x { position:relative; height:18px; margin-top:2px; }
.wb-sum-curve-xl { position:absolute; top:0; transform:translateX(-50%); font-size:11px; color:#9aa4b2; font-family:Consolas,monospace; white-space:nowrap; }
.wb-sum-curve-legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-top:10px; }
.wb-sum-curve-lg { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#5b6472; cursor:pointer; user-select:none; padding:2px 7px; border-radius:6px; transition:background .15s ease, opacity .15s ease; }
.wb-sum-curve-lg:hover { background:#f4f7fb; }
.wb-sum-curve-lg i { width:10px; height:10px; border-radius:3px; flex:none; display:inline-block; }
.wb-sum-curve-lg b { color:#1e293b; font-weight:600; font-family:Consolas,monospace; }
.wb-sum-curve-lg.off { opacity:.42; color:#b6bec9; }
.wb-sum-curve-lg.c-reset { color:#2563eb; }
.wb-sum-curve-more { font-size:11px; color:#b6bec9; }
.wb-sum-curve-tip { position:absolute; top:4px; transform:translateX(-50%); min-width:132px; max-width:220px; padding:8px 10px; border-radius:8px; background:rgba(24,32,44,.92); color:#fff; font-size:12px; box-shadow:0 8px 22px rgba(15,40,80,.22); pointer-events:none; z-index:6; }
.wb-sum-curve-tip-h { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:5px; margin-bottom:5px; border-bottom:1px solid rgba(255,255,255,.16); font-weight:600; }
.wb-sum-curve-tip-h b { font-family:Consolas,monospace; color:#7dd3fc; }
.wb-sum-curve-tip-r { display:flex; align-items:center; gap:6px; line-height:1.7; }
.wb-sum-curve-tip-r i { width:8px; height:8px; border-radius:2px; flex:none; }
.wb-sum-curve-tip-r span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:132px; color:#e5eaf1; }
.wb-sum-curve-tip-r b { font-family:Consolas,monospace; color:#fff; }
.wb-sum-curve-tip-m { margin-top:4px; font-size:11px; color:#9fb0c4; }
.wb-sum-curve-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:12px; color:#b6bec9; background:rgba(255,255,255,.55); }
@media (max-width:900px) { .wb-sum-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* 自定义日历（孚盟MX风格：白底、灰线、农历、节气、节日） */
/* ===== 日程日历（20261031f64 科技感改版：渐变光晕 + 网格纹理 + 玻璃拟态工具栏） ===== */
.cal-tech { position: relative; border-radius: 14px; padding: 14px; overflow: hidden;
  background:
    radial-gradient(900px 340px at 8% -12%, rgba(47,124,255,.20), transparent 62%),
    radial-gradient(760px 300px at 96% -6%, rgba(0,206,255,.18), transparent 60%),
    linear-gradient(180deg,#f6faff 0%, #edf3ff 100%);
  border: 1px solid rgba(47,124,255,.18);
  box-shadow: 0 14px 34px rgba(30,80,170,.10), inset 0 1px 0 #fff;
  animation: cal-fade-in .38s ease both;
}
.cal-tech::before { content:''; position:absolute; inset:0; pointer-events:none; opacity:.9;
  background-image: linear-gradient(rgba(47,124,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47,124,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.cal-tech::after { content:''; position:absolute; pointer-events:none; width:320px; height:320px; right:-90px; bottom:-120px; border-radius:50%;
  background: radial-gradient(circle, rgba(0,206,255,.16), transparent 70%); }
@keyframes cal-fade-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
.cal-toolbar { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; padding:10px 14px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border:1px solid rgba(47,124,255,.16); border-radius:12px;
  box-shadow: 0 8px 20px rgba(47,111,255,.10); }
.cal-toolbar-left { display:flex; align-items:center; gap:12px; }
.cal-toolbar-right { display:flex; align-items:center; gap:10px; }
.cal-brand { display:flex; align-items:center; gap:9px; }
.cal-brand-ico { width:32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px;
  background: linear-gradient(135deg,#2f7cff,#00ceff); box-shadow: 0 6px 16px rgba(47,124,255,.38), inset 0 1px 0 rgba(255,255,255,.55); }
.cal-brand-title { font-size:15px; font-weight:700; color:#1f2d3d; letter-spacing:.5px; line-height:1.2; }
.cal-brand-sub { font-size:10.5px; color:#98a6b8; letter-spacing:2px; text-transform:uppercase; }
.cal-scope-select { font-size:13px; color:#606266; }
.cal-scope-select .el-radio-button__inner { padding:6px 14px; }
.cal-nav { display:flex; align-items:center; gap:6px; }
.cal-month-label { font-size:19px; font-weight:800; letter-spacing:.6px; min-width:132px; text-align:center;
  background: linear-gradient(90deg,#2f7cff,#00ceff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.cal-nav-btn { border:1px solid rgba(47,124,255,.30); background:rgba(255,255,255,.92); color:#2f7cff; border-radius:8px; cursor:pointer; font-size:15px;
  width:30px; height:28px; display:flex; align-items:center; justify-content:center; transition:all .16s; line-height:1; }
.cal-nav-btn:hover { color:#fff; border-color:transparent; background: linear-gradient(135deg,#2f7cff,#00ceff); box-shadow: 0 6px 14px rgba(47,124,255,.32); }
.cal-nav-today { width:auto; padding:0 13px; font-size:12.5px; font-weight:500; }
.cal-view-toggle { display:flex; border:1px solid rgba(47,124,255,.24); border-radius:9px; overflow:hidden; background:rgba(255,255,255,.92); }
.cal-view-toggle button { border:none; background:transparent; color:#5a6b80; font-size:12px; padding:6px 13px; cursor:pointer; transition:all .16s; }
.cal-view-toggle button.active { background: linear-gradient(135deg,#2f7cff,#00ceff); color:#fff; box-shadow: 0 4px 12px rgba(47,124,255,.30); }
.cal-view-toggle button:hover:not(.active) { background: rgba(47,124,255,.08); }
/* 顶部 KPI 概览条 */
.cal-kpis { position:relative; z-index:2; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.cal-kpi { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:12px; background:rgba(255,255,255,.86);
  border:1px solid rgba(47,124,255,.14); box-shadow: 0 6px 16px rgba(47,111,255,.07); transition:transform .16s, box-shadow .16s; }
.cal-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(47,111,255,.14); }
.cal-kpi-ico { width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:13px; color:#fff; flex:none; }
.cal-kpi-ico.i1 { background: linear-gradient(135deg,#2f7cff,#6ba8ff); }
.cal-kpi-ico.i2 { background: linear-gradient(135deg,#00c2a8,#37e0b0); }
.cal-kpi-ico.i3 { background: linear-gradient(135deg,#f5a623,#ffcd5c); }
.cal-kpi-ico.i4 { background: linear-gradient(135deg,#8b6bff,#c4a8ff); }
.cal-kpi-num { font-family:'DIN Alternate',Consolas,monospace; font-size:19px; font-weight:800; color:#1f2d3d; line-height:1.1; }
.cal-kpi-lab { font-size:11.5px; color:#8a97a8; margin-top:2px; }
.cal-grid { position:relative; z-index:2; background:rgba(255,255,255,.94); border-radius:12px; overflow:hidden;
  border:1px solid rgba(47,124,255,.18); box-shadow: 0 14px 30px rgba(30,80,170,.10); }
.cal-week-row { display:grid; grid-template-columns:repeat(7,1fr); border-bottom:1px solid rgba(47,124,255,.22); background: linear-gradient(90deg, rgba(47,124,255,.14), rgba(0,206,255,.12)); }
.cal-week-cell { text-align:center; padding:11px 0; font-size:12.5px; color:#3b4a5a; font-weight:600; letter-spacing:1.5px; }
.cal-week-cell.weekend { color:#ff7875; }
.cal-body { display:flex; flex-direction:column; }
.cal-row { display:grid; grid-template-columns:repeat(7,1fr); border-bottom:1px solid rgba(47,124,255,.10); }
.cal-row:last-child { border-bottom:none; }
.cal-cell { min-height:108px; padding:5px 7px; border-right:1px solid rgba(47,124,255,.10); cursor:pointer; display:flex; flex-direction:column; overflow:hidden;
  transition: background .16s, box-shadow .16s; position:relative; }
.cal-cell:last-child { border-right:none; }
.cal-cell:hover { background: rgba(47,124,255,.06); box-shadow: inset 0 0 0 1px rgba(47,124,255,.28); }
.cal-cell.other { background: rgba(245,248,253,.65); }
.cal-cell.other .cal-cell-num { color:#c2cad6; }
.cal-cell.other .cal-cell-lunar { color:#ccd3dd; }
.cal-cell.today { background: linear-gradient(180deg, rgba(47,124,255,.12), rgba(0,206,255,.05)); }
.cal-cell.today::after { content:''; position:absolute; inset:0; pointer-events:none; box-shadow: inset 0 0 0 2px rgba(47,124,255,.42), inset 0 0 26px rgba(47,124,255,.16); }
.cal-cell-date { display:flex; align-items:baseline; gap:6px; margin-bottom:3px; }
.cal-cell-num { font-size:15px; font-weight:700; color:#25324a; line-height:1.2; font-family:'DIN Alternate',Consolas,monospace; }
.cal-cell-num.today { color:#fff; background: linear-gradient(135deg,#2f7cff,#00ceff); border-radius:50%; width:25px; height:25px; display:flex; align-items:center; justify-content:center;
  font-size:13px; box-shadow: 0 5px 14px rgba(47,124,255,.42); }
.cal-cell-lunar { font-size:11px; color:#9ba4b0; line-height:1.2; }
.cal-cell-lunar.holiday { color:#ff7875; font-weight:600; }
.cal-cell-lunar.term { color:#00b894; font-weight:600; }
.cal-cell-events { display:flex; flex-direction:column; gap:3px; flex:1; overflow:hidden; }
.cal-event { font-size:11.5px; padding:3px 7px; border-radius:6px; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer;
  transition: transform .14s, box-shadow .14s; margin:0; box-shadow: 0 2px 8px -5px rgba(31,45,61,.5); }
.cal-event:hover { transform: translateX(2px); box-shadow: 0 6px 14px -6px rgba(47,124,255,.5); }
.cal-event .cal-tag { font-size:10px; color:#fff; border-radius:3px; padding:0 5px; margin-right:4px; font-weight:600; }
/* 已完成日程：标题划线（20261011h2）+ 条目内完成勾按钮 */
.cal-ev-t.done { text-decoration: line-through; opacity: .55; }
.cal-ev-done { display:none; float:right; width:15px; height:15px; line-height:15px; text-align:center; border-radius:50%; border:1px solid currentColor; font-size:10px; opacity:.65; cursor:pointer; margin-left:4px; transition:all .12s; }
.cal-event:hover .cal-ev-done { display:inline-block; }
.cal-ev-done:hover { opacity:1; transform:scale(1.15); background:rgba(0,184,148,.2); border-color:#00b894; color:#00b894; }
.cal-ev-done.on { display:inline-block; background:#00b894; border-color:#00b894; color:#fff; opacity:.9; }
/* 周视图 */
.cal-week-view .cal-cell { min-height:auto; height:auto; padding:8px 10px; flex-direction:row; align-items:center; gap:10px; }
.cal-week-view .cal-cell-date { margin:0; flex:0 0 auto; }
.cal-week-view .cal-cell-events { flex-direction:row; flex-wrap:wrap; gap:5px; overflow:visible; }
.cal-week-view .cal-event { white-space:normal; max-width:240px; }
/* 空状态 */
.cal-empty-hint { position:relative; z-index:2; text-align:center; padding:32px 20px; margin-top:12px; color:#93a1b3; font-size:13px;
  border-radius:12px; border:1px dashed rgba(47,124,255,.28); background: rgba(255,255,255,.72); }
.cal-empty-hint svg { margin-bottom:8px; }
/* 新建按钮 */
.cal-new-btn { border:none !important; color:#fff !important; font-weight:600; border-radius:9px !important;
  background: linear-gradient(135deg,#2f7cff,#00ceff) !important; box-shadow: 0 8px 18px rgba(47,124,255,.32) !important; }
.cal-new-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(47,124,255,.42) !important; }
/* 日程弹窗颜色选择 */
.cal-color-row { display:flex; gap:8px; padding:4px 0; }
.cal-color-dot { width:24px; height:24px; border-radius:50%; cursor:pointer; border:2px solid transparent; transition:all .15s; }
.cal-color-dot:hover { transform:scale(1.1); }
.cal-color-dot.active { border-color:#303133; transform:scale(1.1); box-shadow: 0 0 0 3px rgba(47,124,255,.16); }
/* 提醒时间必填提示（20261031f64） */
.cal-remind-hint { font-size:12px; color:#909399; }
.cal-remind-hint b { color:#f56c6c; }
/* 响应式 */
@media (max-width:1200px) { .cal-cell { min-height:80px; } .cal-cell-num { font-size:13px; } .cal-cell-lunar { font-size:10px; } .cal-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:768px) { .cal-toolbar { flex-wrap:wrap; gap:8px; } .cal-cell { min-height:60px; } .cal-cell-lunar { display:none; } .cal-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* 任务中心入口与任务列表（20261010f） */
.task-entry { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #606266; border-radius: 4px; position: relative; vertical-align: middle; margin-right: 10px; }
.task-entry:hover { color: #409eff; background: #ecf5ff; }
.task-entry.running { color: #e6a23c; background: #fdf6ec; }
.task-dot { position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; background: #e6a23c; border-radius: 50%; border: 1.5px solid #fff; }
/* 20261031f25：右上角任务栏浮层（逐条展示导入任务进度） */
.task-count { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; line-height: 15px; padding: 0 3px; border-radius: 8px; background: #f56c6c; color: #fff; font-size: 10px; font-weight: 600; text-align: center; border: 1px solid #fff; box-sizing: border-box; }
.task-pop-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0; margin-bottom: 6px; font-size: 13px; color: #303133; }
.task-pop-head span { color: #909399; font-size: 12px; }
.task-pop-head span.hot { color: #e6a23c; font-weight: 600; }
.task-pop-list { max-height: 340px; overflow-y: auto; }
.task-pop-item { padding: 8px 2px; border-bottom: 1px dashed #f0f0f0; }
.task-pop-item:last-child { border-bottom: none; }
.task-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.task-pop-file { font-size: 12px; font-weight: 600; color: #303133; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.task-pop-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: #909399; font-size: 11px; margin-top: 4px; }
.task-pop-meta .task-pop-err { color: #f56c6c; word-break: break-all; }
.task-pop-result { color: #606266; font-size: 11px; line-height: 1.6; margin-top: 3px; }
.task-pop-ops { margin-top: 2px; }
.task-pop-ops .el-button { padding: 2px 0; height: auto; }
.task-pop-foot { border-top: 1px solid #f0f0f0; margin-top: 4px; padding-top: 4px; text-align: right; }
.task-item { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; }
.task-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-file { font-weight: 600; color: #303133; word-break: break-all; }
.task-bar { margin-top: 6px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #909399; font-size: 12px; margin-top: 4px; }
.task-result { color: #606266; font-size: 12px; margin-top: 4px; line-height: 1.6; }
.task-err { color: #f56c6c; font-size: 12px; margin-top: 4px; word-break: break-all; }
.task-ops { margin-top: 2px; }
.task-ops .el-button { margin-left: 0; margin-right: 10px; }
.imp-stat-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 顶部通知铃铛与消息抽屉 */
.notify-bell { cursor: pointer; display: inline-flex; align-items: center; color: #606266; padding: 4px; border-radius: 4px; }
.notify-bell:hover { color: #409eff; background: #ecf5ff; }
.notify-item { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; cursor: pointer; border-radius: 4px; }
.notify-item:hover { background: #f5f7fa; }
.notify-item.unread { background: #ecf5ff; }
.notify-item.unread:hover { background: #d9ecff; }
/* 客户列表：仅编号/名称列可点开详情 */
.cell-link { color: #409eff; cursor: pointer; }
.cell-link:hover { color: #2c6fd1; text-decoration: underline; }
/* 表单项旁的灰色说明文字（公海设置等配置页） */
.form-tip { color: #999; font-size: 12px; }

/* 客户详情（孚盟MX 模式）：顶部字段概览栅格 + 下方页签 */
/* 详情独立页签形态：白底圆角卡片（复用 .cust-detail-dlg 的 fd-* 内部样式） */
.detail-page-wrap { background: #fff; border-radius: 8px; padding: 16px 20px; }
.cust-detail-dlg .fd-head { padding: 0 4px; }
.cust-detail-dlg .fd-title-row { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; }
.cust-detail-dlg .fd-title { font-size: 18px; font-weight: 700; color: #1f2d3d; letter-spacing: .3px; }
.cust-detail-dlg .fd-title-spacer { flex: 1; }
.cust-detail-dlg .fd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 28px; padding: 14px 6px 16px; border-bottom: 1px solid var(--el-border-color-lighter); background: #fafbfd; border-radius: 8px; }
.cust-detail-dlg .fd-item { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cust-detail-dlg .fd-label { flex: 0 0 78px; font-size: 13px; color: #8f9bb3; line-height: 1.5; text-align: right; }
.cust-detail-dlg .fd-val { font-size: 13px; color: #303133; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-detail-dlg .fd-strong { font-weight: 600; color: #303133; }
.cust-detail-dlg .fd-tabs { margin-top: 4px; }
.cust-detail-dlg .fd-tabs .el-tabs__header { margin-bottom: 12px; }
.cust-detail-dlg .fd-tabs .el-tabs__item { font-size: 14px; }

/* 侧边栏一级导航 + 顶部页签（参考孚盟MX 交互） */
.side-aside { overflow: visible; display: flex; flex-direction: column; }
.side-nav { padding: 6px 10px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(30, 80, 160, .18); border-radius: 3px; }
/* 底栏固定区（20261031f7）：菜单设置 + 系统设置，始终位于左侧最底部 */
.side-nav-bottom { flex: none; padding: 4px 10px 6px; border-top: 1px solid rgba(30, 80, 160, .1); }
.side-nav-bottom .nav-item { margin: 4px 0; }
/* 侧边栏底部版本号：远程排查「浏览器是否在跑旧版脚本」 */
.ver-tag { flex: none; padding: 10px 14px; text-align: center; color: rgba(191, 203, 217, .45); font-size: 11px; font-family: Consolas, Menlo, monospace; letter-spacing: .5px; user-select: text; }
/* 侧边栏底部 ICP 备案号（20261031f44）：公开站点合规展示 */
.icp-tag { flex: none; padding: 0 10px 8px; text-align: center; font-size: 11px; letter-spacing: .3px; }
.icp-tag a { color: #9fb0c6; text-decoration: none; transition: color .2s; }
.icp-tag a:hover { color: #2563eb; text-decoration: underline; }
/* 20261108f179：浅色侧栏菜单——灰蓝字、hover 浅蓝、选中浅蓝渐变 + 左侧光条（f180 由深色胶囊调浅） */
.nav-item { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; margin: 4px 0; border-radius: 8px; color: #55647c; font-size: 14px; cursor: pointer; user-select: none; transition: background .2s, color .2s; }
.nav-item:hover { color: #1d4ed8; background: rgba(47, 124, 246, .08); }
.nav-item.active { color: #1d4ed8; background: linear-gradient(90deg, rgba(47, 124, 246, .15) 0%, rgba(30, 167, 233, .09) 100%); font-weight: 600; box-shadow: inset 3px 0 0 #2f7cf6, 0 2px 8px rgba(47, 124, 246, .12); }
.nav-arrow { font-style: normal; font-size: 18px; line-height: 1; opacity: .7; transition: transform .2s; }
.nav-arrow.open { transform: rotate(90deg); }
/* 一级导航小图标：图标+文字包在 .nav-lab 内保持「左文右箭头」布局 */
.nav-lab { display: inline-flex; align-items: center; min-width: 0; }
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 8px; flex: none; opacity: .9; }
.nav-ico svg { width: 100%; height: 100%; display: block; }

/* 二级弹出面板（孚盟MX 格式：白色大面板 + 圆点列表） */
.sub-panel { position: fixed; left: 206px; width: 230px; background: #fff; border-radius: 10px; box-shadow: 0 10px 34px rgba(0, 0, 0, .22); padding: 14px 0; z-index: 2100; }
.panel-item { display: flex; align-items: center; gap: 14px; padding: 13px 26px; color: #303133; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.panel-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #c8ccd4; flex-shrink: 0; transition: background .15s; }
.panel-item:hover { background: #f7f8fa; color: #409eff; }
.panel-item:hover .dot { background: #409eff; }
.panel-item.active { color: #409eff; font-weight: 600; }
.panel-item.active .dot { background: #409eff; }
.panel-item.disabled, .panel-item.disabled:hover { color: #c0c4cc; cursor: not-allowed; background: transparent; }
.panel-item.disabled:hover .dot { background: #c8ccd4; }
/* 自定义一级目录暂无二级菜单时的提示（20261031f9） */
.panel-empty { padding: 14px 26px; color: #b1b3b8; font-size: 12px; white-space: nowrap; }
.panel-fade-enter-active, .panel-fade-leave-active { transition: opacity .18s, transform .18s; }
.panel-fade-enter-from, .panel-fade-leave-to { opacity: 0; transform: translateX(-8px); }

/* 顶部多页签栏（打开过的页面常驻，keep-alive 保活）+ 右侧固定「关闭全部」 */
.page-tabs-wrap { display: flex; align-items: stretch; background: #e9edf2; padding: 6px 10px 0 12px; flex-shrink: 0; overflow: hidden; }
/* 20261031f59：页签横向超出时用 ◀ ▶ 箭头滚动，隐藏滚动条（参考孚盟MX 页签栏末尾的箭头） */
.page-tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.page-tabs::-webkit-scrollbar { display: none; height: 0; }
.pt-arrow-group { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 2px 4px 6px; }
.pt-arrow { width: 22px; height: 22px; border: none; border-radius: 4px; background: transparent; color: #5a6b82; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, background .15s; }
.pt-arrow:hover { color: #409eff; background: rgba(64, 158, 255, .12); }
.pt-arrow.off { color: #c3c8d0; cursor: default; }
.pt-arrow.off:hover { color: #c3c8d0; background: transparent; }
.pt-tools { flex: none; display: flex; align-items: center; padding: 0 0 4px 8px; }
.pt-count { font-size: 12px; color: #8a94a6; margin-right: 6px; white-space: nowrap; }
.pt-count.full { color: #f56c6c; font-weight: 600; }
.pt-close-all { border: none; background: transparent; color: #7a8699; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.pt-close-all:hover { color: #f56c6c; background: rgba(245, 108, 108, .12); }
/* 20261114f227：刷新按钮紧贴活动页签右侧、20px 圆形、与页签文字垂直居中（参考孚盟 MX 页签栏） */
.pt-refresh { flex: none; align-self: center; width: 20px; height: 20px; margin: 0 2px 0 0; border: 1px solid #d9dee7; border-radius: 50%; background: #fff; color: #6b7a90; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.pt-refresh:hover { color: #409eff; border-color: #a0cfff; background: #ecf5ff; box-shadow: 0 1px 4px rgba(64, 158, 255, .18); }
.pt-refresh.spinning svg { animation: prbSpin .6s linear; }
.page-tab { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 6px 6px 0 0; background: #f5f7fa; color: #606266; font-size: 14px; cursor: pointer; user-select: none; white-space: nowrap; flex-shrink: 0; transition: background .15s, color .15s; }
.page-tab:hover { color: #409eff; }
.page-tab.active { background: #fff; color: #409eff; font-weight: 600; }
.tab-close { font-style: normal; font-size: 15px; line-height: 1; color: #a8abb2; padding: 0 1px; border-radius: 3px; }
.tab-close:hover { color: #fff; background: #f56c6c; }
/* 20261031f59：每个页面内容区自带的「刷新」（只刷新当前页面数据，不做全局刷新） */
.page-refresh-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 26px; margin-bottom: 10px; }
.prb-title { font-size: 13px; font-weight: 600; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prb-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 13px; background: #fff; color: #5a6b82; font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.prb-btn:hover { color: #409eff; border-color: #a0cfff; background: #ecf5ff; box-shadow: 0 1px 4px rgba(64, 158, 255, .22); }
.prb-btn.spinning svg { animation: prbSpin .6s linear; }
@keyframes prbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 20261114f228：客户列表内联编辑控件（默认无边框，悬停显示边框；选完即保存） */
.cell-inline .el-select__wrapper,
.cell-inline .el-input__wrapper { box-shadow: none !important; background: transparent; padding: 1px 4px; min-height: 24px; }
.cell-inline .el-select__wrapper:hover { box-shadow: 0 0 0 1px #dcdfe6 inset !important; }
.cell-tags-edit { display: block; min-height: 20px; }
.cell-tags-edit.clickable { cursor: pointer; }
.cell-tags-edit.clickable:hover { opacity: .86; }
/* 个人中心抽屉 */
.avatar-btn { cursor: pointer; display: inline-flex; align-items: center; color: #606266; margin-left: 14px; padding: 4px; border-radius: 50%; }
.avatar-btn:hover { color: #409eff; background: #ecf5ff; }
.pf-head { text-align: center; padding: 18px 0 6px; }
.pf-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #409eff, #2c6fd1); display: inline-flex; align-items: center; justify-content: center; }
.pf-name { font-size: 17px; font-weight: 600; margin-top: 12px; color: #303133; }
.pf-sub { font-size: 13px; color: #909399; margin-top: 2px; }
.pf-actions { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.pf-actions .el-button { margin: 0; }
.pf-block-title { font-size: 14px; font-weight: 600; color: #303133; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid #ebeef5; }
.pf-line { display: flex; justify-content: space-between; padding: 7px 4px; font-size: 13px; color: #909399; }
.pf-line b { color: #303133; font-weight: 500; }
/* 20261031f55：个人中心行内小操作（修改/绑定手机号、解除微信绑定） */
.pf-mini-link { color: #409eff; font-weight: 400; font-size: 12px; margin-left: 8px; cursor: pointer; }
.pf-mini-link:hover { text-decoration: underline; }
/* 20261031f51 自动锁屏：个人中心选项 + 全屏锁屏遮罩 */
.pf-lock-radios { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 2px; }
.pf-lock-radios .el-radio { margin-right: 14px; height: 28px; }
.lock-mask { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, #1f2d3d 0%, #2b3a4d 55%, #1b2733 100%); display: flex; align-items: center; justify-content: center; }
.lock-panel { width: 380px; max-width: 86vw; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 34px 30px 28px; text-align: center; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.lock-ico { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(64, 145, 255, .16); border: 1px solid rgba(64, 145, 255, .5); font-size: 28px; }
.lock-title { color: #fff; font-size: 18px; font-weight: 600; }
.lock-sub { color: #a7b4c6; font-size: 13px; margin: 6px 0 18px; }
.lock-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.lock-btns .el-button { margin: 0; }

/* 全局新建客户抽屉（孚盟MX 模式：主档+联系人两栏，可收起后继续操作其他页面） */
.cust-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 39%; min-width: 520px; background: #fff; box-shadow: -8px 0 28px rgba(0, 0, 0, .18); z-index: 2200; display: flex; flex-direction: column; }
.cust-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid #ebeef5; }
.cust-drawer-title { font-size: 16px; font-weight: 600; color: #303133; }
.cust-drawer-tools { display: flex; align-items: center; gap: 8px; }
.cust-drawer-close { font-style: normal; cursor: pointer; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 4px; color: #606266; font-size: 15px; }
.cust-drawer-close:hover { color: #fff; background: #f56c6c; }
.cust-drawer-body { flex: 1; overflow: hidden; display: flex; }
.cust-col { flex: 1; padding: 16px 20px; overflow: auto; }
.cust-col + .cust-col { border-left: 1px solid #ebeef5; }
.cust-col-title { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.cust-dup-tip { margin: -10px 0 12px 80px; color: #e6a23c; font-size: 12px; line-height: 1.5; }
.cust-contact { border: 1px solid #e4e7ed; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.cust-contact-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #f7f8fa; cursor: pointer; user-select: none; }
.cust-contact-head:hover { background: #f0f2f5; }
.cust-contact-name { font-weight: 600; font-size: 13px; color: #303133; }
.cust-contact-name .el-tag { margin-right: 6px; }
.cust-contact-ops { display: flex; align-items: center; gap: 10px; }
.cust-contact-del { font-style: normal; color: #f56c6c; font-size: 12px; cursor: pointer; }
.cust-contact-fold { font-style: normal; color: #909399; font-size: 13px; transition: transform .2s; }
.cust-contact-fold.flip { transform: rotate(180deg); }
.cust-contact-body { padding: 8px 12px 0; }
.cust-drawer-foot { padding: 12px 20px; border-top: 1px solid #ebeef5; text-align: right; }
.cust-drawer-enter-active, .cust-drawer-leave-active { transition: transform .25s ease, opacity .25s; }
.cust-drawer-enter-from, .cust-drawer-leave-to { transform: translateX(80px); opacity: 0; }
.cust-rail { position: fixed; right: 0; top: 45%; background: #409eff; color: #fff; padding: 14px 8px; border-radius: 8px 0 0 8px; writing-mode: vertical-rl; letter-spacing: 3px; font-size: 13px; cursor: pointer; z-index: 2150; box-shadow: -4px 0 12px rgba(64, 145, 255, .35); user-select: none; }
.cust-rail:hover { background: #2c6fd1; }
.cust-rail-enter-active, .cust-rail-leave-active { transition: opacity .2s; }
.cust-rail-enter-from, .cust-rail-leave-to { opacity: 0; }

/* 顶部页签式新建页（其他模块新增独立页签打开） */
.create-card { max-width: 720px; margin: 3vh auto 0; }
.create-card .el-card__header { font-weight: 600; }

/* 角色权限矩阵（孚盟MX 模式：左角色列表 + 右功能/字段矩阵）
   20261031f57：左侧角色列表固定不动，右侧权限矩阵在自身区域内上下滚动（整块按主内容区剩余高度定高） */
.roles-layout { display: flex; gap: 16px; align-items: stretch; min-height: 320px; }
.roles-left { width: 19%; min-width: 190px; max-width: 250px; flex: none; display: flex; }
.roles-right { flex: 1; min-width: 0; display: flex; }
.roles-left > .el-card, .roles-right > .el-card { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.roles-left > .el-card > .el-card__header, .roles-right > .el-card > .el-card__header { flex: none; }
.roles-left > .el-card > .el-card__body, .roles-right > .el-card > .el-card__body { flex: 1; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.roles-right > .el-card > .el-card__body > .el-alert { flex: none; }
.role-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
/* 20261101f82：角色权限——角色头部与页签栏（功能权限 / 系统设置）固定，仅「具体权限设置」内容区滚动 */
.perm-tabs { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.perm-tabs > .el-tabs__header { flex: none; margin: 0 0 8px; }
.perm-tabs > .el-tabs__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #dcdfe6 #f5f7fa; }
.perm-tabs > .el-tabs__content::-webkit-scrollbar { width: 8px; }
.perm-tabs > .el-tabs__content::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
.perm-tabs > .el-tabs__content::-webkit-scrollbar-thumb:hover { background: #c0c4cc; }
.role-item { padding: 8px 10px; border: 1px solid var(--el-border-color-lighter); border-radius: 8px; cursor: pointer; transition: all .15s; }
.role-item:hover { border-color: var(--el-color-primary-light-5); background: var(--el-fill-color-lighter); }
.role-item.active { border-color: var(--el-color-primary); background: var(--el-color-primary-light-9); box-shadow: 0 0 0 1px var(--el-color-primary-light-5) inset; }
.role-item.disabled { opacity: .55; }
.role-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.role-sub { font-size: 12px; color: #999; margin-top: 3px; }
/* 20261108f177：角色名称重复——弹窗内联错误提示 */
.role-name-err { margin: -12px 0 10px 80px; font-size: 12px; line-height: 1.6; color: var(--el-color-danger); }
.perm-head { display: flex; align-items: center; margin-bottom: 8px; flex: none; }
.pm-section { border: 1px solid var(--el-border-color-lighter); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.pm-title { font-size: 13px; font-weight: 600; color: var(--el-text-color-primary); margin-bottom: 6px; padding-left: 8px; border-left: 3px solid var(--el-color-primary); }
.pm-row { display: flex; align-items: center; padding: 2px 0; min-height: 32px; }
.pm-row + .pm-row { border-top: 1px dashed var(--el-border-color-lighter); }
.pm-label { width: 110px; font-size: 13px; color: var(--el-text-color-regular); flex-shrink: 0; }
/* 20261108f174：功能权限模块被整体禁用（查看=禁止）——控件保留可重新开启，整体降低视觉权重 */
.pm-section-off { border-style: dashed; background: #fafafa; }
.pm-section-off .pm-title { border-left-color: var(--el-border-color); color: var(--el-text-color-secondary); }
.pm-section-off .pm-row .pm-label { color: var(--el-text-color-placeholder); }
.pm-section-off .pm-row .el-radio-group { opacity: .55; }
.pm-section-off .pm-row .el-radio-group:hover { opacity: 1; }

/* 组织架构（孚盟MX 模式：左部门面板 + 右员工表） */
.org-layout { display: flex; gap: 16px; align-items: flex-start; }
.dept-panel { width: 240px; flex-shrink: 0; border: 1px solid #ebeef5; border-radius: 8px; padding: 12px 10px; background: #fafbfc; }
.dept-add-btn { color: #f56c6c; cursor: pointer; font-size: 13px; padding: 10px 6px 4px; user-select: none; }
.dept-add-btn:hover { color: #f78989; }
.dept-list { margin-top: 6px; }
.dept-item { display: flex; align-items: center; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #303133; user-select: none; }
.dept-item:hover { background: #f0f2f5; }
.dept-item.active { background: #ecf5ff; color: #409eff; font-weight: 600; }
.dept-item.disabled .dept-name { color: #c0c4cc; }
.dept-item.active.disabled .dept-name { color: #a0cfff; }
.dept-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 20261022 子部门树：展开箭头 */
.dept-toggle { width: 14px; flex-shrink: 0; text-align: center; font-size: 11px; color: #909399; cursor: pointer; user-select: none; }
.dept-toggle:hover { color: #409eff; }
.dept-toggle-none { cursor: default; }
.dept-ops { display: none; gap: 8px; margin-right: 8px; flex-shrink: 0; }
.dept-item:hover .dept-ops { display: inline-flex; }
.dept-op { font-size: 12px; color: #409eff; cursor: pointer; }
.dept-op.danger { color: #f56c6c; }
.dept-cnt { font-size: 12px; color: #909399; flex-shrink: 0; }
.emp-area { flex: 1; min-width: 0; }
.emp-name { line-height: 1.3; }
.emp-sub { display: block; font-size: 12px; color: #909399; }
.emp-total { color: #909399; font-size: 12px; margin-top: 10px; text-align: right; }

/* 系统设置组：左侧常驻二级菜单 + 右侧内容（孚盟MX 模式） */
.settings-shell { display: flex; gap: 16px; align-items: flex-start; }
.settings-side { width: 200px; flex-shrink: 0; background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 10px; }
.settings-side-item { padding: 11px 14px; border-radius: 6px; font-size: 14px; color: #303133; cursor: pointer; user-select: none; margin-bottom: 2px; }
.settings-side-item:hover { background: #f5f7fa; color: #409eff; }
.settings-side-item.active { background: #ecf5ff; color: #409eff; font-weight: 600; }
.settings-side-item.disabled, .settings-side-item.disabled:hover { color: #c0c4cc; cursor: not-allowed; background: transparent; }
.settings-body { flex: 1; min-width: 0; }

/* 20261105f111：系统参数二级导航固定、右侧详细内容单独滚动 */
.el-main.main-settings { overflow: hidden; display: flex; flex-direction: column; }
.el-main.main-settings .page-refresh-bar { flex-shrink: 0; }
.el-main.main-settings .settings-shell { flex: 1; min-height: 0; align-items: stretch; }
.el-main.main-settings .settings-side { overflow-y: auto; }
.el-main.main-settings .settings-body { overflow-y: auto; }
/* 页面内「独立滚动区 + 底部固定保存栏」：保存按钮固定在视口底部，内容在其上方滚动 */
.settings-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.settings-pane-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; }
.settings-pane-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 2px; margin-top: 10px; background: #fff; border-top: 1px solid #ebeef5; }

/* 业务字段配置：显示视图配置（三视图排版，孚盟范式） */
.lk-head { background: #f5f7fa; border-radius: 6px; font-weight: 600; color: #606266; }
.lk-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.lk-row:last-child { border-bottom: none; }

/* 20261111f208：业务字段配置——孚盟式二级子目录（左）+ 分区内容（右） */
.cf-body { display: flex; align-items: stretch; min-height: 420px; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.cf-subnav { flex: 0 0 150px; background: #fafbfc; border-right: 1px solid #ebeef5; padding: 6px 0; }
.cf-subnav-item { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; color: #606266; cursor: pointer; border-left: 3px solid transparent; transition: background .2s, color .2s; }
.cf-subnav-item:hover { background: #f0f6ff; color: #409eff; }
.cf-subnav-item.on { background: #ecf5ff; color: #409eff; font-weight: 600; border-left-color: #409eff; }
.cf-subnav-txt { flex: 1; white-space: nowrap; }
.cf-subnav-badge { flex: none; font-size: 11px; color: #909399; background: #fff; border: 1px solid #e4e7ed; border-radius: 9px; padding: 0 6px; line-height: 16px; }
.cf-subnav-item.on .cf-subnav-badge { color: #409eff; border-color: #b3d8ff; }
.cf-subcontent { flex: 1; min-width: 0; padding: 14px 16px; }
.cf-sec-head { display: flex; align-items: baseline; gap: 10px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #f0f2f5; }
.cf-sec-title { font-size: 15px; font-weight: 600; color: #303133; }
.cf-sec-tip { font-size: 12px; color: #909399; line-height: 1.5; }

/* AI 智能体按钮（20261010b 科技化） */
.agent-btn-tech { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 20px; border: none; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, #1e4fd8 0%, #0ea5e9 50%, #22d3ee 100%); box-shadow: 0 0 0 1px rgba(56,189,248,.35), 0 4px 14px rgba(14,165,233,.45), inset 0 1px 0 rgba(255,255,255,.2); overflow: hidden; transition: all .25s; margin-right: 14px; }
.agent-btn-tech:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(56,189,248,.6), 0 6px 20px rgba(14,165,233,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.agent-btn-tech:active { transform: translateY(0); }
.agent-btn-pulse { position: absolute; inset: -2px; border-radius: 22px; border: 1.5px solid rgba(56,189,248,.6); opacity: 0; animation: agentPulse 2.4s ease-out infinite; }
@keyframes agentPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

/* AI 智能体对话窗（20261010b 科技深色版） */
.agent-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 92vw; z-index: 2200; display: flex; flex-direction: column; }
/* 20261108f186：悬浮 AI 助手面板改浅色系（与 f179 全局浅色主题一致，原深色渐变底下线） */
.agent-drawer.tech { background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%); box-shadow: -8px 0 40px rgba(47,124,246,.12), -2px 0 0 rgba(47,124,246,.12); border-left: 1px solid #dbeafe; }
.agent-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e3effd; position: relative; background: linear-gradient(90deg, rgba(47,124,246,.06) 0%, transparent 100%); }
.agent-drawer-head::after { content: ''; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(47,124,246,.35), transparent); }
.agent-head-left { display: flex; align-items: center; gap: 12px; }
.agent-avatar { position: relative; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #1e4fd8, #0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 1px rgba(56,189,248,.4), 0 4px 14px rgba(14,165,233,.4); }
.agent-avatar-ring { position: absolute; inset: -3px; border-radius: 12px; border: 1.5px solid transparent; background: linear-gradient(135deg, #22d3ee, #1e4fd8, #22d3ee) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: agentRing 3s linear infinite; }
@keyframes agentRing { 0%,100% { opacity: .8; } 50% { opacity: .4; } }
.agent-head-info { display: flex; flex-direction: column; gap: 2px; }
.agent-head-name { font-size: 15px; font-weight: 600; color: #1e293b; letter-spacing: .5px; }
.agent-head-status { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.agent-head-dot { width: 6px; height: 6px; border-radius: 50%; background: #06b6d4; box-shadow: 0 0 8px rgba(6,182,212,.6); animation: agentBlink 1.6s ease-in-out infinite; }
@keyframes agentBlink { 0%,100% { opacity: 1; box-shadow: 0 0 8px #22d3ee; } 50% { opacity: .4; box-shadow: 0 0 2px #22d3ee; } }
.agent-drawer-close { font-style: normal; cursor: pointer; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 6px; color: #94a3b8; font-size: 18px; transition: all .2s; }
.agent-drawer-close:hover { color: #fff; background: rgba(239,68,68,.85); box-shadow: 0 0 12px rgba(239,68,68,.35); }
.agent-drawer-body { flex: 1; min-height: 0; width: 100%; padding: 14px 18px; box-sizing: border-box; display: flex; flex-direction: column; }
.agent-drawer-enter-active, .agent-drawer-leave-active { transition: transform .28s cubic-bezier(.25,.8,.25,1), opacity .25s; }
.agent-drawer-enter-from, .agent-drawer-leave-to { transform: translateX(80px); opacity: 0; }

/* 角色人员点选墙 */
.user-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.user-pick-item { border: 1px solid #dcdfe6; border-radius: 6px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: all .15s; background: #fff; }
.user-pick-item:hover { border-color: #409eff; }
.user-pick-item.active { border-color: #409eff; background: #ecf5ff; }
.user-pick-item.disabled { cursor: not-allowed; opacity: .55; background: #f5f7fa; }
.up-name { font-size: 13px; color: #303133; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.up-flag { font-style: normal; font-size: 10px; color: #909399; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 3px; font-weight: 400; }
.up-sub { font-size: 11px; color: #909399; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 角色权限保存条（20261031f57：固定在卡片底部，右侧矩阵区滚动时始终可见） */
.perm-save-bar { flex: none; background: #fff; padding: 10px 0 4px; border-top: 1px solid #ebeef5; text-align: right; z-index: 5; margin-top: 8px; }

/* AI 聊天区 科技浅色版（20261108f186：随悬浮面板整体改浅色系） */
.agent-chat { flex: 1; min-height: 0; overflow-y: auto; background: linear-gradient(180deg, rgba(47,124,246,.05) 0%, rgba(6,182,212,.04) 100%); border-radius: 12px; padding: 16px; box-sizing: border-box; position: relative; border: 1px solid #e3effd; }
.agent-chat::-webkit-scrollbar { width: 6px; }
.agent-chat::-webkit-scrollbar-track { background: transparent; }
.agent-chat::-webkit-scrollbar-thumb { background: rgba(47,124,246,.25); border-radius: 3px; }
.agent-bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(47,124,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(47,124,246,.05) 1px, transparent 1px); background-size: 24px 24px; border-radius: 12px; }
.agent-bg-glow { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 280px; height: 140px; background: radial-gradient(ellipse at center, rgba(6,182,212,.12) 0%, transparent 70%); pointer-events: none; }
.agent-empty { text-align: center; color: #64748b; font-size: 13px; line-height: 1.8; padding-top: 32px; position: relative; z-index: 1; }
.agent-empty b { color: #1e293b; font-size: 15px; display: block; margin-bottom: 18px; }
.agent-empty-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, rgba(47,124,246,.12), rgba(6,182,212,.12)); border: 1px solid rgba(47,124,246,.3); display: flex; align-items: center; justify-content: center; color: #2f7cf6; margin: 0 auto 16px; box-shadow: 0 0 24px rgba(6,182,212,.15); animation: agentFloat 4s ease-in-out infinite; }
@keyframes agentFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.agent-msg { display: flex; margin-bottom: 14px; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.agent-msg.user { justify-content: flex-end; }
.agent-msg.assistant { justify-content: flex-start; }
.agent-msg-avatar { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #1e4fd8, #0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 0 8px rgba(14,165,233,.5); }
.agent-msg.user .agent-msg-avatar { display: none; }
.agent-bubble { max-width: 76%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; position: relative; }
.agent-msg.user .agent-bubble { background: linear-gradient(135deg, #2f7cf6, #1ea7e9); color: #fff; border-top-right-radius: 4px; box-shadow: 0 4px 12px rgba(47,124,246,.25); }
.agent-msg.assistant .agent-bubble { background: #fff; color: #334155; border: 1px solid #dbeafe; border-top-left-radius: 4px; box-shadow: 0 2px 8px rgba(47,124,246,.06); }

/* AI 导航卡片（20261010i）：assistant 消息附带的页面跳转卡片，点击执行前端跳转 */
.agent-nav-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.agent-nav-card { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: #1d4ed8; background: rgba(47,124,246,.08); border: 1px solid rgba(47,124,246,.3); cursor: pointer; transition: all .2s; white-space: nowrap; }
.agent-nav-card:hover { background: rgba(47,124,246,.16); color: #1e40af; box-shadow: 0 0 10px rgba(47,124,246,.2); transform: translateY(-1px); }
.agent-nav-card svg { flex-shrink: 0; }

/* AI 品牌字科技感（20261031f43）：顶栏按钮、抽屉标题、空态共用一个 .agent-brand */
.agent-brand { font-family: 'Bahnschrift', 'DIN Alternate', 'Consolas', 'Segoe UI', Arial, sans-serif; font-weight: 700; letter-spacing: 2.5px; display: inline-block; background: linear-gradient(100deg, #ffffff 0%, #a5f3fc 36%, #38bdf8 64%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 7px rgba(34,211,238,.6)); }
.agent-btn-tech .agent-brand { font-size: 15px; letter-spacing: 3px; margin-left: 1px; }
.agent-head-name .agent-brand { font-size: 17px; letter-spacing: 3px; vertical-align: -1px; }
.agent-empty .agent-brand { font-size: 16px; letter-spacing: 3px; }
/* 20261031f47：一级导航「AI」科技感品牌字（20261108f179 起侧栏改浅底，由 .side-aside .agent-brand 覆盖为深色渐变） */
/* 20261108f186：浅底悬浮面板内的 AI 品牌字改用蓝青深色渐变（全局 .agent-brand 为深底白字版，与侧栏覆盖同理） */
.agent-drawer .agent-brand { background: linear-gradient(100deg, #1d4ed8 0%, #06b6d4 60%, #1d4ed8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 5px rgba(6,182,212,.3)); }
.nav-ai { font-size: 15px; letter-spacing: 3px; vertical-align: -1px; }
/* 20261108f179：浅底侧栏的 AI 品牌字改用蓝青深色渐变（全局 .agent-brand 为深底白字版） */
.side-aside .agent-brand { background: linear-gradient(100deg, #1d4ed8 0%, #06b6d4 60%, #1d4ed8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 5px rgba(6, 182, 212, .35)); }

/* 一问一答标签 + 复制（20261031f43） */
.agent-msg-tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; line-height: 1.5; vertical-align: 1px; }
.agent-msg-tag.assistant { color: #0e7490; background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.4); }
.agent-msg-tag.user { color: #fff; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); }
.agent-msg-text { display: block; }
.agent-msg.assistant .agent-bubble { padding-bottom: 24px; }
.agent-msg-copy { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 6px; border: 1px solid transparent; font-size: 10.5px; color: #94a3b8; cursor: pointer; transition: all .18s; }
.agent-msg-copy:hover { color: #1d4ed8; border-color: rgba(47,124,246,.35); background: rgba(47,124,246,.08); }

/* AI 回答 Markdown 渲染（20261031f46）：表格 / 列表 / 小标题 / 加粗 / 代码 */
.agent-md-h { font-weight: 600; color: #1e293b; margin: 8px 0 4px; font-size: 13px; }
.agent-md-p { margin: 2px 0; }
.agent-md-list { margin: 4px 0 4px 2px; padding-left: 16px; }
.agent-md-list li { margin: 2px 0; }
.agent-md-hr { border: none; border-top: 1px dashed #cbd5e1; margin: 8px 0; }
.agent-md-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.agent-md-table th, .agent-md-table td { border: 1px solid #dbe7f5; padding: 4px 8px; text-align: left; }
.agent-md-table th { background: #eaf3ff; color: #1d4ed8; font-weight: 600; }
.agent-md-table tbody tr:nth-child(even) td { background: rgba(47,124,246,.04); }
.agent-md-table td:last-child, .agent-md-table th:last-child { text-align: right; }
.agent-msg-text strong { color: #1e293b; font-weight: 600; }
.agent-msg-text code { padding: 0 4px; border-radius: 4px; background: rgba(6,182,212,.1); color: #0e7490; font-family: Consolas, Menlo, monospace; font-size: 12px; }
/* 抽屉头部「导出对话」按钮（20261031f46） */
.agent-head-tool { flex: none; margin-right: 10px; padding: 3px 9px; border-radius: 10px; border: 1px solid rgba(47,124,246,.3); background: rgba(47,124,246,.06); color: #1d4ed8; font-size: 11.5px; font-style: normal; cursor: pointer; transition: all .18s; }
.agent-head-tool:hover { background: rgba(47,124,246,.14); color: #1e40af; border-color: rgba(47,124,246,.55); }

/* 快捷提问（20261031f43）：数据分析 / 跟进分析 / 档案操作 一键发送 */
.agent-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.agent-quick-label { font-size: 11px; color: #94a3b8; letter-spacing: 1px; margin-right: 2px; }
.agent-quick-chip { padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(47,124,246,.3); background: rgba(47,124,246,.05); color: #1d4ed8; font-size: 12px; line-height: 1.5; white-space: nowrap; cursor: pointer; transition: all .18s; }
.agent-quick-chip:hover:not(:disabled) { background: rgba(47,124,246,.14); color: #1e40af; border-color: rgba(47,124,246,.55); box-shadow: 0 0 10px rgba(47,124,246,.18); transform: translateY(-1px); }
.agent-quick-chip:disabled { opacity: .45; cursor: not-allowed; }
/* AI 面板文件导入 + 语音输入（20261011b） */
.agent-empty-tip { font-size: 12px; color: #94a3b8; margin: 8px 0 0; }
.agent-imp-row { margin-top: 8px; }
.agent-imp-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 10px; font-size: 12.5px; color: #b45309; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.4); cursor: pointer; transition: all .2s; }
.agent-imp-btn:hover { background: rgba(245,158,11,.2); color: #92400e; box-shadow: 0 0 10px rgba(245,158,11,.2); }
.agent-btn-voice.on { color: #fff; background: linear-gradient(135deg,#ef4444,#f97316); border-color: transparent; animation: agentVoicePulse 1.2s ease-in-out infinite; }
@keyframes agentVoicePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
/* AI 回复语音播报（20261011c） */
.agent-btn-speak.on { color: #fff; background: linear-gradient(135deg,#0ea5e9,#2563eb); border-color: transparent; animation: agentSpeakPulse 1.6s ease-in-out infinite; }
@keyframes agentSpeakPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,.45); } 50% { box-shadow: 0 0 0 6px rgba(14,165,233,0); } }

/* 打字动画 */
.agent-typing { display: flex; align-items: center; gap: 4px; }
.agent-typing .dot { width: 6px; height: 6px; border-radius: 50%; background: #2f7cf6; animation: agentTyping 1.4s infinite ease-in-out; }
.agent-typing .dot-2 { animation-delay: .2s; }
.agent-typing .dot-3 { animation-delay: .4s; }
@keyframes agentTyping { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.agent-typing-text { margin-left: 8px; font-size: 12px; color: #64748b; }

/* 输入区 */
.agent-input-row { margin-top: 12px; position: relative; }
.agent-input-wrap { border-radius: 10px; border: 1px solid #c9def5; overflow: hidden; background: #fff; transition: all .2s; }
.agent-input-wrap:focus-within { border-color: rgba(47,124,246,.55); box-shadow: 0 0 0 2px rgba(47,124,246,.12), 0 0 16px rgba(6,182,212,.1); }
.agent-input-wrap .el-textarea__inner { background: transparent !important; border: none !important; color: #1e293b !important; font-size: 13px; }
.agent-input-wrap .el-textarea__inner::placeholder { color: #94a3b8 !important; }
.agent-input-wrap .el-textarea__inner:focus { box-shadow: none !important; }

.agent-ops { display: flex; justify-content: flex-end; align-items: stretch; gap: 8px; margin-top: 10px; }
/* 图标上、文字下布局（20261011d） */
.agent-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 58px; padding: 8px 6px 7px; border-radius: 12px; border: 1px solid #d7e3f2; background: #f6fafe; color: #64748b; font-size: 11px; line-height: 1; cursor: pointer; transition: all .2s; }
.agent-btn svg { width: 17px; height: 17px; }
.agent-btn:hover:not(:disabled) { border-color: rgba(47,124,246,.45); color: #1d4ed8; background: #eaf3ff; transform: translateY(-1px); }
.agent-btn:disabled { opacity: .5; cursor: not-allowed; }
.agent-btn-voice.on { color: #fff; background: linear-gradient(135deg,#ef4444,#f97316); border-color: transparent; animation: agentVoicePulse 1.2s ease-in-out infinite; }
@keyframes agentVoicePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
/* AI 回复语音播报（20261011c） */
.agent-btn-speak.on { color: #fff; background: linear-gradient(135deg,#0ea5e9,#2563eb); border-color: transparent; animation: agentSpeakPulse 1.6s ease-in-out infinite; }
@keyframes agentSpeakPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,.45); } 50% { box-shadow: 0 0 0 6px rgba(14,165,233,0); } }
.agent-btn-send { display: inline-flex; align-items: center; gap: 6px; padding: 7px 20px; border-radius: 12px; border: none; cursor: pointer; font-size: 13px; font-weight: 500; color: #fff; background: linear-gradient(135deg, #1e4fd8, #0ea5e9); box-shadow: 0 4px 14px rgba(14,165,233,.45), inset 0 1px 0 rgba(255,255,255,.2); transition: all .2s; }
.agent-btn-send:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.agent-btn-send:disabled { opacity: .5; cursor: not-allowed; }

/* 附件缓存区（20261011d）：文件先暂存可预览，随指令一起发送 */
.agent-attach-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.agent-attach-card { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px; border-radius: 10px; background: rgba(47,124,246,.06); border: 1px solid rgba(47,124,246,.3); color: #1d4ed8; }
.agent-attach-ico { flex-shrink: 0; color: #2f7cf6; }
.agent-attach-info { min-width: 0; }
.agent-attach-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: #1e293b; }
.agent-attach-size { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.agent-attach-act { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: #64748b; transition: all .15s; }
.agent-attach-act:hover { background: rgba(47,124,246,.12); color: #1d4ed8; }
.agent-attach-del:hover { background: rgba(239,68,68,.12); color: #dc2626; }
/* 拖拽遮罩（20261011d） */
.agent-drop-mask { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.82); backdrop-filter: blur(3px); border: 2px dashed rgba(47,124,246,.55); border-radius: 20px; }
.agent-drop-tip { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 16px; letter-spacing: 2px; color: #1d4ed8; text-shadow: 0 0 14px rgba(6,182,212,.25); }
/* 附件预览（20261011d） */
.agent-preview-scroll { max-height: 50vh; overflow: auto; }
.agent-preview-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.agent-preview-table td { border: 1px solid #e4e7ed; padding: 6px 10px; color: #303133; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.agent-preview-table tr.head td { background: #f0f7ff; font-weight: 600; color: #1e4fd8; }
.agent-preview-tip { margin-top: 10px; font-size: 12px; color: #909399; }

.lk-c1 { width: 56px; flex-shrink: 0; display: flex; gap: 2px; }
/* 20261030 字段排序拖拽：⋮⋮ 手柄 + 拖拽落点高亮 */
.lk-drag { cursor: move; color: #c0c4cc; font-size: 14px; line-height: 1; letter-spacing: -2px; user-select: none; padding: 2px 6px; border-radius: 3px; }
.lk-drag:hover { color: #409eff; background: #ecf5ff; }
.lk-drag-off { cursor: not-allowed; color: #dcdfe6; }
.lk-drag-off:hover { color: #dcdfe6; background: transparent; }
.lk-row.lk-dragging { opacity: .45; background: #f5f7fa; }
.lk-row.lk-drag-over { box-shadow: inset 0 2px 0 #409eff; background: #ecf5ff; }
.lk-c2 { flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-c3 { flex: 1; min-width: 0; color: #909399; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-c4 { flex: 1; flex-shrink: 0; }
.lk-c5 { width: 90px; flex-shrink: 0; text-align: center; }
.lk-mv { cursor: pointer; color: #909399; font-size: 12px; padding: 2px 4px; user-select: none; line-height: 1; }
.lk-mv:hover { color: #409eff; }
.lk-mv.disabled { color: #dcdfe6; cursor: not-allowed; }

/* 20261031f50 字典值拖拽排序（系统设置 › 业务字典 › 字典值）：行首 ⠿ 手柄 + 拖动中的行淡出 */
.drag-handle { cursor: move; color: #909399; font-size: 16px; letter-spacing: -2px; user-select: none; }
.drag-handle:hover { color: #409eff; }
.drag-handle-off { cursor: not-allowed; color: #dcdfe6; }
.drag-handle-off:hover { color: #dcdfe6; }
.dict-drag-handle { display: inline-block; line-height: 1; }
.el-table__body tr.sortable-ghost { opacity: .45; background: #ecf5ff; }
.el-table__body tr.sortable-ghost > td { background: #ecf5ff; }

/* 表单/详情分组标题（所属结构） */
.form-group-title { font-size: 13px; font-weight: 600; color: #303133; margin: 14px 0 10px; padding-left: 8px; border-left: 3px solid #409eff; line-height: 1.2; }
.el-form .form-group-title:first-child { margin-top: 0; }

/* 客户列表固定底部横向滚动条代理（20261006aj）：表格自身滚动条在视口外时显示 */
.hscroll-proxy { position: fixed; bottom: 0; z-index: 3000; height: 14px; overflow-x: auto; overflow-y: hidden; background: #f5f7fa; border-top: 1px solid #e4e7ed; box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06); }
.hscroll-proxy::-webkit-scrollbar { height: 12px; }
.hscroll-proxy::-webkit-scrollbar-thumb { background: #b9bfc9; border-radius: 6px; border: 2px solid #f5f7fa; }
.hscroll-proxy::-webkit-scrollbar-thumb:hover { background: #909399; }
.hscroll-proxy::-webkit-scrollbar-track { background: transparent; }

/* ---- 列设置弹窗（20261021） ---- */
.col-setup-body { display: flex; gap: 16px; min-height: 360px; }
.col-setup-left { flex: 0 0 220px; border: 1px solid #eef0f5; border-radius: 6px; padding: 12px; background: #fafbfd; overflow-y: auto; max-height: 480px; }
.col-setup-right { flex: 1; border: 1px solid #eef0f5; border-radius: 6px; padding: 12px; background: #fff; overflow-y: auto; max-height: 480px; }
.col-setup-title { font-weight: 600; font-size: 14px; color: #303133; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f2f3f7; }
.col-setup-all { display: flex; flex-direction: column; gap: 6px; }
.col-setup-all .el-checkbox { display: flex; }
.col-setup-hint { margin-top: 10px; font-size: 12px; color: #909399; line-height: 1.5; }
.col-list { display: flex; flex-direction: column; gap: 4px; }
.col-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; transition: background .15s; }
.col-item:hover { background: #f5f7fa; border-color: #dcdfe6; }
.col-drag { color: #c0c4cc; cursor: move; font-size: 14px; padding: 2px 4px; user-select: none; }
.col-drag:hover { color: #409eff; }
.col-name { flex: 1; font-size: 13px; color: #303133; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-item-ctrl { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.col-empty { text-align: center; color: #909399; font-size: 13px; padding: 24px 0; border: 1px dashed #dcdfe6; border-radius: 4px; }
.col-item.sortable-ghost { opacity: 0.4; background: #ecf5ff; border-color: #409eff; }

/* ---- 高级搜索面板（20261031f33：商品 / 销售订单 / 发货单，与客户档案一致） ---- */
.adv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.adv-head .adv-title { font-weight: 600; font-size: 13px; color: #303133; }
.adv-tip { font-size: 12px; color: #409eff; background: #ecf5ff; border-radius: 4px; padding: 4px 8px; margin-top: 2px; }

/* ---- 系统设置 › 审批设置 / 打印模板（20261031f33） ---- */
.approval-mod-list { display: flex; flex-direction: column; gap: 6px; }
.approval-mod { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid #ebeef5; border-radius: 4px; cursor: pointer; font-size: 13px; color: #303133; transition: all .15s; }
.approval-mod:hover { background: #f5f7fa; border-color: #dcdfe6; }
.approval-mod.active { background: #ecf5ff; border-color: #409eff; color: #409eff; font-weight: 600; }
.approval-mod-arrow { color: #409eff; font-weight: 600; }
.approval-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.approval-hint { margin-top: 10px; font-size: 12px; color: #909399; line-height: 1.6; }
.approval-hint-inline { font-size: 12px; color: #909399; }
.approval-flow-title { display: flex; align-items: center; gap: 8px; }
.approval-flow-sub { font-size: 12px; color: #909399; font-weight: 400; }
.approval-step { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.approval-step-no { width: 52px; color: #909399; font-size: 12px; flex: none; }
.approval-preview { margin-top: 6px; font-size: 12px; color: #606266; background: #fafbfd; border: 1px dashed #e4e7ed; border-radius: 4px; padding: 6px 8px; }
.approval-empty { text-align: center; color: #909399; font-size: 13px; padding: 24px 0; }
.tpl-list { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.tpl-item { position: relative; padding: 8px 10px; border: 1px solid #ebeef5; border-radius: 4px; cursor: pointer; transition: all .15s; }
.tpl-item:hover { background: #f5f7fa; border-color: #dcdfe6; }
.tpl-item.active { background: #ecf5ff; border-color: #409eff; }
.tpl-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #303133; }
.tpl-sub { font-size: 12px; color: #909399; margin-top: 2px; }
.tpl-ops { position: absolute; right: 8px; top: 6px; display: none; }
.tpl-item:hover .tpl-ops { display: block; }
.tpl-cols { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tpl-col-item { font-size: 13px; }
.tpl-preview-wrap { background: #f5f7fa; padding: 12px; border-radius: 6px; }
.tpl-preview-frame { width: 100%; height: 62vh; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* ---- 系统设置 › 数据流转设置（20261031f36：单据下推/引入的流转配置） ---- */
.df-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.df-map-title { font-size: 13px; font-weight: 600; color: #303133; margin: 8px 0 6px; padding-left: 8px; border-left: 3px solid #409eff; line-height: 1.4; }
/* 20261101f78：字段映射按「目的结构（主档/清单）」切换，目标字段 + 数据源字段均为下拉必选 */
.df-map-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }
.df-push-tip { font-size: 13px; color: #606266; margin-bottom: 10px; }
.settings-docflow .el-table .el-radio { margin-right: 0; }

/* ---- 销售订单 / 发货单 单据详情（20261031f34：单据头 + 明细清单主页面 + 左侧单据信息 + 右侧金额/审批） ---- */
.so-head { padding: 14px 18px; margin: -4px -20px 12px; background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); border-bottom: 1px solid #ebeef5; display: flex; align-items: flex-start; gap: 14px; }
.so-head-main { flex: 1; min-width: 0; }
.so-title { font-size: 17px; font-weight: 700; color: #1f2d3d; display: flex; align-items: baseline; gap: 10px; }
.so-no { font-size: 14px; font-weight: 600; color: #409eff; font-family: Consolas, "JetBrains Mono", monospace; }
.so-head-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #606266; }
.so-pending { color: #e6a23c; }
.so-head-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 620px; }
.so-tabs > .el-tabs__header { margin-bottom: 12px; }
/* 20261101f78：单据页（新增/修改/详情独立页签，参考孚盟MX） */
.so-doc-page { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 12px 16px 16px; }
.so-doc-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px dashed #ebeef5; }
.so-doc-bar-tip { font-size: 12px; color: #909399; }
.so-doc-page .so-head { margin: 0 0 12px; border-radius: 6px; border-bottom: 1px solid #ebeef5; }
.so-doc-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #ebeef5; }
.so-tab-label em { font-style: normal; color: #409eff; font-weight: 600; margin-left: 2px; }
.so-tip { color: #909399; font-size: 12px; }
.so-items .el-table__footer-wrapper td { background: #fafbfd; font-weight: 600; }
.so-amount { color: #f56c6c; font-weight: 600; }
.so-detail { display: flex; gap: 18px; align-items: flex-start; }
.so-form { flex: 1; min-width: 0; }
.so-form .el-form-item { margin-bottom: 14px; }
.so-row-flex { display: flex; gap: 8px; width: 100%; }
.so-field-num { width: 100%; font-weight: 600; color: #409eff; line-height: 32px; }
.so-field-num.is-red { color: #f56c6c; }
.so-field-num.is-green { color: #67c23a; }
.so-formula-tip { color: #909399; font-weight: 400; font-size: 12px; margin-left: 6px; }
.so-side { width: 300px; flex: none; background: #fafbfd; border: 1px solid #ebeef5; border-radius: 8px; padding: 12px 14px; }
.so-side-title { font-size: 13px; font-weight: 600; color: #303133; padding-bottom: 8px; border-bottom: 1px solid #ebeef5; margin-bottom: 8px; }
.so-sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #606266; padding: 5px 0; }
.so-sum-row b { font-family: Consolas, "JetBrains Mono", monospace; }
.so-sum-row b.c-blue { color: #409eff; }
.so-sum-row b.c-red { color: #f56c6c; font-size: 15px; }
.so-sum-tip { font-size: 12px; color: #a8abb2; line-height: 1.6; margin-top: 6px; }
.so-flow-tip { font-size: 12px; color: #909399; }
.so-flow-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #909399; padding: 6px 0; }
.so-flow-no { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid #dcdfe6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #909399; }
.so-flow-name { color: #606266; }
.so-flow-user { margin-left: auto; color: #a8abb2; }
.so-flow-step.is-done .so-flow-no { background: #67c23a; border-color: #67c23a; color: #fff; }
.so-flow-step.is-cur .so-flow-no { background: #e6a23c; border-color: #e6a23c; color: #fff; }
.so-flow-step.is-cur .so-flow-name { color: #e6a23c; font-weight: 600; }

/* ---- 20261101f81：单据页参考孚盟MX版式——「单据信息」上移到「商品清单」之上 + 单据主体上下滚动 + 上下滚动键 ---- */
.so-doc-page { position: relative; }
.so-doc-body { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 10px 6px 4px 0; border-top: 1px dashed #ebeef5; scrollbar-width: thin; scrollbar-color: #c8d0dd #f5f7fa; }
.so-doc-body::-webkit-scrollbar { width: 10px; }
.so-doc-body::-webkit-scrollbar-track { background: #f5f7fa; border-radius: 6px; }
.so-doc-body::-webkit-scrollbar-thumb { background: #c8d0dd; border-radius: 6px; border: 2px solid #fff; }
.so-doc-body::-webkit-scrollbar-thumb:hover { background: #a9b4c6; }
.so-doc-sec { margin-bottom: 14px; }
.so-doc-sec-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 0 2px 7px; border-bottom: 1px solid #f0f2f5; }
.so-doc-sec-t { font-size: 13px; font-weight: 700; color: #1f2d3d; line-height: 1.2; padding-left: 8px; border-left: 3px solid #409eff; }
.so-doc-sec-cnt { font-style: normal; font-size: 12px; font-weight: 600; color: #409eff; }
.so-doc-sec-sub { font-size: 12px; color: #909399; }
.so-doc-sec-hd .spacer { flex: 1; min-width: 8px; }
.so-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.so-form-grid .el-form-item { margin-bottom: 12px; }
.so-form-grid .form-group-title,
.so-form-grid .el-empty { grid-column: 1 / -1; }
.so-form-grid .so-doc-span2 { grid-column: span 2; }
.so-doc-scroll-btns { position: absolute; right: 10px; bottom: 82px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.so-doc-scroll-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #dcdfe6; background: #fff; color: #606266; font-size: 12px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: color .15s, border-color .15s, transform .15s; }
.so-doc-scroll-btn:hover { color: #409eff; border-color: #a0cfff; transform: translateY(-1px); }
.so-doc-scroll-btn:active { transform: translateY(0); }
@media (max-width: 1440px) { .so-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .so-detail { flex-direction: column; }
  .so-side { width: 100%; }
  .so-form-grid { grid-template-columns: 1fr; }
  .so-form-grid .so-doc-span2 { grid-column: span 1; }
}

/* ---- 微信号芯片（20261026 科技感 + 单击直达微信会话） ---- */
.wx-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 22px; padding: 0 8px 0 7px; border-radius: 6px; cursor: pointer; user-select: none; white-space: nowrap; font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 12px; font-weight: 600; letter-spacing: .4px; line-height: 1; vertical-align: middle; color: #5ef0a0; background: linear-gradient(135deg, #06170f 0%, #08251a 55%, #06202a 100%); border: 1px solid rgba(7, 193, 96, .45); box-shadow: 0 0 0 1px rgba(7, 193, 96, .06), 0 0 10px rgba(7, 193, 96, .18), inset 0 0 8px rgba(7, 193, 96, .08); transition: transform .18s, box-shadow .18s, border-color .18s, color .18s; overflow: hidden; }
.wx-chip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(94, 240, 160, .22) 50%, transparent 80%); transform: translateX(-130%); transition: transform .55s ease; }
.wx-chip:hover { border-color: rgba(94, 240, 160, .85); color: #8affc2; box-shadow: 0 0 0 1px rgba(94, 240, 160, .25), 0 0 16px rgba(7, 193, 96, .45), inset 0 0 12px rgba(7, 193, 96, .16); transform: translateY(-1px); }
.wx-chip:hover::after { transform: translateX(130%); }
.wx-chip:active { transform: translateY(0) scale(.97); }
.wx-chip .wx-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #07c160; box-shadow: 0 0 6px #07c160, 0 0 2px #07c160; animation: wx-pulse 2.2s ease-in-out infinite; }
.wx-chip .wx-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-chip .wx-act { flex: none; font-style: normal; font-size: 10px; font-weight: 500; color: rgba(94, 240, 160, .55); opacity: 0; transition: opacity .15s; }
.wx-chip:hover .wx-act, .wx-chip.is-active .wx-act { opacity: 1; }
.wx-chip.is-ok { border-color: rgba(34, 211, 238, .85); color: #8ff0ff; box-shadow: 0 0 0 1px rgba(34, 211, 238, .22), 0 0 16px rgba(34, 211, 238, .4), inset 0 0 10px rgba(34, 211, 238, .12); }
.wx-chip.is-ok .wx-dot { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.wx-chip.is-ok .wx-act { color: #8ff0ff; }
.wx-chip.is-bad { border-color: rgba(245, 158, 11, .8); color: #ffd27a; box-shadow: 0 0 0 1px rgba(245, 158, 11, .2), 0 0 14px rgba(245, 158, 11, .32), inset 0 0 10px rgba(245, 158, 11, .1); }
.wx-chip.is-bad .wx-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.wx-chip.is-bad .wx-act { color: #ffd27a; }
@keyframes wx-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 6px #07c160; } 50% { opacity: .5; box-shadow: 0 0 12px #07c160; } }

/* 菜单设置弹窗（20261031f7）：左右双栏（一级/二级），拖拽排序、启用隐藏、还原 */
.menu-cfg-dlg .el-dialog__body { padding-top: 6px; }
.mc-tip { background: #f4f8ff; border: 1px solid #d9ecff; color: #606266; font-size: 12px; line-height: 1.7; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.mc-loading { padding: 60px 0; text-align: center; color: #909399; font-size: 13px; }
.mc-body { display: flex; gap: 14px; align-items: stretch; }
.mc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid #e4e7ed; border-radius: 8px; max-height: 520px; overflow: hidden; }
.mc-col-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #fafafa; border-bottom: 1px solid #ebeef5; font-size: 13px; font-weight: 600; color: #303133; }
.mc-hint { font-size: 12px; font-weight: 400; color: #909399; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-list { flex: 1; overflow-y: auto; padding: 6px; }
.mc-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; margin-bottom: 2px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.mc-row:hover { background: #f5f7fa; }
.mc-row.sel { background: #ecf5ff; border-color: #b3d8ff; }
.mc-row.hidden .mc-name { color: #c0c4cc; text-decoration: line-through; }
.mc-grip { flex: none; color: #c0c4cc; cursor: grab; font-size: 11px; letter-spacing: -2px; }
.mc-ico { flex: none; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: #606266; }
.mc-ico svg { width: 100%; height: 100%; display: block; }
.mc-name { font-size: 14px; color: #303133; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-spacer { flex: 1; }
.mc-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-top: 1px dashed #e4e7ed; background: #fcfcfd; }
.mc-empty { padding: 28px 10px; text-align: center; color: #b1b3b8; font-size: 12px; }
.mc-footer { display: flex; align-items: center; gap: 8px; width: 100%; }
.mc-footer .mc-spacer { flex: 1; }

/* ==================== 20261031f12：附件子表 / 商品档案 / AI 数智体 ==================== */
/* 附件子表（客户档案 / 商品档案 / 客户跟进共用） */
.att-wrap { position: relative; }
.att-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.att-bar .spacer { flex: 1; }
.att-tip { color: #909399; font-size: 12px; }
.att-dropzone { position: relative; }
.att-dropzone.over { outline: 2px dashed #409eff; outline-offset: 4px; border-radius: 4px; }
.att-drag-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(64,158,255,.12); color: #337ecc; font-size: 14px; border-radius: 4px; pointer-events: none; }
.att-ico { display: inline-block; min-width: 38px; padding: 0 4px; margin-right: 6px; text-align: center; font-size: 10px; line-height: 16px; color: #fff; background: #a8abb2; border-radius: 3px; vertical-align: middle; }
.att-ico.t-pdf { background: #e74c3c; } .att-ico.t-xls, .att-ico.t-xlsx, .att-ico.t-csv { background: #1d9c6e; }
.att-ico.t-doc, .att-ico.t-docx { background: #2b579a; } .att-ico.t-ppt, .att-ico.t-pptx { background: #d24726; }
.att-ico.t-zip, .att-ico.t-rar, .att-ico.t-7z { background: #8e44ad; }
.att-ico.t-jpg, .att-ico.t-jpeg, .att-ico.t-png, .att-ico.t-gif, .att-ico.t-webp, .att-ico.t-bmp { background: #e6a23c; }
.att-prev-img { text-align: center; max-height: 70vh; overflow: auto; }
.att-prev-img img { max-width: 100%; }
.att-prev-frame { width: 100%; height: 70vh; border: 0; }
.att-prev-text { max-height: 70vh; overflow: auto; background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 4px; padding: 10px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }

/* 商品档案 */
.prod-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; border: 1px solid #ebeef5; cursor: pointer; display: inline-block; }
.prod-thumb.empty { display: inline-flex; align-items: center; justify-content: center; color: #c0c4cc; font-size: 11px; cursor: default; background: #fafafa; }
.prod-imgs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px dashed #dcdfe6; border-radius: 4px; min-height: 84px; width: 100%; }
.prod-imgs.over { border-color: #409eff; background: #ecf5ff; }
.prod-img { position: relative; width: 78px; height: 78px; border-radius: 4px; overflow: hidden; border: 1px solid #ebeef5; background: #fafafa; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.prod-img-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; text-align: center; color: #fff; background: rgba(0,0,0,.55); border-radius: 50%; font-size: 13px; cursor: pointer; }
.prod-img.add { display: flex; align-items: center; justify-content: center; color: #909399; font-size: 12px; cursor: pointer; border-style: dashed; }
.prod-img.add:hover { color: #409eff; border-color: #409eff; }
.toolbar.sub { margin-top: -6px; }

/* AI 数智体（一级目录，类似豆包的一问一答工作区） */
.ai-page { display: flex; flex-direction: column; height: calc(100vh - 160px); min-height: 420px; background: #fff; border: 1px solid #ebeef5; border-radius: 8px; overflow: hidden; position: relative; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f0f2f5; }
.ai-brand { display: flex; align-items: center; gap: 8px; }
/* 20261031f47：AI 页标题/欢迎语为浅底，科技感品牌字改用深蓝→青蓝渐变保证可读 */
.ai-brand .agent-brand, .ai-welcome-title .agent-brand { background: linear-gradient(100deg, #0f172a 0%, #1d4ed8 42%, #06b6d4 78%, #0f172a 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 6px rgba(6,182,212,.35)); letter-spacing: 2px; }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #6a8dff, #33c6d6); box-shadow: 0 0 0 4px rgba(106,141,255,.14); }
.ai-sub { color: #a8abb2; font-size: 12px; }
.ai-head .spacer { flex: 1; }
.ai-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; background: #fbfbfd; }
/* 20261108f179：AI 欢迎页改浅色科技感（浅蓝网格 / 青蓝光晕 / 白心光环 / 深色渐变标题） */
.ai-welcome { max-width: 860px; margin: 4vh auto 0; text-align: center; }
.ai-hero { position: relative; overflow: hidden; padding: 30px 24px 26px; border-radius: 16px;
  background: radial-gradient(140% 160% at 50% -30%, #ffffff 0%, #edf4ff 44%, #e0f2fb 100%);
  border: 1px solid rgba(120, 170, 255, .28);
  box-shadow: 0 18px 40px -18px rgba(64, 120, 200, .28), inset 0 1px 0 rgba(255, 255, 255, .9); }
.ai-hero::after { content: ''; position: absolute; left: 50%; top: -58%; width: 560px; height: 560px; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), rgba(37, 99, 235, .08) 45%, transparent 70%); }
.ai-hero > * { position: relative; z-index: 1; }
.ai-hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(56, 189, 248, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .1) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 76%); }
.ai-orb { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; }
.ai-orb-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0), #38bdf8, rgba(34, 211, 238, 0), #2563eb, rgba(56, 189, 248, 0));
  animation: aiOrbSpin 6s linear infinite; }
.ai-orb-core { position: absolute; inset: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #1d4ed8;
  background: radial-gradient(circle at 50% 30%, #ffffff, #dcebfd 70%);
  box-shadow: inset 0 0 14px rgba(56, 189, 248, .35), 0 0 20px rgba(34, 211, 238, .25); }
.ai-welcome-title { font-size: 23px; font-weight: 600; color: #16305e; letter-spacing: .5px; }
.ai-hero .ai-welcome-title .agent-brand { background: linear-gradient(100deg, #0f172a 0%, #1d4ed8 42%, #06b6d4 78%, #0f172a 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 8px rgba(6, 182, 212, .4)); }
.ai-welcome-sub { margin-top: 8px; color: #7286a3; font-size: 13px; }
.ai-hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ai-hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #4a6a9c;
  border: 1px solid rgba(59, 130, 246, .28); background: rgba(255, 255, 255, .6); }
.ai-hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 6px #22d3ee; }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.ai-card { position: relative; overflow: hidden; text-align: left; padding: 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid #e2eaf4; background: linear-gradient(180deg, #fff, #f6fafe);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s, border-color .22s;
  animation: aiCardIn .45s both; animation-delay: calc(var(--i, 0) * 80ms); }
.ai-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, #2563eb, #22d3ee 60%, transparent); }
.ai-card:hover { transform: translateY(-4px); border-color: #a9cdf3; box-shadow: 0 16px 32px -16px rgba(37, 99, 235, .55); }
.ai-card:hover::before { opacity: 1; }
.ai-card-glow { position: absolute; right: -36px; top: -36px; width: 120px; height: 120px; border-radius: 50%; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 70%); }
.ai-card:hover .ai-card-glow { opacity: 1; }
.ai-card-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #2563eb, #22d3ee); box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .9); }
.ai-card-ico svg { width: 17px; height: 17px; }
.ai-card:nth-child(2) .ai-card-ico { background: linear-gradient(135deg, #4f46e5, #38bdf8); }
.ai-card:nth-child(3) .ai-card-ico { background: linear-gradient(135deg, #0891b2, #34d399); }
.ai-card-title { margin-top: 10px; font-weight: 600; color: #1f2d3d; font-size: 14px; }
.ai-card-text { margin-top: 4px; color: #8a94a6; font-size: 12px; line-height: 1.55; min-height: 37px; }
.ai-card-go { margin-top: 10px; font-size: 12px; color: #2563eb; opacity: .55; transform: translateX(-2px); transition: .2s; }
.ai-card-go span { margin-left: 4px; }
.ai-card:hover .ai-card-go { opacity: 1; transform: none; }
@keyframes aiOrbSpin { to { transform: rotate(360deg); } }
@keyframes aiCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .ai-welcome { margin-top: 2vh; } .ai-cards { grid-template-columns: 1fr; } }
.ai-row { display: flex; gap: 10px; margin-bottom: 16px; }
.ai-row.user { flex-direction: row-reverse; }
.ai-avatar { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: #909399; }
.ai-avatar.user { background: #409eff; }
.ai-avatar.assistant { background: linear-gradient(135deg, #6a8dff, #33c6d6); }
.ai-bubble-wrap { max-width: 76%; }
.ai-row.user .ai-bubble-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.ai-bubble { padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: #303133; background: #fff; border: 1px solid #ebeef5; }
.ai-bubble.user { background: #ecf5ff; border-color: #d9ecff; color: #1f2d3d; }
.ai-bubble.typing { color: #909399; }
.ai-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ai-act { font-size: 12px; color: #409eff; cursor: pointer; }
.ai-act:hover { text-decoration: underline; }
/* 20261108f175：知识库引用来源；20261108f176：引用卡片 + 详情弹窗 */
.ai-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 11px; color: #8a94a6; }
.ai-sources-label { color: #22a06b; background: #e9f8f0; border: 1px solid #c3ecd9; border-radius: 4px; padding: 1px 6px; }
/* 20261108f178：来源卡片改为两行——类型+标题 / 目录路径 */
.ai-source { display: inline-flex; flex-direction: column; align-items: stretch; gap: 2px; max-width: 300px; padding: 4px 8px; border-radius: 5px;
  color: #3f5f80; background: #f2f7fd; border: 1px solid #dbe8f7; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s; }
.ai-source:hover { background: #e8f2fd; border-color: #a9cdf0; box-shadow: 0 1px 4px rgba(64, 158, 255, .16); }
.ai-source-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ai-source-type { flex: none; font-style: normal; font-size: 10px; color: #409eff; background: #e3f0ff; border-radius: 3px; padding: 0 4px; }
.ai-source-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-source-path { font-size: 10px; color: #8a94a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 270px; }
.ai-src-detail-head { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #25303f; }
.ai-src-detail-path { margin: 8px 0 12px; font-size: 12px; color: #8a94a6; }
.ai-src-detail-body { white-space: pre-wrap; line-height: 1.8; font-size: 13px; color: #3d4757; background: #f7f9fc;
  border: 1px solid #e8eef6; border-radius: 6px; padding: 12px 14px; max-height: 320px; overflow: auto; }
/* 20261108f176：AI 知识库问答接入说明 / 目录提示 */
.kb-qa-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; font-size: 12px; color: #2f6f52;
  background: #f0faf5; border: 1px solid #d5f0e2; border-radius: 6px; }
.kb-qa-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, .15); }
.kb-qa-tip { width: 100%; margin-top: 4px; font-size: 11px; line-height: 1.6; color: #9099a8; }
.ai-input-wrap { flex: none; padding: 10px 16px 12px; border-top: 1px solid #f0f2f5; background: #fff; }
.ai-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ai-input-box { border: 1px solid #dcdfe6; border-radius: 10px; padding: 8px 10px 6px; transition: border-color .16s; }
.ai-input-box:focus-within { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.1); }
.ai-input-box .el-textarea__inner { box-shadow: none !important; border: 0 !important; padding: 0; background: transparent; }
.ai-input-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ai-input-bar .spacer { flex: 1; }
.ai-hint { color: #c0c4cc; font-size: 11px; }
.ai-disclaimer { margin-top: 6px; text-align: center; color: #c0c4cc; font-size: 11px; }
/* 20261031f22：AI 工作区拖拽附件提示层与拖入高亮 */
.ai-drop-hot .ai-input-box { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64,158,255,.12); }
.ai-drag-mask { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(64,158,255,.10); pointer-events: none; }
.ai-drag-inner { padding: 24px 36px; border: 2px dashed #409eff; border-radius: 12px; background: #fff; color: #337ecc; font-size: 15px; font-weight: 600; text-align: center; box-shadow: 0 8px 28px rgba(31,45,61,.12); }
.ai-drag-sub { margin-top: 8px; color: #909399; font-size: 12px; font-weight: 400; }

/* 20261108f173：AI 附件科技卡片 / 图片缩略图 / Markdown 追问美化 */
.ai-files { align-items: center; }
.ai-file-card { position: relative; display: inline-flex; align-items: center; gap: 9px; min-width: 168px; max-width: 250px;
  padding: 8px 10px; border-radius: 11px; border: 1px solid #dbe6f5;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 2px 10px rgba(37, 99, 235, .07); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ai-file-card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #22d3ee); opacity: .75; }
.ai-file-card:hover { transform: translateY(-1px); border-color: #9fc7f2; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .55); }
.ai-file-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 6px 12px -6px rgba(15, 23, 42, .5); }
.ai-file-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ai-file-name { font-size: 12px; color: #1f2d3d; font-weight: 600; max-width: 172px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-file-meta { font-size: 11px; color: #8a94a6; }
.ai-file-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border-radius: 50%; background: #8a94a6; color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .16s, background .16s; }
.ai-file-card:hover .ai-file-x { opacity: 1; }
.ai-file-x:hover { background: #f56c6c; }
.ai-img-card { position: relative; width: 62px; height: 62px; border-radius: 11px; overflow: hidden; border: 1px solid #dbe6f5;
  background: #fff; box-shadow: 0 2px 10px rgba(37, 99, 235, .08); }
.ai-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ai-img-x { position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; line-height: 15px; text-align: center; border-radius: 50%;
  background: rgba(15, 23, 42, .6); color: #fff; font-size: 12px; cursor: pointer; }
.ai-img-busy { position: absolute; inset: auto 0 0 0; padding: 2px 0; text-align: center; font-size: 10px; color: #fff; background: rgba(37, 99, 235, .75); }
.ai-img-mask { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(9, 15, 28, .72); cursor: zoom-out; }
.ai-img-mask img { max-width: 88vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ai-msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; justify-content: flex-end; }
.ai-row.assistant .ai-msg-files { justify-content: flex-start; }
.ai-msg-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; justify-content: flex-end; }
.ai-row.assistant .ai-msg-imgs { justify-content: flex-start; }
.ai-msg-imgs img { width: 116px; height: 116px; object-fit: cover; border-radius: 12px; border: 1px solid #dbe6f5; cursor: zoom-in;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .5); transition: transform .2s; }
.ai-msg-imgs img:hover { transform: scale(1.03); }
/* Markdown 回答（浅色科技风） */
.ai-bubble.assistant.ai-md { white-space: normal; padding: 12px 15px; background: linear-gradient(180deg, #ffffff, #fbfdff); border-color: #e6eef9; }
.ai-bubble-wrap { max-width: 82%; }
.ai-md .agent-md-h { margin: 12px 0 6px; font-weight: 700; color: #12263f; line-height: 1.5; }
.ai-md .agent-md-h1 { font-size: 17px; }
.ai-md .agent-md-h2 { font-size: 15.5px; }
.ai-md .agent-md-h3 { font-size: 14.5px; }
.ai-md .agent-md-h4 { font-size: 13.5px; }
.ai-md .agent-md-h:first-child { margin-top: 0; }
.ai-md .agent-md-h2 { padding-left: 9px; border-left: 3px solid #2563eb; }
.ai-md .agent-md-p { margin: 5px 0; color: #3a4a5e; font-size: 13px; line-height: 1.78; }
.ai-md .agent-md-list { margin: 4px 0 8px; padding-left: 20px; }
.ai-md .agent-md-list li { margin: 3px 0; color: #3a4a5e; line-height: 1.72; }
.ai-md .agent-md-list li::marker { color: #2563eb; }
.ai-md .agent-md-tablewrap { margin: 9px 0 11px; overflow-x: auto; border-radius: 10px; border: 1px solid #e3ecf8; }
.ai-md .agent-md-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.ai-md .agent-md-table th { padding: 8px 10px; text-align: left; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9); }
.ai-md .agent-md-table td { padding: 7px 10px; border-top: 1px solid #eef3fa; color: #3a4a5e; }
.ai-md .agent-md-table tbody tr:nth-child(even) td { background: #f7fbff; }
.ai-md .agent-md-table tbody tr:hover td { background: #eef6ff; }
.ai-md .agent-md-code { padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #b42318; background: #fff2f0; border: 1px solid #ffd9d4; font-family: Consolas, Monaco, monospace; }
.ai-md .agent-md-pre { position: relative; margin: 9px 0; padding: 12px 14px; border-radius: 10px; overflow-x: auto;
  background: #0f172a; color: #d7e5ff; font-size: 12.5px; line-height: 1.65; }
.ai-md .agent-md-pre code { font-family: Consolas, Monaco, monospace; white-space: pre; }
.ai-md .agent-md-pre::after { content: attr(data-lang); position: absolute; top: 6px; right: 10px; font-size: 10px; color: #7c93b5; letter-spacing: 1px; text-transform: uppercase; }
.ai-md .agent-md-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #22d3ee; border-radius: 0 8px 8px 0;
  background: #f2fbff; color: #4b5f78; font-size: 12.5px; }
.ai-md .agent-md-hr { margin: 12px 0; border: 0; border-top: 1px dashed #dbe6f5; }
.ai-md .agent-md-a { color: #2563eb; text-decoration: none; border-bottom: 1px dashed #9fc7f2; }
.ai-md strong { color: #12263f; font-weight: 700; }
.ai-md em { color: #2563eb; font-style: normal; font-weight: 600; }


/* ---- 系统设置 › Excel 打印模板（20261031f37 起；20261102f89 设计器换 x-spreadsheet） ---- */
.settings-excel .el-table .el-switch { transform: scale(.9); }
.xls-dlg .el-dialog__body { height: calc(100vh - 55px); padding: 0; overflow: hidden; }
.xls-designer { height: 100%; display: flex; flex-direction: column; background: #fff; }
.xls-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #ebeef5; background: #fafbfd; }
.xls-toolbar-label { font-size: 12px; color: #606266; }
.xls-main { flex: 1; min-height: 0; display: flex; }
.xls-editor-wrap { flex: 1; min-width: 0; position: relative; background: #fff; overflow: hidden; }
.xls-editor-canvas { position: absolute; inset: 0; }
/* 20261102f89：x-spreadsheet 容器（画布尺寸由控件按容器宽高计算，必须有确定高度） */
.xss-host { position: absolute; inset: 0; overflow: hidden; }
.xss-host .x-spreadsheet { height: 100%; }
.xls-data-panel { width: 300px; flex: none; border-left: 1px solid #ebeef5; padding: 10px 12px; overflow-y: auto; background: #fff; }
.xls-panel-title { font-size: 13px; font-weight: 600; color: #303133; padding-bottom: 8px; border-bottom: 1px solid #ebeef5; margin-bottom: 8px; }
.xls-panel-tip { font-size: 12px; color: #909399; line-height: 1.6; margin-bottom: 6px; }
.xls-sel { color: #409eff; }
.xls-fmt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xls-fmt > span { font-size: 12px; color: #606266; flex: none; }
.xls-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border: 1px solid #ebeef5; border-radius: 4px; margin-bottom: 4px; cursor: pointer; transition: all .15s; }
.xls-field:hover { background: #ecf5ff; border-color: #409eff; }
.xls-field-name { font-size: 12px; color: #303133; }
.xls-token { font-size: 11px; color: #409eff; font-family: Consolas, "JetBrains Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.xls-help { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #ebeef5; font-size: 11px; color: #a8abb2; line-height: 1.7; }

/* ---- 系统设置 › 审批设置（20261031f38：孚盟MX「审批管理」同款列表 + 三步向导 + 节点抽屉） ---- */
.apv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apv-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.apv-act { color: #606266; }
.apv-steps { margin: 4px 0 18px; }
.apv-pane { min-height: 380px; padding: 4px 8px 0; }
.apv-trigger { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; padding: 10px 12px; background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 4px; }
.apv-trigger > span { font-size: 13px; color: #606266; }
.apv-cond { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.apv-cond-tag { font-size: 12px; color: #909399; flex: none; }
.apv-canvas { display: flex; flex-direction: column; align-items: center; padding: 18px 12px; background: #fafbfd; border: 1px dashed #dcdfe6; border-radius: 6px; max-height: 420px; overflow-y: auto; }
.apv-nstart, .apv-nend { width: 300px; background: #f4f4f5; border: 1px solid #e4e7ed; border-radius: 6px; padding: 8px 12px; text-align: center; }
.apv-nt { font-size: 13px; font-weight: 600; color: #303133; }
.apv-nb { font-size: 12px; color: #909399; margin-top: 2px; }
.apv-node-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.apv-node { width: 300px; border-radius: 6px; padding: 0; cursor: pointer; transition: box-shadow .15s, transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.apv-node:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.apv-node-approve { background: #fff7f2; border: 1px solid #ff8a3d; }
.apv-node-cc { background: #f2f8ff; border: 1px solid #79bbff; }
.apv-node-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 13px; font-weight: 600; border-bottom: 1px dashed #ebeef5; }
.apv-node-approve .apv-node-head { color: #d9480f; }
.apv-node-cc .apv-node-head { color: #337ecc; }
.apv-node-del { cursor: pointer; color: #c0c4cc; font-size: 16px; line-height: 1; padding: 0 2px; }
.apv-node-del:hover { color: #f56c6c; }
.apv-node-body { padding: 8px 10px; font-size: 12px; color: #606266; }
.apv-line { margin: 2px 0; }
.apv-line-sub { color: #909399; }
.apv-plus { padding: 4px 0; display: flex; justify-content: center; }
.apv-summary { margin-top: 6px; padding: 12px 16px; background: #fafbfd; border: 1px solid #ebeef5; border-radius: 4px; }
.apv-summary > div { display: flex; gap: 8px; font-size: 13px; line-height: 2; }
.apv-summary span { width: 84px; flex: none; color: #909399; }
.apv-summary b { color: #303133; }
.apv-foot { display: flex; justify-content: flex-end; gap: 8px; }
.apv-drawer .apv-radio { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.apv-drawer-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebeef5; display: flex; gap: 8px; }

/* ---- 客户档案 › 左侧筛选面板（20261031f56，参考孚盟MX：单条件筛选 / 自定义客群 / 常用客群，可隐藏） ---- */
.cust-page { display: flex; align-items: stretch; }
.cust-main { flex: 1; min-width: 0; }
.cust-side { width: 190px; flex: none; margin-right: 10px; align-self: flex-start; max-height: calc(100vh - 190px); display: flex; flex-direction: column; background: #fff; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-bottom: 1px solid #ebeef5; flex: none; }
.side-all { font-size: 13px; font-weight: 600; color: #303133; cursor: pointer; user-select: none; }
.side-all em { font-style: normal; font-weight: 400; color: #909399; font-size: 12px; margin-left: 4px; }
.side-all:hover, .side-all.active { color: #409eff; }
.side-toggle { cursor: pointer; color: #909399; font-size: 12px; padding: 0 2px; user-select: none; }
.side-toggle:hover { color: #409eff; }
.side-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.side-sec { border-bottom: 1px solid #f2f6fc; }
.side-sec-head { display: flex; align-items: center; gap: 4px; padding: 8px 10px; font-size: 13px; color: #303133; cursor: pointer; user-select: none; }
.side-sec-head .caret { color: #909399; font-size: 12px; }
.seg-add { margin-left: auto; color: #409eff; font-weight: 600; font-size: 15px; line-height: 1; }
.seg-add:hover { color: #66b1ff; }
.side-sec-body { padding: 0 10px 8px; }
.side-opts { padding: 0 8px 8px; max-height: 240px; overflow-y: auto; }
.side-opt { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 12px; color: #606266; cursor: pointer; }
.side-opt:hover { background: #f2f8ff; color: #409eff; }
.side-opt.active { background: #ecf5ff; color: #409eff; font-weight: 600; }
.side-opt-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { flex: none; color: #a8abb2; font-size: 11px; }
/* 20261031f60：自定义客群悬浮时让位给编辑/删除图标 */
.side-opt:hover .seg-count { display: none; }
.side-empty { padding: 8px 4px; font-size: 12px; color: #c0c4cc; text-align: center; line-height: 1.6; }
.seg-ops { display: none; flex: none; gap: 6px; color: #909399; }
.side-opt:hover .seg-ops { display: flex; }
.seg-ops span:hover { color: #409eff; }
.side-rail { width: 26px; flex: none; margin-right: 10px; align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; background: #fff; border: 1px solid #ebeef5; border-radius: 6px; color: #909399; font-size: 12px; cursor: pointer; user-select: none; }
.side-rail:hover { color: #409eff; border-color: #b3d8ff; background: #f2f8ff; }
.side-rail-txt { writing-mode: vertical-rl; letter-spacing: 2px; }
.fav-star { cursor: pointer; font-size: 16px; line-height: 1; color: #c0c4cc; }
.fav-star.on { color: #f7ba2a; }
.fav-star:hover { color: #e6a23c; }
.seg-cond { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.seg-dlg-tip { font-size: 12px; color: #909399; line-height: 1.6; background: #f7f8fa; border-radius: 4px; padding: 8px 10px; }

/* ==================== 20261101f84：商机（列表 / 看板 / 单据页）+ 客户投诉单 + 商机设置 / 客诉设置 ==================== */
.c-red { color: #f56c6c; }
.c-blue { color: #409eff; }
.c-green { color: #67c23a; }
/* 商机看板：左侧条件栏 + 统计条 + 节点列（卡片可拖动） */
.opp-board { display: flex; align-items: flex-start; }
.opp-board-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #ebeef5; border-radius: 6px; padding: 10px 12px; max-height: calc(100vh - 190px); }
.opp-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #f0f2f5; flex: none; }
.opp-stats .spacer { flex: 1; }
.opp-stat { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #909399; }
.opp-stat b { font-size: 17px; font-weight: 700; color: #303133; font-family: Consolas, "JetBrains Mono", monospace; }
.opp-stat b.c-red { color: #f56c6c; }
.opp-stat b.c-blue { color: #409eff; }
.opp-stat b.c-green { color: #67c23a; }
.opp-cols { flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 10px 2px 4px; }
.opp-col { width: 236px; flex: none; display: flex; flex-direction: column; background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s; }
.opp-col.is-over { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64, 158, 255, .16); background: #f2f8ff; }
.opp-col-hd { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: #fff; font-size: 13px; font-weight: 600; }
.opp-col-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-col-cnt { font-size: 12px; background: rgba(255, 255, 255, .28); border-radius: 9px; padding: 0 7px; line-height: 18px; }
.opp-col-add { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: rgba(255, 255, 255, .24); cursor: pointer; font-size: 14px; line-height: 1; }
.opp-col-add:hover { background: rgba(255, 255, 255, .45); }
.opp-col-body { flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.opp-card { background: #fff; border: 1px solid #ebeef5; border-left: 3px solid #409eff; border-radius: 5px; padding: 8px 9px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .15s, transform .15s; }
.opp-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transform: translateY(-1px); }
.opp-card:active { cursor: grabbing; }
.opp-card-no { font-size: 12px; color: #409eff; font-family: Consolas, monospace; }
.opp-card-subject { font-size: 13px; font-weight: 600; color: #303133; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-card-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #909399; margin-top: 2px; }
.opp-card-amount { color: #f56c6c; font-weight: 600; font-size: 12px; }
.opp-col-empty { font-size: 12px; color: #c0c4cc; text-align: center; padding: 10px 4px; border: 1px dashed #dcdfe6; border-radius: 5px; }
/* 单据页流程节点条（点击切换节点） */
.opp-stages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0; }
.opp-stage { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #dcdfe6; border-radius: 16px; background: #fff; font-size: 12px; color: #606266; cursor: pointer; transition: all .15s; }
.opp-stage:hover { border-color: #a0cfff; color: #409eff; }
.opp-stage.on { background: #ecf5ff; border-color: #409eff; color: #409eff; font-weight: 600; }
.opp-stage-no { width: 16px; height: 16px; border-radius: 50%; background: #f0f2f5; color: #909399; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.opp-stage.on .opp-stage-no { background: #409eff; color: #fff; }
.opp-stage-dot { width: 8px; height: 8px; border-radius: 50%; }
/* 选择节点模板弹窗 */
.opp-tpl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #ebeef5; border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.opp-tpl-row:hover { border-color: #a0cfff; background: #f2f8ff; }
.opp-tpl-row.on { border-color: #409eff; background: #ecf5ff; }
.opp-tpl-name { font-size: 13px; font-weight: 600; color: #303133; }
.opp-tpl-desc { font-size: 12px; color: #909399; margin-top: 2px; }
/* 系统设置 › 商机设置 / 客诉设置 */
.opp-set-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f2f5; }
.opp-set-title { font-size: 15px; font-weight: 700; color: #1f2d3d; }
.opp-set-deny { font-size: 12px; color: #e6a23c; background: #fdf6ec; border-radius: 4px; padding: 6px 10px; margin-bottom: 10px; }
.opp-set-body { display: flex; gap: 14px; align-items: flex-start; }
.opp-set-left { width: 290px; flex: none; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.opp-set-left-title { font-size: 13px; font-weight: 600; color: #303133; padding: 8px 10px; background: #f7f8fa; border-bottom: 1px solid #ebeef5; }
.opp-set-tpl { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #f5f7fa; cursor: pointer; }
.opp-set-tpl:hover { background: #f7fbff; }
.opp-set-tpl.on { background: #ecf5ff; }
.opp-set-tpl-main { flex: 1; min-width: 0; }
.opp-set-tpl-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #303133; }
.opp-set-tpl-sub { font-size: 11px; color: #909399; margin-top: 3px; line-height: 1.5; word-break: break-all; }
.opp-set-tpl-ops { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.opp-set-right { flex: 1; min-width: 0; }
.opp-set-right-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.opp-set-right-hd .spacer { flex: 1; }
.opp-set-right-title { font-size: 14px; font-weight: 700; color: #1f2d3d; }
.opp-set-stages { display: flex; flex-direction: column; gap: 6px; }
.opp-set-stage { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #ebeef5; border-radius: 6px; background: #fff; font-size: 12px; color: #606266; }
.opp-set-stage .spacer { flex: 1; }
.opp-set-stage.is-over { border-color: #409eff; background: #f2f8ff; }
.opp-set-stage.is-off { opacity: .62; }
.opp-set-stage-drag { color: #c0c4cc; font-size: 12px; letter-spacing: -2px; cursor: grab; }
.opp-set-stage-no { width: 18px; height: 18px; border-radius: 50%; background: #f0f2f5; color: #909399; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.opp-set-stage-dot { width: 10px; height: 10px; border-radius: 50%; }
.opp-set-stage-name { font-size: 13px; font-weight: 600; color: #303133; }
.opp-set-stage-rate { color: #909399; }
.opp-set-colors { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.opp-set-color { width: 18px; height: 18px; border-radius: 4px; cursor: pointer; border: 1px solid #fff; box-shadow: 0 0 0 1px #e4e7ed; }
.opp-set-color:hover { box-shadow: 0 0 0 2px #a0cfff; }
/* 客诉设置：索赔原因 / 索赔结果 两列 */
.cp-set-grid { display: flex; gap: 14px; align-items: flex-start; }
.cp-set-col { flex: 1; min-width: 0; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.cp-set-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #f7f8fa; border-bottom: 1px solid #ebeef5; }
.cp-set-hd .spacer { flex: 1; }
.cp-set-title { font-size: 13px; font-weight: 700; color: #303133; }
.cp-set-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.cp-set-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #ebeef5; border-radius: 6px; background: #fff; font-size: 12px; color: #606266; }
.cp-set-row .spacer { flex: 1; }
.cp-set-row.is-over { border-color: #409eff; background: #f2f8ff; }
.cp-set-row.is-off { opacity: .62; }
.cp-set-no { color: #a8abb2; font-size: 11px; }
.cp-set-value { font-size: 13px; color: #303133; }
/* 客户投诉单：来源发货单只读信息条 */
.cp-dv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: #606266; background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; }
.cp-dv-meta b { color: #303133; }
@media (max-width: 1200px) {
  .opp-set-body, .cp-set-grid { flex-direction: column; }
  .opp-set-left { width: 100%; }
}

/* ==================== 20261104f100：不可编辑字段统一视觉 ==================== */
/* 约定：表单中「新增时 / 修改时不可编辑」的字段（字段权限、业务字段配置关闭、发号字段自动生成等）一律禁用，
   统一浅蓝底 + 禁用光标，明确告诉用户该字段不允许输入，避免白底输入框造成「可以改」的误解 */
.el-input.is-disabled .el-input__wrapper,
.el-textarea.is-disabled .el-textarea__inner,
.el-select.is-disabled .el-select__wrapper,
.el-select .el-input.is-disabled .el-input__wrapper,
.el-date-editor.is-disabled .el-input__wrapper,
.el-date-editor.el-range-editor.is-disabled,
.el-input-number.is-disabled .el-input__wrapper,
.el-cascader.is-disabled .el-input__wrapper,
.el-tree-select.is-disabled .el-input__wrapper,
.el-autocomplete.is-disabled .el-input__wrapper {
  background-color: #eaf4ff !important;
  box-shadow: 0 0 0 1px #b7d5ff inset !important;
  cursor: not-allowed !important;
}
.el-input.is-disabled .el-input__inner,
.el-textarea.is-disabled .el-textarea__inner,
.el-select.is-disabled .el-select__selected-item,
.el-select.is-disabled .el-select__placeholder,
.el-date-editor.is-disabled .el-range-input,
.el-date-editor.is-disabled .el-range-separator,
.el-cascader.is-disabled .el-input__inner,
.el-input-number.is-disabled .el-input__inner {
  color: #6b7c93 !important;
  -webkit-text-fill-color: #6b7c93 !important;
  cursor: not-allowed !important;
}
.el-input.is-disabled .el-input__inner::placeholder,
.el-textarea.is-disabled .el-textarea__inner::placeholder,
.el-select.is-disabled .el-select__placeholder::placeholder {
  color: #9aa8bd !important;
  -webkit-text-fill-color: #9aa8bd !important;
}
/* 只读明示：禁用字段右侧若带提示文案，统一小号灰字（不覆盖业务自定义颜色） */
.el-form-item__content .field-readonly-tip { color: #909399; font-size: 12px; line-height: 1.6; }

/* ---- 通用业务单据表单弹窗（20261106f117）：限高 + 内容区滚动 + 底部按钮固定 ---- */
.biz-form-dialog { display: flex; flex-direction: column; max-height: 92vh; margin-bottom: 0; }
.biz-form-dialog .el-dialog__header { flex: none; }
.biz-form-dialog .el-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.biz-form-dialog .el-dialog__footer { flex: none; border-top: 1px solid #ebeef5; padding-top: 12px; background: #fff; }

/* ---- 项目任务到期提醒（20261106f126）：预计完成时间=当天黄色、已逾期红色；任务已完成 / 已取消不提醒 ---- */
.el-table__row.task-row-due > td.el-table__cell { background-color: #fff7d6 !important; }
.el-table__row.task-row-due:hover > td.el-table__cell { background-color: #fff1b8 !important; }
.el-table__row.task-row-overdue > td.el-table__cell { background-color: #ffe0e0 !important; }
.el-table__row.task-row-overdue:hover > td.el-table__cell { background-color: #ffd0d0 !important; }

/* ---- 项目管理 › 项目任务列计数（20261107f140）：当天未完成=黄色，超期未完成=红色 ---- */
/* 20261107f142：两个计数与前面文字同字号、同字重，仅用字体颜色区分（去掉色块背景），并拉开间距 */
.task-link-cell { display: inline-flex; align-items: baseline; gap: 12px; }
.task-badge { font-size: 14px; line-height: 1.4; font-weight: 400; white-space: nowrap; }
.task-badge-due { color: #e6a23c; }
.task-badge-overdue { color: #f56c6c; }
/* 20261107f141：项目任务小窗口快捷筛选标签（可点击过滤，选中态加下划线） */
.task-quick { cursor: pointer; user-select: none; }
.task-quick-on { text-decoration: underline; font-weight: 600; }

/* ---- 20261107f144：完成百分比滑杆（科技感） ---- */
.pct-slider-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.pct-slider-row .percent-slider { flex: 1; padding: 0 6px; }
.pct-slider-row .pct-input { width: 66px; }
.pct-slider-row .pct-suffix { color: #36cfc9; font-size: 13px; font-weight: 600; }
.pct-slider-row.mini .percent-slider { padding: 0 4px; }
.percent-slider .el-slider__runway { height: 8px; border-radius: 5px; background: linear-gradient(90deg, rgba(64,158,255,.18), rgba(54,207,201,.18)); }
.percent-slider .el-slider__bar { height: 8px; border-radius: 5px; background: linear-gradient(90deg, #409eff, #36cfc9 60%, #67c23a); box-shadow: 0 0 8px rgba(64,158,255,.55); }
.percent-slider .el-slider__button { width: 16px; height: 16px; border: 2px solid #36cfc9; background: #fff; box-shadow: 0 0 7px rgba(54,207,201,.8); }
/* 列表内的百分比进度条 */
.pct-bar-wrap { display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.pct-bar { position: relative; flex: 1; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(64,158,255,.15); }
.pct-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #409eff, #36cfc9); box-shadow: 0 0 6px rgba(54,207,201,.6); transition: width .3s; }
.pct-num { min-width: 40px; text-align: right; font-size: 12px; font-weight: 600; color: #409eff; font-variant-numeric: tabular-nums; }

/* ---- 20261107f146：列设置「应用范围」（仅管理员可见） ---- */
.col-apply-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; margin-top: 4px; border-top: 1px dashed #dcdfe6; background: #fffaf0; }
.col-apply-label { font-size: 13px; color: #606266; }
.col-apply-hint { font-size: 12px; color: #b88230; }

/* ================= AI 驾驶舱（20261110f193）=================
   浅色科技感：白→淡蓝渐变底 + 细网格 + 青蓝光晕，卡片玻璃拟态 + hover 抬升 */
.cockpit {
  position: relative; min-height: calc(100vh - 96px); padding: 2px;
  font-variant-numeric: tabular-nums;
}
.cockpit::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 12px;
  background:
    radial-gradient(900px 320px at 12% -8%, rgba(37,99,235,.10), transparent 62%),
    radial-gradient(760px 300px at 92% 0%, rgba(6,182,212,.12), transparent 60%),
    linear-gradient(180deg, #f7fbff 0%, #f5f7fa 46%, #f5f7fa 100%);
}
.cockpit::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 12px; opacity: .5;
  background-image: linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 30% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 30% 0%, #000 0%, transparent 72%);
}
.cockpit > * { position: relative; z-index: 1; }

/* 顶部品牌条 */
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px 12px; }
.cp-brand { display: flex; align-items: center; gap: 14px; }
.cp-orb {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 46%, #06b6d4);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.4);
}
.cp-orb i {
  position: absolute; inset: -6px; border-radius: 20px; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(37,99,235,.0), rgba(6,182,212,.55), rgba(37,99,235,.0) 62%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: cpSpin 5.2s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }
.cp-orb span { position: relative; z-index: 1; }
.cp-title { font-size: 19px; font-weight: 700; color: #16233b; display: flex; align-items: center; gap: 8px; letter-spacing: .4px; }
.cp-badge {
  font-size: 11px; font-weight: 500; color: #0891b2; background: #e6f9fd; border: 1px solid #b9ecf7;
  border-radius: 20px; padding: 0 7px; line-height: 17px;
}
.cp-badge::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #06b6d4; margin-right: 4px; vertical-align: 1px; animation: cpPulse 1.6s ease-in-out infinite; }
@keyframes cpPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.cp-sub { margin-top: 3px; font-size: 12px; color: #8b97a8; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cp-dot { color: #ccd5e0; }
.cp-actions { display: flex; align-items: center; gap: 10px; }
.cp-range { display: flex; background: #fff; border: 1px solid #e3ebf6; border-radius: 9px; padding: 3px; box-shadow: 0 2px 8px rgba(37,99,235,.06); }
.cp-range span { padding: 4px 12px; border-radius: 7px; font-size: 12.5px; color: #5b6b82; cursor: pointer; transition: all .16s; user-select: none; }
.cp-range span:hover { color: #2563eb; background: #f2f7ff; }
.cp-range span.on { color: #fff; background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 3px 10px rgba(37,99,235,.28); }

/* KPI 卡片 */
.cp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0 16px 4px; }
.cp-kpi {
  position: relative; overflow: hidden; background: #fff; border: 1px solid #e6eefb; border-radius: 12px;
  padding: 13px 14px 11px; box-shadow: 0 4px 16px rgba(30,64,175,.06);
  animation: cpRise .42s cubic-bezier(.22,.9,.32,1) both; transition: transform .18s, box-shadow .18s;
}
.cp-kpi::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, #2563eb, #06b6d4, transparent); }
.cp-kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(37,99,235,.16); }
@keyframes cpRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cp-kpi-head { display: flex; align-items: center; justify-content: space-between; }
.cp-kpi-label { font-size: 12.5px; color: #7c8a9e; }
.cp-kpi-ico { width: 22px; height: 22px; color: #93b4e8; display: inline-flex; }
.cp-kpi-ico svg { width: 100%; height: 100%; }
.cp-kpi-num {
  margin-top: 6px; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.5px;
  background: linear-gradient(130deg, #16233b 10%, #2563eb 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cp-kpi-num em { font-size: 12px; font-style: normal; font-weight: 500; margin-left: 2px; -webkit-text-fill-color: #8b97a8; }
.cp-kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.cp-delta { font-size: 12px; font-weight: 600; border-radius: 5px; padding: 1px 5px; }
.cp-delta.up { color: #0f9d58; background: #e9f8f0; }
.cp-delta.down { color: #e0533d; background: #fdeeea; }
.cp-kpi-hint { font-size: 11.5px; color: #b3bdcb; }

/* 通用卡片与行布局 */
.cp-row { display: grid; gap: 12px; padding: 12px 16px 0; }
.cp-row { grid-template-columns: 1.62fr 1fr; }
.cp-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.cp-row-2 { grid-template-columns: 1.55fr 1fr; }
.cp-row:last-child { padding-bottom: 16px; }
.cp-card {
  background: #fff; border: 1px solid #e6eefb; border-radius: 12px; padding: 13px 15px 14px;
  box-shadow: 0 4px 16px rgba(30,64,175,.06); min-width: 0; transition: box-shadow .18s;
}
.cp-card:hover { box-shadow: 0 10px 26px rgba(37,99,235,.11); }
.cp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cp-card-head b { font-size: 14px; color: #1f2d3d; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.cp-card-head b::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #06b6d4); }
.cp-hint { font-size: 11.5px; color: #aeb9c8; }
.cp-legend { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #7c8a9e; }
.cp-legend .lg { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cp-legend .lg + .lg { margin-left: 10px; }
.lg-follow { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.lg-new { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

/* 趋势折线 */
.cp-trend { position: relative; }
.cp-line { width: 100%; height: 236px; display: block; }
.cp-empty { text-align: center; color: #b8c2cf; font-size: 13px; padding: 64px 0; }
.cp-empty.small { padding: 26px 0; font-size: 12.5px; }

/* 销售漏斗 */
.cp-funnel-list { display: flex; flex-direction: column; gap: 9px; }
.cp-funnel-item { position: relative; }
.cp-funnel-label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #5b6b82; margin-bottom: 4px; }
.cp-funnel-label b { color: #1f2d3d; font-size: 13.5px; }
.cp-funnel-track { height: 9px; border-radius: 6px; background: #f1f5fb; overflow: hidden; }
.cp-funnel-fill { height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.22,.9,.32,1); }
.cp-funnel-fill.fv0 { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.cp-funnel-fill.fv1 { background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.cp-funnel-fill.fv2 { background: linear-gradient(90deg, #06b6d4, #2dd4bf); }
.cp-funnel-fill.fv3 { background: linear-gradient(90deg, #6366f1, #818cf8); }
.cp-funnel-fill.fv4 { background: linear-gradient(90deg, #22c55e, #4ade80); }
.cp-funnel-rate { font-size: 11.5px; color: #aeb9c8; margin-top: 3px; }
.cp-funnel-rate em { font-style: normal; color: #0891b2; font-weight: 600; }

/* 环形图 */
.cp-donut-wrap { display: flex; align-items: center; gap: 16px; padding: 4px 0 2px; }
.cp-donut {
  position: relative; width: 128px; height: 128px; flex: none; border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37,99,235,.14);
}
.cp-donut::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #eef3fb; }
.cp-donut-hole { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cp-donut-hole b { font-size: 21px; color: #16233b; line-height: 1.1; }
.cp-donut-hole span { font-size: 11px; color: #9aa6b6; margin-top: 2px; }
.cp-donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cp-lg-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #5b6b82; }
.cp-lg-item i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cp-lg-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-lg-item b { color: #1f2d3d; }

/* 跟进方式条形 */
.cp-bars { display: flex; flex-direction: column; gap: 11px; padding-top: 3px; }
.cp-bar-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.cp-bar-name { width: 68px; flex: none; color: #5b6b82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-bar-track { flex: 1; height: 8px; border-radius: 6px; background: #f1f5fb; overflow: hidden; }
.cp-bar-fill {
  height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 0 8px rgba(6,182,212,.35); transition: width .6s cubic-bezier(.22,.9,.32,1);
}
.cp-bar-val { width: 34px; text-align: right; color: #1f2d3d; font-weight: 600; }

/* 团队战力榜 */
.cp-rank { display: flex; flex-direction: column; gap: 11px; }
.cp-rank-item { display: flex; gap: 9px; align-items: flex-start; }
.cp-rank-no {
  width: 19px; height: 19px; flex: none; border-radius: 6px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #8b97a8; background: #f1f5fb; margin-top: 1px;
}
.cp-rank-no.no0 { color: #fff; background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 2px 8px rgba(245,158,11,.34); }
.cp-rank-no.no1 { color: #fff; background: linear-gradient(135deg, #64748b, #94a3b8); }
.cp-rank-no.no2 { color: #fff; background: linear-gradient(135deg, #b45309, #d97706); }
.cp-rank-body { flex: 1; min-width: 0; }
.cp-rank-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.cp-rank-name { color: #3c4a5e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-rank-line b { color: #2563eb; font-size: 12.5px; }
.cp-rank-track { height: 6px; border-radius: 5px; background: #f1f5fb; overflow: hidden; margin: 4px 0 2px; }
.cp-rank-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #6366f1, #06b6d4); transition: width .6s cubic-bezier(.22,.9,.32,1); }
.cp-rank-sub { font-size: 11px; color: #aeb9c8; }

/* AI 智能洞察 */
.cp-ai-mark {
  display: inline-flex; align-items: center; justify-content: center; height: 17px; padding: 0 6px; border-radius: 5px;
  font-size: 10.5px; color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 2px 8px rgba(6,182,212,.36);
}
.cp-insights { display: flex; flex-direction: column; gap: 9px; }
.cp-insight {
  display: flex; gap: 9px; padding: 9px 11px; border-radius: 9px; background: #f8fafd;
  border: 1px solid #eef3fb; transition: background .16s, transform .16s;
}
.cp-insight:hover { background: #f3f8ff; transform: translateX(2px); }
.cp-insight-bar { width: 3px; border-radius: 3px; flex: none; background: #94a3b8; }
.cp-insight.lv-good .cp-insight-bar { background: linear-gradient(180deg, #22c55e, #4ade80); }
.cp-insight.lv-warn .cp-insight-bar { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.cp-insight.lv-risk .cp-insight-bar { background: linear-gradient(180deg, #ef4444, #f87171); }
.cp-insight.lv-info .cp-insight-bar { background: linear-gradient(180deg, #2563eb, #06b6d4); }
.cp-insight-title { font-size: 12.8px; font-weight: 600; color: #1f2d3d; }
.cp-insight.lv-good .cp-insight-title { color: #0f8a4f; }
.cp-insight.lv-warn .cp-insight-title { color: #b45309; }
.cp-insight.lv-risk .cp-insight-title { color: #c53727; }
.cp-insight-text { font-size: 12px; color: #7c8a9e; line-height: 1.6; margin-top: 3px; }

/* 实时动态 */
.cp-feed-list { display: flex; flex-direction: column; gap: 2px; max-height: 296px; overflow-y: auto; }
.cp-feed-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 2px; border-bottom: 1px dashed #f0f4fa; }
.cp-feed-item:last-child { border-bottom: none; }
.cp-feed-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; }
.cp-feed-dot.is-follow { background: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.13); }
.cp-feed-dot.is-order { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.13); }
.cp-feed-body { flex: 1; min-width: 0; }
.cp-feed-title { font-size: 12.8px; color: #2b3a4f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-feed-sub { font-size: 11.5px; color: #93a0b1; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-feed-time { flex: none; font-size: 11px; color: #b3bdcb; font-family: Consolas, monospace; }

@media (max-width: 1440px) {
  .cp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .cp-row, .cp-row-3, .cp-row-2 { grid-template-columns: 1fr; }
  .cp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 驾驶舱双击穿透（20261110f194）============ */
.cp-tip {
  margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; color: #2563eb; background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .16); white-space: nowrap;
}
/* 20261110f196：单击 / 双击均可穿透——禁用文字选中，避免双击时选中文字 */
.cp-drill { cursor: pointer; user-select: none; -webkit-user-select: none; }
.cp-drill:hover { filter: brightness(.99); }
.cp-kpi.cp-drill:hover { border-color: rgba(37, 99, 235, .32); box-shadow: 0 12px 30px rgba(37, 99, 235, .14); }
.cp-funnel-item.cp-drill:hover .cp-funnel-label span { color: #2563eb; }
.cp-lg-item.cp-drill:hover, .cp-bar-item.cp-drill:hover, .cp-rank-item.cp-drill:hover, .cp-feed-item.cp-drill:hover {
  background: rgba(37, 99, 235, .05); border-radius: 8px;
}
.cp-line circle.cp-drill:hover { stroke-width: 3; }
.cp-line text.cp-drill:hover { fill: #2563eb; }

/* 20261110f203：计算设置弹窗（孚盟式排版） */
.cf-formula { font-size: 13px; color: #303133; }
.cf-formula-head {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; margin-bottom: 12px;
  background: #f5f7fa; border-bottom: 1px solid #e4e7ed;
}
.cf-formula-num {
  width: 24px; height: 24px; border-radius: 4px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #dcdfe6; font-weight: 700; color: #606266;
}
.cf-formula-sum { flex: 1; min-width: 0; line-height: 1.9; }
.cf-formula-sum > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-formula-lb { color: #909399; }
.cf-formula-tx { color: #303133; }
.cf-formula-sec { margin-bottom: 14px; }
.cf-formula-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cf-formula-sec-t { font-weight: 600; color: #303133; }
.cf-cond-list { padding: 10px 12px; background: #fafafa; border: 1px dashed #dcdfe6; border-radius: 4px; }
.cf-cond-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cf-cond-tip { font-size: 12px; color: #909399; }
.cf-chip-tabs { border-bottom: 1px solid #e4e7ed; margin-bottom: 10px; }
.cf-chip-tab { display: inline-block; padding: 6px 2px; font-size: 13px; color: #606266; border-bottom: 2px solid transparent; }
.cf-chip-tab.on { color: #e1251b; border-bottom-color: #e1251b; font-weight: 600; }
.cf-chip-box {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 190px; overflow-y: auto; padding: 2px;
}
.cf-chip {
  padding: 5px 12px; border: 1px solid #dcdfe6; border-radius: 3px;
  background: #fff; color: #303133; cursor: pointer; line-height: 1.5; user-select: none;
}
.cf-chip:hover { border-color: #e1251b; color: #e1251b; background: #fff7f6; }
.cf-chip-empty { color: #c0c4cc; font-size: 12px; }
.cf-opbar { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.cf-opbar-gap { flex: 1; }
.cf-opbtn { min-width: 34px; padding: 5px 8px; font-weight: 600; }
.cf-op-save { color: #e1251b; border-color: #e1251b; }

/* 20261110f206：高级配置（文本字段拼接 / 去重） */
.cf-adv-title {
  margin: 4px 0 16px; padding-left: 10px;
  border-left: 3px solid #409eff; line-height: 1.4;
  font-size: 14px; font-weight: 600; color: #303133;
}
.cf-adv-tip { font-size: 12px; color: #909399; line-height: 1.6; }

/* 20261112f210：客户标签（系统设置 › 标签管理 颜色快捷选择） */
.tag-palette { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag-pal {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #dcdfe6; cursor: pointer; box-sizing: border-box;
}
.tag-pal:hover { border-color: #409eff; }

/* 20261112f211：业务字段配置 › 新增默认值 控件提示 */
.cf-def-tip { font-size: 12px; color: #909399; line-height: 1.6; margin-top: 4px; }

/* 20261112f212：打标签弹窗——左右两栏点选（左：可选标签 / 右：已选标签，可 × 移除） */
.tag-pick-wrap { display: flex; align-items: stretch; gap: 10px; }
.tag-pick-pane {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid #e4e7ed; border-radius: 6px; background: #fafafa; padding: 8px 10px; min-height: 150px;
}
.tag-pick-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #606266; margin-bottom: 8px; }
.tag-pick-count { color: #909399; font-weight: 400; }
.tag-pick-list { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.tag-chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid #dcdfe6;
  border-radius: 12px; background: #fff; font-size: 12px; color: #606266;
  cursor: pointer; user-select: none; transition: all .15s;
}
.tag-chip:hover { border-color: #409eff; color: #409eff; }
.tag-chip.is-picked { background: #ecf5ff; border-color: #409eff; color: #409eff; }
.tag-chip-x { font-style: normal; font-size: 13px; margin-left: 3px; opacity: .75; }
.tag-chip-x:hover { opacity: 1; }
.tag-pick-empty { color: #c0c4cc; font-size: 12px; line-height: 1.8; }
.tag-pick-arrow { display: flex; align-items: center; color: #c0c4cc; font-size: 16px; }




