/* s370 新建/编辑弹窗与反馈列表的收口样式，加载在全部样式之后 */
body:not(.ui-style-dark):not(.theme-dark) #modal-body label,
body:not(.ui-style-dark):not(.theme-dark) #modal-body .form-grid label,
body:not(.ui-style-dark):not(.theme-dark) #modal-body .crm-form label,
body:not(.ui-style-dark):not(.theme-dark) #modal-body .asset-form label {
  color: #627489;
  font-size: 12.5px;
  line-height: 1.55;
}
body:not(.ui-style-dark):not(.theme-dark) #modal-body input,
body:not(.ui-style-dark):not(.theme-dark) #modal-body textarea,
body:not(.ui-style-dark):not(.theme-dark) #modal-body select,
body:not(.ui-style-dark):not(.theme-dark) #modal-body .ui-combo-input {
  font-size: 12.5px;
  color: #31475c;
  font-family: inherit;
}
body:not(.ui-style-dark):not(.theme-dark) #modal-body input::placeholder,
body:not(.ui-style-dark):not(.theme-dark) #modal-body textarea::placeholder,
body:not(.ui-style-dark):not(.theme-dark) #modal-body .ui-combo-input::placeholder {
  color: #a7b5c4;
}
body:not(.ui-style-dark):not(.theme-dark) #modal-body .form-sec {
  color: #2d548b;
  font-size: 12.5px;
  font-weight: 600;
}
body:not(.ui-style-dark):not(.theme-dark) #modal-body label.chk {
  color: #40546a;
  font-size: 12.5px;
}
.crm-feedback-grid .crm-created-cell {
  white-space: nowrap;
  color: #31475c;
  font-variant-numeric: tabular-nums;
}
.crm-feedback-grid .crm-created-cell .muted.small {
  display: block;
  margin-top: 2px;
  color: #93a3b3;
  font-size: 10.5px;
}

