:root {
  --bg: #faf6f0;
  --bg2: #f3ece1;
  --card: #ffffff;
  --card2: #f7f1e8;
  --line: #e6dccd;
  --text: #43392e;
  --muted: #97897a;
  --primary: #c94f32;
  --primary-d: #a83f27;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #ca8a04;
  --orange: #d97706;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; margin-top: 14px; }
.msg { margin-left: 10px; font-size: 13px; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }

/* 遮罩 / 卡片 */
.mask {
  position: fixed; inset: 0;
  background: rgba(61,45,32,.38);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  width: 360px;
  max-width: 90vw;
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card h3 { margin: 0 0 6px; }
.login-card input, .login-card textarea {
  width: 100%; margin-top: 12px;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px;
}

/* 按钮 */
.btn {
  border: 1px solid var(--line);
  background: var(--card2); color: var(--text);
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  font-size: 13px; transition: .15s;
}
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 28px; width: auto; }
.login-logo { display: block; width: 240px; max-width: 85%; height: auto; margin: 0 auto 12px; }
.me { display: flex; align-items: center; gap: 10px; }
.tag { background: var(--card); padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line); }
.badge.admin { background: var(--orange); color: #fff; border: none; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* 侧栏 + 内容两栏布局 */
body { display: block; }
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 55px); }
.side-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  font-size: 16px; line-height: 1; padding: 6px 10px; margin-right: 10px;
  border-radius: 8px; cursor: pointer; transition: .15s;
}
.side-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* 侧栏（展开态默认） */
.sidebar {
  width: 200px; flex: 0 0 auto; background: var(--bg2);
  border-right: 1px solid var(--line); padding: 14px 10px;
  box-sizing: border-box; overflow-x: hidden; transition: width .18s ease;
}
.sidebar .tabs { display: flex; flex-direction: column; gap: 4px; }
.sidebar .tab {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--muted); text-align: left;
  padding: 9px 12px; cursor: pointer; font-size: 14px;
  border-radius: 8px; border-left: 3px solid transparent; white-space: nowrap;
}
.sidebar .tab:hover { background: var(--card); color: var(--text); }
.sidebar .tab.active { color: var(--text); background: var(--card); border-left-color: var(--primary); font-weight: 600; }
.sidebar .t-ic { font-size: 16px; width: 22px; text-align: center; flex: 0 0 auto; }
.sidebar .t-ic.plus { font-weight: 700; }
.sidebar .t-txt { flex: 1; min-width: 0; }
.count { background: var(--red); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: auto; }

/* 收缩态 */
.sb-collapsed .sidebar { width: 58px; padding: 14px 7px; }
.sb-collapsed .sidebar .tab { justify-content: center; gap: 0; padding: 10px 0; }
.sb-collapsed .sidebar .t-txt { display: none; }
.sb-collapsed .sidebar .count { display: none; }

.content { padding: 20px; max-width: 1600px; flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .sidebar { width: 58px; padding: 14px 7px; }
  .sidebar .tab { justify-content: center; gap: 0; padding: 10px 0; }
  .sidebar .t-txt { display: none; }
}
/* 主体右栏以侧栏展开宽度自适应 */
body.sb-collapsed .layout .content, .layout .content { }
.panel { display: none; }
.panel.active { display: block; }
h2 { font-size: 17px; margin: 0 0 16px; }

