* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4f6ef7;
  --primary-dark: #3b5bdb;
  --primary-light: #eef1fe;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e4e8f0;
  --text: #1f2430;
  --text2: #6b7280;
  --danger: #e03131;
  --warn: #f08c00;
  --ok: #2f9e44;
  --blocked: #e03131;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 通用组件 ---------- */
.btn {
  border: none; border-radius: 8px; padding: 8px 16px; font-size: 14px;
  background: #eef0f5; color: var(--text); transition: all .15s;
}
.btn:hover { background: #e2e6ef; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: #fdecec; color: var(--danger); }
.btn-danger:hover { background: #fadada; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap;
}
.tag-pri-high { background: #fdecec; color: var(--danger); }
.tag-pri-medium { background: #fff4e0; color: #b26a00; }
.tag-pri-low { background: #e9f6ec; color: #2b8a3e; }
.tag-status-not_started { background: #eef0f5; color: var(--text2); }
.tag-status-in_progress { background: var(--primary-light); color: var(--primary-dark); }
.tag-status-pending_qc { background: #fff4e6; color: #d9480f; }
.tag-status-pending_ship { background: #e7f5ff; color: #1971c2; }
.tag-status-done { background: #e9f6ec; color: #2b8a3e; }
.tag-status-blocked { background: #fdecec; color: var(--danger); }
.tag-role-leader { background: #f3e8ff; color: #7c3aed; }
.tag-role-senior { background: #e7f3ff; color: #1971c2; }
.tag-role-member { background: #eef0f5; color: var(--text2); }
.tag-role-viewer { background: #f4f4f4; color: #adb5bd; }
.tag-role-dept { background: #eef4ff; color: #4263eb; }
.tag-role-dept::before { content: "🏢 "; font-size: 10px; }

.role-select {
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text1); background: #fff; cursor: pointer;
}
.role-select:focus { outline: none; border-color: var(--primary); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.avatar-lg { width: 34px; height: 34px; font-size: 14px; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef1fe 0%, #f4f6fb 60%, #e9f6ec 100%);
  padding: 20px;
}
.login-card {
  width: 380px; background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 36px 32px;
}
.login-logo { font-size: 40px; text-align: center; margin-bottom: 8px; }
.login-card h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--text2); font-size: 13px; margin-bottom: 22px; }
.login-card input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 12px; outline: none;
}
.login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login-pw-wrap { position: relative; }
.login-pw-wrap input { padding-right: 44px; }
.login-pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; font-size: 17px; line-height: 1;
  padding: 6px; color: var(--text2); opacity: .75; border-radius: 6px;
}
.login-pw-eye:hover { opacity: 1; background: #f1f3f9; }
.login-error { color: var(--danger); font-size: 13px; margin: 8px 0; min-height: 18px; }

/* ICP 备案号（法定要求：底部展示 + 超链工信部） */
.login-icp {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  text-align: center; font-size: 12px; color: var(--text2); line-height: 1.8;
}
.login-icp a { color: var(--text2); text-decoration: none; }
.login-icp a:hover { color: var(--primary); text-decoration: underline; }
.login-quick { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.login-quick-title { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.login-quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-user {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: #fafbfe;
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.quick-user:hover { border-color: var(--primary); background: var(--primary-light); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 8px 14px;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 7px 20px; min-height: 56px;
}
.topbar-left { font-weight: 700; font-size: 15px; white-space: nowrap; flex: 0 0 auto; }
/* 【布局铁律】顶部导航宁可换行，绝不静默隐藏板块。
   历史事故：13 个板块需要 1330px，实际只分到 890px，旧版用 overflow-x:auto + 隐藏滚动条，
   导致 工作汇报/待办计划/通知/成员管理/审计日志 5 个入口直接消失且毫无提示
   （Bob 反馈"我没有看到所有板块"）。这里改为 flex-wrap 自动换行 + 顶栏 min-height 自适应，
   任何宽度下所有入口都必须可见可点。右侧（通知/版本/测试推送/改密/退出）仍保持 flex:0 0 auto 不被挤压。 */
.topbar-nav {
  display: flex; flex-wrap: wrap; align-content: center; align-items: center;
  gap: 4px; flex: 1 1 auto; min-width: 0;
}
.nav-btn {
  border: none; background: transparent; padding: 7px 11px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.4; color: var(--text2); white-space: nowrap;
  flex: 0 0 auto;
}
.nav-btn:hover { background: #f1f3f9; color: var(--text); }
.nav-btn.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
/* 【智能下沉】单行塞不下全部板块时，由 layoutTopbar() 给 .topbar 加 .topbar--stacked：
   第一行 = 品牌 + 右侧功能区，第二行 = 导航占满整行（13 个板块一行排开）。
   这样任何宽度下所有板块都可见，且不会像旧版那样被 overflow 静默裁掉。 */
.topbar--stacked { flex-wrap: wrap; }
.topbar--stacked .topbar-left { order: 1; }
.topbar--stacked .topbar-right { order: 2; }
.topbar--stacked .topbar-nav { order: 3; flex: 1 0 100%; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bell { position: relative; border: none; background: transparent; font-size: 18px; padding: 6px; border-radius: 8px; }
.bell:hover { background: #f1f3f9; }
.bell-badge {
  position: absolute; top: 0; right: -2px;
  background: var(--danger); color: #fff; font-size: 10px;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.me-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }

/* 窄屏自适应：只收缩「装饰性」内容（部门标签、头像），
   所有功能按钮（导航板块/通知/版本/测试推送/改密/退出）一律不隐藏、不折叠进菜单。 */
@media (max-width: 1440px) {
  .topbar { gap: 6px 10px; padding: 7px 14px; }
  .topbar-left { font-size: 13.5px; }
  .nav-btn { padding: 7px 9px; font-size: 13px; }
  .topbar-right { gap: 8px; }
  .me-info { gap: 6px; }
}
@media (max-width: 1240px) {
  .me-info { font-size: 12.5px; }
  .me-info .tag-role-dept { display: none; }
}
@media (max-width: 1080px) {
  .topbar-left { display: none; }
  .me-info .avatar-lg { display: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 4px 8px; padding: 6px 10px; }
  .nav-btn { padding: 6px 8px; font-size: 12.5px; }
  .topbar-right { gap: 5px; }
  .topbar-right .btn-sm { padding: 5px 7px; font-size: 12px; }
  .build-badge { padding: 3px 6px; font-size: 10px; }
  .me-info { font-size: 12px; }
}

/* ---------- 主区 ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 20px; }

/* 部门频道栏 */
.dept-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 10px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.dept-bar .dept-bar-label { font-size: 12px; color: var(--text2); margin-right: 4px; }
.dept-btn {
  border: 1px solid var(--border); background: #fafbfe; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--text2); white-space: nowrap;
}
.dept-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.dept-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 18px; }
.page-head .sub { color: var(--text2); font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* 仪表盘统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-num { font-size: 26px; font-weight: 700; }
.stat-label { color: var(--text2); font-size: 13px; margin-top: 2px; }
.stat-card.c-total .stat-num { color: var(--primary); }
.stat-card.c-progress .stat-num { color: var(--warn); }
.stat-card.c-done .stat-num { color: var(--ok); }
.stat-card.c-blocked .stat-num { color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.task-mini { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f0f2f8; }
.task-mini:last-child { border-bottom: none; }
.task-mini .t-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.task-mini .t-title:hover { color: var(--primary); }
.task-mini .deadline { font-size: 12px; color: var(--text2); white-space: nowrap; }
.task-mini .deadline.over { color: var(--danger); font-weight: 600; }

/* 成员概览表 */
.member-table { width: 100%; border-collapse: collapse; }
.member-table th, .member-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f0f2f8; }
.member-table th { font-size: 12px; color: var(--text2); font-weight: 500; background: #fafbfe; }
.member-table tr:last-child td { border-bottom: none; }
/* 窄屏下宽表格改为「卡片内横向滚动」，不再把整页撑出横向滚动条
   （之前 .member-table 最小内容宽 422px，在 390px 手机上会把整页顶宽到 477px） */
/* 产品库表格：一屏完整显示、取消横向滚动、固定表头、关键列靠左、百分比列宽 */
.member-table.pl-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.member-table.pl-table th,
.member-table.pl-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  padding: 6px 8px;
  border-bottom: 1px solid #f0f2f8;
}
.member-table.pl-table th {
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafbfe;
  font-weight: 600;
  color: var(--text2);
}
.member-table.pl-table tbody tr:hover { background: #f8f9fc; }
.member-table.pl-table .pl-col-check {
  width: 4%;
  text-align: center;
}
.member-table.pl-table .pl-col-check input { cursor: pointer; }
.member-table.pl-table .pl-contract { width: 6%; font-family: monospace; font-size: 12px; }
.member-table.pl-table .pl-name { width: 11%; }
.member-table.pl-table .pl-name-en { width: 8%; }
.member-table.pl-table .pl-year { width: 4%; }
.member-table.pl-table .pl-date { width: 5%; }
.member-table.pl-table .pl-dept { width: 5%; }
.member-table.pl-table .pl-factory { width: 5%; }
.member-table.pl-table .pl-sku { width: 8%; font-family: monospace; font-size: 12px; }
.member-table.pl-table .pl-price { width: 4%; text-align: right; }
.member-table.pl-table .pl-term { width: 5%; }
.member-table.pl-table .pl-qty { width: 4%; }
.member-table.pl-table .pl-status { width: 4%; }
.member-table.pl-table .pl-action { width: 5%; }
/* M54：包装规格摘要列（放在 SKU 之后，靠前避免被挤出可视区） */
.member-table.pl-table .pl-packspec { width: 9%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-table.pl-table .pl-action button { margin-right: 4px; }
/* M51：操作列 / 价格史列移到表格最左并给足宽度。
   原两列在最右且各只有 5% 宽，td 的 overflow:hidden 会把「删除」按钮整颗裁掉。 */
.member-table.pl-table .pl-act-edit { width: 116px; overflow: visible; white-space: normal; }
.member-table.pl-table .pl-act-edit button { margin-right: 4px; margin-bottom: 2px; }
.member-table.pl-table .pl-act-hist { width: 54px; overflow: visible; text-align: center; white-space: nowrap; }
.member-table.pl-table .pl-act-hist button { margin-right: 0; }
.pl-batchbar {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0; padding: 8px 12px;
  background: #f7f9fc; border-radius: 8px; border: 1px solid var(--border);
}
.pl-batchbar #pl-export { margin-left: auto; }
@media (max-width: 900px) {
  .member-table.pl-table { display: table; width: 100%; table-layout: fixed; }
  .member-table.pl-table .pl-act-edit { width: 76px; }
  .member-table.pl-table .pl-act-edit button { padding: 3px 6px; font-size: 12px; margin-right: 2px; }
  .member-table.pl-table th,
  .member-table.pl-table td { padding: 5px 6px; font-size: 12px; }
  .pl-batchbar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .board-cols { grid-template-columns: minmax(0, 1fr); }
  .todo-add input[type="date"] { width: auto; flex: 1 1 120px; }
  .filters select { flex: 1 1 100%; }
}
.mini-bars { display: flex; gap: 4px; align-items: center; }
.mini-bar { height: 10px; border-radius: 3px; }
.progress-track { height: 6px; background: #edf0f7; border-radius: 4px; overflow: hidden; flex: 1; min-width: 40px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.progress-fill.done { background: var(--ok); }
.progress-fill.blocked { background: var(--danger); }

/* ---------- 看板 ---------- */
/* M24：四个状态各自成列 + 看板贴合视口（列内独立滚动）+ 分区可折叠 + 紧凑模式 */
.board-toolbar {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.board-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); cursor: pointer; }
.board-toggle input { width: 15px; height: 15px; cursor: pointer; }
.board-summary { font-size: 12px; color: var(--text2); }
.board-summary b { color: var(--text); font-weight: 600; }
.board-summary b.over { color: var(--danger); }
.board-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) { .board-actions { margin-left: 0; } }

.board-cols {
  display: grid; gap: 12px; align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.board-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .board-cols, .board-cols.cols-2, .board-cols.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* 窄屏单列：高度交回 CSS（覆盖 JS 设的行内高），每列最多占 46vh，页面不会一路滚到底 */
  .board-cols, .board-cols.cols-2, .board-cols.cols-3 { grid-template-columns: minmax(0, 1fr); height: auto !important; }
  .board-cols .col-body { max-height: 46vh; }
}

.board-col {
  --col: var(--primary);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: #f7f8fc; border: 1px solid var(--border); border-top: 3px solid var(--col);
  border-radius: 12px; padding: 8px 8px 10px;
}
.board-col[data-status="not_started"] { --col: #868e96; }
.board-col[data-status="in_progress"] { --col: var(--primary); }
.board-col[data-status="done"] { --col: var(--ok); }
.board-col[data-status="blocked"] { --col: var(--danger); }
.board-col.drop-over { outline: 2px dashed var(--col); outline-offset: -2px; background: var(--primary-light); }
.board-col-head {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 4px 8px; margin-bottom: 8px;
  font-weight: 600; font-size: 13px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
}
.board-col-head .ch-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.board-col-head .ch-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-col-head .gap { flex: 1 1 auto; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--col); flex: 0 0 auto; }
.col-count { background: var(--col); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; flex: 0 0 auto; }
.col-over { background: #fdecec; color: var(--danger); border-radius: 999px; padding: 0 7px; font-size: 11px; flex: 0 0 auto; }
.col-fold { border: none; background: transparent; color: var(--text2); font-size: 12px; line-height: 1; padding: 6px; border-radius: 6px; flex: 0 0 auto; min-width: 26px; }
.col-fold:hover { background: rgba(16, 24, 40, .07); color: var(--text); }

.col-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px;
}
.col-body::-webkit-scrollbar { width: 8px; }
.col-body::-webkit-scrollbar-thumb { background: rgba(16, 24, 40, .18); border-radius: 4px; }
.col-body::-webkit-scrollbar-track { background: transparent; }
.board-col.folded { align-self: start; }
.board-col.folded .col-body { display: none; }

.tcard {
  --col-pri: var(--text2);
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--col-pri);
  border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
}
.tcard.pri-high { --col-pri: var(--danger); }
.tcard.pri-medium { --col-pri: var(--warn); }
.tcard.pri-low { --col-pri: var(--ok); }
.tcard:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, .1); }
.tcard.dragging { opacity: .5; }
.tcard.unread { border-color: rgba(220, 38, 38, .6); box-shadow: 0 0 0 1px rgba(220, 38, 38, .18), 0 2px 8px rgba(220, 38, 38, .10); }
.tcard .tc-title { display: flex; align-items: flex-start; gap: 5px; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.tcard .tc-title .tc-title-text { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .tc-meta { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--text2); }
.tcard .tc-assignee { display: inline-flex; align-items: center; gap: 4px; }
.avatar-sm { width: 20px; height: 20px; font-size: 10px; }
.tcard .tc-deadline { color: var(--text2); }
.tcard .tc-deadline.over { color: var(--danger); font-weight: 600; }
.tcard .tc-flag { font-size: 11px; }
.tcard .tc-dept { font-size: 11px; }
.tc-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text2); }
.tc-pct { width: 34px; text-align: right; flex: 0 0 auto; }
.tc-move {
  border: 1px solid var(--border); background: #fafbfe; color: var(--text2);
  border-radius: 6px; padding: 2px 4px; font-size: 11px; max-width: 92px; flex: 0 0 auto; cursor: pointer;
}
.tc-move:hover { border-color: var(--primary); color: var(--primary-dark); }

/* 紧凑模式：一张卡更矮，标题单行截断、部门标签收起 —— 同屏能看到更多任务 */
.board-cols.dense .tcard { padding: 6px 8px; margin-bottom: 6px; }
.board-cols.dense .tcard .tc-title { font-size: 12.5px; margin-bottom: 3px; }
.board-cols.dense .tcard .tc-title .tc-title-text { -webkit-line-clamp: 1; }
.board-cols.dense .tcard .tc-dept { display: none; }
.board-cols.dense .tc-foot { margin-top: 4px; }
.tcard .tc-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--text2); }
/* 任务"有更新未读"标记 */
.unread-badge {
  flex-shrink: 0; align-self: center; background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px;
  animation: unread-pulse 2s ease-in-out infinite; white-space: nowrap;
}
.unread-dot {
  display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626; margin-right: 5px; vertical-align: middle;
  animation: unread-pulse 2s ease-in-out infinite;
}
@keyframes unread-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pin-flag { color: var(--warn); font-size: 12px; }

/* ---------- 汇报时间线 ---------- */
.tl-item {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f2f8;
}
.tl-item:last-child { border-bottom: none; }
.tl-left { display: flex; flex-direction: column; align-items: center; }
.tl-line { width: 2px; flex: 1; background: #e4e8f0; margin-top: 4px; }
.tl-body { flex: 1; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tl-task-link { color: var(--primary); cursor: pointer; font-weight: 500; }
.tl-time { color: var(--text2); font-size: 12px; }
.tl-field { margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: #f7f8fc; white-space: pre-wrap; }
.tl-field .fl { font-weight: 600; margin-right: 6px; }
.tl-field.f-done { background: #eef9f0; }
.tl-field.f-result { background: #f2f4fb; }
.tl-field.f-difficulty { background: #fef5e7; border-left: 3px solid var(--warn); }
.tl-field.f-support { background: #fdecec; border-left: 3px solid var(--danger); }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input[type="checkbox"] { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); max-width: 100%; min-width: 0; }
.filters label { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; }

/* ---------- 待办计划 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.plan-card .p-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f0f2f8; }
.plan-card .p-body { padding: 12px 16px; }
.p-sec-title { font-size: 12px; color: var(--text2); font-weight: 600; margin: 10px 0 6px; text-transform: uppercase; }
.p-task { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f0f2f8; font-size: 13px; }
.p-task:last-child { border-bottom: none; }
.p-task .t-title { flex: 1; cursor: pointer; }
.p-task .t-title:hover { color: var(--primary); }
.todo-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.todo-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.todo-item .todo-title { flex: 1; }
.todo-item.done .todo-title { text-decoration: line-through; color: var(--text2); }
.todo-item .todo-del { border: none; background: none; color: #c0c5d0; font-size: 14px; visibility: hidden; }
.todo-item:hover .todo-del { visibility: visible; }
.todo-item .todo-del:hover { color: var(--danger); }
.todo-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.todo-add input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.todo-add input:focus { border-color: var(--primary); }
.todo-add select { border: 1px solid var(--border); border-radius: 8px; padding: 6px; }
.todo-add input[type="date"] { width: 130px; }

/* ---------- 通知 ---------- */
.notify-item { display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #f0f2f8; align-items: flex-start; }
.notify-item.unread { background: #f6f8ff; margin: 0 -10px; padding: 12px 14px; border-radius: 8px; }
.notify-item .n-icon { font-size: 16px; margin-top: 2px; }
.notify-item .n-body { flex: 1; }
.notify-item .n-text { font-size: 13.5px; }
.notify-item .n-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--text2); align-items: center; }
.notify-item .n-actions { display: flex; gap: 6px; }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 94vw);
  background: var(--card); z-index: 100; box-shadow: var(--shadow-lg);
  overflow-y: auto; padding: 26px 30px;
}
.drawer h3 { font-size: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.drawer .close-x { border: none; background: none; font-size: 20px; color: var(--text2); }
.drawer .close-x:hover { color: var(--text); }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.d-desc { background: #f7f8fc; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text2); margin-bottom: 14px; white-space: pre-wrap; }
.d-section { border-top: 1px solid #f0f2f8; padding: 14px 0; }
.d-section h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text2); }
.d-edit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.d-edit-row label { font-size: 13px; color: var(--text2); width: 56px; flex-shrink: 0; }
.d-edit-row select, .d-edit-row input[type="date"] { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; }
.d-progress-row { display: flex; align-items: center; gap: 10px; }
.d-progress-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.report-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; resize: vertical; min-height: 44px; outline: none;
}
.report-form textarea:focus { border-color: var(--primary); }
.report-form .rf-label { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.report-item { padding: 10px 0; border-bottom: 1px dashed #f0f2f8; font-size: 13px; }
.report-item:last-child { border-bottom: none; }
.report-item .ri-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 12px; color: var(--text2); }
.report-item .ri-field { margin-top: 4px; }
.report-item .ri-field .fl { font-weight: 600; color: var(--text); margin-right: 4px; }

/* 审批流 */
.approval-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-size: 13px; }
.approval-item .ai-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-item .ai-meta { color: var(--text2); font-size: 12px; margin-top: 5px; }
.approval-item.ap-pending { border-left: 3px solid var(--warn); background: #fffbf2; }
.approval-item.ap-approved { border-left: 3px solid var(--ok); background: #f4fbf6; }
.approval-item.ap-rejected { border-left: 3px solid var(--danger); background: #fdf4f4; }
.tag-ap-pending { background: #fff4e0; color: #b26a00; }
.tag-ap-approved { background: #e9f6ec; color: #2b8a3e; }
.tag-ap-rejected { background: #fdecec; color: var(--danger); }
.approval-act { margin-top: 10px; padding: 10px 12px; background: #f6f8ff; border: 1px dashed #c5d0fb; border-radius: 10px; }
.approval-act textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; resize: vertical; min-height: 52px; outline: none; }
.approval-act textarea:focus { border-color: var(--primary); }

/* 审计日志 */
.log-table td { font-size: 13px; }
.log-action { background: #eef1fe; color: var(--primary-dark); }

/* 成员多部门编辑 */
.ur-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ur-row select { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.ur-row select:focus { border-color: var(--primary); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 460px; max-width: 92vw; background: var(--card); border-radius: 14px;
  z-index: 110; box-shadow: var(--shadow-lg); padding: 24px;
  max-height: 92vh; overflow-y: auto; /* 内容超出一屏时弹窗内部滚动，按钮始终可达 */
}
/* 订单/PI 导入大弹窗：加宽 + 分栏，明细列自适应 */
.modal-wide { width: min(880px, 94vw); }
.modal-wide .form-grid { grid-template-columns: 1fr 1fr; }
.modal-wide .modal-actions {
  position: sticky; bottom: -24px; margin: 18px -24px -24px; padding: 12px 24px;
  background: var(--card); border-top: 1px solid var(--border); border-radius: 0 0 14px 14px;
}
.line-head {
  display: flex; gap: 6px; align-items: center; padding: 2px 2px 4px;
  font-size: 12px; color: var(--text2);
}
.line-head .li-amt { min-width: 76px; text-align: right; font-size: 12px; }
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.modal .form-row { margin-bottom: 12px; }
.modal .form-row label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.modal .form-row input, .modal .form-row select, .modal .form-row textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none;
}
.modal .form-row input:focus, .modal .form-row select:focus, .modal .form-row textarea:focus { border-color: var(--primary); }
.modal .form-row textarea { resize: vertical; min-height: 60px; }
.modal .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ===== M4.4 员工档案 / 规则配置 ===== */
.profile-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.profile-toolbar .form-input { flex: 1 1 220px; min-width: 0; }
.profile-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-summary { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 13px; color: var(--text2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-summary strong { color: var(--text); }
.profile-summary-sep { color: var(--border); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; transition: box-shadow .15s, border-color .15s; }
.profile-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); border-color: var(--primary, #4f6ef7); }
.profile-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: 0 0 38px; }
.profile-meta { flex: 1 1 auto; min-width: 0; }
.profile-name { font-size: 14.5px; font-weight: 600; }
.profile-sub { font-size: 12px; color: var(--text2); margin-top: 1px; }
.profile-tag-leader { background: var(--primary-light, #eef1ff); color: var(--primary-dark, #2c4abf); padding: 1px 6px; border-radius: 6px; font-size: 11px; margin-left: 6px; }
.profile-rows { display: flex; flex-direction: column; gap: 4px; }
.profile-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #f0f0f3; }
.profile-row:last-child { border-bottom: none; }
.profile-row span { color: var(--text2); }
.profile-row strong { color: var(--text); font-weight: 500; }
.profile-row-ann strong { color: var(--primary-dark, #2c4abf); font-weight: 600; }
/* 合同到期预警：行区域整块高亮（≤45 天黄 / ≤14 天红），0 点自动切换 */
.profile-row-exp { border-radius: 6px; padding-left: 8px; padding-right: 8px; margin: 2px 0; transition: background .2s ease, border-color .2s ease; }
.profile-row-exp.profile-exp-ok strong { color: var(--text); font-weight: 500; }
.profile-row-exp.profile-exp-warn { background: #fff8e1; border-left: 3px solid #f0b429; }
.profile-row-exp.profile-exp-warn strong { color: #8a5a00; font-weight: 700; }
.profile-row-exp.profile-exp-warn span { color: #9a6a00; }
.profile-row-exp.profile-exp-danger { background: #fff0f3; border-left: 3px solid var(--danger, #e03131); }
.profile-row-exp.profile-exp-danger strong { color: #c92a2a; font-weight: 700; }
.profile-row-exp.profile-exp-danger span { color: #c92a2a; }
.profile-row .muted { color: var(--text2); font-style: italic; font-weight: 400; }
.profile-form { display: flex; flex-direction: column; gap: 10px; }
.profile-form-row { display: flex; align-items: center; gap: 10px; }
.profile-form-row > span { flex: 0 0 200px; font-size: 13px; color: var(--text2); }
.profile-form-row > input, .profile-form-row > select { flex: 1 1 auto; min-width: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.profile-form-row > input:disabled, .profile-form-row > select:disabled { background: #f4f4f8; color: var(--text2); }
.profile-form-hint { background: #eef4ff; border-radius: 6px; padding: 8px 12px; font-size: 12.5px; margin-top: 6px; }
.profile-form-warn { background: #fff4e6; color: #b26a00; border-radius: 6px; padding: 8px 12px; font-size: 12.5px; margin-top: 6px; }
.profile-log-block { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.profile-log-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.profile-log-list { list-style: none; padding: 0; margin: 0; font-size: 12.5px; max-height: 180px; overflow-y: auto; }
.profile-log-list li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #f0f0f3; align-items: center; }
.profile-log-stage { background: var(--primary-light, #eef1ff); color: var(--primary-dark); padding: 1px 8px; border-radius: 999px; font-size: 11.5px; flex: 0 0 auto; }
.profile-log-date { color: var(--text2); flex: 0 0 130px; }
.profile-log-channels { color: var(--text2); }
.lp-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.lp-table th, .lp-table td { padding: 6px 8px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.lp-table input { width: 80px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; }
.lp-note { background: #f4f4f8; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; color: var(--text2); margin-bottom: 10px; }
.lp-hint { background: #fff8e6; color: #8a6300; padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-top: 12px; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  /* ⚠️ 改成 column 之后，子元素的 flex-basis 就变成了「高度」：
     `#profile-search` 是 flex:1 1 220px（为行布局写的）→ 竖排后高度被撑成 220px 的空盒子。
     所以竖排时必须把 basis 收掉（2026-09-15 修）。 */
  .profile-toolbar { flex-direction: column; align-items: stretch; }
  .profile-toolbar .form-input { flex: 0 0 auto; width: 100%; min-height: 34px; }
  .profile-tools { align-items: center; }
  .profile-form-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .profile-form-row > span { flex: none; }
}


/* ---- 板块权限配置（成员管理 → 板块权限） ---- */
.perm-sub { font-size: 12px; font-weight: 400; color: var(--text2); margin-left: 8px; }
.perm-head { margin: 10px 0 12px; }
.perm-count { font-size: 14px; }
.perm-count strong { color: var(--primary); font-size: 17px; }
.perm-hint { font-size: 12px; color: var(--text2); margin-top: 5px; line-height: 1.6; }
.perm-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.perm-presets-label { font-size: 12.5px; color: var(--text2); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.perm-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.perm-group-head { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: .5px; margin-bottom: 8px; }
.perm-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.perm-item:hover { background: #eef1f8; }
.perm-item.on { background: var(--primary-light, #eef1ff); }
.perm-item input { margin-top: 2px; flex: 0 0 auto; cursor: pointer; }
.perm-item-text { display: flex; flex-direction: column; min-width: 0; }
.perm-item-label { font-size: 13px; font-weight: 500; }
.perm-item-desc { font-size: 11.5px; color: var(--text2); margin-top: 1px; line-height: 1.4; }
.perm-badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; white-space: nowrap; }
.perm-badge-ok { background: #e6f7ed; color: #0a7a3d; }
.perm-badge-limited { background: #fff4e6; color: #b26a00; }
.perm-badge-self { background: #eef1f8; color: var(--text2); }
@media (max-width: 760px) {
  .perm-grid { grid-template-columns: minmax(0, 1fr); }
  .perm-presets { gap: 5px; }
}

/* 我的周任务 · 统计卡点击清单弹窗 */
#modal-weeklist.modal { width: min(560px, 94vw); }
#modal-weeklist .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
#modal-weeklist .modal-head h3 { margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
#modal-weeklist .modal-x {
  background: none; border: none; font-size: 18px; color: var(--text2); cursor: pointer; line-height: 1; padding: 4px;
}
#modal-weeklist .modal-x:hover { color: var(--danger); }
#modal-weeklist .stat-count {
  font-size: 14px; font-weight: 700; color: #fff; background: var(--primary);
  border-radius: 999px; padding: 1px 10px; min-width: 24px; text-align: center;
}
#modal-weeklist .weeklist-desc { color: var(--text2); font-size: 12.5px; margin-bottom: 12px; }
#modal-weeklist .weeklist-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; }
#modal-weeklist .weeklist-list .day-task { margin-bottom: 0; }
/* 可点的统计卡 hover 提示 */
.stat-card.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.stat-card.clickable:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--primary); }
.stat-card.clickable .stat-label::after { content: ' · 点击查看'; color: var(--primary); font-weight: 600; }
#modal-pass input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none;
}
#modal-pass input:focus { border-color: var(--primary); }

/* ===== M43 密码重置（2026-09-30）=====
   临时密码展示：大字 + 等宽字体 + 字距，便于口头念 / 截图发给员工、避免抄错。
   警示条走琥珀色（提醒，不是错误）。 */
.pwd-temp {
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 26px; font-weight: 600; letter-spacing: 3px;
  text-align: center; padding: 14px 10px; margin: 6px 0 10px;
  background: #f1f5f9; border: 1px dashed #94a3b8; border-radius: 10px;
  color: #0f172a; user-select: all; word-break: break-all;
}
.pwd-warn {
  font-size: 12.5px; line-height: 1.6; color: #92400e;
  background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #232a37; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13.5px; z-index: 400; box-shadow: var(--shadow-lg);
}
.toast.error { background: #c92a2a; }

.empty { text-align: center; color: var(--text2); font-size: 13px; padding: 30px 0; }

/* ---------- 我的周任务 ---------- */
.week-nav { display: flex; gap: 8px; margin-left: auto; }
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
  margin-top: 16px; align-items: start;
}
.day-col {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  min-height: 150px; display: flex; flex-direction: column; overflow: hidden;
}
.day-col-today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 91, 219, 0.15); }
.day-col-weekend .day-head { background: #f6f7f9; }
.day-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  border-bottom: 1px solid var(--border); background: #fafbfc; flex-wrap: wrap;
}
.day-col-today .day-head { background: #eef1fe; }
.day-name { font-size: 13px; font-weight: 700; color: var(--text1); }
.day-date { font-size: 12px; color: var(--text2); }
.day-count {
  margin-left: auto; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: #3b5bdb; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 5px;
}
.day-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.day-empty { text-align: center; color: var(--text2); font-size: 12px; padding: 18px 0; }
.day-task {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px;
  cursor: pointer; background: #fff; transition: box-shadow 0.15s, transform 0.15s;
}
.day-task:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.day-task-over { background: #fff5f5; border-color: #ffc9c9; }
.day-task-title {
  font-size: 12.5px; font-weight: 600; color: var(--text1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.day-task-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.day-task-meta .tag { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; }
.day-task-dept { font-size: 11px; color: var(--text2); }
.day-task-prog { font-size: 11px; color: var(--text2); margin-left: auto; }
.week-overdue { margin-top: 16px; }
.week-overdue .day-task { margin-bottom: 6px; }
.week-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) {
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .week-side { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 协作人与阶段 ---------- */
.stage-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.stage-row:last-child { border-bottom: none; }
.stage-row .st-done { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.stage-row .st-title {
  flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px;
}
.stage-row .st-title-view { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text1); }
.st-done-text { text-decoration: line-through; color: var(--text2); }
.stage-row .st-assignee {
  padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px; max-width: 110px;
}
#nt-collab, #d-collab {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; font-size: 13px; background: #fff;
}
#nt-collab option, #d-collab option { padding: 3px 6px; }
#nt-stages .stage-row { border-bottom: 1px dashed var(--border); }

/* ---------- 附件 ---------- */
.att-upload { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.att-vis-row { display: flex; gap: 8px; align-items: flex-start; }
.att-vis-row select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: #fff; }
.att-users-sel { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 4px; font-size: 13px; }
.att-users-sel option { padding: 3px 6px; }
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-row { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; }
.att-row-main { display: flex; align-items: center; gap: 8px; }
.att-name { font-size: 13px; font-weight: 600; color: var(--text1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.att-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--text2); flex-wrap: wrap; }
.att-ops { display: flex; gap: 6px; }

/* ============ 订单 / 出运 ============ */
/* 订单详情与出运详情弹窗加宽：明细表格 + 内联编辑在宽屏下更易读、易编辑 */
#modal-order.modal, #modal-ship.modal { width: min(1080px, 96vw); }
/* SKU 单元格点击编辑：hover 提示可点 */
.sku-cell { transition: background .1s; }
.sku-cell:hover { background: #eef4ff; }
.sku-cell:hover::after { content: ' 点击填写'; color: var(--primary); font-size: 11px; font-family: inherit; white-space: nowrap; }

/* 任务更新记录（时间线） */
.tlog-form { display: flex; gap: 6px; margin-bottom: 10px; }
.tlog-form input {
  flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; font-size: 13px;
}
.tlog-form input:focus { border-color: var(--primary); }
.tlog-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.tlog-item {
  display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px;
  background: var(--bg, #f8f9fb); border: 1px solid var(--border); border-radius: 9px;
}
.tlog-text { font-size: 13px; word-break: break-word; white-space: pre-wrap; }
.tlog-meta { font-size: 11px; color: var(--text2); margin-top: 2px; }
.line-row {
  display: flex; gap: 6px; align-items: center; padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.line-row:last-child { border-bottom: none; }
.line-row input, .line-row select {
  padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; outline: none;
  font-size: 13px; min-width: 0;
}
.line-row input:focus, .line-row select:focus { border-color: var(--primary); }
.line-row .li-name { flex: 2.2; }
.line-row .li-amt { min-width: 76px; text-align: right; font-size: 13px; color: var(--text2); font-weight: 500; white-space: nowrap; }
#no-factories .fc-name { flex: 1.4; }
#ns-lines .sl-order, #ns-lines .sl-item { font-size: 13px; }
.member-table td .tag { margin-right: 4px; }
.d-section .member-table { margin-top: 4px; }
/* ---- PI 报价 vs 工厂合同价 对比 ---- */
.pc-fxbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.pc-fxbar input { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
.pc-sum { font-size: 14px; padding: 8px 10px; border-radius: 8px; background: #f8f9fb; margin-bottom: 6px; }
.pc-factory { border: 1px solid #eef1f8; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.pc-fhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pc-tbl th { font-size: 12px; }
.pc-tbl td { font-size: 13px; white-space: nowrap; }
.pc-tbl td:first-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- PDF / 文件 全屏预览 ---- */
.modal-pdf { width: min(96vw, 1100px); max-width: 1100px; padding: 0; overflow: hidden; }
.modal-pdf .pdf-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-pdf .pdf-head h3 { font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-pdf iframe { width: 100%; height: 84vh; border: 0; display: block; background: #525659; }
/* pdf.js 全页渲染预览 */
.modal-pdf .pdf-scroll { height: 84vh; overflow-y: auto; background: #525659; }
.pdf-page-canvas { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); max-width: 100%; display: block; }



/* ================= 聊天模块 ================= */
.chat-layout { display: flex; gap: 12px; height: calc(100vh - 180px); min-height: 480px; }
.chat-side {
  width: 280px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-y: auto; padding: 8px;
}
.chat-main { flex: 1; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  cursor: pointer; transition: background .12s;
}
.chat-item:hover { background: #f4f6fb; }
.chat-item.active { background: var(--primary-light); }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; position: relative;
}
.chat-avatar.online::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ok); border: 2px solid #fff;
}
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chat-item-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-count { color: var(--text2); font-weight: 400; font-size: 12px; }
.chat-item-preview { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-unread {
  background: var(--danger); color: #fff; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; max-width: 70%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0;
}
.chat-msg-bubble { background: #f1f3f9; border-radius: 12px; padding: 8px 12px; position: relative; }
.chat-msg.mine .chat-msg-bubble { background: var(--primary); }
.chat-msg.mine .chat-msg-text { color: #fff; }
.chat-msg-name { font-size: 11.5px; color: var(--text2); margin-bottom: 2px; }
.chat-msg-text { font-size: 14px; word-break: break-word; white-space: pre-wrap; }
.chat-msg-time { font-size: 10.5px; color: var(--text2); margin-top: 3px; opacity: .8; }
.chat-msg.mine .chat-msg-time { color: rgba(255,255,255,.75); text-align: right; }
.chat-inputbar { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fafbfd; }
.chat-inputbar input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.chat-inputbar input:focus { outline: none; border-color: var(--primary); }

/* ================= 聊天 P1/P2 扩展 ================= */
.chat-img { max-width: 240px; max-height: 320px; border-radius: 10px; cursor: zoom-in; display: block; }
.chat-msg.mine .chat-img { border: 2px solid rgba(255,255,255,.3); }
.chat-mention { color: #3b5bdb; font-weight: 600; background: #eef1fe; border-radius: 4px; padding: 0 3px; cursor: pointer; }
.chat-ref { color: #e8590c; font-weight: 600; background: #fff4e6; border-radius: 4px; padding: 0 3px; cursor: pointer; }
.chat-msg-system {
  align-self: center; max-width: 80%; text-align: center; color: #868e96; font-size: 12.5px;
  background: #f1f3f5; border-radius: 12px; padding: 6px 12px; display: flex; gap: 8px; align-items: center;
}
.chat-msg-system span:first-child { flex: 1; }
.chat-inputbar .btn-ghost { padding: 8px 10px; }

/* ================= 聊天：消息删除 ================= */
/* 删除按钮：图标 + 文字常显（低透明度），悬停变红醒目 —— 避免用户找不到入口 */
.chat-msg-tool {
  flex: 0 0 auto; align-self: center;
  border: 1px solid #e9ecef; background: #fff; color: var(--text2);
  font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 10px;
  cursor: pointer; opacity: .62; white-space: nowrap;
  transition: opacity .15s, background .15s, color .15s, border-color .15s;
}
.chat-msg:hover .chat-msg-tool { opacity: 1; border-color: #ffc9c9; }
.chat-msg-tool:hover { background: #ffe3e3; border-color: #ffa8a8; color: #e03131; }
@media (hover: none) { .chat-msg-tool { opacity: .9; } }

/* 已删除消息占位：保留原位置，避免对话上下文断裂 */
.chat-msg.deleted { align-items: center; }
.chat-msg-tombstone {
  font-size: 12px; color: var(--text2); background: #f1f3f9;
  border: 1px dashed #ced4da; border-radius: 12px; padding: 6px 12px; font-style: italic;
}
.chat-msg.deleted.mine .chat-msg-tombstone { background: #eef1fe; border-color: #bac8ff; }
.chat-msg-tombstone-time { margin-left: 8px; font-size: 10.5px; opacity: .75; font-style: normal; }

/* 系统通知（订单/任务状态变更）的删除入口 */
.chat-msg-system .chat-msg-tool { opacity: .62; }
.chat-msg-system:hover .chat-msg-tool { opacity: 1; border-color: #ffc9c9; }
.chat-msg-system.deleted span:first-child { color: #adb5bd; font-style: italic; }
@media (hover: none) { .chat-msg-system .chat-msg-tool { opacity: .9; } }

/* ================= 聊天：删除整个会话（≠ 删除单条消息） ================= */
/* 会话列表项：右上角删除入口，为其预留右侧空间避免压住文字 */
.chat-item { position: relative; padding-right: 38px; }
/* 会话删除入口：常显（不靠悬停），否则用户根本找不到 —— 用过的教训 */
.chat-item-del {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dfe3ea; background: #fff; color: #868e96;
  border-radius: 50%; font-size: 13px; cursor: pointer;
  opacity: .95; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: opacity .15s, background .15s, color .15s, border-color .15s, transform .15s;
}
.chat-item:hover .chat-item-del { background: #fff0f0; border-color: #ffa8a8; color: #e03131; }
.chat-item-del:hover { background: #ffe3e3 !important; border-color: #ff8787 !important; color: #e03131 !important; transform: translateY(-50%) scale(1.08); }
.chat-item.active .chat-item-del { border-color: #d5dbf0; }
@media (hover: none) { .chat-item-del { opacity: 1; } }

/* 顶部栏「删除此聊天 / 删除解散会话」：浅色描边让它自己跳出来，悬停转危险色 */
.chat-head .chat-head-del {
  border: 1px solid #dfe3ea; background: #fff; color: var(--text);
  font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.chat-head .chat-head-del:hover { background: #ffe3e3; color: #e03131; border-color: #ffa8a8; }

/* 顶部栏版本徽标：确认「页面是不是最新版」用（点它强制刷新） */
.build-badge {
  border: 1px solid var(--border, #e9ecef); background: #f6f8fb; color: var(--text2);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; cursor: pointer;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.build-badge:hover { background: #eef2f9; color: var(--text); }
.build-badge.new {
  background: #fff4e6; border-color: #ffc078; color: #d9480f; font-weight: 700;
  animation: buildPulse 1.6s ease-in-out infinite;
}
@keyframes buildPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 146, 43, .45); } 50% { box-shadow: 0 0 0 6px rgba(255, 146, 43, 0); } }

/* 删除会话的选择弹窗（仅删我的 / 解散所有人） */
.chat-del-note { font-size: 12.5px; color: var(--text2); margin: 2px 0 12px; }
.chat-del-choices { display: grid; gap: 10px; }
.chat-del-choice {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fafbfd;
}
.chat-del-choice.danger { border-color: #ffc9c9; background: #fff8f8; }
.cdc-ico { font-size: 20px; flex: 0 0 auto; }
.cdc-body { flex: 1 1 auto; min-width: 0; }
.cdc-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.chat-del-choice.danger .cdc-title { color: var(--danger); }
.cdc-sub { font-size: 12px; color: var(--text2); line-height: 1.55; }
/* 选择行里的操作按钮：禁止被弹性布局挤压成竖排文字 */
.chat-del-choice .btn { flex: 0 0 auto; white-space: nowrap; }


/* ================= 聊天：群成员可见 ================= */
.chat-item-members {
  font-size: 11.5px; color: #5c7cfa; margin-top: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 3px;
}
.chat-item-members .cim-ico { flex-shrink: 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: #fafbfd; flex-shrink: 0;
}
.chat-head-avatar {
  width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 12.5px; flex-shrink: 0; position: relative;
}
.chat-head-avatar.group { background: #0ca678; font-size: 16px; }
.chat-head-avatar.online::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ok); border: 2px solid #fafbfd;
}
.chat-head-body { flex: 1; min-width: 0; }
.chat-head-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-sub { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.chat-head-online { font-size: 12px; color: var(--text2); flex-shrink: 0; }
.ch-on { color: #0ca678; }
.ch-off { color: #adb5bd; }
.chat-member-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.chat-member-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.chat-member-row:hover { background: #f4f6fb; }
.chat-member-body { flex: 1; min-width: 0; }
.chat-member-name { font-size: 13.5px; font-weight: 500; }
.chat-member-sub { font-size: 11.5px; color: var(--text2); margin-top: 1px; }
.chat-me-badge {
  font-size: 10.5px; background: var(--primary-light); color: var(--primary);
  border-radius: 4px; padding: 0 4px; margin-left: 2px;
}

/* ================= QC 检验模块 ================= */
.qc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.qc-block {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  background: #fff; display: flex; flex-direction: column;
}
.qc-block-head { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qc-block textarea, .qc-block select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; resize: vertical; box-sizing: border-box;
}
.qc-block textarea:focus, .qc-block select:focus { outline: none; border-color: var(--primary); }
.qc-block-text { font-size: 13px; white-space: pre-wrap; word-break: break-word; color: #343a40; line-height: 1.6; }
@media (max-width: 760px) { .qc-grid { grid-template-columns: 1fr; } }

/* ================= QC 验货模块 ================= */
.qc-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.qc-kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.qc-kpi-num { font-size: 22px; font-weight: 600; color: var(--primary); }
.qc-kpi-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
.qc-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.qc-filters label { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.qc-filters select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.qc-filter-tip { font-size: 12px; color: var(--text2); margin-left: auto; }
.qc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.qc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; transition: box-shadow .12s, transform .12s; }
.qc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-1px); border-color: var(--primary); }
.qc-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.qc-card-pi { font-weight: 600; font-size: 14px; color: var(--primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-card-time { font-size: 11.5px; color: var(--text2); margin-left: auto; }
.qc-card-body { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.qc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qc-row span:first-child { color: var(--text2); }
.qc-vis { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.qc-pill { font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: #f1f3f5; color: var(--text2); }
.qc-pill-photo { background: #e7f5ff; color: #1864ab; }
.qc-pill-video { background: #fff4e6; color: #d9480f; }
.qc-pill-file { background: #f3f0ff; color: #5f3dc4; }
.qc-pill-result { background: #fff9db; color: #b08900; }
.qc-type-pill { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: #f1f3f5; color: var(--text2); font-weight: 500; }
.qc-type-onsite { background: #d3f9d8; color: #2b8a3e; }
.qc-type-video { background: #d0ebff; color: #1864ab; }
.qc-type-factory_hold { background: #fff4e6; color: #d9480f; }
.qc-status-pill { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.qc-tag-amber { background: #fff3bf; color: #b08900; }
.qc-tag-blue { background: #d0ebff; color: #1864ab; }
.qc-tag-coral { background: #ffe3e3; color: #c92a2a; }
.qc-tag-green { background: #d3f9d8; color: #2b8a3e; }
.qc-tag-gray { background: #e9ecef; color: #868e96; }
.qc-detail-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.qc-section { margin: 14px 0; }
.qc-section h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.qc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qc-table th, .qc-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.qc-table th { background: #f8f9fa; font-weight: 500; }
.qc-table input { width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; box-sizing: border-box; }
.qc-type-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qc-type-opt { flex: 1; min-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: all .12s; }
.qc-type-opt input { display: none; }
.qc-type-opt span { font-weight: 600; font-size: 13.5px; }
.qc-type-opt small { font-size: 11.5px; color: var(--text2); }
.qc-type-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.qc-factory-box { background: #fff9db; border: 1px solid #f59f00; border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.qc-factory-head { font-weight: 600; color: #b08900; margin-bottom: 8px; }
.qc-factory-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; flex-wrap: wrap; font-size: 13px; }
.qc-factory-row label { flex: 1; }
.qc-factory-row textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; resize: vertical; }
.qc-factory-row input[type=number], .qc-factory-row input[type=date] { padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; }
.qc-vis-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .qc-vis-row { grid-template-columns: 1fr; } .qc-kpi { grid-template-columns: repeat(2, 1fr); } }
.qc-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 8px; background: #f8f9fa; border-radius: 6px; max-height: 180px; overflow-y: auto; }
.qc-check { font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.qc-vis-tip { font-size: 11.5px; color: var(--text2); margin-top: 6px; }
.qc-vis-summary { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.qc-attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.qc-attach-card { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #f8f9fa; }
.qc-attach-thumb { aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #e9ecef; }
.qc-attach-thumb img, .qc-attach-thumb video { width: 100%; height: 100%; object-fit: cover; }
.qc-attach-thumb a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text2); font-size: 13px; text-decoration: none; }
.qc-attach-name { font-size: 12px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-attach-meta { font-size: 11px; color: var(--text2); padding: 0 6px 4px; }
.qc-attach-del { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.qc-upload-bar { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.qc-empty { color: var(--text2); font-size: 13px; text-align: center; padding: 12px; background: #f8f9fa; border-radius: 6px; }
.qc-resp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .qc-resp-grid { grid-template-columns: 1fr; } }
.qc-block { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fff; }
.qc-block-head { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.qc-block textarea, .qc-block select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.qc-block-text { font-size: 13px; white-space: pre-wrap; word-break: break-word; color: #343a40; line-height: 1.6; }
.qc-log-list { max-height: 220px; overflow-y: auto; font-size: 12.5px; }
.qc-log-item { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.qc-log-time { color: var(--text2); font-family: monospace; }

/* ================= 办公行政 admin ================= */
/* ⚠️ 铁律：标签宁可换行，绝不静默隐藏。
   2026-09-15：这里原是 `overflow-x:auto` + 隐藏滚动条，窄屏（≈760px）下最后一个
   「👥 员工档案」被裁掉且零提示 —— 与 2026-09-12 顶栏那次是同一类事故。
   写成单行是为了能被 grep 精确守护（多行规则 grep -P 默认不跨行）。 */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.admin-tab {
  padding: 10px 16px; border: none; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--text2);
  cursor: pointer; border-radius: 6px 6px 0 0;
  white-space: nowrap; transition: all .15s;
}
.admin-tab:hover { background: #f0f4fa; color: var(--text); }
.admin-tab.active { color: var(--accent); background: #f0f4fa; border-bottom: 2px solid var(--accent); margin-bottom: -2px; }

.admin-loading { padding: 40px; text-align: center; color: var(--text2); }
/* ---------- 产品库权限配置：角色/部门/人员勾选项 ---------- */
.perm-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 10px 6px 0; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; user-select: none; }
.perm-chip:hover { border-color: var(--primary, #4f6ef7); }
.perm-chip input { margin: 0; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-list-item {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; cursor: pointer; transition: all .15s;
}
.admin-list-item:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
/* M19：选中态 —— 详情区在长列表下方，没有高亮用户根本不知道自己点了哪条 */
.admin-list-item.active { border-color: var(--accent); background: #eef4ff; box-shadow: 0 0 0 2px rgba(37,99,235,.14); }
.admin-list-item.active .admin-list-title { font-weight: 600; color: var(--accent); }
.admin-list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.admin-list-type { font-size: 13px; font-weight: 600; color: var(--text); }
.admin-list-title { flex: 1; min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.admin-list-time { font-size: 12px; color: var(--text2); font-family: monospace; }
.admin-list-sub { font-size: 12.5px; color: var(--text2); }

.admin-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.admin-tag-amber { background: #fff3cd; color: #856404; }
.admin-tag-blue { background: #cfe2ff; color: #084298; }
.admin-tag-green { background: #d1e7dd; color: #0a3622; }
.admin-tag-red { background: #f8d7da; color: #58151c; }
.admin-tag-gray { background: #e9ecef; color: #495057; }

.admin-detail-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; margin-top: 12px;
}
.admin-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-detail-head h3 { margin: 0; font-size: 16px; flex: 1; }
.admin-detail-meta { font-size: 12.5px; color: var(--text2); margin-bottom: 8px; }
.admin-detail-reason { font-size: 13.5px; margin: 8px 0; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; }
.admin-detail-extra { font-size: 13px; color: var(--text); margin: 6px 0; }

.admin-steps { margin: 12px 0; }
.admin-step {
  position: relative; padding: 8px 12px 8px 36px;
  border-left: 2px solid var(--border); margin-left: 8px;
  font-size: 13px;
}
.admin-step::before {
  content: ''; position: absolute; left: -7px; top: 12px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #e9ecef; border: 2px solid #fff;
}
.admin-step.approved::before { background: #198754; }
.admin-step.rejected::before { background: #dc3545; }
.admin-step.returned::before { background: #fd7e14; }
.admin-step.pending::before { background: var(--accent); }
.admin-step-no { font-weight: 600; color: var(--accent); font-size: 12px; }
.admin-step-role { color: var(--text); }
.admin-step-action { font-size: 12.5px; color: var(--text2); }
.admin-step-comment { font-size: 12.5px; color: var(--text2); margin-top: 4px; }
.admin-step-time { font-size: 11.5px; color: var(--text2); font-family: monospace; margin-top: 4px; }

.admin-approve-actions { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.admin-approve-actions textarea {
  width: 100%; padding: 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; box-sizing: border-box;
  font-family: inherit; resize: vertical;
}
.admin-approve-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.admin-detail-logs {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text2);
}
.admin-log-row { padding: 3px 0; }

.admin-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; max-width: 720px;
}
.admin-form-card h3 { margin: 0 0 6px; font-size: 16px; }
.admin-form-tip { font-size: 12.5px; color: var(--text2); margin-bottom: 12px; }
.admin-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 12px;
}
.admin-form-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--text);
}
.admin-form-grid input {
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; box-sizing: border-box;
  font-family: inherit;
}
.admin-preview {
  padding: 10px 12px; background: #f8f9fa; border-radius: 6px;
  font-size: 13px; color: var(--text2); margin-bottom: 12px;
}
.admin-form-actions { display: flex; gap: 8px; justify-content: flex-end; }

.admin-quota-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.admin-quota-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px;
}
.admin-quota-card h3 { margin: 0 0 12px; font-size: 15px; }
.admin-quota-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.admin-quota-row.big { font-size: 16px; padding: 10px 0; border-top: 1px dashed var(--border); margin-top: 4px; }
.admin-quota-note { font-size: 12px; color: var(--text2); margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); }
.admin-quota-history summary { font-size: 12.5px; cursor: pointer; color: var(--accent); padding: 6px 0; }
.admin-history-row { display: flex; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--text2); border-bottom: 1px dashed #eee; }

.empty-card { padding: 40px; text-align: center; color: var(--text2); background: #f8f9fa; border-radius: 8px; }
/* ===== M6 调休 / 年假 v2：粒度选择 + 额度明细 ===== M6_LEAVE_V2_CSS */
.m6-field-label { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.m6-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.m6-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; color: var(--text); cursor: pointer; background: #fff;
}
.m6-pill input { margin: 0; accent-color: var(--primary); }
.m6-pill.active { border-color: var(--accent); color: var(--accent); background: #f2f8ff; }
.m6-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text); margin-bottom: 12px; }
.m6-field input {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.admin-quota-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.admin-quota-picker label { display: inline-flex; align-items: center; gap: 6px; }
.admin-quota-picker select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 14px; min-width: 0; max-width: 100%;
}
.admin-quota-picker .muted { font-size: 12px; color: var(--text2); }
.m6-ledger-wrap-title { font-size: 12.5px; color: var(--text2); margin-top: 10px; }
.m6-ledger { margin-top: 4px; }
.m6-ledger-head {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11.5px; color: var(--text2); padding-bottom: 4px;
}
.m6-ledger-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 12.5px;
}
.m6-ledger-date { font-family: monospace; min-width: 88px; color: var(--text); }
.m6-ledger-amt { min-width: 52px; font-weight: 500; }
.m6-ledger-amt.in { color: #2e7d32; }
.m6-ledger-amt.out { color: #d64545; }
.m6-ledger-src { color: var(--text2); }
.m6-ledger-title { flex: 1 1 140px; min-width: 0; color: var(--text2); word-break: break-word; }
.admin-quota-empty { font-size: 12.5px; color: var(--text2); padding: 10px 0; }

/* ===== M6.1 额度手动调整 + 考勤核实 ===== M61_CSS */
/* 卡片标题行：标题 + 右侧「手动调整」按钮 */
.m6-card-head {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.m6-card-head h3 { margin: 0; font-size: 15px; }
/* 入口按钮：常显 + 带文字（禁纯图标 / 禁悬停才出现） */
.m6-adjust-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 32px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--accent); border-radius: 8px;
  background: #fff; color: var(--accent);
  font-size: 12.5px; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.m6-adjust-btn:hover { background: #f2f8ff; }
.m6-verified-tag { color: #2e7d32; font-size: 11.5px; }
.m6-pending-tag { color: #b8860b; font-size: 11.5px; }
.m6-manual-tag {
  display: inline-block; margin-left: 4px; padding: 0 5px;
  border: 1px solid #d0a53c; border-radius: 4px;
  font-size: 10.5px; color: #a07d1c; background: #fdf8e8; white-space: nowrap;
}
.admin-form-hint { font-size: 12px; color: var(--text2); margin: 0 0 12px; }
/* 调整弹窗 */
.m61-adj-hint {
  font-size: 12.5px; color: var(--text2); background: #f8f9fa;
  border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; line-height: 1.7;
}
.m61-adj-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.m61-sign-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 13.5px; font-family: inherit; cursor: pointer; color: var(--text);
}
.m61-sign-btn.active { border-color: var(--accent); color: var(--accent); background: #f2f8ff; }
.m61-adj-input {
  flex: 1 1 120px; min-width: 0; min-height: 44px; padding: 8px 10px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-family: inherit;
}
.m61-adj-result {
  font-size: 12.5px; color: var(--text2); padding: 8px 10px;
  background: #f8f9fa; border-radius: 6px; margin-bottom: 12px;
}
.m61-adj-result b { color: var(--text); }

/* ===== M6.2 考勤时间图片上传 / 查看 + 事假 ===== */
.m62-att-count { font-weight: 400; color: var(--text3, #8a8f98); font-size: 12px; margin-left: 6px; }
.m62-att-upload { margin: 6px 0 8px; }
.m62-att-pick {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border: 1px dashed var(--border); border-radius: 8px;
  cursor: pointer; font-size: 13px; color: var(--text2); background: #fafbfc;
}
.m62-att-pick:hover { border-color: var(--accent); color: var(--accent); }
.m62-att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.m62-thumb { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.m62-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m62-thumb-del {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; line-height: 1;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  cursor: pointer; font-size: 15px; padding: 0;
}
.m62-thumb-empty { font-size: 12.5px; color: var(--text3, #8a8f98); padding: 6px 0; }
.m62-att-view-tip { margin: 8px 0 5px; font-size: 12.5px; color: var(--text2); }
.m62-att-view { display: flex; flex-wrap: wrap; gap: 8px; }
.m62-att-view img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); cursor: zoom-in;
}
.m62-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.m62-lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.m62-lightbox-hint { color: #e8e8e8; font-size: 13px; margin-top: 12px; }

@media (max-width: 760px) {
  .m62-thumb, .m62-thumb img { width: 76px; }
  .m62-thumb { height: 76px; }
  .m62-att-view img { width: 76px; height: 76px; }
}


@media (max-width: 760px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-quota-grid { grid-template-columns: 1fr; }
}

/* ===== M4.8 年假申请 / 加班折算步骤 ===== */
.ov-step {
  display: inline-block;
  margin: 0 6px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .06);
  font-size: 12px;
  color: inherit;
}
.admin-preview { line-height: 1.75; }
.admin-preview .muted { opacity: .72; }
/* 年假额度卡片与调休卡片并排时的窄屏兜底 */
@media (max-width: 760px) {
  .admin-preview { font-size: 13px; }
}

/* 合同到期日「系统推算」标记（非真实合同数据） */
.profile-exp-derived {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 9px;
  background: #fff4e0;
  color: #9a6a00;
  border: 1px solid #f0d199;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  vertical-align: middle;
  cursor: help;
  white-space: nowrap;
}

/* ===== 合同到期预警：等级徽标 / 顶部提示条 / 图例（45 天黄 · 14 天红）===== */
.cw-badge {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 9px;
  font-size: 11.5px; font-weight: 600; line-height: 17px;
  vertical-align: middle; white-space: nowrap;
}
.cw-badge-warn { background: #f0b429; color: #4a3000; }
.cw-badge-danger { background: #e03131; color: #fff; }
.cw-badge-ok { background: #eef1f5; color: var(--text2); font-weight: 500; }

.cw-alertbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 8px 10px;
  font-size: 12.5px; background: #f8f9fc;
  border: 1px solid var(--border); border-radius: 8px;
}
.cw-legend { padding: 2px 9px; border-radius: 12px; font-weight: 600; cursor: pointer; user-select: none; }
.cw-legend-danger { background: #fff0f3; color: #c92a2a; border: 1px solid #ffc9d1; }
.cw-legend-warn { background: #fff8e1; color: #8a5a00; border: 1px solid #ffe08a; }
.cw-legend-ok { background: #eefaf1; color: #2b8a3e; border: 1px solid #b7e4c7; cursor: default; }
.cw-legend.on { outline: 2px solid var(--primary, #4f6ef7); outline-offset: 1px; }
.cw-threshold { margin-left: auto; color: var(--text2); font-weight: 400; }

@media (max-width: 760px) {
  .cw-threshold { margin-left: 0; flex: 1 0 100%; }
  .cw-alertbar { font-size: 12px; }
}

/* ---------- 合同续签（2026-09-15） ---------- */
.renew-old { background: #f6f8fc; border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 10px; line-height: 1.7; }
.renew-note { background: #f0f7f2; color: #1f6b3a; border-radius: 6px; padding: 9px 12px; font-size: 12.5px; margin-top: 8px; line-height: 1.85; }
.profile-renew-btn { flex: 0 0 auto; white-space: nowrap; }
.profile-renewal-badge { display: inline-block; background: #e7f3ec; color: #1f6b3a; border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 6px; white-space: nowrap; }
.profile-log-stage.renew { background: #e7f3ec; color: #1f6b3a; }
.profile-log-list-old { opacity: .62; }
.profile-log-clean { margin-left: 8px; padding: 1px 8px; font-size: 11.5px; }
@media (max-width: 760px) {
  .profile-log-list li { flex-wrap: wrap; gap: 4px 8px; }
  .profile-log-date { flex: 0 0 auto; }
}

/* ---------- 员工档案「在线编辑与保存」（2026-09-15） ---------- */
/* 权限横幅：一眼看清「我能不能改」+ 谁能改 */
.profile-permbar { border-radius: 8px; padding: 9px 14px; font-size: 12.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; line-height: 1.7; }
.profile-permbar.is-editor { background: #e7f3ec; border: 1px solid #b9dfc7; color: #1a5c33; }
.profile-permbar.is-readonly { background: #fff8e1; border: 1px solid #f0dba4; color: #7a5600; }
.profile-permbar strong { font-weight: 700; }
.profile-perm-main { flex: 1 1 380px; min-width: 0; }
.profile-perm-who { flex: 0 0 auto; opacity: .85; font-size: 12px; border-left: 1px solid currentColor; padding-left: 12px; }
.profile-tools-ro { font-size: 12.5px; color: var(--text2); }
/* 只读账号的查看入口：占「✏️ 编辑 / 🔄 续签」的位置，常显 + 带文字 + 说清为什么不能改 */
.profile-readonly-btn { flex: 0 0 auto; white-space: nowrap; }
.profile-readonly-btn:hover { border-color: var(--primary, #4f6ef7); color: var(--primary-dark, #2c4abf); }
.profile-edit-btn { flex: 0 0 auto; white-space: nowrap; }
/* 只读弹窗提示 */
.profile-form-readonly { background: #fff8e1; border: 1px solid #f0dba4; color: #7a5600; border-radius: 6px; padding: 9px 12px; font-size: 12.5px; line-height: 1.8; }
/* 表单分区标题 */
.profile-form-section { font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: .04em; margin-top: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--border); }
.profile-form-tip { display: block; font-style: normal; font-size: 11.5px; color: var(--text2); opacity: .85; margin-top: 1px; }
/* 字段级校验错误 */
.profile-form-row.has-err > input, .profile-form-row.has-err > select { border-color: var(--danger, #e03131); background: #fff5f5; }
.profile-field-err { flex: 0 0 auto; width: 100%; font-size: 11.5px; color: var(--danger, #e03131); margin-top: 2px; }
/* 表单级错误汇总 */
.profile-form-error { background: #fff0f3; border: 1px solid #f5c2cb; color: #c92a2a; border-radius: 6px; padding: 9px 12px; font-size: 12.5px; line-height: 1.85; }
/* 变更历史 旧值 → 新值 */
.profile-chg-old { font-style: normal; background: #f1f3f5; border-radius: 4px; padding: 0 5px; color: #868e96; text-decoration: line-through; }
.profile-chg-new { color: var(--primary-dark, #2c4abf); }
@media (max-width: 760px) {
  /* ⚠️ 这里同样不能用 flex-basis 做「占满一行」——表单行在窄屏是 column 方向，
     `flex: 1 1 100%` 会变成高度 100%。一律用 width 表达宽度。 */
  .profile-form-row > span { flex: 0 0 auto; width: 100%; }
  .profile-form-row { flex-wrap: wrap; }
  .profile-perm-who { border-left: none; padding-left: 0; }
}

/* ================= 单证出运（ships / doc-flow） =================
   窄屏一律纵向堆叠 + 按钮常显带文字；容器 flex-wrap，不用 overflow-x:auto 隐藏滚动条（铁律）。 */
.doc-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.doc-step { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.5; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text2); white-space: nowrap; }
.doc-step-done { background: #ebfbee; border-color: #b2f2bb; color: #2b8a3e; }
.doc-step-cur { background: var(--primary-light); border-color: #bac8ff; color: var(--primary-dark); font-weight: 700; }
.doc-step-todo { background: #f8f9fa; }
.doc-stage-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); }
.doc-stage-sub { font-weight: 400; font-size: 12.5px; color: var(--text2); }
.doc-sub-h { margin-top: 14px; }
.doc-panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fcfdff; }
.doc-tip { font-size: 12.5px; color: var(--text2); line-height: 1.75; margin-bottom: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.doc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc-f > label { font-size: 12px; color: var(--text2); }
.doc-f > input, .doc-f > select { width: 100%; min-width: 0; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.doc-actions-sub { border-top: 1px dashed var(--border); padding-top: 8px; }
.doc-hint { font-size: 12px; color: var(--text2); line-height: 1.7; }
.doc-flow-line { font-size: 12px; color: var(--text2); margin-top: 10px; line-height: 1.8; }
.doc-fee-table input, .doc-fee-table select { width: 100%; min-width: 0; }
.doc-fin-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.doc-fin-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; min-width: 0; }
.doc-fin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.doc-fin-title { font-size: 13px; font-weight: 600; }
.doc-fin-note { font-size: 12px; color: var(--text2); line-height: 1.7; margin-bottom: 6px; }
.doc-fin-reject { color: #c92a2a; }
.doc-fin-meta { font-size: 11.5px; color: var(--text2); line-height: 1.7; margin-top: 6px; }
.doc-file-list { display: flex; flex-direction: column; gap: 6px; }
.doc-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; min-width: 0; }
.doc-file-tag { background: #e7f5ff; color: #1971c2; white-space: nowrap; }
.doc-file-name { font-size: 12.5px; font-weight: 600; word-break: break-all; }
.doc-file-meta { font-size: 11.5px; color: var(--text2); }
.doc-log { margin-top: 12px; font-size: 12px; color: var(--text2); }
.doc-log > summary { cursor: pointer; font-size: 12.5px; color: var(--text2); }
.doc-log-row { padding: 3px 0; line-height: 1.7; border-bottom: 1px dashed var(--border); }
@media (max-width: 768px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-fin-wrap { grid-template-columns: minmax(0, 1fr); }
  .doc-file-row > * { flex: 0 0 auto; }
  .doc-file-name { width: 100%; }
  .doc-actions > .btn { flex: 0 0 auto; }
}
/* ================= 财务模块（F1：费用报销 / 采购付款申请） ================= */
.fin-today { margin-bottom: 14px; }
.fin-today-alert { border-left: 4px solid #d64545; }
.fin-today-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fin-today-sub { color: var(--text2); font-size: 13px; }
.fin-today-list { display: flex; flex-direction: column; gap: 6px; }
.fin-today-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 6px; background: #f8f9fa; }
.fin-today-row.is-red { background: #fff5f5; }
.fin-today-row.is-amber { background: #fff9e6; }
.fin-today-no { font-weight: 600; font-size: 13px; color: var(--text2); }
.fin-today-ttl { font-weight: 600; flex: 1 1 160px; min-width: 0; }
.fin-today-why { font-size: 12px; color: #d64545; }
.fin-today-row.is-amber .fin-today-why { color: #b8860b; }
.fin-today-amt { font-weight: 600; white-space: nowrap; }
/* F2：详情里的「关联出运单」徽标 —— 开票单要一眼看出是哪一票 */
.fin-peer-tip{background:#e7f5ff;border:1px solid #a5d8ff;color:#1971c2;border-radius:8px;padding:8px 12px;font-size:13px;margin:8px 0}
.fin-rel-ship { background: #eef2ff; color: #3b4edb; border-radius: 6px; padding: 1px 7px; font-size: 12.5px; white-space: nowrap; }
/* 主 CTA（去处理）点击区按项目铁律放大：一排里唯一的按钮不许做成 25px 的小目标 */
.fin-today-row .btn { min-height: 40px; padding: 0 14px; }


.fin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fin-toolbar select, .fin-toolbar input { min-height: 38px; font-size: 14px; }
.fin-toolbar input { flex: 0 0 auto; width: 220px; max-width: 100%; }
.fin-sumline { color: var(--text2); font-size: 13px; margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fin-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef1f4; font-size: 12px; }

.fin-list { display: flex; flex-direction: column; gap: 8px; }
.fin-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: box-shadow .15s; }
.fin-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.fin-row-main { min-width: 0; flex: 1 1 auto; }
.fin-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fin-no { font-weight: 700; font-size: 13px; }
.fin-type { font-size: 13px; color: var(--text2); }
.fin-row-ttl { font-weight: 600; margin-bottom: 4px; }
.fin-payee { color: var(--text2); font-weight: 400; font-size: 13px; }
.fin-row-meta { font-size: 12px; color: var(--text2); line-height: 1.7; }
.fin-row-amt { text-align: right; white-space: nowrap; }
.fin-amt { font-weight: 700; font-size: 16px; color: #d64545; }
.fin-cur { font-size: 12px; color: var(--text2); }
.fin-green { color: #2b8a3e; }
.fin-red { color: #d64545; }
.fin-flag { font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.fin-flag-red { background: #f8d7da; color: #58151c; }
.fin-flag-amber { background: #fff3cd; color: #856404; }
.fin-reject { font-size: 12px; color: #d64545; margin-top: 4px; }
.fin-reject-big { font-size: 13px; background: #fff5f5; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.fin-empty { color: var(--text2); font-size: 13px; }
.fin-hint { color: var(--text2); font-size: 12px; }
.fin-h4 { margin: 14px 0 8px; font-size: 14px; }
.fin-danger { color: #d64545; }

.fin-detail { max-width: 100%; }
.fin-flowline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.fin-step { font-size: 12px; padding: 3px 8px; border-radius: 12px; background: #eef1f4; color: var(--text2); white-space: nowrap; }
.fin-step.is-done { background: #d1e7dd; color: #0a3622; }
.fin-step.is-cur { background: #fff3cd; color: #856404; font-weight: 700; }
.fin-step-arrow { color: var(--text2); font-size: 11px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.fin-fv { display: flex; gap: 8px; font-size: 13px; line-height: 1.8; min-width: 0; }
.fin-fk { color: var(--text2); flex: 0 0 auto; min-width: 84px; }
.fin-file-list { display: flex; flex-direction: column; gap: 6px; }
.fin-file-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; }
.fin-file-name { font-weight: 600; flex: 1 1 140px; min-width: 0; word-break: break-all; }
.fin-file-size, .fin-file-by { color: var(--text2); font-size: 12px; }
.fin-up { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fin-act-box { margin-top: 14px; padding: 12px; background: #f8f9fa; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.fin-act-box h4 { margin: 0 0 2px; font-size: 14px; }
.fin-act-box input, .fin-act-box textarea { min-height: 40px; font-size: 15px; }
.fin-log { margin-top: 12px; }
.fin-log summary { cursor: pointer; font-size: 13px; color: var(--text2); }
.fin-log-row { font-size: 12px; color: var(--text2); line-height: 1.9; border-top: 1px dashed var(--border); padding: 3px 0; }

.fin-new .fin-form { display: flex; flex-direction: column; gap: 10px; }
.fin-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fin-lb { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text2); }
.fin-lb input, .fin-lb select { min-height: 42px; font-size: 15px; width: 100%; }
.fin-req { color: #d64545; }

.fin-ledger-card { margin-bottom: 12px; }
/* M11：数据中枢各分区小标题 */
.fin-sec-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th { text-align: left; color: var(--text2); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.fin-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fin-table td.fin-amt, .fin-table td.fin-green { text-align: right; }
.fin-table td.fin-amt { font-size: 14px; }
.fin-table td.fin-green { color: #2b8a3e; font-weight: 600; }

@media (max-width: 768px) {
  /* 窄屏一律单列；⚠️ 不能用 flex-basis 控制宽度，纵向排列时它会变成高度（本项目踩过） */
  .fin-row { flex-direction: column; align-items: stretch; }
  .fin-row-amt { text-align: left; }
  .fin-two { grid-template-columns: minmax(0, 1fr); }
  .fin-toolbar input { width: 100%; }
  .fin-fk { min-width: 76px; }
  .fin-today-row .btn { min-height: 44px; width: 100%; }
}

/* ==================== 船期表（Shipment Schedule） ==================== */
.sc-head-btns { float: right; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sc-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sc-card.sc-warn { border-color: #f0b4b4; background: #fff7f7; }
.sc-card-l { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.sc-card-v { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sc-card-s { font-size: 11px; color: var(--text2); margin-top: 3px; }
.sc-filterbar { margin-bottom: 12px; }
.sc-fline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sc-q { flex: 1 1 240px; min-width: 180px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.sc-kpis, .sc-sortwrap { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-sortwrap select { padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; }
.sc-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sc-fgrp { border-top: 1px dashed var(--border); padding-top: 8px; }
.sc-flabel { font-size: 12px; color: var(--text2); margin-bottom: 5px; display: flex; gap: 6px; align-items: center; }
.sc-fclr { border: none; background: #eef1f5; border-radius: 6px; font-size: 11px; padding: 1px 6px; cursor: pointer; color: var(--text2); }
.sc-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--text2); min-height: 30px; }
.sc-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.sc-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
/* 表格：横向可滚但**保留可见滚动条**（禁止隐藏滚动条 —— 本项目铁律） */
.sc-tablewrap { overflow-x: auto; overflow-y: visible; padding-bottom: 6px; }
.sc-tablewrap::-webkit-scrollbar { height: 10px; }
.sc-tablewrap::-webkit-scrollbar-thumb { background: #c3ccd8; border-radius: 5px; }
.sc-tablewrap::-webkit-scrollbar-track { background: #eef1f5; border-radius: 5px; }
.sc-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.sc-table th, .sc-table td { border: 1px solid #e3e8ef; padding: 6px 8px; vertical-align: top; text-align: left; }
.sc-table thead th { background: #e8eef7; font-weight: 600; text-align: center; white-space: nowrap; position: sticky; top: 0; z-index: 3; }
.sc-table thead tr.sc-grp th { top: 0; border-bottom: 2px solid #b9c6d8; }
.sc-table thead tr.sc-head th { top: 30px; }
.sc-table thead th.sc-grpcell { background: #dbe5f3; font-size: 12px; letter-spacing: 0.5px; }
.sc-table td.sc-key, .sc-table th.sc-key { background: #f7faff; }
.sc-weekrow td { background: #fff3bf; font-weight: 700; padding: 7px 10px; font-size: 13px; border-top: 2px solid #e6c34a; }
.sc-weeklab { color: #8a6100; }
.sc-weeksub { margin-left: 10px; font-weight: 400; font-size: 12px; color: #9a7b1e; }
.sc-row { cursor: pointer; }
.sc-row:hover td { background: #f4f8ff; }
.sc-row-warn td { background: #fffbf5; }
.sc-row-warn:hover td { background: #fff5e8; }
.sc-row-warn td:first-child { box-shadow: inset 3px 0 0 #e8590c; }
.sc-shipno { font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
.sc-shipmeta { font-size: 11px; color: var(--text2); }
.sc-dash { color: #b9c0ca; }
.sc-num { text-align: right; font-variant-numeric: tabular-nums; }
.sc-money { font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-money.sc-unpaid { color: #c92a2a; }
.sc-money.sc-paid { color: #2b8a3e; }
.sc-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.sc-sub.sc-unpaid { color: #c92a2a; }
.sc-sub.sc-paid { color: #2b8a3e; }
.sc-wide { min-width: 130px; max-width: 220px; }
.sc-wrap { white-space: normal; word-break: break-word; }
.sc-bl { white-space: nowrap; font-weight: 600; }
.sc-date { white-space: nowrap; }
.sc-date.sc-past, td .sc-past { color: #c92a2a; font-weight: 600; }
.sc-date.sc-today, td .sc-today { color: var(--primary-dark); font-weight: 700; }
.sc-est { color: #9a7b1e; font-style: italic; white-space: nowrap; }
.sc-flags { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.sc-flag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.sc-flag-delayed { background: #fff0e0; color: #d9480f; border: 1px solid #ffc9a3; }
.sc-flag-hold { background: #f1f3f5; color: #495057; border: 1px solid #ced4da; }
.sc-flag-overdue_ar { background: #ffe3e3; color: #c92a2a; border: 1px solid #ffa8a8; }
.sc-flag-overdue_ap { background: #ffe8cc; color: #b35c00; border: 1px solid #ffc078; }
.sc-legend { font-size: 11px; color: var(--text2); line-height: 1.7; padding: 8px 4px 2px; }
.sc-op { white-space: nowrap; text-align: center; }
/* 编辑弹窗 */
.sc-edit-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sc-edit-sect { font-size: 12px; font-weight: 600; color: var(--primary-dark); margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.sc-edit-err { display: none; margin-top: 10px; padding: 8px 10px; background: #fff5f5; border: 1px solid #ffc9c9; border-radius: 8px; color: #c92a2a; font-size: 13px; }
.sc-ro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.sc-ro { display: flex; gap: 8px; align-items: baseline; background: #f8f9fb; border-radius: 8px; padding: 7px 10px; }
.sc-ro-l { font-size: 12px; color: var(--text2); flex: 0 0 auto; }
.sc-ro-v { font-size: 12px; color: var(--text); font-weight: 600; word-break: break-word; }
.sc-doclist { display: flex; flex-direction: column; gap: 5px; }
.sc-docline { font-size: 12px; color: var(--text2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* 窄屏：单列堆叠，表格允许横向滚动（滚动条保持可见），核心列不隐藏、次要列收起 */
@media (max-width: 900px) {
  .sc-table .sc-hide-md { display: none; }
  .sc-table thead th.sc-hide-md { display: none; }
}
@media (max-width: 768px) {
  .sc-head-btns { float: none; width: 100%; margin-top: 8px; }
  .sc-fline { flex-direction: column; align-items: stretch; }
  .sc-q { flex: 1 1 auto; width: 100%; }
  .sc-kpis, .sc-sortwrap { justify-content: flex-start; }
  .sc-fgrid { grid-template-columns: 1fr; }
  .sc-kpi { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .sc-card-v { font-size: 17px; }
  .sc-table { min-width: 760px; font-size: 12px; }
  .sc-table .sc-hide-sm { display: none; }
  .sc-table thead th.sc-hide-sm { display: none; }
  .sc-chip { min-height: 34px; padding: 6px 12px; }
  .sc-table thead tr.sc-head th { top: 28px; }
}
/* ── 船期表合并视图 v2（屏显 12 列 + 行头 2 列，table-layout:fixed 定宽） ── */
/* 桌面：定宽布局 + colgroup 精确控宽，保证 1440 视口无横向滚动 */
#sc-table { table-layout: fixed; }
/* 表头允许折行：fixed 布局下长列名（如「合同号 / 报关合同号」）nowrap 会溢出格子 → 假横向滚动 */
#sc-table thead th { white-space: normal; }
.sc-table td.sc-shipcell { font-weight: 600; }
.sc-table .sc-strong { font-weight: 600; }
.sc-table .sc-kv { display: flex; gap: 4px; align-items: baseline; min-width: 0; }
.sc-table .sc-kv .sc-k { flex: none; font-size: 10px; color: #8a93a6; white-space: nowrap; }
.sc-table .sc-kv .sc-v { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.sc-table td { word-break: break-word; }
@media (max-width: 900px) {
  /* 窄屏恢复自动布局 + 横向滚动（滚动条可见），保证列内容可读 */
  #sc-table { table-layout: auto; min-width: 980px; }
}

/* ── M7：月度考勤自动审核 + 审批明细筛选 ── */
.m7-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; background: var(--bg-2, #f6f7fb); border-radius: 10px; }
.m7-filter-bar select, .m7-filter-bar input { min-height: 34px; font-size: 13px; border: 1px solid var(--border, #e3e6ee); border-radius: 8px; padding: 4px 8px; background: #fff; }
.m7-filter-sep { color: var(--text-3, #98a0b3); }
.m7-att-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.m7-att-toolbar select { min-height: 34px; font-size: 13px; border: 1px solid var(--border, #e3e6ee); border-radius: 8px; padding: 4px 8px; }
.m7-att-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.m7-att-meta { font-size: 13px; color: var(--text-2, #444c60); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m7-att-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.m7-att-cur { font-size: 13px; padding: 6px 10px; background: #fff8e8; border: 1px solid #f2e2b3; border-radius: 8px; margin-bottom: 8px; }
.m7-att-warn { font-size: 13px; padding: 6px 10px; background: #fdeeee; border: 1px solid #f2c5c5; border-radius: 8px; margin: 6px 0; }
.m7-att-table-wrap { overflow-x: auto; border: 1px solid var(--border, #e3e6ee); border-radius: 10px; }
.m7-att-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 960px; }
.m7-att-table thead th { background: var(--bg-2, #f6f7fb); padding: 8px 10px; text-align: left; white-space: nowrap; position: sticky; top: 0; }
.m7-att-table tbody td { padding: 7px 10px; border-top: 1px solid var(--border, #eceef4); white-space: nowrap; }
.m7-att-table tbody tr.m7-row-abn { background: #fff6f5; cursor: pointer; }
.m7-att-table tbody tr:not(.m7-daily-row):hover { background: #f3f6ff; }
.m7-att-table td.m7-bad { color: #d64545; font-weight: 700; }
.m7-tag-abn { background: #fdecec; color: #c0392b; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.m7-tag-ok { background: #e8f7ee; color: #1e9e5a; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.m7-daily-row td { white-space: normal !important; background: #fbfcff; }
.m7-daily-wrap { display: flex; flex-direction: column; gap: 4px; }
.m7-daily-day { display: flex; flex-wrap: wrap; gap: 4px; }
.m7-daily-item { font-size: 12px; border-radius: 6px; padding: 2px 8px; border: 1px solid transparent; }
.m7-st-late { background: #fff4e0; color: #b9770e; border-color: #f2ddb0; }
.m7-st-early { background: #fdecec; color: #c0392b; border-color: #f2c5c5; }
.m7-st-miss { background: #f3e8fd; color: #7d3cb5; border-color: #e0ccf5; }
.m7-st-abn { background: #fdecec; color: #c0392b; border-color: #f2c5c5; }
.m7-st-leave { background: #e8f7ee; color: #1e9e5a; border-color: #c3ecd4; }


/* ================= M8：行政四类事务申请（采购 / 付款 / 报销 / 报修）================= */
.m8-req { color: var(--danger); font-weight: 600; }
.m8-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.m8-att-hint { font-size: 12px; color: var(--text2); margin-top: 4px; }
.m8-att-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.m8-att-empty { font-size: 13px; color: var(--text2); padding: 6px 0; }
.m8-att-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.m8-att-th { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.m8-att-ic {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; text-decoration: none;
}
.m8-att-nm { flex: 1 1 auto; min-width: 0; font-size: 13px; word-break: break-all; }
.m8-att-kd {
  flex: 0 0 auto; font-size: 12px; color: var(--text2);
  border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px;
}
.m8-att-view-tip { margin-top: 10px; font-size: 13px; color: var(--text2); }
.m8-paid-tag { color: var(--ok); font-weight: 600; }
.m8-pay-hint { font-size: 13px; color: var(--text2); margin-bottom: 8px; }

@media (max-width: 768px) {
  .m8-att-nm { flex: 1 1 100%; }
  .m8-actions .btn { width: 100%; }
}

/* ================= M9：日报 / 周报 ================= M9_REPORT_CSS
   配色遵循国内习惯与项目变量；所有一排东西的容器一律 flex-wrap（本项目的顶栏/子标签/网格
   已 3 次因 overflow-x 静默裁切出事故，别改成 overflow:hidden）。 */
.btn-mini { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 7px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.btn-mini:hover { background: #f2f5fb; border-color: #cfd8e8; }
.btn-mini-danger { color: var(--danger); border-color: #f5c2c2; background: #fff7f7; }
.btn-mini-danger:hover { background: #fdecec; }

.m9-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 12px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--border); }
.m9-now b { font-size: 15px; }
.m9-now span { color: var(--text2); font-size: 13px; }
.m9-now-warn { border-left: 4px solid var(--danger); background: #fff6f6; }
.m9-now-ok { border-left: 4px solid var(--ok); background: #f4fbf6; }
.m9-now-idle { border-left: 4px solid #98a2b3; background: #f8f9fb; }

.m9-todo { margin-bottom: 12px; border-left: 4px solid var(--warn); }
.m9-todo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.m9-todo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px dashed var(--border); }
.m9-todo-main { flex: 1 1 260px; min-width: 0; }
.m9-todo-key { color: var(--text2); font-size: 12px; margin-left: 8px; }
.m9-todo-txt { color: var(--text2); font-size: 13px; word-break: break-word; }
.m9-todo-acts { display: flex; gap: 6px; }

.m9-stat { margin-bottom: 12px; }
.m9-stat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; margin-bottom: 10px; }
.m9-stat-cells { display: flex; flex-wrap: wrap; gap: 8px; }
.m9-stat-cell { flex: 1 1 92px; min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; text-align: center; background: #fbfcfe; }
.m9-stat-cell b { display: block; font-size: 19px; }
.m9-stat-cell span { color: var(--text2); font-size: 12px; }
.m9-sc-ok { background: #eefaf2; border-color: #bdebcc; }
.m9-sc-late { background: #fff9e8; border-color: #ffe4a3; }
.m9-sc-missing { background: #fff1f1; border-color: #ffc9c9; }
.m9-sc-exempt { background: #eff4ff; border-color: #cddcff; }
.m9-miss-list { margin-top: 10px; font-size: 13px; color: var(--danger); word-break: break-word; }
.m9-trial { font-weight: 400; font-size: 12px; color: var(--warn); background: #fff8e6; border: 1px solid #ffe4a3; border-radius: 6px; padding: 2px 8px; }
.m9-month, .m9-pick { border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; background: #fff; color: var(--text); font-size: 13px; }
.m9-chk { font-size: 13px; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; }
.m9-export { margin-left: auto; }

.m9-grid-head { font-weight: 600; margin-bottom: 10px; }
.m9-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.m9-cell { border: 1px solid var(--border); border-radius: 8px; padding: 6px 4px; text-align: center; cursor: pointer; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .1s; }
.m9-cell:hover { transform: translateY(-1px); }
.m9-cell b { font-size: 14px; display: block; }
.m9-cell span { font-size: 11px; color: var(--text2); line-height: 1.3; }
.m9-c-ok { background: #eefaf2; border-color: #bdebcc; }
.m9-c-late { background: #fff9e8; border-color: #ffe4a3; }
.m9-c-missing { background: #fff1f1; border-color: #ffc9c9; }
.m9-c-exempt { background: #eff4ff; border-color: #cddcff; }
.m9-c-nonwork { background: #f6f7f9; border-color: #e9ebf0; }
.m9-c-nonwork span, .m9-c-nonwork b { color: #98a2b3; }
.m9-c-future { background: #fff; border-style: dashed; }
.m9-c-future span, .m9-c-future b { color: #b9c0cb; }
.m9-c-sel { outline: 2px solid var(--primary); outline-offset: 1px; }
.m9-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--text2); }
.m9-lg { border-radius: 5px; padding: 2px 8px; border: 1px solid var(--border); }

.m9-form { margin-bottom: 12px; }
.m9-form-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; margin-bottom: 10px; }
.m9-lb { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--text2); }
.m9-req { color: var(--danger); }
.m9-ta { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; line-height: 1.6; resize: vertical; background: #fff; color: var(--text); }
.m9-ta:disabled { background: #f6f7f9; color: var(--text2); }
.m9-form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.m9-btn { padding: 8px 18px; }
.m9-form-st { font-size: 12px; color: var(--text2); }
.m9-lock { background: #f4fbf6; border: 1px solid #bdebcc; color: var(--ok); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px; }
.m9-return { background: #fff6f6; border: 1px solid #ffc9c9; color: var(--danger); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px; }
.m9-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.m9-flow i { color: var(--text2); font-style: normal; font-size: 12px; }
.m9-flow-step { font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: #fbfcfe; color: var(--text2); }
.m9-fs-read { background: #eefaf2; border-color: #bdebcc; color: var(--ok); }
.m9-fs-returned { background: #fff1f1; border-color: #ffc9c9; color: var(--danger); }

.m9-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 0; border-top: 1px dashed var(--border); cursor: pointer; }
.m9-row:hover { background: #fafbfe; }
.m9-row-l { flex: 1 1 240px; min-width: 0; }
.m9-row-txt { color: var(--text2); font-size: 13px; word-break: break-word; }
.m9-row-r { font-size: 12px; color: var(--text2); }
.m9-tag { font-size: 11px; border-radius: 5px; padding: 1px 6px; margin-left: 6px; }
.m9-tag-late { background: #fff8e6; border: 1px solid #ffe4a3; color: var(--warn); }
.m9-empty { text-align: center; color: var(--text2); padding: 28px 12px; }

.m9-tbl-wrap { overflow-x: auto; margin-top: 10px; }
.m9-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.m9-tbl th { text-align: left; padding: 8px 10px; background: #f7f9fc; color: var(--text2); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
.m9-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.m9-td-name { font-weight: 600; }
.m9-num { text-align: center; }
.m9-num-late { color: var(--warn); }
.m9-num-red { color: var(--danger); }
.m9-miss-cell { color: var(--danger); font-size: 12px; word-break: break-word; max-width: 260px; }
.m9-tr-warn { background: #fffbfb; }
.m9-empty-td { text-align: center; color: var(--text2); padding: 24px 0; }
.m9-stat-foot { margin-top: 10px; font-size: 12px; color: var(--text2); }

@media (max-width: 768px) {
  .m9-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
  .m9-stat-cell { flex: 1 1 72px; }
  .m9-ta, .m9-month, .m9-pick { font-size: 16px; }   /* iOS 低于 16px 会自动放大页面 */
  .m9-btn, .btn-mini { min-height: 44px; }
  .m9-export { margin-left: 0; }
  .m9-todo-acts .btn-mini { flex: 1 1 auto; }
}

/* ================= M7-H：入转离（前端样式） ================= M7H_HRFLOW_CSS
 * 复用 M8 的 .card / .doc-f 语言；这里只补「子视图切换条 / 两列表单网格 / 试用期信息条 / 列表行」。
 * ⚠️ 窄屏一律单列 + 输入框字号 ≥16px（否则 iOS 聚焦时会自动放大整页）。 */
.m7h-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.m7h-sub { padding: 8px 14px; border: 1px solid #d9dde8; background: #fff; border-radius: 999px;
  cursor: pointer; font-size: 14px; color: #495057; min-height: 40px; }
.m7h-sub.active { background: #4f6ef7; border-color: #4f6ef7; color: #fff; font-weight: 600; }
.m7h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 16px; }
.m7h-hint { font-size: 12px; color: #868e96; line-height: 1.5; margin-top: 2px; }
.m7h-trial { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; padding: 10px 12px;
  background: #f5f7ff; border: 1px solid #dfe4fb; border-radius: 8px; font-size: 13px; color: #364fc7; }
.m7h-trial:empty { display: none; }
.m7h-warn { color: #e8590c; font-weight: 600; }
.m7h-list { display: flex; flex-direction: column; gap: 6px; }
.m7h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid #eceff5; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.m7h-row:hover { background: #f8f9fc; border-color: #cfd8ef; }
.m7h-row.active { background: #eef4ff; border-color: var(--accent); }
.m7h-row-tp { color: #212529; }
.m7h-row-ex { color: #495057; flex: 1 1 200px; min-width: 0; }
.m7h-row-cur { color: #7048e8; }
.m7h-empty { color: #868e96; font-size: 13px; line-height: 1.7; }
@media (max-width: 768px) {
  .m7h-grid { grid-template-columns: 1fr; }
  .m7h-sub { flex: 1 1 auto; text-align: center; min-height: 44px; }
  .m7h-row { align-items: flex-start; }
  /* 输入框字号 ≥16px：小字号会触发 iOS 聚焦自动放大（本项目铁律） */
  .m7h-grid input, .m7h-grid select, .m7h-grid textarea,
  .doc-f input, .doc-f select, .doc-f textarea { font-size: 16px; }
}

/* ================= M14（《9.21行政部工作台建议》红字项） ================= */
/* 加班多日期（一次递交当月全部加班） */
.m14-ot-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.m14-ot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m14-ot-row input[type="date"] { width: 150px; }
.m14-ot-row input[type="time"] { width: 110px; }
.m14-ot-sep { color: var(--text-3); }
.m14-ot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.m14-ot-pv { font-size: 12px; line-height: 1.7; }
.m14-ot-pv-total { margin-top: 4px; font-size: 13px; }
.m14-ot-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.m14-ot-chip { display: inline-block; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-3, #f1f3f5); color: var(--text-2, #495057); font-size: 12px; }
.m7-c-fine { white-space: nowrap; }
@media (max-width: 768px) {
  .m14-ot-row input[type="date"], .m14-ot-row input[type="time"] { flex: 1 1 120px; width: auto; }
  .m14-ot-row input { font-size: 16px; }
}
/* 考勤汇总表：「本月扣款合计」行（M14 · 行政核对工资用） */
.m7-att-table tfoot td { padding: 8px 10px; border-top: 2px solid var(--border, #e3e6ee);
  background: var(--bg-2, #f6f7fb); font-weight: 600; white-space: nowrap; }
.m7-att-table tfoot td.m7-bad { color: #d64545; }

/* ==================== M15：周报 / 日报 文件导入 ==================== */
.m15-hidden { display: none !important; }
.m15-up { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; background: #fafbfe; }
.m15-up-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text2); }
.m15-tip { margin-top: 8px; font-size: 12px; color: var(--text2); line-height: 1.6; }
.m15-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.m15-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.m15-file-l { min-width: 0; flex: 1 1 220px; }
.m15-file-l b { font-weight: 600; font-size: 13px; word-break: break-all; }
.m15-file-meta { display: block; font-size: 12px; color: var(--text2); margin-top: 2px; }
.m15-file-r { display: flex; flex-wrap: wrap; gap: 6px; }
.m15-saved { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.m15-saved-head { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.m9-title { height: auto; padding: 7px 11px; }
.m15-prev-meta { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.m15-prev { max-height: 58vh; overflow: auto; font-size: 13px; line-height: 1.75; }
.m15-prev h3, .m15-prev h4, .m15-prev h5 { margin: .7em 0 .3em; font-weight: 600; line-height: 1.4; }
.m15-prev h3 { font-size: 15px; }
.m15-prev h4 { font-size: 14px; }
.m15-prev h5 { font-size: 13px; }
.m15-prev p { margin: .45em 0; }
.m15-prev ul { margin: .45em 0; padding-left: 1.5em; }
.m15-prev li { margin: .2em 0; }
.m15-prev table { border-collapse: collapse; width: 100%; margin: .7em 0; font-size: 13px; }
.m15-prev th, .m15-prev td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; vertical-align: top; word-break: break-all; }
.m15-prev th { background: var(--primary-light); font-weight: 600; }

/* ===== M18：我的审批（审批明细台账） ===== */
.m18-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.m18-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.m18-head > div:first-child { flex: 1; min-width: 220px; }
.m18-title { margin: 0; font-size: 16px; }
.m18-sub { font-size: 12.5px; color: var(--text2); margin-top: 4px; line-height: 1.6; }
.m18-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.m18-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; min-height: 32px; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 999px; cursor: pointer; }
.m18-tab:hover { background: var(--primary-light); }
.m18-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.m18-cnt { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.m18-tab.active .m18-cnt { background: rgba(255, 255, 255, .22); }
.m18-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
/* ⚠️ 字号必须 >= 16px：iOS Safari 对小于 16px 的输入框会自动放大整页（表单区尤其明显） */
.m18-filter input, .m18-filter select { height: 36px; padding: 0 10px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.m18-sep { color: var(--text2); }
.m18-ikw { min-width: 220px; flex: 1; }
.m18-iname { width: 130px; }
.m18-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m18-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m18-table th, .m18-table td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: middle; }
.m18-table th { background: var(--primary-light); color: var(--text); font-weight: 600; white-space: nowrap; }
.m18-row { cursor: pointer; }
.m18-row:hover { background: #f7f9ff; }
.m18-row.active, .m18-row.active > td { background: #eaf2ff; }
.m18-nowrap { white-space: nowrap; }
.m18-reason { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m18-dept { font-size: 11.5px; color: var(--text2); margin-top: 2px; }
.m18-my-pending { color: var(--warn); font-weight: 600; }
.m18-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.m18-pager-info { font-size: 12.5px; color: var(--text2); }
.m18-pager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m18-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }
.m18-pagesize { height: 36px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0 6px; font-size: 16px; }
@media (max-width: 768px) {
  .m18-wrap { padding: 12px; }
  .m18-head > button { width: 100%; }
  .m18-ikw { min-width: 0; width: 100%; }
  .m18-iname { width: 100%; }
  .m18-reason { max-width: 150px; }
  .m18-pager-info { width: 100%; }
}

/* ===== M21：撤销流程 + 附件锁定（2026-09-22）===== */
.m21-revoke-box { margin: 10px 0; border: 1px solid var(--border, #e3e8ef); border-left: 3px solid #f59f00;
  border-radius: 8px; padding: 10px 12px; background: #fffdf5; }
.m21-revoke-head { font-weight: 600; margin-bottom: 6px; }
.m21-revoke-reason { font-size: 13px; line-height: 1.6; word-break: break-all; }
.m21-revoke-by { color: var(--text-3, #8a94a6); font-size: 12px; }
.m21-revoke-side { margin-top: 6px; font-size: 12px; color: #0b7285; word-break: break-all; }
.m21-revoke-steps { margin-top: 8px; }
.m21-revoke-tip { font-size: 13px; line-height: 1.7; margin-bottom: 10px; color: var(--text-2, #5c6773); }
.m21-revoke-lb { display: block; font-size: 13px; margin-bottom: 6px; }
.m21-revoke-box textarea, #m21-revoke-reason { width: 100%; font-size: 16px; padding: 8px;
  border: 1px solid var(--border, #d8dee9); border-radius: 6px; box-sizing: border-box; }
.m8-att-item.m21-att-lock { opacity: .75; background: #f6f7f9; }

/* ===== M21-P1：考勤发起加班 + 离职员工档案（2026-09-22）===== */
.m7-daily-day { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.m7-daily-punch { font-size: 12px; color: var(--text-3, #8a94a6); }
.m7-daily-ot { padding: 2px 8px; font-size: 12px; line-height: 1.6; border-radius: 6px; }
.m7-daily-ot.is-dup { opacity: .8; }
.m21-left-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.m21-left-card { border: 1px solid var(--border, #e3e8ef); border-radius: 10px; padding: 12px;
  background: var(--bg-2, #fff); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.m21-left-card:hover { border-color: #4c6ef5; box-shadow: 0 2px 10px rgba(76, 110, 245, .12); }
.m21-left-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.m21-left-tag { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 4px;
  background: #f1f3f5; color: #868e96; }
.m21-left-meta { font-size: 13px; color: var(--text-2, #5c6773); margin-top: 4px; }
.m21-left-nums { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px;
  color: var(--text-2, #5c6773); }
.m21-left-more { margin-top: 8px; font-size: 12px; color: #4c6ef5; }
.m21-left-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.m21-left-row { font-size: 13px; display: flex; gap: 8px; }
.m21-left-row span { color: var(--text-3, #8a94a6); min-width: 68px; }
.m21-left-table-wrap { max-height: 320px; overflow: auto; }
.m21-left-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m21-left-table th, .m21-left-table td { border: 1px solid var(--border, #eceff3);
  padding: 5px 8px; text-align: left; }
.m21-left-table th { background: var(--bg-3, #f8f9fa); font-weight: 600; }

/* ===== M21-P2（09-23）：① 员工档案「在职 / 离职」分区 ===== */
.pz-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.pz-btn {
  padding: 6px 14px; border: 1px solid var(--line, #e3e6ec); border-radius: 8px;
  background: #fff; color: var(--text, #22262f); font-size: 13px; cursor: pointer; line-height: 1.6;
}
.pz-btn:hover { border-color: var(--primary, #3b6ff6); color: var(--primary, #3b6ff6); }
.pz-btn b { margin-left: 4px; font-weight: 700; }
.pz-btn.on { background: var(--primary, #3b6ff6); border-color: var(--primary, #3b6ff6); color: #fff; }
.pz-head {
  margin: 14px 0 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--text2, #5b6472);
  background: #f4f6fa; border-left: 3px solid var(--primary, #3b6ff6); border-radius: 4px; width: 100%;
}
.profile-card.is-left { background: #fbfbfc; border-style: dashed; border-color: #d3d8e0; }
.profile-card.is-left .profile-row-left strong { color: #90610a; }
.profile-tag-left {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px;
  background: #f1f2f4; color: #7a3f00; border: 1px solid #e2d6c6; font-size: 11px; font-weight: 700;
}
/* ===== M21-P2：② 考勤「查看我的考勤」 ===== */
.m7-tag-me {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px;
  background: #eaf1ff; color: #2b5cd9; border: 1px solid #cddfff; font-size: 11px; font-weight: 700;
}
.m21-my-att-wrap { width: 100%; }
.m21-my-att-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.m21-my-att-item {
  min-width: 92px; padding: 7px 12px; border: 1px solid var(--line, #e3e6ec);
  border-radius: 8px; background: #fff; line-height: 1.5;
}
.m21-my-att-item span { display: block; font-size: 12px; color: var(--text2, #5b6472); }
.m21-my-att-item b { font-size: 16px; }
.m21-my-att-item.is-bad { border-color: #f3c3bd; background: #fdf3f2; }
.m21-my-att-item.is-bad b { color: #c0392b; }
.m21-my-att-leave { font-size: 12px; margin-bottom: 10px; }
.m21-my-att-scroller { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #e3e6ec); border-radius: 8px; }
.m21-my-att-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m21-my-att-table th, .m21-my-att-table td { border-bottom: 1px solid var(--line, #e3e6ec); padding: 6px 10px; text-align: left; }
.m21-my-att-table thead th { position: sticky; top: 0; background: #f4f6fa; z-index: 1; }
.m21-my-att-table tr.is-bad td { background: #fdf6f5; }
.m21-nowrap { white-space: nowrap; }
.m21-st { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.m21-st-ok { background: #e9f7ef; color: #1a7f37; }
.m21-st-leave { background: #eef1f6; color: #4b5563; }
.m21-st-late, .m21-st-early { background: #fdf1e2; color: #a35c00; }
.m21-st-miss, .m21-st-abn { background: #fdecea; color: #c0392b; }
.m21-my-att-fine { margin-top: 8px; font-size: 12px; color: #a35c00; }
.m21-my-att-tip { margin-top: 8px; font-size: 12px; }
.m21-my-att-empty { line-height: 1.9; font-size: 13px; }
/* ===== M21-P2：③ 全部申请台账（复用 M18 类名，只加少量差异化样式） ===== */
.m21a-note { font-size: 12px; color: var(--text2, #5b6472); margin-top: 4px; }
@media (max-width: 768px) {
  .pz-btn { padding: 8px 12px; font-size: 14px; }
  .m21-my-att-item { min-width: 78px; padding: 6px 9px; }
  .m21-my-att-scroller { max-height: 52vh; }
}

/* ===== M21-P3：横向考勤表（与考勤机导出表同款） ===== */
.m21-att-tabs { display: flex; gap: 8px; margin: 0 0 10px; }
.m21-att-tab { padding: 6px 14px; border: 1px solid #d7dce3; background: #fff; color: #4a5568;
  border-radius: 999px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.m21-att-tab:hover { border-color: #94a3b8; }
.m21-att-tab.is-on { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }

.m21-att-grid-wrap { display: flex; flex-direction: column; gap: 8px; }
.m21-att-grid-title { text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 4px; color: #1f2937; }
.m21-att-grid-meta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  font-size: 12px; color: #64748b; border-bottom: 1px dashed #cbd5e1; padding-bottom: 6px; }
.m21-att-grid-meta b { color: #334155; font-weight: 600; }
.m21-att-grid-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #475569; }
.m21-att-info { display: inline-flex; align-items: center; gap: 6px; }
.m21-att-info b { display: inline-block; min-width: 34px; color: #64748b; font-weight: 500; }

.m21-att-grid-scroller { overflow-x: auto; overflow-y: hidden; border: 1px solid #e2e8f0; border-radius: 6px; }
.m21-att-grid { border-collapse: collapse; font-size: 12px; background: #fff; }
.m21-att-grid th, .m21-att-grid td { border: 1px solid #e2e8f0; padding: 4px 6px; text-align: center; vertical-align: top; }
.m21-att-th { min-width: 56px; background: #eef2ff; }
.m21-att-th.m21-att-rest, .m21-att-td.m21-att-rest { background: #f1f5f9; }
.m21-att-dnum { display: block; font-weight: 700; color: #1f2937; }
.m21-att-wd { display: block; font-size: 10px; color: #94a3b8; }
.m21-att-th-first, .m21-att-td-first { position: sticky; left: 0; z-index: 2; min-width: 74px;
  background: #eef2ff; font-weight: 700; color: #1f2937; }
.m21-att-td { min-width: 56px; height: 100%; }
.m21-att-p { display: block; font-variant-numeric: tabular-nums; color: #334155; line-height: 1.5; }
.m21-att-none { display: block; color: #cbd5e1; }
.m21-att-ex { display: block; margin-top: 2px; font-size: 10px; color: #0891b2; }
.m21-att-badtag { display: block; margin-top: 2px; font-size: 10px; color: #dc2626; font-weight: 600; }
.m21-att-td.m21-att-bad { background: #fef2f2; }
.m21-att-grid-tip { font-size: 12px; line-height: 1.6; }

@media (max-width: 768px) {
  .m21-att-grid-title { font-size: 15px; letter-spacing: 2px; }
  .m21-att-grid-info { gap: 10px; }
  .m21-att-th, .m21-att-td { min-width: 48px; }
}

/* ---- M21-P4（09-23）：付款 / 报销附件在线查看 ---- */
.m8-att-item .btn { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.m8-sheet-page { background: #fff; margin: 12px; border-radius: 8px; overflow: auto; }
.m8-sheet-name { padding: 8px 12px; font-size: 12px; color: var(--text2); border-bottom: 1px solid var(--border); }
.m8-sheet-page table { border-collapse: collapse; font-size: 12px; width: max-content; min-width: 100%; }
.m8-sheet-page td, .m8-sheet-page th { border: 1px solid #d9dee5; padding: 5px 8px; white-space: nowrap; }
.m8-sheet-page tbody tr:nth-child(odd) { background: #fafbfc; }
@media (max-width: 768px) {
  .m8-att-item { flex-wrap: wrap; }
  .m8-att-nm { flex-basis: 100%; }
}
/* ===== M21-P5 转正状态徽章（员工档案卡片） ===== */
.profile-tag-reg { background: #e8f7ee; color: #1a7f42; padding: 1px 6px; border-radius: 6px; font-size: 11px; margin-left: 6px; white-space: nowrap; }
.profile-tag-trial { background: #fff4e5; color: #b26a00; padding: 1px 6px; border-radius: 6px; font-size: 11px; margin-left: 6px; white-space: nowrap; }
.profile-row-reg .muted { margin-right: 4px; }

/* ---------- M23 清关资料多模版选择 ---------- */
#modal-hr.modal { z-index: 300; }          /* 通用弹窗必须盖在详情弹窗（z-index 110）之上 */
/* ---------- M32（09-28）：PDF/文件预览弹窗必须盖在详情弹窗之上 ----------
 * 从审批详情里点「在线查看」时，#modal-pdf 与详情弹窗同为 110 → 预览被详情压住看不见。 */
#modal-pdf.modal { z-index: 300; }
.m22-ctpl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.m22-ctpl-row label { font-size: 13px; color: var(--text2); white-space: nowrap; }
.m22-ctpl-row select { flex: 1; min-width: 0; }
.m22-ctpl-note { font-size: 12.5px; color: var(--text2); line-height: 1.7; border: 1px dashed var(--border);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.m22-ctpl-meta { font-size: 13px; color: var(--text2); line-height: 1.8; }
.m22-ctpl-warn { color: #c92a2a; font-size: 12.5px; line-height: 1.7; margin-top: 6px; }

/* ---------- M23-b 清关资料：单据勾选区 ---------- */
.m22-ctpl-sheets { margin: 10px 0 12px; }
.m22-ctpl-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text2); margin-bottom: 8px; }
.m22-ctpl-sheetbox { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  max-height: 220px; overflow-y: auto; }
.m22-ctpl-sheet { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;
  padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; }
.m22-ctpl-sheet input { width: 16px; height: 16px; }
.m22-ctpl-sheet em { font-style: normal; font-size: 11px; color: var(--text2); margin-left: auto; }
@media (max-width: 720px) {
  .m22-ctpl-sheetbox { grid-template-columns: 1fr; }
}


/* ===== M26 彻底删除员工 · 二次确认弹窗 ===== */
.purge-warn { background: #fff5f5; border: 1px solid #ffc9c9; color: #c92a2a; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.65; margin-bottom: 12px; }
.purge-sec { margin-bottom: 12px; }
.purge-sec-title { font-size: 13px; font-weight: 600; color: #495057; margin-bottom: 6px; }
.purge-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 2px; border-bottom: 1px dashed #ececec; font-size: 13px; }
.purge-row-del b { color: #c92a2a; }
.purge-row-keep b { color: #868e96; }
.purge-confirm { margin-top: 10px; }
.purge-confirm label { display: block; font-size: 13px; margin-bottom: 6px; }
.profile-purge-btn { margin-left: 6px; border-color: #ffc9c9; color: #c92a2a; }
.profile-purge-btn:hover { background: #fff5f5; border-color: #ff8787; }

/* ── 出运看板 · 多维度搜索栏（复用 sc-* 系列，仅补日期行与复选） ── */
.mb-date-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mb-date-row input[type="date"], .mb-date-row select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 16px; max-width: 100%; }
.mb-check { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text2); cursor: pointer; }
.mb-check input { width: 16px; height: 16px; }
.mb-hint { font-size: 11.5px; color: var(--text2); }
#mb-body .mb-hint { margin-top: 3px; }
.sc-card-s { word-break: break-all; }
#sh-board .sc-filterbar { padding-bottom: 10px; }
#sh-board .sc-kpi { margin-bottom: 12px; }
@media (max-width: 768px) {
  .mb-date-row { width: 100%; }
  .mb-date-row input[type="date"] { flex: 1 1 130px; min-width: 0; }
  .mb-check { min-height: 34px; }
}

/* ---- M27：明细行编辑器 + 收款人档案 ---- */
.m27-items { width: 100%; overflow-x: auto; }
.m27-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.m27-tbl th, .m27-tbl td { border: 1px solid var(--bd, #e2e5ea); padding: 6px 8px; text-align: left; vertical-align: middle; }
.m27-tbl th { background: var(--bg2, #f6f7f9); font-weight: 600; white-space: nowrap; }
.m27-tbl td.m27-empty { text-align: center; color: var(--fg3, #9aa1ab); padding: 14px; }
.m27-i { width: 100%; min-width: 70px; box-sizing: border-box; padding: 5px 7px; font-size: 14px;
  border: 1px solid var(--bd, #e2e5ea); border-radius: 6px; background: var(--bg, #fff); color: var(--fg, #222); }
.m27-i:focus { outline: none; border-color: var(--pri, #3b6fd4); }
.m27-i-s { min-width: 90px; }
.m27-i-u { min-width: 56px; }
.m27-i-n { min-width: 84px; text-align: right; }
.m27-i-d { min-width: 132px; }
.m27-sub { font-weight: 600; white-space: nowrap; color: var(--pri, #3b6fd4); }
.m27-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.m27-total-lb { font-size: 13px; color: var(--fg3, #8b93a0); }
.m27-total { font-size: 18px; color: #d93025; font-weight: 700; }
.m27-hint { font-size: 12px; color: var(--fg3, #9aa1ab); }
.m27-payee-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m27-payee-sel { flex: 1 1 240px; min-width: 200px; padding: 7px 8px; font-size: 14px;
  border: 1px solid var(--bd, #e2e5ea); border-radius: 6px; background: var(--bg, #fff); color: var(--fg, #222); }
.m27-mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.m27-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #eef1f5; color: #6b7280; }
.m27-tag-co { background: #e8f1ff; color: #2b5bb8; }
.m27-sec-title { font-size: 13px; font-weight: 600; margin: 12px 0 2px; color: var(--fg2, #4b5563); }
.m27-payee-add { border-top: 1px dashed var(--bd, #e2e5ea); padding-top: 10px; margin-top: 12px; }
@media (max-width: 768px) {
  .m27-tbl { font-size: 12px; }
  .m27-i { font-size: 16px; }          /* iOS 聚焦不放大页面 */
  .m27-total { font-size: 17px; }
}

/* ---- M27：外勤打卡 ---- */
.m27-fp-stat { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.m27-fp-box { flex: 1 1 110px; min-width: 100px; border: 1px solid var(--bd, #e2e5ea); border-radius: 10px;
  padding: 12px 8px; text-align: center; background: var(--bg2, #fafbfc); }
.m27-fp-n { display: block; font-size: 26px; font-weight: 700; color: var(--pri, #3b6fd4); line-height: 1.2; }
.m27-fp-l { display: block; font-size: 12px; color: var(--fg3, #9aa1ab); margin-top: 2px; }
.m27-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.m27-empty { padding: 16px; text-align: center; color: var(--fg3, #9aa1ab); font-size: 13px; }
.m27-fp-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.m27-fp-filter .doc-f { margin-bottom: 0; min-width: 140px; }
.m27-fp-btns { display: flex; gap: 8px; align-items: center; padding-bottom: 2px; }
.btn-lg { padding: 12px 26px; font-size: 16px; border-radius: 10px; }
@media (max-width: 768px) {
  .m27-fp-box { flex: 1 1 30%; }
  .m27-fp-n { font-size: 22px; }
  .btn-lg { width: 100%; padding: 14px 20px; }
  .m27-fp-filter .doc-f { min-width: 100%; }
}
.m29-tip{display:inline-block;margin:4px 6px 0 0;padding:2px 8px;border-radius:10px;font-size:12px;color:var(--color-text-secondary);background:var(--color-background-secondary);border:0.5px solid var(--color-border-tertiary);}
.m29-warn{color:var(--color-text-warning);background:var(--color-background-warning);border-color:var(--color-border-warning);}

/* ===== M33 团队在线状态（2026-09-28）=====
   设计口径：醒目但不干扰阅读 —— 状态点小而实心，只有「在线」用彩色；
   离线走灰阶，最近活跃时间用更弱一级的次级色，保证成员姓名仍是视觉重心。 */
.pres-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
.pres-on{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.pres-off{background:#cbd5e1}
.pres-txt{font-size:13px;color:var(--text2,#8b95a5);vertical-align:middle}
.pres-txt-on{font-size:13px;color:#15803d;font-weight:600;vertical-align:middle}
.pres-ago{font-size:12px;color:var(--text2,#8b95a5);opacity:.8;margin-left:8px;vertical-align:middle}
.pres-stat{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.pres-stat-inline{display:inline-flex;align-items:center;gap:8px;margin-left:12px;font-weight:400}
.pres-chip{display:inline-flex;align-items:center;font-size:12px;padding:3px 10px;border-radius:999px;background:var(--bg2,#f4f5f7);color:var(--text2,#8b95a5);border:1px solid transparent}
.pres-chip-on{background:#eafaf0;color:#15803d;border-color:#b9ebcd}
.pres-chip-off{background:#f4f5f7;color:#5f6b7a;border-color:#e3e6ea}
.pres-table td{padding-top:9px;padding-bottom:9px}
/* 离线成员姓名轻微降噪（仍保证可读，绝不隐藏） */
.pres-table tr:has(.pres-off) strong{color:var(--text2,#8b95a5)}
@media (max-width: 768px) {
  .pres-ago{margin-left:0;display:block;margin-top:2px}
  .pres-stat-inline{margin-left:0}
}

/* ===== M35 费用报销单「在线查看 / 一键下载」（2026-09-28）=====
   设计口径：弹窗里就是一张「纸」—— 白底黑字 1:1 复刻模版 6 张表，方便财务直接核对；
   表格外框与模版一致（全边框），key 列加浅底，打印时同样生效（打印样式内联在 JS 里）。 */
.m35-sheet{background:#fff;color:#111;overflow:auto;max-height:52vh;-webkit-overflow-scrolling:touch;padding:2px}
.m35-title{font-size:18px;font-weight:700;text-align:center;margin:0 0 2px;color:#111}
.m35-co{font-size:13px;text-align:center;margin:0 0 10px;color:#333}
table.m35-tbl{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 8px;background:#fff}
table.m35-tbl td{border:1px solid #000;padding:4px 6px;text-align:center;vertical-align:middle;word-break:break-all;line-height:1.5;font-size:12px;color:#111}
table.m35-tbl td.m35-k{font-weight:700;background:#f2f2f2}
/* 报销单 7 列，通用弹窗默认宽度装不下 → 单独放宽 */
#modal-hr.m35-wide{max-width:980px;width:96vw}
.m35-sec{margin:14px 0 6px;font-weight:700;font-size:13px;color:var(--text,#1f2430)}
.m35-att-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed var(--border,#e4e8f0)}
.m35-att-i{color:var(--text2,#8b95a5);font-size:12px;min-width:18px}
.m35-att-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.m35-att-s{color:var(--text2,#8b95a5);font-size:12px}
.m35-att-empty{color:var(--text2,#8b95a5);font-size:13px;padding:6px 0}
.m35-tip{margin-top:10px;font-size:12px;color:var(--text2,#8b95a5);line-height:1.6}
@media (max-width: 768px) {
  #modal-hr.m35-wide{max-width:100%;width:98vw}
  table.m35-tbl td{font-size:11px;padding:3px 4px}
}


/* ===== M38 采购付款审批单「在线查看 / 一键下载 / 按模版打印」（2026-09-29）=====
   弹窗内的版式 / 附件行样式 100% 复用 M35 报销单那套（m35-sheet / m35-tbl / m35-att-*），
   这里只补「财务列表页行内按钮」的排布，保证按钮常显、宁可换行绝不隐藏。 */
.fin-row-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* ============ M56（2026-10-01）：全员汇报正文查阅（总经办 / 行政 / 总经理）============ */
.m56-link { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); cursor: pointer; }
.m56-link:hover { color: var(--primary-dark); border-bottom-style: solid; }
.m56-tip { color: var(--primary-dark); }
.m56-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.m56-chip { background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; padding: 3px 9px; font-size: 12px; }
.m56-chip-red { background: #fdecec; color: var(--danger); }
.m56-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fcfdff; }
.m56-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.m56-key { font-weight: 700; font-size: 14px; }
.m56-at { color: var(--text2); font-size: 12px; margin-left: auto; }
.m56-title { font-size: 13px; color: var(--text2); margin-bottom: 6px; word-break: break-all; }
.m56-sec { margin-top: 6px; font-size: 13px; }
.m56-sec > b { display: inline-block; color: var(--text2); font-weight: 600; margin-bottom: 2px; }
.m56-body { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.m56-dim { color: var(--text2); font-style: italic; }
.m56-reason .m56-body { color: var(--danger); }
.m56-files { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; }
.m56-file { color: var(--primary); cursor: pointer; }
.m56-file:hover { text-decoration: underline; }
.m56-file-dl { color: var(--text2); cursor: pointer; margin-left: 2px; }
.m56-file-dl:hover { color: var(--primary); }
.m56-acts { margin-top: 8px; display: flex; gap: 8px; }
.m56-empty { padding: 18px 0; text-align: center; color: var(--text2); font-size: 13px; }

/* ---- M63 柜级特殊货物（索赔配件 / 整机 FOC）---- */
.m63-ctn { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.m63-ctn.m63-off { background: #fafafa; }
.m63-ctn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.m63-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.m63-ck input { width: 16px; height: 16px; }
.m63-ctn-head input[type="text"], .m63-ctn-head .m63-no { width: 210px; max-width: 100%; }
.m63-sum { font-size: 12px; color: var(--text2); }
.m63-tbl td, .m63-tbl th { vertical-align: middle; }
.m63-tbl input[type="number"], .m63-tbl input[type="text"] { width: 100%; box-sizing: border-box; }
.m63-tbl input[type="checkbox"] { width: 16px; height: 16px; }
.m63-none { padding: 6px 0; font-size: 12.5px; color: var(--text2); }
.m63-view-ctn { margin-bottom: 10px; }
.m63-view-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.m63-view-meta { font-size: 12px; color: var(--text2); }
