* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #F2F4F8;
  color: #1F2937;
}
.hidden { display: none !important; }

/* 登录 */
.login-view {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1F3A5F 0%, #2C5282 100%);
}
.login-card {
  width: 360px; background: #FFFFFF; border-radius: 12px;
  padding: 36px 32px; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.login-brand { font-size: 22px; font-weight: 700; color: #1F3A5F; text-align: center; }
.login-sub { font-size: 13px; color: #6B7280; text-align: center; margin: 6px 0 24px; }
#login-form input {
  width: 100%; height: 42px; margin-bottom: 14px; padding: 0 12px;
  border: 1px solid #D1D5DB; border-radius: 8px; font-size: 14px;
}
#login-form input:focus { outline: none; border-color: #2C5282; }
#login-btn {
  width: 100%; height: 44px; border: none; border-radius: 8px; cursor: pointer;
  background: #C9A227; color: #1F2937; font-size: 16px; font-weight: 700;
}
#login-btn:hover { background: #B8911F; }
.login-err { color: #DC2626; font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }
.login-hint { margin-top: 18px; font-size: 12px; color: #9CA3AF; line-height: 1.6; text-align: center; }

/* 主框架 */
.topbar {
  height: 56px; background: #1F3A5F; color: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.topbar .brand { font-size: 17px; font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 12px; }
.user-info { font-size: 13px; color: #D6E0F0; }
.btn-ghost {
  background: transparent; border: 1px solid #5B7BA6; color: #FFFFFF;
  border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { background: #2C5282; }
.layout { display: flex; height: calc(100vh - 56px); }
.sidebar {
  width: 200px; background: #FFFFFF; border-right: 1px solid #E5E7EB;
  padding: 14px 10px; overflow-y: auto;
}
.nav-item {
  padding: 11px 14px; margin-bottom: 4px; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: #374151;
}
.nav-item:hover { background: #EEF2F7; }
.nav-item.active { background: #1F3A5F; color: #FFFFFF; font-weight: 600; }

/* 体系文件子分类（Steven 2026-10-06）：侧栏二级菜单
   —— 缩进 + 更小字号 + 左侧竖线，视觉上从属于上一级；点父项时仍展示全部 */
.nav-subitem {
  padding: 6px 10px 6px 22px; margin: 0 0 2px 12px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; color: #4B5563; border-left: 2px solid #D8DEE8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-subitem:hover { background: #EEF2F7; color: #1F3A5F; }
.nav-subitem.active {
  background: #E6EEF7; color: #1F3A5F; font-weight: 600; border-left-color: #1F3A5F;
}

.content { flex: 1; padding: 20px 24px; overflow-y: auto; }
.search-bar { display: flex; gap: 10px; align-items: center; }
.search-bar input {
  flex: 1; height: 44px; padding: 0 14px; border: 1px solid #D1D5DB;
  border-radius: 8px; font-size: 15px;
}
.search-bar input:focus { outline: none; border-color: #2C5282; }
.search-bar button {
  height: 44px; padding: 0 22px; border: none; border-radius: 8px; cursor: pointer;
  background: #1F3A5F; color: #FFFFFF; font-size: 15px; font-weight: 600;
}
.search-bar button:hover { background: #2C5282; }
.mode-tag { font-size: 12px; color: #6B7280; padding: 4px 10px; border: 1px solid #E5E7EB; border-radius: 12px; }
.result-meta { margin: 16px 0 10px; font-size: 13px; color: #6B7280; }

.results { display: flex; flex-direction: column; gap: 10px; }
.file-card {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-left: 4px solid #C9A227;
  border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
/* flex:1 让文件名区域占满剩余宽度（否则被右侧按钮挤压后更容易裁切） */
.file-main { min-width: 0; flex: 1; }
.file-code { font-size: 12px; color: #C9A227; font-weight: 700; letter-spacing: 0.5px; }
/* 🔴 文件名必须允许换行（Steven 2026-10-07 反馈：「GBT 4074」改名后仍只显示这几个字）
   —— .file-card 是 flex 布局，.file-main 没有 flex:1 且 .file-name 没有 word-break，
      长文件名（含空格的分段）会撑破容器被裁掉尾部。表现就是"只显示前面几个字，后面全没有"。
   —— 修法：让 .file-main 占据剩余空间 + 文件名按字符断行（break-all 保证长编码串也能断）。 */
.file-name {
  font-size: 16px; font-weight: 600; color: #1F2937; margin: 3px 0;
  word-break: break-all; overflow-wrap: anywhere; white-space: normal;
  line-height: 1.45;
}
.file-sub { font-size: 12px; color: #6B7280; word-break: break-all; overflow-wrap: anywhere; }
.file-actions { flex-shrink: 0; margin-left: 16px; }
.file-actions button {
  border: 1px solid #1F3A5F; background: #FFFFFF; color: #1F3A5F;
  border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.file-actions button:hover { background: #1F3A5F; color: #FFFFFF; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: #FFFFFF; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; z-index: 99; max-width: 80%;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; background: #F1EFE8;
  border: 1px solid #D8D5CB; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.chip input { margin: 0; }
.col-sel { margin-top: 8px; padding: 8px 10px; background: #FFFFFF; border: 1px dashed #D8D5CB; border-radius: 8px; }
.col-sel > .col-sel-title { font-size: 12px; color: #6B7280; margin-bottom: 6px; }
.col-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.col-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #F1EFE8;
  border: 1px solid #D8D5CB; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.col-chip input { margin: 0; }
.col-chip.on { background: #E0E7FF; border-color: #6366F1; color: #3730A3; }

/* 模块通用 */
.module-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.module-head h2 { font-size: 20px; color: #1F3A5F; }
.tag { font-size: 12px; color: #6B7280; background: #EEF2F7; border: 1px solid #E5E7EB; border-radius: 12px; padding: 3px 10px; }
.panel { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.panel h3 { font-size: 15px; color: #1F3A5F; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid label { display: flex; flex-direction: column; font-size: 13px; color: #4B5563; gap: 5px; }
/* 🔴 标签文字必须**单行**，不能换行（Steven 2026-10-07 截图反馈「编号标签和文本框错开」）
   —— label 是 flex-direction:column，文字一旦换行就多占一行高度，把下方控件整体下推，
      导致同一行相邻字段（如「名称」与「编码」）的输入框**不在同一水平线上**。
   —— 硬约束：宁可省略号截断，也绝不允许换行。
   —— 用 .lbl 包裹层实现（不用 :has()，有兼容性风险）；
      同时给未包 .lbl 的裸文本节点兜底：给 label 加 min-height 保证行高一致。 */
.form-grid label > .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 兜底：所有 form-grid 的标签行**固定单行高度** —— 即使某个标签文字意外换行，
   也不会把下方控件顶下去（这一条是根治手段，比逐个包 .lbl 更可靠）。 */
.form-grid label { min-height: 20px; }
.form-grid label > .lbl { display: block; height: 20px; line-height: 20px; }
/* 标签里带"必选"等补充说明时：用小字，避免撑长标签导致换行 */
.form-grid label .req { font-size: 11px; font-weight: 600; color: #A32D2D; margin-left: 3px; }
.form-grid input, .form-grid select, .form-grid textarea { height: 38px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 7px; font-size: 14px; }
.form-grid textarea, textarea { height: auto; padding: 8px 10px; border: 1px solid #D1D5DB; border-radius: 7px; font-size: 14px; resize: vertical; width: 100%; box-sizing: border-box; min-height: 42px; line-height: 1.6; overflow-y: hidden; }
/* 独立于 form-grid 的整行字段（如投诉的“缺陷描述/企业实情补充”）：block + 满宽，解决默认 textarea 只有 ~20 字符宽的问题 */
.field-block { display: block; margin-top: 12px; }
.field-block > span { display: block; font-size: 13px; color: #4B5563; margin-bottom: 5px; }
.form-grid .ro { font-weight: 600; color: #1F2937; padding-top: 6px; }
/* ⚠ 复选框/单选框复位：.form-grid input 的通用样式（height:38px + label 纵向 flex 拉伸）
   会把 checkbox 撑成 38px 高、满宽的大方块（2026-10-01 运行记录上传表单事故）。 */
.form-grid input[type="checkbox"], .form-grid input[type="radio"] { width: 16px; height: 16px; padding: 0; flex: none; align-self: flex-start; }
.form-grid label.chk-row { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: #374151; }
/* —— 运行记录上传：维护计划项关联选择器 —— */
.link-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E5E7EB; }
.chk-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; }
.chk-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: #1F3A5F; }
.link-hint { font-size: 12px; color: #9CA3AF; margin-top: 6px; line-height: 1.6; }
.link-hint b { color: #8A6D1A; }
/* 必填项的说明行（Steven 2026-10-07）：编码必选的原因与补救办法 */
.hint-line {
  grid-column: 1 / -1; font-size: 12px; color: #6B7280;
  line-height: 1.6; margin: -2px 0 4px;
}
.hint-line b { color: #A32D2D; }
.link-picker { margin-top: 10px; border: 1px solid #E5E7EB; border-radius: 8px; background: #FFFFFF; overflow: hidden; }
.link-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #F3F6FB; border-bottom: 1px solid #E5E7EB; font-size: 12px; color: #6B7280; }
.link-picker-head .link-count { color: #1F3A5F; font-weight: 600; flex: none; }
.link-list { max-height: 208px; overflow-y: auto; padding: 6px; display: grid; gap: 4px; }
.link-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.link-item:hover { background: #F7F9FC; }
.link-item.on { background: #FFF7E6; border-color: #E7D08A; }
.link-item.mine .li-main::after { content: "本部门"; font-size: 10px; font-weight: 600; color: #1E7E34; background: #E8F5E9; border: 1px solid #C8E6C9; border-radius: 9px; padding: 0 6px; margin-left: 6px; }
.link-item input[type="checkbox"] { width: 15px; height: 15px; margin: 2px 0 0 0; flex: none; accent-color: #1F3A5F; }
.li-body { min-width: 0; }
.li-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #1F2937; line-height: 1.5; }
.li-chip { font-size: 11px; color: #1F3A5F; background: #EEF2F7; border: 1px solid #E5E7EB; border-radius: 10px; padding: 0 7px; flex: none; }
.li-sub { display: block; font-size: 12px; color: #9CA3AF; margin-top: 2px; line-height: 1.5; }
.li-empty { font-size: 12px; color: #9CA3AF; padding: 10px 6px; }
.btn-primary { height: 40px; padding: 0 20px; border: none; border-radius: 8px; cursor: pointer; background: #C9A227; color: #1F2937; font-size: 14px; font-weight: 700; margin-top: 8px; }
.btn-primary:hover { background: #B8911F; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.hint { font-size: 12px; color: #9CA3AF; margin-top: 10px; line-height: 1.6; }
.empty { color: #9CA3AF; padding: 18px; text-align: center; }

/* 表格 */
.grid { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.grid th, .grid td { border: 1px solid #E5E7EB; padding: 6px 8px; text-align: left; vertical-align: top; word-break: break-word; overflow-wrap: break-word; }
.grid th { background: #F3F6FB; color: #1F3A5F; font-weight: 600; }
.grid .fill-col { background: #FFF7E6; }
.mini { height: 30px; padding: 0 6px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 12px; }
.grid input.mini, .grid select.mini { width: 100%; box-sizing: border-box; min-width: 0; }
/* 紧凑表（体系维护等宽列多的表）：更小字号/内边距，确保多列在屏内完整显示 */
.grid.dense { font-size: 12px; }
.grid.dense th, .grid.dense td { padding: 4px 6px; }
.grid.dense .mini { height: 26px; padding: 0 4px; font-size: 11px; }
.grid.dense select.mini { padding-right: 2px; }
.spc-ok { color: #059669; font-weight: 600; }
.spc-bad { color: #DC2626; font-weight: 600; }
.btn-del { font-size: 11px; padding: 2px 8px; border: 1px solid #DC2626; background: #fff; color: #DC2626; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn-del:hover { background: #FEE2E2; }
.btn-mini { font-size: 12px; padding: 4px 10px; margin-top: 8px; border: 1px solid #C9A227; background: #fff; color: #1F2937; border-radius: 6px; cursor: pointer; }
#mm-pchart svg, #mm-trend svg { max-width: 680px; display: block; margin-top: 8px; border: 1px solid #E5E7EB; border-radius: 8px; }

/* 标签页 */
.tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border: 1px solid #D1D5DB; border-radius: 8px; cursor: pointer; font-size: 13px; color: #374151; background: #fff; }
.tab.active { background: #1F3A5F; color: #fff; border-color: #1F3A5F; }

/* 投诉结果卡 */
.res-card { background: #F8FAFC; border: 1px solid #E5E7EB; border-left: 4px solid #C9A227; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.res-card b { color: #1F3A5F; font-size: 13px; }
.res-card p { margin: 4px 0 0; font-size: 14px; color: #374151; line-height: 1.6; }

/* 咨询对话 */
.chat { height: 420px; overflow-y: auto; border: 1px solid #E5E7EB; border-radius: 8px; padding: 14px; background: #F8FAFC; margin-bottom: 10px; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.msg.me { background: #1F3A5F; color: #fff; margin-left: auto; }
.msg.ai { background: #fff; border: 1px solid #E5E7EB; color: #1F2937; }
.chat-input { display: flex; gap: 10px; }
.chat-input input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: #2C5282; }
.msg-body { white-space: pre-wrap; }
.msg-src { margin-top: 8px; font-size: 12px; line-height: 1.8; }
.src-chip {
  display: inline-block; background: #EEF2F7; color: #1F3A5F; border: 1px solid #D6E0EC;
  border-radius: 12px; padding: 2px 9px; margin: 2px 4px 2px 0; font-size: 12px;
}
/* 等待反馈：pending 气泡 + 动态点，避免长耗时段落看起来“无响应” */
.msg.err .msg-body { color: #B91C1C; }
.typing { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #C9A227; display: inline-block; animation: typing-bounce 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input input:disabled { background: #F3F4F6; color: #9CA3AF; }

/* —— 3.4 客户审核：7 步闭环引导条 —— */
.stepper { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #E5E7EB; border-radius: 999px; background: #FFFFFF; font-size: 13px; color: #6B7280; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #E5E7EB; color: #6B7280; font-size: 12px; font-weight: 700; }
.step.active { border-color: #1F3A5F; color: #1F3A5F; font-weight: 600; }
.step.active .num { background: #1F3A5F; color: #FFFFFF; }
.step.disabled { opacity: 0.45; cursor: not-allowed; }
.step-sep { color: #C0C6CE; font-size: 13px; align-self: center; }
.src-group { margin: 6px 0; line-height: 1.9; }

/* —— 3.4 客户审核：双分支工作表卡片 —— */
.audit-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.audit-card { background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 14px; }
.audit-card.done { border-left: 4px solid #16A34A; background: #F0FDF4; }
.ac-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-sel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #4B5563; font-weight: 600; }
.ac-head b { font-size: 14px; color: #1F2937; }
.muted { font-size: 12px; color: #6B7280; }
.ac-body { margin-top: 10px; }
.ac-tools { font-size: 13px; color: #4B5563; margin-bottom: 8px; }
.ac-tools .chips { margin-top: 6px; }
.ac-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.au-out { margin-top: 8px; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.b-blank { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.b-filled { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.b-other { background: #F3F4F6; color: #6B7280; border: 1px solid #E5E7EB; }
.b-vda { background: #EDE9FE; color: #5B21B6; border: 1px solid #DDD6FE; }
.b-gen { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

/* —— 3.4 客户审核：填写进度条 + 计时 —— */
.prog-wrap { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.prog-bar { height: 10px; background: #EEF2F7; border-radius: 6px; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #1F3A5F, #C9A227); transition: width .3s ease; }
.prog-text { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
#prog-state { color: #1F3A5F; font-weight: 600; }
#prog-time { color: #6B7280; font-variant-numeric: tabular-nums; }

/* —— 权限自检 / 系统更新 / 测试模式横幅 —— */
.perm-matrix th:first-child, .perm-matrix td:first-child { width: 42%; }
.perm-matrix .allow { color: #1E7E34; font-weight: 600; background: #F0FBF2; }
.perm-matrix .deny { color: #C0392B; font-weight: 600; background: #FDF0EE; }
.allow { color: #1E7E34; font-weight: 600; }
.deny { color: #C0392B; font-weight: 600; }
.code { font-family: Consolas, "Courier New", monospace; font-size: 11px; color: #6B7280; }
.hl { color: #C9A227; font-weight: 600; }
.test-banner { background: #FFF4D6; color: #8A6D1A; border: 1px solid #F0D27A; border-radius: 6px; padding: 4px 10px; font-size: 12px; margin-left: 6px; }
#impersonate-wrap { display: inline-flex; align-items: center; gap: 6px; }

/* —— 运行模式 / 后台断线 提示条 —— */
.mode-banner { padding: 0; font-size: 13px; line-height: 1.6; border-bottom: 1px solid #E5E7EB; }
.mode-banner b { font-weight: 700; }
.mode-banner .mb-sub { display: block; margin-top: 3px; font-size: 12px; opacity: .92; }
.mode-banner.warn { background: #FFF4D6; color: #8A6D1A; border-bottom-color: #F0D27A; }
.mode-banner.danger { background: #FDECEA; color: #A22C1E; border-bottom-color: #F5C2BA; }
.mode-banner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-family: Consolas, "Courier New", monospace; }
/* 分块提示：warn（黄，数据演示）/ danger（红，AI 演示）各自独立着色，可同时出现 */
.mode-banner .mb-block { padding: 9px 16px; }
.mode-banner .mb-block.warn { background: #FFF4D6; color: #8A6D1A; }
.mode-banner .mb-block.danger { background: #FDECEA; color: #A22C1E; }
.mode-banner .mb-block code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-family: Consolas, "Courier New", monospace; }
.mode-banner .mb-sep { height: 0; border-top: 1px solid #E5E7EB; margin: 0; }

/* 受控数据只读单元格（目标值等来自《体系维护总要求》原表的字段）
   —— 等宽字体保证「≧95%」「≦1.10元」「300PPM」「1」等混合文本原样呈现、不被浏览器做任何数值格式化 */
.ro-val {
  display: inline-block;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12.5px;
  color: #1F2937;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 3px 7px;
  min-width: 46px;
  white-space: pre;
}
/* 维护进度表：列宽**统一由 colgroup 的 <col> 控制**（app.js 的 maintCols）。
   ⚠️ 这里不要再给 input/select 写固定 width —— .grid input.mini{width:100%} 会让输入框撑满 td，
   而 td 宽度来自 colgroup；写固定 width 只会与 100% 冲突、或被 box-sizing 计算成不同值，
   结果是「输入框变小了但列没变窄」（Steven 2026-10-06 反馈过这个问题）。
   只保留字体与内边距微调，让控件自然填满已收窄的窄列。 */
#mm-table input.mini[data-k="plan_finish"],
#mm-table input.mini[data-k="actual_finish"] {
  padding: 3px 3px;
  font-size: 11.5px;
  letter-spacing: -0.2px;
}
#mm-table input.mini[data-k="actual_value"] {
  padding: 3px 3px;
  font-size: 12px;
}
#mm-table select.mini[data-k="dept"] {
  padding: 3px 0;
  font-size: 11.5px;
}
/* 表头同步收窄：标题字多（「实际达标值」5 字），不缩会换行撑高 */
#mm-table thead th { padding: 4px 3px; font-size: 11.5px; }
/* 表格本身不再撑破容器：列宽已按 colgroup 锁定，
   外层允许横向滚动兜底（此前表格 width:100% + 内容撑开会把「操作」列顶出边框） */
#mm-table { table-layout: fixed; width: 100%; }
#mm-table .results, .results { overflow-x: auto; }
