/* 薪酬包管理 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f7fa; }

/* 登录 */
.login-wrap { min-height: 100vh; }
.login-box { width: 340px; margin: 18vh auto 0; background: #fff; border-radius: 12px;
  padding: 36px 32px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.login-box h1 { margin: 0 0 4px; font-size: 24px; color: #303133; }
.login-box .sub { color: #909399; font-size: 13px; margin: 0 0 24px; }

/* 主框架 */
.aside { background: #fff; display: flex; flex-direction: column; border-right: 1px solid #e4e7ed; }
.logo { font-size: 18px; font-weight: 700; color: #409eff; padding: 18px 20px 10px; }
.logout { margin: auto 12px 12px; cursor: pointer; color: #909399; font-size: 13px; text-align: center;
  border: 1px solid #e4e7ed; border-radius: 6px; padding: 6px 0; }
.logout:hover { color: #f56c6c; border-color: #f56c6c; }
.header { background: #fff; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e4e7ed; }
.header-title { font-size: 17px; font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; color: #606266; font-size: 13px; }
.header-tools .who { margin-left: 10px; color: #909399; }
.main { padding: 16px; }

/* 通用 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hint { color: #909399; font-size: 12.5px; }
.dim { color: #b0b3b8; }
.qmark { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center;
  background: #ecf5ff; color: #409eff; border-radius: 50%; font-size: 11px; margin-left: 4px; cursor: help; }
.derived { color: #7a5af8; font-weight: 600; }
.dirty { color: #e6a23c; }
.up { color: #67c23a; } .down { color: #f56c6c; }
.rate-ok { color: #67c23a; font-weight: 600; }
.rate-warn { color: #e6a23c; font-weight: 600; }
.rate-bad { color: #f56c6c; font-weight: 700; }
.rate-empty { color: #c0c4cc; }

/* 监控表：月度视图内嵌的 季度/半年度 列底色（与月份列区分） */
.el-table .mon-q { background-color: #eef4ff !important; }
.el-table .mon-h { background-color: #fdf6ec !important; }

/* 「总数据 | 各人员类别」拆分视图：该指标不按人员类别拆分 → 整行淡色。
   故意不加 !important：让十字准星（cx-row/cx-col/cx-hit）、季度/半年度列底色和悬停高亮都能盖住它 */
.el-table tr.xv-ns td { background-color: #f8f9fb; }

/* 工作台 */
.stat { text-align: center; padding: 6px 0; }
.stat .num { font-size: 30px; font-weight: 700; color: #303133; }
.stat .lb { color: #909399; font-size: 13px; margin-top: 4px; }
.todo-item { display: flex; justify-content: space-between; align-items: center;
  padding: 4px 6px; border-radius: 4px; }
.todo-item:hover { background: #f5f7fa; }
.todo-item .done { color: #67c23a; text-decoration: line-through; }
.lb { color: #606266; font-size: 12.5px; margin-bottom: 6px; }

/* 看板 */
.dash-top { }
.kpi-card .kpi-name { color: #606266; font-size: 13px; }
.kpi-val { font-size: 26px; font-weight: 700; color: #303133; margin: 6px 0; }
.kpi-sub { font-size: 12px; color: #909399; line-height: 1.8; }

/* 事业部徽章：标注各表单当前所属事业部（工具栏内为第一个元素，去掉左侧间距） */
.bu-tag { margin-left: 6px; }
.toolbar .bu-tag { margin-left: 0; }

/* 预算表：月度拆分合计与年度预算不一致时标红 */
.bud-check-odd { color: #f56c6c; font-weight: 700; }

/* 提醒行 */
.remind-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* 表格头部固定列背景 */
.el-table .mon-th { background: #fafafa; }

/* 十字准星：悬停单元格 → 整行整列着色（列多时便于对齐表头读数）
   写在 mon-q/mon-h 之后，悬停时盖住季度/半年度的列底色；顺序也保证 cx-hit 压过 cx-row/cx-col */
.el-table td.cx-row { background-color: #ecf5ff !important; }
.el-table td.cx-col { background-color: #ecf5ff !important; }
.el-table th.cx-col { background-color: #d9ecff !important; }
.el-table td.cx-hit { background-color: #d9ecff !important; }

/* 十字准星（点击固定）：点中的那格行列一直亮着（鼠标移开也不消失），再点一次或按 Esc 取消。
   比悬停深一档，两者同时存在时能看出"悬停位置"和"标记位置" */
.el-table td.cxp-row { background-color: #d9ecff !important; }
.el-table td.cxp-col { background-color: #d9ecff !important; }
.el-table th.cxp-col { background-color: #b3d8ff !important; }
.el-table td.cxp-hit { background-color: #b3d8ff !important; }

/* 监控表：悬停统计口径行显示实际计算公式（固定定位，跟随悬停格子） */
.formula-tip {
  position: fixed; z-index: 4000; max-width: min(380px, calc(100vw - 24px));
  padding: 8px 11px; border-radius: 6px; background: rgba(48, 49, 51, .96);
  color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  font-size: 12.5px; line-height: 1.65; pointer-events: none;
  transform: translateY(-100%);
}
.formula-tip.below { transform: none; }
.formula-tip .ft-title { font-size: 11px; color: #a8c7fa; letter-spacing: .5px; margin-bottom: 2px; }
.formula-tip .ft-text { font-weight: 600; word-break: break-word; }
.formula-tip .ft-raw {
  margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .14);
  color: #c0c4cc; font-family: Consolas, monospace; font-size: 11.5px; word-break: break-all;
}

/* 近三年实际列（预算表/监控表，只读时灰色显示，供对比不抢眼） */
.hist-cell { color: #606266; }

/* 工作台上可点击的卡片 */
.click-card { cursor: pointer; }

/* 问题清单：详情弹窗里的长文本与回复（保留换行） */
.issue-detail { white-space: pre-wrap; background: #fafafa; border: 1px solid #ebeef5;
  border-radius: 4px; padding: 8px 10px; font-size: 13px; color: #303133; }

/* 经营分析：措施截止日期已过且未闭环 → 整行淡红 */
.el-table .ana-overdue td { background-color: #fef0f0 !important; }
