/* ============================================================
   QFF s325 前端体验修订（2026-12-03）
   1) 项目/员工页字号与全站统一  2) 菜单与正文加深
   3) 表格列宽拖动 + 字段排序    4) 绩效页上方压缩、表格拉高
   5) 版本 V3.0.1                 6) 首页/登录页使用规范入口
   7) 全站版权接企业设置          8) 翻译页原文文件预览
   ============================================================ */

:root{
  --ink-2:#1b3a5c;
  --ink-3:#2d5074;
  --muted:#566e88;
  --muted-2:#788ba1;
  --text:#152f4b;
  --navy-2:#1b3a5c;
}

body{color:var(--text);}

/* ---------- 主菜单与全站正文加深 ---------- */
.nav-item{color:#1a3859;font-weight:500;}
.nav-item:hover,.nav-item.active{color:#123f74;}
.nav-item.sub{color:#294c70;font-weight:500;}

body:not(.ui-style-dark):not(.theme-dark) :is(
  .muted,.crumb,.page-sub,.orders-filter,.orders-filter label,.orders-footer,
  .pager,.pager-total,.perf-action-note,.task-tab em,.home-eyebrow,
  .kpi .k,.kpi .s,.panel-head .lbl,.panel-tools .lbl,
  .pm-meta-strip,.pm-source,.pm-foot-note,.staff-tree-foot,
  .staff-filter-grid label,.staff-filter-grid .hint,
  .ent-form-row > label,.personal-field,.modal-body label
){color:#536b84;}

body:not(.ui-style-dark):not(.theme-dark) table.grid thead th{color:#405a76;}
body:not(.ui-style-dark):not(.theme-dark) table.grid tbody td{color:#213b55;}

/* ---------- 项目 / 员工：字号、行高与其他窗口统一 ---------- */
#projects-view,#staff-view{font-size:13px;}

#projects-view .pm-table th,
#staff-view .staff-table th{
  height:40px;font-size:12.5px;font-weight:600;
}
#projects-view .pm-table td,
#staff-view .staff-table td{
  height:42px;font-size:13px;
}
body:not(.ui-style-dark):not(.theme-dark) #projects-view .pm-table th,
body:not(.ui-style-dark):not(.theme-dark) #staff-view .staff-table th{color:#3d5875;}
body:not(.ui-style-dark):not(.theme-dark) #projects-view .pm-table td,
body:not(.ui-style-dark):not(.theme-dark) #staff-view .staff-table td{color:#1d3853;}
body:not(.ui-style-dark):not(.theme-dark) #projects-view .pm-table .pm-grey,
body:not(.ui-style-dark):not(.theme-dark) #staff-view .staff-table .staff-gray{color:#687d93;}

#projects-view .pm-table .pm-no{font-size:12px;}

#projects-view :is(.pm-toolbar,.pm-meta-strip,.pm-foot-note,
  .pm-filter-grid,.pm-tabs,.pm-tab,.pm-select,.pm-input),
#staff-view :is(.staff-toolbar,.staff-filter-grid,.staff-tree,
  .staff-tree-foot,.staff-tabs,.staff-tab,.staff-select,.staff-input){
  font-size:12.5px;
}
#projects-view :is(button.btn,.ghost,.pm-btn),
#staff-view :is(button.btn,.ghost,.staff-btn){font-size:12.5px;}

#projects-view .pm-table th,
#projects-view .pm-table td{height:38px;}
#projects-view .orders-footer{padding-top:4px;padding-bottom:4px;}
#staff-view .orders-footer{padding-top:4px;padding-bottom:4px;}

/* ---------- 表格：列宽拖动与字段排序 ---------- */
th.qff-sortable{cursor:pointer;user-select:none;}
th.qff-sortable:hover{background:#eef4fa;}
th.qff-sortable .qff-sort-ind{
  display:inline-block;margin-left:4px;font-size:9px;line-height:1;
  color:#9aabbc;transform:translateY(-1px);
}
th.qff-sort-asc .qff-sort-ind,
th.qff-sort-desc .qff-sort-ind{color:#1f4f86;}
th.qff-sort-asc .qff-sort-ind:after{content:"↑";}
th.qff-sort-desc .qff-sort-ind:after{content:"↓";}
th.qff-sort-asc .qff-sort-ind,
th.qff-sort-desc .qff-sort-ind{font-size:0;}
th.qff-sort-asc .qff-sort-ind:after,
th.qff-sort-desc .qff-sort-ind:after{font-size:10px;}

th.qff-resizable{position:relative;}
.qff-col-resize{
  position:absolute;z-index:6;top:0;right:0;
  width:8px;height:100%;cursor:col-resize;touch-action:none;
  background:transparent;
}
.qff-col-resize:after{
  content:"";position:absolute;top:20%;bottom:20%;right:3px;
  width:1px;background:rgba(85,111,140,.22);
}
.qff-col-resize:hover:after,
.qff-col-resize.dragging:after{top:0;bottom:0;width:2px;right:2px;background:#2b558b;}
body.ui-style-dark .qff-col-resize:after{background:rgba(190,210,230,.25);}
body.ui-style-dark .qff-col-resize:hover:after,
body.ui-style-dark .qff-col-resize.dragging:after{background:#8db6e8;}

/* ---------- 绩效管理：压缩上方、拉高表格 ---------- */
#performance-view .page-title-row{padding:7px 2px 7px;align-items:center;}
#performance-view .page-title-row h2{font-size:23px;margin-top:2px;}
#performance-view .page-title-row .page-sub{display:none;}
#performance-view .perf-title-tools .muted{font-size:11.5px;}
#performance-view .perf-tabs{height:34px;margin-bottom:8px;}
#performance-view .perf-tabs .task-tab{height:34px;}
#performance-view .perf-kpi-row{gap:8px;margin-bottom:10px;}
#performance-view .perf-kpi{padding:8px 12px;}
#performance-view .perf-kpi .k{font-size:11.5px;}
#performance-view .perf-kpi .v{font-size:22px;line-height:1.12;}
#performance-view .perf-kpi .s{font-size:10.5px;}
#performance-view > .orders-card{flex:1;min-height:0;}
#performance-view .orders-actions{padding:8px 14px 7px;}
#performance-view .orders-filter{padding:7px 14px;}
#performance-view .perf-table-wrap{flex:1;min-height:420px;max-height:none;overflow:auto;}
#performance-view .orders-footer{padding:7px 14px 3px;}
#performance-view > .orders-card > .copyright{padding:4px 0 2px;font-size:10px;}

/* ---------- 登录页：40 年图缩小、规范入口、版权 ---------- */
.lg-sign{width:min(540px,70%);}
.lg-policy{
  border:0;background:none;padding:0;margin:0;cursor:pointer;
  color:var(--brand);font:inherit;font-weight:600;letter-spacing:.02em;
  text-decoration:underline;text-underline-offset:3px;
}
.lg-policy:hover{color:var(--brand-deep);}
.lg-status{bottom:38px;}
.lg-copyright{
  position:absolute;left:48px;right:48px;bottom:6px;
  padding:0;text-align:left;font-size:8.5px;line-height:1.35;
  color:#8a9aad;letter-spacing:.02em;
}

/* ---------- 首页使用规范入口 ---------- */
.home-policy-link{
  height:32px;padding:0 12px;margin-right:2px;
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid #c9d6e4;background:transparent;border-radius:2px;
  color:#2b558b;font-size:12.5px;font-weight:500;cursor:pointer;
}
.home-policy-link span{
  display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;border-radius:50%;
  background:#eaf1fa;color:#2b558b;font-size:11px;font-weight:700;
}
.home-policy-link:hover{border-color:#2b558b;background:#eef4fb;}

/* ---------- 使用规范弹窗 ---------- */
.policy-doc{max-width:860px;color:#243d57;font-size:13px;line-height:1.85;}
.policy-doc .policy-meta{
  margin:0 0 14px;padding:9px 12px;border-left:3px solid #2b558b;
  background:#f3f7fc;color:#536b84;font-size:12px;
}
.policy-doc h3{
  margin:18px 0 6px;font-family:"Noto Serif SC",serif;
  font-size:15px;color:#17304f;
}
.policy-doc p{margin:0 0 8px;}
.policy-doc ol,.policy-doc ul{margin:4px 0 8px;padding-left:20px;}
.policy-doc li{margin:4px 0;}
.policy-doc b{color:#17304f;}

/* ---------- 版权条 ---------- */
.copyright{color:#7b8da1;font-size:10.5px;line-height:1.55;letter-spacing:.02em;}
.page > .copyright{flex:none;padding:7px 0 3px;}
#home-view > .copyright{padding:10px 0 2px;}
.status-copy{
  max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#71869b;font-size:10.5px;letter-spacing:.01em;
}

/* ---------- 翻译页：原文件预览 ---------- */
.preview-pane{height:250px;}
.preview-body{padding:0;position:relative;background:#eef2f7;overflow:hidden;}
.qff-original-preview{display:block;width:100%;height:100%;border:0;background:#fff;}
.preview-loading,.preview-empty{
  height:100%;display:flex;align-items:center;justify-content:center;gap:9px;
  padding:18px;box-sizing:border-box;color:#5a7088;font-size:12.5px;text-align:center;
}
.preview-empty{flex-direction:column;gap:4px;}
.preview-empty b{color:#2d4a68;font-size:13px;}
.preview-empty span{max-width:460px;line-height:1.7;}
.preview-loading i{
  width:14px;height:14px;border:2px solid #c6d3e1;border-top-color:#2b558b;
  border-radius:50%;animation:qffSpin .8s linear infinite;
}
@keyframes qffSpin{to{transform:rotate(360deg);}}

@media (max-width:1100px){
  .lg-copyright{left:36px;right:36px;}
  #performance-view .perf-table-wrap{min-height:360px;}
}

/* ---------- 深色皮肤兼容 ---------- */
body.ui-style-dark .nav-item,
body.theme-dark .nav-item{color:#dbe7f3;}
body.ui-style-dark .nav-item:hover,
body.ui-style-dark .nav-item.active,
body.theme-dark .nav-item:hover,
body.theme-dark .nav-item.active{color:#ffffff;}
body.ui-style-dark .nav-item.sub,
body.theme-dark .nav-item.sub{color:#c3d6e8;}
body.ui-style-dark .copyright,
body.theme-dark .copyright{color:#8fa4b8;}
body.ui-style-dark .home-policy-link,
body.theme-dark .home-policy-link{border-color:#3d5b7a;color:#cfe0f2;background:transparent;}
body.ui-style-dark .home-policy-link:hover,
body.theme-dark .home-policy-link:hover{border-color:#7fa6cc;background:rgba(127,166,204,.1);}
body.ui-style-dark .policy-doc,
body.theme-dark .policy-doc{color:#d7e3ef;}
body.ui-style-dark .policy-doc h3,
body.theme-dark .policy-doc h3,
body.ui-style-dark .policy-doc b,
body.theme-dark .policy-doc b{color:#eef5fc;}
body.ui-style-dark .policy-doc .policy-meta,
body.theme-dark .policy-doc .policy-meta{background:rgba(88,130,175,.16);color:#b9cde0;border-left-color:#7fa6cc;}
/* s328: keep the 16-column staff table compact; s325 raised rows to 40/42px */
#staff-view .staff-table th{height:32px;font-size:10.5px;font-weight:600;}
#staff-view .staff-table td{height:34px;font-size:11px;}
#staff-view .staff-tree,#staff-view .staff-tree-foot,#staff-view .staff-tabs,#staff-view .staff-tab,#staff-view .staff-filter-grid{font-size:11px;}
#staff-view .staff-actions .btn,#staff-view .staff-actions .ghost{font-size:11px;}
/* s331: 所有页面不再重复显示大标题上方的小号面包屑 */
.crumb.small{display:none !important;}
/* s331: 员工管理字体与全站表格统一，不再单独用 10.5/11px 和蓝色 */
#staff-view .staff-table th{height:34px;font-size:12px;font-weight:600;color:#33454d;}
#staff-view .staff-table td{height:36px;font-size:12.5px;color:#33454d;}
body:not(.ui-style-dark):not(.theme-dark) #staff-view .staff-table th,
body:not(.ui-style-dark):not(.theme-dark) #staff-view .staff-table td{color:#33454d;}
#staff-view .staff-tree,#staff-view .staff-tree-foot,#staff-view .staff-tabs,#staff-view .staff-tab,#staff-view .staff-filter-grid{font-size:12px;color:#33454d;}
#staff-view .staff-actions .btn,#staff-view .staff-actions .ghost,#staff-view .staff-filter-actions .btn,#staff-view .staff-filter-actions .ghost{font-size:12px;}
/* s331: 压缩员工管理顶部，把空间让给列表 */
#staff-view .staff-page-head{padding:2px 0 6px;}
#staff-view .staff-page-head h2{margin:0;font-size:19px;}
#staff-view .staff-page-head .page-sub{margin:2px 0 0;font-size:11.5px;line-height:1.35;}
#staff-view .staff-kpis{gap:6px;margin:0 0 6px;padding:0;}
#staff-view .staff-kpi{padding:6px 10px;min-height:0;border-radius:6px;}
#staff-view .staff-kpi span{font-size:11px;}
#staff-view .staff-kpi b{font-size:19px;line-height:1.15;}
#staff-view .staff-kpi em{display:none;}
#staff-view .staff-main-head{display:flex;align-items:center;gap:10px;padding:4px 8px;min-height:0;}
#staff-view .staff-main-title{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
#staff-view .staff-main-title b{font-size:13px;}
#staff-view .staff-main-head .staff-main-badge{font-size:10.5px;}
#staff-view .staff-tabs{gap:2px;padding:0;margin:0;flex:1 1 auto;}
#staff-view .staff-tab{padding:4px 9px;font-size:12px;line-height:1.2;}
#staff-view .staff-filter{padding:5px 8px;margin:0;}
#staff-view .staff-filter-grid{gap:6px;}
#staff-view .staff-filter-grid label{font-size:11.5px;gap:3px;}
#staff-view .staff-filter-grid input,#staff-view .staff-filter-grid select{height:28px;font-size:12px;}
#staff-view .staff-filter-actions{gap:6px;margin-top:4px;}
#staff-view .staff-filter-actions .btn,#staff-view .staff-filter-actions .ghost{height:27px;padding:0 9px;line-height:25px;}
#staff-view .staff-main{padding-top:0;}
#staff-view .staff-table th{position:sticky;top:0;}
/* 员工编辑弹窗 */
.staff-edit-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px;}
.staff-edit-field{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#33454d;}
.staff-edit-field.wide{grid-column:1 / -1;}
.staff-edit-field span{font-weight:600;}
.staff-edit-field input,.staff-edit-field select,.staff-edit-field textarea{width:100%;box-sizing:border-box;border:1px solid #ccd8dd;border-radius:5px;padding:6px 8px;font-size:12.5px;color:#26373f;background:#fff;}
.staff-edit-field textarea{resize:vertical;}
.staff-edit-tip{margin-top:10px;padding:7px 10px;border-radius:5px;background:#eef5f8;color:#49626d;font-size:11.5px;}
@media (max-width:1000px){.staff-edit-form{grid-template-columns:repeat(2,minmax(0,1fr));}}