/* 分页页码跳转 */
.pager-jump{display:inline-flex;align-items:center;gap:4px;margin-left:6px}
.pager-jump input{width:52px;height:27px;padding:0 6px;border:1px solid #cfdae8;border-radius:6px;background:#fff;color:#31475c;font-size:12px;text-align:center}
.pager-jump input:focus{border-color:#2d7ff9;outline:none;box-shadow:0 0 0 2px rgba(45,127,249,.12)}
.pager-jump .pager-btn{min-width:42px;padding:0 8px;font-size:12px}

/* 价格管理：固定窗口，内部表格滚动 */
#staff-view.staff-price-mode{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#staff-view.staff-price-mode #staff-content{flex:1;min-height:0;display:flex;flex-direction:column}
#staff-view.staff-price-mode .staff-page-head,
#staff-view.staff-price-mode .staff-price-kpis{flex:0 0 auto}
#staff-view.staff-price-mode .staff-price-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;margin-bottom:0}
#staff-view.staff-price-mode .staff-price-wrap{flex:1;min-height:0;overflow:auto;margin-bottom:0}
#staff-view.staff-price-mode .staff-price-table thead th{position:sticky;top:0;z-index:3;background:#edf4fc}
#staff-view.staff-price-mode .orders-footer{flex:0 0 auto;margin-top:0}
#staff-view.staff-price-mode .staff-price-card .staff-cert-toolbar{flex:0 0 auto}

/* 员工编辑：归口方向多选、等级预设 */
.staff-dir-checks{display:flex;align-items:center;gap:14px;min-height:32px;padding:5px 10px;border:1px solid #d5dfeb;border-radius:6px;background:#fff}
.staff-dir-checks label{display:inline-flex;align-items:center;gap:5px;margin:0;color:#31475c;font-size:12.5px;cursor:pointer}
.staff-dir-checks input{width:14px;height:14px;margin:0}
.staff-level-presets{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.staff-level-chip{padding:3px 8px;border:1px solid #d3e1f2;border-radius:999px;background:#f3f8ff;color:#2d548b;font-size:11.5px;line-height:1.5;cursor:pointer}
.staff-level-chip:hover{border-color:#8fb8ea;background:#e8f2ff}
.staff-edit-field input[list]{padding-right:10px}

/* 分配角色：三列卡片，取消横向滚动 */
.staff-role-dialog .staff-role-toolbar{display:flex;align-items:center;gap:8px;margin:8px 0 10px;padding:7px 10px;border:1px solid #e0e9f5;border-radius:8px;background:#f7fbff;color:#627489;font-size:12px}
.staff-role-dialog .staff-role-toolbar b{color:#2d548b}
.staff-role-dialog .staff-role-toolbar .mini{margin-left:0}
.staff-role-dialog .staff-role-toolbar #staff-role-none{margin-left:0}
.staff-role-dialog .emp-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:min(48vh,390px);overflow-y:auto;overflow-x:hidden;padding:2px 4px 2px 2px;margin-top:0}
.staff-role-dialog .emp-role-card{position:relative;display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid #d7e3f1;border-radius:8px;background:#f8fbff;color:#31475c;font-size:12.5px;line-height:1.35;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.staff-role-dialog .emp-role-card:hover{border-color:#9ec2ec;background:#f1f7ff}
.staff-role-dialog .emp-role-card input{position:absolute;opacity:0;pointer-events:none}
.staff-role-dialog .emp-role-card .emp-role-name{flex:1;min-width:0;word-break:break-word}
.staff-role-dialog .emp-role-card .emp-role-check{flex:0 0 18px;width:18px;height:18px;border:1px solid #c8d6e8;border-radius:50%;background:#fff;color:transparent;font-size:12px;line-height:16px;text-align:center}
.staff-role-dialog .emp-role-card:has(input:checked){border-color:#2d7ff9;background:#eaf3ff;box-shadow:0 0 0 2px rgba(45,127,249,.08)}
.staff-role-dialog .emp-role-card:has(input:checked) .emp-role-check{border-color:#2d7ff9;background:#2d7ff9;color:#fff}
.staff-role-dialog .staff-role-account{margin-bottom:2px}

/* 部门人员查看：站内弹窗，不再跳出带主菜单的新窗口 */
.dept-people-dialog{display:flex;flex-direction:column;gap:10px;min-height:280px}
.dept-people-head{display:flex;align-items:baseline;gap:10px;padding:2px 0 8px;border-bottom:1px solid #e3ebf5}
.dept-people-head b{color:#20364d;font-size:14px}
.dept-people-head span{color:#7b8fa5;font-size:12px}
.dept-people-table{max-height:58vh;overflow:auto}
.dept-people-table thead th{position:sticky;top:0;z-index:2;background:#edf4fc}

/* 证书管理头部与操作 */
.staff-cert-head-actions{display:flex;align-items:center;gap:8px}
.staff-cert-tabtitle span b{color:#2d548b}

@media (max-width:900px){
  .staff-role-dialog .emp-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pager-jump input{width:46px}
}
@media (max-width:560px){
  .staff-role-dialog .emp-role-grid{grid-template-columns:1fr}
}

/* ===== s377 页面固定视口、证书下拉与多选、顶部工具条收口 ===== */

/* 语言资产：页面不整体滚动，表格内部纵向滚动 */
#assets-view{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#assets-view > .page-title-row,
#assets-view > .asset-type-tabs{flex:0 0 auto}
#assets-view > .orders-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#assets-view > .orders-card > .orders-actions,
#assets-view > .orders-card > .orders-filter{flex:0 0 auto}
#assets-view .table-wrap{display:block;flex:1;min-height:0;width:100%;overflow:auto !important}
#assets-view table.asset-grid{min-width:900px;width:100%}
#assets-view > .orders-card > .orders-footer,
#assets-view > .orders-card > .copyright{flex:0 0 auto}

/* 结算管理：固定表头与表尾，列表内部滚动 */
#settlement-view > .orders-card{overflow:hidden}
#settlement-view .orders-actions,
#settlement-view .orders-filter{flex:0 0 auto}
#settlement-view .table-wrap{flex:1;min-height:0;overflow:auto}
#settlement-view .orders-footer,
#settlement-view .copyright{flex:0 0 auto}
#settlement-view #st-page-jump{width:52px;height:27px;border:1px solid #cfdae8;border-radius:6px;background:#fff;color:#31475c;font-size:12px;text-align:center}

/* 项目管理：整页固定，表格内部滚动 */
#projects-view{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#projects-view #projects-content{flex:1;min-height:0;display:flex;flex-direction:column}
#projects-view .page-title-row,
#projects-view .pm-tabs{flex:0 0 auto}
#projects-view .pm-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#projects-view .pm-actions,
#projects-view .pm-filter,
#projects-view .pm-summary-strip,
#projects-view .pm-meta-strip{flex:0 0 auto}
#projects-view .pm-table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}
#projects-view .orders-footer,
#projects-view .pm-foot-note{flex:0 0 auto}
#projects-view .pm-report{flex:1;min-height:0;overflow:auto}

/* 员工档案：列表页固定视口，底部横向/纵向滚动留在表格内 */
#staff-view.staff-list-mode{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#staff-view.staff-list-mode #staff-content{flex:1;min-height:0;display:flex;flex-direction:column}
#staff-view.staff-list-mode #staff-content > .staff-page-head,
#staff-view.staff-list-mode #staff-content > .staff-kpis{flex:0 0 auto}
#staff-view.staff-list-mode .staff-layout{flex:1;min-height:0;align-items:stretch}
#staff-view.staff-list-mode .staff-main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#staff-view.staff-list-mode .staff-main-head,
#staff-view.staff-list-mode .staff-filter,
#staff-view.staff-list-mode .staff-actions,
#staff-view.staff-list-mode .staff-foot-note{flex:0 0 auto}
#staff-view.staff-list-mode .staff-table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}
#staff-view.staff-list-mode .staff-table thead th{position:sticky;top:0;z-index:3;background:#edf4fc}

/* 证书编辑：名称/类别可搜索可自由输入，等级为多选标签 */
#modal-body .ui-combo{position:relative}
#modal-body .ui-combo .ui-combo-input{width:100%;box-sizing:border-box}
.cert-grade-picker{display:flex;flex-wrap:wrap;gap:6px;padding:7px 8px;border:1px solid #dfe7e6;border-radius:4px;background:#fbfdff}
.cert-grade-chip{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 9px;border:1px solid #d3e1f2;border-radius:999px;background:#f3f8ff;color:#2d548b;font-size:11.5px;line-height:1.4;cursor:pointer}
.cert-grade-chip:hover{border-color:#8fb8ea;background:#e8f2ff}
.cert-grade-chip input{width:13px;height:13px;margin:0;padding:0;border:0;accent-color:#2d7ff9;flex:0 0 auto}
.cert-grade-chip:has(input:checked){border-color:#2d7ff9;background:#eaf3ff;color:#1f5f9e;font-weight:600}
.cert-grade-extra{width:100%;height:32px;margin-top:6px;padding:0 9px;border:1px solid #dfe7e6;border-radius:3px;background:#fff;font-size:12px}
.staff-cert-form .cert-grade-extra{height:32px}

/* 顶栏待办/工具在窄屏收成图标，给主菜单留出宽度，避免与菜单重叠 */
.sidebar{padding-right:440px}
@media (max-width:1700px){
  .top-action .ta-label{display:none}
  .ico-btn.top-action{width:30px;height:30px;padding:0;justify-content:center}
  .top-right{gap:8px}
  .user-name{display:none}
  .sidebar{padding-right:270px}
  .nav-item{padding:0 8px;font-size:13.5px}
}
@media (max-width:1200px){
  .sidebar{padding-left:20px;padding-right:260px}
  .side-logo{padding-right:16px}
  .side-logo strong{font-size:18px}
  .nav-item{padding:0 7px;font-size:12.5px}
}

/* s378 员工编辑：语种/方向可多选、等级证书多选、字段补齐 */
.staff-edit-field > span{font-weight:600;color:#5b7086;font-size:12px}
.staff-multi-field .staff-multi{position:relative}
.staff-multi-field .staff-multi summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:34px;padding:5px 9px;border:1px solid #ccd8dd;border-radius:5px;background:#fff;cursor:pointer;font-weight:400}
.staff-multi-field .staff-multi summary::-webkit-details-marker{display:none}
.staff-multi-field .staff-multi-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;color:#31475c}
.staff-multi-field .staff-multi-caret{color:#7f95aa;font-size:12px}
.staff-multi-menu{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);padding:8px;border:1px solid #d7e2ec;border-radius:6px;background:#fff;box-shadow:0 12px 28px rgba(31,63,96,.16)}
.staff-multi-options{display:flex;flex-wrap:wrap;gap:6px;max-height:190px;overflow:auto}
.staff-multi-opt{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 8px;border:1px solid #d9e4ee;border-radius:999px;background:#f7fbff;color:#34506a;font-size:11.5px;font-weight:400;cursor:pointer;white-space:nowrap}
.staff-multi-opt input{width:13px;height:13px;margin:0;padding:0;border:0;accent-color:#2d7ff9}
.staff-multi-opt:has(input:checked){border-color:#2d7ff9;background:#eaf3ff;color:#1f5f9e}
.staff-multi-add{display:flex;gap:6px;margin-top:8px}
.staff-multi-add input{flex:1;height:28px;padding:0 8px;border:1px solid #d7e2ec;border-radius:4px;font-size:12px}
.staff-multi-add button{height:28px;padding:0 10px;border:1px solid #cbdbea;border-radius:4px;background:#f2f7fd;color:#2d548b;font-size:12px;cursor:pointer;white-space:nowrap}
.staff-level-field .staff-level-picker{display:flex;flex-wrap:wrap;gap:6px;padding:7px 8px;border:1px solid #dfe7e6;border-radius:5px;background:#fbfdff}
.staff-level-field .staff-level-chip{font-weight:400}
.staff-level-chip.active{border-color:#2d7ff9;background:#eaf3ff;color:#1f5f9e;font-weight:600}
.staff-level-add{display:flex;gap:6px;margin-top:6px}
.staff-level-add input{flex:1;height:30px;padding:0 8px;border:1px solid #d7e2ec;border-radius:4px;font-size:12px}
.staff-level-add button{height:30px;padding:0 10px;border:1px solid #cbdbea;border-radius:4px;background:#f2f7fd;color:#2d548b;font-size:12px;cursor:pointer;white-space:nowrap}

/* 员工筛选：六个条件 + 查询/重置保持一行 */
@media (min-width:1280px){
  .staff-filter-line{flex-wrap:nowrap}
  .staff-filter-line .staff-filter-grid{grid-template-columns:minmax(150px,1.3fr) minmax(118px,1fr) minmax(122px,.95fr) minmax(96px,.8fr) minmax(88px,.7fr) minmax(100px,.82fr) !important;gap:6px !important}
}


/* s382 项目中心实数据 + 个人记事三页签 */
#projects-view .pm-filter select,
#projects-view .pm-filter input{background:#fff;color:#2b4148;border-color:#d8e3e6}
#projects-view .pm-filter .pm-kw-label{flex:1;min-width:220px}
#projects-view .pm-filter .pm-kw-label input{width:100%}
#projects-view .pm-table tbody tr{cursor:pointer}
#projects-view .pm-table tbody tr.sel{background:#e9f6f5;box-shadow:inset 3px 0 0 #14b8b8}
#projects-view .pm-folder{display:inline-block;min-width:54px;padding:2px 7px;border-radius:10px;font-size:10.5px;text-align:center}
#projects-view .pm-folder.yes{color:#1d7a63;background:#e7f7f0}
#projects-view .pm-folder.no{color:#9a6a2b;background:#fff4df}
#projects-view .pm-root-path{font-weight:500;color:#4d6b73;word-break:break-all}
#projects-view .pm-lan-tip{color:#8aa79a;font-size:10.5px}
#projects-view .fb-badge.ok{background:#e7f7f0;color:#1d7a63;border-color:#bfe6d5}
#projects-view .pm-report-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;padding:16px}
#projects-view .pm-report-split h4{margin:0 0 12px;font-size:13px;color:#334c55}
#projects-view .pm-rank{display:grid;grid-template-columns:120px minmax(40px,1fr) 54px;align-items:center;gap:8px;margin:7px 0;font-size:11.5px;color:#51686f}
#projects-view .pm-rank span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#projects-view .pm-rank i{display:block;height:8px;border-radius:5px;background:linear-gradient(90deg,#14b8b8,#7fd8ce);min-width:4px}
#projects-view .pm-rank b{text-align:right;color:#2b444b}
#projects-view .pm-source-note{margin:10px 16px 0;padding-top:10px;border-top:1px dashed #e1eaec;color:#93a3a7;font-size:10.5px;line-height:1.7}
.pm-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.pm-detail-item{padding:8px 10px;border:1px solid #e7eeef;background:#fbfdfd;min-width:0}
.pm-detail-item.wide{grid-column:1/-1}
.pm-detail-item span{display:block;color:#8b9a9e;font-size:10.5px}
.pm-detail-item b{display:block;margin-top:3px;color:#2b4148;font-size:12.5px;font-weight:500;word-break:break-all}
.pm-detail-note{margin-top:10px;padding:8px 10px;background:#fff8ea;color:#8a6629;font-size:11px;border:1px solid #f1e2bf}
.pm-files-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.pm-files-crumbs{flex:1;min-width:0;white-space:nowrap;overflow:auto}
.pm-crumb{border:0;background:none;color:#147f81;font-size:12px;cursor:pointer;padding:3px 4px}
.pm-crumb:hover{text-decoration:underline}
.pm-files-crumbs i{color:#9aabad;margin:0 2px;font-style:normal}
.pm-files-toolbar input{width:210px;border:1px solid #d8e3e6;padding:6px 8px;font-size:12px}
.pm-files-path{margin-bottom:8px;color:#7a8b90;font-size:11px;word-break:break-all}
.pm-files-wrap{max-height:52vh;overflow:auto}
.pm-files-table td{padding:6px 8px;font-size:12px}
.pm-files-table .pm-file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px}
.pm-files-table tr.pm-dir-row{cursor:pointer}
.pm-files-table tr.pm-dir-row:hover{background:#f1f8f7}
.pm-files-unavailable{padding:18px 8px}
.pm-files-unavailable b{display:block;color:#b47715;font-size:15px;margin-bottom:8px}
.pm-files-unavailable p{margin:0 0 12px;color:#7d8d92;font-size:12px;line-height:1.8}
.pm-path-box{padding:10px 12px;border:1px dashed #d8e3e6;background:#fbfdfd;color:#405a62;font-size:12px;word-break:break-all}
body.theme-dark #projects-view .pm-filter select,
body.theme-dark #projects-view .pm-filter input{background:#1b2c31;color:#dce8ea;border-color:#334a50}
body.theme-dark #projects-view .pm-table tbody tr.sel{background:#1b3a3a}
body.theme-dark .pm-detail-item{background:#1b2c31;border-color:#2f444a}
body.theme-dark .pm-detail-item b{color:#e6f0f1}
body.theme-dark .pm-files-path,body.theme-dark .pm-files-unavailable p{color:#92a6ad}
body.theme-dark .pm-path-box{background:#1b2c31;border-color:#3a5258;color:#dce8ea}

/* 个人记事 */
.personal-memo-tabs{display:flex;align-items:center;gap:4px;margin-bottom:10px;border-bottom:1px solid #e5edee}
.personal-memo-tab{border:0;background:none;padding:8px 14px;color:#657b81;font-size:12.5px;cursor:pointer;border-bottom:2px solid transparent}
.personal-memo-tab.active{color:#0f8f91;border-bottom-color:#14b8b8;font-weight:600}
.personal-memo-tab em{font-style:normal;font-size:10px;color:#9aa9ac;margin-left:5px}
.personal-memo-summary{display:flex;align-items:center;gap:16px;padding:7px 12px;margin-bottom:10px;background:#f4fbfa;border:1px solid #dff0ed;color:#477069;font-size:11.5px}
.personal-memo-summary b{font-size:14px;color:#147f81;margin-right:3px}
.personal-memo-summary .overdue b{color:#c0563d}
.personal-memo-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.personal-memo-toolbar .spacer{flex:1}
.personal-memo-toolbar input[type=search]{width:260px;border:1px solid #d8e3e6;padding:6px 9px;font-size:12px}
.personal-memo-table{width:100%}
.personal-memo-table td,.personal-memo-table th{padding:7px 9px;font-size:12px}
.personal-memo-table tr.done td{color:#9aa9ac;text-decoration:line-through}
.personal-memo-table tr.done td:first-child,.personal-memo-table tr.done td:last-child{text-decoration:none}
.pm-prio{display:inline-block;padding:1px 7px;border-radius:9px;font-size:10px;background:#f0f4f5;color:#6b7d82}
.pm-prio.高{background:#fdeceb;color:#b94a3b}
.pm-prio.低{background:#eef5ff;color:#4f77a8}
.pm-due.overdue{color:#c0563d;font-weight:600}
.pm-due.today{color:#b47715;font-weight:600}
.personal-memo-empty{padding:34px;text-align:center;color:#93a3a7;font-size:12px}
.personal-acct-pwd{display:flex;align-items:center;gap:6px}
.personal-acct-pwd code{font-family:inherit;letter-spacing:1px;color:#3d565e}
.personal-acct-pwd button{border:0;background:none;color:#147f81;font-size:11px;cursor:pointer;padding:0 2px}
.personal-acct-url{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.personal-memo-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.personal-memo-form .wide{grid-column:1/-1}
.personal-memo-form label{display:block;font-size:11px;color:#70858a;margin-bottom:4px}
.personal-memo-form input,.personal-memo-form select,.personal-memo-form textarea{width:100%;border:1px solid #d8e3e6;padding:7px 9px;font-size:12.5px;box-sizing:border-box}
.personal-memo-form textarea{min-height:90px;resize:vertical}
body.theme-dark .personal-memo-tab{color:#a9bcc0}
body.theme-dark .personal-memo-tab.active{color:#6fe0d5}
body.theme-dark .personal-memo-summary{background:#15302a;border-color:#295249;color:#9bc9ba}
body.theme-dark .personal-memo-summary b{color:#83d3b6}
body.theme-dark .personal-memo-toolbar input[type=search],
body.theme-dark .personal-memo-form input,
body.theme-dark .personal-memo-form select,
body.theme-dark .personal-memo-form textarea{background:#1b2c31;color:#dce8ea;border-color:#334a50}

/* s382 个人记事表格：固定列宽，保证操作列完整可见 */
.personal-memo-table{table-layout:fixed}
.personal-memo-table th,.personal-memo-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.personal-memo-table td:last-child,.personal-memo-table th:last-child{overflow:visible;text-overflow:clip}
.personal-memo-table td:last-child .link-btn{margin-right:8px}

/* s383 员工多手机号 / 邮箱列 */
.staff-phone-field{align-items:flex-start}
.staff-phone-list{display:flex;flex-direction:column;gap:6px}
.staff-phone-row{display:flex;align-items:center;gap:6px}
.staff-phone-row input{flex:1;border:1px solid #d8e3e6;padding:6px 8px;font-size:12.5px;box-sizing:border-box}
.staff-phone-row .mini{width:26px;height:26px;line-height:1;padding:0}
#staff-phone-add{margin-top:6px;align-self:flex-start}
.staff-mail{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.theme-dark .staff-phone-row input{background:#1b2c31;color:#dce8ea;border-color:#334a50}

/* s383 项目详情工作项 */
.pm-work{margin-top:14px;border-top:1px solid #e2ecee;padding-top:10px}
.pm-work-tabs{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.pm-work-tab{border:1px solid #d8e3e6;background:#fff;color:#4b666d;font-size:12px;padding:5px 12px;cursor:pointer}
.pm-work-tab.active{background:#147f81;border-color:#147f81;color:#fff}
.pm-work-note{margin-left:auto;font-size:11px;color:#93a3a7}
.pm-work-wrap{max-height:330px;overflow:auto;border:1px solid #e2ecee}
.pm-work-table{table-layout:fixed;min-width:1080px}
.pm-work-table th,.pm-work-table td{padding:6px 8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-work-table .pm-work-name{white-space:normal}
.pm-work-sub{font-size:10.5px;color:#93a3a7;margin-top:2px}
.pm-pay{display:inline-block;padding:1px 8px;border-radius:9px;font-size:10.5px;background:#f0f4f5;color:#6b7d82}
.pm-pay.unpaid{background:#fdeceb;color:#b94a3b}
.pm-pay.paid{background:#eaf6ef;color:#2f7a55}
.pm-empty{padding:22px;text-align:center;color:#93a3a7;font-size:12px}
.pm-mono{font-variant-numeric:tabular-nums;color:#48656d}

/* s383 项目文件：本机局域网服务提示 */
.pm-files-hint{font-size:11px;color:#8a9ba0;line-height:1.7;margin:8px 0 0}
.pm-files-badge{font-size:10.5px;padding:2px 8px;border-radius:9px;background:#f2f6f7;color:#7b8f94}
.pm-files-badge.ok{background:#eaf6ef;color:#2f7a55}
body.theme-dark .pm-work{border-color:#2c4247}
body.theme-dark .pm-work-tab{background:#1b2c31;border-color:#334a50;color:#a9bcc0}
body.theme-dark .pm-work-tab.active{background:#177f80;border-color:#177f80;color:#fff}
body.theme-dark .pm-work-wrap{border-color:#2c4247}
body.theme-dark .pm-pay{background:#22363b;color:#a9bcc0}

/* s383c 项目详情弹窗：限制在视口内，工作项区内部滚动 */
.modal-card.pm-detail-card{display:flex;flex-direction:column;max-height:calc(100vh - 72px);}
.modal-card.pm-detail-card #modal-body{overflow:auto;flex:1 1 auto;}
.modal-card.pm-detail-card .pm-work-body{max-height:none;}
.modal-card.pm-detail-card .pm-work-table{min-width:0;}
.modal-card.pm-detail-card .pm-work-table .pm-work-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.35;}
.modal-card.pm-detail-card .pm-work-wrap{max-height:44vh;}
.modal-card.pm-detail-card .pm-work-table .pm-work-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.35;}
.modal-card.pm-detail-card .pm-work-table .pm-work-name{display:table-cell;white-space:normal;}

/* s384 项目管理：表头排序 + 导出工作报表 */
.pm-sort-th,.staff-sort-th{cursor:pointer;user-select:none;white-space:nowrap}
.pm-sort-th .sort-ind,.staff-sort-th .sort-ind{margin-left:4px;color:#9fb0b4;font-size:11px}
.pm-sort-th .sort-ind.on,.staff-sort-th .sort-ind.on{color:#147f81;font-weight:700}
.pm-sort-th:hover,.staff-sort-th:hover{background:#eef7f8}
body.theme-dark .pm-sort-th:hover,body.theme-dark .staff-sort-th:hover{background:#20363b}
.pm-report-actions{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #e2ecee}
.pm-report-actions .muted{font-size:12px;color:#93a3a7}
.pm-report-modal{display:flex;flex-direction:column;gap:10px}
.pm-report-row{display:flex;align-items:center;gap:8px}
.pm-report-row>label{width:96px;flex:0 0 auto;font-size:12.5px;color:#4b666d}
.pm-report-row select,.pm-report-row input[type=date]{flex:1 1 auto;height:30px;border:1px solid #d8e3e6;border-radius:3px;padding:0 8px;font-size:13px;background:#fff}
.pm-report-hint{margin:0;font-size:11.5px;color:#93a3a7;line-height:1.6}
.pm-report-radios{display:flex;gap:34px;padding:10px 12px;border:1px solid #e2ecee;border-radius:3px;background:#fafcfc}
.pm-report-radios b{display:block;font-size:12.5px;color:#3f5b62;margin-bottom:6px}
.pm-report-radios label{display:block;font-size:12.5px;color:#4b666d;margin:4px 0;cursor:pointer}
.pm-report-radios input{margin-right:6px}
body.theme-dark .pm-report-actions{border-color:#2c4247}
body.theme-dark .pm-report-row>label{color:#a9bcc0}
body.theme-dark .pm-report-row select,body.theme-dark .pm-report-row input[type=date]{background:#1b2c31;border-color:#334a50;color:#dbe8ea}
body.theme-dark .pm-report-radios{background:#1b2c31;border-color:#2c4247}
body.theme-dark .pm-report-radios b,body.theme-dark .pm-report-radios label{color:#c8d8db}
.pm-report-row select{max-width:320px}
.pm-report-row .mini{flex:0 0 auto;white-space:nowrap}
.pm-report-radios label{display:flex;align-items:center;gap:6px}
.pm-report-radios>div{flex:1 1 50%;min-width:0}
.pm-report-radios label{white-space:nowrap;display:flex;align-items:center;gap:6px}
.pm-report-radios label input{flex:0 0 auto;margin:0}
.pm-report-radios{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px}
.pm-report-radios>div{min-width:0}
.pm-report-radios label{display:flex;align-items:center;gap:6px;white-space:nowrap}
.pm-report-radios label input{flex:0 0 auto;margin:0}
.pm-report-radios input[type=radio]{width:13px;height:13px;min-width:13px;flex:0 0 13px;margin:0}
/* s385 员工分类人数 + 编辑弹窗分区布局 */
.staff-tree-all,.staff-tree-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.staff-tree-num{font-style:normal;font-size:11px;line-height:16px;min-width:18px;padding:0 5px;border-radius:9px;background:#eef3f7;color:#5a7386;text-align:center;flex:0 0 auto}
.staff-tree-all.active .staff-tree-num,.staff-tree-item.active .staff-tree-num{background:rgba(255,255,255,.28);color:#fff}
.staff-edit-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px;padding-top:10px;border-top:1px dashed #dbe6ec}
.staff-edit-section:first-of-type{border-top:0;padding-top:0}
.staff-edit-section>h4{grid-column:1/-1;margin:0;font-size:12.5px;color:#2f6f8f;letter-spacing:.3px}
.staff-edit-field.staff-phone-field{grid-column:span 2}
.staff-phone-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1000px){.staff-edit-section{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-edit-field.staff-phone-field{grid-column:1/-1}}
/* s385 手机字段整行显示 */
.staff-edit-field.staff-phone-field{grid-column:1/-1}
.staff-phone-field .staff-phone-list{width:100%}
.staff-phone-field .staff-phone-row{width:100%}
.staff-phone-field .staff-phone-row input{width:100%;flex:1 1 auto;min-width:0}

/* s386: 员工表按列宽展开，表头不再被压缩截断 */
.staff-table-wrap>.staff-table{width:100%;min-width:1860px;}
.staff-table thead th{white-space:nowrap;}

/* s392 员工分类人数清晰化 / 合同状态 / 列拖动 / 工商查询 */
.staff-tree-num{font-size:12px;font-weight:700;line-height:18px;min-width:22px;color:#1c5570;background:#e2edf5;border:1px solid #c9deea}
.staff-tree-all.active .staff-tree-num,.staff-tree-item.active .staff-tree-num{background:rgba(255,255,255,.32);color:#fff;border-color:transparent}
.staff-table th.staff-col-drag{cursor:grab;user-select:none}
.staff-table th.staff-col-drag::after{content:"⋮⋮";font-size:9px;color:#a9c1d0;margin-left:4px;letter-spacing:-1px;opacity:0;transition:opacity .15s} .staff-table th.staff-col-drag:hover::after{opacity:1}
.staff-table th.staff-col-dragging{opacity:.45;background:#eef6fa}
.staff-contract{display:inline-block;font-size:11.5px;line-height:18px;padding:0 8px;border-radius:9px;background:#eef2f5;color:#6b7f8c;white-space:nowrap}
.staff-contract.signed{background:#e5f4ec;color:#2c7a4f}
.staff-contract.pending{background:#fdf1e2;color:#a2661c}
.staff-contract.unsigned{background:#f0f1f3;color:#7a8794}
.cust-name-inline{display:flex;gap:8px;align-items:center}
.cust-name-inline input{flex:1 1 auto}
.cust-lookup-box{margin-top:6px;border:1px solid #d5e3ec;border-radius:8px;background:#f7fbfd;padding:8px 10px;max-height:210px;overflow:auto}
.cust-lookup-loading,.cust-lookup-empty{font-size:12px;color:#6b7f8c}
.cust-lookup-head{font-size:12px;color:#2f6f8f;margin-bottom:6px}
.cust-lookup-item{display:block;width:100%;text-align:left;border:1px solid #e2ebf1;background:#fff;border-radius:6px;padding:6px 9px;margin-bottom:6px;cursor:pointer;font-size:12px;color:#4a6070}
.cust-lookup-item:hover{border-color:#8fc0d6;background:#f2fafd}
.cust-lookup-item b{display:block;font-size:12.5px;color:#22485c}
.cust-lookup-item span{display:block;color:#7c8f9b;margin:1px 0}
.cust-lookup-item em{font-style:normal;color:#5d7380}
.crm-approve-sum{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;background:#f6fafc;border:1px solid #e0ebf2;border-radius:8px;padding:10px 12px;margin-bottom:4px}
.crm-approve-sum div{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:#5c7280}
.crm-approve-sum b{color:#22485c}
.crm-form-note{grid-column:1/-1;font-size:11.5px;color:#8a6a2f;background:#fdf7ec;border:1px solid #f0e2c8;border-radius:6px;padding:5px 9px}
.staff-table-wrap>.staff-table{min-width:2060px}
.staff-table-wrap>.staff-table.staff-table-full{min-width:2246px}
.staff-table-wrap{overflow:auto}

/* s399 员工统计单行 + 列表上移 */
#staff-view .staff-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 8px;}
#staff-view .staff-kpi{min-height:0;padding:7px 12px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;}
#staff-view .staff-kpi span{display:inline;font-size:11px;color:#708086;}
#staff-view .staff-kpi b{display:inline;margin:0;font-size:19px;line-height:1.1;}
#staff-view .staff-kpi em{display:inline;margin-left:auto;font-size:10px;color:#9aa7aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%;}
@media (max-width:1360px){#staff-view .staff-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:900px){#staff-view .staff-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}
.crm-list-filter{gap:8px 12px;flex-wrap:wrap;}
.crm-list-filter .crm-kw-label{display:flex;align-items:center;gap:6px;}
.crm-list-filter .crm-kw-label input{width:220px;}
.crm-invoice-stats{margin-top:10px;}
.crm-invoice-stats table{font-size:12px;}

/* s399: 合同 / 客户反馈列表顶部翻页，无需滚动到底部 */
.crm-top-pager { display:inline-flex; align-items:center; gap:6px; margin-left:10px; font-size:12px; color:#5b6675; }
.crm-top-pager .pager-btn { min-width:26px; height:26px; padding:0 6px; }
.crm-top-pager .pager-jump { display:inline-flex; align-items:center; gap:4px; }
.crm-top-pager .pager-jump input { width:56px; height:26px; }
.crm-top-pager .pager-jump button { height:26px; padding:0 8px; }
.crm-top-pager .pager-jump button, .crm-top-pager .pager-btn { white-space:nowrap; }
.crm-top-pager .pager-jump { white-space:nowrap; }
.crm-top-pager-bar { display:flex; justify-content:flex-end; align-items:center; gap:6px; padding:2px 2px 6px; }
.crm-top-pager-bar .crm-top-pager { margin-left:0; }
.crm-top-pager { gap:4px; }
.crm-top-pager .pager-jump { gap:3px; }
.crm-top-pager .pager-jump input { width:38px; padding:0 4px; }
.crm-top-pager .pager-jump button { padding:0 6px; }
.crm-top-pager-bar{padding:2px 16px 6px 2px;}
/* s399: 弹窗超高时内部滚动，保证底部按钮始终可见 */
#modal .modal-card { display:flex; flex-direction:column; max-height:calc(100vh - 48px); }
#modal .modal-body { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; }
#modal .modal-card footer, #modal #modal-foot { flex:0 0 auto; }


/* ===== s400: 全站整页滚动，适配小屏 ===== */
html, body { height:auto; min-height:100%; }
body { overflow-y:auto; }
.app { height:auto; min-height:100vh; }
.main { height:auto; min-height:calc(100vh - 84px); overflow:visible; }
.page { height:auto; min-height:0; overflow:visible; }
.page.editor { height:calc(100vh - 84px); overflow:hidden; }

#orders-view, #assets-view, #settlement-view, #projects-view,
#staff-view, #staff-view.staff-list-mode, #staff-view.staff-price-mode {
  display:block; overflow:visible; height:auto; padding-bottom:18px;
}
#assets-view > .orders-card, #projects-view .pm-card,
#staff-view.staff-price-mode .staff-price-card { display:block; flex:none; overflow:visible; }
#staff-view #staff-content, #staff-view.staff-list-mode #staff-content { display:block; min-height:0; }
#staff-view .staff-layout, #staff-view.staff-list-mode .staff-layout { align-items:flex-start; }
#staff-view .staff-main, #staff-view.staff-list-mode .staff-main { display:block; overflow:visible; }

#orders-view .table-wrap, #crm-pane-archive .table-wrap, #assets-view .table-wrap,
#settlement-view .table-wrap, #projects-view .pm-table-wrap,
#staff-view .staff-table-wrap, #staff-view .staff-price-wrap {
  max-height:none; min-height:0; overflow-x:auto; overflow-y:visible;
}

/* 侧栏员工分类数字：默认黑色，选中蓝色 */
.staff-tree-num { color:#182430; background:#eef3f7; border-color:#d7e3ee; }
.staff-tree-all.active .staff-tree-num, .staff-tree-item.active .staff-tree-num {
  background:#fff; color:#1f63b0; border-color:#c9dcf0; font-weight:700;
}

/* 员工表头列宽拖动 */
.staff-table thead th { position:relative; }
.staff-table.is-col-resizing, .staff-table.is-col-resizing * { cursor:col-resize !important; user-select:none; }
.page[hidden] { display:none !important; }
.qff-col-grip { z-index:6; }
.staff-table th.staff-col-drag::after { pointer-events:none; }
.staff-tree .staff-tree-num { color:#182430 !important; }
.staff-tree .staff-tree-all.active .staff-tree-num,
.staff-tree .staff-tree-item.active .staff-tree-num { color:#1f63b0 !important; background:#fff; border-color:#c9dcf0; }
.qff-col-grip { right:0; width:6px; }
.staff-table thead th { padding-right:8px; }
body.editor-window .main { height:100vh; min-height:0; }
body.editor-window .page.editor { height:100vh; }

/* s400b: 员工表表头留白压缩、列宽微调，避免表头文字被省略 */
#staff-view .staff-table thead th { padding: 0 8px; }
.staff-table-wrap > .staff-table { min-width: 2180px; }
.staff-table-wrap > .staff-table.staff-table-full { min-width: 2380px; }

/* s401: 综合软件工作项窗口 */
.pm-wi{display:flex;flex-direction:column;gap:9px}
.pm-wi-tabs{display:flex;flex-wrap:wrap;gap:8px}
.pm-wi-tab{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border:1px solid #d7e3ec;background:#fff;color:#3f5666;font-size:12.5px;cursor:pointer}
.pm-wi-tab b{display:inline-block;min-width:26px;padding:0 6px;height:18px;line-height:18px;text-align:center;border-radius:9px;background:#eef3f7;color:#5a7285;font-size:11.5px;font-weight:600}
.pm-wi-tab:hover{border-color:#9dc2e0;background:#f6fbff}
.pm-wi-tab.on{border-color:#1f63b0;background:#1f63b0;color:#fff}
.pm-wi-tab.on b{background:rgba(255,255,255,.22);color:#fff}
.pm-wi-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:8px 10px;border:1px solid #e2ebee;background:#f8fbfc}
.pm-wi-filters label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#4f6470;white-space:nowrap}
.pm-wi-filters input[type="search"],.pm-wi-filters input[type="text"],.pm-wi-filters input[type="date"],.pm-wi-filters select{height:28px;padding:0 8px;border:1px solid #cfdde5;border-radius:3px;background:#fff;font-size:12px;color:#243942}
.pm-wi-filters input[type="search"]{width:230px}
.pm-wi-filters select{min-width:92px}
.pm-wi-sum{display:flex;align-items:center;gap:10px;padding:6px 10px;border:1px solid #dbe7f4;background:#f3f8fd;font-size:12px;color:#3c5566}
.pm-wi-sum b{color:#1f63b0;font-size:12.5px}
.pm-wi-sum i{width:1px;height:12px;background:#cfdde9}
.pm-wi-sum em{margin-left:auto;font-style:normal;color:#8a9aa8;font-size:11.5px}
.pm-wi-wrap{overflow:auto;border:1px solid #e4edf0}
.pm-wi-table{width:100%;min-width:1980px}
.pm-wi-table th{white-space:nowrap}
.pm-wi-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-wi-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.pm-wi-row{cursor:pointer}
.pm-wi-row.open td{background:#eef6fd!important}
.pm-wi-type{display:inline-block;padding:1px 7px;border-radius:9px;font-size:11px;line-height:17px;background:#eef2f5;color:#5c7280}
.pm-wi-type.client{background:#e8f2fd;color:#1f63b0}
.pm-wi-type.employee{background:#e9f6ee;color:#2c7a4f}
.pm-wi-type.resource{background:#fdf2e4;color:#a2661c}
.pm-wi-stat{font-size:11.5px}
.pm-wi-stat.done{color:#2c7a4f}
.pm-wi-stat.todo{color:#a2661c}
.pm-wi-detail-row td{padding:0!important;background:#f8fbfd}
.pm-wi-detail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px;padding:12px 14px}
.pm-wi-field span{display:block;font-size:11px;color:#8093a0;line-height:1.5}
.pm-wi-field b{display:block;font-size:12.5px;color:#243942;font-weight:500;line-height:1.55;word-break:break-all}
.pm-wi-field.wide{grid-column:1/-1}
.pm-wi .orders-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:2px 0 0;border:0;background:transparent}
.pm-wi-card .modal-body{padding-bottom:4px}
.pm-wi-field{min-width:0}
.pm-wi-field b{overflow-wrap:anywhere;word-break:break-word}
.pm-wi-table col.c-wi-numb{width:92px}
.pm-wi-detail{max-width:calc(100vw - 150px)}
.pm-wi-detail-row td{padding:0!important}
.pm-wi-detail{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:1040px}
.cust-name-inline .btn{flex:0 0 auto;white-space:nowrap}
.cust-name-inline{gap:6px}


/* s409 项目统计/结算勾选 + 项目工作项 */
.pm-flag-cell{text-align:center;}
.pm-check{width:18px;height:18px;line-height:16px;padding:0;border:1px solid #c9d6dd;border-radius:3px;background:#fff;
  color:#0b7a4b;font-size:12px;font-weight:700;cursor:pointer;vertical-align:middle;}
.pm-check:hover{border-color:#0b7a4b;}
.pm-check.on{background:#e6f6ee;border-color:#0b7a4b;}
.pm-pw .pm-pw-head{padding:2px 2px 10px;border-bottom:1px solid #e6edf1;margin-bottom:10px;}
.pm-pw .pm-pw-title{display:flex;align-items:baseline;gap:10px;font-size:14px;color:#1f2d33;}
.pm-pw .pm-pw-title b{font-size:15px;}
.pm-pw .pm-pw-title span{color:#5b6d76;}
.pm-pw .pm-pw-meta{margin-top:6px;font-size:12px;color:#5b6d76;}
.pm-pw .pm-pw-meta b{color:#0b7a4b;}
.pm-pw .pm-wi-table{min-width:100%;}

/* s411 项目文件：来源标签 */
.pm-files-badge.warn{background:#fff3e3;color:#a4661c}
.pm-src-tag{display:inline-block;font-size:10px;padding:1px 7px;border-radius:8px;background:#eaf6ef;color:#2f7a55}
.pm-src-tag.share{background:#eef3f5;color:#5d777e}
body.theme-dark .pm-src-tag{background:#1d3a2f;color:#7fc9a5}
body.theme-dark .pm-src-tag.share{background:#26383d;color:#9db3b8}
.pm-table th.pm-flag-th{white-space:normal;line-height:1.22;padding:6px 4px;text-align:center;word-break:keep-all}
.pm-table td.pm-flag-cell{text-align:center}
.pm-table .pm-check{width:20px;height:20px}

/* s415 项目管理：所选项目工具条 + 统计结算绿勾 + 删除按钮 */
.pm-selbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:7px 12px;margin:6px 0 8px;background:#f3faf7;border:1px solid #d5e7e0;border-radius:8px;font-size:12px;color:#33474f}
.pm-selbar>b{color:#0b5d4a;font-size:12.5px}
.pm-selbar label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;cursor:pointer}
.pm-selbar label input[type=checkbox]{width:14px;height:14px;margin:0}
.pm-sel-amount input{width:118px;height:26px;padding:0 6px;border:1px solid #c9d6dd;border-radius:4px;font-size:12px}
.pm-sel-amount input:disabled{background:#eef2f3}
.pm-sel-numb{font-weight:700;color:#0b5d4a;font-size:13px;min-width:56px}
.pm-sel-folder{white-space:nowrap;color:#4a5b63}
.pm-sel-folder .btn.mini{height:24px;padding:0 8px;margin-left:4px;font-size:12px}
.pm-sel-remark{color:#4a5b63;max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-sel-remark em{font-style:normal;color:#26383f}
.pm-tick{color:#0fa45b;font-weight:700;font-size:15px;line-height:1}
.pm-flag-cell{text-align:center}
.btn.danger{color:#b3261e;border-color:#e7c0bb;background:#fff}
.btn.danger:hover:not(:disabled){background:#fdf1ef;border-color:#d99b92}
.btn.danger:disabled{opacity:.5}

/* s421 二级标题统一加粗、加深：区块小标题 / 分区标题 / 卡片标题 */
.crm-pane-head h3,
.crm-subhead b,
.crm-fb-panel-title,
.panel-head h3,
.ent-note h3,
.ent-box h3,
.personal-settings-body h3,
.oc-success h3,
.manual-box h4,
.mgmt-detail-group h4,
.mgmt-schema-group h4,
.staff-edit-section>h4,
#projects-view .pm-report-split h4,
.crm-opp-col h4,
.home-todo-head h4{font-weight:700!important;color:#12262b!important}
.crm-fb-panel-title em,
.crm-pane-head .sub{color:#5f757a}
.crm-tab{color:#4f666b}
.crm-tab.on{font-weight:700;color:#0a6f6f}
body.theme-dark .crm-pane-head h3,
body.theme-dark .crm-subhead b,
body.theme-dark .crm-fb-panel-title,
body.theme-dark .panel-head h3,
body.theme-dark .ent-note h3,
body.theme-dark .ent-box h3,
body.theme-dark .mgmt-detail-group h4,
body.theme-dark .mgmt-schema-group h4{color:#e6f2f0!important}
.crm-list-filter .btn.teal.small{height:30px;margin-left:2px}

/* s421 审批流程配置页 + 流程只读提示 */
.ent-approval{display:flex;flex-direction:column;gap:14px}
.ent-flow-list{display:flex;flex-direction:column;gap:6px}
.ent-flow-step{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #dfe8e8;border-radius:6px;background:#fbfdfd;font-size:13px;color:#1b333a}
.ent-flow-step b{font-size:11.5px;color:#0b7f7f;font-weight:700;min-width:52px}
.ent-flow-add{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ent-flow-foot{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:10px;border-top:1px dashed #e1ebea}
.ent-flow-foot .muted{font-size:11.5px;color:#7a8f93;max-width:70%}
.ent-flow-fb{display:flex;gap:18px;flex-wrap:wrap}
.ent-flow-fb label{display:flex;flex-direction:column;gap:5px;font-size:12.5px;color:#41585d}
.ent-flow-fb select{min-width:200px;height:30px;border:1px solid #c9d6dd;border-radius:4px;padding:0 8px;background:#fff;color:#1b333a}
.crm-flow-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;border:1px solid #d6e9e6;border-radius:6px;background:#f4fbfa;font-size:12px;color:#1b333a}
.crm-flow-note b{color:#0b7f7f;font-weight:700}
.crm-flow-note span{font-weight:600;color:#12262b}
.crm-flow-note em{font-style:normal;color:#6e858a;font-size:11.5px;flex-basis:100%}
body.theme-dark .crm-flow-note{background:#1d2b2e;border-color:#2f4448;color:#dbe9e7}
body.theme-dark .crm-flow-note span{color:#eaf5f3}
body.theme-dark .ent-flow-step{background:#1d2b2e;border-color:#2f4448;color:#e3efed}

/* s423 统计条单行化 + 投诉统计与图表并排 + 通知两行 */
.crm-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 8px}
.crm-kpi{min-height:0;height:38px;padding:0 12px;display:flex;align-items:center;gap:8px}
.crm-kpi .k{font-size:12px;color:#5d7378;flex:none}
.crm-kpi .v{margin:0;font-size:17px;line-height:1;flex:none}
.crm-kpi .s{margin:0 0 0 auto;font-size:10.5px;color:#95a5a9;max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-fb-summary{padding:10px 12px}
.crm-fb-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;align-items:start}
.crm-fb-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;align-content:start}
.crm-fb-kpi{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:6px 12px}
.crm-fb-kpi span{display:inline;margin:0;font-size:11.5px;color:#5d7378}
.crm-fb-kpi b{display:inline;margin:0;font-size:19px;line-height:1}
.crm-fb-kpi em{display:none}
.crm-notice-item{grid-template-rows:auto auto;align-items:center}
.crm-notice-item b{grid-column:1;grid-row:1}
.crm-notice-item em{grid-column:2;grid-row:1;align-self:center}
.crm-notice-item span{grid-column:1/-1;grid-row:2}
@media(max-width:1200px){.crm-fb-body{grid-template-columns:1fr}.crm-fb-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.crm-fb-body{align-items:stretch}
.crm-fb-kpis{grid-template-rows:1fr 1fr;align-content:stretch;height:100%}
.crm-fb-kpi{min-height:0}

/* s424 无下拉主菜单页去掉页头说明，操作按钮并入页签栏 */
.crm-tabbar{align-items:center}
.crm-tabbar .ghost.small{margin-left:10px}
.asset-type-tabs{align-items:center}
.pm-tabs .fb-badge{margin-left:0}
.perf-tab-note{font-size:12px;color:#8fa0a3;align-self:center}
.crm-tabbar .crm-tab-sum{white-space:nowrap;flex:none;margin-left:10px}
.asset-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 12px}
.asset-head-row .asset-type-tabs{margin:0}

/* s427 项目详情工作项：页签栏新增按钮、工作项表单、合计金额 */
.pm-work-add{margin-left:8px;padding:4px 12px;font-size:12px;line-height:1.5;height:28px}
.pm-work-form{grid-template-columns:repeat(3,minmax(0,1fr))}
.pm-work-form label.pm-work-form-wide,.pm-work-form label.wide{grid-column:1/-1}
.pm-work-form textarea{min-height:56px}
.pm-work-total{grid-column:1/-1;text-align:right;font-size:12.5px;color:#52666b;border-top:1px dashed #e2ebea;padding-top:8px}
.pm-work-total b{color:#147f81;font-size:14px;margin-left:4px}
@media (max-width:1000px){.pm-work-form{grid-template-columns:1fr 1fr}}

/* s431 全站布局巡检：统计条恢复两行可读、宽表保列宽 */
.crm-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 8px}
.crm-kpi{display:block;height:auto;min-height:58px;padding:8px 12px 7px}
.crm-kpi .k{display:block;font-size:11px;line-height:1.3;color:#6f8085}
.crm-kpi .v{display:block;margin:2px 0 0;font-size:20px;line-height:1.1}
.crm-kpi .s{display:block;margin:1px 0 0;max-width:100%;font-size:10px;line-height:1.3}
.crm-toolbar .crm-stage-bar{flex:1 1 100%;justify-content:flex-start;padding:2px 0 0}

#staff-view .staff-kpi{display:block;min-height:60px;padding:8px 12px 7px}
#staff-view .staff-kpi span{display:block;font-size:11px;line-height:1.3}
#staff-view .staff-kpi b{display:block;margin-top:2px;font-size:21px;line-height:1.1}
#staff-view .staff-kpi em{display:block;margin:1px 0 0;max-width:100%;font-size:10px;line-height:1.3}

#orders-view .table-wrap,#projects-view .pm-table-wrap{overflow:auto}
#orders-grid{min-width:1850px}
#orders-grid th,#orders-grid td{white-space:nowrap}
.staff-table{min-width:1480px}
.staff-table th,.staff-table td{white-space:nowrap}
.asset-table{min-width:1180px}
.asset-table th,.asset-table td{white-space:nowrap}

.pm-tab-note{display:none}

/* s434 工作项行内编辑/删除 */
.pm-work-ops{white-space:nowrap}
.pm-work-ops .mini{margin-right:4px}
.pm-work-ops .mini:last-child{margin-right:0}
.mini.danger{color:#b3261e;border-color:#f0c8c4}
.mini.danger:hover{border-color:#b3261e;color:#8c1d18;background:#fff5f4}
.pm-work-del{padding:14px 16px;font-size:13px;line-height:1.8;color:#3d4b4f}
.pm-work-del b{color:#1f2d30}

/* s435 项目详情：加宽弹窗，避免新增操作列后项目名称过窄 */
.modal-card.pm-detail-card{width:1360px;max-width:96vw}
