
#g-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#g-loading-overlay.active {
    display: flex;
}
.g-loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gSpinRotate 0.8s linear infinite;
}
@keyframes gSpinRotate {
    to { transform: rotate(360deg); }
}

/*创建任务弹窗start*/
#createInfoView{
   width: 1000px;
}
#createInfoView input{
   margin:0 0;
}
#createInfoView label{
   
}
#createInfoView label input{
   margin-right:3px;
}
.createInfoCon{
   margin-top:15px;
   text-align:left;
   font-size:14px;
}
.create_row{
   display:flex;
   margin-bottom:10px;
}
.create_row .info{
   flex:1;
}
#createTaskName{
   width:500px;
   padding:5px 8px;
   border:1px solid #ddd;
   border-radius:5px;
}

.create_tdUl{
	overflow:hidden;
	margin-top:10px;
}
.create_tdUl li{
	padding:10px 10px;
	float:left;
	border:1px solid #ddd;
	border-radius:5px;
	background:#f3f7ff;
	min-width:110px;
	margin:0 10px 10px 0;
	cursor:pointer;
}
.create_tdUl li.active{
	border-color:#3f51b5;
}
.create_tdUl li .name{
	font-size:15px;
	margin-bottom:5px;
}
.create_tdUl li .time{
	font-size:12px;
}

.create_taskRule{
	
}
.create_taskRule li{
	display:flex;
	margin-bottom:20px;
}
.CTR_left{
	position:relative;
	display:inline-block;
	width:30px;
}
.CTR_dot{
	width:14px;
	height:14px;
	background:#fff;
	border:1px solid #0075ff;
	border-radius:100px;
	display: inline-block;
	
	position:relative;
	top:10px;
	z-index:2;
}
.CTR_dot:after{
	content:'';
	display:block;
	width:8px;
	height:8px;
	border-radius:100px;
	background:#0075ff;
	
	position:absolute;
	top:2px;
	left:2px;
}
.CTR_dotLine{
	position: absolute;
    top: 12px;
    left: 6px;
    border: 1px dashed #ddd;
    height: calc(100% + 20px);
}
.CTR_info{
	display:inline-block;
	border:1px solid #ddd;
	border-radius:5px;
	width:470px;
}

.create_taskRule li:last-child .CTR_dotLine{
	display:none;
}

.CTRI_head{
	padding:5px 8px;
	background:#f8fafd;
	border-bottom:1px solid #ddd;
}
.CTRI_body{
	display:flex;
	padding:5px 8px;
}
.CTRI_typeFont{
	border:1px solid #ddd;
	padding:3px 5px;
	border:1px solid #ddd;
	background: #f8fafd;
	margin-right:10px;
	
	font-size: 12px;
    color: #000;
    font-weight: bold;
}

.CTRI_head span{
	margin-left:15px;
	cursor:pointer;
}
.CTRI_head span i{
	color:#2d61db;
	font-size:14px;
}

.create_taskAdd{
	margin-left:30px;
	width:470px;
	padding:5px 0px;
	text-align:center;
	border:1px solid #ddd;
	background:#f8fafd;
	cursor:pointer;
}
/* 旧 .create_addJR_btn / .create_rw_btn 已移除 */
/*创建任务弹窗end*/

/* 旧 #addFestivalView 块已移除，被内联 CSS 中 !important 规则替代 */
.addFestivalCon{
	padding:10px 10px;
	padding-top:20px;
}
/* 旧 \.addFestivalYes 已移除，被内联 CSS 覆盖 */
.AFC_row{
	display:flex;
	margin-bottom:15px;
}
.AFC_row .tip{
	
}
.AFC_row .info{
	flex:1;
	text-align:left;
}
/* 旧 #addFestival_name 已移除，被内联 CSS 覆盖 */
/* 旧 #addFestival_date 已移除，被内联 CSS 覆盖 */

.popup input{
	margin:0;
}
/*添加节日弹窗end*/

.popupMark{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#birthday_month_ul{
	overflow:hidden;
}
/* 旧 #birthday_month_ul 子规则已移除 */
/* 旧 #birthday_month_ul 子规则已移除 */
/* 旧 #birthday_month_ul 子规则已移除 */


/*滚动条样式start*/
.empUl::-webkit-scrollbar {/*滚动条整体样式*/
    width: 10px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 10px;
}
.empUl::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    background-color: #999;
    background-clip: padding-box;
    min-height: 28px;
    border-radius: 10px;
}
.empUl::-webkit-scrollbar-track-piece {/*滚动条里面轨道*/
    /* background-color: #707070; */
}
/*滚动条样式end*/

/* ====================================================
   从 employeeCustomerPage2_th.html 内联 <style> 迁移过来
   ==================================================== */

