/* ============================================================================
   浙赛 OA · 界面精修层（2026-10-23）
   ----------------------------------------------------------------------------
   这是一层**纯样式覆盖**：不改任何业务 HTML/JS，删掉 <link> 就回到原样。
   目标：简约、清晰、精致 —— 具体做四件事：
     ① 收紧纵向节奏：顶部说明压成一行、卡片间距统一，让**数据表在第一屏就能看见**；
     ② 统一排版层级：卡片标题 15/600、辅助文字 12.5/1.7、数字等宽（tabular-nums）；
     ③ 表格去噪：表头浅底、横向分隔线减淡、去掉竖向网格线、hover 行高亮、粘性表头；
     ④ 控件统一高度：按钮 / 下拉 / 输入框 32px（小号 28px），圆角 8–10px。
   ⚠️ 只覆盖「观感」相关属性（间距/字号/颜色/圆角/阴影），不碰 display/layout 关键值，
      避免把各模块自己的布局逻辑弄坏。
   ============================================================================ */

/* ---------- ① 顶部说明：一行截断，不再占三行 ---------- */
.modHead{padding:12px 18px}
.modHead .mt b{font-size:15px;letter-spacing:-.01em}
.modHead .mt span{display:block;font-size:12.5px;line-height:1.6;color:var(--text-3);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(72vw,980px)}

