/* ============================================================
   研发数智化系统 - 样式
   设计原则：浅色、留白、少颜色。财务系统要的是看得清、不出错。
   ============================================================ */
/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2328;
  background: #f6f7f9;
}

a { color: #185fa5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  min-width: 28px;            /* 徽标内是 RDE 三个字母，宽度随内容自适应 */
  padding: 0 7px;
  height: 28px;
  background: #185fa5;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text { font-size: 15px; font-weight: 600; color: #1f2328; }

.nav { display: flex; gap: 4px; }

.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
}
.nav-link:hover { background: #f2f4f7; text-decoration: none; }
.nav-link.active { background: #e8f0fa; color: #185fa5; font-weight: 500; }

/* ---------- 主区域 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 120px);
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  color: #9aa1ab;
  font-size: 12px;
}

/* ---------- 页头 ---------- */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-head h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.page-sub { margin: 0; color: #6b7280; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d5d8dd;
  border-radius: 6px;
  background: #fff;
  color: #1f2328;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #f2f4f7; text-decoration: none; }

.btn-primary {
  background: #185fa5;
  border-color: #185fa5;
  color: #fff;
}
.btn-primary:hover { background: #124b85; }

.btn-ghost { border-color: transparent; background: transparent; color: #6b7280; }
.btn-ghost:hover { background: #eceef2; }

/* ---------- 提示条 ---------- */
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success { background: #e7f6ec; border: 1px solid #b7e0c4; color: #1a6b33; }
.alert-error   { background: #fdecec; border: 1px solid #f3c2c2; color: #a12b2b; }
.error-list { margin: 0; padding-left: 18px; }

/* ---------- 状态统计条 ---------- */
.stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13px;
}
.stat-chip:hover { border-color: #c5cbd3; text-decoration: none; }
.stat-chip.active { border-color: #185fa5; background: #e8f0fa; color: #185fa5; }
.stat-num { font-size: 17px; font-weight: 600; color: #1f2328; }
.stat-chip.active .stat-num { color: #185fa5; }

/* ---------- 搜索栏 ---------- */
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.input-search, .select, .field input, .field select, .field textarea {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d5d8dd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2328;
  background: #fff;
}
.input-search { width: 240px; }
.select { min-width: 130px; }

.input-search:focus, .select:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #185fa5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

/* ---------- 表格 ---------- */
.table-wrap {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: #fafbfc;
  border-bottom: 1px solid #e4e6eb;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f1f4;
  vertical-align: top;
}

.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: none; }

.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; }
.strong { font-weight: 500; }
.muted { color: #8b929c; }
.num { text-align: right; white-space: nowrap; }
.actions { text-align: right; white-space: nowrap; }
.to { color: #a0a6af; }

.link {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  font-family: inherit;
  color: #185fa5;
  cursor: pointer;
}
.link:hover { text-decoration: underline; }
.link-danger { color: #c0392b; margin-left: 10px; }
.inline-form { display: inline; }

/* ---------- 状态徽章 ---------- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.badge-draft  { background: #eef1f5; color: #5b6572; }
.badge-active { background: #e7f6ec; color: #1a6b33; }
.badge-done   { background: #e8f0fa; color: #185fa5; }
.badge-void   { background: #fdecec; color: #a12b2b; }

/* ---------- 空态 ---------- */
.empty {
  background: #fff;
  border: 1px dashed #d5d8dd;
  border-radius: 8px;
  padding: 56px 24px;
  text-align: center;
}
.empty-title { margin: 0 0 6px; font-size: 15px; color: #4b5563; }
.empty-sub { margin: 0; font-size: 13px; color: #8b929c; }

/* ---------- 表单 ---------- */
.card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 24px;
}

.form-card { max-width: 900px; }

.group-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f4;
  color: #1f2328;
}
.group-title:not(:first-child) { margin-top: 28px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 13px; margin-bottom: 6px; color: #374151; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }

.hint { margin: 5px 0 0; font-size: 12px; color: #9aa1ab; line-height: 1.5; }

.required { color: #c0392b; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0f1f4;
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 16px; }
  .input-search { width: 100%; }
}

/* ============================================================
   第二阶段：费用归集相关样式
   ============================================================ */

/* 项目下拉框显示「编号 + 名称」，需要更宽 */
.select-wide { min-width: 240px; max-width: 320px; }

/* 月份选择框 */
.input-month {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d5d8dd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2328;
  background: #fff;
}
.input-month:focus {
  outline: none;
  border-color: #185fa5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

/* 费用类别标签 */
.type-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f2f4f7;
  border-radius: 4px;
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}

/* 备注列太宽会把表格撑开，限制一下 */
.remark-cell { max-width: 220px; }

/* 表尾合计行 */
.data-table tfoot td {
  padding: 12px 14px;
  background: #fafbfc;
  border-top: 1px solid #e4e6eb;
}
.total-label { text-align: right; color: #6b7280; font-size: 13px; }

/* 页头的合计金额，要显眼一点 */
.amount-strong { color: #1f2328; font-weight: 600; }

/* 六类费用说明：默认收起 */
.type-guide {
  margin-top: 20px;
  padding: 12px 16px;
  background: #fafbfc;
  border: 1px solid #e4e6eb;
  border-radius: 6px;
}
.type-guide summary {
  cursor: pointer;
  font-size: 13px;
  color: #185fa5;
  outline: none;
}
.type-guide-list { margin: 14px 0 4px; font-size: 13px; }
.type-guide-list dt {
  font-weight: 500;
  color: #1f2328;
  margin-top: 12px;
}
.type-guide-list dt:first-child { margin-top: 0; }
.type-guide-list dd {
  margin: 4px 0 0;
  color: #5b6572;
  line-height: 1.7;
}

/* ============================================================
   第二阶段：费用汇总相关样式
   ============================================================ */

/* ---------- 其他相关费用限额卡片 ---------- */
.limit-card {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid;
}

.limit-ok  { background: #f2f9f4; border-color: #c6e4d0; }
.limit-bad { background: #fdf3f2; border-color: #f0c9c4; }

.limit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.limit-title { font-size: 14px; font-weight: 600; }
.limit-ok  .limit-title { color: #1a6b33; }
.limit-bad .limit-title { color: #a12b2b; }

.limit-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.limit-ok  .limit-badge { background: #dcefe2; color: #1a6b33; }
.limit-bad .limit-badge { background: #f8dcd8; color: #a12b2b; }

.limit-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5b6572;
}
.limit-bad .limit-desc { color: #8a3a35; }
.limit-desc strong { color: #1f2328; font-weight: 600; }

/* ---------- 三个关键数字 ---------- */
.limit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.limit-cell {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 14px 16px;
}

.limit-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.limit-value { font-size: 19px; font-weight: 600; color: #1f2328; letter-spacing: -0.2px; }
.limit-note { font-size: 11.5px; color: #9aa1ab; margin-top: 6px; line-height: 1.5; }

/* 超额的数字标红 */
.text-danger { color: #c0392b; }

/* ---------- 汇总交叉表 ---------- */
.summary-table th,
.summary-table td { white-space: nowrap; }

.summary-table td.num { min-width: 96px; }

/* 没有发生的费用显示短横，比一堆 0.00 干净 */
.zero { color: #c8ccd2; }

/* 表下脚注 */
.table-footnote {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8b929c;
  line-height: 1.6;
}

/* 窄屏时限额三列改成单列 */
@media (max-width: 820px) {
  .limit-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   第四阶段：工时管理相关样式
   ============================================================ */

/* 大数字后面的单位，字号要小、颜色要淡，不抢数字 */
.unit { font-size: 13px; font-weight: 400; color: #8b929c; }

/* 工作内容列：允许换行，限制宽度，防止一条长文本把表格撑爆 */
.content-cell {
  max-width: 420px;
  white-space: normal;
  line-height: 1.6;
  color: #4b5563;
}

/* 次级区块标题，跟表单里的 group-title 复用样式但放在表格之间 */
.section-title { margin-top: 28px; }

/* 填写提示卡：教用户怎么写工作内容 */
.writing-tip {
  margin-top: 10px;
  padding: 12px 16px;
  background: #fafbfc;
  border-left: 3px solid #185fa5;
  border-radius: 4px;
}
.tip-title {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #185fa5;
}
.writing-tip ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #5b6572;
  line-height: 1.8;
}
.writing-tip strong { color: #1f2328; font-weight: 600; }



/* ============================================================
   第五阶段：固定资产相关样式
   ============================================================ */

/* 表格里的小字，用于型号、存放地点等次要信息 */
.small { font-size: 12.5px; }

/* 说明卡：页面底部的口径解释，与数据表拉开距离 */
.guide-card { margin-top: 28px; }
.guide-text {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.8;
}
.guide-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #5b6572;
  line-height: 1.9;
}
.guide-list strong { color: #1f2328; font-weight: 600; }

/* 公式单独一行，等宽字体 + 底色，一眼能看出是计算方法 */
.formula {
  margin: 8px 0;
  padding: 10px 14px;
  background: #f6f8fa;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  color: #1f2328;
}

/* 自动计算结果的展示框，视觉上做成「不可编辑的输入框」 */
.calc-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  background: #f6f8fa;
  border: 1px dashed #d6dbe2;
  border-radius: 6px;
}
.calc-label { font-size: 12px; color: #8b929c; }
.calc-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 16px;
  font-weight: 600;
  color: #185fa5;
}


/* ============================================================
   第六阶段：研发过程记录相关样式
   ============================================================ */

/* 紧凑型表格：用于页面底部的辅助统计表，不抢主表视线 */
.data-table.compact { font-size: 13px; }
.data-table.compact th,
.data-table.compact td { padding: 8px 12px; }


/* ============================================================
   第七阶段：知识库 + 风险自测（两个独立模块，互不影响业务页面）
   颜色沿用全局：主色 #185fa5，正文 #1f2328，弱化 #6b7280
   ============================================================ */

/* ---------- 知识库：板块跳转条 ---------- */
.kb-nav {
  position: sticky;          /* 长页面里滚动时吸在顶部，随时能跳板块 */
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 10px 0;
  background: #f6f7f9;       /* 与页面底色一致，盖住下面的内容 */
  border-bottom: 1px solid #e4e6eb;
}
.kb-nav-item {
  padding: 5px 12px;
  font-size: 13px;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 14px;
}
.kb-nav-item:hover { color: #185fa5; border-color: #b9d2ea; text-decoration: none; }

/* ---------- 知识库：板块 ---------- */
.kb-section {
  margin-bottom: 30px;
  scroll-margin-top: 60px;   /* 锚点跳转时留出跳转条的高度 */
}
.kb-head { margin-bottom: 12px; }
.kb-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid #185fa5;
}
.kb-sub { margin: 0 0 4px; font-size: 13px; color: #6b7280; padding-left: 13px; }
.kb-basis { margin: 0; font-size: 12px; color: #9aa1ab; padding-left: 13px; }

/* 单张卡片：白底 + 细边框，正文放宽行高便于阅读 */
.kb-block {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 10px;
}
.kb-block h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: #1f2328; }
.kb-block p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #3d4650; }

/* 风险提示：浅黄底，与正文区分，但不用红色以免整页跳眼 */
.kb-warn {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffaf0;
  border-left: 3px solid #e0a23c;
  border-radius: 0 4px 4px 0;
}
.kb-warn-title { font-size: 12px; font-weight: 600; color: #a06a12; margin-bottom: 4px; }
.kb-warn ul { margin: 0; padding-left: 18px; }
.kb-warn li { font-size: 13px; line-height: 1.8; color: #5b4a2e; }

.kb-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #f2f6fb;
  border-radius: 6px;
  font-size: 13px;
  color: #33475c;
  line-height: 1.8;
}
.kb-footer { margin-top: 8px; }
.kb-footer-text { margin: 0; font-size: 12.5px; color: #8b929c; line-height: 1.8; }

/* ---------- 风险自测：问卷 ---------- */
.quiz-group { margin-bottom: 16px; }
.quiz-group-head { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f4; }
.quiz-group-head h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }

.quiz-item { padding: 14px 0; border-bottom: 1px dashed #eef0f3; }
.quiz-item:last-child { border-bottom: none; padding-bottom: 0; }

.quiz-q { display: flex; gap: 10px; }
.quiz-no {
  flex: 0 0 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  color: #185fa5;
  background: #eef4fa;
  border-radius: 11px;
}
.quiz-text { margin: 0; font-size: 13.5px; line-height: 1.7; color: #1f2328; }

.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 32px; }
.quiz-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 13px;
  color: #4b5563;
  background: #fafbfc;
  border: 1px solid #e4e6eb;
  border-radius: 14px;
  cursor: pointer;
}
.quiz-opt:hover { border-color: #b9d2ea; }
.quiz-opt input { margin: 0; cursor: pointer; }
/* 选中态：整颗胶囊变蓝，一眼看出这题答了 */
.quiz-opt:has(input:checked) {
  color: #185fa5;
  background: #eef4fa;
  border-color: #185fa5;
}
.quiz-actions { margin-bottom: 40px; }

/* ---------- 风险自测：结果 ---------- */
.score-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
  background: #fff;
}
.score-ok  { border-left: 4px solid #2f9e5c; }
.score-mid { border-left: 4px solid #e0a23c; }
.score-bad { border-left: 4px solid #c0392b; }

.score-main { display: flex; align-items: baseline; gap: 2px; }
.score-num { font-size: 42px; font-weight: 700; line-height: 1; color: #1f2328; }
.score-unit { font-size: 14px; color: #8b929c; }
.score-level { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.score-ok  .score-level { color: #2f9e5c; }
.score-mid .score-level { color: #a06a12; }
.score-bad .score-level { color: #c0392b; }
.score-desc { margin: 0; font-size: 13px; color: #5b6572; line-height: 1.7; }

/* 维度得分横条 */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar-label { flex: 0 0 110px; font-size: 13px; color: #4b5563; }
.bar-track { flex: 1; height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-ok  { background: #2f9e5c; }
.bar-mid { background: #e0a23c; }
.bar-bad { background: #c0392b; }
.bar-value { flex: 0 0 44px; text-align: right; font-size: 12.5px; color: #6b7280; }

/* 待整改清单 */
.issue-item { padding: 14px 0; border-bottom: 1px dashed #eef0f3; }
.issue-item:last-child { border-bottom: none; padding-bottom: 0; }
.issue-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.issue-group { font-size: 12px; color: #8b929c; }
.issue-q { margin: 0 0 6px; font-size: 13.5px; line-height: 1.7; color: #1f2328; }
.issue-advice { margin: 0 0 4px; font-size: 13px; color: #3d4650; line-height: 1.8; }
.issue-advice strong { color: #185fa5; font-weight: 600; }
.issue-basis { margin: 0 0 6px; font-size: 12px; color: #9aa1ab; line-height: 1.6; }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 820px) {
  .kb-nav { position: static; }         /* 手机上不吸顶，省出屏幕高度 */
  .score-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bar-label { flex: 0 0 76px; }
  .quiz-options { margin-left: 0; }
}

/* ============================================================
   风险自测（向导版）：8 步翻页向导
   复用问卷版的 card / quiz-opt / issue-item / score-card，
   这里只加向导自己的头部、步骤点、提示条、指标卡
   ============================================================ */

/* 步骤头部：步骤号 + 步骤名 + 进度点 */
.wz-head { margin-bottom: 16px; }
.wz-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.wz-step-no  { font-size: 13px; font-weight: 600; color: #185fa5; }
.wz-step-name { font-size: 15px; font-weight: 600; color: #1f2328; }

.wz-dots { display: flex; gap: 8px; }
.wz-dot {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #eef0f3;      /* 没走到的灰条 */
}
.wz-dot.done { background: #185fa5; }   /* 走过的蓝条，兼当进度条 */

/* 即时判定提示条：绿=通过，红=有问题 */
.wz-note {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.wz-good { background: #eef8f1; color: #237a45; border: 1px solid #cdebd8; }
.wz-bad  { background: #fdf0ee; color: #c0392b; border: 1px solid #f3cdc7; }

/* 自动算出来的指标行：灰底高亮，让用户一眼看到「系统帮我算了」 */
.wz-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f5f7fa;
  font-size: 13px;
  color: #4b5563;
}
.wz-calc-row strong { font-size: 14px; color: #185fa5; }

/* 确认项勾选：两列网格（备查资料、内控制度这种短选项用） */
.wz-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* 竖排（数据一致性这种一句话选项用） */
.wz-check-col { display: block; }
.wz-check-col .quiz-opt { margin-bottom: 8px; }

/* 底部按钮：左「上一步」右「下一步」，撑满宽度好点 */
.wz-actions { display: flex; gap: 12px; }
.wz-actions .btn { flex: 1; }

/* 报告页关键指标：三个数字并排 */
.wz-kpi { display: flex; gap: 12px; }
.wz-kpi-item {
  flex: 1;
  padding: 14px;
  border-radius: 6px;
  background: #f5f7fa;
  text-align: center;
}
.wz-kpi-label { display: block; font-size: 12px; color: #8b929c; margin-bottom: 6px; }
.wz-kpi-value { font-size: 18px; font-weight: 700; color: #1f2328; }

/* 修复：.btn 的 display:inline-flex 会盖掉 HTML 的 hidden 隐身属性，
   导致「生成报告」按钮在中间步骤就露出来，一点就绕过校验直接提交。
   全局强制：凡是带 hidden 属性的元素一律不显示。 */
[hidden] { display: none !important; }

/* 向导里的勾选/单选胶囊：勾选框和文字靠左并排，改成方正卡片样式
   （原来的胶囊样式在两列网格里被拉伸，文字挤到右边竖排，很难看） */
.wz-step .quiz-opt {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
}

@media (max-width: 820px) {
  .wz-check-grid { grid-template-columns: 1fr; }   /* 手机上确认项改一列 */
  .wz-kpi { flex-direction: column; }
}

/* 向导页表单控件：外观与系统 .field 同款，宽度撑满卡片。
   注意：向导模板用的类名是 .form-field，不是 .field，两边都要有样式。 */
.form-field { margin-bottom: 14px; }
.form-field > label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #37424e;
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5d8dd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2328;
  background: #fff;
  box-sizing: border-box;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: #185fa5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}
/* 项目描述框：加高、行距放宽，方便写两三句完整的话 */
.form-field textarea {
  height: auto;
  min-height: 140px;
  line-height: 1.7;
  resize: vertical;      /* 允许拖右下角调整高度 */
}

/* ---------- 登录页（部署上云前新增） ---------- */
/* 独立登录页：居中一张卡，不带导航 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f6;
  margin: 0;
}
.login-card {
  width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  padding: 32px 28px;
}
.login-title {
  margin: 0 0 4px;
  font-size: 22px;
  text-align: center;
}
.login-sub {
  margin: 0 0 20px;
  text-align: center;
  color: #7a8194;
  font-size: 13px;
}
.login-card .field { margin-bottom: 14px; }
.btn-block { width: 100%; margin-top: 6px; }

/* 导航右侧「改密码 / 退出」推到最右边 */
.nav-spacer { flex: 1 1 auto; }

/* ---------- 导航上的所属企业标签（多企业隔离） ---------- */
/* 显示当前登录人属于哪家企业；超管显示「全局」 */
.nav-org {
  color: #7a8194;
  font-size: 13px;
  padding: 0 10px;
  white-space: nowrap;
}

/* ---------- 企业自助注册页（登录页同风格） ---------- */
/* 手机号 + 发送验证码 一行两列 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1 1 auto; min-width: 0; }
.btn-send {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #f0f3f8;
  border: 1px solid #d4dae4;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #2f3b52;
}
.btn-send:disabled { opacity: .6; cursor: not-allowed; }
.login-foot { text-align: center; font-size: 13px; margin: 14px 0 0; }
.login-foot a { color: #2563eb; text-decoration: none; }
.req { color: #d9534f; font-weight: normal; font-size: 12px; }

/* ---------- 导航上的试用剩余天数提醒 ---------- */
.nav-trial {
  font-size: 12px;
  color: #7a8194;
  padding: 2px 10px;
  white-space: nowrap;
}
/* 剩 7 天以内变红色催办 */
.nav-trial-warn { color: #d9534f; font-weight: 600; }
/* 试用已过期的到期日标红 */
.trial-overdue { color: #d9534f; font-weight: 600; }

/* ---------- 首页总览：本年指标卡（2026-10-31 新增） ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { font-size: 12px; color: #6b7280; }
.kpi-value { font-size: 22px; font-weight: 600; color: #1f2328; line-height: 1.3; }
.kpi-sub { font-size: 12px; color: #9aa1ab; }

/* 窄屏（笔记本缩窗口、平板）堆成两列，避免数字挤成一团 */
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 首页总览：风险自测提示条 ---------- */
.risk-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
  background: #fff;
  margin-bottom: 14px;
  font-size: 13px;
}
.risk-tag { font-weight: 600; }
.risk-when { color: #6b7280; font-size: 12px; }
.risk-score { font-weight: 600; }
.risk-actions { margin-left: auto; font-size: 13px; }

/* 按风险等级上色：低=绿 中等=黄 高=红 未测=灰 */
.risk-ok { background: #f0f9f2; border-color: #cfe8d5; }
.risk-ok .risk-tag, .risk-ok .risk-score { color: #1d7a3e; }
.risk-mid { background: #fff8e8; border-color: #f0dfb5; }
.risk-mid .risk-tag, .risk-mid .risk-score { color: #9a6a10; }
.risk-bad { background: #fdf0ef; border-color: #f2cecb; }
.risk-bad .risk-tag, .risk-bad .risk-score { color: #b93b33; }
.risk-none { background: #f8f9fa; }
.risk-none .risk-tag { color: #4b5563; }

/* ---------- 批量导入（2026-10-31 新增） ---------- */
/* 三步卡片：左边圆圈序号，右边内容。客户自己用，步骤要一眼看得见走完了没有 */
.imp-step {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.imp-step-no {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #185fa5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imp-step-body { flex: 1 1 auto; min-width: 0; }
.imp-step-title { font-size: 14px; font-weight: 600; margin: 2px 0 8px; color: #1f2328; }
.imp-step-body .page-sub { margin-bottom: 12px; }

.imp-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.imp-upload input[type=file] { font-size: 13px; }

/* 校验结果统计条：几个数字并排，通过的绿、有问题的红、跳过的黄 */
.imp-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e4e6eb;
  font-size: 13px;
  margin-bottom: 14px;
}
.imp-file { color: #6b7280; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-ok { color: #1a6b33; }
.imp-bad { color: #a12b2b; }
.imp-skip { color: #9a6a10; }

.imp-note { font-size: 13px; margin: 14px 0 8px; }
.imp-note-bad { color: #a12b2b; }
.imp-note-warn { color: #9a6a10; }
.imp-raw { color: #8b929c; font-size: 12px; }

.imp-confirm { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.imp-batch { margin-top: 4px; }

/* 页头右侧放多个按钮（列表页的「批量导入」+「新增」） */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 提醒类提示条（原来只有 success / error 两种） */
.alert-warning { background: #fff8e8; border: 1px solid #f0dfb5; color: #9a6a10; }

/* ============================================================
   登录 / 注册页 v2（2026-10-31 改版）
   参照好会记的观感：亮蓝渐变、大圆角、柔和阴影、带图标输入框。
   说明：老规则 .login-body / .login-card 保留不动（不影响已跑通页面），
        新版用 .lp2 + .lp-* 前缀，只在登录、注册两个页面生效。
   ============================================================ */
/* 新版页面不再需要老 .login-body 的居中灰底，这里按「分栏铺满」重设 */
.login-body.lp2 { display: block; background: #fff; }
.lp-wrap { display: flex; min-height: 100vh; }

/* ---------- 左：品牌区 ---------- */
.lp-brand {
  flex: 0 0 46%;
  position: relative;
  overflow: hidden;           /* 光斑超出边界要裁掉，不然出横向滚动条 */
  display: flex;
  flex-direction: column;
  padding: 56px 56px 44px;
  background: linear-gradient(150deg, #16307a 0%, #2b5bd7 52%, #4c6fff 100%);
  color: #fff;
}
/* 两团模糊光斑，给深蓝底加层次，不然一整块纯色很闷 */
.lp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.lp-blob1 { width: 340px; height: 340px; background: #6ea8ff; top: -90px; right: -80px; }
.lp-blob2 { width: 260px; height: 260px; background: #1b3fa3; bottom: -80px; left: -60px; }

.lp-brand-top { position: relative; display: flex; align-items: center; gap: 12px; }
.lp-logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.lp-name { font-size: 17px; font-weight: 600; letter-spacing: .5px; }

/* margin-top:auto 把这块推到底部，和页脚一起形成上下压边 */
.lp-brand-mid { position: relative; margin-top: auto; }
.lp-brand-mid h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.3; font-weight: 600; letter-spacing: 1px; }
.lp-brand-mid p { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .82); }
.lp-feats { position: relative; margin: 34px 0 0; padding: 0; list-style: none; }
.lp-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .92);
}
.lp-tick {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.lp-brand-foot { position: relative; margin-top: auto; padding-top: 40px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- 右：表单区 ---------- */
.lp-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.lp-box { width: 100%; max-width: 360px; }
.lp-h { margin: 0 0 6px; font-size: 24px; font-weight: 600; color: #1f2328; }
.lp-sub { margin: 0 0 26px; font-size: 13.5px; color: #8a909f; }

.lp-err {
  margin-bottom: 18px; padding: 10px 12px;
  background: #fef2f2; border: 1px solid #fbd5d5; border-radius: 10px;
  color: #c0392b; font-size: 13px;
}

.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: #4b5565; }
.lp-inp { position: relative; }
.lp-inp input {
  width: 100%; height: 46px;
  padding: 0 14px 0 42px;         /* 左边留出图标位置 */
  border: 1px solid #dfe3ec; border-radius: 10px;
  background: #f8f9fc; color: #1f2328;
  font-size: 14px; font-family: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.lp-inp input::placeholder { color: #b4bac7; }
.lp-inp input:focus {
  outline: none; background: #fff; border-color: #4c6fff;
  box-shadow: 0 0 0 3px rgba(76, 111, 255, .13);
}
.lp-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: .42; pointer-events: none;
}
/* 密码框右侧「显示 / 隐藏」，纯前端切换，不提交任何东西 */
.lp-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: #8a909f; cursor: pointer; user-select: none;
}
.lp-btn {
  width: 100%; height: 46px; margin-top: 8px;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #5b7cff, #3d5afe);
  color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 2px;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 16px rgba(61, 90, 254, .26);
  transition: transform .18s, box-shadow .18s;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(61, 90, 254, .32); }
.lp-btn:active { transform: none; }

.lp-foot { margin: 20px 0 0; text-align: center; font-size: 13px; color: #8a909f; }
.lp-foot a { color: #3d5afe; font-weight: 500; }
.lp-foot a:hover { text-decoration: underline; }
.lp-tip { margin: 8px 0 0; font-size: 12.5px; color: #8a909f; }

/* 注册页：手机号 + 发送验证码同一行，尺寸跟新输入框对齐 */
.lp-code { display: flex; gap: 8px; }
.lp-code input { flex: 1 1 auto; min-width: 0; }
.lp-code .btn-send { height: 46px; border-radius: 10px; background: #f3f5fa; border: 1px solid #dfe3ec; }
/* 注册页的蓝色说明条（短信未开通时用） */
.lp-note {
  margin-bottom: 16px; padding: 10px 12px;
  background: #f2f7ff; border: 1px solid #d9e6ff; border-radius: 10px;
  color: #2f5fd0; font-size: 12.5px; line-height: 1.7;
}

/* 窄屏（手机 / 小平板）：品牌区压成顶部窄条，只留 logo 和标题 */
@media (max-width: 860px) {
  .lp-wrap { flex-direction: column; }
  .lp-brand { flex: 0 0 auto; padding: 30px 24px; }
  .lp-blob { display: none; }              /* 小屏上光斑显得脏，去掉 */
  .lp-brand-mid { margin-top: 22px; }
  .lp-brand-mid h1 { margin-bottom: 0; font-size: 24px; }
  .lp-brand-mid p, .lp-feats, .lp-brand-foot { display: none; }
  .lp-main { padding: 32px 22px 48px; }
}

/* ============================================================
   公开页 v1（2026-10-31 加）
   用来承接微信群里转发的链接：免登录访问 /test，只套一层轻壳。
   前缀 pub-，与后台页面完全隔离；后台那条 .topbar/.container 一行没动。
   ============================================================ */
.pub-body {
  margin: 0;
  background: #f4f6fb;
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏：白底粘顶，手机上滚动也不丢「免费试用」按钮 ---------- */
.pub-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8ebf2;
}
.pub-top-inner {
  max-width: 900px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pub-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.pub-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #5b7cff, #3d5afe);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(61, 90, 254, .28);
}
.pub-name { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.pub-acts { display: flex; align-items: center; gap: 14px; }
.pub-link { font-size: 13.5px; color: #4b5565; text-decoration: none; }
.pub-link:hover { color: #3d5afe; }
.pub-btn {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(135deg, #5b7cff, #3d5afe);
  color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none;
  box-shadow: 0 4px 12px rgba(61, 90, 254, .24);
  transition: transform .16s, box-shadow .16s;
}
.pub-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(61, 90, 254, .3); }

/* ---------- 主体：单栏收窄，手机上一屏能读 ---------- */
.pub-main { max-width: 900px; margin: 0 auto; padding: 22px 16px 56px; }
.pub-foot {
  max-width: 900px; margin: 0 auto; padding: 20px 16px 40px;
  font-size: 12px; line-height: 1.9; color: #9aa1af; text-align: center;
}

/* ---------- 报告尾部的转化卡：深蓝渐变，和登录页左栏同一套语言 ---------- */
.pub-cta {
  margin: 18px 0 0; padding: 26px 26px 24px;
  border-radius: 16px;
  background: linear-gradient(150deg, #16307a 0%, #2b5bd7 55%, #4c6fff 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: 0 14px 34px rgba(22, 48, 122, .22);
}
.pub-cta-main { flex: 1 1 auto; min-width: 0; }
.pub-cta-main h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.pub-cta-main p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .86); }
.pub-cta-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 2; color: rgba(255, 255, 255, .92); }
.pub-cta-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* 深色卡上的主按钮反过来：白底蓝字，比蓝底更跳 */
.pub-btn-lg {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: #fff; color: #2b4fd0; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transition: transform .16s;
}
.pub-btn-lg:hover { transform: translateY(-1px); }
.pub-cta-act .pub-link { color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.pub-cta-act .pub-link:hover { color: #fff; }

/* 手机上：转化卡改成上下排，按钮占满一行好点 */
@media (max-width: 720px) {
  .pub-cta { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px 20px; }
  .pub-cta-act { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .pub-btn-lg { text-align: center; }
  .pub-cta-act .pub-link { text-align: center; }
  .pub-main { padding: 16px 12px 44px; }
  .pub-name { display: none; }   /* 小屏只留 RDE 方块，给按钮腾地方 */
}

/* 登录页底部「先免费自测」入口：比普通链接显眼，但不能抢登录按钮的注意力 */
.lp-test { margin: 20px 0 0; text-align: center; }
.lp-test a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  background: #f2f7ff; border: 1px solid #dbe7ff;
  font-size: 12.5px; color: #2f5fd0; text-decoration: none;
  transition: background .16s, border-color .16s;
}
.lp-test a:hover { background: #e8f0ff; border-color: #c4d8ff; }

/* ============================================================
   人员档案：五险一金输入 + 薪酬折算提示（2026-11-02 追加）
   这块只服务人员表单，独立成段，不碰上面任何已有样式。
   ============================================================ */

/* 输入框右边挂一个小按钮（按 25% 估算），输入框自动吃掉剩余宽度 */
.input-with-btn { display: flex; gap: 8px; align-items: stretch; }
.input-with-btn input { flex: 1; min-width: 0; }

/* 小号按钮：跟在输入框后面，不能跟主按钮抢眼 */
.btn-sm { padding: 0 12px; height: 38px; font-size: 12.5px; white-space: nowrap; }

/* 折算结果条：填工资时实时显示「月人工成本 ÷ 174 = 时薪」 */
.calc-line {
  margin: 2px 0 18px;
  padding: 11px 14px;
  background: #f6f8fa;
  border: 1px dashed #d6dbe3;
  border-radius: 6px;
  font-size: 13px;
  color: #4a5260;
}
.calc-line strong { color: #1a2233; font-size: 14px; }

/* 表头里的口径小字（如「企业缴」「÷174h」），换成第二行，别把表头撑宽 */
.th-note {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: #9aa1ad;
  margin-top: 2px;
}

/* 工时列表：非研发工时的标记（2026-11-02 追加）
   用灰色而不是彩色，为的是让人一眼看出「这条不是研发」，
   又不会抢走研发项目的注意力。 */
.tag-nonrd {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  background: #f0f1f3;
  color: #868d97;
  font-size: 12px;
}

/* 工资分摊页：一个人的多个项目摊额，一行一条小字（2026-11-02 追加） */
.alloc-item {
  display: block;
  font-size: 12px;
  color: #5b6470;
  line-height: 1.8;
  white-space: nowrap;
}

/* ===== 单项目全景页（六期-14，2026-11-02 追加） ===== */

/* 费用结构占比条：用纯 CSS 画，不引图表库，打开快、不占内存 */
.pd-bar {
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
  min-width: 120px;
}
.pd-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4a86d8, #6ba3e8);
}

/* 六阶段留痕：按项目推进顺序竖排，一阶段一行 */
.pd-stages { display: flex; flex-direction: column; gap: 10px; }
.pd-stage {
  border: 1px solid #eceef2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
/* 没记录的那一格整体变浅，扫一眼就知道缺哪几步 */
.pd-stage-empty { background: #fbfbfc; border-style: dashed; }
.pd-stage-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pd-stage-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f6;
  color: #5b6470;
  font-size: 11.5px;
  font-weight: 600;
  flex: 0 0 auto;
}
.pd-stage-name { font-size: 14px; font-weight: 600; color: #1f2328; }
.pd-stage-tag {
  margin-left: auto;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.pd-tag-ok  { background: #e7f6ec; color: #1a6b33; }
.pd-tag-mid { background: #fff8e8; color: #9a6a10; }
.pd-tag-bad { background: #fdecec; color: #a12b2b; }
.pd-stage-last { margin: 0; font-size: 12.5px; color: #4b5563; line-height: 1.7; }

/* 外聘劳务标记（六期-15）：和研发项目的橙黄系区分开，表示「这笔不是本公司工资」 */
.tag-out {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fdf1e6;
  color: #a8641a;
  font-size: 11.5px;
}

/* ===== 左侧模块栏布局（六期-17，2026-11-03 追加） =====
   整页分成左右两块：.side 固定宽常驻左侧，.side-main 占满剩余放内容。
   原顶部一排 13 个链接按业务收成 3 组 + 管理组（有权限才显示）。 */
.shell { display: flex; min-height: 100vh; align-items: stretch; }

/* ---------- 左栏 ---------- */
.side {
  flex: 0 0 208px;
  width: 208px;
  background: #fff;
  border-right: 1px solid #e4e6eb;
  display: flex;
  flex-direction: column;
  /* 窗口滚动时左栏钉在原地，自己内部滚动，内容区多长都不跑 */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid #eef0f3;
}
.side-brand .brand-text { font-size: 14.5px; font-weight: 600; color: #1f2328; }

.side-nav { flex: 1 1 auto; padding: 8px 10px 14px; }

/* 组标题：小号灰字，只起分隔作用，不可点 */
.side-group-title {
  margin: 14px 8px 4px;
  font-size: 11.5px;
  color: #9aa1ab;
  letter-spacing: 1px;
}
.side-group:first-of-type .side-group-title,
.side-link + .side-group .side-group-title { margin-top: 14px; }

/* 导航项：一级（研发立项）和组内项共用，组内项加 .sub 缩进一点 */
.side-link {
  display: block;
  padding: 8px 12px;
  margin: 1px 0;
  border-radius: 7px;
  color: #4b5563;
  font-size: 13.5px;
  white-space: nowrap;
}
.side-link.sub { padding-left: 18px; }
/* 二级项（六期-31：工资分摊挂在人员人工费用下、折旧分摊挂在折旧费用下）
   再缩进一级 + 小一号字 + 浅灰色，视觉上明确「这是上一条的动作，不是同一层」 */
.side-link.sub2 { padding-left: 32px; font-size: 12.5px; color: #6b7280; }
.side-link.sub2::before { content: "·"; margin-right: 6px; color: #b8bdc7; }
.side-link:hover { background: #f2f4f7; color: #1f2328; text-decoration: none; }
/* 当前页高亮：蓝底蓝字加粗，一眼看清自己在哪 */
.side-link.active { background: #e8f0fa; color: #185fa5; font-weight: 600; }

/* ---------- 左栏底部账号区 ---------- */
.side-foot {
  border-top: 1px solid #eef0f3;
  padding: 10px 14px 12px;
  font-size: 12.5px;
}
.side-foot .nav-trial { display: block; margin-bottom: 2px; }
.side-foot .nav-org { display: block; margin-bottom: 6px; }
.side-link.foot {
  padding: 5px 0;
  margin: 0;
  border-radius: 0;
  font-size: 12.5px;
  color: #6b7280;
}
.side-link.foot:hover { background: none; color: #185fa5; }
.side-link.foot.active { background: none; color: #185fa5; font-weight: 600; }

/* ---------- 右侧内容区 ---------- */
.side-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* 有左栏后内容区宽度交给它自己管，不再居中限宽，表格宽的页面更舒展 */
.side-main .container { flex: 1 1 auto; max-width: none; margin: 0; }
.side-main .footer { max-width: none; margin: 0; }

/* ---------- 窄屏（手机/半屏窗口）：左栏折回顶部横排 ---------- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side {
    flex: none;
    width: auto;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #e4e6eb;
  }
  .side-nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 10px; }
  .side-group { display: contents; }      /* 组壳透明化，成员直接参与横排 */
  .side-group-title { display: none; }    /* 横排里不显示组标题 */
  .side-link.sub { padding-left: 12px; }
  .side-link.sub2 { padding-left: 22px; }
  .side-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid #eef0f3; }
  .side-link.foot { padding: 2px 0; }
}

/* ===== 项目全景总览页（六期-18，2026-11-03 追加） ===== */

/* 整行可点：鼠标变手型、悬停浅底，提示「这行能点进去」 */
.po-row { cursor: pointer; }
.po-row:hover td { background: #f5f8fc; }

/* 项目名 + 下面一行小字（编号 / 类型 / 负责人） */
.po-name { font-size: 14px; font-weight: 600; color: #1f2328; }
.po-sub { font-size: 12px; color: #9aa1ab; line-height: 1.5; margin-top: 2px; }

/* 费用占比条：与当前页费用最高的项目比长短，纯 CSS 画，不引图表库 */
.po-bar {
  height: 5px; max-width: 200px; margin-top: 5px;
  background: #f0f2f5; border-radius: 3px; overflow: hidden;
}
.po-bar-fill {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #4a86d8, #6ba3e8);
}

/* 六阶段留痕圆点：空心 = 这一阶段还没记录，实心绿 = 有记录 */
.po-dots { display: flex; gap: 6px; padding: 3px 0; }
.po-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1px solid #d6dbe3;
}
.po-dot.on { background: #2f9e5f; border-color: #2f9e5f; }

.po-ok  { color: #1a6b33; }
.po-bad { color: #a12b2b; }
.po-flag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: #fdecec; color: #a12b2b; font-size: 12px; font-weight: 600;
}

/* ===== 设备机时登记（六期-20） =====
   一台设备一张卡：卡头是设备名、月折旧、本月合计；
   卡身是「项目 + 机时」几行，最后一行固定是非研发占用。 */
.ah-card {
  background: #fff; border: 1px solid #eef0f3; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px;
}
.ah-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 10px;
}
.ah-name { font-size: 15px; font-weight: 600; color: #1f2937; }
.ah-dep  { font-size: 13px; color: #5b6572; }
.ah-stat {
  margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 12px;
  background: #f1f3f5; color: #6b7280;
}
.ah-stat.on { background: #e7f6ec; color: #1a6b33; }

.ah-table { max-width: 580px; }
.ah-table td { padding: 5px 8px; }
.ah-table tr.ah-non td { border-top: 1px dashed #e3e7ec; color: #5b6572; }

.ah-input {
  width: 100px; padding: 5px 8px; text-align: right;
  border: 1px solid #d6dbe3; border-radius: 6px;
  font-family: inherit; font-size: 13px; color: #1f2937; background: #fff;
}
.ah-input:focus {
  outline: none; border-color: #185fa5;
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.12);
}

.ah-save {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 18px 0 8px;
}

/* 逐台明细：主行下面挂一行浅灰小字，列出分到各项目多少 */
.ah-sub td { padding: 0 8px 8px; background: #fafbfc; }
.ah-chip {
  display: inline-block; margin: 2px 8px 2px 0; padding: 1px 8px;
  border-radius: 4px; background: #eef2f7; color: #374151; font-size: 12px;
}

/* 领料登记（六期-25）：金额自动算的展示块，一眼看见这笔要记多少钱 */
.material-amount {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  padding: 10px 14px; border-radius: 8px;
  background: #f3f7fc; border: 1px solid #dbe6f2;
}
.material-amount strong { font-size: 20px; color: #185fa5; }

/* 折旧登记（六期-26）：每台一行，备注框铺满本列 */
.dep-rmk {
  width: 100%; padding: 5px 8px;
  border: 1px solid #d6dbe3; border-radius: 6px;
  font-family: inherit; font-size: 13px; color: #1f2937; background: #fff;
}
.dep-rmk:focus {
  outline: none; border-color: #185fa5;
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.12);
}

/* ---------- 时间快捷按钮（六期-28：近3月/近6月/近12月/今年/去年） ---------- */
.chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d5d8dd;
  border-radius: 999px;
  background: #fff;
  color: #1f2328;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  border-color: #185fa5;
  color: #185fa5;
}

/* ---------- 七类费用专页顶部口径统计条（六期-31，2026-11-05） ---------- */
.cat-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  background: #f7f9fc;
  border: 1px solid #e6ecf4;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0 14px;
}
.cat-stat-item { display: flex; flex-direction: column; gap: 2px; }
.cat-stat-k { font-size: 12px; color: #6b7280; }
.cat-stat-v { font-size: 14.5px; font-weight: 600; color: #1f2328; }
.cat-stat-v.over { color: #b42318; }
.cat-stat-v.ok { color: #0f7b3f; }

/* ============================================================
   页签式工作区（六期-32，2026-11-05）
   ------------------------------------------------------------
   三种情况，靠 <html> 上的记号区分（记号在 base.html 的 head 里同步打）：
     ① html.top-window  最外层窗口：左栏 + 页签条 + iframe 容器，
                        业务页面装进页签里，可以同时开好几个。
     ② html.in-frame    iframe 里：只显示页面内容本身，左栏和页签条藏起来，
                        不然会套娃。
     ③ 没有记号        浏览器禁了脚本：什么都不动，退回到原来的普通单页，
                        菜单照样点、页面照样看，只是没有页签。
   ============================================================ */
.tabbar, .tabstage { display: none; }

/* ② iframe 里：藏左栏，内容铺满 */
html.in-frame .side { display: none; }

/* ① 最外层窗口：藏业务内容，换成页签 */
html.top-window .side { display: flex; position: static; height: 100vh; }
html.top-window .tabbar { display: flex; }
html.top-window .tabstage { display: flex; }
html.top-window .container { display: none; }         /* 顶层不放业务内容 */
html.top-window .footer { display: none; }            /* 页签占满高度，页脚没位置 */
html.top-window .shell { height: 100vh; overflow: hidden; }
html.top-window .side-main { height: 100vh; overflow: hidden; }

/* ---------- 页签条 ---------- */
.tabbar {
  flex: 0 0 auto;
  position: relative;         /* 给「页签开满」的提示条当定位基准 */
  height: 38px;
  background: #eef0f3;
  border-bottom: 1px solid #e4e6eb;
  align-items: flex-end;
  gap: 8px;
  padding: 0 8px;
  min-width: 0;
}

.tablist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* 以前把滚动条藏死了，页签一多就跑到屏幕外、既看不见也拖不动。
     现在留一条 4px 的细条，只在真的溢出时才出现，平时看不出来。 */
  scrollbar-width: thin;
  scrollbar-color: #c3c9d2 transparent;
}
.tablist::-webkit-scrollbar { height: 4px; }
.tablist::-webkit-scrollbar-thumb { background: #c3c9d2; border-radius: 2px; }
.tablist::-webkit-scrollbar-track { background: transparent; }

/* 页签开满时的轻提示：浮在页签条下方，2.8 秒自己消失，不占位置也不挡点击 */
.tab-toast {
  position: absolute;
  top: 42px;
  right: 14px;
  z-index: 60;
  max-width: 320px;
  padding: 7px 12px;
  border: 1px solid #e8c07a;
  border-left: 3px solid #d99013;
  border-radius: 6px;
  background: #fffaf0;
  color: #7a4b00;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tab-toast.on { opacity: 1; transform: translateY(0); }
/* 带「撤销」按钮的提示条才允许点，纯文字提示照旧不挡鼠标 */
.tab-toast.has-action {
  pointer-events: auto;
  display: flex;
  align-items: center;
}
.tab-toast .toast-undo {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid #d99013;
  border-radius: 4px;
  background: #fff;
  color: #a86400;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.tab-toast .toast-undo:hover { background: #fff3d6; }

/* 单个页签：未激活是浅灰底，激活是白底 + 顶上一条主色，像浏览器标签 */
.tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* 页签是可伸缩的：少的时候顶到 150px（跟以前一样），多了就一起收窄，
     最窄 88px —— 再窄就点不准了。这样 10 个在 1280 的屏上也能排成一行，
     不会挤到屏幕外面去。 */
  flex: 1 1 auto;
  min-width: 88px;
  height: 30px;
  padding: 0 8px 0 10px;
  max-width: 150px;
  border-radius: 6px 6px 0 0;
  background: #e0e4ea;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.tab:hover { background: #d6dbe2; }
.tab.active { background: #fff; color: #185fa5; font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: #185fa5;
  border-radius: 6px 6px 0 0;
}
.tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-x {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  line-height: 14px;
  border-radius: 3px;
  font-size: 13px;
  text-align: center;
  color: #9aa1ab;
}
.tab-x:hover { background: #c9cfd8; color: #1f2328; }
.tab.active .tab-x:hover { background: #e6ebf2; }

.tab-actions { display: flex; align-items: center; gap: 4px; padding-bottom: 5px; flex: 0 0 auto; }
.tab-btn {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d8dce3;
  border-radius: 5px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.tab-btn:hover { border-color: #b9c0ca; color: #185fa5; }

/* ---------- 页面容器：一个页签一个 iframe，切页签只切显示 ---------- */
.tabstage { flex: 1 1 auto; position: relative; min-height: 0; background: #f6f7f9; }
.tabstage .pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: none;
}
.tabstage .pane.on { display: block; }
.tabstage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #9aa1ab;
  font-size: 13.5px;
  text-align: center;
}

/* ---------- 窄屏兜底：页签容器没高度会塌，给个最小高度 ---------- */
@media (max-width: 860px) {
  html.top-window .shell { height: auto; overflow: visible; }
  html.top-window .side-main { height: auto; overflow: visible; }
  /* 左栏在窄屏折回顶部横排，不能再钉满一屏，否则下面的页签全被挤到屏幕外 */
  html.top-window .side { height: auto; }
  html.top-window .tabstage { min-height: 70vh; }
}

/* ---------- 左栏「当前企业 + 切换」（六期-41，2026-11-12） ---------- */
/* 常显，不是临时状态：系统里已经没有「全局」了，随时得知道自己在看哪一家 */
.cur-org {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f7ff;
  border: 1px solid #d6e0f5;
}
.cur-org-k { font-size: 11.5px; color: #6b7a90; }
.cur-org-v {
  font-size: 13px;
  font-weight: 600;
  color: #1f3a68;
  margin: 2px 0 6px;
  word-break: break-all;
}
.cur-org-btn {
  display: block;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #c4d4f0;
  border-radius: 5px;
  background: #fff;
  color: #2f6feb;
  font-size: 12px;
  text-decoration: none;
}
.cur-org-btn:hover { background: #eef4ff; }

/* ---------- 登录页「演示体验」提示条（六期-33） ---------- */
/* 客户自己打开网站也能试，不用等我们发账号 */
.demo-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px dashed #c9d6e6;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.7;
}
.demo-tip b { color: #185fa5; }
.demo-tip button {
  margin-top: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #c9d6e6;
  border-radius: 5px;
  background: #fff;
  color: #185fa5;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.demo-tip button:hover { background: #eef4fb; border-color: #a9c3e0; }

/* ============================================================
   上手向导（六期-36，2026-11-11）
   ------------------------------------------------------------
   一页清单：顶部进度 + 四个阶段卡 + 每步一行。
   状态只有三种：绿勾=已做、数字=没做、小点=纯操作步骤（不打勾）。
   ============================================================ */

/* ---------- 顶部进度条 ---------- */
.guide-summary {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  background: #fff;
}
.guide-summary.is-ready {
  border-color: #b7e0c4;
  background: #f3fbf6;
}
.guide-summary-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.guide-summary-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
}
.guide-summary.is-ready .guide-summary-title { color: #15803d; }
.guide-summary-sub { font-size: 12.5px; color: #6b7280; }

.guide-bar {
  height: 6px;
  border-radius: 3px;
  background: #eef0f3;
  overflow: hidden;
}
.guide-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #185fa5;
  transition: width 0.3s ease;
}
.guide-summary.is-ready .guide-bar-fill { background: #16a34a; }

/* ---------- 阶段卡 ---------- */
.guide-stage {
  margin-bottom: 16px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.guide-stage-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
}
.guide-stage.is-ready .guide-stage-head { background: #f3fbf6; }
.guide-stage-no {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e8eef6;
  color: #185fa5;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}
.guide-stage.is-ready .guide-stage-no { background: #d8f0e2; color: #15803d; }
.guide-stage-text { flex: 1 1 auto; min-width: 0; }
.guide-stage-text h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.guide-stage-count {
  flex: 0 0 auto;
  color: #9aa1ab;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.guide-stage.is-ready .guide-stage-count { color: #15803d; }

/* ---------- 单步 ---------- */
.guide-steps { padding: 4px 0; }
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px dashed #f0f2f5;
}
.guide-step:first-child { border-top: 0; }
.guide-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid #d8dce3;
  border-radius: 50%;
  background: #fff;
  color: #9aa1ab;
  font-size: 11.5px;
  line-height: 18px;
  text-align: center;
}
.guide-step.is-done .guide-mark {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.guide-step.is-manual .guide-mark {
  border-style: dashed;
  font-size: 14px;
  line-height: 16px;
}
.guide-step-body { flex: 1 1 auto; min-width: 0; }
.guide-step-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2328;
}
.guide-step.is-done .guide-step-title { color: #4b5563; }
.guide-step-desc {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.65;
}
.guide-tag {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
}
.guide-tag.tag-must {
  background: #fdf0e4;
  color: #b45309;
}
.guide-go {
  flex: 0 0 auto;
  align-self: center;
  padding: 4px 10px;
  border: 1px solid #c9d6e6;
  border-radius: 5px;
  background: #fff;
  color: #185fa5;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.guide-go:hover { background: #eef4fb; border-color: #a9c3e0; }
.guide-step.is-done .guide-go { border-color: #e4e6eb; color: #9aa1ab; }
.guide-step.is-done .guide-go:hover { color: #185fa5; }

.guide-footnote {
  margin: 4px 0 0;
  color: #9aa1ab;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .guide-step { flex-wrap: wrap; }
  .guide-go { margin-left: 32px; }
}

/* ============================================================
   角色权限（六期-38，2026-11-11）
   ------------------------------------------------------------
   用户管理里「角色」那一列就地改：下拉 + 保存，不用另开页。
   ============================================================ */
.role-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.role-select {
  width: auto;
  min-width: 92px;
  height: 26px;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.6;
}
.perm-scope {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ============================================================
   六期-39（2026-11-11）：费用项目与会计科目
   ============================================================ */
.ei-note { font-size: 13px; }
.ei-group .group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ei-acc {
  font-size: 11.5px;
  font-weight: 400;
  color: #6b7280;
}
.ei-table td { padding: 5px 8px; vertical-align: middle; }
.ei-in {
  width: 100%;
  min-width: 90px;
  padding: 4px 7px;
  border: 1px solid #d8dde6;
  border-radius: 5px;
  font-size: 12.5px;
  background: #fff;
  color: #1f2937;
}
.ei-in:focus {
  outline: none;
  border-color: #2f6feb;
  box-shadow: 0 0 0 3px rgba(47, 111, 235, .1);
}
.ei-export { display: inline-flex; gap: 6px; align-items: center; }
.btn-mini { padding: 3px 9px; font-size: 12px; }

/* ============================================================
   六期-41（2026-11-12）：选择企业页
   ============================================================ */
/* 独立整页：登录后还没选企业时看到的就是这一页，背景沿用登录页的浅灰蓝 */
.pick-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 46%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2328;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 40px;
}
.pick-wrap { width: 100%; max-width: 640px; }
.pick-head { text-align: center; margin-bottom: 22px; }
.pick-logo {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: #1f3a68;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
}
.pick-h { font-size: 22px; margin: 14px 0 6px; }
.pick-sub { font-size: 13.5px; color: #5b6472; margin: 0; line-height: 1.7; }
.pick-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pick-card { margin: 0; }
.pick-card button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #1f2328;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.pick-card button:hover {
  border-color: #2f6feb;
  box-shadow: 0 4px 14px rgba(47, 111, 235, .12);
}
.pick-card button:active { transform: translateY(1px); }
.pick-name { font-weight: 600; }
.pick-go { font-size: 13px; color: #2f6feb; white-space: nowrap; }
.pick-empty {
  margin-top: 18px;
  padding: 22px 20px;
  border: 1px dashed #d5dce8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.9;
  color: #5b6472;
}
.pick-empty p { margin: 0; }
.pick-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7a8194;
}
.pick-foot a { color: #2f6feb; text-decoration: none; }

/* ============================================================
   六期-43（2026-11-12）视觉分层：深色左栏 + 表格层次
   ------------------------------------------------------------
   起因：沈董反馈「所有模块都是黑白界面，看不出层次感」。
   原则：只改这一份样式表，40 多个页面自动统一；
        不碰模板结构、不碰任何业务逻辑和数据库。
   主色沿用系统原有的 #185fa5（登录页/按钮同色），不引新色。
   回退：还原 style.css.bak_1112 + base.html 里 style.css 的版本号，一分钟恢复。
   ============================================================ */

/* ---------- ① 左栏改深色（主色蓝的深阶） ---------- */
.side {
  background: #122c49;
  border-right: 1px solid #0d2138;
  /* 深底上的滚动条也用深色，不然会挂一条白杠 */
  scrollbar-width: thin;
  scrollbar-color: #2c4a6b transparent;
}
.side-brand { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.side-brand .brand-text { color: #fff; }
/* 徽标原来是深蓝块，压在深蓝底上糊成一片，提亮一档 */
.side-brand .brand-mark { background: #2f7ac9; }

/* 组标题：深底上用淡蓝灰，比正文弱但不至于看不见 */
.side-group-title { color: #7f9cc0; }

.side-link { color: #c7d6e8; }
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
/* 当前页：整条填主色 + 左侧亮蓝竖条，一眼看清自己在哪 */
.side-link.active {
  background: #185fa5;
  color: #fff;
  box-shadow: inset 3px 0 0 #85b7eb;
}
/* 二级项（工资分摊、折旧分摊）在深底上再压暗一档，层级才显出来 */
.side-link.sub2 { color: #9db2ca; }
.side-link.sub2::before { color: #5d7a9c; }

.side-foot { border-top: 1px solid rgba(255, 255, 255, 0.09); color: #9db2ca; }
.side-foot .nav-org, .side-foot .nav-trial { color: #9db2ca; }
.side-link.foot { color: #9db2ca; }
.side-link.foot:hover, .side-link.foot.active { color: #fff; }
/* 试用到期提醒在深底上原来那个红看不清，换亮一点的红 */
.nav-trial-warn, .trial-overdue { color: #ff9b96; }

/* ---------- ② 页面标题：底下一条主色小横杠，像文件夹标签头 ---------- */
.page-head h1 { position: relative; padding-bottom: 9px; }
.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: #185fa5;
}

/* ---------- ③ 表格：表头蓝、隔行浅纹、合计行蓝底红线 ---------- */
/* 这三条都是为了「眼睛不用来回比对」：表头定住列名，隔行纹防串行，
   合计行变色告诉人「到这儿是总数了」。 */
.data-table th {
  background: #e6f1fb;
  color: #0c447c;
  border-bottom: 1px solid #b5d4f4;
}
.data-table tbody tr:nth-child(even) { background: #f6f8fb; }
.data-table tbody tr:hover { background: #eef5fc; }

.data-table tfoot td {
  background: #e6f1fb;
  border-top: 2px solid #185fa5;
  color: #0c447c;
  font-weight: 500;
}
.total-label { color: #0c447c; }
/* 合计行的最后一个金额用红字（中式记账习惯：总数用红） */
.data-table tfoot td.num:last-child { color: #a32d2d; font-weight: 600; }

/* ---------- ④ 按钮分主次：关键动作蓝底白字，其它保持素色 ---------- */
/* 只管「查询」「导出辅助账」这类提交按钮；页面里的灰底快捷按钮、
   「返回」「重置」等次级按钮不动，否则满屏蓝按钮反而没重点。 */
.toolbar button[type="submit"].btn:not(.btn-ghost):not(.btn-danger):not(.btn-sm) {
  background: #185fa5;
  border-color: #185fa5;
  color: #fff;
}
.toolbar button[type="submit"].btn:not(.btn-ghost):not(.btn-danger):not(.btn-sm):hover {
  background: #124b85;
  border-color: #124b85;
}
/* 页头右侧的主要动作（如「导出」）也走主色；带 btn-ghost 的（如「返回」）不动 */
.head-actions .btn:not(.btn-ghost):not(.btn-sm) {
  background: #185fa5;
  border-color: #185fa5;
  color: #fff;
}
.head-actions .btn:not(.btn-ghost):not(.btn-sm):hover {
  background: #124b85;
  border-color: #124b85;
  text-decoration: none;
}

/* ---------- ⑤ 页签条：浅灰底 + 当前页签白底（原有蓝条保留），层次更清楚 ---------- */
.tabbar { background: #e9edf3; }
.tab { background: #dde3ea; }
.tab:hover { background: #d2d9e2; }
.tab.active { box-shadow: 0 -1px 0 #e4e6eb; }

/* 窄屏（左栏折成顶部横条）时别留一条右边框 */
@media (max-width: 860px) {
  .side { border-right: none; border-bottom: 1px solid #0d2138; }
}

/* 左栏底部的「当前企业 / 切换企业」块：深底上换成描边样式，
   原来那块浅蓝卡片在深色栏里会亮得抢眼 */
.cur-org {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.cur-org-k { color: #8fa9c6; }
.cur-org-v { color: #fff; }
.cur-org-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
  color: #cfe0f2;
}
.cur-org-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
