/* YMHTuoke — 商业 BI 风格：全局卡片化 + 深蓝侧栏 */
:root {
  --bi-primary: #1a5fb4;
  --bi-primary-dark: #153d7a;
  --bi-sidebar: #1a2332;
  --bi-sidebar-hover: rgba(255, 255, 255, 0.06);
  --bi-success: #34a853;
  --bi-danger: #e53935;
  --bi-chart-line-a: #1a5fb4;
  --bi-chart-line-b: #34a853;
  --ep-color-primary: var(--bi-primary);
  --ep-color-success: var(--bi-success);
  --ep-bg-page: #f4f6f8;
  --ep-text: #1f2937;
  --ep-text-secondary: #6b7280;
  --sidebar-bg: var(--bi-sidebar);
  --sidebar-text: #cbd5e1;
  --sidebar-active: #3b82f6;
  --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --card-radius: 14px;
  --border: #e5e7eb;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
}
/* box-sizing：作用域在应用壳与登录页，避免影响第三方页内嵌组件 */
#loginScreen,
#loginScreen *,
.ymh-app,
.ymh-app *,
.ymh-app *::before,
.ymh-app *::after {
  box-sizing: border-box;
}
html, body { height: 100%; margin: 0; font-family: var(--font); font-size: 14px; color: var(--ep-text); }
body.ymh-app { display: flex; flex-direction: column; min-height: 100vh; background: var(--ep-bg-page); }

/* 登录 */
#loginScreen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d2b3a 0%, #304156 100%); }
#loginBox { width: 400px; padding: 40px; background: #fff; border-radius: 8px; box-shadow: var(--card-shadow); }
#loginBox h2 { margin: 0 0 24px; font-size: 20px; font-weight: 600; }
#loginBox label { display: block; margin: 12px 0 6px; color: var(--ep-text-secondary); font-size: 13px; }
#loginBox input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; }
#loginBox .btn-primary { width: 100%; margin-top: 20px; padding: 12px; background: var(--ep-color-primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
#loginErr { color: #f56c6c; font-size: 13px; margin-top: 12px; min-height: 20px; }

/* 壳 */
.ymh-layout { display: flex; flex: 1; min-height: 0; }
.ymh-sidebar {
  width: 220px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; transition: width 0.2s;
}
.ymh-sidebar.collapsed { width: 64px; }
.ymh-brand { height: 56px; display: flex; align-items: center; padding: 0 16px; font-size: 16px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; }
.ymh-sidebar.collapsed .ymh-brand span { display: none; }
.ymh-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.menu-group { margin-bottom: 4px; }
.menu-1 {
  width: 100%; text-align: left; padding: 12px 16px; background: transparent; border: none; color: var(--sidebar-text);
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: space-between;
}
.menu-1:hover { color: #fff; }
.menu-1 .arrow { transition: transform 0.2s; font-size: 10px; opacity: 0.7; }
.menu-group.open .menu-1 .arrow { transform: rotate(90deg); }
.submenu { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: rgba(0,0,0,.15); }
.menu-group.open .submenu { max-height: 500px; }
.submenu a {
  display: block; padding: 10px 16px 10px 28px; color: var(--sidebar-text); text-decoration: none; font-size: 13px; cursor: pointer; border-left: 3px solid transparent;
}
.submenu a:hover { color: #fff; background: rgba(255,255,255,.04); }
.submenu a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
  border-left-color: var(--sidebar-active);
}

.ymh-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ymh-topbar {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
  color: var(--ep-text-secondary);
}
.ymh-tabs {
  display: flex; align-items: flex-end; gap: 4px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--border);
  min-height: 40px; flex-wrap: nowrap; overflow-x: auto;
}
.ymh-tab {
  padding: 8px 14px; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0;
  background: #f5f7fa; color: var(--ep-text-secondary); cursor: pointer; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
}
.ymh-tab.active {
  background: var(--ep-bg-page);
  color: var(--bi-primary);
  border-color: var(--border);
  border-bottom-color: var(--ep-bg-page);
  margin-bottom: -1px;
  padding-bottom: 9px;
  font-weight: 600;
}
.ymh-tab .close { opacity: 0.5; font-size: 14px; line-height: 1; padding: 0 2px; }
.ymh-tab .close:hover { opacity: 1; color: #f56c6c; }

.ymh-content { flex: 1; overflow: auto; padding: 16px; }

/* 卡片与表格（全站统一：白底、大圆角、轻阴影） */
.ymh-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.ymh-card-title { font-size: 16px; font-weight: 600; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ymh-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.ymh-toolbar .field label { display: block; font-size: 12px; color: var(--ep-text-secondary); margin-bottom: 4px; }
.ymh-toolbar input, .ymh-toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; min-width: 160px; font-size: 13px; }
.ymh-toolbar .field.cp-star-filter input[type='checkbox'] {
  min-width: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  vertical-align: middle;
  accent-color: var(--ep-color-primary);
}
.ymh-toolbar .cp-star-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #606266;
}
.ymh-toolbar .actions { margin-left: auto; display: flex; gap: 8px; }
.btn { padding: 8px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: #fff; }
.btn-primary {
  background: var(--bi-primary);
  color: #fff;
  border-color: var(--bi-primary);
}
.btn-primary:hover {
  background: var(--bi-primary-dark);
  border-color: var(--bi-primary-dark);
}
.btn-danger { color: #f56c6c; border-color: #fbc4c4; background: #fef0f0; }
.btn-text { border: none; background: none; color: var(--bi-primary); padding: 4px 8px; }
.btn-text.danger { color: #f56c6c; }

.ymh-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
/* 客户池：固定行高 + 纵向滚动，避免大屏小屏行高不一 */
.ymh-table-wrap.ymh-table-wrap--cp-pool {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(62vh, 720px);
  border-radius: 8px;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool table.ymh-table {
  table-layout: fixed;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--border);
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table td,
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table th {
  height: 44px;
  max-height: 44px;
  padding: 6px 10px;
  box-sizing: border-box;
  vertical-align: middle;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table td:not(.op):not(.cp-op-icons) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table td.op,
.ymh-table-wrap.ymh-table-wrap--cp-pool .ymh-table td.cp-op-icons {
  white-space: nowrap;
  overflow: visible;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .cp-name-cell {
  vertical-align: middle;
}
.ymh-table-wrap.ymh-table-wrap--cp-pool .cp-star-remark {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
/* 线索池筛选：单行横向排布，窄屏横向滚动 */
.cl-leads-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
/* 跟进客户状态下拉向下展开时盖住下方「新增线索」等按钮行：整块工具栏抬升堆叠 */
.cl-leads-toolbar.cl-leads-toolbar--cst-open,
.cl-leads-toolbar:has(.cl-cst-dd--open) {
  position: relative;
  z-index: 100;
  overflow: visible;
}
.ymh-card > #cl_actions {
  position: relative;
  z-index: 0;
}
.cl-leads-toolbar .cl-field-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cl-leads-toolbar .cl-field-inline label {
  font-size: 13px;
  color: #606266;
  margin: 0;
  font-weight: 500;
}
.cl-leads-toolbar .cl-field-inline input[type='text'],
.cl-leads-toolbar .cl-field-inline input[type='date'],
.cl-leads-toolbar .cl-field-inline select {
  padding: 6px 8px;
  font-size: 13px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.cl-leads-toolbar .cl-date-sep {
  color: #909399;
  font-size: 13px;
  padding: 0 2px;
  user-select: none;
}
/* 线索池：跟进状态列内 — 状态下拉 + 微信备注 */
.cl-td-status {
  vertical-align: top;
}
.cl-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 148px;
}
.cl-status-cell .cl-wx-remark-in-status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 8px;
  line-height: 1.35;
}
/* 线索池：跟进客户状态 — 下拉 + 复选框多选 */
.cl-leads-toolbar .cl-cst-field .cl-cst-field__lab {
  font-size: 13px;
  color: #606266;
  font-weight: 500;
  margin: 0;
}
.cl-cst-dd {
  position: relative;
  width: 100%;
  min-width: 188px;
  max-width: 240px;
}
.cl-cst-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: #303133;
  box-sizing: border-box;
}
.cl-cst-trigger:hover {
  border-color: #c0c4cc;
}
.cl-cst-dd.cl-cst-dd--open .cl-cst-trigger {
  border-color: #409eff;
  box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.2);
}
.cl-cst-trigger__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-cst-caret {
  flex-shrink: 0;
  font-size: 9px;
  color: #909399;
  transition: transform 0.15s ease;
}
.cl-cst-dd.cl-cst-dd--open .cl-cst-caret {
  transform: rotate(180deg);
}
.cl-cst-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 6px 0;
}
.cl-cst-dd.cl-cst-dd--open .cl-cst-panel {
  display: block;
}
.cl-cst-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cl-cst-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  color: #303133;
}
.cl-cst-item:hover {
  background: #f5f7fa;
}
.cl-cst-item input.cl_cst_cb {
  margin: 2px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}
.cl-cst-item__txt {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.cl-filter-snapshot {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
}
.cl-filter-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
}
.cl-hd-tab--active {
  background: #ecf5ff !important;
  color: #1a5fb4 !important;
  font-weight: 600;
}
.cl-phr-cat-tab--active {
  background: var(--bi-primary) !important;
  color: #fff !important;
}
.cl-phr-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #ebeef5;
}
.cl-phr-line__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.cl-phr-line__btns {
  flex-shrink: 0;
}