/* ---------- ② 卡片与文字层级 ---------- */
.card{border-color:#EBEEF3;border-radius:14px;padding:16px 18px;margin-bottom:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.035)}
.card > h3{font-size:15px;font-weight:600;letter-spacing:-.01em;margin-bottom:12px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.card > h3 .asHdTip{font-size:12px;font-weight:400;color:var(--text-3);margin-left:auto;
  font-variant-numeric:tabular-nums}
.card .tip{font-size:12.5px;line-height:1.75;color:var(--text-2)}
.card > .tip{background:#FAFBFD;border:1px solid #F0F2F6;border-radius:10px;padding:8px 12px}

/* ---------- ③ 工资表页头：周期 + 页签同一行，紧凑 ---------- */
.salHead{margin-bottom:10px;gap:10px}
.salHead > b{font-size:13px;color:var(--text-2);font-weight:500}
.salHead .salPeriod{height:32px}
.salHead .tabRail{margin:0}
.tabRail{padding:3px;border-radius:10px;background:#F2F4F7}
.tabRail .tb{height:26px;padding:0 11px;border-radius:8px;font-size:12.5px;color:var(--text-2)}
.tabRail .tb.on{background:#fff;color:var(--primary);box-shadow:0 1px 2px rgba(16,24,40,.08)}

/* ---------- ④ KPI 四卡：同样高度、数字更醒目但不再「大字压人」 ---------- */
.salKpi{margin-top:10px;padding-top:10px}
.salKpi .kpiRow{gap:10px;margin-bottom:12px}
.salKpi .kpi{padding:11px 13px;border-radius:12px;box-shadow:none}
.salKpi .kpi .kVal{font-size:20px;font-weight:600;letter-spacing:-.2px}
.salKpi .kpi .kLbl{font-size:12px}

/* ---------- ⑤ 流程条与操作行：说明单独成行，不再和按钮挤在一起 ---------- */
.salFlow .stepBar{margin:0 0 10px}
.stepBar .sbTxt b{font-size:12.5px}
.stepBar .sbTxt span{font-size:11.5px;color:var(--text-3)}
.scBar{gap:8px;row-gap:8px}
/* 操作行里那种「很长一句解释」：整行独占 + 浅底块，读起来不再像被挤到边上 */
.scBar > .tip,.scBar > span.tip{flex:1 1 100%;margin:0;background:#FAFBFD;border:1px solid #F0F2F6;
  border-radius:8px;padding:7px 11px;font-size:12.5px;line-height:1.7;color:var(--text-2)}
/* 工资表：月份 + 重新生成 + 长说明（说明整行独占，别再挤在按钮右边） */
.salGenRow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.salGenRow > .tip{flex:1 1 100%;margin:0;min-width:0!important;background:#FAFBFD;
  border:1px solid #F0F2F6;border-radius:8px;padding:7px 11px;font-size:12.5px;line-height:1.7;color:var(--text-2)}
.salGenRow input[type=month]{height:32px;border-radius:8px;border-color:#E3E7EE}
#salMain .card > .tip{max-width:1100px}

/* ---------- ⑥ 签字凭证：一行摘要 + 默认收起（展开才看签名图） ---------- */
.salSigBox{margin:8px 0 10px;border:1px solid #EDF0F4;border-radius:10px;background:#FAFBFD}
.salSigBox > summary{list-style:none;cursor:pointer;padding:8px 12px;font-size:12.5px;
  color:var(--text-2);display:flex;align-items:center;gap:6px;user-select:none}
.salSigBox > summary::-webkit-details-marker{display:none}
.salSigBox > summary::before{content:"▸";color:var(--text-3);font-size:10px;display:inline-block;
  transition:transform .15s}
.salSigBox[open] > summary::before{transform:rotate(90deg)}
.salSigBox > summary:hover{color:var(--primary)}
.salSigBody{padding:2px 12px 10px;border-top:1px solid #F0F2F6}
.salSigRow{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #F3F5F8;flex-wrap:wrap}
.salSigRow:last-of-type{border-bottom:0}
.salSigImg{max-height:48px;max-width:200px;border:1px solid #E9ECF2;border-radius:7px;background:#fff;padding:2px 5px}
.salSigWrap{gap:8px;margin:6px 0 2px}
.salSigCard{padding:5px 8px;border-radius:9px}
.salSigCard img{max-height:56px;max-width:220px}
.salSigCard .salSigHd{font-size:11.5px;margin-bottom:1px}
.salSigCard .salSigFt{font-size:11px}

/* ---------- ⑦ 表格：去噪 + 可读性 ---------- */
.scWrap{border-color:#E9ECF2;border-radius:12px}
table.scTbl thead th,table.asTbl thead th{
  background:#F7F9FC;color:#66707F;font-size:12px;font-weight:500;letter-spacing:.02em;
  padding:8px 10px;border-bottom:1px solid #E6EAF0;border-right:0}
table.scTbl td,table.asTbl td{border-bottom:1px solid #F1F3F6;border-right:0;font-size:13px}
table.scTbl tbody tr:hover td,table.asTbl tbody tr:hover td{background:#FAFBFD}
table.scTbl tbody tr:last-child td,table.asTbl tbody tr:last-child td{border-bottom:0}
table.scTbl .salNum,table.scTbl td.u-tc,table.asTbl .salNum{font-variant-numeric:tabular-nums}
table.scTbl thead th.tblChk,table.scTbl td.tblChk{padding-left:12px;width:36px}
table.scTbl.salDimTbl th,table.scTbl.salDimTbl td{padding:8px 10px}
table.scTbl.salDimTbl.tblDense th,table.scTbl.salDimTbl.tblDense td{padding:4px 10px}
table.scTbl.salDimTbl tbody tr.salDimRow{cursor:pointer}
table.scTbl.salDimTbl tbody tr.salDimRow.on td{background:#F5F9FF}
table.scTbl.salDimTbl tbody tr.salDimRow.on:hover td{background:#F0F6FF}

/* ---------- ⑧ 控件统一高度（按钮 / 下拉 / 输入） ---------- */
.btn{height:32px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;
  gap:6px;border-radius:9px;font-size:13px;line-height:1}
.btn.sm{height:28px;padding:0 10px;border-radius:8px;font-size:12px}
.btn.pri{box-shadow:0 1px 2px rgba(0,137,255,.24)}
select,.asBarCtl{height:32px;border-radius:8px;border-color:#E3E7EE;font-size:13px;color:var(--text)}
input[type=text],input[type=password],input[type=date],input[type=number]{height:32px;border-radius:8px;
  border-color:#E3E7EE;font-size:13px}

/* ---------- ⑨ 表格工具条：与表格贴紧 ---------- */
.tblBar{margin:0 0 8px;gap:6px}
.tblBar .tblCnt{font-size:12px;color:#8A93A0;letter-spacing:.01em}
.tblPanel{border-radius:11px;box-shadow:0 12px 32px rgba(16,24,40,.14)}

/* ---------- ⑩ 细滚动条（表格区域） ---------- */
.scWrap::-webkit-scrollbar{width:10px;height:10px}
.scWrap::-webkit-scrollbar-thumb{background:#DCE2EA;border-radius:8px;border:2px solid #fff}
.scWrap::-webkit-scrollbar-thumb:hover{background:#C9D2DE}
.scWrap::-webkit-scrollbar-track{background:transparent}

/* ---------- ⑪ 窄屏：KPI 两列、页签可换行 ---------- */
@media (max-width:1280px){
  .salKpi .kpiRow,.salKpi > div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .card{padding:14px 14px}
  .modHead .mt span{max-width:60vw}
}
@media (max-width:760px){
  .card{border-radius:12px}
  .modHead{padding:10px 12px}
  .salHead{gap:8px}
  .salHead .tabRail{width:100%;overflow-x:auto}
}
