/* ============================================================
   果园养鸡项目管理系统 · 基础样式(适老化设计)
   纯静态演示版 · 手机端优先
   ============================================================ */

:root {
  /* ---- 配色(绿色农业主题,浅底绿强调,避免大块色域) ---- */
  --primary: #2e9e4f;        /* 主绿:正常/完成/主按钮 */
  --primary-deep: #1e7d3c;   /* 深绿:强调/选中 */
  --primary-light: #e8f5ec;  /* 浅绿:区块底/选中底 */
  --bg: #f2f8f1;             /* 页面浅底 */
  --card: #ffffff;           /* 卡片白底 */
  --text: #22301f;           /* 正文深色 */
  --text-sub: #5c6e5c;       /* 次要文字 */
  --muted: #8b9a8e;          /* 弱化/禁用 */
  --line: #e3ece2;           /* 分隔线 */
  --danger: #c0392b;         /* 危险:逾期/超支/破线 */
  --warn: #d9822b;           /* 预警:待处理/滞后 */
  --info: #2f6fb3;           /* 信息:进行中 */

  /* ---- 字号(适老化:正文≥17px,关键数字加粗) ---- */
  --fs-num: 26px;            /* 关键数字 */
  --fs-title: 20px;          /* 页内大标题 */
  --fs-body: 17px;           /* 正文 */
  --fs-card-title: 18px;     /* 卡片标题 */
  --fs-sm: 15px;             /* 辅助说明 */
  --fs-tab: 13px;            /* 底部导航文字 */

  /* ---- 尺寸 ---- */
  --btn-h: 52px;             /* 常规按钮高度 */
  --btn-h-lg: 60px;          /* 提交类大按钮 */
  --radius: 16px;            /* 卡片圆角 */
  --radius-sm: 10px;         /* 小控件圆角 */
  --gap: 16px;               /* 页面边距 */
  --nav-h: 62px;             /* 保留：历史变量(不再使用) */
  --topnav-h: 56px;          /* 顶部导航高度 */
}