/* 客户资料（线索池）：横向滚动时左侧全选框不要被裁切 */
.ymh-table-wrap.ymh-table-wrap--crm-leads {
  padding-left: 10px;
  box-sizing: border-box;
}
.ymh-table-wrap.ymh-table-wrap--crm-leads table.ymh-table thead th:first-child,
.ymh-table-wrap.ymh-table-wrap--crm-leads table.ymh-table tbody td:first-child {
  padding-left: 10px;
}
.ymh-table-wrap.ymh-table-wrap--crm-leads table.ymh-table thead th:first-child input[type='checkbox'] {
  vertical-align: middle;
}
/* 客户资料（线索池）：勿用 table-layout:fixed，避免操作列按钮被裁成「…」 */
.ymh-table-wrap.ymh-table-wrap--crm-leads table.ymh-table {
  table-layout: auto;
}
.ymh-table-wrap.ymh-table-wrap--crm-leads td.cl-op,
.ymh-table-wrap.ymh-table-wrap--crm-leads th.cl-op-th {
  min-width: 260px;
  white-space: nowrap;
  overflow: visible;
  vertical-align: middle;
}
/* 线索池：按跟进状态整行底色（覆盖斑马纹） */
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-lead-row {
  transition: background 0.12s ease;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-lead-row:hover {
  filter: brightness(0.97);
}
/* 线索池行色：未添加灰 / 已加浅黄 / 洽谈浅绿 / 有意向深绿 / 提需求橙 / 客户异常红 / 不相关浅紫 */
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-none {
  background: #eceff1 !important;
  box-shadow: inset 3px 0 0 #9e9e9e;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-talk {
  background: #e8f5e9 !important;
  box-shadow: inset 3px 0 0 #81c784;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-intent {
  background: #c8e6c9 !important;
  box-shadow: inset 3px 0 0 #2e7d32;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-need {
  background: #fff3e0 !important;
  box-shadow: inset 3px 0 0 #fb8c00;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-cooperating {
  background: #e0f2f1 !important;
  box-shadow: inset 3px 0 0 #00897b;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-legacy {
  background: #f0f2f5 !important;
  box-shadow: inset 3px 0 0 #b0bec5;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-pending {
  background: #fffbe6 !important;
  box-shadow: inset 3px 0 0 #f5d742;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-abnormal {
  background: #ffebee !important;
  box-shadow: inset 3px 0 0 #e53935;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-wrong {
  background: #f3e5f5 !important;
  box-shadow: inset 3px 0 0 #ab47bc;
}
.ymh-table-wrap--crm-leads .ymh-table tbody tr.cl-row--st-other {
  background: #fafafa !important;
  box-shadow: inset 3px 0 0 #dcdfe6;
}
table.ymh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ymh-table th { background: #fafafa; color: var(--ep-text-secondary); font-weight: 500; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.ymh-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ymh-table tbody tr:nth-child(even) { background: #fafcff; }
.ymh-table tbody tr:hover { background: #ecf5ff; }
.ymh-table .op { white-space: nowrap; }

/* 客户状态标签 */
.ymh-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ymh-tag--gray { background: #f4f4f5; color: #909399; border: 1px solid #e4e7ed; }
.ymh-tag--blue { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }
.ymh-tag--orange { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.ymh-tag--green { background: #f0f9ff; color: #67c23a; border: 1px solid #e1f3d8; }

.ymh-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  color: var(--ep-text-secondary);
  font-size: 13px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.ymh-dropzone:hover,
.ymh-dropzone.ymh-dropzone--drag { border-color: var(--ep-color-primary); background: #ecf5ff; }
.ymh-dropzone input[type='file'] { display: none; }

.ymh-warn-text { color: #f56c6c; font-weight: 600; }

.ymh-pagination { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ep-text-secondary); }
.ymh-pagination select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); }

.ymh-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.ymh-modal { background: #fff; border-radius: 8px; width: 520px; max-width: 94vw; max-height: 90vh; overflow: auto; padding: 20px; box-shadow: 0 8px 32px rgba(0,0,0,.12); position: relative; }
.ymh-modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: #f5f7fa; border-radius: 6px; font-size: 20px; line-height: 1; cursor: pointer; color: #606266; }
.ymh-modal__close:hover { background: #ebeef5; color: #303133; }
.ymh-table tr.cp-row-pending { background: linear-gradient(90deg, #fff5f5 0%, #fff9e6 100%) !important; box-shadow: inset 3px 0 0 #f56c6c; }
.cp-pending-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; border-radius: 4px; background: #fef0f0; color: #f56c6c; border: 1px solid #fbc4c4; animation: cp-pulse 1.2s ease-in-out infinite; vertical-align: middle; }
.cp-from-lead-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; border-radius: 4px; background: #ecf5ff; color: #409eff; border: 1px solid #b3d8ff; vertical-align: middle; }
@keyframes cp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
.cp-upload-grid { display: grid; grid-template-columns: repeat(3, 80px); gap: 8px; margin-top: 6px; align-items: start; }
.cp-upload-cell { width: 80px; height: 80px; border-radius: 6px; overflow: hidden; position: relative; border: 1px dashed #dcdfe6; background: #fafafa; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #909399; font-size: 28px; font-weight: 300; }
.cp-upload-cell--thumb { border-style: solid; padding: 0; cursor: default; }
.cp-upload-cell--thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-upload-cell--thumb .cp-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.cp-attach-list { font-size: 12px; color: #606266; margin-top: 6px; max-height: 120px; overflow: auto; }
.cp-attach-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; padding: 4px 8px; background: #f5f7fa; border-radius: 4px; }
.cp-drawer { display: flex; flex-direction: column; height: 100%; max-height: 100vh; }
.cp-drawer__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.cp-drawer__body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.cp-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; font-size: 13px; }
.cp-detail-grid dt { color: #909399; font-size: 12px; margin-bottom: 4px; }
.cp-detail-grid dd { margin: 0; color: #303133; word-break: break-word; }
.cp-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ebeef5; margin-bottom: 12px; }
.cp-tabs button { padding: 8px 14px; border: none; background: #f5f7fa; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 13px; color: #606266; }
.cp-tabs button.cp-tabs--active { background: #fff; color: var(--ep-color-primary, #409eff); font-weight: 600; border: 1px solid #ebeef5; border-bottom-color: #fff; margin-bottom: -1px; }
.cp-timeline { position: relative; padding-left: 20px; }
.cp-timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #dcdfe6, #ebeef5); }
.cp-tl-item { position: relative; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #ebeef5; }
.cp-tl-item::before { content: ''; position: absolute; left: -17px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #409eff; border: 2px solid #fff; box-shadow: 0 0 0 1px #dcdfe6; }
.cp-tl-item--report::before { background: #e6a23c; }
.cp-tl-meta { font-size: 12px; color: #909399; margin-bottom: 6px; }
.cp-tl-body { font-size: 13px; color: #303133; line-height: 1.6; white-space: pre-wrap; }
.cp-form-link-btn {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ecf5ff 0%, #e1f3ff 100%);
  border: 1px solid #b3d8ff;
  color: #409eff;
  font: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.cp-form-link-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(64,158,255,.15); }
.cp-upload-cell--add { flex-direction: column; gap: 4px; padding: 6px; font-size: 11px; line-height: 1.3; text-align: center; color: #606266; }
.cp-upload-cell--add .cp-plus { font-size: 22px; line-height: 1; color: #909399; }
.cp-report-link-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.cp-report-link-row input { flex: 1; }
.cp-cell-status { cursor: pointer; }
.cp-cell-status:hover { outline: 1px dashed #c0c4cc; border-radius: 4px; }
.cp-th-star { color: #e6a23c; font-size: 14px; }
.cp-row-starred { background: linear-gradient(90deg, #fffbf0 0%, #fff8e6 48%, #fffef8 100%) !important; box-shadow: inset 3px 0 0 #f7ba2a; }
.cp-row-starred.cp-row-pending { box-shadow: inset 3px 0 0 #f56c6c, inset 0 0 0 999px rgba(255, 248, 230, 0.65); }
.cp-star-btn { border: none; background: transparent; cursor: pointer; padding: 2px 4px; line-height: 1; border-radius: 6px; transition: background .15s, transform .12s; }
.cp-star-btn:hover { background: rgba(230, 162, 60, 0.15); }
.cp-star-glyph { font-size: 18px; color: #dcdfe6; text-shadow: 0 0 0 #c0c4cc; }
.cp-star-btn--on .cp-star-glyph { color: #f7ba2a; text-shadow: 0 0 8px rgba(247, 186, 42, 0.45); }
.cp-star-glyph--ro { font-size: 16px; color: #f7ba2a; opacity: 0.9; }
.cp-name-cell { vertical-align: top; }
.cp-name-line { font-weight: 500; color: #303133; }
.cp-star-remark { margin-top: 4px; font-size: 12px; color: #f56c6c; line-height: 1.35; max-width: 220px; }
.cp-assignee-cell { font-size: 13px; color: #303133; }
.cp-assign-wx { color: #909399; font-size: 12px; font-weight: normal; }
.cp-op-icons { white-space: nowrap; }
.cp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 2px; padding: 0; border: none; border-radius: 8px; background: #f5f7fa; color: #606266; cursor: pointer; vertical-align: middle; transition: background .15s, color .15s, transform .1s; }
.cp-icon-btn:hover { background: #ecf5ff; color: #409eff; transform: translateY(-1px); }
.cp-icon-btn[data-tip] { position: relative; }
.cp-icon-btn[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; padding: 5px 10px; font-size: 12px; white-space: nowrap; color: #fff; background: rgba(48, 49, 51, 0.92); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 50; pointer-events: none; }
.cp-icon-btn[data-tip]:hover::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; border: 5px solid transparent; border-top-color: rgba(48, 49, 51, 0.92); z-index: 50; }
.cp-icon-btn--danger:hover { background: #fef0f0; color: #f56c6c; }
.cp-status-select { min-width: 120px; padding: 6px 28px 6px 10px; border-radius: 8px; border: 1px solid #dcdfe6; font-size: 13px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23909399' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center; appearance: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cp-status-saving { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #909399; }
.cp-spinner { width: 16px; height: 16px; border: 2px solid #e4e7ed; border-top-color: #409eff; border-radius: 50%; animation: cp-spin 0.7s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-wechat-pool-cell { font-size: 13px; color: #303133; }
.cp-pool-wx { font-size: 12px; color: #909399; font-weight: normal; }
.cp-deal-profit { color: #67c23a; font-weight: 600; }
.cp-tl-item--deal .cp-tl-meta { color: #409eff; }
.cp-assign-timeline { margin: 8px 0; padding: 0; }
.cp-assign-tl-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  border-left: 2px solid #e4e7ed;
}
.cp-assign-tl-item:last-child { border-left-color: transparent; }
.cp-assign-tl-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ep-color-primary);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
}
.cp-assign-tl-time { font-size: 12px; color: #909399; margin-bottom: 4px; }
.cp-assign-tl-text { font-size: 13px; color: #303133; line-height: 1.5; }
.rp-doc-list { margin-top: 8px; border: 1px solid #ebeef5; border-radius: 8px; padding: 8px 10px; min-height: 36px; background: #fafafa; }
.rp-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #ebeef5; font-size: 13px; }
.rp-doc-row:last-child { border-bottom: none; }
.rp-doc-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #303133; }
.rp-doc-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.rp-doc-open { color: #409eff; font-weight: 500; text-decoration: none; }
.rp-doc-open:hover { text-decoration: underline; }
#rp_paste { min-height: 88px; font-size: 13px; line-height: 1.5; }
.ymh-modal h3 { margin: 0 0 16px; font-size: 16px; }
.ymh-modal .row { margin-bottom: 12px; }
.ymh-modal label { display: block; font-size: 12px; color: var(--ep-text-secondary); margin-bottom: 4px; }
.ymh-modal input, .ymh-modal textarea, .ymh-modal select { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; }

.hidden { display: none !important; }

/* 会话校验：避免刷新时先闪登录页再进系统 */
.ymh-auth-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-bg-page);
  font-family: var(--font);
}
.ymh-auth-loading__inner {
  text-align: center;
  color: var(--ep-text-secondary);
  font-size: 14px;
}
.ymh-auth-loading__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 3px solid #e4e7ed;
  border-top-color: var(--ep-color-primary);
  border-radius: 50%;
  animation: ymh-spin 0.8s linear infinite;
}
.ymh-auth-loading__text {
  margin: 0;
}
.ymh-auth-loading__brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--bi-primary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
@keyframes ymh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 宽屏字段管理弹窗 */
.ymh-modal-wide { width: min(960px, 96vw) !important; max-width: 96vw; }

/* 媒介执行表工作台（全宽可滚动网格） */
.ymh-exec-wb {
  width: min(1200px, 98vw) !important;
  max-width: 98vw !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  overflow: hidden;
}
.ymh-exec-wb__head { flex-shrink: 0; }
.ymh-exec-wb__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ymh-exec-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ymh-exec-inline select { min-width: 220px; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--border); }
.ymh-exec-wb__name { margin-bottom: 8px; }
.ymh-exec-wb__name-input { width: 100%; max-width: 480px; padding: 8px; border: 1px solid var(--border); border-radius: 4px; }
.ymh-exec-share-out { font-size: 12px; color: #606266; word-break: break-all; margin: 0; }
.ymh-exec-wb__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; font-size: 13px; }
@media (max-width: 900px) {
  .ymh-exec-wb__panels { grid-template-columns: 1fr; }
}
.ymh-exec-panel {
  flex: 1; min-width: 280px;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafbfc;
}
.ymh-exec-panel strong {
  display: block; margin-bottom: 10px; font-size: 13px; color: #303133;
  padding-bottom: 8px; border-bottom: 1px solid #ebeef5;
}
.ymh-exec-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.ymh-exec-map-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 500; color: #606266;
}
.ymh-exec-map-grid select {
  padding: 7px 10px; border-radius: 6px; border: 1px solid #dcdfe6;
  background: #fff; font-size: 13px; transition: border-color 0.15s;
}
.ymh-exec-map-grid select:focus {
  border-color: var(--ep-color-primary, #409eff); outline: none;
  box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}
.ymh-exec-hidden-wrap {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 8px 10px; background: #fff; border: 1px solid #ebeef5;
  border-radius: 6px;
}
.ymh-exec-cb { font-size: 12px; cursor: pointer; user-select: none; }
.ymh-exec-wb__grid-wrap {
  flex: 1;
  min-height: 200px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.ymh-exec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ymh-exec-table th,
.ymh-exec-table td { border: 1px solid #ebeef5; padding: 4px 6px; vertical-align: middle; }
.ymh-exec-table thead th { background: #f5f7fa; position: sticky; top: 0; z-index: 1; }
.ymh-exec-th-idx { width: 36px; text-align: center; }
.ymh-exec-th-ops { width: 200px; white-space: nowrap; }
.ymh-exec-th-title input { width: calc(100% - 56px); min-width: 72px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; }
.ymh-exec-col-del { margin-left: 4px; padding: 2px 6px; font-size: 11px; border: none; background: #fef0f0; color: #f56c6c; border-radius: 4px; cursor: pointer; }
.ymh-exec-table tbody td input { width: 100%; min-width: 80px; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; }
.ymh-exec-ops .btn { padding: 4px 8px; font-size: 12px; margin: 0 2px 2px 0; }
.ymh-exec-wb__foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ep-text-secondary);
}
.ymh-exec-wb__foot b { color: #303133; font-size: 15px; }
.ymh-exec-wb__hint { font-size: 12px; color: #909399; }

/* 客户公开执行表页 */
.ymh-exec-pub { max-width: 1100px; margin: 24px auto; padding: 0 16px; font-family: system-ui, sans-serif; }
.ymh-exec-pub__head { margin-bottom: 16px; }
.ymh-exec-pub__head h1 { margin: 0 0 8px; font-size: 20px; }
.ymh-exec-pub__meta { font-size: 13px; color: #606266; }
.ymh-exec-pub__actions { margin: 12px 0; }
.ymh-exec-pub table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ymh-exec-pub th, .ymh-exec-pub td { border: 1px solid #ebeef5; padding: 8px 10px; text-align: left; }
.ymh-exec-pub thead th { background: #f5f7fa; }
.ymh-exec-pub__err { color: #f56c6c; padding: 24px; text-align: center; }

/* 内网全屏执行表 /crm/execution/edit */
.ymh-exec-edit-body { margin: 0; height: 100vh; overflow: hidden; background: #f0f2f5; }
.ymh-exec-edit-root { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.ymh-exec-edit-top {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.ymh-exec-edit-top__row1 {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid #f0f2f5; flex-wrap: wrap;
}
.ymh-exec-edit-top__row1 .ymh-exec-edit-title-input { flex: 1; min-width: 160px; }
.ymh-exec-edit-top__blocks {
  display: flex; gap: 12px; padding: 10px 14px; align-items: stretch; flex-wrap: wrap;
}
.ymh-exec-top-block {
  border: 1px solid #ebeef5; border-radius: 10px; padding: 10px 14px;
  background: #fafbfc; display: flex; flex-direction: column; gap: 6px;
}
.ymh-exec-top-block--config { flex: 0 0 auto; min-width: 180px; }
.ymh-exec-top-block--metrics { flex: 1 1 320px; min-width: 280px; }
.ymh-exec-top-block--actions { flex: 0 1 auto; min-width: 200px; }
.ymh-exec-top-block__title {
  font-size: 11px; font-weight: 600; color: #909399; text-transform: uppercase;
  letter-spacing: 0.06em; padding-bottom: 4px; border-bottom: 1px solid #ebeef5;
}
.ymh-exec-top-block__body {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 4px;
}
.ymh-exec-top-metrics { gap: 10px; }
.ymh-exec-metric-card {
  flex: 1; min-width: 100px; padding: 12px 14px; border-radius: 10px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.ymh-exec-metric-card--blue { background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%); }
.ymh-exec-metric-card--green { background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%); }
.ymh-exec-metric-card--orange { background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%); }
.ymh-exec-metric-card__label {
  font-size: 11px; opacity: 0.9; margin-bottom: 4px; font-weight: 500;
}
.ymh-exec-metric-card__value {
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.ymh-exec-edit-top__left, .ymh-exec-edit-top__mid, .ymh-exec-edit-top__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ymh-exec-edit-top__mid { flex: 1; min-width: 200px; justify-content: center; }
.ymh-exec-edit-back { font-size: 13px; color: #606266; text-decoration: none; }
.ymh-exec-edit-back:hover { color: var(--ep-color-primary); }
.ymh-exec-edit-inline { font-size: 13px; color: #606266; }
.ymh-exec-edit-inline select { min-width: 200px; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--border); }
.ymh-exec-edit-title-input { width: 100%; max-width: 480px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-weight: 600; }
.ymh-exec-edit-share { margin: 0 14px; padding: 8px 12px; font-size: 12px; background: #ecf5ff; border-radius: 0 0 6px 6px; border: 1px solid #d9ecff; border-top: none; }
.ymh-exec-modal-triggers {
  flex-shrink: 0; display: flex; gap: 8px; padding: 8px 14px;
  background: #fff; border-bottom: 1px solid var(--border);
}
.ymh-exec-modal-btn {
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border-radius: 8px; border: 1px solid #dcdfe6; background: #f5f7fa;
  color: #303133; cursor: pointer; transition: all 0.15s;
}
.ymh-exec-modal-btn:hover { background: #ecf5ff; border-color: #409eff; color: #409eff; }
.ymh-exec-modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.ymh-exec-modal-box {
  background: #fff; border-radius: 14px;
  width: min(680px, 94vw); max-height: 85vh;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.ymh-exec-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #ebeef5; flex-shrink: 0;
}
.ymh-exec-modal-title { font-size: 15px; font-weight: 700; color: #303133; }
.ymh-exec-modal-close {
  width: 32px; height: 32px; border: none; background: #f5f7fa;
  border-radius: 50%; font-size: 18px; color: #909399; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ymh-exec-modal-close:hover { background: #f56c6c; color: #fff; }
.ymh-exec-modal-body {
  padding: 20px; overflow-y: auto; flex: 1;
}
.ymh-exec-estimate-map { width: 100%; }
.ymh-exec-estimate-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 6px; font-weight: 500; color: #303133;
  padding: 6px 12px; border-radius: 6px; background: #f5f7fa;
  cursor: pointer; transition: background 0.15s;
}
.ymh-exec-estimate-toggle:hover { background: #ecf5ff; }
.ymh-exec-estimate-toggle input[type="checkbox"] { accent-color: var(--ep-color-primary, #409eff); }
.ymh-exec-estimate-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #ebeef5;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .ymh-exec-estimate-fields { grid-template-columns: 1fr; }
}
.ymh-exec-estimate-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #606266;
}
.ymh-exec-estimate-fields select {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #dcdfe6;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s;
}
.ymh-exec-estimate-fields select:focus {
  border-color: var(--ep-color-primary, #409eff);
  outline: none;
  box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}
.ymh-exec-estimate-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ymh-exec-est-unit {
  max-width: 140px;
  flex: 0 0 auto;
}
.ymh-exec-estimate-dash {
  margin: 0 0 10px;
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f6f9fc 100%);
  border: 1px solid #d9ecff;
  box-shadow: 0 4px 20px rgba(64, 158, 255, 0.08);
}
.ymh-exec-estimate-dash__title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.ymh-exec-estimate-dash__cards { display: flex; flex-wrap: wrap; gap: 12px; }
.ymh-exec-estimate-dash__card {
  flex: 1;
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebeef5;
  animation: ymh-exec-est-pulse 4s ease-in-out infinite;
}
.ymh-exec-estimate-dash__card:nth-child(2) { animation-delay: 0.5s; }
.ymh-exec-estimate-dash__card:nth-child(3) { animation-delay: 1s; }
@keyframes ymh-exec-est-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(64, 158, 255, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(64, 158, 255, 0.06); }
}
.ymh-exec-estimate-dash__lab { font-size: 12px; color: #909399; margin-bottom: 6px; }
.ymh-exec-estimate-dash__num {
  font-size: 22px;
  font-weight: 700;
  color: #1890ff;
  font-variant-numeric: tabular-nums;
}
.ymh-pub-estimate {
  margin: 0 16px 16px;
  padding: 18px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecf5ff 0%, #f5f9ff 100%);
  border: 1px solid #b3d8ff;
}
.ymh-pub-estimate__title { font-size: 16px; font-weight: 600; color: #1d39c4; margin-bottom: 12px; }
.ymh-pub-estimate__cards { display: flex; flex-wrap: wrap; gap: 12px; }
.ymh-pub-estimate__card {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d9ecff;
}
.ymh-pub-estimate__lab { font-size: 12px; color: #606266; }
.ymh-pub-estimate__num { font-size: 20px; font-weight: 700; color: #1890ff; margin-top: 4px; font-variant-numeric: tabular-nums; }
/* 物理第 0 行业务表头视觉（与列字母行区分） */
.ymh-exec-row0-header,
td.ymh-exec-row0-header {
  font-weight: 700 !important;
  background: #e6f4ff !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* ═══════════════════════════════════════════════════════════
   Handsontable 原生网格覆盖：无缝电子表格风格
   ═══════════════════════════════════════════════════════════ */
.handsontable td,
.handsontable th {
  border-color: #e2e2e2 !important;
  border-radius: 0 !important;
  padding: 2px 6px !important;
  font-size: 13px;
  line-height: 1.6;
}
.handsontable th {
  background: #f5f7fa !important;
  font-weight: 600;
  color: #303133;
}
.handsontable .ht_master .wtHolder {
  border-radius: 0;
}
.handsontable .htDimmed {
  color: #606266;
}
.handsontable .htAutocompleteArrow {
  color: #909399;
}
.handsontable .changeType {
  border-radius: 0;
}
.handsontable .htDropdownMenu,
.handsontable .htFiltersMenuCondition,
.handsontable .htFiltersMenuValue {
  font-size: 13px;
}
.handsontable .htDropdownMenu .ht_master .wtHolder {
  max-height: 280px;
}
.handsontable .current.highlight {
  border-color: #4285f4 !important;
}
.handsontable .area {
  background: rgba(66, 133, 244, 0.08);
}
.ymh-pub-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.ymh-pub-thumb {
  max-width: 80px;
  max-height: 48px;
  border-radius: 4px;
  vertical-align: middle;
}
.ymh-pub-link {
  color: #1890ff;
  text-decoration: none;
  max-width: 180px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
}
.ymh-pub-link:hover {
  text-decoration: underline;
}
.ymh-pub-hot-wrap .handsontable thead th {
  background: #e6f4ff !important;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  border-color: #d0d7de !important;
}
.ymh-pub-hot-wrap .handsontable td {
  height: 35px !important;
  max-height: 35px !important;
  line-height: 1.25;
  vertical-align: middle !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.ymh-pub-hot-wrap .handsontable td img.ymh-pub-avatar,
.ymh-pub-hot-wrap .handsontable td img.ymh-pub-thumb {
  max-height: 30px;
  width: auto;
  vertical-align: middle;
}
.ymh-pub-hot-wrap .handsontable td .ymh-pub-link {
  max-width: 100%;
}
/* 提报：客户意向整行柔和底色（不遮挡正文） */
td.ymh-row-intent-warm {
  background-color: #fffbe6 !important;
}
td.ymh-row-intent-ok {
  background-color: #f6ffed !important;
}
td.ymh-row-intent-bad {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  text-decoration: line-through;
}
.ymh-exec-edit-grid-outer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px;
  overflow: hidden;
  max-width: 100%;
}
#ex_hot,
.ymh-pub-hot-wrap {
  overflow: hidden;
  max-width: 100%;
}
.ymh-exec-edit-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
}
/* 项目工作表 Tab：悬停显示删除 */
.ymh-exec-sheet-tab__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #909399;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.ymh-exec-sheet-tab:hover .ymh-exec-sheet-tab__close {
  opacity: 1;
}
.ymh-exec-sheet-tab__close:hover {
  background: rgba(245, 108, 108, 0.15);
  color: #f56c6c;
}
.ymh-exec-table--fullscreen { min-width: max-content; }
.ymh-exec-table--fullscreen thead th { white-space: nowrap; }
.ymh-exec-edit-foot {
  flex-shrink: 0;
  display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 13px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--border); color: #606266;
}
.ymh-exec-edit-gate { padding: 48px; text-align: center; font-size: 14px; color: #606266; }
.ymh-exec-edit-gate a { color: var(--ep-color-primary); }

/* 内网执行表 Hot 工具栏：小屏换行、搜索条可伸缩，避免单行挤乱 */
.ymh-exec-hot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px 10px;
  row-gap: 10px;
  padding: 10px 12px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border, #ebeef5);
  max-width: 100%;
  box-sizing: border-box;
}
.ymh-exec-hot-toolbar > .btn,
.ymh-exec-hot-toolbar > label.btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.ymh-exec-hot-toolbar .ymh-exec-inline {
  flex: 0 1 auto;
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 4px;
}
.ymh-exec-hot-toolbar .ymh-exec-inline select {
  min-width: min(220px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
.ymh-exec-hot-toolbar > .ymh-exec-search-input {
  flex: 1 1 160px;
  width: auto;
  min-width: min(140px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .ymh-exec-hot-toolbar > .ymh-exec-search-input {
    flex-basis: 100%;
  }
}

.ymh-exec-hot-toolbar__group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ymh-exec-hot-toolbar__sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border, #dcdfe6);
  margin: 0 4px;
  vertical-align: middle;
}
.ymh-exec-search-input {
  padding: 4px 10px;
  border: 1px solid var(--border, #dcdfe6);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  width: 160px;
  transition: border-color .2s, box-shadow .2s;
}
.ymh-exec-search-input:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64,158,255,.15);
}
.ymh-exec-fmt-btn { min-width: 36px; font-weight: 700; }
.ymh-exec-fmt-color input[type='color'] {
  width: 32px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.ymh-hot-link-btn {
  font-size: 12px;
  color: #1a73e8;
  text-decoration: none;
  margin-right: 6px;
}
.ymh-hot-link-btn:hover { text-decoration: underline; }
.ymh-hot-copy {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: #606266;
}
.ymh-hot-copy:hover { border-color: #1a73e8; color: #1a73e8; }
.ymh-ai-pending { font-size: 12px; }
.ymh-exec-cell-flash {
  animation: ymh-exec-flash 1.2s ease-out 1;
  box-shadow: inset 0 0 0 2px rgba(82, 196, 26, 0.65);
}
@keyframes ymh-exec-flash {
  0% { background-color: rgba(82, 196, 26, 0.35); }
  100% { background-color: transparent; }
}
.ymh-exec-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
}
.ymh-exec-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.ymh-exec-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 920px);
  max-height: 92vh;
}
.ymh-exec-lightbox__content img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.ymh-exec-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 协作页 · 在线文档风格（公开执行表） */
.ymh-doc-body { margin: 0; min-height: 100vh; background: #f0f2f5; }
.ymh-doc-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ymh-doc-loading { padding: 48px; text-align: center; color: #909399; font-size: 15px; }
.ymh-doc-error { padding: 48px; text-align: center; color: #f56c6c; font-size: 15px; }
.ymh-doc-header {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ymh-doc-title { margin: 0; font-size: 20px; font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.ymh-doc-sub { margin: 6px 0 0; font-size: 14px; color: #606266; }
.ymh-doc-header__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ymh-doc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: background .15s, color .15s; }
.ymh-doc-btn--primary { background: #1a73e8; color: #fff; }
.ymh-doc-btn--primary:hover { background: #1557b0; color: #fff; }
.ymh-doc-btn--ghost { background: #fff; color: #1a73e8; border: 1px solid #dadce0; }
.ymh-doc-btn--ghost:hover { background: #f8f9fa; }
/* 客户公开页：主内容随表格自然撑开，避免嵌套滚动条截断长表 */
.ymh-doc-main {
  flex: 1 1 auto;
  min-height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.ymh-doc-viewer { margin: 8px 0 0; font-size: 13px; color: #606266; }
.ymh-doc-viewer__name { color: #1a73e8; font-weight: 600; }
.ymh-doc-table-wrap {
  flex: 0 1 auto;
  min-height: auto;
  height: auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  box-shadow: none;
}
.ymh-doc-table.ymh-doc-table--grid,
.ymh-doc-table--grid {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ymh-doc-table--grid th,
.ymh-doc-table--grid td {
  white-space: nowrap;
  height: 35px;
  max-height: 35px;
  padding: 4px 10px;
  min-width: 100px;
  box-sizing: border-box;
  border: 1px solid #ebeef5;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ymh-doc-table--grid td img {
  max-height: 28px !important;
  max-width: 120px;
  width: auto !important;
  height: auto !important;
  vertical-align: middle;
  object-fit: cover;
}
.ymh-doc-table--grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f7fa;
  font-weight: 600;
  color: #303133;
  box-shadow: 0 1px 0 #ebeef5;
}
.ymh-doc-table--grid tbody td:first-child,
.ymh-doc-table--grid thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #ebeef5;
}
.ymh-doc-table--grid thead th:first-child {
  z-index: 4;
  background: #f5f7fa;
}
.ymh-doc-table--grid tbody tr:nth-child(even) td:first-child { background: #fafafa; }
.ymh-doc-table--grid tbody tr:nth-child(odd) td:first-child { background: #fff; }
/* 手机预览：不冻结首列，仅保留表头横向区顶吸顶 */
@media (max-width: 768px) {
  .ymh-doc-table--grid tbody td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }
  .ymh-doc-table--grid thead th:first-child {
    position: sticky;
    top: 0;
    left: auto;
    z-index: 3;
    box-shadow: 0 1px 0 #ebeef5;
  }
}
/* 公开执行表 · 高管看板 */
.ymh-pub-bi {
  flex-shrink: 0;
  width: 100%;
  padding: 0 0 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ymh-pub-bi { grid-template-columns: 1fr 1fr; }
}
.ymh-pub-bi__block {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.ymh-pub-bi__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.ymh-pub-bi__funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}
.ymh-pub-bi__step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
  border-radius: 10px;
  border: 1px solid #e4e7ed;
}
.ymh-pub-bi__step-n { font-size: 20px; font-weight: 700; color: #1a73e8; line-height: 1.2; }
.ymh-pub-bi__step-l { font-size: 12px; color: #606266; margin-top: 4px; text-align: center; }
.ymh-pub-bi__arrow { color: #c0c4cc; font-size: 18px; padding: 0 2px; }
.ymh-pub-bi__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.ymh-pub-bi__card {
  padding: 14px 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fafbfc 0%, #fff 100%);
  border: 1px solid #ebeef5;
  text-align: center;
}

.ymh-pub-bi__card-num {
  font-size: 22px;
  font-weight: 700;
  color: #303133;
  letter-spacing: 0.02em;
}
.ymh-pub-bi__card-l { font-size: 12px; color: #909399; margin-top: 6px; }

.ymh-exec-ai-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #7c3aed 0%, #a855f7 45%, #6366f1 100%);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}
.ymh-exec-ai-btn:hover { filter: brightness(1.06); }
.ymh-exec-scrape-btn {
  background: linear-gradient(120deg, #ea580c 0%, #f97316 50%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}
.ymh-exec-ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ymh-exec-ai-overlay__box {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.ymh-exec-ai-overlay__t { margin: 0; font-size: 15px; color: #303133; }
.ymh-exec-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 13000;
  max-width: 92vw;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.ymh-exec-toast--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.ymh-doc-link { color: #1a73e8; }
.ymh-doc-footer { flex-shrink: 0; padding: 12px 24px; background: #fff; border-top: 1px solid #e8e8e8; color: #909399; font-size: 13px; }
.ymh-doc-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  padding: 12px 24px; background: #323232; color: #fff; border-radius: 8px; font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); z-index: 10000; max-width: 90vw; text-align: center;
}

.ymh-doc-gate {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ymh-doc-gate__card {
  background: #fff; border-radius: 12px; padding: 24px; max-width: 380px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.ymh-doc-gate__t { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #303133; }
.ymh-doc-gate__hint { margin: 0 0 16px; font-size: 12px; color: #909399; line-height: 1.5; }

/* 公开协作页：强制绑定手机号（高于内容层，不可通过 UI 关闭） */
.ymh-doc-phone-gate {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  pointer-events: auto;
}
.ymh-doc-phone-gate__box {
  background: #fff; border-radius: 12px; padding: 24px; max-width: 400px; width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); text-align: center;
}
.ymh-doc-phone-gate__t { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #303133; }
.ymh-doc-phone-gate__input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dcdfe6;
  border-radius: 8px; font-size: 16px; margin-bottom: 16px;
}

.ymh-doc-header__right--full { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ymh-doc-more { display: none; position: relative; }
.ymh-doc-more__btn { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; font-size: 18px; line-height: 1; color: #606266; }
.ymh-doc-more__menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 6px; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 168px; z-index: 20; padding: 6px 0;
}
.ymh-doc-more[open] .ymh-doc-more__menu { display: block; }
.ymh-doc-more__item {
  display: block; width: 100%; text-align: left; padding: 10px 16px; border: none; background: none;
  font-size: 14px; cursor: pointer; color: #303133; text-decoration: none;
}
.ymh-doc-more__item:hover { background: #f5f7fa; }
@media (max-width: 640px) {
  .ymh-doc-header { flex-wrap: wrap; }
  .ymh-doc-header__right--full { display: none; }
  .ymh-doc-more { display: block; margin-left: auto; }
}
.ymh-doc-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.ymh-doc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ymh-doc-modal__box { position: relative; background: #fff; border-radius: 12px; padding: 20px; max-width: 400px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.ymh-doc-modal__h { margin: 0 0 8px; font-size: 17px; }
.ymh-doc-modal__p { margin: 0 0 12px; font-size: 13px; color: #606266; }
.ymh-doc-modal__input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 15px; }
.ymh-doc-modal__actions { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; }

/* 内网执行表：多文档侧栏 + 移动端 ⋯ */
.ymh-exec-edit-layout { display: flex; flex: 1; min-height: 0; gap: 0; }
.ymh-exec-doclist {
  flex: 0 0 200px; max-width: 40vw; border-right: 1px solid var(--border); background: #fafafa;
  overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px;
}
.ymh-exec-doclist__title { font-size: 12px; color: #909399; padding: 4px 8px; font-weight: 600; }
.ymh-exec-doclist__item {
  text-align: left; padding: 8px 10px; border: none; border-radius: 6px; background: transparent;
  font-size: 13px; cursor: pointer; color: #303133; word-break: break-word;
}
.ymh-exec-doclist__item:hover { background: #ecf5ff; }
.ymh-exec-doclist__item--active { background: #ecf5ff; color: var(--ep-color-primary); font-weight: 600; }
.ymh-exec-edit-maincol { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ymh-exec-edit-more { display: none; position: relative; margin-left: auto; }
.ymh-exec-edit-more summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 18px; line-height: 1; }
.ymh-exec-edit-more__panel {
  position: absolute; right: 0; top: 100%; margin-top: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; min-width: 140px; z-index: 30; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  display: flex; flex-direction: column; gap: 6px;
}
.ymh-exec-edit-top__right--desktop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ymh-exec-perm-bell { position: relative; }
.ymh-exec-perm-badge {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
  background: #f56c6c; color: #fff; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center;
  font-weight: 600;
}
.ymh-exec-perm-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, 0.35);
  display: flex; justify-content: flex-end; align-items: stretch;
}
.ymh-exec-perm-drawer {
  width: min(420px, 100%); background: #fff; box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; max-height: 100%;
}
.ymh-exec-perm-drawer__head {
  padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.ymh-exec-perm-close {
  border: none; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #909399;
  padding: 4px 8px;
}
.ymh-exec-perm-drawer__body { flex: 1; overflow: auto; padding: 12px 16px; }
.ymh-exec-perm-item {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px;
  font-size: 13px;
}
.ymh-exec-perm-item__row { margin: 4px 0; color: #606266; word-break: break-all; }
.ymh-exec-perm-item__actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .ymh-exec-doclist { display: none; }
  .ymh-exec-edit-top__right--desktop { display: none; }
  .ymh-exec-edit-more { display: block; }
  .ymh-exec-edit-inline--sel select { min-width: 140px; }
  .ymh-exec-edit-top__blocks { flex-direction: column; gap: 8px; }
  .ymh-exec-top-block--metrics { min-width: 0; }
  .ymh-exec-metric-card { min-width: 80px; }
  .ymh-exec-metric-card__value { font-size: 16px; }
}

/* 右侧抽屉（客户详情全景） */
.ymh-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(720px, 96vw); max-width: 100%;
  background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 1001; overflow: hidden; display: flex; flex-direction: column;
}
.ymh-drawer__head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.ymh-drawer__body { flex: 1; overflow: auto; padding: 12px 16px; }
.ymh-tabs { display: flex; gap: 8px; margin: 12px 0; border-bottom: 1px solid var(--border); }
.ymh-tabs button { background: none; border: none; padding: 8px 4px; cursor: pointer; color: var(--ep-text-secondary); }
.ymh-tabs button.active { color: var(--ep-color-primary); border-bottom: 2px solid var(--ep-color-primary); }
.ymh-timeline { position: relative; padding-left: 20px; border-left: 2px solid var(--border); margin: 8px 0; }
.ymh-timeline__item { margin: 8px 0; padding-left: 8px; position: relative; }
.ymh-timeline__item::before { content: ''; position: absolute; left: -22px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ep-color-primary); }

/* 客户动态 Timeline 富卡片 */
.cp-act-card {
  border-left: 3px solid var(--ep-color-primary, #409eff);
  padding: 12px 12px 12px 14px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 8px;
}
.cp-act-head { font-size: 13px; color: #606266; margin-bottom: 6px; }
.cp-act-project { font-weight: 600; color: #303133; margin: 8px 0 4px; }
.cp-act-accounts { font-size: 13px; color: #606266; margin-top: 6px; }
a.cp-act-link.btn-primary { text-decoration: none; }

/* 用户管理 */
.su-shell {
  background-color: #f4f6f8;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.su-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 20px;
}
.su-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.su-card__search {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}
.su-card__search-icon {
  position: absolute;
  left: 14px;
  display: flex;
  pointer-events: none;
  opacity: 0.85;
}
.su-card__search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #e4e7ed;
  border-radius: 20px;
  font-size: 13px;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.su-card__search-input:focus {
  outline: none;
  border-color: var(--ep-color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}
.su-card__add {
  border-radius: 20px;
  padding: 10px 22px;
  font-weight: 500;
  flex-shrink: 0;
}
.su-table-wrap { overflow-x: auto; }
.su-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  font-size: 13px;
}
.su-table thead th {
  text-align: left;
  font-weight: 600;
  color: #606266;
  background: #fafafa;
  padding: 12px 10px;
  border-bottom: 1px solid #ebeef5;
}
.su-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #ebeef5;
  vertical-align: middle;
}
.su-table tbody tr:last-child td { border-bottom: none; }
.su-th-id { width: 56px; }
.su-th-status { width: 100px; }
.su-th-act { width: 88px; }
.su-td-id { color: #909399; font-variant-numeric: tabular-nums; }
.su-td-oid {
  font-size: 12px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #606266;
}
.su-td-pills { line-height: 1.8; }
.su-td-muted { color: #909399; }
.su-td-err { color: #f56c6c; padding: 16px !important; }
.su-empty { text-align: center; padding: 28px !important; color: #909399; }
.su-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
  vertical-align: middle;
}
.su-pill--sales {
  background: #e1f5fe;
  color: #0288d1;
}
.su-pill--admin {
  background: #ffebee;
  color: #c62828;
}
.su-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  vertical-align: middle;
}
.su-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.su-switch-slider {
  width: 44px;
  height: 22px;
  background: #dcdfe6;
  border-radius: 22px;
  position: relative;
  transition: background 0.2s;
}
.su-switch-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.su-switch input:checked + .su-switch-slider { background: var(--ep-color-success); }
.su-switch input:checked + .su-switch-slider::after { transform: translateX(22px); }
.su-switch input:focus-visible + .su-switch-slider { outline: 2px solid var(--ep-color-primary); outline-offset: 2px; }

/* 客户详情：图片/文档预览（不跳出系统） */
.cp-fd-thumb {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  vertical-align: top;
}
.cp-fd-thumb img { display: block; }
.ymh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ymh-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}
.ymh-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
}
.ymh-lightbox__panel img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.ymh-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ymh-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.ymh-file-preview {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ymh-file-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.ymh-file-preview__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ymh-file-preview__body {
  padding: 20px;
  overflow: auto;
  max-height: 80vh;
}
.ymh-file-preview__frame {
  width: 100%;
  min-height: 420px;
  height: min(70vh, 640px);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f5f7fa;
}
.ymh-file-preview__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5f7fa;
  color: #606266;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.ymh-file-preview__close:hover {
  background: #ebeef5;
}

/* ========== 仪表盘 / 商业 BI 驾驶舱 ========== */
.ymh-bi-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px;
  margin: 0 auto;
}
.ymh-bi-page__head {
  margin-bottom: 20px;
}
.ymh-bi-page__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: -0.02em;
}
.ymh-bi-page__desc {
  margin: 0;
  font-size: 13px;
  color: var(--ep-text-secondary);
}
.ymh-bi-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.ymh-bi-kpi {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 22px 24px;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ymh-bi-kpi:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.ymh-bi-kpi__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ymh-bi-kpi__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-text-secondary);
}
.ymh-bi-kpi__sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.ymh-bi-kpi__iconwrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 95, 180, 0.12), rgba(26, 95, 180, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bi-primary);
  flex-shrink: 0;
}
.ymh-bi-kpi__ico {
  width: 24px;
  height: 24px;
}
.ymh-bi-kpi__value {
  font-size: 28px;
  font-weight: bold;
  color: var(--ep-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 8px;
}
.ymh-bi-kpi__foot {
  margin-top: 8px;
  min-height: 22px;
}
.ymh-bi-trend {
  font-size: 13px;
  font-weight: 600;
}
.ymh-bi-trend--up {
  color: var(--bi-success);
}
.ymh-bi-trend--down {
  color: var(--bi-danger);
}
.ymh-bi-trend--na {
  color: #9ca3af;
  font-weight: 500;
}
.ymh-bi-row2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .ymh-bi-row2 {
    grid-template-columns: 1fr;
  }
}
.ymh-bi-card {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ymh-bi-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ymh-bi-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-text);
}
.ymh-bi-seg {
  display: inline-flex;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 3px;
  gap: 2px;
}
.ymh-bi-seg__btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ep-text-secondary);
  font-weight: 500;
}
.ymh-bi-seg__btn:hover {
  color: var(--ep-text);
}
.ymh-bi-seg__btn--active {
  background: #fff;
  color: var(--bi-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* ECharts 容器必须固定高度，避免 resize() 与 flex 联动导致父级被无限撑高 */
.ymh-bi-chart {
  flex: 0 0 auto;
  width: 100%;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  overflow: hidden;
  box-sizing: border-box;
}
.ymh-bi-chart--sm {
  height: 280px;
  min-height: 280px;
  max-height: 280px;
}
.ymh-bi-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: #eff6ff;
  color: var(--bi-primary);
  font-weight: 500;
}
.ymh-bi-table th {
  font-weight: 600;
  color: #6b7280;
  font-size: 12px;
}

/* ========== 新增/编辑客户：多列紧凑表单 ========== */
.ymh-modal--crm {
  border-radius: 14px;
  padding: 22px 24px 20px;
}

/* 线索详情（客户资料 · 查详情） */
.ymh-modal--crm.cl-detail-modal {
  padding: 0;
}
.cl-detail-modal {
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
}
.cl-detail-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  flex-shrink: 0;
}
.cl-detail-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}
.cl-detail-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cl-detail-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}
.cl-detail-modal__body {
  padding: 16px 20px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.cl-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-bottom: 20px;
}
@media (max-width: 520px) {
  .cl-detail-grid {
    grid-template-columns: 1fr;
  }
}
.cl-detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cl-detail-field--full {
  grid-column: 1 / -1;
}
.cl-detail-field__lab {
  font-size: 12px;
  font-weight: 500;
  color: var(--ep-text-secondary);
}
.cl-detail-field__val {
  font-size: 14px;
  color: #1f2937;
  word-break: break-word;
}
.cl-detail-field__val--muted {
  color: #9ca3af;
  font-size: 13px;
}
.cl-detail-section {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.cl-detail-section__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.cl-detail-section__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}
.cl-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #e5e7eb;
  margin-left: 8px;
}
.cl-timeline__item {
  position: relative;
  padding: 0 0 16px 18px;
  margin-left: -2px;
}
.cl-timeline__item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
}
.cl-timeline__item--status::before {
  background: var(--bi-primary);
  box-shadow: 0 0 0 1px rgba(26, 95, 180, 0.35);
}
.cl-timeline__meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.45;
}
.cl-timeline__body {
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.cl-timeline__empty {
  padding: 12px 0 0 18px;
  margin-left: -2px;
  color: #9ca3af;
  font-size: 13px;
  list-style: none;
}
.cl-duration-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  vertical-align: middle;
}

/* 客户池抽屉：状态变更耗时 */
.cp-tl-item--status {
  border-left: 3px solid rgba(26, 95, 180, 0.35);
  padding-left: 12px;
  margin-left: -12px;
}
.cp-duration-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  vertical-align: middle;
}
.cp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .cp-form-grid {
    grid-template-columns: 1fr;
  }
}
.cp-form-field {
  margin: 0;
  min-width: 0;
}
.cp-form-field--full {
  grid-column: 1 / -1;
}
.cp-form-field label {
  display: block;
  font-size: 12px;
  color: var(--ep-text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.cp-form-field input:not([type='checkbox']):not([type='file']),
.cp-form-field textarea,
.cp-form-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cp-form-field textarea {
  min-height: 88px;
  resize: vertical;
}
.cp-form-field input:focus,
.cp-form-field textarea:focus,
.cp-form-field select:focus {
  border-color: var(--bi-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.12);
}
.cp-form-field input:disabled,
.cp-form-field textarea:disabled,
.cp-form-field select:disabled {
  background: #f5f7fa;
  color: #606266;
}

/* ========== 地图拓客 ========== */
.ymh-map-page {
  padding: 16px 20px 24px;
  max-width: 100%;
  box-sizing: border-box;
}
.ymh-map-inner-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ymh-map-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ep-text-secondary);
  border-radius: 8px 8px 0 0;
}
.ymh-map-tab.active {
  color: var(--bi-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--bi-primary);
  margin-bottom: -1px;
}
.ymh-map-panel.hidden {
  display: none;
}
.ymh-map-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  max-width: 920px;
}
.ymh-map-card__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ep-text);
}
.ymh-map-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
@media (max-width: 720px) {
  .ymh-map-form {
    grid-template-columns: 1fr;
  }
}
.ymh-map-field--full {
  grid-column: 1 / -1;
}
.ymh-map-ai-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}
.ymh-map-ai-row input,
.ymh-map-ai-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
}
.ymh-map-ai-row textarea {
  resize: vertical;
  min-height: 56px;
}
.ymh-map-ai-row .btn {
  align-self: flex-start;
}
.ymh-map-field label {
  display: block;
  font-size: 12px;
  color: var(--ep-text-secondary);
  margin-bottom: 6px;
}
.ymh-map-field input,
.ymh-map-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}
.ymh-map-cascade {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ymh-map-cascade select {
  flex: 1;
  min-width: 120px;
}
.ymh-map-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}
.ymh-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.ymh-map-progress-wrap {
  margin-top: 24px;
}
.ymh-map-progress {
  height: 10px;
  background: #e8ecf0;
  border-radius: 999px;
  overflow: hidden;
}
.ymh-map-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bi-primary), #3b82f6);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.ymh-map-progress__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ep-text-secondary);
  text-align: center;
}
.ymh-map-stat-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.ymh-map-cap {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.ymh-map-cap strong {
  font-weight: 600;
}
.ymh-map-cap--seen {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}
.ymh-map-cap--ok {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}
.ymh-map-cap--no {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}
.ymh-map-cap--dup {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
.ymh-map-console-log {
  margin-top: 12px;
  height: 200px;
  overflow-y: auto;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #4ade80;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
}
.ymh-map-console-log__line {
  white-space: pre-wrap;
  word-break: break-word;
}
.ymh-map-console-log__line--err {
  color: #f87171;
}
.ymh-map-badge--warn {
  background: #ffedd5;
  color: #9a3412;
}
.ymh-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.ymh-map-filters input,
.ymh-map-filters select {
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  min-width: 120px;
}
.ymh-map-pageinfo {
  font-size: 12px;
  color: #909399;
  margin-top: 10px;
}
.ymh-map-td-addr {
  max-width: 220px;
  word-break: break-all;
}
.ymh-map-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #fef3c7;
  color: #92400e;
}
.ymh-map-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
}
.ymh-map-badge--ok {
  background: #d1fae5;
  color: #065f46;
}
.ymh-map-badge--muted {
  background: #e5e7eb;
  color: #6b7280;
}
.ymh-map-row--done {
  opacity: 0.72;
  background: #f9fafb !important;
}
.ymh-map-row--done:hover {
  background: #f3f4f6 !important;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.btn-success {
  color: #fff;
  border-color: #67c23a;
  background: #67c23a;
}
.btn-success:hover {
  filter: brightness(1.05);
}
.ymh-map-leads-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.ymh-map-pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ymh-map-pager__meta {
  font-size: 13px;
  color: var(--bi-text-secondary, #606266);
}
.ymh-map-pager .btn-sm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 执行表：Handsontable 搜索高亮 */
.htSearchResult {
  background: #fff176 !important;
  color: #333 !important;
}
/* 执行表：Handsontable 重复项高亮 */
.ymh-hot-dup {
  background: #ffe4e6 !important;
}

.ymh-exec-sys-cols {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  font-size: 13px;
  color: #606266;
}
.ymh-exec-sys-cols__label {
  font-weight: 600;
  color: #303133;
}

/* 协作页: 意向引导提示 */
.ymh-doc-intent-hint {
  background: linear-gradient(135deg, #fffde7 0%, #fff8e1 100%);
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 8px 16px;
  font-size: 14px;
  color: #6d4c00;
  line-height: 1.5;
}
/* 协作页: 工具栏（撤销+搜索） */
.ymh-doc-toolbar-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 4px;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}
.ymh-doc-btn--sm {
  padding: 4px 12px;
  font-size: 13px;
}
.ymh-doc-search-input {
  flex: 1 1 200px;
  width: auto;
  min-width: min(160px, 100%);
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #303133;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ymh-doc-search-input:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64,158,255,.15);
}
.ymh-doc-search-input::placeholder {
  color: #c0c4cc;
}

/* 错误日志页 */
.sel-log-wrap {
  max-height: min(70vh, 900px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
}
.sel-log-pre {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.su-card__hint {
  font-size: 13px;
  color: var(--ep-text-secondary);
  flex: 1;
}
.su-th-act--wide {
  min-width: 220px;
}
.su-td-act {
  white-space: normal;
  vertical-align: middle;
}
.su-role-sel {
  max-width: 160px;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
}
.su-act-label {
  font-size: 12px;
  opacity: 0.85;
}

/* === Doc Mode Switch === */
.ymh-exec-doc-mode-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px;
  background: #f8f9fb;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  margin-bottom: 10px;
}
.ymh-exec-doc-mode-bar__radios {
  display: flex;
  gap: 20px;
  align-items: center;
}
.ymh-exec-doc-mode-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .2s;
}
.ymh-exec-doc-mode-radio:has(input:checked) {
  background: #ecf5ff;
  border-color: #409eff;
  color: #409eff;
  font-weight: 600;
}
.ymh-exec-doc-mode-radio input { margin: 0; }
.ymh-exec-doc-mode-radio input:checked + span,
.ymh-exec-doc-mode-radio--active {
  color: #409eff;
  font-weight: 600;
}
.ymh-exec-doc-mode-ext {
  padding: 10px 0 0;
}
.ymh-exec-doc-mode-input {
  width: 100%;
  max-width: 600px;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.ymh-exec-doc-mode-input:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}
.ymh-exec-doc-mode-parsed {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 14px;
  background: #f0f7ff;
  border: 1px solid #b3d8ff;
  border-radius: 8px;
}
.ymh-exec-doc-mode-parsed__title {
  font-weight: 600;
  color: #303133;
  font-size: 14px;
}
.ymh-exec-doc-mode-parsed__link {
  color: #409eff;
  text-decoration: none;
  font-size: 13px;
}
.ymh-exec-doc-mode-parsed__link:hover { text-decoration: underline; }
.ymh-exec-doc-mode-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #909399;
  padding: 6px 12px;
  background: #fdf6ec;
  border-radius: 6px;
  border-left: 3px solid #e6a23c;
}

/* === Public View: External Doc Card === */
.ymh-doc-extdoc-card {
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 560px;
  margin: 60px auto;
  padding: 32px 36px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #b3d8ff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(64,158,255,.08);
}
.ymh-doc-extdoc-card__icon {
  font-size: 48px;
  flex-shrink: 0;
}
.ymh-doc-extdoc-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ymh-doc-extdoc-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #303133;
  line-height: 1.4;
}
.ymh-doc-extdoc-card__hint {
  font-size: 14px;
  color: #909399;
}
.ymh-doc-extdoc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  align-self: flex-start;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

/* === Skeleton Loading === */
.ymh-doc-skeleton {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
}
.ymh-doc-skeleton__bar {
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: ymh-skeleton-pulse 1.5s ease-in-out infinite;
  margin-bottom: 12px;
}
.ymh-doc-skeleton__bar--title { width: 45%; height: 24px; margin-bottom: 16px; }
.ymh-doc-skeleton__bar--short { width: 30%; }
.ymh-doc-skeleton__grid { margin-top: 20px; }
.ymh-doc-skeleton__row {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: ymh-skeleton-pulse 1.5s ease-in-out infinite;
  margin-bottom: 8px;
}
@keyframes ymh-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 职位拓客自动化引擎 ── */
.je-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4e7ed;
  margin-bottom: 16px;
}
.je-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 14px;
  color: #606266;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.je-tab:hover { color: #409eff; }
.je-tab--active {
  color: #409eff;
  border-bottom-color: #409eff;
  font-weight: 600;
}
#je_pane_search .field,
#je_pane_templates .field,
#je_pane_history .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#je_pane_search .field label,
#je_pane_templates .field label,
#je_pane_history .field label {
  font-size: 12px;
  color: #909399;
  font-weight: 500;
}
#je_pane_search .field input,
#je_pane_search .field select,
#je_pane_templates .field input,
#je_pane_templates .field select {
  padding: 8px 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
#je_pane_search .field input:focus,
#je_pane_templates .field input:focus {
  outline: none;
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64,158,255,.1);
}