/* 卡片列表 */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
}
.card.overdue { border-color: var(--red); }
.card .title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.card .desc { color: var(--muted); margin-bottom: 8px; white-space: pre-wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.meta .who { color: var(--text); }

/* 状态徽标 */
.status { padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status.pending { background: rgba(202,138,4,.14); color: #a16207; }
.status.completed { background: rgba(22,163,74,.14); color: #15803d; }
.status.incomplete { background: rgba(220,38,38,.12); color: #b91c1c; }
.type-badge { background: var(--card2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
/* 任务类型配色：让不同周期一眼区分 */
.type-badge.type-once { background: rgba(100,116,139,.12); color: #64748b; border-color: rgba(100,116,139,.32); }
.type-badge.type-daily { background: rgba(37,99,235,.10); color: #2563eb; border-color: rgba(37,99,235,.38); }
.type-badge.type-weekly { background: rgba(147,51,234,.10); color: #9333ea; border-color: rgba(147,51,234,.38); }
.type-badge.type-monthly { background: rgba(13,148,136,.10); color: #0d9488; border-color: rgba(13,148,136,.38); }
.type-badge.type-scheduled { background: rgba(219,39,119,.10); color: #db2777; border-color: rgba(219,39,119,.38); }
/* 新建表单类型图例 */
.type-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.type-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.type-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.actions { margin-top: 12px; display: flex; gap: 8px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 14px; font-family: inherit;
}
.form .row { display: flex; gap: 14px; }
.form .row label { flex: 1; }
.assign-box { display: flex; flex-wrap: wrap; gap: 8px; }
.assign-box .opt {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text);
}
.assign-box .opt input { margin: 0; }
.assign-box.multi .opt { cursor: pointer; }

/* 记录筛选 */
.filters { margin-bottom: 14px; }
.filters select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
}
.rec-reason { color: var(--red); font-size: 12px; margin-top: 6px; }
.rec-done { color: var(--green); font-size: 12px; margin-top: 6px; }
.empty { color: var(--muted); text-align: center; padding: 30px; }
.recur { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.recur .row { margin-bottom: 10px; }
.sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.row.end { justify-content: flex-end; }

/* 提醒横幅 */
.reminder { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.rem-item { padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.rem-item.over { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.32); }
.rem-item.soon { background: rgba(202,138,4,.10); color: #92400e; border: 1px solid rgba(202,138,4,.38); }

/* 周期任务确认弹窗 */
.confirm-info {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text);
  margin: 10px 0 4px; line-height: 1.5;
}

/* 统计 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; }
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .num small { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-card .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* 加班 */
.ot-duration { font-size: 14px; color: var(--text); background: var(--card2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.ot-duration b { color: var(--primary); font-size: 16px; }
.lv-balance { margin-left: 10px; font-size: 12px; color: var(--muted); }
.lv-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px solid transparent; font-weight: 600; }
.lv-badge.lv-tx { background: rgba(13,148,136,.10); color: #0d9488; border-color: rgba(13,148,136,.38); }
.lv-badge.lv-sj { background: rgba(100,116,139,.12); color: #64748b; border-color: rgba(100,116,139,.32); }
.lv-badge.lv-bj { background: rgba(37,99,235,.10); color: #2563eb; border-color: rgba(37,99,235,.38); }
.lv-badge.lv-nj { background: rgba(147,51,234,.10); color: #9333ea; border-color: rgba(147,51,234,.38); }
.lv-badge.lv-qt { background: rgba(219,39,119,.10); color: #db2777; border-color: rgba(219,39,119,.38); }
.ot-rate-line { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.ot-rate { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.ot-rate.r15 { background: rgba(37,99,235,.12); color: #2563eb; }
.ot-rate.r2 { background: rgba(217,119,6,.16); color: #b45309; }
.title .ot-rate { margin-left: 6px; vertical-align: 1px; }
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 220px; align-items: center; gap: 10px; font-size: 12px; }
.bar-name { color: var(--text); white-space: nowrap; }
.bar-name .type-badge { display: inline-block; white-space: nowrap; }
.bar-track { display: flex; height: 14px; background: var(--bg2); border-radius: 7px; overflow: hidden; }
.bar-seg { height: 100%; }
.bar-seg.done { background: var(--green); }
.bar-seg.fail { background: var(--red); }
.bar-val { color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 96px minmax(0, 1fr); row-gap: 6px; }
  .bar-val { grid-column: 1 / -1; text-align: left; }
}

/* 用户管理表格 */
#userTable .title { display: flex; align-items: center; gap: 8px; }

/* 产品型号生成器 */
.model-generator-box { max-width: 700px; }
.current-model-display { margin: 20px 0; }
.model-card {
  background: var(--card2); border: 2px solid var(--primary);
  border-radius: 12px; padding: 20px; text-align: center;
}
.model-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.model-code {
  font-size: 28px; font-weight: 700; color: var(--primary);
  font-family: "Courier New", monospace; margin-bottom: 8px;
  letter-spacing: 1px;
}
.model-time { font-size: 12px; color: var(--muted); }
.history-section { margin-top: 24px; }
.history-section h3 { margin-bottom: 12px; }
.model-history-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 16px;
}
.model-history-code {
  font-size: 16px; font-weight: 600; color: var(--text);
  font-family: "Courier New", monospace;
}
.model-history-meta { font-size: 12px; color: var(--muted); text-align: right; }
.model-history-range {
  display: inline-block; background: var(--bg2);
  padding: 3px 8px; border-radius: 6px; font-size: 12px;
  margin-left: 8px; color: var(--primary);
}

/* ===== 型号 / 序列号生成器两栏布局 ===== */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .gen-grid { grid-template-columns: 1fr; } }
.gen-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.gen-col-title {
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.serial-code {
  font-size: 22px; font-weight: 700; color: var(--green);
  font-family: "Courier New", monospace; margin-bottom: 8px;
  letter-spacing: 1px;
}
.serial-history-code {
  font-size: 15px; font-weight: 600; color: var(--text);
  font-family: "Courier New", monospace;
}
.serial-tools { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }

/* ===== 生成器权限提示 ===== */
.perm-notice {
  background: rgba(202,138,4,.10); color: #92400e;
  border: 1px solid rgba(202,138,4,.38);
  border-radius: 8px; padding: 10px 12px;
  font-size: 13px; margin-bottom: 12px;
}

/* 全部记录：按任务合并卡片 */
.task-group-card .task-people { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.task-person { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; flex-wrap: wrap; }
.task-person .who { font-weight: 700; }
.task-person .rec-reason { margin-top: 0; }
.meta-summary { color: var(--text); font-weight: 600; }

/* 顶部操作提示 toast */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--green); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: 22px; font-size: 13px;
  box-shadow: 0 6px 24px rgba(61,45,32,.18);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 处理中按钮：禁用并弱化，防止重复点击 */
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.processing { background: var(--muted); }

/* 登录/弹窗输入框统一间距 */
.login-card input { margin-bottom: 12px; }
.login-card input[type=password], .login-card input:not([type]) { margin-bottom: 12px; }

/* 全部记录 - 按类型分组 */
.rec-group { display: flex; flex-direction: column; gap: 12px; }
.rec-group-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--card2); border: 1px solid var(--line);
  margin-top: 6px; text-transform: none;
}
.rec-group-title:first-child { margin-top: 0; }
.rec-group-title.type-once { color: #64748b; }
.rec-group-title.type-daily { color: #2563eb; }
.rec-group-title.type-weekly { color: #9333ea; }
.rec-group-title.type-monthly { color: #0d9488; }
.rec-group-title.type-scheduled { color: #db2777; }
.rec-group-count { font-weight: 400; font-size: 12px; opacity: .7; }

/* 取消任务按钮 */
.btn.danger-soft {
  background: rgba(220,38,38,.08); color: #b91c1c;
  border: 1px solid rgba(220,38,38,.32);
}
.btn.danger-soft:hover { background: rgba(220,38,38,.16); }

/* ===== 个人记事本 ===== */
.note-card { padding: 12px 14px; }
.note-row { display: flex; align-items: flex-start; gap: 12px; }
.note-circle {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--primary);
  background: transparent; color: var(--primary); cursor: pointer;
  font-size: 14px; line-height: 18px; text-align: center;
  margin-top: 2px; transition: .15s;
}
.note-circle:hover { background: rgba(201,79,50,.14); }
.note-circle.on { background: var(--green); border-color: var(--green); }
.note-body { flex: 1; min-width: 0; }
.note-tag { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.note-tag.pend { background: rgba(202,138,4,.14); color: #a16207; }
.note-tag.done { background: rgba(34,197,94,.18); color: var(--green); }
.note-tag.over { background: rgba(239,68,68,.18); color: var(--red); }
.note-inline-tag { margin-right: 2px; }
.note-form { max-width: 620px; }
.note-submit { display: flex; align-items: flex-end; }
.note-tools { margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; }
.note-tools select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}
/* 已处理样式（记事本页内显示时变暗） */
.card.note-done { opacity: .55; }
.card.note-done .title { text-decoration: line-through; color: var(--muted); }
.card.note-done .note-circle.on { background: var(--green); }

/* ---------- 品质看板 ---------- */
.q-sub { margin: 18px 0 10px; font-size: 15px; }
.q-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px,1fr)); gap: 10px; margin: 14px 0 4px; }
.q-stat { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; }
.q-stat-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.1; }
.q-stat-num.c-i { color: var(--primary); }
.q-stat-num.c-o { color: var(--orange); }
.q-stat-num.c-s { color: var(--primary); }
.q-stat-lab { font-size: 12px; color: var(--muted); margin-top: 4px; }
.q-stat-lab.lv { display: inline-block; padding: 1px 8px; border-radius: 6px; }
.q-stat-lab.lv1 { color:#166534; background:#dcfce7; } .q-stat-lab.lv2 { color:#854d0e; background:#fef9c3; }
.q-stat-lab.lv3 { color:#7c2d12; background:#ffedd5; } .q-stat-lab.lv4 { color:#9a3412; background:#fed7aa; }
.q-stat-lab.lv5 { color:#fff; background:var(--red); }
.q-usage-row label { flex: none; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; align-items: start; }
@media (max-width: 860px) { .q-grid { grid-template-columns: 1fr; } }
.q-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.q-photo-row { margin: 4px 0 10px; }
.q-photo-row .btn { margin: 6px 0; }
.q-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-thumb-wrap { position: relative; }
.q-thumb {
  width: 74px; height: 74px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
  cursor: zoom-in; background: var(--card2); display: block;
}
.q-thumb-del {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: var(--red); color: #fff;
  font-size: 13px; line-height: 20px; padding: 0; cursor: pointer;
}
.q-card {
  background: var(--card2); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.q-card-head { margin-bottom: 8px; }
.q-card-title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.q-code {
  display: inline-block; font-family: Consolas, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  border-radius: 6px; padding: 2px 8px; margin-right: 4px;
  vertical-align: 2px; white-space: nowrap;
}
.q-code.i { color: #fff; background: var(--primary); }
.q-code.o { color: #fff; background: var(--orange); }
.q-lvl {
  display: inline-block; font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 2px 7px; margin-right: 4px;
  vertical-align: 2px; white-space: nowrap;
}
.q-lvl.l1 { color: #166534; background: #dcfce7; }
.q-lvl.l2 { color: #854d0e; background: #fef9c3; }
.q-lvl.l3 { color: #7c2d12; background: #ffedd5; }
.q-lvl.l4 { color: #9a3412; background: #fed7aa; }
.q-lvl.l5 { color: #fff; background: var(--red); }
.q-score {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 2px; padding: 8px 10px;
  background: var(--card2); border: 1px dashed var(--line); border-radius: 8px;
}
.q-score-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.q-score-val { font-size: 20px; font-weight: 800; color: var(--primary); margin-right: 2px; }
.q-score-val i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; }
.q-hist-item.score { border-left-color: var(--yellow); }
.q-card-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.q-sec { margin: 8px 0; }
.q-sec-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--primary); background: rgba(201,79,50,.09);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 4px;
}
.q-sec-text { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.q-sec-empty { color: var(--muted); font-size: 12px; }
.q-card-foot { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.q-modal { width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; text-align: left; }
.q-hist { max-height: 46vh; overflow-y: auto; margin: 10px 0 14px; }
.q-hist-item {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; background: var(--card2);
}
.q-hist-meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.q-hist-change { font-size: 13px; line-height: 1.5; margin: 3px 0; word-break: break-word; }
.q-hist-change b { color: var(--primary); }

/* ==================== 标准文件（独立功能：分类目录 + 文档） ==================== */
.std-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.std-tool-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.std-tool-left .btn:disabled { opacity: .5; cursor: not-allowed; }
.std-tool-right .sub { color: var(--muted); font-size: 12px; }
.std-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 860px) { .std-wrap { grid-template-columns: 1fr; } }
.std-dirs, .std-main {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px;
}
.std-dir-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.std-dir {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 8px 10px; border-radius: 8px;
  border: 1px solid transparent; background: var(--card2);
}
.std-dir:hover { border-color: var(--line); }
.std-dir.active { border-color: var(--primary); background: rgba(201,79,50,.07); }
.std-dir-ic { font-size: 15px; }
.std-dir-name { flex: 1; font-size: 13px; font-weight: 600; word-break: break-word; }
.std-dir-count {
  font-size: 11px; color: var(--muted); background: var(--card2);
  border: 1px solid var(--line); border-radius: 20px; padding: 1px 7px;
}
.std-dir-ops { display: flex; gap: 2px; }
.std-dir-ops .mini {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; border-radius: 6px; padding: 2px 5px; line-height: 1;
}
.std-dir-ops .btn-ghost:hover { background: rgba(0,0,0,.06); }
.std-dir-ops .btn-danger:hover { background: rgba(220,38,38,.14); }
.std-file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.std-file {
  display: flex; align-items: center; gap: 12px;
  background: var(--card2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.std-file-ic { font-size: 20px; }
.std-file-body { flex: 1; min-width: 0; }
.std-file-title { font-weight: 700; font-size: 14px; word-break: break-word; line-height: 1.4; }
.std-file-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.std-file-no b { color: var(--primary); }
.std-file-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.std-file-ops a.btn { text-decoration: none; display: inline-block; }
.q-modal-wide { width: min(620px, 96vw); }
.std-main .sub { color: var(--muted); font-weight: 400; }
/* ============ 维修登记 ============ */
.rep-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.rep-tool-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-tool-left .btn { padding: 6px 12px; }
.rep-tool-right { font-size: 13px; color: var(--muted); }
.rep-wrap { margin-top: 12px; }
.rep-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1120px; }
.rep-table th, .rep-table td { border-bottom: 1px solid var(--line); padding: 8px 9px; text-align: left; vertical-align: middle; }
.rep-table thead th { background: rgba(127,127,127,.08); position: sticky; top: 0; font-weight: 700; white-space: nowrap; font-size: 12px; }
.rep-table tbody tr:last-child td { border-bottom: none; }
.rep-table tbody tr:hover { background: rgba(0,0,0,.02); }
.rep-table td { word-break: break-word; }
td.rep-no { white-space: nowrap; font-weight: 700; color: var(--primary); }
td.rep-fault { max-width: 240px; }
.rep-ops { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* 已完成=置灰锁定 */
.rep-table .rep-done { background: #f1f1f1 !important; color: #888; pointer-events: none; }
.rep-table .rep-done td { color: #9a9a9a; }
.rep-table .rep-done td a, .rep-table .rep-done button { pointer-events: auto; }
.rep-table .rep-done .chip { background: #d4d4d4; color: #777; }
.rep-lock { font-size: 12px; color: #aaa; }
.chip { display: inline-block; font-size: 12px; border-radius: 12px; padding: 2px 10px; white-space: nowrap; }
.chip-green { background: rgba(34,197,94,.16); color: #188a4a; }
.chip-gray { background: #e6e6e6; color: #888; }

/* —— 质量记录 关联维修登记（可选） —— */
.q-link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.q-link-row label { flex: 1; min-width: 150px; }
.q-link-row label small.sub { display: block; color: var(--muted,#888); font-size: 12px; font-weight: normal; }
.q-link-row input { width: 100%; }

.q-repair-row {
  margin: 8px 0 10px; padding: 6px 10px;
  background: var(--bg2,#f4f6fa); border-left: 3px solid var(--accent,#4a7dff);
  border-radius: 4px; font-size: 13.5px; line-height: 1.7;
}
a.q-repairlink { color: var(--accent,#4a7dff); font-weight: 600; text-decoration: underline; cursor: pointer; }
a.q-repairlink:hover { opacity: .8; }
.q-repair-sep { color: #999; }

/* 维修登记定位高亮 */
.rep-link-hl { outline: 3px solid var(--accent,#ffb020); outline-offset: -1px; animation: repHl 1.6s ease; }
@keyframes repHl { 0%{ background: #fff3d6; } 100%{ background: transparent; } }

/* —— 菜单权限弹窗 —— */
.mp-list { max-height: 320px; overflow:auto; border:1px solid var(--line,#e3e6ec); border-radius:6px; padding:6px 10px; background:#fff; }
.mp-row { display:flex; align-items:center; gap:8px; padding:6px 2px; cursor:pointer; border-bottom:1px dashed #eef0f4; }
.mp-row:last-child { border-bottom:none; }
.mp-row input[type=checkbox] { width:16px; height:16px; accent-color:var(--accent,#4a7dff); cursor:pointer; }
.mp-row span { font-size:14px; }

/* ==================== 维修检测报告生成器 ==================== */
.q-modal-verywide { width: min(920px, 97vw); }
.repgen-card { display: flex; flex-direction: column; max-height: 92vh; padding: 14px 16px; }
.repgen-card h3 { margin: 0 0 8px; }
.repgen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.repgen-fit { color: #888; font-size: 12px; }
.repgen-scroll { overflow-y: auto; flex: 1; padding: 4px 2px 8px; }
.repgen-fs { border: 1px solid #e3e6ee; border-radius: 8px; padding: 10px 12px 6px; margin: 10px 0; background: #fbfbfe; }
.repgen-fs legend { font-size: 13px; font-weight: 600; color: #34538a; padding: 0 6px; }
.repgen-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; margin-bottom: 2px; }
.repgen-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; margin-bottom: 2px; }
.repgen-card .login-card label, .repgen-card label { display: block; font-size: 12px; color: #444; margin: 0 0 4px; }
.repgen-card input, .repgen-card select, .repgen-card textarea,
.repgen-card input.readonly, .repgen-card .readonly {
  width: 100%; box-sizing: border-box; padding: 6px 8px; font-size: 13px;
  border: 1px solid #ccd4e0; border-radius: 6px; margin-bottom: 4px; background: #fff;
}
.repgen-card input.readonly, .repgen-card .readonly { background: #f2f4f8; color: #556; cursor: not-allowed; }
.repgen-card textarea { resize: vertical; font-family: inherit; }
.repgen-card input:focus, .repgen-card textarea:focus, .repgen-card select:focus { outline: none; border-color: #5677c4; }
.repgen-params { width: 100%; border-collapse: collapse; margin: 6px 0; }
.repgen-params th { background: #eef1f8; color: #34538a; font-size: 12px; font-weight: 600; padding: 5px 6px; text-align: center; border: 1px solid #dfe4ef; }
.repgen-params td { border: 1px solid #e4e8f1; padding: 3px 6px; vertical-align: middle; }
.repgen-params .rg-lab { font-size: 12px; color: #445; white-space: nowrap; }
.repgen-params .rg-val, .repgen-params .rg-range { width: 100%; box-sizing: border-box; padding: 4px 6px; border: 1px solid #ccd4e0; border-radius: 5px; font-size: 13px; }
.repgen-params .rg-range { background: #f2f4f8; color: #556; cursor: not-allowed; }
.repgen-params .rg-judge { width: 100%; padding: 4px; border: 1px solid #ccd4e0; border-radius: 5px; font-size: 13px; }
.repgen-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.repgen-photo { position: relative; width: 120px; height: 90px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; }
.repgen-photo img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; background: #f5f5f5; }
/* 旧版删除按钮样式已废弃（新版照片按钮由 .repgen-photo-ops 容器排版，见文件末尾） */
.rep-ops .btn { margin: 2px 2px; }

/* 合格范围模板工具条 + 管理弹窗 */
.repgen-tpl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px dashed #c9d3e6; border-radius: 8px; padding: 7px 10px; margin: 10px 0 2px; background: #f6f9ff; }
.repgen-tpl-t { font-size: 13px; font-weight: 700; color: #34538a; white-space: nowrap; }
.repgen-tpl select { padding: 4px 6px; border: 1px solid #ccd4e0; border-radius: 5px; font-size: 13px; min-width: 220px; }
.repgen-tpl .btn { white-space: nowrap; }
.repgen-mgr { width: min(780px, 95vw); max-height: 90vh; overflow: auto; text-align: left;
  background: #fff; border-radius: 10px; padding: 12px 14px; }
.repgen-mgr .repgen-params th { white-space: nowrap; }
.repgen-mgr-body { padding: 6px 0; }
.repgen-mgr-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; }
.repgen-mgr-title { font-size: 14px; font-weight: 700; color: #34538a; margin-bottom: 8px; }
.rg-tpl-cell { font-size: 12px; color: #445; max-width: 300px; }
.rg-tpl-ops { white-space: nowrap; }
.rg-tpl-f { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.rg-tpl-f > span { width: 90px; font-size: 12px; color: #455; flex: none; }
.rg-tpl-i { flex: 1; padding: 4px 7px; border: 1px solid #ccd4e0; border-radius: 5px; font-size: 13px; }
.rg-tpl-name { margin-bottom: 6px; }
.rg-tpl-name > span { width: 70px; }
.rg-tpl-grp { border: 1px solid #e3e6ee; border-radius: 8px; margin: 8px 0; overflow: hidden; }
.rg-tpl-grp-t { background: #eef1f8; color: #34538a; font-size: 12px; font-weight: 600; padding: 5px 10px; }
.rg-tpl-grp-b { padding: 8px 12px; background: #fbfbfe; }

/* ===== 台账流转状态(4色): 已入库红/已出报告黄/维修中蓝/完成待发绿 与旧锁定区分 ===== */
.rep-stage { display: inline-block; font-size: 12px; border-radius: 12px; padding: 2px 10px; white-space: nowrap; font-weight: 600; }
.rep-stage.red    { background: rgba(239,68,68,.15);   color: #b91c1c; }
.rep-stage.yellow { background: rgba(245,158,11,.18);  color: #b45309; }
.rep-stage.blue   { background: rgba(59,130,246,.15);  color: #1d4ed8; }
.rep-stage.green  { background: rgba(34,197,94,.16);   color: #188a4a; }
.rep-stage-sel { font-size: 12px; border-radius: 12px; border: 1px solid transparent; padding: 2px 6px; cursor: pointer; outline: none; font-weight: 600; }
.rep-stage-sel.red    { background: rgba(239,68,68,.15);  color: #b91c1c; border-color:#f0a0a0; }
.rep-stage-sel.yellow { background: rgba(245,158,11,.18); color: #b45309; border-color:#f0ce8a; }
.rep-stage-sel.blue   { background: rgba(59,130,246,.15); color: #1d4ed8; border-color:#9cc0f5; }
.rep-stage-sel.green  { background: rgba(34,197,94,.16);  color: #188a4a; border-color:#a5ddb8; }
.rep-stage-sel option { color:#333; background:#fff; }

/* 维修登记筛选栏 */
.rep-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; padding: 10px 12px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; }
.rep-filter input, .rep-filter select { height: 32px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; font-size: 13px; color: #333; }
.rep-filter-kw { flex: 1 1 260px; min-width: 200px; }
.rep-filter select { min-width: 110px; }
.rep-filter-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.rep-filter-date input { width: auto; }
.rep-filter .btn.ghost { height: 32px; padding: 0 12px; }

/* 成本项目库列表：限高滚动，避免超长卡片把「成本核算单」挤到看不见 */
/* 成本项目库列表：限高滚动，避免超长卡片把「成本核算单」挤到看不见 */
.ci-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
#costItemList { max-height: 360px; overflow-y: auto; padding-right: 4px; }
#costItemList::-webkit-scrollbar { width: 8px; }
#costItemList::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
#costItemList::-webkit-scrollbar-thumb:hover { background: var(--muted); }
/* ===== 成本核算 ===== */
.cost-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .cost-layout { grid-template-columns: 1fr; } }
.cost-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
/* 两个板块头：加分隔标题条，明确各自归属，避免明细表看着像在项目库里 */
.cost-items-col .gen-col-title,
.cost-sheet-col .gen-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  padding-bottom: 10px; margin: 0 0 12px;
  border-bottom: 2px solid var(--line);
}
.cost-items-col .gen-col-title::before,
.cost-sheet-col .gen-col-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--primary);
}
/* 核算单内的「成本明细」子标题：弱化，与其父级区分 */
.cost-sheet-col > .gen-col-title + div + .gen-col-title { border-bottom: 1px dashed var(--line) !important; font-size: 14px !important; padding-bottom: 8px !important; }
.cost-sheet-col > .gen-col-title + div + .gen-col-title::before { background: var(--muted) !important; }
.cost-items-col .form label { display: block; margin-bottom: 8px; }
.cost-sheet-col .form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.cost-sheet-col .form label { margin-bottom: 0; }
.cost-sheet-col .form input { width: 100%; }
.table-wrap { overflow-x: auto; margin-top: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 5px 6px; text-align: left; }
.data-table th { background: var(--card2); font-weight: 600; white-space: nowrap; }
.data-table td.num { text-align: right; font-weight: 600; white-space: nowrap; }
.data-table input, .data-table select {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 6px; width: 100%; box-sizing: border-box;
}
/* 成本明细行：一 行一项，列宽固定，整洁美观 */
#costItemsTable { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0 4px; }
#costItemsTable thead th { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 4px 8px; }
#costItemsTable tbody tr { background: var(--card); transition: box-shadow .15s, background .15s; }
#costItemsTable tbody tr:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
#costItemsTable tbody td { border: 1px solid var(--line); border-left: 0; border-right: 0; padding: 6px 8px; vertical-align: middle; }
#costItemsTable tbody td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; }
#costItemsTable tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
#costItemsTable .col-name { width: auto; }
#costItemsTable .col-cat { width: 96px; }
#costItemsTable .col-unit { width: 72px; }
#costItemsTable .col-usage { width: 88px; }
#costItemsTable .col-price { width: 100px; }
#costItemsTable .col-sub { width: 100px; }
#costItemsTable .col-ops { width: 76px; }
#costItemsTable td.col-name input { width: 100%; min-width: 120px; }
#costItemsTable td .num { text-align: right; white-space: nowrap; }
#costItemsTable .col-sub.num { font-size: 14px; font-weight: 700; color: var(--primary); }
.cost-add-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.cost-add-row input, .cost-add-row select {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 9px; font-size: 13px;
}
.cost-add-row #crow-name { flex: 1; min-width: 140px; }
.cost-preview {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: var(--bg2); border: 1px dashed var(--line);
  border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 13px;
}
.cost-preview b { color: var(--text); }
.cost-preview .hl b { color: var(--primary); }
.cost-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cost-bottom { margin-top: 16px; }
.cost-layout .card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cost-layout .card-title { font-weight: 600; }
/* 卡片主体：标题+副信息 与 操作按钮 横向排布，内容区自适应 */
.card-main { flex: 1 1 auto; min-width: 0; }
.card-title { font-weight: 600; font-size: 14px; line-height: 1.45; word-break: break-word; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; word-break: break-word; }
/* 成本项目库 / 我的核算单：卡片上下布局（信息在上、按钮在下）*/ 
.cost-items-col .card,
.cost-bottom .card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cost-items-col .card .card-actions,
.cost-bottom .card .card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* ===== 成本项目库：一行一项，整洁美观 ===== */
.cost-item-row {
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cost-item-row:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cost-item-row .card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cost-item-row .card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-item-row .card-sub { font-size: 12px; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-item-meta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cost-item-unit {
  display: inline-block; min-width: 40px; text-align: center;
  font-size: 12px; color: var(--muted); background: var(--card2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.cost-item-price { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; min-width: 76px; text-align: right; }
.cost-item-row .card-actions { flex: 0 0 auto; opacity: .55; transition: opacity .15s; }
.cost-item-row:hover .card-actions { opacity: 1; }
.cost-bottom .card.unread { border-left: 3px solid var(--primary); }
.cost-bottom .tag { display: inline-block; background: rgba(201,79,50,.14); color: var(--primary); border-radius: 20px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.share-users { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; margin: 12px 0; }
.share-user { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
/* 弹窗内的复选框：覆盖 .login-card input 通配样式，恢复原生小尺寸 */
.share-user input[type=checkbox],
.login-card input[type=checkbox],
.login-card input[type=radio] {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
  accent-color: var(--primary);
  cursor: pointer;
}
/* 推送弹窗底部按钮区 */
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.cost-items-col .history-section h3 { font-size: 14px; margin: 14px 0 8px; }
.cost-items-col .card { padding: 12px 14px; }
.cost-bottom .card { padding: 12px 14px; }
.cost-row-ops { display: flex; gap: 4px; white-space: nowrap; }
.cost-row-ops .btn.small { padding: 2px 7px; font-size: 12px; line-height: 1.4; }
.cost-notices-top { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0 16px; }
.cost-notices-top .gen-col-title { margin-top: 0; }
.cost-collapse-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.cost-collapse-head:hover { color: var(--primary); }
.cost-toggle { font-size: 12px; color: var(--muted); font-weight: 500; }
.cost-collapse-head:hover .cost-toggle { color: var(--primary); }
#costItemsLibBody.collapsed { display: none; }

/* ===== 消息通知铃铛 ===== */
.notif-wrap { position: relative; display: inline-block; }
.notif-bell {
  position: relative; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 9px; font-size: 16px; cursor: pointer; line-height: 1;
}
.notif-bell:hover { border-color: var(--primary); }
.notif-bell.ring { animation: notifShake 1.2s infinite; border-color: var(--primary); }
@keyframes notifShake {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(-14deg); }
  20%, 40%, 60% { transform: rotate(14deg); }
  70% { transform: rotate(0); }
}
.notif-dot {
  position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px;
  background: #e11d48; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}
.notif-panel {
  position: absolute; right: 0; top: 40px; width: min(360px, 90vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25); z-index: 80; overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.notif-read-all { font-size: 12px; padding: 2px 8px; }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif-item:hover { background: var(--card2); }
.notif-item.unread { background: rgba(201,79,50,.05); }
.notif-ic { font-size: 18px; line-height: 1.2; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; word-break: break-word; }
.notif-sum { font-size: 12px; color: var(--muted); margin: 2px 0; word-break: break-word; }
.notif-meta { font-size: 11px; color: var(--muted); }
.notif-newdot { width: 8px; height: 8px; background: #e11d48; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ===== 成本项编辑 ===== */
.cost-item-edit { background: var(--card2); }
.cost-item-form { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cost-item-form input, .cost-item-form select {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 7px; font-size: 13px; flex: 1; min-width: 80px;
}

/* ===== 维修报告照片（旋转/删除） ===== */
.repgen-photo { position: relative; display: inline-block; margin: 4px; }
.repgen-photo-ops { position: absolute; top: 4px; right: 4px; display: flex !important; gap: 12px !important; z-index: 3; }
.repgen-photo-ops .repgen-photo-rot,
.repgen-photo-ops .repgen-photo-del {
  position: static !important; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important;
  width: 24px !important; height: 24px !important; border-radius: 50%; border: 2px solid #fff !important; cursor: pointer;
  font-size: 14px; line-height: 1; color: #fff; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 0; margin: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.repgen-photo-ops .repgen-photo-rot { background: rgba(37,99,235,.95) !important; }
.repgen-photo-ops .repgen-photo-rot:hover { background: #2563eb !important; }
.repgen-photo-ops .repgen-photo-del { background: rgba(220,38,38,.95) !important; }
.repgen-photo-ops .repgen-photo-del:hover { background: #dc2626 !important; }
.repgen-photo-rot-badge {
  position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 10px; padding: 1px 5px; border-radius: 8px;
}

/* ============================================================
 * 张力测量计算器（FMS Calculator v3.5 复刻）
 * ============================================================ */
.tc-layout { display:grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr); gap:18px; align-items:start; }
@media (max-width: 1000px) { .tc-layout { grid-template-columns: 1fr; } }
.tc-col { min-width:0; }
.tc-fs { border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px 12px; margin:0 0 12px; background:#fff; }
.tc-fs legend { font-size:12px; font-weight:700; color:#475569; padding:0 6px; }
.tc-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; }
.tc-grid2 label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#64748b; }
.tc-grid2 input { padding:7px 9px; border:1px solid #cbd5e1; border-radius:7px; font-size:13px; width:100%; box-sizing:border-box; }
.tc-grid2 input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.tc-hint { font-size:11.5px; color:#94a3b8; margin:8px 0 0; }
.tc-actions { display:flex; gap:10px; margin-top:4px; }
.tc-canvas-wrap { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:6px; }
.tc-canvas-wrap svg { width:100%; height:auto; display:block; }
.tc-canvas-wrap img { width:100%; height:auto; display:block; border-radius:6px; }
.tc-readout { display:flex; gap:12px; margin-top:12px; }
.tc-ro { flex:1; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.tc-ro-lab { font-size:12px; font-weight:700; color:#475569; }
.tc-ro-val { font-size:22px; font-weight:800; color:#1d4ed8; margin-left:auto; }
.tc-ro-unit { font-size:12px; color:#94a3b8; }
.tc-table { margin-top:6px; }
.tc-note { font-size:12px; color:#64748b; background:#f1f5f9; border-radius:8px; padding:8px 10px; margin-top:10px; line-height:1.6; }

/* 张力计算器：最大张力输入模式单选 */
.tc-radio-row { display:flex; gap:18px; margin:2px 0 10px; }
.tc-radio { display:flex; align-items:center; gap:6px; font-size:13px; color:#334155; cursor:pointer; }
.tc-radio input[type="radio"] { margin:0; cursor:pointer; }
.tc-grid2[hidden] { display:none !important; }

/* 张力计算器：计算结果回显 */
.tc-calc-hint { margin-top:2px; }
.tc-result-hint { margin:4px 0 0; font-size:16px; font-weight:700; color:#2563eb; letter-spacing:.2px; }

/* 张力计算器：结果值加粗 + 醒目颜色 */
.tc-table td:last-child { font-weight: 700; color: #d92b2b; font-variant-numeric: tabular-nums; }
.tc-sensor-table td:last-child { font-weight: 700; color: #e8590c; }
.tc-ro-val { font-weight: 800; color: #d92b2b; font-size: 22px; font-variant-numeric: tabular-nums; }
.tc-ro-unit { color: #d92b2b; font-weight: 700; }
.tc-result-hint { color: #d92b2b !important; }

/* ---------- 应用案例 ---------- */
.cases-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(61,45,32,.12); }
.case-card .case-cover {
  width: 100%; aspect-ratio: 1 / 1; background: #f3f5f8;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.case-card .case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card .case-cover.empty { color: var(--muted); font-size: 13px; }
.case-card .case-body { padding: 10px 12px 12px; }
.case-card .case-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; line-height: 1.35; }
.case-card .case-sub { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.case-detail { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.case-detail h3 { margin: 0 0 4px; }
.case-detail .case-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.case-detail .case-summary { font-size: 14px; line-height: 1.6; margin: 10px 0; white-space: pre-wrap; }
.case-detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.case-thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; background: #f3f5f8; border: 1px solid var(--line); cursor: zoom-in;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb .thumb-del {
  position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: 13px; line-height: 1;
}
.case-file-list { list-style: none; padding: 0; margin: 10px 0; }
.case-file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 8px; font-size: 13px;
}
.case-file-list .fmeta { color: var(--muted); font-size: 12px; }
.case-file-list .fname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.case-file-list .fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.case-dialog { width: 640px; max-width: 94vw; max-height: 90vh; overflow-y: auto; }
.case-dialog .field { display: block; margin-bottom: 14px; }
.case-dialog .field-label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.case-dialog input[type="text"], .case-dialog textarea, .case-dialog input[type="file"] {
  width: 100%; box-sizing: border-box;
}
.case-dialog textarea {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; resize: vertical;
}
.case-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.case-preview .prev-item {
  position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #f3f5f8;
}
.case-preview .prev-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-preview .prev-item .prev-del {
  position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 5px; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 80;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* ================= 外发处理单 ================= */
.os-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.os-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.os-editor { flex: 1 1 380px; min-width: 320px; }
.os-form { display: flex; flex-direction: column; gap: 12px; }
.os-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.os-form input, .os-form textarea, .os-form select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 14px; font-family: inherit; width: 100%;
}
.os-form .row { display: flex; gap: 12px; }
.os-form .row label { flex: 1; }
.os-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.os-photo-item { position: relative; display: inline-block; }
.os-photo-preview img { max-width: 120px; max-height: 100px; border: 1px solid var(--line); border-radius: 6px; display: block; }
.os-photo-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; line-height: 18px; text-align: center; padding: 0; border: none; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; font-size: 14px; }
.os-photo-del:hover { background: #b91c1c; }

/* 外协单位：可输入 + 历史下拉 */
.os-vendor-box { position: relative; display: flex; gap: 8px; align-items: center; }
.os-vendor-box input { flex: 1; }
.os-vendor-toggle { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
.os-vendor-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 220px; overflow-y: auto; padding: 4px;
}
.os-vendor-menu .os-vendor-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text);
}
.os-vendor-menu .os-vendor-item:hover { background: var(--card2); }
.os-vendor-menu .os-vendor-item .os-vendor-del {
  color: var(--muted); font-size: 12px; padding: 0 4px; border: none; background: none; cursor: pointer;
}
.os-vendor-menu .os-vendor-item .os-vendor-del:hover { color: var(--red); }
.os-vendor-menu .os-vendor-empty { padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }

.os-preview-wrap { flex: 1 1 520px; min-width: 360px; overflow-x: auto; }
.os-sheet {
  background: #fff; color: #000; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: KaiTi, STKaiti, "楷体", "Microsoft YaHei", serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.os-head { text-align: center; margin-bottom: 12px; }
.os-logo { height: 52px; object-fit: contain; }
.os-company { font-size: 15px; font-weight: 700; margin-top: 4px; letter-spacing: 1px; }
.os-doc-title { font-size: 20px; font-weight: 700; letter-spacing: 6px; margin-top: 6px; }
/* 标题行：公司名 + 单据名同一行 */
.os-title-cell { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 1px; padding: 8px 9px !important; }
.os-title-cell span { margin-left: 2px; }
.os-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.os-table th, .os-table td {
  border: 1px solid #000; padding: 7px 9px; font-size: 13px;
  vertical-align: top; word-break: break-word;
}
.os-table th { background: #f2f2f2; text-align: center; font-weight: 700; }
/* 4 列网格：标签列窄、值列宽 */
.os-table col.os-c1 { width: 58px; }
.os-table col.os-c2 { width: 27%; }
.os-table col.os-c3 { width: 74px; }
.os-table col.os-c4 { width: auto; }
.os-pre { white-space: pre-wrap; min-height: 22px; }
/* 必填项标签：红色 */
.os-req-label { color: #dc2626; font-weight: 700; }
/* 文件编号行（表格末尾，固定） */
.os-fileno { text-align: right; font-size: 11px; color: #555; letter-spacing: 1px; }
.os-photo-box { display: flex; flex-wrap: wrap; gap: 6px; }
.os-photo-box img { width: 200px; height: 150px; object-fit: contain; display: block; background: #fff; border: 1px solid #000; }
/* 产品实物专用：参照维修报告照片区样式（4 格一行，框自适应照片，无白边） */
.os-real-box { display: flex; flex-wrap: nowrap; gap: 6px; align-items: flex-start; }
.os-real-box img { height: 86px; width: auto; flex: 0 0 auto; object-fit: contain; }

/* 仅隐藏其他 panel 的打印场景：body.os-printing 时只显示外发处理单 */
@media print {
  body.os-printing .panel { display: none !important; }
  body.os-printing #tab-outsource { display: block !important; }
}

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body { background: #fff !important; color: #000 !important; font-size: 12px; }
  .no-print, .sidebar, .topbar, header, .tabs, #toast, .mask, .login-card, footer { display: none !important; }
  .layout, .content, .panel { display: block !important; margin: 0 !important; padding: 0 !important; }
  .panel { border: none !important; box-shadow: none !important; background: transparent !important; }
  .os-layout { display: block !important; }
  .os-preview-wrap { overflow: visible !important; }
  html, body { width: 100% !important; max-width: 100% !important; overflow: visible !important; }
  .os-sheet {
    border: none !important; box-shadow: none !important; border-radius: 0 !important;
    padding: 0 !important; margin: 0 !important;
    width: 194mm !important; max-width: 194mm !important;
    page-break-inside: avoid; overflow: visible !important;
  }
  .os-preview-wrap { flex: none !important; min-width: 0 !important; overflow: visible !important; }
  .os-table {
    border-collapse: collapse !important;
    border: 1.5px solid #000 !important;
  }
  .os-table th, .os-table td {
    border: 1px solid #000 !important;
    padding: 6px 8px;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .os-table th { background: #fff !important; }
  /* 产品实物图：参照维修报告照片区（一排 4 张，框自适应照片=无白边，仅 .os-real-box） */
  .os-real-box {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
  }
  .os-real-box img {
    flex: 1 1 0;
    min-width: 0;
    height: 42mm;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #000;
  }
  /* 热处理曲线：独立样式，不与实物图联动 */
  .os-photo-box img { width: 60mm; height: 45mm; object-fit: contain; background: #fff; border: 1px solid #000; }
}

/* ==================== 模块七：库存管理样式 ==================== */
.inv-subtabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px; border-bottom:1px solid var(--line,#e5e7eb); }
.inv-subtabs .subtab { background:transparent; border:none; border-bottom:2px solid transparent; padding:8px 14px; cursor:pointer; font-size:14px; color:var(--muted,#6b7280); }
.inv-subtabs .subtab:hover { color:var(--fg,#111827); }
.inv-subtabs .subtab.active { color:var(--brand,#2563eb); border-bottom-color:var(--brand,#2563eb); font-weight:600; }
.subpanel { display:none; }
.subpanel.active { display:block; }

/* 库存台账：仓库→库位→批次 */
.stock-tree { display:flex; flex-direction:column; gap:12px; }
.tree-wh { border:1px solid var(--line,#e5e7eb); border-radius:10px; overflow:hidden; }
.tree-head { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:#f8fafc; font-weight:600; }
.tree-loc { padding:8px 14px; border-top:1px dashed var(--line,#e5e7eb); }
.tree-loc-name { font-size:13px; color:var(--muted,#6b7280); margin-bottom:6px; }
.tree-batches { display:flex; flex-direction:column; gap:4px; }
.tree-batch { display:flex; justify-content:space-between; align-items:center; padding:6px 10px; border-radius:6px; background:#fafbfc; font-size:13px; }
.tree-batch.warn { background:#fff7ed; border-left:3px solid #f59e0b; }
.tb-qty { display:flex; align-items:center; gap:8px; }
.tb-qty b { color:var(--brand,#2563eb); }

/* 表格 */
.mat-table, .log-table { width:100%; border-collapse:collapse; font-size:13px; }
.mat-table th, .mat-table td, .log-table th, .log-table td { padding:8px 10px; border-bottom:1px solid var(--line,#e5e7eb); text-align:left; }
.mat-table th, .log-table th { background:#f8fafc; font-weight:600; color:var(--muted,#6b7280); }
.mat-table tr:hover, .log-table tr:hover { background:#f9fafb; }
.ok { color:#16a34a; font-weight:600; }
.danger { color:#dc2626; font-weight:600; }

/* 预警 */
.alert-list { display:flex; flex-direction:column; gap:8px; }
.alert-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 14px; border:1px solid #fed7aa; background:#fff7ed; border-radius:8px; }
.al-main { display:flex; flex-direction:column; gap:2px; }
.al-name { font-weight:600; }

/* 导入 */
.import-box { border:1px dashed var(--line,#cbd5e1); border-radius:10px; padding:16px; background:#fafbfc; }
.import-result { margin-top:12px; white-space:pre-wrap; font-size:13px; font-family:ui-monospace,monospace; color:var(--fg,#111827); }

/* ==================== 订单管理：工单卡片（表格化排版） ==================== */
.wo-list { display:flex; flex-direction:column; gap:14px; }
.wo-card {
  border:1px solid var(--line,#e5e7eb);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.wo-card-head {
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; flex-wrap:wrap;
  padding:12px 16px;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9);
  border-bottom:1px solid var(--line,#e5e7eb);
}
.wo-head-main { display:flex; align-items:center; gap:10px; }
.wo-no { font-size:15px; font-weight:700; color:var(--fg,#111827); letter-spacing:.3px; }
.wo-status { padding:2px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.wo-status.st-draft { background:rgba(107,114,128,.14); color:#4b5563; }
.wo-status.st-issued { background:rgba(37,99,235,.12); color:#1d4ed8; }
.wo-status.st-shortage { background:rgba(220,38,38,.12); color:#b91c1c; }
.wo-status.st-done { background:rgba(22,163,74,.14); color:#15803d; }
.wo-status.st-cancelled { background:rgba(107,114,128,.1); color:#9ca3af; }
.wo-head-meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--fg,#111827); }
.wo-head-meta span { display:inline-flex; align-items:baseline; gap:6px; }
.wo-head-meta i { font-style:normal; color:var(--muted,#6b7280); font-size:12px; }
.wo-head-meta .wo-head-short { font-weight:700; }
.wo-head-short.ok { color:#15803d; }
.wo-head-short.danger { color:#b91c1c; }

.wo-table-wrap { overflow-x:auto; }
.wo-bom-view { width:100%; border-collapse:collapse; font-size:13px; }
.wo-bom-view th, .wo-bom-view td { padding:9px 16px; text-align:left; border-bottom:1px solid var(--line,#eef2f7); }
.wo-bom-view thead th {
  background:#fafbfc; font-weight:600; color:var(--muted,#6b7280);
  font-size:12px; letter-spacing:.3px; white-space:nowrap;
}
.wo-bom-view tbody tr:last-child td { border-bottom:none; }
.wo-bom-view tbody tr:hover { background:#f9fafb; }
.wo-bom-view .num { text-align:right; font-variant-numeric:tabular-nums; }
.wo-bom-view .wo-td-unit { color:var(--muted,#6b7280); }
.wo-bom-view .wo-td-code { font-weight:500; }
.wo-bom-view .wo-code { display:inline-block; min-width:52px; color:var(--muted,#6b7280); font-family:ui-monospace,monospace; font-size:12px; }
.wo-bom-view .wo-short { color:#dc2626; font-weight:700; }
.wo-bom-view .wo-empty { text-align:center; padding:14px; }
.wo-remark { padding:8px 16px; font-size:13px; color:var(--muted,#6b7280); border-top:1px dashed var(--line,#eef2f7); }
.wo-card-btns { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; border-top:1px solid var(--line,#eef2f7); background:#fcfdff; }

/* 采购明细文件表 */
.pf-table { width:100%; border-collapse:collapse; font-size:13px; }
.pf-table th, .pf-table td { padding:9px 12px; text-align:left; border-bottom:1px solid var(--line,#e5e7eb); }
.pf-table th { background:#f8fafc; font-weight:600; color:var(--muted,#6b7280); font-size:12px; white-space:nowrap; }
.pf-table tbody tr:hover { background:#f9fafb; }
.pf-table td:last-child { white-space:nowrap; }
