/* ===== 标准分工管理 - 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f2f5; color: #333; font-size: 13px;
}

/* ===== 顶部标题栏 ===== */
.sa-topbar {
    height: 52px; background: #fff; border-bottom: 1px solid #e8e8e8;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; position: sticky; top: 0; z-index: 100;
}
.sa-topbar h1 { font-size: 16px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.sa-topbar h1 .sa-logo { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.sa-topbar h1 .sa-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
/* 展开/折叠菜单栏按钮 */
.sa-sidebar-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin-left: 10px;
    border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #555;
    cursor: pointer; transition: all 0.2s; font-size: 16px; vertical-align: middle;
}
.sa-sidebar-toggle:hover { border-color: #409eff; color: #409eff; background: #ecf5ff; }
.sa-layout.sidebar-collapsed .sa-sidebar { width: 0; padding: 0; border-right: none; overflow: hidden; }
/* 折叠时菜单栏宽度过渡 */
.sa-sidebar { transition: width 0.25s ease, padding 0.25s ease, border 0.25s ease; }
.sa-topbar-right { display: flex; gap: 8px; align-items: center; }
.sa-btn {
    padding: 6px 14px; border-radius: 5px; font-size: 12px;
    border: 1px solid #d9d9d9; background: #fff; color: #555;
    cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.sa-btn:hover { border-color: #409eff; color: #409eff; }
.sa-btn.primary { background: #409eff; border-color: #409eff; color: #fff; }
.sa-btn.primary:hover { background: #2f7ad6; color: #fff; }
/* 隐私字段切换按钮：隐藏时为默认白底，显示（active）时为橙色高亮提醒 */
.sa-btn.privacy-toggle { border-color: #d9b76b; color: #b8860b; }
.sa-btn.privacy-toggle:hover { background: #fffbe6; border-color: #faad14; color: #d48806; }
.sa-btn.privacy-toggle.active { background: #faad14; border-color: #faad14; color: #fff; }
.sa-btn.privacy-toggle.active:hover { background: #d48806; color: #fff; }

/* ===== 主体布局 ===== */
.sa-layout { display: flex; height: calc(100vh - 52px); }

/* 侧边栏 */
.sa-sidebar {
    width: 200px; flex-shrink: 0; background: #fff;
    border-right: 1px solid #e8e8e8; padding: 10px 0;
    overflow-y: auto; position: sticky; top: 52px; height: calc(100vh - 52px);
}
.sa-nav-group { margin-bottom: 2px; }
.sa-nav-group-title {
    padding: 9px 18px; font-size: 13px; font-weight: 600; color: #1a1a1a;
    cursor: pointer; display: flex; align-items: center; gap: 8px; user-select: none;
    transition: background 0.15s;
}
.sa-nav-group-title:hover { background: #f5f7fa; }
.sa-nav-group-title .sa-arrow { font-size: 11px; color: #999; transition: transform 0.2s; margin-left: auto; }
.sa-nav-group.collapsed .sa-arrow { transform: rotate(-90deg); }
.sa-nav-group-title .sa-gicon { width: 18px; text-align: center; color: #409eff; font-size: 15px; }
.sa-nav-children { overflow: hidden; }
.sa-nav-group.collapsed .sa-nav-children { display: none; }
.sa-nav-item {
    padding: 8px 14px 8px 36px; font-size: 12.5px; color: #555; cursor: pointer;
    border-left: 3px solid transparent; transition: all 0.15s; user-select: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-nav-item:hover { background: #f5f7fa; color: #409eff; }
.sa-nav-item.active { background: #ecf5ff; color: #409eff; border-left-color: #409eff; font-weight: 600; }
/* 单项组（无子项）直接作为可点击标题 */
.sa-nav-group.single .sa-nav-group-title { padding-left: 18px; }
.sa-nav-group.single.active .sa-nav-group-title { background: #ecf5ff; color: #409eff; border-left: 3px solid #409eff; padding-left: 15px; }

/* 内容区 */
.sa-content { flex: 1; min-width: 0; padding: 16px 20px 40px; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }
.sa-panel { display: none; }
.sa-panel.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sa-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px; flex-shrink: 0;
}
.sa-panel-body {
    flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
}
.sa-panel-title { font-size: 16px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.sa-panel-title .sa-panel-sub { font-size: 12px; color: #999; font-weight: 400; }

/* ===== 卡片容器 ===== */
.sa-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; }
.sa-card-pad { padding: 16px; }

/* ===== 组织架构图（五级树状图） ===== */
/* 白色卡片撑满面板剩余高度，白底向下延伸与其他界面保持一致 */
#panel-org .sa-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sa-org-chart { overflow: auto; flex: 1; min-height: 0; padding: 8px 4px 24px; }
.sa-org-tree { display: inline-block; min-width: 100%; }
.sa-org-tree > ul { padding-top: 0; }  /* 根层无上方连线 */
.sa-org-tree ul {
    padding-top: 20px; position: relative; list-style: none; margin: 0;
    display: flex; justify-content: center;
}
/* li 用 flex 列布局 + 居中，保证节点中心与连接线(50%)对齐 */
.sa-org-tree li {
    list-style: none; position: relative; padding: 20px 6px 0;
    display: flex; flex-direction: column; align-items: center;
}
/* 连接线：横线 + 竖线（位于 li 的 padding-top 区域，节点之上） */
.sa-org-tree li::before, .sa-org-tree li::after {
    content: ''; position: absolute; top: 0; right: 50%;
    border-top: 2px solid #c0c4cc; width: 50%; height: 20px;
}
.sa-org-tree li::after { right: auto; left: 50%; border-left: 2px solid #c0c4cc; }
.sa-org-tree li:only-child::before, .sa-org-tree li:only-child::after { display: none; }
.sa-org-tree li:only-child { padding-top: 0; }
.sa-org-tree li:first-child::before, .sa-org-tree li:last-child::after { border: 0 none; }
.sa-org-tree li:last-child::before { border-right: 2px solid #c0c4cc; border-radius: 0 5px 0 0; }
.sa-org-tree li:first-child::after { border-radius: 5px 0 0 0; }
/* 父级到子级的竖线（仅嵌套 ul，位于 ul 的 padding-top 区域） */
.sa-org-tree ul ul::before {
    content: ''; position: absolute; top: 0; left: 50%;
    border-left: 2px solid #c0c4cc; width: 0; height: 20px;
}

/* 五级成员：竖向排列（覆盖继承的横向连接线） */
.sa-org-tree ul.org-members {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 0 0 0;
}
.sa-org-tree ul.org-members > li { padding: 0; }
.sa-org-tree ul.org-members > li + li { margin-top: 16px; }
/* 清除继承的横向连接线伪元素 */
.sa-org-tree ul.org-members > li::before,
.sa-org-tree ul.org-members > li::after,
.sa-org-tree ul.org-members > li:first-child::before,
.sa-org-tree ul.org-members > li:first-child::after,
.sa-org-tree ul.org-members > li:last-child::before,
.sa-org-tree ul.org-members > li:last-child::after {
    content: ''; position: absolute; top: 0; left: 50%;
    border: 0 none; border-radius: 0; width: 0; height: 0;
}
/* 成员间竖向连接线 */
.sa-org-tree ul.org-members > li + li::before {
    border-left: 2px solid #c0c4cc; width: 0; height: 16px; top: -16px;
}
/* 最后一个成员（若有前序兄弟）与前一成员的竖向连线（覆盖 :last-child 清零规则） */
.sa-org-tree ul.org-members > li + li:last-child::before {
    top: -16px; border: 0 none; border-left: 2px solid #c0c4cc; width: 0; height: 16px;
}

/* 节点通用 */
.org-node {
    background: #fff; border: 1.5px solid #d0d7e0; border-radius: 8px;
    padding: 8px 12px; min-width: 92px; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.2s;
    display: inline-flex; flex-direction: column; gap: 2px;
}
.org-node:hover { box-shadow: 0 4px 12px rgba(64,158,255,0.18); transform: translateY(-1px); }
.org-title { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.3; white-space: nowrap; }
.org-leader { font-size: 13px; font-weight: 600; color: #2f7ad6; line-height: 1.3; white-space: nowrap; }
.org-meta { font-size: 11px; color: #888; line-height: 1.3; white-space: nowrap; }
.org-prod { font-size: 11.5px; color: #7a5a00; line-height: 1.55; white-space: nowrap; }
.org-name { font-size: 12.5px; font-weight: 600; color: #1a1a1a; line-height: 1.3; white-space: nowrap; }
.org-loc { font-size: 11px; color: #888; line-height: 1.3; white-space: nowrap; }

/* 一级：标准模块（蓝渐变主色） */
.org-l1 { background: linear-gradient(135deg,#409eff,#2f7ad6); border-color: #2f7ad6; min-width: 120px; }
.org-l1 .org-title, .org-l1 .org-leader, .org-l1 .org-meta { color: #fff; }
/* 二级：组（浅蓝） */
.org-l2 { background: #ecf5ff; border-color: #409eff; min-width: 110px; }
.org-l2 .org-title { color: #1a1a1a; }
.org-l2 .org-leader { color: #2f7ad6; }
/* 三级：小组长（浅绿） */
.org-l3 { background: #f0f9eb; border-color: #67c23a; min-width: 100px; }
.org-l3 .org-title { white-space: nowrap; }
.org-l3 .org-leader { color: #529b2e; white-space: nowrap; }
/* 四级：产品线（浅黄） */
.org-l4 { background: #fffbe6; border-color: #e6a23c; min-width: 96px; }
.org-l4 .org-title { color: #b88200; }
/* 五级：成员（白） */
.org-l5 { background: #fff; border-color: #c0c4cc; min-width: 74px; padding: 6px 10px; }

/* ===== 表格通用 ===== */
.sa-table-wrap { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; overflow: auto; flex: 1 1 0; min-height: 0; }
.sa-table-wrap.scroll-y { max-height: none; }
.sa-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.sa-table th, .sa-table td { padding: 7px 10px; border: 1px solid #ececec; color: #333; vertical-align: middle; }
/* === 表头边框方案：用 box-shadow 替代 border ===
   原因：border-collapse + sticky 下，相邻 th 的共享 border 不会随 sticky 提升而跟随，
        导致垂直滚动时表头格子固定但 border 丢失，下方数据透过缝隙显示；
        且原 border-bottom:2px 与其他边 1px 不一致，引起粗细不均与高度跳动。
   方案：移除 border，改用 box-shadow inset 模拟 1px 边框（一定跟随 sticky 移动）；
        外侧四边颜色 #2A5794（与底纹同色，thead 视觉上是一块完整深蓝色块）；
        内部框线颜色 #fff（在深蓝上清晰可见）；粗细统一 1px。
        多行表头整体仍是一块 #2A5794 色块，行间横向分隔线为白色。 */
.sa-table thead th {
    --bd-top: #fff;
    --bd-right: #fff;
    --bd-bottom: #fff;
    --bd-left: #fff;
    background: #2A5794;
    font-weight: 600;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    /* 移除 border：彻底绕开 collapse 下 sticky border 不跟随的 bug */
    border: none !important;
    /* 用 box-shadow inset 模拟 1px 边框，跟随 sticky 一起移动 */
    box-shadow:
        inset 0 1px 0 var(--bd-top),
        inset -1px 0 0 var(--bd-right),
        inset 0 -1px 0 var(--bd-bottom),
        inset 1px 0 0 var(--bd-left);
}
/* thead 整体外侧四边 = #2A5794（与底纹同色） */
.sa-table thead tr:first-child th { --bd-top: #2A5794; }
.sa-table thead tr:last-child th  { --bd-bottom: #2A5794; }
.sa-table thead th:first-child    { --bd-left: #2A5794; }
.sa-table thead th:last-child     { --bd-right: #2A5794; }
/* 表头顶端两侧圆角：与 .sa-table-wrap 的 6px 圆角一致
   （box-shadow inset 会跟随 border-radius 自动裁切，边框也呈圆角；
   即使父容器 overflow:visible 失去裁切，表头两侧仍是圆角） */
.sa-table thead tr:first-child th:first-child { border-top-left-radius: 6px; }
.sa-table thead tr:first-child th:last-child  { border-top-right-radius: 6px; }
.sa-table tbody tr:nth-child(even) { background: #fafbfc; }
.sa-table tbody tr:hover { background: #ecf5ff; }
.sa-table td.cell-empty { text-align: center; }
/* 标题行（跨列合并的大标题） */
.sa-table td.cell-title { background: #409eff; color: #fff; font-weight: 700; text-align: center; font-size: 14px; padding: 10px; }
.sa-table td.cell-section { background: #eef4ff; font-weight: 700; color: #1a1a1a; text-align: center; }
/* TMG成员名单：平台、特性、制程 行加大字号 */
#panel-tmgsheet-0 .sa-table thead th[colspan="14"],
#panel-tmgsheet-0 .sa-table tbody td[colspan="14"] {
    font-size: 16px !important;
    font-weight: 700 !important;
}
.sa-table td.cell-rowlabel { background: #f8f9fa; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.sa-table td.cell-note { background: #fffbe6; color: #614700; font-size: 11.5px; line-height: 1.7; }
/* 单元格内换行保留 */
.sa-table td.multiline, .sa-table th.multiline { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
/* 单元格内容不换行 */
.sa-table td.cell-nowrap { white-space: nowrap; }
/* 表头单元格内换行（覆盖 thead th 的 nowrap） */
.sa-table thead th.multiline { white-space: pre-wrap; }

/* 成员信息表（分工表）特殊单元格 */
.sa-table td.cell-group { background: #fafafa; font-weight: 600; color: #1a1a1a; text-align: center; white-space: nowrap; }
.sa-table td.cell-leader { color: #1e6fdb; font-weight: 500; text-align: center; }

/* 标准组分工一览表：允许水平滚动（内容超出时显示横向滑动条） */
#panel-stdsheet-0 .sa-table { table-layout: auto; width: max-content; min-width: 100%; }

/* === autoLayout 模式：统一目标表（PCB清单/文件维护分工/日常分工明细表/日常分工总表/TMG成员名单/在职人员联系表/离职人员表/客户明细/月度系数统计表/扣分项/个人台账） ===
   要求：
   1. 字段和数据内容默认不允许换行
   2. 启用水平滑动条（table-layout:auto + width:max-content，列宽由内容最长者决定，不使用百分比）
   3. 表头与数据内容长度长者作为列宽（浏览器自动计算）
   4. 数据内容含"1、 2、 3、 4、……"递增序号时按序号换行（.seq-cell），该列左对齐；其他列水平居中
*/
#panel-stdsheet-2 .sa-table,
#panel-stdsheet-3 .sa-table,
#panel-stdsheet-4 .sa-table,
#panel-stdsheet-5 .sa-table,
#panel-tmgsheet-0 .sa-table,
#panel-tmgsheet-1 .sa-table,
#panel-lx-active .sa-table,
#panel-lx-resigned .sa-table,
#panel-mktsheet-0 .sa-table,
#panel-other-coef .sa-coef-table,
#panel-other-deduction .sa-table,
#panel-other-ledger .sa-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
}
/* 默认所有字段表头与数据单元格：不换行 + 水平居中 */
#panel-stdsheet-2 .sa-table th, #panel-stdsheet-2 .sa-table td,
#panel-stdsheet-3 .sa-table th, #panel-stdsheet-3 .sa-table td,
#panel-stdsheet-4 .sa-table th, #panel-stdsheet-4 .sa-table td,
#panel-stdsheet-5 .sa-table th, #panel-stdsheet-5 .sa-table td,
#panel-tmgsheet-0 .sa-table th, #panel-tmgsheet-0 .sa-table td,
#panel-tmgsheet-1 .sa-table th, #panel-tmgsheet-1 .sa-table td,
#panel-lx-active .sa-table th, #panel-lx-active .sa-table td,
#panel-lx-resigned .sa-table th, #panel-lx-resigned .sa-table td,
#panel-mktsheet-0 .sa-table th, #panel-mktsheet-0 .sa-table td,
#panel-other-deduction .sa-table th, #panel-other-deduction .sa-table td,
#panel-other-ledger .sa-table th, #panel-other-ledger .sa-table td {
    white-space: nowrap !important;
    text-align: center !important;
}
/* 按序号换行的数据单元格：与默认规则一致（不换行 + 水平左对齐），保持与行业标准清单完全统一的样式 */
#panel-stdsheet-2 .sa-table td.seq-cell,
#panel-stdsheet-3 .sa-table td.seq-cell,
#panel-stdsheet-4 .sa-table td.seq-cell,
#panel-stdsheet-5 .sa-table td.seq-cell,
#panel-tmgsheet-0 .sa-table td.seq-cell,
#panel-tmgsheet-1 .sa-table td.seq-cell,
#panel-lx-active .sa-table td.seq-cell,
#panel-lx-resigned .sa-table td.seq-cell,
#panel-mktsheet-0 .sa-table td.seq-cell,
#panel-other-deduction .sa-table td.seq-cell,
#panel-other-ledger .sa-table td.seq-cell {
    white-space: nowrap !important;
    text-align: left !important;
}
/* 含序号的列：整列左对齐（非序号单元格追加 col-left，仅改对齐不强制换行） */
#panel-stdsheet-2 .sa-table td.col-left,
#panel-stdsheet-3 .sa-table td.col-left,
#panel-stdsheet-4 .sa-table td.col-left,
#panel-stdsheet-5 .sa-table td.col-left,
#panel-tmgsheet-0 .sa-table td.col-left,
#panel-tmgsheet-1 .sa-table td.col-left,
#panel-lx-active .sa-table td.col-left,
#panel-lx-resigned .sa-table td.col-left,
#panel-mktsheet-0 .sa-table td.col-left,
#panel-other-deduction .sa-table td.col-left,
#panel-other-ledger .sa-table td.col-left {
    text-align: left !important;
}
/* 个人工作登记台账：备注列支持多行显示（*号换行） */
#panel-other-ledger .sa-table td.multiline {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
}
/* 其他扣分项登记表：扣分原因/备注列支持多行显示（\n 换行） */
#panel-other-deduction .sa-table td.multiline {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
}
/* 评审专家 / 部门负责人 / 检验工序负责人（外挂 xlsx）：
   表头与数据均不自动换行、水平居中对齐。
   含换行符的单元格（如"特种：孙鑫\n民品：杨星明"）按 nowrap 渲染为单行。 */
#panel-extrasheet-0 .sa-table,
#panel-extrasheet-1 .sa-table,
#panel-extrasheet-2 .sa-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
}
#panel-extrasheet-0 .sa-table th, #panel-extrasheet-0 .sa-table td,
#panel-extrasheet-1 .sa-table th, #panel-extrasheet-1 .sa-table td,
#panel-extrasheet-2 .sa-table th, #panel-extrasheet-2 .sa-table td {
    white-space: nowrap !important;
    text-align: center !important;
}
/* 含换行符被识别为 seq-cell 的单元格：保持居中（覆盖默认左对齐） */
#panel-extrasheet-0 .sa-table td.seq-cell,
#panel-extrasheet-1 .sa-table td.seq-cell,
#panel-extrasheet-2 .sa-table td.seq-cell {
    white-space: nowrap !important;
    text-align: center !important;
}
/* 评审专家表：最后两行（材料说明、AOO流程说明）合并整行，水平左对齐并允许换行 */
#panel-extrasheet-0 .sa-table tbody tr:last-child td,
#panel-extrasheet-0 .sa-table tbody tr:nth-last-child(2) td {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* 部门负责人表（extrasheet-1）：
   1. 列宽等宽（table-layout: fixed + width:100%）
   2. 表头不允许自动换行（nowrap + JS 将 \n 转 <br> 保留显式换行，如"厂别<br>岗位"）
   3. 数据单元格允许按 \n 换行（pre-line），使 "特种：孙鑫\n民品：杨星明"
      与 "沙雷（总监）\n胡建红（副总监）" 等单元格按 \n 自动换行
   4. 自质量部总监行起（tbody 第9行及之后，含合并整行的总监/总经理行）水平左对齐 */
#panel-extrasheet-1 .sa-table {
    table-layout: fixed;
    width: 100%;
}
#panel-extrasheet-1 .sa-table th {
    white-space: nowrap !important;
}
#panel-extrasheet-1 .sa-table td,
#panel-extrasheet-1 .sa-table td.seq-cell {
    white-space: pre-line !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
#panel-extrasheet-1 .sa-table tbody tr:nth-child(n+9) td {
    text-align: left !important;
}
/* ===== 其他（登记表类）qitaLayout 模式 =====
   1. 表头不允许自动换行（nowrap）
   2. 列宽取此列数据内容最多者（table-layout:auto + width:max-content）
   3. 短文本字段(cell-nowrap)水平居中；长文本字段(cell-longtext)水平左对齐并允许换行 */
.sa-qita-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
}
.sa-qita-table thead th {
    white-space: nowrap !important;
}
.sa-qita-table td.cell-nowrap {
    white-space: nowrap !important;
    text-align: center !important;
}
.sa-qita-table td.cell-empty {
    text-align: center !important;
}
.sa-qita-table td.cell-longtext {
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left !important;
    vertical-align: top;
}
/* 行业标准导入清单（PCB强相关行业标准导入清单）：标准名称列（第3列）数据内容水平左对齐 */
#panel-stdsheet-3 .sa-table tbody td:nth-child(3) {
    text-align: left !important;
}
/* 日常分工明细表：项目名称(第3列)、负责人(第4列)、backup(第5列)、主要职责(第6列)、输出物(第7列)、评价指标(第8列)、承接人职责(第10列)、负责人输出目标和计划(第12列) 左对齐 */
#panel-stdsheet-4 .sa-table tbody td:nth-child(3),
#panel-stdsheet-4 .sa-table tbody td:nth-child(4),
#panel-stdsheet-4 .sa-table tbody td:nth-child(5),
#panel-stdsheet-4 .sa-table tbody td:nth-child(6),
#panel-stdsheet-4 .sa-table tbody td:nth-child(7),
#panel-stdsheet-4 .sa-table tbody td:nth-child(8),
#panel-stdsheet-4 .sa-table tbody td:nth-child(10),
#panel-stdsheet-4 .sa-table tbody td:nth-child(12) {
    text-align: left !important;
}
/* 日常分工明细表：序号列（第1列）数据内容水平垂直居中 */
#panel-stdsheet-4 .sa-table tbody td:nth-child(1) {
    text-align: center !important;
    vertical-align: middle !important;
}
/* 日常分工总表：主要工作列（第4、7列）数据内容水平左对齐 */
#panel-stdsheet-5 .sa-table tbody td:nth-child(4),
#panel-stdsheet-5 .sa-table tbody td:nth-child(7) {
    text-align: left !important;
}
/* 日常分工总表：主要工作列分两列显示（1、2、3 在第一列，4、5、6 在第二列） */
#panel-stdsheet-5 .sa-table td.seq-split-cell { text-align: left !important; }
.sa-seq-two-col { display: flex; gap: 16px; align-items: flex-start; }
.sa-seq-two-col .sa-seq-col { flex: 0 1 auto; min-width: 0; }
/* 日常分工总表：末行备注（合并整行的单元格）水平左对齐并允许换行 */
#panel-stdsheet-5 .sa-table tbody tr:last-child td {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 成员分工总览：姓名、个人联系方式、属地 数据居中 */
#panel-lx-overview .sa-table td.cell-name,
#panel-lx-overview .sa-table td.cell-contact,
#panel-lx-overview .sa-table td.cell-location { text-align: center; }

/* 成员分工总览 / 人员汇总表：去掉表格内部垂直滚动条，让整页一屏展示完整。
   表格自然撑开面板，由 .sa-content 的外层垂直滚动条容纳超出的部分。 */
#panel-lx-overview, #panel-lx-summary { flex: 0 0 auto; }
#panel-lx-overview .sa-table-wrap,
#panel-lx-summary .sa-table-wrap {
    overflow: visible;
    flex: 0 0 auto;
    min-height: auto;
}
/* 成员分工总览：表头不需要固定（取消 sticky） */
#panel-lx-overview .sa-table thead th { position: static; }

/* 在职人员联系表：后四列（工作地家庭住址、工作地主要联系人、老家家庭住址、老家主要联系人）水平左对齐 */
#panel-lx-active .sa-table tbody td[data-col="15"],
#panel-lx-active .sa-table tbody td[data-col="16"],
#panel-lx-active .sa-table tbody td[data-col="17"],
#panel-lx-active .sa-table tbody td[data-col="18"] {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 离职人员表：后五列（工作地家庭住址、工作地主要联系人、老家家庭住址、老家主要联系人、离职时间）水平左对齐 */
#panel-lx-resigned .sa-table tbody td[data-col="15"],
#panel-lx-resigned .sa-table tbody td[data-col="16"],
#panel-lx-resigned .sa-table tbody td[data-col="17"],
#panel-lx-resigned .sa-table tbody td[data-col="18"],
#panel-lx-resigned .sa-table tbody td[data-col="19"] {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 其他扣分项登记表：扣分原因(第4列)水平左对齐 */
#panel-other-deduction .sa-table tbody td:nth-child(4) { text-align: left !important; }

/* 个人工作登记台账：具体工作内容(第7列，按显示顺序)水平左对齐 */
#panel-other-ledger .sa-table tbody td:nth-child(7) { text-align: left !important; }

/* ===== 模块项目清单表 - 主视图（项目管理及填写考核要求 + 共性点问题清单 合并页） ===== */
/* 合并视图容器：整体可滚动，让两表自然展开，表头各自 sticky 到容器顶部 */
#panel-mk-qingdan .sa-mk-combined {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-right: 4px;
}
#panel-mk-qingdan .sa-mk-combined .sa-mk-section { flex: 0 0 auto; }
/* 合并视图内的表格自然展开（不内部滚动），由外层 .sa-mk-combined 统一滚动 */
#panel-mk-qingdan .sa-mk-combined .sa-table-wrap {
    flex: 0 0 auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}
/* 共性点问题清单 - 常遇见的共性点问题列（第2列）数据内容水平左对齐 */
#panel-mk-qingdan .sa-mk-section-gongxing .sa-table tbody td:nth-child(2) {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* 项目管理及填写考核要求 - 相关要求列（第2列）数据内容水平左对齐 */
#panel-mk-qingdan .sa-mk-section-xiangmu .sa-table tbody td:nth-child(2) {
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* 项目管理及填写考核要求表：表头不固定，垂直滚动时随页面整体滚动 */
#panel-mk-qingdan .sa-mk-section-xiangmu .sa-table thead th {
    position: static !important;
    z-index: auto !important;
}
/* 项目得分统计表 - 说明行（表头第一行）水平左对齐 */
#panel-mk-defen .sa-table thead tr:first-child th {
    text-align: left !important;
    white-space: pre-wrap !important;
}

/* ===== 工具条（搜索/分页） ===== */
.sa-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
/* 面板内 sheet 标签切换组 */
.sa-qita-tabs { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sa-qita-tabs .sa-btn { padding: 4px 12px; font-size: 13px; }
/* 可点击切换标题（主表 ↔ 副表，通过名称切换） */
.sa-panel-title.sa-title-toggle {
    cursor: pointer; user-select: none; transition: color 0.15s;
    border-radius: 4px; padding: 2px 4px; margin-left: -4px;
}
.sa-panel-title.sa-title-toggle:hover { color: #409eff; }
.sa-panel-title.sa-title-toggle > i { color: #409eff; font-size: 18px; }
/* 空行占位（删除全空行后保留等高空位） */
.sa-row-spacer { height: 33px; }
/* 工具条内嵌面板标题：与筛选条件栏同一行 */
.sa-toolbar > .sa-panel-title {
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.sa-search { position: relative; }
.sa-search input { padding: 6px 10px 6px 30px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 12px; width: 240px; outline: none; transition: border-color 0.2s; }
.sa-search input:focus { border-color: #409eff; }
.sa-search .sa-search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 13px; }
.sa-select { padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 12px; background: #fff; outline: none; cursor: pointer; }
.sa-select:focus { border-color: #409eff; }
.sa-toolbar-info { font-size: 12px; color: #888; }
.sa-toolbar .spacer { flex: 1; }

/* 分页 */
.sa-pagination { display: flex; align-items: center; gap: 4px; margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }
.sa-page-btn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; font-size: 12px; color: #555; transition: all 0.15s; }
.sa-page-btn:hover:not(:disabled) { border-color: #409eff; color: #409eff; }
.sa-page-btn.active { background: #409eff; border-color: #409eff; color: #fff; }
.sa-page-btn:disabled { color: #ccc; cursor: not-allowed; background: #f5f5f5; }
.sa-page-jump { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #666; }
.sa-page-jump input { width: 50px; padding: 5px 6px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 12px; text-align: center; outline: none; }
.sa-page-jump input:focus { border-color: #409eff; }

/* 空状态 */
.sa-empty { padding: 60px 20px; text-align: center; color: #999; }
.sa-empty i { font-size: 40px; color: #ddd; display: block; margin-bottom: 10px; }

/* ===== QITA 增删改：模态框 + 操作列 + 可编辑单元格 ===== */
.sa-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.sa-modal-dialog {
    background: #fff; border-radius: 8px; width: 560px; max-width: 90vw;
    max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.sa-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.sa-modal-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.sa-modal-close { border: none; background: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }
.sa-modal-close:hover { color: #333; }
.sa-modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.sa-modal-field { margin-bottom: 12px; }
.sa-modal-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.sa-modal-input {
    width: 100%; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px;
    font-size: 13px; font-family: inherit; resize: vertical; outline: none; transition: border-color 0.2s;
}
.sa-modal-input:focus { border-color: #409eff; }
.sa-modal-file { font-size: 12px; }
.sa-modal-file-cur { display: block; font-size: 11px; color: #888; margin-top: 2px; }
.sa-modal-footer { padding: 12px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
/* 操作列 */
.sa-crud-th { white-space: nowrap !important; text-align: center; width: 90px; }
.sa-crud-td { white-space: nowrap !important; text-align: center; }
.sa-crud-btn { padding: 3px 7px; font-size: 14px; margin: 0 1px; }
.sa-crud-del:hover { border-color: #ff4d4f; color: #ff4d4f; }
/* 可编辑单元格 */
.sa-content-editable { outline: none; transition: background 0.15s; cursor: text; }
.sa-content-editable:focus { background: #fffbe6; box-shadow: inset 0 0 0 2px #faad14; }

/* ===== 会议室预定登记表：列对齐 + 三地录入 + 多选 + 规则/配置弹窗 ===== */
/* 记录表列对齐：评审会议内容(6)、适用的会议室(8) 左对齐；使用人(9) 居中 */
#panel-qita-huiyishi .sa-table tbody td:nth-child(6),
#panel-qita-huiyishi .sa-table tbody td:nth-child(8) {
    text-align: left !important;
}
#panel-qita-huiyishi .sa-table tbody td:nth-child(9) {
    text-align: center !important;
}
/* 工具条按钮：会议室预定规则&人员 / 常用会议室配置 */
.sa-huiyishi-rules, .sa-huiyishi-rooms { font-size: 12px; }
/* 三地（深圳/无锡/南通）录入行 */
.sa-hys-region-rows { display: flex; flex-direction: column; gap: 6px; }
.sa-hys-region-row { display: flex; align-items: center; gap: 8px; }
.sa-hys-region-tag {
    flex: 0 0 44px; font-size: 13px; font-weight: 600; color: #409eff;
    text-align: right;
}
.sa-hys-region-row .sa-modal-input { flex: 1; min-width: 0; }
/* 使用人 多选下拉 */
.sa-hys-multiselect { position: relative; }
.sa-hys-ms-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 7px 10px; border: 1px solid #d9d9d9; border-radius: 4px;
    font-size: 13px; cursor: pointer; box-sizing: border-box; min-height: 32px;
    background: #fff; transition: border-color 0.2s;
}
.sa-hys-ms-trigger:hover { border-color: #409eff; }
.sa-hys-ms-trigger .sa-hys-ms-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-hys-ms-trigger i { color: #999; }
.sa-hys-ms-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 10;
    background: #fff; border: 1px solid #d9d9d9; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); max-height: 200px; overflow-y: auto;
    padding: 4px 0;
}
.sa-hys-ms-opt {
    display: flex; align-items: center; gap: 6px; padding: 5px 12px; cursor: pointer;
    font-size: 13px;
}
.sa-hys-ms-opt:hover { background: #f0f7ff; }
/* 复位通用弹窗 input 样式（.sa-modal-field input 会把 width:100%/边框/内边距套到勾选框上，导致与文字错位） */
.sa-hys-ms-opt input[type="checkbox"] {
    width: auto; height: auto; margin: 0; padding: 0;
    border: 0 none; border-radius: 0; box-shadow: none;
    flex: 0 0 auto; align-self: center;
    appearance: auto; -webkit-appearance: checkbox;
    accent-color: #409eff; cursor: pointer;
}
/* 自定义弹窗尺寸 */
.sa-hys-record-dialog { width: 620px; }
.sa-hys-rooms-dialog { width: 600px; }
.sa-hys-rules-dialog { width: 720px; }
/* 常用会议室配置 */
.sa-hys-rooms-region { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.sa-hys-rooms-region:last-child { border-bottom: none; margin-bottom: 0; }
.sa-hys-rooms-reg-title { font-size: 13px; font-weight: 700; color: #409eff; margin-bottom: 8px; }
.sa-hys-rooms-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sa-hys-rooms-item { display: flex; align-items: center; gap: 6px; }
.sa-hys-rooms-item .sa-hys-rooms-input { flex: 1; min-width: 0; }
.sa-hys-rooms-del { color: #ff4d4f; border-color: #ffa39e; padding: 5px 8px; }
.sa-hys-rooms-del:hover { background: #fff1f0; border-color: #ff4d4f; }
/* 规则&人员 提示 */
.sa-hys-rules-tip { font-size: 12px; color: #888; margin-bottom: 10px; padding: 6px 10px; background: #f5f7fa; border-radius: 4px; }
.sa-hys-rules-body .sa-table { font-size: 13px; }
/* 规则表：标题行 / 规则行 / 表头行 样式 + 列宽 */
.sa-hys-rules-table { table-layout: fixed; }
.sa-hys-rules-table col:nth-child(1) { width: 22%; }
.sa-hys-rules-table col:nth-child(2) { width: 18%; }
.sa-hys-rules-table col:nth-child(3) { width: 60%; }
.sa-hys-rules-table .sa-hys-row-title td {
    text-align: center; font-size: 16px; font-weight: 700; color: #fff;
    background: #2A5794; padding: 10px 12px;
}
.sa-hys-rules-table .sa-hys-row-rules td {
    text-align: left; white-space: pre-wrap; word-break: break-word;
    background: #f0f7ff; color: #333; line-height: 1.7; padding: 10px 14px;
}
.sa-hys-rules-table .sa-hys-row-head td {
    text-align: center; font-weight: 700; background: #f5f7fa; color: #303133;
}
.sa-hys-rules-table tbody td { text-align: center; }
.sa-hys-rules-table tbody td.sa-content-editable:focus { background: #fffbe6; }

/* 高亮搜索命中 */
.sa-hit { background: #fff3cd; color: #b8860b; }
.sa-table tbody tr:hover .sa-hit { background: #ffe69c; }

/* 双列成员表 */
.sa-tables-row { display: flex; gap: 16px; flex-wrap: wrap; }
.sa-tables-row .sa-table-block { flex: 1; min-width: 320px; display: flex; flex-direction: column; }
/* 左侧下方的系统组成员信息表自动拉伸，使底部外边框与右侧产检组对齐。
   用 height:100% 让浏览器把多余空间均匀分配到每一行（而不是只撑高最后一行），
   从而所有行高度相等。 */
.sa-tables-row .sa-table-wrap.fill-height { flex: 1; display: flex; flex-direction: column; }
.sa-tables-row .sa-table-wrap.fill-height .sa-table { height: 100%; }

/* 标准荣誉 - 卡片网格 */
.sa-honors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sa-honor-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px; transition: all 0.2s; position: relative; overflow: hidden; }
.sa-honor-card:hover { box-shadow: 0 4px 14px rgba(64,158,255,0.15); border-color: #409eff; transform: translateY(-2px); }
.sa-honor-card .sa-honor-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#ffd66e,#ffa940); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 10px; }
.sa-honor-card h4 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.sa-honor-card .sa-honor-meta { font-size: 12px; color: #888; margin-bottom: 6px; }
.sa-honor-card .sa-honor-desc { font-size: 12px; color: #666; line-height: 1.6; }
.sa-honor-placeholder { grid-column: 1 / -1; padding: 50px 20px; text-align: center; background: #fff; border: 1px dashed #d9d9d9; border-radius: 8px; color: #999; }

/* ===== 标准荣誉 - 轮播图 ===== */
/* 外层：在 sa-card(白卡) 内部填充，和 #panel-org .sa-card 的白色背景高度保持一致（flex 撑满） */
.sa-honors-carousel {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}
.sa-carousel-viewport {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 6px;
}
.sa-carousel-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sa-carousel-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
/* 轮播图背景：使用当前图片放大并模糊作为底图，避免空白空荡感 */
.sa-carousel-item-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.55);
    transform: scale(1.18);
    z-index: 0;
}
.sa-carousel-item img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* 底部黑色透明标题栏 */
.sa-carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 12px 48px;
    font-size: 14px;
    text-align: center;
    z-index: 3;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.sa-carousel-caption-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 左右箭头按钮 */
.sa-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background 0.2s, transform 0.2s;
}
.sa-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.08);
}
.sa-carousel-prev { left: 12px; }
.sa-carousel-next { right: 12px; }

/* 指示点 */
.sa-carousel-dots {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.sa-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.sa-carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }
.sa-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ===== 深南电路参与行业、国家及地方标准制定一览表（轮播图下方） ===== */
.sa-shennan-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* 滚动容器：标题+表头垂直滚动时固定在上方，隐藏滚动条 */
.sa-shennan-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.sa-shennan-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
/* 标题：大气水平垂直居中对齐，垂直滚动时固定在容器顶部 */
.sa-shennan-title-wrap {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    background:#2A5794;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid white;
}
.sa-shennan-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* 表格容器：重置通用 .sa-table-wrap 的边框/圆角/溢出，
   使表格左右边缘与标题蓝色块完全对齐 */
.sa-shennan-table-wrap {
    border: none;
    border-radius: 0;
    overflow: visible;
}
.sa-shennan-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.sa-shennan-table th, .sa-shennan-table td {
    padding: 7px 10px;
    border: 1px solid #ececec;
    color: #333;
    vertical-align: middle;
}
/* 表头：垂直滚动时固定在标题下方（top 由 JS 动态设置为标题高度）
   边框同样用 box-shadow inset 方案，避免 border-collapse + sticky 下 border 不跟随的 bug
   注意：移除 will-change: top，避免合成层亚像素抖动导致滚动时表头微移 */
.sa-shennan-table thead th {
    --bd-top: #fff;
    --bd-right: #fff;
    --bd-bottom: #fff;
    --bd-left: #fff;
    background: #2A5794;
    font-weight: 600;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    text-align: center;
    border: none !important;
    box-shadow:
        inset 0 1px 0 var(--bd-top),
        inset -1px 0 0 var(--bd-right),
        inset 0 -1px 0 var(--bd-bottom),
        inset 1px 0 0 var(--bd-left);
}
/* thead 整体外侧四边 = #2A5794（与底纹同色） */
.sa-shennan-table thead tr:first-child th { --bd-top: #2A5794; }
.sa-shennan-table thead tr:last-child th  { --bd-bottom: #2A5794; }
.sa-shennan-table thead th:first-child    { --bd-left: #2A5794; }
.sa-shennan-table thead th:last-child     { --bd-right: #2A5794; }
/* 行标制定一览表表头左右两侧不使用圆角（覆盖通用 .sa-table 的圆角样式） */
.sa-shennan-table thead tr:first-child th:first-child { border-top-left-radius: 0; }
.sa-shennan-table thead tr:first-child th:last-child  { border-top-right-radius: 0; }
.sa-shennan-table tbody tr:nth-child(even) { background: #fafbfc; }
.sa-shennan-table tbody tr:hover { background: #ecf5ff; }
/* 序号、标准编号、标准类型、参与公司、参与方式、状态 列居中 */
.sa-shennan-table td:nth-child(1),
.sa-shennan-table td:nth-child(2),
.sa-shennan-table td:nth-child(4),
.sa-shennan-table td:nth-child(6),
.sa-shennan-table td:nth-child(7),
.sa-shennan-table td:nth-child(8) { text-align: center; }
/* 参与方式、状态 列居中且不换行（防止数据自动换行） */
.sa-shennan-table td:nth-child(7),
.sa-shennan-table td:nth-child(8) { white-space: nowrap; }
/* 标准名称、参与人员 列左对齐并允许换行 */
.sa-shennan-table td:nth-child(3),
.sa-shennan-table td:nth-child(5) {
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 统计概览 */
.sa-stats { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sa-stat-card { flex: 1; min-width: 140px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 14px 16px; }
.sa-stat-card .sa-stat-label { font-size: 12px; color: #888; margin-bottom: 6px; }
.sa-stat-card .sa-stat-value { font-size: 22px; font-weight: 700; color: #409eff; }
.sa-stat-card .sa-stat-unit { font-size: 12px; color: #999; font-weight: 400; margin-left: 4px; }

/* 滚动条美化：隐藏垂直滚动条，保留水平滚动条 */
::-webkit-scrollbar { width: 0; height: 9px; }
::-webkit-scrollbar:vertical { width: 0; background: transparent; }
::-webkit-scrollbar:horizontal { height: 9px; }
::-webkit-scrollbar-thumb { background: #c8c8c8; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
::-webkit-scrollbar-track { background: transparent; }
/* Firefox：隐藏纯垂直滚动容器的滚动条 */
html, .sa-sidebar, .sa-modal-body, .sa-ym-list { scrollbar-width: none; }

/* 响应式 */
@media (max-width: 900px) {
    .sa-sidebar { width: 170px; }
    .sa-content { padding: 12px; }
    .sa-search input { width: 160px; }
}

/* ======================== 其他（工作系数）模块 ======================== */
/* 年份切换器（旧版按钮式，保留兼容） */
.sa-year-switcher { display: flex; align-items: center; gap: 8px; background: #f5f7fa; border: 1px solid #e8e8e8; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.sa-year-switcher > i { color: #409eff; font-size: 16px; }
.sa-year-switcher > span { font-size: 13px; color: #555; font-weight: 600; }
.sa-year-btns { display: flex; gap: 4px; }
.sa-year-btn { min-width: 44px; height: 28px; padding: 0 10px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; font-size: 12px; color: #555; transition: all 0.15s; }
.sa-year-btn:hover { border-color: #409eff; color: #409eff; }
.sa-year-btn.active { background: #409eff; border-color: #409eff; color: #fff; }

/* 年份月份选择器（Popover 弹窗式） */
.sa-ym-picker { position: relative; display: inline-block; }
.sa-ym-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: 1px solid #d9d9d9; border-radius: 6px;
    background: #fff; cursor: pointer; font-size: 14px; color: #333;
    transition: all 0.2s; font-weight: 600;
}
.sa-ym-trigger:hover { border-color: #409eff; color: #409eff; }
.sa-ym-trigger.active { border-color: #409eff; color: #409eff; background: #f0f7ff; }
.sa-ym-trigger > i { font-size: 16px; }
.sa-ym-trigger .sa-ym-text { min-width: 70px; text-align: center; }
.sa-ym-trigger .sa-ym-arrow { font-size: 14px; transition: transform 0.2s; }
.sa-ym-trigger.active .sa-ym-arrow { transform: rotate(180deg); }

.sa-ym-popover {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: none; padding: 14px;
}
.sa-ym-popover.show { display: flex; gap: 16px; }
.sa-ym-col { display: flex; flex-direction: column; }
.sa-ym-col-title {
    font-size: 12px; color: #888; font-weight: 700; text-align: center;
    margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid #409eff;
}
.sa-ym-list {
    max-height: 220px; overflow-y: auto; width: 88px;
    display: flex; flex-direction: column; gap: 3px;
}
.sa-ym-list::-webkit-scrollbar { width: 0; }
.sa-ym-list::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.sa-ym-item {
    padding: 7px 10px; border-radius: 4px; cursor: pointer;
    font-size: 13px; color: #555; text-align: center;
    transition: all 0.15s; user-select: none;
}
.sa-ym-item:hover { background: #f0f7ff; color: #409eff; }
.sa-ym-item.active { background: #409eff; color: #fff; font-weight: 700; }

/* 横向滚动包裹 */
.sa-table-wrap.scroll-x { overflow: auto; }

/* 可编辑单元格 */
.sa-table td.sa-cell-edit, .sa-table th.sa-cell-edit { cursor: text; transition: background 0.15s; }
.sa-table td.sa-cell-edit:hover, .sa-table th.sa-cell-edit:hover { background: #fff7e6 !important; }
.sa-table td.sa-cell-edit.editing, .sa-table th.sa-cell-edit.editing { background: #fffbe6 !important; outline: 2px solid #faad14; outline-offset: -2px; cursor: text; }
.sa-table td.cell-num { text-align: right; font-family: 'Consolas', 'Monaco', monospace; font-size: 12px; }
.sa-table td.cell-readonly { background: #f5f7fa; color: #666; font-weight: 600; }

/* ===== 模块重点工作 - 2026年标准模块项目清单表 ===== */
/*
   模块项目清单表：表头固定 + 前4列固定（序号/组别/负责人/负责项目/任务）
   抖动根因：使用 border-collapse: collapse 时，共享 1px border 在 sticky 单元格抬升后
   不跟随移动；且 collapse 下浏览器按「单元格+共享边框」分配列宽，
   导致 colgroup 的固定 px 宽度与实际列宽存在亚像素偏差，
   scrollLeft 滚动时 sticky left 值与真实列对齐发生 1px 左右反复抖动。
   修复：整表切换为 border-collapse: separate + border-spacing: 0，
         所有 th/td 独立持有四边 1px 边框，彻底消除共享边框歧义；
         再对固定列统一用 box-shadow inset 模拟边框，使列宽严格等于 colgroup 的 px 宽度，
         pinLefts 累加值与真实列宽 1:1 匹配，sticky left 对齐精确不抖动。
*/
.sa-mk-qingdan-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
/* 模块项目清单表：单元格对齐控制 */
.sa-mk-qingdan-table td.sa-mk-cell-center {
    text-align: center !important;
    vertical-align: middle !important;
}
.sa-mk-qingdan-table td.sa-mk-cell-left {
    text-align: left !important;
    vertical-align: middle !important;
}
/* ============================================================
   统一方案：所有列（固定+非固定）全部去掉真实 border，
   用 box-shadow inset 模拟边框。
   
   核心目的：
   1. 列宽严格等于 colgroup 的 px 值 → pinLefts 累加 1:1 匹配 → 不抖动不错位
   2. 固定列/非固定列表头边框颜色完全一致（白色内部分隔线 + 深蓝外边缘）
   3. 行/列分隔线统一 1px 粗细
   ============================================================ */
.sa-mk-qingdan-table th,
.sa-mk-qingdan-table td {
    border: none !important;
}

/* ---------- 表头 th：深蓝底 + 白色内部分隔线 + 深蓝外边缘 ---------- */
.sa-mk-qingdan-table thead th {
    box-shadow:
        inset 1px 0 0 #fff,   /* 左边线（内部分隔） */
        inset -1px 0 0 #fff;  /* 右边线（内部分隔） */
}
/* 表头顶部 = 深蓝（外边缘，与表头底色一致） */
.sa-mk-qingdan-table thead tr:first-child th {
    box-shadow:
        inset 1px 0 0 #fff,
        inset -1px 0 0 #fff,
        inset 0 1px 0 #2A5794;  /* 顶部外边缘 = 深蓝 */
}
/* 表头底部 = 深蓝（外边缘，与表头底色一致） */
.sa-mk-qingdan-table thead tr:last-child th {
    box-shadow:
        inset 1px 0 0 #fff,
        inset -1px 0 0 #fff,
        inset 0 -1px 0 #2A5794; /* 底部外边缘 = 深蓝 */
}
/* 同时有顶部和底部（单行表头） */
.sa-mk-qingdan-table thead tr:only-child th {
    box-shadow:
        inset 1px 0 0 #fff,
        inset -1px 0 0 #fff,
        inset 0 1px 0 #2A5794,
        inset 0 -1px 0 #2A5794;
}
/* 表头第一列左边 = 深蓝（左外边缘） */
.sa-mk-qingdan-table thead th:first-child {
    box-shadow:
        inset 1px 0 0 #2A5794, /* 左外边缘 = 深蓝 */
        inset -1px 0 0 #fff,
        inset 0 1px 0 #2A5794,
        inset 0 -1px 0 #2A5794 !important;
}
/* 表头最后一列右边 = 深蓝（右外边缘） */
.sa-mk-qingdan-table thead th:last-child {
    box-shadow:
        inset 1px 0 0 #fff,
        inset -1px 0 0 #2A5794, /* 右外边缘 = 深蓝 */
        inset 0 1px 0 #2A5794,
        inset 0 -1px 0 #2A5794;
}
/* 既是第一列又是最后一列（极端情况） */
.sa-mk-qingdan-table thead th:first-child:last-child {
    box-shadow:
        inset 1px 0 0 #2A5794,
        inset -1px 0 0 #2A5794,
        inset 0 1px 0 #2A5794,
        inset 0 -1px 0 #2A5794;
}

/* ---------- 表体 td：灰色分隔线，1px 粗细 ---------- */
/* 默认：左边线 + 底部线（右边由下一列左边线负责，顶边由上一行底线负责） */
.sa-mk-qingdan-table tbody td {
    box-shadow:
        inset 1px 0 0 #ececec,  /* 左边线 */
        inset 0 -1px 0 #ececec; /* 底部线 = 行分隔线 */
}
/* 第一行：补顶部线 */
.sa-mk-qingdan-table tbody tr:first-child td {
    box-shadow:
        inset 1px 0 0 #ececec,
        inset 0 1px 0 #ececec,  /* 顶部线（表体上边缘） */
        inset 0 -1px 0 #ececec;
}
/* 最后一列：补右边线 */
.sa-mk-qingdan-table tbody td:last-child {
    box-shadow:
        inset 1px 0 0 #ececec,
        inset -1px 0 0 #ececec, /* 右边线（表右边缘） */
        inset 0 -1px 0 #ececec;
}
/* 第一行 + 最后一列 */
.sa-mk-qingdan-table tbody tr:first-child td:last-child {
    box-shadow:
        inset 1px 0 0 #ececec,
        inset -1px 0 0 #ececec,
        inset 0 1px 0 #ececec,
        inset 0 -1px 0 #ececec;
}

/* ---------- 固定列（前5列：勾选+序号+组别+负责人+负责项目/任务） ---------- */
.sa-mk-qingdan-table thead th.sa-mk-pin { position: sticky; z-index: 4; }
.sa-mk-qingdan-table tbody td.sa-mk-pin {
    position: sticky;
    z-index: 1;
    background: #fff;
}
/* 最后一列固定列 td：补右边线 + 渐变阴影提示右侧可滚动 */
.sa-mk-qingdan-table tbody td.sa-mk-pin-last {
    box-shadow:
        inset 1px 0 0 #ececec,
        inset -1px 0 0 #ececec,
        inset 0 -1px 0 #ececec,
        10px 0 10px -8px rgba(0,0,0,0.22) !important;
}
/* 第一行最后一列固定 td：补顶部线 + 右边线 + 阴影 */
.sa-mk-qingdan-table tbody tr:first-child td.sa-mk-pin-last {
    box-shadow:
        inset 1px 0 0 #ececec,
        inset -1px 0 0 #ececec,
        inset 0 1px 0 #ececec,
        inset 0 -1px 0 #ececec,
        10px 0 10px -8px rgba(0,0,0,0.22) !important;
}
/* 固定列 th 末列：补右边线 + 渐变阴影（右侧有视觉分隔） */
.sa-mk-qingdan-table thead th.sa-mk-pin.sa-mk-pin-last {
    box-shadow:
        inset 1px 0 0 #fff,
        inset -1px 0 0 #fff,
        inset 0 1px 0 #2A5794,
        inset 0 -1px 0 #2A5794,
        10px 0 10px -8px rgba(0,0,0,0.22) !important;
}
/* 模块项目清单表：覆盖通用勾选列样式，改用本页的 sticky 与 left 机制（通用 left:0 会导致所有勾选列叠在同一位置）
   注意：这里不要加 left !important——通用 .sa-chk-th/td 的 left:0 只是 class 选择器(权重0010)，
         内联 style="left:xxxpx" 是 style 属性(权重1000)，天然优先级更高，不写 !important 就不会被覆盖。
         如果写了 left:auto !important，反而会压过内联 style，让 sticky 没有 left 约束，勾选列就跟着滑动走了。
   修复错位：覆盖通用勾选列的 width/min-width/max-width，让 colgroup 的 px 宽度严格生效；
         同时统一 padding 与其他固定列一致，避免行高/对齐偏差。 */
.sa-mk-qingdan-table th.sa-chk-th,
.sa-mk-qingdan-table td.sa-chk-td {
    position: sticky !important;
    background: #fff;
    z-index: 2;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 7px 10px !important;
}
.sa-mk-qingdan-table thead th.sa-chk-th {
    background: #2A5794 !important;
    z-index: 5 !important;
}
/* 勾选列的边框统一由 :first-child 规则负责（见上方通用表头/表体样式），
   不再单独定义，避免权重差异导致边框不一致。 */
/* 斑马纹/悬停态下固定列也需不透明背景，避免后方内容透出 */
.sa-mk-qingdan-table tbody tr:nth-child(even) td.sa-mk-pin { background: #fafbfc; }
.sa-mk-qingdan-table tbody tr:hover td.sa-mk-pin { background: #ecf5ff; }
/* 序号固定列保留其浅灰标签底色（仍不透明，遮挡后方内容） */
.sa-mk-qingdan-table tbody td.sa-mk-pin.cell-rowlabel { background: #f8f9fa; }
.sa-mk-qingdan-table tbody tr:nth-child(even) td.sa-mk-pin.cell-rowlabel { background: #f3f4f6; }
.sa-mk-qingdan-table tbody tr:hover td.sa-mk-pin.cell-rowlabel { background: #e6f0ff; }
/* 行高亮：对固定列也要追加相应背景色（通用行高亮 !important 会盖掉固定列不透明背景） */
.sa-mk-qingdan-table tbody tr.sa-new-row td.sa-mk-pin { background: #f9f0ff !important; }
.sa-mk-qingdan-table tbody tr.sa-row-selected td.sa-mk-pin { background: #f6ffed !important; }
.sa-mk-qingdan-table tbody tr.sa-row-selected td.sa-mk-pin.cell-rowlabel { background: #edf9e0 !important; }
.sa-mk-qingdan-table tbody tr.sa-row-selected:nth-child(even) td.sa-mk-pin { background: #f6ffed !important; }
.sa-mk-qingdan-table tbody tr.sa-row-selected:hover td.sa-mk-pin { background: #eefbe2 !important; }
/*
   一键回到顶部按钮：
   之前放在滚动容器(.sa-table-wrap)内用 position:absolute + bottom 的实现有问题：
   overflow:auto 容器内的 absolute bottom 参照的是内容底部而非可视视口底部，
   导致按钮藏在内容最下方，要滚到底才看到。
   修复：按钮放在 .sa-panel-body 内(滚动容器外)，panel-body 作为定位上下文，
         按钮用 position: absolute 贴在面板可视区域右下角，始终可见。
*/
#panel-mk-qingdan .sa-panel-body,
.sa-panel-body.has-mk-backtop { position: relative; }
.sa-mk-backtop {
    position: absolute; right: 32px; bottom: 32px; z-index: 50;
    width: 42px; height: 42px; border-radius: 50%;
    border: none; background: #2A5794; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s, transform 0.2s, background 0.2s;
}
.sa-mk-backtop.show { opacity: 1; visibility: visible; pointer-events: auto; }
.sa-mk-backtop:hover { background: #1d4070; transform: translateY(-2px); }
/* 完成结果列表头 */
.sa-mk-qingdan-table th.sa-mk-result-th {
    background: #fff7e6 !important; color: #ad6800; border-bottom: 2px solid #ffd666 !important;
}
/* 完成结果单元格：双击可点评 */
.sa-mk-qingdan-table td.sa-mk-result-cell {
    position: relative; cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.sa-mk-qingdan-table td.sa-mk-result-cell:hover {
    background: #fff7e6 !important;
    box-shadow: inset 0 0 0 2px #ffd666;
}
/* 已有点评：边框红色加粗 */
.sa-mk-qingdan-table td.sa-mk-result-cell.has-review {
    box-shadow: inset 0 0 0 2px #f5222d;
}
/* 未读点评：左上角小红点 + 脉冲动画 */
.sa-mk-qingdan-table td.sa-mk-result-cell.has-review-unread::before {
    content: ''; position: absolute; top: -4px; right: -4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #f5222d; border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(245, 34, 45, 0.6);
    animation: sa-mk-pulse 1.6s infinite;
    z-index: 2;
}
/* 未读点评：再叠加一个小铃铛图标 */
.sa-mk-qingdan-table td.sa-mk-result-cell.has-review-unread::after {
    content: '\ee0d'; /* ri-notification-3-fill 在 remixicon 中的字符代码备选，下面用伪元素图标兜底 */
    font-family: 'remixicon'; font-size: 12px; color: #f5222d;
    position: absolute; top: -10px; right: -10px;
    background: #fff; border-radius: 50%; padding: 1px;
    z-index: 3; line-height: 1;
    display: none; /* 不显示，依靠上面的红点足够 */
}
@keyframes sa-mk-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 34, 45, 0.6); transform: scale(1); }
    70%  { box-shadow: 0 0 0 10px rgba(245, 34, 45, 0); transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0 rgba(245, 34, 45, 0); transform: scale(1); }
}

/* 顶部工具栏：未读点评数 badge */
.sa-mk-unread-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 14px;
    background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322;
    font-size: 12px; font-weight: 600;
    animation: sa-mk-pulse 1.8s infinite;
    cursor: default;
}
.sa-mk-unread-badge i { font-size: 14px; }

/* 月底自动新增月份列提示条 */
.sa-mk-auto-tip {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 10px; padding: 8px 14px;
    background: #e6f7ff; border: 1px solid #91d5ff; border-radius: 6px;
    font-size: 12.5px; color: #096dd9; line-height: 1.6;
}
.sa-mk-auto-tip > i { font-size: 16px; flex-shrink: 0; }
.sa-mk-auto-tip b { color: #1890ff; }
.sa-mk-auto-tip-new {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 8px; padding: 2px 10px; border-radius: 12px;
    background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d;
    font-weight: 600; font-size: 12px;
}
.sa-mk-auto-tip-new i { font-size: 13px; }

/* 模块项目清单表：筛选下拉 + 搜索框 */
.sa-mk-filters {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sa-mk-filter {
    height: 30px; padding: 0 10px;
    border: 1px solid #d9d9d9; border-radius: 6px;
    background: #fff; color: #333; font-size: 13px;
    cursor: pointer; outline: none;
    transition: all 0.15s;
    max-width: 150px;
}
.sa-mk-filter:hover { border-color: #409eff; color: #409eff; }
.sa-mk-filter:focus { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,0.15); }
.sa-mk-search {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 30px;
    border: 1px solid #d9d9d9; border-radius: 6px;
    background: #fff; transition: all 0.15s;
}
.sa-mk-search:focus-within { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,0.15); }
.sa-mk-search > i { color: #999; font-size: 14px; }
.sa-mk-search input {
    border: none; outline: none; background: transparent;
    width: 160px; height: 28px; font-size: 13px; color: #333;
}
.sa-mk-search input::placeholder { color: #bfbfbf; }
.sa-mk-filter-info {
    margin-top: 6px; padding: 4px 10px;
    font-size: 12px; color: #096dd9;
    background: #e6f7ff; border: 1px solid #91d5ff; border-radius: 4px;
    display: inline-block;
}

/* 点评模态框 */
.sa-mk-review-dialog { width: 640px; max-width: 94vw; }
.sa-mk-review-info {
    background: #f5f7fa; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px;
    font-size: 12.5px; color: #555; line-height: 1.9;
}
.sa-mk-review-info > div { display: flex; }
.sa-mk-review-info .sa-mk-review-label {
    flex: 0 0 90px; color: #888; font-weight: 600;
}
.sa-mk-review-section { margin-bottom: 14px; }
.sa-mk-review-section .sa-mk-review-label {
    display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px;
}
.sa-mk-review-content {
    background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px;
    padding: 10px 12px; font-size: 13px; color: #1a1a1a;
    line-height: 1.7; max-height: 180px; overflow-y: auto;
    white-space: pre-wrap;
}
.sa-mk-review-empty { color: #bbb; font-style: italic; }
.sa-mk-review-textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 4px;
    font-size: 13px; font-family: inherit; resize: vertical; outline: none;
    transition: border-color 0.2s; line-height: 1.6;
}
.sa-mk-review-textarea:focus { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64,158,255,0.15); }
.sa-mk-review-meta { font-size: 11.5px; color: #888; margin-top: -4px; margin-bottom: 8px; }
.sa-mk-review-save { background: #f5222d; border-color: #f5222d; }
.sa-mk-review-save:hover { background: #cf1322; border-color: #cf1322; color: #fff; }
.sa-mk-review-view { border-color: #409eff; color: #409eff; }
.sa-mk-review-view:hover { background: #ecf5ff; }
.sa-mk-review-delete { border-color: #ffa39e; color: #cf1322; margin-left: auto; }
.sa-mk-review-delete:hover { background: #fff1f0; }

/* 点评 tooltip（员工查看入口） */
.sa-mk-review-tooltip {
    position: fixed; z-index: 11000; max-width: 360px; min-width: 240px;
    background: #fff; border: 1px solid #ffd666; border-left: 4px solid #f5222d;
    border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 12px 14px; font-size: 13px; color: #1a1a1a;
}
.sa-mk-review-tooltip.is-new { border-left-color: #f5222d; animation: sa-mk-tip-in 0.2s ease; }
.sa-mk-review-tooltip.is-read { border-left-color: #bfbfbf; opacity: 0.95; }
@keyframes sa-mk-tip-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sa-mk-review-tooltip-header {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: #cf1322;
    margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed #ffe7ba;
}
.sa-mk-review-tooltip.is-read .sa-mk-review-tooltip-header { color: #888; }
.sa-mk-review-tooltip-header i { font-size: 16px; }
.sa-mk-new-tag {
    background: #f5222d; color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 8px; margin-left: 4px;
    line-height: 1.4;
}
.sa-mk-review-tooltip-body {
    line-height: 1.7; white-space: pre-wrap; max-height: 220px; overflow-y: auto;
}

/* 完成结果列右键菜单 */
.sa-mk-review-ctxmenu {
    position: fixed; z-index: 9999;
    background: #fff; border: 1px solid #e4e7ed; border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 4px 0; min-width: 140px;
    font-size: 13px;
}
.sa-mk-ctx-item {
    padding: 8px 14px; cursor: pointer; display: flex; align-items: center; gap: 8px;
    color: #303133; transition: background 0.15s;
}
.sa-mk-ctx-item:hover { background: #ecf5ff; color: #409eff; }
.sa-mk-ctx-item i { font-size: 15px; }


/* 排序表头 */
.sa-table th.sa-sortable { cursor: pointer; user-select: none; }
.sa-table th.sa-sortable:hover { background: #3a6bb0; color: #fff; }
.sa-table th.sa-sortable i { color: #fff; }

/* 编辑提示 */
.sa-edit-tip { margin-top: 10px; padding: 8px 12px; background: #f0f9ff; border: 1px solid #d0e8ff; border-radius: 4px; font-size: 12px; color: #1e6fdb; line-height: 1.7; }
.sa-edit-tip i { margin-right: 4px; }

/* 年度统计表 */
.sa-annual-table th, .sa-annual-table td { text-align: center; }
.sa-annual-table td.cell-num { text-align: center; }
.sa-annual-table td.cell-rowlabel { text-align: center; }

/* 工作系数统计表 */
.sa-coef-table { font-size: 11.5px; table-layout: auto; width: max-content; min-width: 100%; }
.sa-coef-table th, .sa-coef-table td { padding: 5px 6px; text-align: center; vertical-align: middle; white-space: nowrap; }
.sa-coef-table .sa-coef-header { background: #2A5794; color: #fff; font-weight: 600; white-space: nowrap; }
.sa-coef-table .sa-coef-header.sa-cell-edit:hover { background: #1f4173 !important; }
.sa-coef-table .sa-coef-header.sa-cell-edit.editing { background: #16314f !important; }
.sa-coef-table .sa-coef-section { background: #eef4ff; font-weight: 700; color: #1a1a1a; text-align: left; padding-left: 14px; }
.sa-coef-table .sa-coef-bpm { background: #fff7e6; font-weight: 600; color: #d46b08; }
.sa-coef-table .sa-coef-plus { background: #f6ffed; font-weight: 700; color: #389e0d; }
.sa-coef-table .sa-coef-minus { background: #fff1f0; font-weight: 700; color: #cf1322; }
.sa-coef-table .sa-coef-total { background: #f0f7ff; font-weight: 800; color: #1d4ed8; font-size: 12.5px; }
.sa-coef-table .sa-coef-note { background: #fffbe6; color: #614700; font-size: 11px; line-height: 1.7; text-align: left; white-space: pre-wrap; }
.sa-coef-table td.sa-cell-edit { font-family: 'Consolas', 'Monaco', monospace; }
/* 显式对齐类（优先级高于默认） */
.sa-coef-table .sa-coef-align-center { text-align: center !important; }
.sa-coef-table .sa-coef-align-left { text-align: left !important; }

/* 模态框 */
.sa-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.sa-modal { background: #fff; border-radius: 8px; width: 520px; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.sa-modal-title { padding: 14px 18px; font-size: 15px; font-weight: 700; color: #1a1a1a; border-bottom: 1px solid #ececec; }
.sa-modal-body { padding: 16px 18px; overflow-y: auto; }
.sa-modal-field { margin-bottom: 12px; }
.sa-modal-field label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; font-weight: 600; }
.sa-modal-field input, .sa-modal-field select, .sa-modal-field textarea { width: 100%; padding: 7px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; outline: none; transition: border-color 0.2s; box-sizing: border-box; font-family: inherit; }
.sa-modal-field input:focus, .sa-modal-field select:focus, .sa-modal-field textarea:focus { border-color: #409eff; }
.sa-modal-field textarea { min-height: 70px; resize: vertical; }
/* 多行文本框（备注/扣分原因等）点击聚焦时显示"按回车键换行"提示 */
.sa-modal-hint { font-size: 11px; color: #999; margin-top: 4px; display: none; }
.sa-modal-field:focus-within .sa-modal-hint { display: block; color: #409eff; }
/* 日期时间范围联合组件（开始时间 / 结束时间） */
.sa-modal-field-range .sa-modal-range-inputs { display: flex; align-items: center; gap: 6px; }
.sa-modal-field-range .sa-modal-range-inputs input { flex: 1; min-width: 0; }
.sa-modal-field-range .sa-modal-range-sep { flex: 0 0 auto; color: #888; font-size: 13px; }
/* 只读字段（处理时间自动计算） */
.sa-modal-field input.sa-modal-readonly { background: #f5f7fa; color: #1a1a1a; cursor: not-allowed; }
.sa-modal-field textarea.sa-modal-readonly { background: #f5f7fa; color: #1a1a1a; cursor: not-allowed; white-space: pre-line; }
.sa-modal-footer { padding: 12px 18px; border-top: 1px solid #ececec; display: flex; justify-content: flex-end; gap: 8px; }

/* 操作按钮 */
.sa-table td.cell-actions { white-space: nowrap; text-align: center; }
.sa-btn.sm { padding: 3px 7px; font-size: 12px; min-width: auto; }
.sa-btn.sm i { font-size: 13px; }
.sa-btn.danger { color: #cf1322; border-color: #ffa39e; }
.sa-btn.danger:hover { background: #fff1f0; border-color: #cf1322; color: #cf1322; }

/* ===== 账号下拉菜单 ===== */
.sa-user-dropdown { position: relative; display: inline-block; }
.sa-user-btn { padding: 6px 10px; font-weight: 600; gap: 6px; }
.sa-user-btn > i.ri-arrow-down-s-line { font-size: 14px; color: #888; transition: transform 0.2s; }
.sa-user-dropdown.open .sa-user-btn > i.ri-arrow-down-s-line { transform: rotate(180deg); }
.sa-user-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 150px; background: #fff; border: 1px solid #e8e8e8;
    border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 4px 0; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: all 0.18s ease;
}
.sa-user-dropdown.open .sa-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sa-user-menu-item {
    padding: 9px 14px; font-size: 12.5px; color: #333;
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    transition: background 0.15s;
}
.sa-user-menu-item:hover { background: #f5f7fa; color: #409eff; }
.sa-user-menu-item i { font-size: 14px; color: #409eff; }

/* ===== 启动加载遮罩（避免刷新时短暂空白页） ===== */
.sa-boot-mask {
    position: fixed; inset: 0; z-index: 9999;
    background: #f5f7fa;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #6b7280;
    font-size: 14px;
    gap: 14px;
}
/* ===== 启动加载动画（CSS 纯动画，无需图片） ===== */
.loading-273 {
    width: 80px;
    height: 40px;
    border-radius: 0 0 100px 100px;
    border: 5px solid #538a2d;
    border-top: 0;
    box-sizing: border-box;
    background: radial-gradient(farthest-side at top, #0000 calc(100% - 5px), #e7ef9d calc(100% - 4px)), radial-gradient(2px 3px, #5c4037 89%, #0000) 0 0/17px 12px, #ff1643;
    --c: radial-gradient(farthest-side, #000 94%, #0000);
    -webkit-mask: linear-gradient(#0000 0 0), var(--c) 12px -8px, var(--c) 29px -8px, var(--c) 45px -6px, var(--c) 22px -2px, var(--c) 34px 6px, var(--c) 21px 6px, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0), var(--c) 12px -8px, var(--c) 29px -8px, var(--c) 45px -6px, var(--c) 22px -2px, var(--c) 34px 6px, var(--c) 21px 6px, linear-gradient(#0000 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude, add, add, add, add, add, add;
    -webkit-mask-repeat: no-repeat;
    animation: loading-273 3s infinite;
}
@keyframes loading-273 {
    0%   { -webkit-mask-size: auto, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    15%  { -webkit-mask-size: auto, 20px 20px, 0 0, 0 0, 0 0, 0 0, 0 0; }
    30%  { -webkit-mask-size: auto, 20px 20px, 20px 20px, 0 0, 0 0, 0 0, 0 0; }
    45%  { -webkit-mask-size: auto, 20px 20px, 20px 20px, 20px 20px, 0 0, 0 0, 0 0; }
    60%  { -webkit-mask-size: auto, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 0 0, 0 0; }
    75%  { -webkit-mask-size: auto, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 0 0; }
    90%,100% { -webkit-mask-size: auto, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px; }
}
/* 控制规则：hidden 类 / init 完成标记 / 无 session 时不显示 */
.sa-boot-mask.hidden,
html.sa-boot-done .sa-boot-mask,
html:not(.sa-session-active) .sa-boot-mask { display: none; }

/* ===== 登录遮罩层 ===== */
.sa-login-mask {
    position: fixed; inset: 0; z-index: 10000;
    background-color: #DBE0F9;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
/* 右上角装饰 SVG */
.sa-login-mask .svg-top {
    position: absolute;
    top: -500px;
    right: -200px;
    width: 810px;
    height: 1040px;
    pointer-events: none;
}
.sa-login-mask .svg-top svg {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}
/* 左下角装饰 SVG */
.sa-login-mask .svg-bottom {
    position: absolute;
    bottom: -380px;
    left: -120px;
    width: 870px;
    height: 896px;
    pointer-events: none;
}
.sa-login-mask .svg-bottom svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
.sa-login-mask.hidden { display: none; }
/* 刷新页面时若 localStorage 有会话，先隐藏登录遮罩避免闪现（JS 启动后会按需显示） */
html.sa-session-active .sa-login-mask { display: none; }

/* 登录卡片 */
.sa-login-box {
    position: relative;
    width: 420px; max-width: 92vw;
    background-color: #fff;
    border-radius: 24px;
    padding: 48px 44px 40px;
    z-index: 1;
    animation: saLoginPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(88, 62, 213, 0.18), 0 4px 12px rgba(0,0,0,0.04);
}
@keyframes saLoginPop {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 登录头部 */
.sa-login-header {
    margin-bottom: 32px;
    text-align: center;
}
.sa-login-logo {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}
.sa-login-logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.sa-login-header h2 {
    color: #6065D9;
    font-size: 28px;
    font-weight: 500;
    margin: 20px 0 0 0;
    letter-spacing: 1px;
}
.sa-login-header p {
    color: #6065D9;
    font-size: 14px;
    font-weight: 300;
    margin: 6px 0 0 0;
    opacity: 0.7;
}

/* 登录表单 */
.sa-login-form { padding: 0; }
.sa-login-field {
    position: relative; margin-bottom: 4px;
}
.sa-login-field input,
.sa-login-field select {
    border: none;
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 40px 0 0;
    font-size: 16px;
    color: #555;
    background: transparent;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.sa-login-field input::placeholder {
    color: #bbb;
    font-size: 15px;
    font-weight: 300;
}
/* 底部线条 */
.sa-login-field-line {
    width: 100%;
    height: 2px;
    background-color: rgba(153, 153, 153, 0.3);
    transition: background-color 0.25s;
}
.sa-login-field:focus-within .sa-login-field-line {
    background: linear-gradient(to right, #583ED5, #17D7FA);
}
/* ===== 自定义下拉选择器（登录身份） ===== 已移除 */
.sa-login-eye {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: none; background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #aaa; font-size: 16px; border-radius: 6px;
    transition: all 0.2s; padding: 0;
}
.sa-login-eye:hover { color: #6065D9; }

/* 记住密码 */
.sa-login-remember {
    margin: 20px 0 16px; display: flex; align-items: center;
}
.sa-login-remember label {
    display: flex; align-items: center; cursor: pointer;
    font-size: 13px; color: #888; user-select: none;
}
.sa-login-remember input[type="checkbox"] {
    width: 15px; height: 15px; margin-right: 8px;
    accent-color: #6065D9; cursor: pointer;
}
.sa-login-remember span { line-height: 1; }

/* 登录按钮 */
.sa-login-btn {
    background: linear-gradient(to right, #6065D9, #17D7FA);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    display: block;
    width: 100%;
    height: 50px;
    margin: 8px 0 0;
    outline: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 22px rgba(88, 62, 213, 0.35);
    letter-spacing: 6px;
}
.sa-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(88, 62, 213, 0.45);
}
.sa-login-btn:active { transform: translateY(0); }

.sa-login-tip {
    min-height: 18px; margin-top: 14px; text-align: center;
    font-size: 13px; color: #cf1322; line-height: 1.5;
}
.sa-login-tip.success { color: #389e0d; }

/* 登录页底部装饰 */
.sa-login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(153, 153, 153, 0.15);
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

/* ===== 个人中心弹窗 ===== */
.sa-profile-modal { width: 420px; }
.sa-profile-row {
    display: flex; align-items: center; padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.sa-profile-row:last-child { border-bottom: none; }
.sa-profile-row label {
    width: 90px; flex-shrink: 0; font-size: 12.5px;
    color: #888; font-weight: 600;
}
.sa-profile-val {
    flex: 1; font-size: 13px; color: #1a1a1a;
    font-weight: 600; word-break: break-all;
}
.sa-profile-pwd {
    flex: 1; position: relative; display: flex; align-items: center;
}
.sa-profile-pwd input {
    width: 100%; height: 32px; padding: 0 34px 0 10px;
    border: 1px solid #e8e8e8; border-radius: 4px;
    font-size: 13px; background: #fafafa; outline: none;
    font-family: 'Consolas', 'Monaco', monospace; letter-spacing: 1px;
}
.sa-profile-eye {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border: none; background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #8c8c8c; font-size: 14px; border-radius: 4px; padding: 0;
    transition: all 0.15s;
}
.sa-profile-eye:hover { color: #409eff; background: #ecf5ff; }

/* 点评单元格跳转后的临时高亮 */
.sa-mk-result-cell.jump-highlight {
    animation: saJumpBlink 1.2s ease;
    box-shadow: inset 0 0 0 2px #f5222d;
    background: #fff1f0 !important;
    z-index: 2;
}
@keyframes saJumpBlink {
    0%, 100% { background: #fff1f0; }
    50% { background: #ffa39e; }
}

/* ==================== 直接编辑表格模式样式 ==================== */
/* 复选框列（含全选/单选） */
.sa-table th.sa-chk-th, .sa-table td.sa-chk-td {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
}
.sa-table thead th.sa-chk-th {
    background: #2A5794;
    z-index: 2;
}
.sa-chk {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #722ed1;
    vertical-align: middle;
}
.sa-chk-indicator {
    display: inline-block;
    width: 16px; height: 16px;
    border: 1.5px solid #d9d9d9;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.15s;
}
.sa-chk-indicator:hover { border-color: #722ed1; }
.sa-chk-indicator.checked {
    background: #722ed1;
    border-color: #722ed1;
}
.sa-chk-indicator.checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sa-chk-indicator.indeterminate {
    background: #722ed1;
    border-color: #722ed1;
}
.sa-chk-indicator.indeterminate::after {
    content: '';
    position: absolute;
    left: 3px; top: 6px;
    width: 8px; height: 2px;
    background: #fff;
}

/* 新增空行高亮 */
.sa-table tbody tr.sa-new-row td {
    background: #f9f0ff !important;
    transition: background 0.3s;
}
.sa-table tbody tr.sa-new-row.sa-new-row-settled td {
    background: inherit !important;
}
/* 行被选中高亮 */
.sa-table tbody tr.sa-row-selected td {
    background: #f6ffed !important;
}
.sa-table tbody tr.sa-row-selected td.sa-chk-td {
    background: #f6ffed !important;
}

/* 双击提示：表格可编辑 */
.sa-table tbody td {
    cursor: default;
    transition: background 0.12s;
}
.sa-table tbody td.sa-cell-editable {
    cursor: pointer;
}
.sa-table tbody td.sa-cell-editable:hover {
    background: #f0f5ff;
}
.sa-table tbody td.sa-cell-editing {
    background: #fffbe6 !important;
    box-shadow: inset 0 0 0 2px #faad14;
    outline: none;
    cursor: text;
}

/* 只读单元格灰底提示 */
.sa-table td.sa-cell-readonly {
    color: #8c8c8c;
    cursor: not-allowed !important;
}
.sa-table td.sa-cell-readonly:hover { background: inherit !important; }

/* 附件单元格 */
.sa-attach-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sa-attach-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px;
    border: 1px dashed #722ed1;
    border-radius: 4px;
    color: #722ed1;
    background: #f9f0ff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.sa-attach-btn:hover {
    background: #722ed1;
    color: #fff;
    border-style: solid;
}
.sa-attach-link {
    color: #1890ff;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.15s;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.sa-attach-link:hover {
    background: #e6f7ff;
    text-decoration: underline;
}
.sa-attach-del {
    display: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.15s;
}
.sa-attach-wrap:hover .sa-attach-del { display: inline-flex; }
.sa-attach-del:hover { background: #fff1f0; }
.sa-attach-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

/* 删除按钮（工具栏） */
.sa-btn.danger:disabled {
    background: #ffccc7;
    border-color: #ffccc7;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 自定义下拉面板（单元格内编辑使用） */
.sa-cell-popover {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(114, 46, 209, 0.18), 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #f0e6ff;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}
.sa-cell-popover.sa-ms-pop {
    min-width: 220px;
}
.sa-cell-popover .sa-pop-opt {
    padding: 8px 14px;
    display: block;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.12s;
    white-space: nowrap;
}
.sa-cell-popover .sa-pop-opt:hover {
    background: linear-gradient(90deg, #f9f0ff, #fff);
    color: #722ed1;
}
.sa-cell-popover .sa-pop-opt.active {
    background: #722ed1;
    color: #fff;
    font-weight: 500;
}
/* 多选选项 */
.sa-cell-popover .sa-ms-opt {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.12s;
}
.sa-cell-popover .sa-ms-opt:hover { background: #f9f0ff; }
.sa-cell-popover .sa-ms-opt input { accent-color: #722ed1; }
.sa-cell-popover .sa-ms-footer {
    padding: 8px 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.sa-cell-popover .sa-ms-footer button {
    flex: 1;
    padding: 4px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.sa-cell-popover .sa-ms-footer button.sa-ms-cancel {
    background: #f5f5f5;
    color: #666;
}
.sa-cell-popover .sa-ms-footer button.sa-ms-cancel:hover { background: #e8e8e8; }
.sa-cell-popover .sa-ms-footer button.sa-ms-ok {
    background: linear-gradient(135deg, #722ed1, #9254de);
    color: #fff;
}
.sa-cell-popover .sa-ms-footer button.sa-ms-ok:hover { opacity: 0.9; }

/* 日期/时间 input 编辑态 */
.sa-cell-date-input, .sa-cell-time-input, .sa-cell-number-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: inherit;
    padding: 0;
}

/* "未填写完整"提示弹窗 */
.sa-incomplete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: saFadeIn 0.2s ease;
}
@keyframes saFadeIn { from { opacity: 0; } to { opacity: 1; } }
.sa-incomplete-dialog {
    background: #fff;
    border-radius: 12px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: saPopIn 0.25s cubic-bezier(.3,1.3,.6,1);
}
@keyframes saPopIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.sa-incomplete-header {
    padding: 18px 20px 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sa-incomplete-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff7e6;
    color: #fa8c16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.sa-incomplete-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 3px 0 4px;
}
.sa-incomplete-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.sa-incomplete-footer {
    padding: 12px 20px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.sa-incomplete-footer .sa-btn { padding: 6px 18px; }
.sa-incomplete-footer .sa-btn.sa-btn-cancel {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: #444;
}
.sa-incomplete-footer .sa-btn.sa-btn-cancel:hover { background: #e8e8e8; }


/* ============================================================
   运维员编辑模式：提示标签 / 提示条 / 架构图可编辑
   ============================================================ */
.sa-ops-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: normal;
    color: #722ed1;
    background: linear-gradient(135deg, #f9f0ff, #efdbff);
    border: 1px solid #d3adf7;
    vertical-align: middle;
    white-space: nowrap;
}
.sa-ops-tip {
    margin: 0 0 10px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #531dab;
    background: linear-gradient(135deg, #f9f0ff, #f0e6ff);
    border: 1px dashed #b37feb;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sa-ops-tip i { font-size: 15px; }

/* 组织架构图：运维员可编辑节点 */
.sa-org-editable { cursor: pointer; transition: background .12s, box-shadow .12s; border-radius: 4px; }
.sa-org-editable:hover {
    background: #f0f5ff;
    box-shadow: 0 0 0 2px rgba(64,158,255,.35);
}
.sa-org-editable.sa-cell-editing {
    background: #fffbe6 !important;
    box-shadow: 0 0 0 2px #faad14;
    outline: none;
    cursor: text;
}

/* ============================================================
   荣誉图片管理（运维员）
   ============================================================ */
.sa-honors-manage-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #722ed1, #9254de);
    color: #fff;
    border: none;
    padding: 7px 16px;
}
.sa-honors-manage-btn:hover { opacity: .9; }
.sa-honors-modal { width: 720px; max-width: 94vw; }
.sa-honors-tip {
    font-size: 13px;
    color: #722ed1;
    background: #f9f0ff;
    border: 1px solid #efdbff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sa-honors-list {
    max-height: 46vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.sa-honors-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
}
.sa-honors-item:hover { border-color: #d3adf7; box-shadow: 0 2px 10px rgba(114,46,209,.08); }
.sa-honors-item img {
    width: 110px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.sa-honors-item-name {
    flex: 1;
    border: 1px solid transparent;
    border-bottom: 1px dashed #d9d9d9;
    background: transparent;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}
.sa-honors-item-name:focus {
    border: 1px solid #722ed1;
    border-bottom-color: #722ed1;
    background: #fff;
}
.sa-honors-item-del {
    color: #ff4d4f;
    border-color: #ffccc7;
    background: #fff2f0;
    flex-shrink: 0;
}
.sa-honors-item-del:hover { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.sa-honors-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px dashed #b37feb;
    border-radius: 10px;
    background: #fcf8ff;
}
.sa-honors-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}
.sa-honors-name-input:focus { border-color: #722ed1; box-shadow: 0 0 0 2px rgba(114,46,209,.12); }

/* ============================================================
   人员角色管理（运维员）
   ============================================================ */
.sa-roles-tip {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #531dab;
    background: linear-gradient(135deg, #f9f0ff, #f0e6ff);
    border: 1px dashed #b37feb;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sa-roles-tip.readonly {
    color: #8c8c8c;
    background: #fafafa;
    border-color: #d9d9d9;
}
.sa-roles-table { min-width: 560px; }
.sa-self-tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}
/* 身份徽章 */
.sa-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.sa-id-badge i { font-size: 13px; }
.sa-id-badge.reviewer { color: #722ed1; background: #f9f0ff; border: 1px solid #d3adf7; }
.sa-id-badge.ops { color: #ad6800; background: #fffbe6; border: 1px solid #ffe58f; }
.sa-id-badge.staff { color: #555; background: #f5f5f5; border: 1px solid #d9d9d9; }
/* 身份下拉触发按钮（自定义下拉，替代原生 select） */
.sa-role-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}
.sa-role-trigger:hover {
    border-color: #722ed1;
    box-shadow: 0 2px 8px rgba(114,46,209,.15);
    background: linear-gradient(135deg, #fff, #faf5ff);
}
.sa-role-trigger > i { color: #bfbfbf; transition: transform .2s; }
.sa-role-trigger.open > i { transform: rotate(180deg); color: #722ed1; }
.sa-role-popover {
    position: absolute;
    z-index: 10001;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    border: 1px solid #f0f0f0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: saPopIn .18s cubic-bezier(.3,1.3,.6,1);
}
.sa-role-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 14px 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
}
.sa-role-opt:hover { background: linear-gradient(135deg, #f9f0ff, #f0e6ff); }
.sa-role-opt.selected { background: #f9f0ff; }
.sa-role-opt > i { color: #722ed1; font-weight: bold; }
/* 审核员开关 */
.sa-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    vertical-align: middle;
    cursor: pointer;
}
.sa-switch input { opacity: 0; width: 0; height: 0; }
.sa-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 22px;
    transition: .25s;
}
.sa-switch-slider::before {
    content: '';
    position: absolute;
    height: 16px; width: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sa-switch input:checked + .sa-switch-slider {
    background: linear-gradient(135deg, #722ed1, #9254de);
}
.sa-switch input:checked + .sa-switch-slider::before { transform: translateX(20px); }
.sa-switch-label { margin-left: 8px; font-size: 12px; color: #999; }
.sa-switch-label.on { color: #722ed1; font-weight: 500; }
.sa-role-status-ok { color: #52c41a; font-size: 12px; }
.sa-role-status-err { color: #ff4d4f; font-size: 12px; }

/* 荣誉弹窗标题（旧版 .sa-modal 结构下 header 内 h3） */
.sa-honors-modal .sa-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sa-honors-modal .sa-modal-header h3 i { color: #722ed1; }

/* ============================================================
   人员汇总表（运维员可编辑 + 执行员/审核员饼图）
   ============================================================ */

/* 统计卡片 —— 来源提示 */
.sa-stats-summary .sa-stat-card { position: relative; }
.sa-stats-summary .sa-stat-src {
    font-size: 11px;
    color: #bfbfbf;
    margin-top: 4px;
    font-weight: 400;
}
.sa-stats-summary .sa-stat-card-total {
    background: linear-gradient(135deg, #ecf5ff, #f0f9ff);
    border-color: #91caff;
}
.sa-stats-summary .sa-stat-card-total .sa-stat-value {
    color: #1677ff;
    font-size: 26px;
}

/* 汇总表内联编辑 —— 数字单元格 */
.sa-table-summary td.cell-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.sa-table-summary td.cell-zero {
    color: #bfbfbf;
}
.sa-table-summary td.sa-cell-editable {
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.sa-table-summary td.sa-cell-editable:hover {
    background: #f0f5ff;
    box-shadow: inset 0 0 0 1px #91caff;
}
.sa-table-summary td.sa-cell-editable.sa-cell-editing {
    background: #fffbe6 !important;
    box-shadow: inset 0 0 0 2px #faad14;
    cursor: text;
}

/* 自动求和单元格（不可编辑） */
.sa-table-summary td.cell-auto-sum {
    font-weight: 700;
    color: #409eff;
    background: #fafbfc;
}

/* 合计行高亮 */
.sa-table-summary tr.sa-summary-total-row {
    font-weight: 700;
    background: linear-gradient(90deg, #f0f7ff, #f5faff);
}
.sa-table-summary tr.sa-summary-total-row td {
    font-weight: 700;
}
.sa-table-summary tr.sa-summary-total-row td.cell-auto-sum {
    color: #1677ff;
}

/* 图表区域 —— 执行员/审核员视角 */
.sa-pie-section {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.sa-pie-block {
    flex: 1;
    min-width: 340px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sa-panel-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sa-pie-canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.sa-pie-canvas-wrap canvas {
    max-width: 100%;
    max-height: 320px;
}
/* 图例已移除 */
.sa-pie-legend { display: none; }