/* ---- 重置 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body.no-nav { padding-top: 0; padding-bottom: 0; }
img { max-width: 100%; }
a { color: var(--primary-deep); text-decoration: none; }
button {
  font-family: inherit; font-size: var(--fs-body);
  border: none; cursor: pointer; line-height: 1.4;
}
input, select, textarea {
  font-family: inherit; font-size: var(--fs-body); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
input[type="checkbox"] { width: auto; accent-color: var(--primary); }
ul, ol { list-style: none; }

/* ---- 顶部栏 ---- */
.page-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 14px var(--gap);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}
.page-head .back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-deep);
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.page-head h1 { font-size: var(--fs-title); font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head .head-right { flex-shrink: 0; font-size: var(--fs-sm); color: var(--text-sub); }

/* ---- 页面主体 ---- */
.page { padding: var(--gap); }
/* 兼容方案:不依赖 flex gap(旧手机内核不支持),统一用 margin 撑开间距 */
.page > * { margin-bottom: var(--gap); }
.page > *:last-child { margin-bottom: 0; }
.page-head + .page { padding-top: 14px; }

/* 嵌套卡片间距:容器(如 #projBox)内的 .card 不是 .page 直接子元素,
   上面的 .page > * 规则够不到,这里对 .card 自身补 margin,确保任何层级都不贴在一起 */
.card { margin-bottom: var(--gap); }
.card:last-child { margin-bottom: 0; }
/* 区块标题与上/下文留间距(旧内核不依赖 gap) */
.section-title { margin-bottom: 12px; margin-top: 16px; }
.section-title:first-child { margin-top: 0; }
/* 提醒条自身已带底部间距,标题紧随其后再叠 16px 会过宽,这里收窄 */
.alert-bar + .section-title { margin-top: 8px; }
/* 列表/流程卡在容器内也保留间距 */
.list-item { margin-bottom: 12px; }
.check-item { margin-bottom: 12px; }

/* 工人今日:扁平待办事项列表(不再按晨/午/晚分组) */
.task-row { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(30, 90, 50, .06); cursor: pointer; }
.task-row:active { background: var(--primary-light); }
.tr-main { flex: 1; min-width: 0; }
.tr-name { font-size: var(--fs-body); font-weight: 600; }
.tr-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; }
.req { font-size: 12px; color: var(--danger); font-weight: 500; margin-left: 6px; }
/* 任务详情 / 上报表单 */
.kv { font-size: var(--fs-body); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ta { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; font-size: var(--fs-body); font-family: inherit; resize: vertical; box-sizing: border-box; }

/* ---- 卡片 ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(30, 90, 50, 0.06); }
.card-title { font-size: var(--fs-card-title); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: var(--fs-sm); font-weight: 400; color: var(--primary-deep); }
.card-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.card-row:last-child { border-bottom: none; }
.card-row .k { color: var(--text-sub); }
.card-row .v { font-weight: 600; text-align: right; }

/* ---- 分组卡片(标题 + 内容,资产页等) ---- */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--gap); overflow: hidden; box-shadow: 0 1px 3px rgba(30, 90, 50, .06); }
.sec:last-child { margin-bottom: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; font-size: var(--fs-card-title); font-weight: 700; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdfb, #f4faf3); }
.sec-head .more { font-size: var(--fs-sm); font-weight: 400; color: var(--primary-deep); white-space: nowrap; }
.sec-body { padding: 12px 14px; }
/* 分组卡内部的表格:去掉四周多余留白,由卡体统一留白 */
.sec-body .report-table { margin: 0; }

/* ---- 数字强调 ---- */
.num { font-size: var(--fs-num); font-weight: 800; line-height: 1.3; }
.num-sm { font-size: 22px; font-weight: 800; }
.money-out { color: var(--danger); }   /* 支出红色(中文财务习惯) */
.money-in { color: var(--primary-deep); }  /* 收入绿色 */
.money-warn { color: var(--warn); }    /* 待办/预警橙色 */
.money-out::before { content: "-¥"; }
.money-in::before { content: "+¥"; }

/* 可点击的待办行(首页·我的待办) */
.card-row.link-row { text-decoration: none; color: inherit; }
.card-row.link-row:active { background: var(--primary-light); }

/* ---- 按钮 ---- */
.btn {
  display: block; width: 100%;
  height: var(--btn-h);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body); font-weight: 600;
  padding: 0 16px;
  text-align: center;
}
.btn-lg { height: var(--btn-h-lg); font-size: var(--fs-card-title); border-radius: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-deep); }
.btn-outline { background: #fff; color: var(--primary-deep); border: 2px solid var(--primary); }
.btn-block { display: block; width: 100%; box-sizing: border-box; text-align: center; }

/* 工程节点下工单微条目 + 发单按钮 */
.wo-mini { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-top: 6px; border-radius: 8px; background: var(--primary-light, #eef6ee); font-size: 13px; }
.wo-mini .wo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2, #9bb39b); flex: 0 0 auto; }
.wo-mini .wo-dot.cur { background: var(--primary, #2e7d32); }
.wo-mini .wo-dot.done { background: var(--success, #388e3c); }
.wo-mini .wo-amt { margin-left: auto; color: var(--danger, #c0392b); font-weight: 600; }
.link-btn { display: inline-block; margin-top: 6px; padding: 4px 10px; border: 1px solid var(--primary, #2e7d32); color: var(--primary-deep, #1b5e20); border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; }
.link-btn:active { transform: scale(0.98); }
.btn-ghost { background: var(--primary-light); color: var(--primary-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-muted { background: #eef2ee; color: var(--text-sub); }
.btn[disabled], .btn.disabled { background: #e6ebe6; color: #a5b0a6; pointer-events: none; }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

/* ---- 底部导航 ---- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; z-index: 30;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; color: var(--muted);
  font-size: var(--fs-tab); font-weight: 500;
}
.bottom-nav a .nav-ico { font-size: 24px; line-height: 1; }
.bottom-nav a.active { color: var(--primary-deep); font-weight: 700; }
.bottom-nav a.active .nav-ico { color: var(--primary); }

/* (原顶部导航已改为底部导航,样式见 .bottom-nav) */

/* ---- 首页仪表盘 ---- */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-grid .stat-card { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; background: #fff; border-radius: 14px;
  color: var(--text); font-size: 13px; text-align: center;
}
.tool .tool-ico { font-size: 26px; line-height: 1; }
/* ---- 操作工作台分组 ---- */
.tool-group { margin-top: 14px; }
.tool-group-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 2px 8px; }
.tool-group-title::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }
.main-entry { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.main-entry .me-ico { font-size: 28px; }
.main-entry .me-main { flex: 1; min-width: 0; }
.main-entry .me-name { font-size: 17px; font-weight: 700; }
.main-entry .me-sub { font-size: 13px; color: var(--text-sub); }

/* ---- 状态徽章 ---- */
.badge {
  display: inline-block; padding: 3px 12px;
  border-radius: 999px; font-size: var(--fs-sm);
  font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge-gray { background: #eef1ee; color: var(--muted); }
.badge-purple { background: #eeedfe; color: #534ab7; }
.badge-blue { background: #e8f1fb; color: var(--info); }
.badge-orange { background: #fdf0e2; color: var(--warn); }
.badge-green { background: var(--primary-light); color: var(--primary-deep); }
.badge-red { background: #fbeae8; color: var(--danger); }

/* ---- 进度条 ---- */
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 14px; background: #e6ede5; border-radius: 999px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.progress-bar .fill.over { background: var(--danger); }
.progress-pct { font-weight: 800; font-size: var(--fs-body); min-width: 46px; text-align: right; }

/* ---- 流程卡(饲养五卡) ---- */
.flow-card {
  background: #fff; border-radius: var(--radius);
  padding: 16px; cursor: pointer;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--gap);
}
.flow-card:last-child { margin-bottom: 0; }

/* 养鸡流程时间轴节点卡 */
.flow-timeline { position: relative; padding-left: 26px; }
.flow-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.flow-node { position: relative; background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: var(--gap); border: 1px solid var(--line); cursor: pointer; }
.flow-node:last-child { margin-bottom: 0; }
.flow-node::before { content: ""; position: absolute; left: -19px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff; }
.flow-node .fn-top { display: flex; align-items: center; gap: 10px; }
.flow-node .fn-ico { font-size: 22px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; }
.flow-node .fn-name { font-size: 17px; font-weight: 700; }
.flow-node .fn-desc { color: var(--text-2); font-size: 13px; margin: 6px 0 10px; line-height: 1.5; }
.flow-node .fn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-node .fn-chip { font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 3px 8px; }
.flow-node .fn-chip b { color: var(--primary-deep); }

/* 表单两列 + 节点操作记录 */
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; min-width: 0; }

/* 工单动态明细行（工人/设备） */
.dyn-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.dyn-row .input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
.dyn-row .dyn-del { flex: 0 0 auto; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--danger-light, #fdecea); color: var(--danger, #c0392b); cursor: pointer; font-size: 15px; }
.dyn-row .dyn-del:active { transform: scale(0.92); }
.section-sub { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 14px 0 8px; }
.op-card { padding: 12px 14px; }
.op-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.op-ref { color: var(--primary); font-size: 13px; text-decoration: none; }
.op-desc { font-size: 14px; line-height: 1.5; word-break: break-all; }
.op-meta { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.op-card .media-row { margin-top: 8px; }
.flow-card:active { background: var(--primary-light); }
.flow-ico {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.flow-main { flex: 1; min-width: 0; }
.flow-name { font-size: var(--fs-card-title); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.flow-sum { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; }
.flow-arrow { color: var(--muted); font-size: 20px; flex-shrink: 0; }

/* ---- 列表 ---- */
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.list-item:active { background: var(--primary-light); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: var(--fs-body); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; }
.li-right { text-align: right; flex-shrink: 0; }

/* ---- 空态 ---- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--muted);
  font-size: var(--fs-body);
}
.empty .empty-ico { font-size: 44px; display: block; margin-bottom: 12px; color: #b9c6ba; }
.empty .empty-btn { margin-top: 18px; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ---- 无权限 ---- */
.no-perm {
  text-align: center; padding: 70px 30px;
}
.no-perm .np-ico { font-size: 48px; display: block; margin-bottom: 14px; color: var(--warn); }
.no-perm p { font-size: var(--fs-title); font-weight: 700; margin-bottom: 6px; }
.no-perm .np-sub { color: var(--text-sub); margin-bottom: 24px; }

/* ---- 弹层(二次确认) ---- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,40,25,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.dialog {
  width: 100%; max-width: 480px;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 24px var(--gap) calc(24px + env(safe-area-inset-bottom, 0px));
  animation: slideUp .2s ease;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.dialog h3 { font-size: var(--fs-title); margin-bottom: 8px; }
.dialog p { color: var(--text-sub); margin-bottom: 20px; font-size: var(--fs-body); }
.dialog .btn-row { margin-top: 8px; }
.dialog .btn-row .btn { height: var(--btn-h-lg); }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; top: 20%;
  transform: translateX(-50%);
  background: rgba(34,48,31,0.92); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: var(--fs-body); z-index: 200;
  max-width: 84%; text-align: center;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---- 表单 ---- */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: flex; align-items: center; font-weight: 600; margin-bottom: 8px; font-size: var(--fs-body); }
.form-label .req { color: var(--danger); margin-left: 4px; }
.form-label .hint { margin-left: auto; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
/* 复选框与文字留间距(如"需拍照留痕"),避免贴在一起 */
.form-label input[type="checkbox"] { margin-right: 8px; flex-shrink: 0; }
/* 工人多选:可勾选的多选框组 */
.chk-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chk-item {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 15px; cursor: pointer;
}
.chk-item:active { background: var(--primary-light); border-color: var(--primary); }
.chk-item input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
/* 首页"更多功能"入口行(导航/待办已覆盖的入口不再放首页) */
.more-links { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: 12px; padding: 12px 14px; }
.more-links a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-light); border-radius: 999px; padding: 6px 14px;
}
.more-links a:active { background: var(--primary); color: #fff; }
.form-err { color: var(--danger); font-size: var(--fs-sm); margin-top: 6px; display: none; }
.form-group.has-err .form-err { display: block; }
.form-group.has-err input, .form-group.has-err select, .form-group.has-err textarea { border-color: var(--danger); }

/* 通用间距补丁:卡片内标题/正文/元信息分层,避免元素贴在一起 */
.op-desc b { margin-right: 4px; }
.op-meta { line-height: 1.6; }
.fn-chip b { margin: 0 2px; }
.media-row { margin-top: 8px; }
.section-sub { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.section-sub::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); flex-shrink: 0; }
.card-title { flex-wrap: wrap; gap: 6px; }
.badge { margin-right: 0; }
.op-line .op-meta { margin-left: auto; }

/* ---- 筛选 chips ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  background: #eef2ee; color: var(--text-sub);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--primary); color: #fff; }

/* ---- 统计卡 ---- */
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--line);
}
.stat-card .sk { font-size: var(--fs-sm); color: var(--text-sub); }
.stat-card .sv { font-size: var(--fs-num); font-weight: 800; line-height: 1.4; }
.stat-card .sv.red { color: var(--danger); }
.stat-card .sv.orange { color: var(--warn); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.stat-grid-4 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }

/* ---- 提醒条 ---- */
.alert-bar {
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: var(--fs-body); display: flex; align-items: center; gap: 10px;
  border: 1px solid;
  margin-bottom: var(--gap);
}
.alert-bar:last-child { margin-bottom: 0; }
.alert-bar.red { background: #fdf0ee; border-color: #f2c8c3; color: var(--danger); }
.alert-bar.orange { background: #fdf5e8; border-color: #f0d9b8; color: var(--warn); }
.alert-bar.blue { background: #edf4fc; border-color: #c9dcef; color: var(--info); }
.alert-bar.green { background: var(--primary-light); border-color: #c3e3cc; color: var(--primary-deep); }
.alert-bar .ab-ico { font-size: 22px; flex-shrink: 0; }
.alert-bar b { font-weight: 800; }

/* ---- 大按钮网格(六类入口等) ---- */
.big-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; margin-bottom: var(--gap); }
.big-grid:last-child { margin-bottom: 0; }
.big-btn {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer;
  min-height: 96px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.big-btn:active { background: var(--primary-light); border-color: var(--primary); }
.big-btn .bb-ico { font-size: 30px; }
.big-btn .bb-name { font-weight: 700; font-size: var(--fs-body); }

/* ---- 任务卡(晨午晚) ---- */
.task-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 16px;
}
.task-card:active { background: var(--primary-light); }
.task-ico {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.task-ico.morning { background: #fdf0d8; }
.task-ico.noon { background: #e8f1fb; }
.task-ico.night { background: #eae8f7; }
.task-main { flex: 1; min-width: 0; }
.task-name { font-weight: 700; font-size: var(--fs-card-title); }
.task-sub { font-size: var(--fs-sm); color: var(--text-sub); }

/* ---- 勾检项 ---- */
.check-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px;
}
.check-item input[type="checkbox"] {
  width: 26px; height: 26px; flex-shrink: 0;
}
.check-item .ci-main { flex: 1; }
.check-item .ci-name { font-weight: 600; }
.check-item .ci-photo { margin-left: auto; }
.photo-btn {
  min-width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-deep);
  font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
}
.photo-btn.has-photo { background: var(--primary); color: #fff; }
.photo-btn.wk-btn { padding: 0 14px; gap: 6px; }
.photo-btn .pb-label { font-size: 14px; font-weight: 700; }
.check-item.done { background: #f7faf6; }
.check-item.done .ci-name { color: var(--muted); text-decoration: line-through; }

/* ---- 照片占位 ---- */
.photo-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden; flex-shrink: 0;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 媒体上传(图片/视频) ---- */
.media-preview { display: flex; flex-wrap: wrap; gap: 10px; }
/* 上传组件按钮行:上传/拍照按钮间距(旧内核不支持 flex gap,用 margin 方案) */
.mp-row { display: flex; flex-wrap: wrap; }
.mp-row .btn { margin-right: 8px; margin-bottom: 8px; }
.mp-row .btn:last-child { margin-right: 0; }
.media-row { display: inline-flex; flex-wrap: wrap; gap: 8px; vertical-align: middle; }
.media-thumb {
  position: relative; width: 74px; height: 74px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--primary-light); display: inline-flex;
  align-items: center; justify-content: center;
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .mv-ico { font-size: 30px; }
.media-thumb .mv-name { font-size: 11px; line-height: 1.2; padding: 4px; text-align: center; color: var(--text-sub); }
.media-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(20,40,25,0.6); color: #fff;
  font-size: 14px; line-height: 20px; text-align: center;
}
.media-del:active { background: rgba(20,40,25,0.85); }
.media-tip { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }

/* ---- 施工步骤卡(鸡建流程) ---- */
.step-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 16px;
  margin-bottom: var(--gap);
}
.step-card:last-child { margin-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-no {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step-no.cur { box-shadow: 0 0 0 3px var(--primary-light); }
.step-no.todo { background: #eef1ee; color: var(--muted); }
.step-no.done { background: var(--primary-deep); }
.step-name { font-size: var(--fs-card-title); font-weight: 700; flex: 1; min-width: 0; }
.step-node {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.step-node:last-child { border-bottom: none; }
.sn-ico { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.sn-ico.done { background: var(--primary); color: #fff; }
.sn-ico.cur { background: var(--primary-light); color: var(--primary-deep); border: 2px solid var(--primary); }
.sn-ico.todo { background: #eef1ee; color: var(--muted); }
.sn-ico.warn { background: #fdf0ee; color: var(--danger); }
.sn-main { flex: 1; min-width: 0; }
.sn-name { font-size: var(--fs-body); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sn-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; }
.sn-photo { flex-shrink: 0; }
.purchase-link {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.purchase-link:last-child { margin-bottom: 0; }
.purchase-link:active { background: var(--primary-light); }

/* ---- 时间线 ---- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -20px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}
.tl-item .tl-time { font-size: var(--fs-sm); color: var(--muted); }
.tl-item .tl-title { font-weight: 600; }
.tl-item .tl-sub { font-size: var(--fs-sm); color: var(--text-sub); }

/* ---- 养鸡流程 · 饲养进度(阶段卡片,仿工程卡) ---- */
.stage-card { cursor: pointer; }
.stage-card:active { background: var(--primary-light); }
.stage-desc { font-size: var(--fs-sm); color: var(--text-sub); line-height: 1.5; margin: 6px 0 4px; }
.stage-money { font-size: var(--fs-sm); color: var(--primary-deep); background: var(--primary-light); border-radius: 8px; padding: 6px 10px; margin-top: 10px; }

/* ---- 饲养阶段详情页:动作卡/信息块/记录分组(紧凑化,避免长页堆叠) ---- */
.action-card { padding: 12px 14px; }
.action-card .op-line { margin-bottom: 4px; }
.action-title { font-size: 17px; font-weight: 700; margin: 2px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* 信息块:无背景色,label 小灰字 + 正文,间距收紧 */
.kv-block { padding: 0; margin-top: 8px; }
.kv-block.kv-close { margin-top: 2px; }
.kv-label { font-size: 13px; color: var(--text-sub); font-weight: 700; margin-bottom: 2px; }
.kv-text { font-size: 14px; line-height: 1.55; color: var(--text); word-break: break-word; }
.action-meta { font-size: 13px; color: var(--text-sub); margin-top: 6px; line-height: 1.5; }
/* 动作卡底部操作:右侧收窄按钮(替代全宽大按钮,减少视觉重量) */
.action-act { margin-top: 10px; display: flex; justify-content: flex-end; }
.action-act .btn { width: auto; height: 40px; padding: 0 18px; font-size: 15px; }
.op-group { margin-bottom: var(--gap); }
.op-group-title { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
.op-group-title .op-sum { font-size: var(--fs-sm); font-weight: 600; color: var(--primary-deep); }
.op-group .op-card { margin-bottom: 10px; }
.op-group .op-card:last-child { margin-bottom: 0; }
/* 操作记录:浅底 + 无投影,与动作卡(白卡)区分层级,页面更有节奏 */
.op-card { padding: 10px 12px; background: var(--bg); box-shadow: none; }
.op-card .op-line { margin-bottom: 3px; }
.op-card .op-desc { font-size: 14px; }
.op-card .op-meta { margin-top: 4px; }

/* ---- 通用小工具 ---- */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-sub { color: var(--text-sub); }
.text-muted { color: var(--muted); }
.text-red { color: var(--danger); }
.text-orange { color: var(--warn); }
.text-green { color: var(--primary-deep); }
.text-center { text-align: center; }
.bold { font-weight: 700; }
.section-title { font-size: var(--fs-card-title); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.section-title .more { font-size: var(--fs-sm); font-weight: 400; color: var(--primary-deep); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.hidden { display: none !important; }

/* ---- 养鸡流程链(横向,六段) ---- */
.flow-chain { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding: 4px 0 8px; }
.fc-node { flex: 1; min-width: 92px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; cursor: pointer; }
.fc-node:active { background: var(--primary-light); border-color: var(--primary); }
.fc-node.active { background: #eef8f2; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(31,125,60,.15); }
.fc-node .fc-ico { font-size: 20px; }
.fc-node .fc-name { font-size: 13px; font-weight: 700; margin: 4px 0 2px; }
.fc-node .fc-prog { font-size: 11px; color: var(--text-sub); }
.fc-arrow { display: flex; align-items: center; color: var(--muted); font-size: 16px; flex-shrink: 0; }
/* 动作库卡片 */
.action-card { margin-bottom: 10px; }
/* 经营总览大数 */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ov-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ov-cell .ov-k { font-size: 12px; color: var(--text-sub); }
.ov-cell .ov-v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.ov-cell .ov-v.money-out { color: var(--danger); }
.ov-cell .ov-v.money-in { color: var(--primary-deep); }
/* 节点工人(工时/工费) */
.node-workers { margin: 6px 0 2px; padding: 6px 8px; background: var(--bg); border-radius: 8px; }
.nw-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 13px; }
.nw-name { color: var(--text-2); }
.nw-meta { color: var(--text-sub); font-size: 12px; }

/* ============================================================
   审核收件箱卡片(执行管理 / 督办员 首页纯审核)
   左侧状态色条 + 类型/状态双标签 + 多字段 KV 网格 + 内联审核记录
   ============================================================ */
.rev-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 1px 3px rgba(30, 90, 50, .06);
}
.rev-card:last-child { margin-bottom: 0; }
.rev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rev-type {
  font-size: var(--fs-sm); font-weight: 700; color: var(--info);
  background: #e8f1fb; border-radius: 8px; padding: 3px 10px;
}
.rev-status { margin-left: auto; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.rev-status.pending { color: var(--warn); background: #fdf5e8; }
.rev-status.done { color: var(--primary-deep); background: var(--primary-light); }
.rev-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.4; margin-bottom: 10px; word-break: break-word; }
/* 多字段 KV 网格(适老化:两列,清晰分层) */
.rev-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.rev-row { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rev-row .rk { font-size: 13px; color: var(--text-sub); }
.rev-row .rv { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-word; }
.rev-row.full { grid-column: 1 / -1; }
.rev-row .rv.money { color: var(--danger); }
.rev-row .rv.link { color: var(--primary-deep); }
.rev-media { margin-top: 10px; }
/* 审核按钮(待审态,醒目主按钮) */
.rev-act { margin-top: 12px; }
.rev-act .btn { width: 100%; height: var(--btn-h); font-size: 17px; font-weight: 700; }
/* 内联审核记录(已审态:清晰展示 审核人/时间/结论/意见 — 即"模拟审核记录") */
.rev-audit {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--primary-light); border: 1px solid #cfe6d6;
}
.rev-audit .ra-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary-deep); margin-bottom: 6px; }
.rev-audit .ra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.rev-audit .ra-item { font-size: 13px; color: var(--text-sub); }
.rev-audit .ra-item b { color: var(--text); font-weight: 700; }
.rev-audit .ra-note { grid-column: 1 / -1; font-size: 13px; color: var(--text); margin-top: 2px; }
.rev-audit .ra-concl-pass { color: var(--primary-deep); font-weight: 700; }
.rev-audit .ra-concl-fail { color: var(--danger); font-weight: 700; }
/* 收件箱空态 */
.rev-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.rev-empty .re-ico { font-size: 40px; }
.rev-empty .re-txt { font-size: 17px; font-weight: 600; margin-top: 8px; }
.rev-empty .re-sub { font-size: 14px; margin-top: 4px; }

/* 审核分类选项卡(全部 + 各审核类型,现场/执行/督办首页共用) */
.rev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.rev-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-sm);
  font-weight: 600; color: var(--text-sub); background: var(--bg); border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.rev-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 员工动态进度条(总经理首页) */
.staff-prog { display: flex; flex-direction: column; gap: 16px; }
.sp-row { }
.sp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sp-name { font-size: 16px; font-weight: 800; color: var(--text); }
.sp-role { font-size: 12px; color: var(--text-sub); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.sp-val { margin-left: auto; font-size: 13px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.sp-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }

/* 资产台账 · 横向条形图 */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 64px; flex: 0 0 64px; font-size: 13px; color: var(--text-sub); text-align: right; }
.bar-track { flex: 1; height: 16px; background: #e6ede5; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.bar-fill.egg { background: #e0a93b; }
.bar-val { width: 64px; flex: 0 0 64px; font-size: 13px; font-weight: 700; color: var(--text); text-align: left; }
.report-table .total-row td { font-weight: 800; background: var(--bg); }

/* 事件委托跳转：可点击的 data-link 卡片显示指针(原由 ui.bindLinks JS 设置) */
[data-link] { cursor: pointer; }

/* ============================================================
   饲养阶段详情页(flow_node) · 页面级排版(移动优先,层级清晰)
   以 .flow-page 前缀限定,不影响其他页面
   ============================================================ */
/* 阶段身份头卡:白色背景 + 顶部主色细线(保留身份感),第一眼交代「哪个阶段、进度如何」 */
.flow-page .stage-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  margin-bottom: var(--gap);
  box-shadow: 0 1px 3px rgba(30, 90, 50, 0.06);
}
.flow-page .sh-top { display: flex; align-items: center; gap: 12px; }
.flow-page .sh-ico {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 1px 3px rgba(30, 90, 50, 0.1);
}
.flow-page .sh-name { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-page .sh-desc { font-size: 14px; color: var(--text-sub); line-height: 1.55; margin: 10px 0 12px; }
.flow-page .sh-prog { display: flex; align-items: center; gap: 12px; }
.flow-page .sh-prog .progress-wrap { flex: 1; }
.flow-page .sh-pct { font-size: 13px; color: var(--text-sub); font-weight: 700; white-space: nowrap; }
.flow-page .sh-meta { font-size: 13px; color: var(--text-sub); margin-top: 10px; }
.flow-page .sh-meta b { color: var(--text); font-weight: 600; }

/* 区块标题:主色竖条 + 统一间距,与卡片区分层级 */
.flow-page .section-title { position: relative; padding-left: 10px; margin: 20px 0 12px; }
.flow-page .section-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 2px; background: var(--primary);
}

/* 动作卡:头部行 + 详情 + 底部操作(信息不再堆叠,一卡一眼) */
.flow-page .action-card { padding: 12px 14px; }
.flow-page .ac-head { display: flex; align-items: center; gap: 8px; }
.flow-page .ac-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.flow-page .ac-dot.done { background: var(--primary); }
.flow-page .ac-dot.todo { background: #d5dfd4; }
.flow-page .ac-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow-page .ac-flag { font-size: 12px; color: var(--danger); font-weight: 500; }
.flow-page .ac-freq { flex-shrink: 0; }
.flow-page .ac-detail { margin-top: 10px; padding: 8px 10px; background: var(--bg); border-radius: 10px; }
.flow-page .ac-detail .kv-block { margin-top: 0; }
.flow-page .ac-detail .kv-block.kv-close { margin-top: 6px; }
.flow-page .ac-detail .kv-label { font-size: 12.5px; margin-bottom: 2px; }
.flow-page .ac-detail .kv-text { font-size: 14px; }
.flow-page .ac-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-page .ac-meta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-sub); line-height: 1.5; }
.flow-page .btn-ac {
  flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--primary); background: #fff; color: var(--primary-deep);
  font-size: 14px; font-weight: 600;
}
.flow-page .btn-ac:active { background: var(--primary-light); }
.flow-page .action-card.done { background: #fbfdfb; }
.flow-page .action-card.done .ac-name { color: var(--muted); }

/* 操作记录分组标题:图标底色点缀,小计右对齐 */
.flow-page .op-group-title { font-size: 15px; }
.flow-page .op-group-title .op-ico {
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--primary-light); font-size: 13px; margin-right: 4px;
}

/* 操作记录入口卡(跳转 flow_ops.html 明细页) */
.flow-page .ops-entry { display: flex; align-items: center; gap: 12px; padding: 14px; }
.flow-page .oe-ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.flow-page .oe-main { flex: 1; min-width: 0; }
.flow-page .oe-title { font-size: 16px; font-weight: 700; }
.flow-page .oe-sub { font-size: 13px; color: var(--text-sub); margin-top: 2px; }

/* 链接型入口:真实 <a> 导航(不依赖 JS 委托,任何环境可打开),去掉默认下划线 */
.flow-page a.btn, .flow-page a.btn-ac { text-decoration: none; }
.flow-page a.ops-entry { text-decoration: none; color: inherit; }

/* ============================================================
   首页增强(hm-) · 饲养情况/工程进度/员工动态/数据概览分组
   分组卡 .sec + 行列表 .hm-row,链接一律真实 a[href]
   ============================================================ */
/* 分组卡头内「更多」为真实链接:去下划线、主色 */
.sec-head a.more { text-decoration: none; color: var(--primary-deep); }

/* 阶段进度链(横向):复用 .flow-chain 骨架,节点改为真实链接 */
.hm-chain { margin-bottom: 4px; }
.hm-chain a.fc-node { text-decoration: none; color: var(--text); }
.hm-chain a.fc-node .fc-name { font-size: 12.5px; }
.hm-chain a.fc-node .fc-prog { font-size: 11px; }

/* 行列表(鸡群行 / 工程行通用):白卡底、两端对齐、点击反馈 */
.hm-list { margin-top: 12px; }
.hm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px;
  text-decoration: none; color: inherit;
}
.hm-row:active { background: var(--primary-light); border-color: var(--primary); }
.hm-row:last-child { margin-bottom: 0; }
.hm-main { flex: 1; min-width: 0; }
.hm-name { font-size: var(--fs-body); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hm-sub { font-size: var(--fs-sm); color: var(--text-sub); margin-top: 2px; line-height: 1.5; }
.hm-right { text-align: right; flex-shrink: 0; }
.hm-num { font-size: 22px; font-weight: 800; color: var(--primary-deep); }
.hm-unit { font-size: var(--fs-sm); color: var(--text-sub); }

/* 工程行内迷你进度条(复用 .progress-bar,仅收窄高度) */
.hm-prog { margin-top: 8px; }
.hm-prog .progress-wrap { gap: 8px; }
.hm-prog .progress-bar { height: 10px; }
.hm-prog .progress-pct { font-size: var(--fs-sm); min-width: 40px; }

/* 专项预算条(工程进度卡内) */
.hm-budget {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}

/* 员工动态流:复用 .feed-item 骨架,行内文字单行省略、时间弱化 */
.hm-feed .feed-item { padding: 10px 0; }
.hm-feed .feed-av { width: 36px; height: 36px; font-size: 15px; }
.hm-feed .fd-line { display: block; font-size: var(--fs-body); line-height: 1.5; }
.hm-feed .fd-time { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.hm-feed .feed-item[data-link] { cursor: pointer; }
.hm-feed .feed-item[data-link]:active { background: var(--primary-light); border-radius: 8px; }

/* 操作记录独立页(flow_ops)记录卡片：白底 + 细边框,替代 op-card 默认浅底 */
.ops-card { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: 0 1px 3px rgba(30, 90, 50, .06) !important; }