/* ========================================
       设计令牌（手写复刻 Material Design 3 风格）
       ======================================== */
    :root {
      --primary:        #005daa;
      --primary-hover:  #004785;
      --primary-soft:   #e8f0fe;
      --secondary:      #525e7c;
      --tertiary:       #934600;
      --error:          #ba1a1a;
      --success:        #52c41a;
      --warning:        #faad14;

      --bg:             #f9f9ff;
      --surface:        #ffffff;
      --surface-low:    #f1f3fd;
      --surface-high:   #e5e8f1;
      --surface-bright: #ffffff;

      --on-surface:        #181c22;
      --on-surface-variant:#404753;
      --outline:           #707785;
      --outline-variant:   #c0c7d6;

      --status-success-bg: #f6ffed;
      --status-success-tx: #52c41a;
      --status-info-bg:    #e8f0fe;
      --status-info-tx:    #005daa;
      --status-error-bg:   #fff1f0;
      --status-error-tx:   #f5222d;
      --status-neutral-bg: #f5f5f5;
      --status-neutral-tx: #595959;

      --radius-sm: 6px;
      --radius:    8px;
      --radius-lg: 12px;
      --radius-pill: 9999px;

      --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
      --shadow:    0 2px 8px rgba(0,0,0,0.05);
      --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

      --side-w:    240px;
      --top-h:     64px;

      --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html, body {
      margin: 0; padding: 0;
      font-family: var(--font-stack);
      font-size: 14px;
      line-height: 1.5;
      color: var(--on-surface);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }
    body {
      min-height: 100vh;
      text-align: left;
    }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; }

    /* ========================================
       应用骨架：左侧导航 + 主体
       ======================================== */
    .app-shell { display: flex; min-height: 100vh; }

    /* ---------- 左侧导航 ---------- */
    .side-nav {
      position: fixed; top: 0; left: 0;
      width: var(--side-w); height: 100vh;
      background: var(--surface);
      border-right: 1px solid var(--outline-variant);
      display: flex; flex-direction: column;
      padding: 16px 0;
      z-index: 20;
    }
    .side-brand {
      padding: 4px 20px 20px;
      border-bottom: 1px solid var(--outline-variant);
      margin-bottom: 12px;
    }
    .side-brand-row {
      display: flex; align-items: center; gap: 10px;
    }
    .side-brand-logo {
      width: 32px; height: 32px; border-radius: 8px;
      background: linear-gradient(135deg, var(--primary), #0075d5);
      color: #fff; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
    }
    .side-brand-text h1 {
      margin: 0; font-size: 18px; font-weight: 700; color: var(--primary);
      letter-spacing: -0.01em;
    }
    .side-brand-text p {
      margin: 2px 0 0; font-size: 11px;
      color: var(--on-surface-variant);
      letter-spacing: 0.06em; text-transform: uppercase;
    }

    .side-cta {
      padding: 0 16px 16px;
    }
    .side-cta-btn {
      width: 100%; height: 38px;
      background: var(--primary); color: #fff;
      border: none; border-radius: var(--radius);
      font-size: 14px; font-weight: 600;
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      box-shadow: var(--shadow-sm);
      transition: background .2s;
    }
    .side-cta-btn:hover { background: var(--primary-hover); }

    .side-nav-list {
      flex: 1;
      list-style: none; margin: 0; padding: 0 8px;
      overflow-y: auto;
    }
    .side-nav-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; margin-bottom: 4px;
      border-radius: var(--radius);
      color: var(--on-surface-variant);
      font-size: 14px; font-weight: 500;
      cursor: pointer;
      transition: background .15s, color .15s;
      position: relative;
    }
    .side-nav-item:hover {
      background: var(--surface-low);
      color: var(--primary);
    }
    .side-nav-item.active {
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 700;
    }
    .side-nav-item.active::after {
      content: '';
      position: absolute; top: 0; right: 0; bottom: 0;
      width: 3px; background: var(--primary);
      border-radius: 2px 0 0 2px;
    }
    .side-nav-item.disabled {
      color: #b0b6c2; cursor: not-allowed;
    }
    .side-nav-item.disabled:hover {
      background: transparent; color: #b0b6c2;
    }
    .side-nav-item .svg-ic {
      width: 20px; height: 20px; flex-shrink: 0;
    }

    /* ---------- 主体 ---------- */
    .main-area {
      flex: 1; margin-left: var(--side-w);
      display: flex; flex-direction: column;
      min-height: 100vh;
    }

    .topbar {
      position: fixed; top: 0;
      left: var(--side-w); right: 0; height: var(--top-h);
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--outline-variant);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px;
      z-index: 15;
    }
    .topbar-left { display: flex; align-items: center; gap: 24px; }
    .topbar-title {
      margin: 0; font-size: 18px; font-weight: 800; color: var(--primary);
      letter-spacing: -0.01em;
    }
    .topbar-search {
      position: relative; width: 260px;
    }
    .topbar-search input {
      width: 100%; height: 36px;
      padding: 0 14px 0 36px;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-pill);
      background: var(--surface-low);
      font-size: 13px; outline: none;
      transition: all .2s;
    }
    .topbar-search input:focus {
      border-color: var(--primary);
      background: var(--surface);
      box-shadow: 0 0 0 3px rgba(0,93,170,0.15);
    }
    .topbar-search .svg-ic {
      position: absolute; left: 12px; top: 50%;
      transform: translateY(-50%);
      width: 16px; height: 16px;
      color: var(--outline);
    }

    .topbar-right { display: flex; align-items: center; gap: 4px; }
    .topbar-icon-btn {
      width: 40px; height: 40px;
      background: transparent; border: none;
      border-radius: 50%;
      color: var(--on-surface-variant);
      display: inline-flex; align-items: center; justify-content: center;
      position: relative;
      transition: background .15s;
    }
    .topbar-icon-btn:hover { background: var(--surface-low); }
    .topbar-icon-btn .svg-ic { width: 20px; height: 20px; }
    .topbar-icon-btn .badge-dot {
      position: absolute; top: 10px; right: 10px;
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--error);
    }
    .topbar-divider {
      width: 1px; height: 24px;
      background: var(--outline-variant);
      margin: 0 8px;
    }
    .topbar-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: linear-gradient(135deg, #cfe2ff, #a5c8ff);
      color: var(--primary);
      display: inline-flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 14px;
      border: 1px solid var(--outline-variant);
      cursor: pointer;
    }

    /* ---------- Canvas ---------- */
    .canvas {
      flex: 1;
      padding: calc(var(--top-h) + 24px) 24px 24px;
    }

    /* ========================================
       页面通用：标题 + 操作区 + 卡片
       ======================================== */
    .page-header {
      display: flex; align-items: flex-end; justify-content: space-between;
      gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
    }
    .page-title {
      margin: 0; font-size: 28px; font-weight: 700;
      color: var(--on-surface); letter-spacing: -0.02em;
    }
    .page-subtitle {
      margin: 4px 0 0; color: var(--on-surface-variant);
      font-size: 14px;
    }
    .page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

    .btn {
      display: inline-flex; align-items: center; gap: 6px;
      height: 38px; padding: 0 16px;
      border-radius: var(--radius);
      font-size: 14px; font-weight: 600;
      border: none; cursor: pointer;
      transition: all .15s;
      box-shadow: var(--shadow-sm);
      vertical-align: middle;
    }
    .btn .svg-ic { width: 16px; height: 16px; }
    .btn-primary {
      background: var(--primary); color: #fff;
    }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-secondary {
      background: var(--surface); color: var(--on-surface);
      border: 1px solid var(--outline-variant);
    }
    .btn-secondary:hover { background: var(--surface-low); border-color: var(--primary); color: var(--primary); }
    .btn-success { background: var(--success); color: #fff; }
    .btn-warning { background: var(--warning); color: #000; }
    .btn-danger  { background: var(--error); color: #fff; }
    .btn-ghost   { background: transparent; box-shadow: none; color: var(--on-surface-variant); }
    .btn-ghost:hover { background: var(--surface-low); color: var(--primary); }

    /* 统计卡片 */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px; margin-bottom: 24px;
    }
    @media (max-width: 1100px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .stat-card {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
    }
    .stat-card .stat-label {
      font-size: 12px; color: var(--on-surface-variant);
      letter-spacing: 0.04em; margin-bottom: 6px;
      text-transform: uppercase;
    }
    .stat-card .stat-value {
      font-size: 28px; font-weight: 700; color: var(--on-surface);
      letter-spacing: -0.02em;
    }
    .stat-card .stat-trend {
      margin-top: 6px; font-size: 12px;
      color: var(--success);
    }
    .stat-card-accent {
      position: absolute; top: 0; left: 0;
      width: 3px; height: 100%;
      background: var(--primary);
    }

    /* 卡片容器 */
    .card {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    /* ========================================
       员工列表页面：左员工 + 右客户两列
       ======================================== */
    .staff-main-grid {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 16px;
    }

    .staff-sidebar {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      display: flex; flex-direction: column;
      max-height: calc(100vh - var(--top-h) - 48px - 200px);
      min-height: 500px;
      overflow: hidden;
    }
    .staff-sidebar h3 {
      margin: 0; padding: 14px 16px;
      font-size: 14px; font-weight: 700;
      color: var(--on-surface);
      border-bottom: 1px solid var(--outline-variant);
      background: var(--surface-low);
    }
    /* 员工列表 ul.empUl 必须保留此 class */
    .empUl {
      list-style: none; margin: 0; padding: 8px;
      flex: 1; overflow-y: auto;
    }
    .empUl li {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 10px; margin-bottom: 4px;
      border-radius: var(--radius);
      cursor: pointer;
      color: var(--on-surface);
      transition: background .15s;
    }
    .empUl li:hover { background: var(--surface-low); }
    .empUl li.active {
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 600;
    }
    .empUl li img {
      width: 32px !important; height: 32px !important;
      border-radius: 50% !important;
      object-fit: cover;
      margin-right: 0 !important;
      flex-shrink: 0;
    }
    .empUl li div { font-size: 14px; }
    .empUl::-webkit-scrollbar { width: 6px; }
    .empUl::-webkit-scrollbar-thumb {
      background: #c8cdd9; border-radius: 4px;
    }

    /* 右侧客户区 */
    .customer-section {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      padding: 20px 22px;
      min-height: 500px;
    }
    .customer-section h2 {
      margin: 0 0 6px; font-size: 18px; font-weight: 600;
      color: var(--on-surface);
    }
    .customer-section p { margin: 0; color: var(--on-surface-variant); }

    /* JS 动态生成的客户表格样式包覆 */
    #empClientTitle {
      font-size: 18px; font-weight: 600;
      color: var(--on-surface);
      margin: 0 0 14px;
    }
    /* 列宽：序号 | 选择 | 头像 | 名称(弹性) | 添加时间 | 操作 */
    #empClientTable table th:nth-child(1),
    #empClientTable table td:nth-child(1) { width: 56px; text-align: center; }
    #empClientTable table th:nth-child(2),
    #empClientTable table td:nth-child(2) { width: 56px; text-align: center; }
    #empClientTable table th:nth-child(3),
    #empClientTable table td:nth-child(3) { width: 64px; text-align: center; }
    #empClientTable table th:nth-child(4),
    #empClientTable table td:nth-child(4) { min-width: 160px; }
    #empClientTable table th:nth-child(5),
    #empClientTable table td:nth-child(5) { width: 170px; white-space: nowrap; color: var(--on-surface-variant); }
    #empClientTable table th:nth-child(6),
    #empClientTable table td:nth-child(6) { width: 100px; text-align: center; }
    #empClientTable table {
      width: 100%;
      border-collapse: collapse;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
    }
    #empClientTable thead tr {
      background: var(--surface-low);
    }
    #empClientTable th {
      padding: 10px 12px; text-align: left;
      font-size: 12px; font-weight: 600;
      color: var(--on-surface-variant);
      text-transform: uppercase; letter-spacing: 0.03em;
      border-bottom: 1px solid var(--outline-variant);
    }
    #empClientTable td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--outline-variant);
      font-size: 14px; color: var(--on-surface);
      vertical-align: middle;
    }
    #empClientTable tbody tr:hover { background: var(--surface-low); }
    #empClientTable tbody tr:last-child td { border-bottom: none; }
    #empClientTable img {
      width: 32px; height: 32px; border-radius: 50%;
      object-fit: cover;
    }
    #empClientTable button {
      padding: 4px 10px; border-radius: var(--radius);
      background: var(--primary); color: #fff;
      border: none; font-size: 12px; cursor: pointer;
    }
    #empClientTable button:hover { background: var(--primary-hover); }

    /* 已绑定/未绑定 toggle */
    #showClients .bindClient,
    #showClients .notBindClient {
      background: var(--surface); border: 1px solid var(--outline-variant);
      border-radius: var(--radius-pill) !important;
      color: var(--on-surface-variant);
      cursor: pointer; transition: all .15s;
    }
    #showClients .bindClient.clentActive {
      background: var(--status-success-bg);
      border-color: var(--success);
      color: var(--success);
    }
    #showClients .notBindClient.clentActive {
      background: var(--status-neutral-bg);
      border-color: var(--outline);
      color: var(--on-surface);
    }
    #showClients #getEmpClientInfos {
      background: var(--primary) !important;
      color: #fff !important;
      border: none; border-radius: var(--radius) !important;
    }
    #showClients input[type="date"] {
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius);
      padding: 4px 8px; outline: none;
      background: var(--surface);
    }
    #showClients #beforeStr {
      background: var(--surface-low) !important;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg) !important;
    }
    /* 操作按钮区域 */
    #showClients .btn-select-all {
      background: var(--success) !important; color: #fff !important;
      padding: 6px 14px; border-radius: var(--radius); border: none;
      font-size: 13px; font-weight: 600; cursor: pointer;
    }
    #showClients .btn-invert {
      background: var(--warning) !important; color: #000 !important;
      padding: 6px 14px; border-radius: var(--radius); border: none;
      font-size: 13px; font-weight: 600; cursor: pointer; margin-left: 6px;
    }
    #showClients .btn-delete {
      background: var(--primary) !important; color: #fff !important;
      padding: 6px 14px; border-radius: var(--radius); border: none;
      font-size: 13px; font-weight: 600; cursor: pointer; margin-left: 6px;
    }

    /* ========================================
       群发管理 TAB
       ======================================== */
    .task-toolbar {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
      margin-bottom: 16px;
      display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
      box-shadow: var(--shadow-sm);
    }
    .task-toolbar .querySC_input {
      flex: 0 0 320px; height: 36px;
      padding: 0 14px;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius);
      font-size: 13px; outline: none;
      background: var(--surface-low);
      margin: 0 !important;
    }
    .task-toolbar .querySC_input:focus {
      border-color: var(--primary); background: var(--surface);
      box-shadow: 0 0 0 3px rgba(0,93,170,0.15);
    }
    .task-toolbar .querySC_btn {
      height: 36px; padding: 0 18px;
      background: var(--primary) !important; color: #fff !important;
      border-radius: var(--radius) !important;
      font-size: 13px; font-weight: 600;
      display: inline-flex; align-items: center;
      margin-left: 0 !important;
    }

    .task-tabs {
      display: flex; gap: 4px;
    }
    .task-tab {
      padding: 6px 14px; border-radius: var(--radius);
      font-size: 13px; font-weight: 600;
      color: var(--on-surface-variant);
      cursor: pointer; background: transparent; border: none;
      transition: background .15s, color .15s;
    }
    .task-tab:hover { background: var(--surface-low); color: var(--primary); }
    .task-tab.active {
      background: var(--primary-soft); color: var(--primary);
    }

    .task-card { /* 包覆 task_table */
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .task_table {
      width: 100%; border-collapse: collapse;
      margin: 0;
    }
    .task_table thead tr {
      background: #fafafa;
      border-bottom: 1px solid var(--outline-variant);
    }
    .task_table th {
      padding: 12px 16px; text-align: left;
      font-size: 12px; font-weight: 700;
      color: var(--on-surface-variant);
      text-transform: uppercase; letter-spacing: 0.04em;
    }
    .task_table td {
      padding: 14px 16px;
      font-size: 14px; color: var(--on-surface);
      border-bottom: 1px solid var(--outline-variant);
      text-align: left;
    }
    .task_table tbody tr {
      transition: background .15s;
    }
    .task_table tbody tr:hover { background: var(--surface-low); }
    .task_table tbody tr:last-child td { border-bottom: none; }

    /* ========================================
       通用：徽章 / 状态标签
       ======================================== */
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 2px 10px; border-radius: var(--radius-pill);
      font-size: 11px; font-weight: 700;
      letter-spacing: 0.04em;
    }
    .badge-success {
      background: var(--status-success-bg); color: var(--status-success-tx);
      border: 1px solid rgba(82,196,26,0.3);
    }
    .badge-info {
      background: var(--status-info-bg); color: var(--status-info-tx);
      border: 1px solid rgba(0,93,170,0.2);
    }
    .badge-error {
      background: var(--status-error-bg); color: var(--status-error-tx);
      border: 1px solid rgba(245,34,45,0.3);
    }
    .badge-neutral {
      background: var(--status-neutral-bg); color: var(--status-neutral-tx);
      border: 1px solid var(--outline-variant);
    }

    /* ========================================
       弹窗（M3 风格统一重做）
       覆盖 .modal / .popup / .staff-modal / .push_modal
       ======================================== */
    /* 默认隐藏 + 全屏定位（jQuery .fadeIn()/.show() 会移除 inline display:none 让 CSS 生效） */
    .modal {
      display: none;
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      align-items: center; justify-content: center;
      z-index: 1000;
    }
    .popup {
      display: none;
      position: fixed;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      width: 75%;
      max-height: 90vh;
      overflow-y: auto;
      z-index: 1001;
    }
    .staff-modal {
      display: none;
      position: fixed;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      width: 50%;
      z-index: 1001;
    }
    .push_modal {
      display: none;
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 1000;
    }
    #overlay {
      display: none;
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 1000;
    }
    /* 当 JS 通过 .show()/.fadeIn() 显示 .modal 时，重置为 flex 居中 */
    .modal[style*="display: block"],
    .modal[style*="display:block"],
    .modal[style*="display: flex"] {
      display: flex !important;
    }

    /* 遮罩背景：仅 .modal/.push_modal/#overlay 是全屏遮罩；.popup/.staff-modal 是内容容器 */
    .modal,
    .push_modal,
    #overlay {
      background: rgba(0, 0, 0, 0.5) !important;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .modal-content,
    .popup,
    .staff-modal,
    .push_modal_content {
      background: var(--surface) !important;
      border-radius: var(--radius-lg) !important;
      box-shadow: var(--shadow-lg) !important;
      border: 1px solid var(--outline-variant);
      padding: 0 !important;
    }
    /* 内层容器 .modal-content/.push_modal_content 需要 relative 锚定 close 按钮；
       .popup/.staff-modal 本身就是 position:fixed，已是定位上下文 */
    .modal-content { width: 60% !important; max-width: 720px; max-height: 90vh; overflow-y: auto !important; padding: 24px !important; position: relative !important; }
    /* .popup / .staff-modal 内容超出时整体滚动；close 按钮 absolute 定位到 padding-box 不随滚动移动 */
    .popup { padding: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; }
    .staff-modal { overflow-y: auto !important; overflow-x: hidden !important; }
    .push_modal_content { overflow: hidden; }

    /* 弹窗打开时锁定背景页滚动（由 body.popup-open 触发） */
    body.popup-open { overflow: hidden !important; }
    .popup > .close-btn,
    .staff-modal > .close-btn,
    .modal-content > .close-btn,
    .push_modal_content > .push_close_btn {
      position: absolute !important; top: 14px !important; right: 14px !important;
      width: 32px; height: 32px;
      display: inline-flex !important; align-items: center; justify-content: center;
      border-radius: 50%;
      background: var(--surface-low);
      color: var(--on-surface-variant) !important;
      font-size: 18px !important;
      font-weight: normal !important;
      float: none !important;
      cursor: pointer;
      transition: background .15s, color .15s;
      line-height: 1 !important;
    }
    .popup > .close-btn:hover,
    .staff-modal > .close-btn:hover,
    .modal-content > .close-btn:hover,
    .push_modal_content > .push_close_btn:hover {
      background: var(--status-error-bg);
      color: var(--error) !important;
    }
    .popup h2,
    .staff-modal h2,
    .modal-content h2,
    .push_modal_content h3 {
      margin: 0 !important;
      padding: 20px 24px;
      font-size: 18px; font-weight: 700;
      color: var(--on-surface);
      border-bottom: 1px solid var(--outline-variant);
      background: var(--surface);
      /* sticky 固定在弹窗顶部，不随内容滚动 */
      position: sticky;
      top: 0;
      z-index: 5;
    }
    /* 关闭按钮 z-index 高于 sticky 标题，保持可点击 */
    .popup > .close-btn,
    .staff-modal > .close-btn,
    .modal-content > .close-btn,
    .push_modal_content > .push_close_btn {
      z-index: 10 !important;
    }

    /* 弹窗里面的所有 input/textarea 统一样式 */
    .modal-content input[type="text"],
    .modal-content textarea,
    .popup input[type="text"],
    .popup textarea {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius);
      font-size: 14px; outline: none;
      background: var(--surface);
      transition: border-color .15s, box-shadow .15s;
      font-family: inherit;
      margin: 8px 0;
    }
    .modal-content input[type="text"]:focus,
    .modal-content textarea:focus,
    .popup input[type="text"]:focus,
    .popup textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0,93,170,0.15);
    }

    /* 弹窗主按钮 */
    #addMessage, #submitMessages,
    #ASTyes, #confirm-btn {
      background: var(--primary) !important;
      color: #fff !important;
      border: none !important;
      padding: 10px 22px !important;
      font-size: 14px !important; font-weight: 600 !important;
      border-radius: var(--radius) !important;
      cursor: pointer;
      transition: background .15s;
    }
    #addMessage:hover, #submitMessages:hover,
    #ASTyes:hover, #confirm-btn:hover {
      background: var(--primary-hover) !important;
    }

    /* === 消息群发弹窗 #messageModal === */
    #messageModal .modal-content {
      padding: 0 !important;
    }
    #messageModal h2 { margin-bottom: 0; }
    #messageModal > .modal-content > *:not(.close-btn):not(h2) {
      padding-left: 24px; padding-right: 24px;
    }
    #messageModal #addMessage,
    #messageModal #submitMessages { margin: 12px 24px; }
    #messageModal h3 {
      padding: 0 24px; margin: 16px 0 8px;
      font-size: 14px; font-weight: 600; color: var(--on-surface-variant);
    }
    #messageModal label {
      display: block; margin: 14px 0 6px;
      font-size: 13px; font-weight: 600;
      color: var(--on-surface-variant);
    }
    #messagesList {
      background: var(--surface-low);
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      padding: 10px !important;
      max-height: 220px !important;
      margin: 8px 0 16px;
    }
    .message-box {
      background: var(--surface) !important;
      border-left: 4px solid var(--primary) !important;
      border-radius: var(--radius) !important;
      padding: 12px 14px !important; margin: 8px 0 !important;
      box-shadow: var(--shadow-sm) !important;
      position: relative;
    }
    .message-box .delete-btn {
      background: var(--error) !important; color: #fff !important;
      padding: 4px 10px !important; border-radius: var(--radius) !important;
      font-size: 12px !important; position: absolute !important;
      top: 8px; right: 8px; cursor: pointer;
    }
    /* 消息类型按钮 */
    .msgTypeContainer {
      display: inline-flex !important;
      background: var(--surface-low); padding: 4px;
      border-radius: var(--radius); margin: 6px 0;
    }
    .msgTypeBtn {
      border: none !important;
      padding: 8px 18px !important;
      font-size: 13px !important; font-weight: 600 !important;
      cursor: pointer;
      border-radius: var(--radius-sm) !important;
      background: transparent !important;
      color: var(--on-surface-variant) !important;
      transition: background .15s, color .15s;
    }
    .msgTypeBtn:hover {
      background: rgba(0,93,170,0.05) !important;
      color: var(--primary) !important;
    }
    .msgTypeBtn.activityCss {
      background: var(--primary) !important;
      color: #fff !important;
    }

    /* 员工选择 li.employee-item */
    .employee-item {
      cursor: pointer;
      display: inline-flex !important; align-items: center;
      padding: 6px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius-pill) !important;
      transition: all .15s;
      background: var(--surface);
    }
    .employee-item:hover { border-color: var(--primary); color: var(--primary); }
    .employee-item.selected {
      background: var(--primary) !important;
      color: #fff !important;
      border-color: var(--primary) !important;
    }
    .employee-item img {
      width: 24px !important; height: 24px !important;
      border-radius: 50% !important;
      margin-right: 8px !important;
    }

    /* 图片/链接选择按钮 */
    .imgeSelect, .linkImageSelect {
      background: var(--primary-soft) !important;
      color: var(--primary) !important;
      border: 1px dashed var(--primary) !important;
      padding: 10px 20px !important;
      font-size: 13px !important; font-weight: 600 !important;
      cursor: pointer; border-radius: var(--radius) !important;
      transition: all .15s;
      box-shadow: none !important;
    }
    .imgeSelect:hover, .linkImageSelect:hover {
      background: rgba(0,93,170,0.1) !important;
    }
    .imgeSelect div, .linkImageSelect div {
      font-size: 13px !important;
      color: var(--primary) !important;
    }

    /* === 标签管理弹窗 #popup === */
    #popup { width: 75% !important; height: auto !important; max-height: 85vh; overflow-y: auto; }
    .group-container { padding: 20px 24px !important; }
    .group-list {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
    }
    .group-item {
      display: inline-flex !important; align-items: center; gap: 6px;
      cursor: pointer;
      padding: 8px 14px !important;
      font-size: 13px;
      background: var(--surface-low) !important;
      color: var(--on-surface) !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius-pill) !important;
      white-space: nowrap; position: relative;
      transition: all .15s;
    }
    .group-item:hover { border-color: var(--primary); color: var(--primary); }
    .group-item.selected {
      background: var(--primary) !important;
      color: #fff !important;
      border-color: var(--primary) !important;
    }
    .group-item .delete-btn {
      position: absolute !important;
      top: -6px !important; right: -6px !important;
      background: var(--error) !important; color: #fff !important;
      border: none; border-radius: 50% !important;
      width: 18px; height: 18px;
      font-size: 11px; cursor: pointer;
      line-height: 16px !important; text-align: center;
      display: none;
    }
    .group-item.selected .delete-btn { display: block; }
    .tag-container { margin-top: 12px; display: none; }
    .tag-title {
      font-size: 14px; font-weight: 600; color: var(--on-surface);
      margin-bottom: 8px;
    }
    .tag-list {
      display: flex; flex-wrap: wrap; gap: 8px;
      padding: 14px; background: var(--surface-low);
      border-radius: var(--radius); border: 1px solid var(--outline-variant);
    }
    .tag-item {
      display: inline-flex !important; align-items: center; gap: 6px;
      padding: 6px 12px !important;
      background: var(--surface) !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      font-size: 12px;
      position: relative; cursor: pointer;
      white-space: nowrap;
    }
    .tag-item.selected {
      background: var(--success) !important; color: #fff !important;
      border-color: var(--success) !important;
    }
    .tag-item.selected .delete-btn { display: block; }
    .add-btn {
      background: var(--success) !important; color: #fff !important;
      border: none; border-radius: 50% !important;
      width: 22px; height: 22px; font-size: 14px; cursor: pointer;
      text-align: center; line-height: 20px;
          margin-top: 8px;
    }

    /* === 同步员工弹窗 #staff-popup === */
    #staff-popup {
      width: 50% !important;
      max-width: 640px;
      padding: 0 !important;
    }
    .staff-select-all-row {
      padding: 8px 24px 0;
      font-size: 14px;
      color: var(--on-surface);
    }
    .staff-select-all-row input[type="checkbox"] {
      cursor: pointer;
      width: 15px; height: 15px;
      vertical-align: middle;
    }
    .staff-list {
      list-style: none; margin: 16px 24px; padding: 0;
      display: flex; flex-wrap: wrap; gap: 8px;
      justify-content: flex-start;
    }
    .staff-item {
      cursor: pointer;
      display: inline-flex !important; align-items: center;
      padding: 6px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius-pill) !important;
      transition: all .15s;
      background: var(--surface);
    }
    .staff-item img {
      width: 24px !important; height: 24px !important;
      border-radius: 50% !important; margin-right: 8px !important;
    }
    .staff-item.selected {
      background: var(--primary) !important; color: #fff !important;
      border-color: var(--primary) !important;
    }
    #staff-popup #confirm-btn {
      display: inline-block; margin: 10px 24px 24px !important;
    }

    /* === 添加节日弹窗 #addFestivalView === */
    #addFestivalView {
      width: 520px !important; height: auto !important;
      top: 50% !important; left: 50% !important;
      transform: translate(-50%, -50%) !important;
    }
    #addFestivalView .addFestivalCon { padding: 20px 24px !important; }
    #addFestivalView .AFC_row { margin-bottom: 16px !important; }
    #addFestivalView .AFC_row > font.tip {
      width: 90px; color: var(--on-surface-variant);
      font-size: 13px;
    }
    #addFestivalView #addFestival_name,
    #addFestivalView #addFestival_date {
      width: 100% !important; max-width: 360px;
      padding: 10px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
    }
    .addFestivalYes {
      display: inline-block !important;
      background: var(--primary) !important; color: #fff !important;
      padding: 10px 28px !important; border-radius: var(--radius) !important;
      cursor: pointer; font-weight: 600;
    }
    .addFestivalYes:hover { background: var(--primary-hover) !important; }

    /* === 创建任务弹窗 #createInfoView === */
    #createInfoView .createInfoCon { padding: 20px 24px; }
    #createInfoView .create_row > font.tip {
      width: 90px; color: var(--on-surface-variant);
      font-size: 13px; line-height: 36px;
    }
    /* 节日卡片 .create_tdUl 已有原 CSS 样式，这里增强 */
    .create_tdUl li {
      background: var(--surface) !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      transition: all .15s;
    }
    .create_tdUl li:hover { border-color: var(--primary) !important; }
    .create_tdUl li.active {
      background: var(--primary-soft) !important;
      border-color: var(--primary) !important;
    }
    .create_tdUl li .name {
      color: var(--on-surface);
    }
    .create_tdUl li .time {
      color: var(--on-surface-variant);
    }
    .create_addJR_btn, .create_rw_btn {
      background: var(--primary) !important;
      border-radius: var(--radius) !important;
      padding: 4px 14px !important;
    }

    /* === 设置任务弹窗 #setInfoView === */
    #setInfoView {
      width: 1000px !important;
      max-width: 90vw;
      max-height: 90vh;
      overflow-y: auto;
      padding: 0 !important;
    }
    #setInfoView .setInfoCon { padding: 20px 24px; font-size: 14px; }
    #setInfoView .set_row {
      display: flex; margin-bottom: 14px; align-items: flex-start;
    }
    #setInfoView .set_row > font {
      width: 100px; color: var(--on-surface-variant);
      font-size: 13px; line-height: 32px;
      flex-shrink: 0;
    }
    #setInfoView .set_row .info { flex: 1; }
    #setInfoView .set_row .info label {
      display: inline-flex; align-items: center; gap: 4px;
      cursor: pointer; margin-right: 14px;
    }
    #setInfoView .set_row .info label > font { color: var(--on-surface); }
    .SI_selectRy, .SI_selectGrop {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-wrap: wrap; gap: 8px;
    }
    .SI_selectRy li, .SI_selectGrop li {
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius-pill) !important;
      float: none !important;
      padding: 4px 10px !important;
      display: inline-flex !important; align-items: center;
      cursor: pointer;
      margin: 0 !important;
      background: var(--surface);
      transition: all .15s;
    }
    .SI_selectRy li:hover, .SI_selectGrop li:hover { border-color: var(--primary); }
    .SI_selectRy li.active, .SI_selectGrop li.active {
      background: var(--primary) !important; color: #fff !important;
      border-color: var(--primary) !important;
    }
    .SI_selectRy li img {
      width: 24px !important; height: 24px !important;
      border-radius: 50% !important;
    }
    .SI_selectRy li span, .SI_selectGrop li span {
      margin-left: 6px !important; vertical-align: middle !important;
      line-height: normal !important;
    }
    #refreshButton {
      background: var(--primary) !important;
      padding: 8px 16px !important;
      font-size: 13px !important; font-weight: 600 !important;
      border-radius: var(--radius) !important;
      color: #fff !important; border: none !important;
      margin-top: 8px;
    }
    #refreshButton:hover { background: var(--primary-hover) !important; }
    #birthday_month_ul {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-wrap: wrap; gap: 6px;
    }
    #birthday_month_ul li {
      width: 36px !important;
      float: none !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      padding: 5px 0 !important;
      margin: 0 !important; cursor: pointer;
      text-align: center;
      background: var(--surface);
      transition: all .15s;
    }
    #birthday_month_ul li:hover { border-color: var(--primary); color: var(--primary); background: var(--surface) !important; }
    #birthday_month_ul li.active {
      background: var(--primary) !important; color: #fff !important;
      border-color: var(--primary) !important;
    }
    #setInfoView #taskName {
      padding: 10px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
    }
    .setAddMsgBtn {
      background: var(--primary) !important;
      color: #fff !important; border-radius: var(--radius) !important;
      padding: 8px 16px !important; cursor: pointer;
      font-size: 13px !important; font-weight: 600 !important;
      display: inline-block;
    }
    .setAddMsgUl {
      list-style: none; padding: 0; margin: 10px 0 0;
    }
    .setAddMsgUl li {
      display: flex !important;
      padding: 12px 14px !important;
      background: var(--surface-low) !important;
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius) !important;
      font-size: 14px;
      margin-bottom: 8px !important;
      align-items: flex-start;
    }
    .SAMU_type {
      color: var(--primary); font-weight: 600;
      min-width: 80px;
    }
    .SAMU_del i { color: var(--error); font-size: 16px; cursor: pointer; }

    .form_datetime {
      height: 36px !important;
      width: 130px !important;
      padding: 0 10px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      text-align: center;
      margin: 0 !important;
      font-size: 13px;
    }
    /* 设置弹窗底部按钮 */
    #setInfoView > div[style*="padding: 15px"] {
      padding: 16px 24px !important;
      background: var(--surface-low);
      border-top: 1px solid var(--outline-variant);
      text-align: right !important;
    }
    .tooltip-btn {
      padding: 10px 22px !important;
      margin: 0 0 0 8px !important;
      border-radius: var(--radius) !important;
      font-size: 14px !important; font-weight: 600 !important;
      cursor: pointer; border: none;
      position: relative;
      transition: all .15s;
      box-shadow: var(--shadow-sm);
    }
    #saveSettingsBtn {
      background: var(--surface) !important;
      color: var(--on-surface) !important;
      border: 1px solid var(--outline-variant) !important;
    }
    #saveSettingsBtn:hover { background: var(--surface-low) !important; }
    #createNowBtn {
      background: var(--primary) !important; color: #fff !important;
    }
    #createNowBtn:hover { background: var(--primary-hover) !important; }
    #assignTaskBtn {
      background: var(--success) !important; color: #fff !important;
    }
    .tooltip-btn::after {
      content: attr(data-tooltip);
      position: absolute; bottom: 120%; left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.85); color: #fff;
      padding: 6px 12px; border-radius: var(--radius-sm);
      font-size: 12px; white-space: nowrap;
      opacity: 0; transition: opacity .2s;
      pointer-events: none;
    }
    .tooltip-btn:hover::after { opacity: 1; }

    /* === 添加素材弹窗 #addSourceView === */
    #addSourceView { width: 1000px !important; max-width: 90vw; padding: 0 !important; }
    .addSourceCon { padding: 20px 24px; font-size: 14px; }
    .addSourceCon .ASC_row {
      display: flex; margin-bottom: 18px; align-items: flex-start;
    }
    .addSourceCon .ASC_row > font {
      width: 90px; color: var(--on-surface-variant); font-size: 13px;
      line-height: 36px; flex-shrink: 0;
    }
    .addSourceCon .ASC_row .info { flex: 1; }
    .addSourceCon .ASC_row input[type="text"] {
      width: 100% !important; max-width: 500px;
      padding: 8px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      margin: 4px 0 !important;
    }
    /* 类型 tab */
    #addSourceType {
      display: inline-flex !important;
      background: var(--surface-low);
      padding: 4px; border-radius: var(--radius);
    }
    #addSourceType span {
      padding: 6px 16px; cursor: pointer;
      font-size: 13px; font-weight: 600;
      color: var(--on-surface-variant);
      border-radius: var(--radius-sm);
      transition: all .15s;
    }
    #addSourceType span:hover { color: var(--primary); }
    #addSourceType span.active {
      background: var(--primary); color: #fff;
    }
    .btnCss {
      padding: 8px 16px !important;
      background: var(--primary) !important;
      color: #fff !important; border-radius: var(--radius) !important;
      font-size: 13px !important; cursor: pointer;
      display: inline-block;
    }
    .btnCss:hover { background: var(--primary-hover) !important; }
    .AST_addImgShow {
      list-style: none; padding: 0; margin: 8px 0 0;
      display: flex; flex-wrap: wrap; gap: 12px;
    }
    .AST_addImgShow li {
      position: relative;
      width: 130px !important;
      padding: 8px !important;
      float: none !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius);
      margin: 0 !important;
      background: var(--surface);
    }
    .AST_addImgShow li img {
      width: 100% !important;
      border-radius: var(--radius-sm);
      display: block;
    }
    .AST_addImgDel {
      position: absolute !important;
      top: -8px !important; right: -8px !important;
      width: 22px; height: 22px; border-radius: 50%;
      text-align: center; line-height: 22px;
      color: #fff; background: var(--outline);
      cursor: pointer; font-size: 12px;
      transition: background .15s;
    }
    .AST_addImgDel:hover { background: var(--error); }
    #AST_addTxtInput {
      width: 100% !important;
      padding: 10px 12px !important;
      border: 1px solid var(--outline-variant) !important;
      border-radius: var(--radius) !important;
      font-family: inherit;
      resize: vertical;
    }
    /* 分享链接表单 */
    #AST_link .flex {
      display: flex; align-items: center;
      margin-bottom: 12px;
    }
    #AST_link .flex > font {
      width: 110px; color: var(--on-surface-variant);
      font-size: 13px; flex-shrink: 0;
    }
    #AST_link .flex .flex1 { flex: 1; }
    #AST_link .red { color: var(--error); font-style: normal; }
    #ASTyes {
      padding: 10px 36px !important;
      background: var(--primary) !important; color: #fff !important;
      border-radius: var(--radius) !important; cursor: pointer;
      font-size: 14px; font-weight: 600;
      display: inline-block;
    }

    /* === 任务执行详情弹窗 .push_modal === */
    .push_modal_content {
      width: 75% !important; max-width: 980px;
      max-height: 85vh !important;
      margin: 5vh auto !important;
      overflow: hidden !important;
      position: relative !important;
    }
    .push_modal_content > div.push_employee_list,
    .push_modal_content > .push_customer_list,
    .push_modal_content > h4 {
      padding: 0 24px;
    }
    .push_modal_content h4 {
      margin: 16px 24px 8px !important; padding: 0 !important;
      font-size: 14px; font-weight: 600; color: var(--on-surface-variant);
    }
    /* === 与原 employeeCustomerPage 完全一致的样式 === */
    .push_employee_list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
    }
    .push_employee_item {
      width: calc(20% - 10px); /* 5 个一行 */
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s;
      border: 1px solid #ddd;
      text-align: center;
      background: #f9f9f9;
    }
    .push_employee_item.active {
      background: #007bff;
      color: white;
    }
    .push_employee_item.disabled {
      cursor: not-allowed;
      color: gray;
      background: #f0f0f0;
    }
    .push_employee_avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-bottom: 5px;
    }
    .push_customer_list { margin: 0; padding: 0 24px 24px !important; max-height: 360px; overflow-y: auto; }
    .push_customer_table {
      width: 100%; border-collapse: collapse;
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .push_customer_table thead {
      background: var(--surface-low) !important;
      font-weight: 700;
    }
    .push_customer_table th {
      padding: 10px 12px !important; font-size: 12px;
      color: var(--on-surface-variant);
      text-transform: uppercase; letter-spacing: 0.03em;
      text-align: left;
    }
    .push_customer_table td {
      padding: 10px 12px !important;
      border-top: 1px solid var(--outline-variant);
      font-size: 13px;
    }
    .push_customer_avatar {
      width: 32px !important; height: 32px !important;
      border-radius: 50% !important;
    }
    .push_status_success { color: var(--success); font-weight: 700; }
    .push_status_failed { color: var(--error); font-weight: 700; }
    .push_status_pending { color: var(--outline); font-weight: 600; }

    /* ========================================
       兼容/隐藏
       ======================================== */
    .hidden { display: none !important; }
    /* 兼容原 inline 样式中 button:hover 等全局规则 */
    button[style*="background: red"]:hover,
    button.delete-btn:hover { background: darkred !important; }

    /* 朋友圈营销 styles 兼容旧 .pyqStyle, .pyqSC_ul 等保留 */
    .pyqStyle { overflow: hidden; margin: 10px 0; }
    .pyqStyle li {
      float: left; padding: 3px 0; margin: 0 12px;
      color: var(--on-surface); cursor: pointer; list-style: none;
    }
    .pyqStyle li.active {
      border-bottom: 2px solid var(--primary); color: var(--primary);
    }

    /* ========================================
       概览 TAB 样式
       ======================================== */
    .ov-metric-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    @media (max-width: 1100px) {
      .ov-metric-grid { grid-template-columns: 1fr; }
    }
    .ov-metric-card {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      padding: 20px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow .2s;
    }
    .ov-metric-card:hover { box-shadow: var(--shadow); }
    .ov-metric-head {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 14px;
    }
    .ov-metric-title {
      margin: 0; font-size: 14px; font-weight: 600;
      color: var(--on-surface-variant);
    }
    .ov-metric-icon {
      width: 36px; height: 36px;
      border-radius: var(--radius);
      display: inline-flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .ov-metric-icon .svg-ic { width: 20px; height: 20px; }
    .icon-primary   { background: rgba(0,93,170,0.10); color: var(--primary); }
    .icon-tertiary  { background: rgba(147,70,0,0.12);  color: var(--tertiary); }
    .icon-secondary { background: var(--surface-high); color: var(--on-surface-variant); }
    .ov-metric-value {
      display: flex; align-items: baseline; gap: 8px;
    }
    .ov-metric-value .big {
      font-size: 30px; font-weight: 800; color: var(--on-surface);
      letter-spacing: -0.02em;
    }
    .ov-metric-value .unit {
      font-size: 13px; color: var(--outline);
    }
    .ov-metric-foot {
      margin-top: 16px; padding-top: 14px;
      border-top: 1px solid var(--outline-variant);
      display: flex; justify-content: space-between; align-items: center;
      font-size: 13px;
    }
    .ov-metric-foot .muted { color: var(--on-surface-variant); margin-right: 4px; }
    .ov-metric-foot .strong { font-weight: 700; color: var(--on-surface); }
    .ov-metric-foot .text-primary { color: var(--primary); }
    .ov-metric-foot .trend {
      display: inline-flex; align-items: center; gap: 4px;
    }
    .ov-metric-foot .trend .svg-ic { width: 14px; height: 14px; }
    .trend-up   { color: #15803d; }
    .trend-down { color: var(--error); }

    /* 图表区 */
    .ov-chart-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }
    @media (max-width: 1100px) {
      .ov-chart-grid { grid-template-columns: 1fr; }
    }
    .ov-chart-card {
      background: var(--surface);
      border: 1px solid var(--outline-variant);
      border-radius: var(--radius-lg);
      padding: 20px;
      box-shadow: var(--shadow-sm);
    }
    .ov-chart-head {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 18px;
    }
    .ov-chart-title {
      margin: 0; font-size: 16px; font-weight: 700;
      color: var(--on-surface);
    }
    .ov-chart-sub {
      margin: 4px 0 0; font-size: 13px;
      color: var(--on-surface-variant);
    }
    .ov-chart-tabs { display: flex; gap: 6px; }
    .ov-chip {
      padding: 4px 12px; font-size: 12px;
      border: 1px solid var(--outline-variant);
      background: var(--surface);
      color: var(--on-surface-variant);
      border-radius: var(--radius);
      cursor: pointer; transition: all .15s;
    }
    .ov-chip:hover { color: var(--primary); border-color: var(--primary); }
    .ov-chip.active {
      background: var(--primary); color: #fff; border-color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    /* 折线图 */
    .ov-line-chart {
      display: flex; gap: 12px; height: 260px;
      padding-top: 12px;
    }
    .ov-line-ylabels {
      display: flex; flex-direction: column; justify-content: space-between;
      font-size: 11px; color: var(--outline);
      text-align: right; width: 28px; padding-bottom: 28px;
    }
    .ov-line-canvas {
      flex: 1; position: relative;
      border-left: 1px solid var(--outline-variant);
      border-bottom: 1px solid var(--outline-variant);
      padding-bottom: 24px;
    }
    .ov-line-canvas svg {
      width: 100%; height: 100%; display: block;
    }
    .ov-line-xlabels {
      position: absolute; bottom: -4px; left: 0; right: 0;
      display: flex; justify-content: space-between;
      font-size: 11px; color: var(--outline);
      padding: 0 4px;
    }

    /* 圆环图 */
    .ov-chart-donut { display: flex; flex-direction: column; }
    .ov-donut-wrap {
      flex: 1; display: flex; align-items: center; justify-content: center;
      position: relative; min-height: 200px;
      margin: 16px 0;
    }
    .ov-donut-svg {
      width: 180px; height: 180px;
      transform: rotate(-90deg);
    }
    .ov-donut-bg { stroke: var(--surface-high); }
    .ov-donut-fg { stroke: var(--primary); }
    .ov-donut-text {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
    }
    .ov-donut-text .big {
      font-size: 28px; font-weight: 800; color: var(--on-surface);
    }
    .ov-donut-text .muted {
      font-size: 12px; color: var(--on-surface-variant); margin-top: 2px;
    }
    .ov-donut-legend {
      display: flex; justify-content: center; gap: 20px;
      font-size: 13px; color: var(--on-surface);
      margin-top: 8px;
    }
    .ov-donut-legend > div { display: inline-flex; align-items: center; gap: 6px; }
    .ov-donut-legend .muted { color: var(--on-surface-variant); margin-left: 2px; }
    .dot {
      width: 10px; height: 10px; border-radius: 50%;
      display: inline-block;
    }
    .dot-primary { background: var(--primary); }
    .dot-mute    { background: var(--surface-high); }

    /* 员工表现排名 */
    .ov-rank-card { padding: 0; }
    .ov-rank-head {
      padding: 20px 24px;
      border-bottom: 1px solid var(--outline-variant);
      display: flex; justify-content: space-between; align-items: center;
    }
    .ov-link-btn {
      background: transparent; border: none;
      color: var(--primary); font-size: 14px; font-weight: 600;
      display: inline-flex; align-items: center; gap: 4px;
      cursor: pointer; padding: 6px 10px;
      border-radius: var(--radius);
      transition: background .15s;
    }
    .ov-link-btn:hover { background: var(--primary-soft); text-decoration: underline; }
    .ov-link-btn .svg-ic { width: 16px; height: 16px; }
    .ov-rank-table-wrap { overflow-x: auto; }
    .ov-rank-table {
      width: 100%; border-collapse: collapse;
    }
    .ov-rank-table thead tr {
      background: var(--surface-low);
      border-bottom: 1px solid var(--outline-variant);
    }
    .ov-rank-table th {
      padding: 12px 24px; text-align: left;
      font-size: 12px; font-weight: 700;
      color: var(--on-surface-variant);
      text-transform: uppercase; letter-spacing: 0.04em;
    }
    .ov-rank-table th.num,
    .ov-rank-table td.num { text-align: right; }
    .ov-rank-table td {
      padding: 14px 24px;
      font-size: 14px; color: var(--on-surface);
      border-bottom: 1px solid var(--outline-variant);
    }
    .ov-rank-table tbody tr:hover { background: var(--surface-low); }
    .ov-rank-table tbody tr:last-child td { border-bottom: none; }
    .ov-rank-table td.rank { font-weight: 700; }
    .ov-rank-table .text-primary { color: var(--primary); font-weight: 600; }
