/* styles.css —— 云工厂-扫码计件生产管理系统 PC 管理端 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: #1f2329; background: #f0f2f5; font-size: 14px; line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ===== 登录 ===== */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 12px; padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.login-logo { font-size: 30px; font-weight: 700; color: #1677ff; text-align: center; }
.login-logo-long { font-size: 23px; line-height: 1.35; word-break: break-all; }
.login-logo-brand { font-size: 40px; font-weight: 800; color: #1677ff; text-align: center; letter-spacing: 3px; line-height: 1.1; }
.login-logo-full { font-size: 18px; font-weight: 600; color: #1677ff; text-align: center; margin-top: 8px; letter-spacing: 1px; }
.login-sub { text-align: center; color: #86909c; margin: 10px 0 28px; font-size: 13px; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; color: #4e5969; font-size: 13px; margin-bottom: 6px; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.field-label-row .field-label { margin-bottom: 0; }
.forgot-inline { background: none; border: none; padding: 0; color: #1677ff; font-size: 13px; cursor: pointer; line-height: 1; }
.forgot-inline:hover { text-decoration: underline; }
.field input {
  width: 100%; height: 42px; border: 1px solid #d9dce3; border-radius: 8px;
  padding: 0 12px; font-size: 14px; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: #1677ff; }
.login-err { color: #f53f3f; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.login-tip { text-align: center; color: #a9aeb8; font-size: 12px; margin-top: 18px; }
.login-shortcut { text-align: center; margin-top: 10px; }
.btn-link { background: none; border: none; color: #1677ff; font-size: 13px; cursor: pointer; padding: 6px 10px; }
.btn-link:hover { text-decoration: underline; }
.remember-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.remember-item { display: flex; align-items: center; gap: 6px; color: #4e5969; font-size: 13px; cursor: pointer; }
.remember-item input { width: 15px; height: 15px; margin: 0; accent-color: #1677ff; cursor: pointer; }
.remember-clear { background: none; border: none; padding: 2px 4px; color: #86909c; font-size: 13px; line-height: 1; }
.remember-clear:hover { color: #1677ff; text-decoration: underline; }

/* 忘记密码指引弹窗 */
.forgot-overlay {
  display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 200;
}
.forgot-overlay.show { display: flex; align-items: center; justify-content: center; }
.forgot-modal {
  width: 420px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 14px; padding: 30px 28px; position: relative;
}
.forgot-close {
  position: absolute; right: 16px; top: 10px; font-size: 24px;
  color: #999; cursor: pointer; line-height: 1;
}
.forgot-title { font-size: 19px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
.forgot-sec { margin-bottom: 18px; }
.forgot-sec-title { font-size: 14px; font-weight: 700; color: #1677ff; margin-bottom: 6px; }
.forgot-sec-body { font-size: 13px; color: #555; line-height: 1.7; }
.forgot-note {
  font-size: 12px; color: #999; line-height: 1.6;
  background: #f5f7fa; border-radius: 8px; padding: 10px 12px; margin-top: 6px;
}

/* ===== 按钮 ===== */
.btn-primary {
  background: #1677ff; color: #fff; border: none; border-radius: 8px;
  height: 40px; padding: 0 18px; font-size: 14px; transition: background .15s;
}
.btn-primary:hover { background: #4096ff; }
.btn-primary:disabled { background: #94bfff; cursor: not-allowed; }
.btn-block { width: 100%; height: 44px; }
.btn-ghost {
  background: #fff; color: #4e5969; border: 1px solid #d9dce3; border-radius: 8px;
  height: 36px; padding: 0 14px; font-size: 13px;
}
.btn-ghost:hover { border-color: #1677ff; color: #1677ff; }

/* ===== 主框架 ===== */
.app-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px; background: #001529; color: #c9d1d9; flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
}
.brand {
  height: 60px; line-height: 60px; text-align: center; color: #fff;
  font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-long {
  height: auto; min-height: 60px; line-height: 1.35; font-size: 15px;
  padding: 12px 14px; box-sizing: border-box; word-break: break-all;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.menu { padding: 10px 0; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
/* 深色侧边栏滚动条 */
.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.menu::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
.menu::-webkit-scrollbar-track { background: transparent; }
.menu-group { padding: 11px 24px 5px; font-size: 11px; color: #6b7a8d; letter-spacing: 1px; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.menu-group:hover { color: #9fb0c3; }
.menu-group .mg-arrow { font-size: 9px; transition: transform .18s; color: #6b7a8d; }
.menu-group.collapsed .mg-arrow { transform: rotate(-90deg); }
.menu-item {
  height: 42px; line-height: 42px; padding: 0 24px; cursor: pointer;
  display: flex; align-items: center; position: relative; font-size: 14px;
  transition: all .15s;
}
.menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.menu-item.active { background: #1677ff; color: #fff; }
/* 权限隐藏：无权限的菜单项/分组直接不显示，优先级高于分组折叠的内联 display */
.menu-item.menu-perm-hidden, .menu-group.menu-perm-hidden { display: none !important; }
.menu-ico { margin-right: 10px; font-size: 16px; }
/* 财务小类标题（缩进、弱于大类） */
.menu-subgroup {
  padding: 8px 24px 2px 36px;
  font-size: 12px;
  color: #9fb0c3;
  letter-spacing: .5px;
  cursor: default;
  user-select: none;
}
.menu-subgroup.menu-perm-hidden, .menu-subdivider.menu-perm-hidden { display: none !important; }
.menu-subdivider {
  height: 1px;
  margin: 6px 24px;
  background: rgba(255,255,255,0.12);
}
.menu-badge {
  position: absolute; right: 18px; background: #f53f3f; color: #fff;
  border-radius: 10px; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; font-size: 11px; padding: 0 5px;
}

.main { flex: 1; margin-left: 210px; padding-top: 60px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: fixed; left: 210px; right: 0; top: 0; z-index: 960;
}
.topbar-title { font-size: 17px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 600; }
.factory-name { color: #86909c; font-size: 13px; }
.content { padding: 22px 24px; flex: 1; }

/* ===== 底部 ICP 备案号悬挂 ===== */
.site-footer {
  text-align: center; padding: 18px 16px 22px; font-size: 13px;
  color: #86909c; background: #f0f2f5;
}
.site-footer a { color: #86909c; text-decoration: none; }
.site-footer a:hover { color: #1677ff; text-decoration: underline; }
/* 登录页蓝底，备案号用浅色文字贴底居中 */
.site-footer-login {
  position: absolute; left: 0; right: 0; bottom: 16px; padding: 0;
  background: transparent;
}
.site-footer-login a { color: rgba(255,255,255,0.88); }
.site-footer-login a:hover { color: #fff; }

/* ===== 看板 ===== */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px;
}
.kpi-card {
  background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.kpi-label { color: #86909c; font-size: 13px; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 700; color: #1f2329; }
.kpi-value.blue { color: #1677ff; }
.kpi-value.orange { color: #ff7d00; }
.kpi-value.green { color: #00b42a; }
.kpi-value.red { color: #f53f3f; }
.kpi-sub { color: #a9aeb8; font-size: 12px; margin-top: 4px; }

.panel { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-block { border: 1px solid #f0f0f0; border-radius: 8px; padding: 16px; text-align: center; }
.value-block .vb-label { color: #86909c; font-size: 13px; }
.value-block .vb-qty { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.value-block .vb-money { color: #1677ff; font-size: 15px; font-weight: 600; }

/* ===== 工具栏 / tabs / 搜索 ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tab { padding: 6px 16px; border-radius: 6px; cursor: pointer; color: #4e5969; font-size: 13px; }
.tab:hover { color: #1677ff; }
.tab.active { background: #1677ff; color: #fff; }
.search-box { display: flex; gap: 8px; }
.search-box input {
  width: 260px; height: 38px; border: 1px solid #d9dce3; border-radius: 8px;
  padding: 0 12px; outline: none;
}
.search-box input:focus { border-color: #1677ff; }

/* ===== 表格 ===== */
.table-wrap { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; font-size: 13px; }
.data-table th { background: #fafbfc; color: #4e5969; font-weight: 600; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.data-table td { border-bottom: 1px solid #f5f5f5; }
.data-table tbody tr:hover { background: #f7faff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.st-pending { background: #fff7e8; color: #ff7d00; }
.st-cutCreated { background: #e8f3ff; color: #1677ff; }
.st-payrollLocked { background: #e8ffea; color: #00b42a; }
.st-returned { background: #fff2e8; color: #d4380d; }
.st-subpending { background: #fff7e6; color: #d46b08; }
.st-cancelled { background: #f2f3f5; color: #86909c; }
.st-other { background: #f2f3f5; color: #86909c; }
.link-btn { color: #1677ff; background: none; border: none; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.empty-row { text-align: center; color: #a9aeb8; padding: 40px 0 !important; }

/* ===== 分页 ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.page-info { color: #4e5969; font-size: 13px; }

/* ===== 消息 ===== */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
  background: #fff; border-radius: 10px; padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; gap: 12px;
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;
}
.msg-item:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.msg-item.unread { border-left: 3px solid #1677ff; }
.msg-dot { width: 8px; flex-shrink: 0; margin-top: 7px; }
.msg-dot.unread { background: #1677ff; border-radius: 50%; height: 8px; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.msg-title { font-weight: 600; font-size: 14px; }
.msg-cat { background: #f2f3f5; color: #86909c; border-radius: 4px; padding: 1px 7px; font-size: 11px; }
.msg-content { color: #4e5969; font-size: 13px; }
.msg-time { color: #a9aeb8; font-size: 12px; white-space: nowrap; }
.msg-empty { text-align: center; color: #a9aeb8; padding: 50px 0; background: #fff; border-radius: 10px; }

/* 消息明细（点击展开） */
.msg-detail { margin-top: 12px; background: #fafafa; border-radius: 8px; padding: 12px 16px; }
.md-src { display: flex; align-items: flex-start; background: #fffbe6; border-radius: 6px;
  padding: 8px 12px; margin-bottom: 12px; }
.md-src-label { font-size: 12px; color: #ad6800; margin-right: 10px; flex-shrink: 0; }
.md-src-value { flex: 1; font-size: 12px; color: #874d00; word-break: break-all; }
.md-cmp-head, .md-cmp-row { display: flex; align-items: flex-start; }
.md-cmp-head { font-size: 12px; color: #999; padding: 6px 0; border-bottom: 1px solid #e8e8e8; }
.md-cmp-row { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.md-field { width: 90px; color: #888; flex-shrink: 0; }
.md-col { flex: 1; min-width: 0; word-break: break-all; }
.md-detail-row { display: flex; padding: 6px 0; font-size: 13px; }
.md-detail-label { width: 90px; color: #888; flex-shrink: 0; }
.md-detail-value { flex: 1; color: #333; word-break: break-all; }
.md-operator { margin-top: 8px; font-size: 12px; color: #999; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; left: 210px; top: 60px; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 950;
}
.modal { width: 720px; max-width: calc(100vw - 234px); max-height: 82vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { width: 100%; flex-shrink: 0; box-sizing: border-box; }
.modal-body { width: 100%; flex-shrink: 0; box-sizing: border-box; }
.modal-head {
  height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f0f0f0; font-weight: 600; font-size: 16px;
}
.modal-close { font-size: 24px; color: #86909c; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #1f2329; }
.modal-body { padding: 20px; overflow-y: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 20px; }
.detail-item { display: flex; font-size: 13px; }
.detail-item .di-label { color: #86909c; width: 70px; flex-shrink: 0; }
.detail-item .di-value { color: #1f2329; word-break: break-all; }
.detail-section-title { font-weight: 600; margin: 14px 0 10px; font-size: 14px; }

/* ===== 表单 ===== */
.form-row { display: flex; align-items: center; margin-bottom: 14px; }
.form-label { width: 78px; flex-shrink: 0; color: #4e5969; font-size: 13px; }
.form-control { flex: 1; min-width: 0; }
.form-control input, .form-select {
  width: 100%; height: 38px; border: 1px solid #d9dce3; border-radius: 8px;
  padding: 0 12px; font-size: 13px; outline: none; background: #fff;
}
.form-select { padding: 0 8px; }
.form-control input:focus, .form-select:focus { border-color: #1677ff; }
.form-section-title { font-weight: 600; font-size: 14px; margin: 18px 0 10px; }
.form-hint { color: #a9aeb8; font-size: 12px; background: #f7f8fa; border-radius: 8px; padding: 12px; }
.dept-picker { display: flex; flex-direction: column; gap: 10px; border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px; }
.dept-block { border: 1px solid #f0f0f0; border-radius: 8px; padding: 10px 12px; }
.dept-label { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pos-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; padding-left: 22px; }
.pos-label { font-size: 13px; color: #4e5969; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.row-ops { white-space: nowrap; }
.link-btn.danger { color: #f53f3f; }
.link-btn.danger:hover { text-decoration: underline; }

/* ===== 部门管理 ===== */
.tip-inline { color: #86909c; font-size: 13px; flex: 1; min-width: 200px; }
.dept-perm-cell { max-width: 360px; color: #4e5969; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.perm-picker { border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.perm-group-block {}
.perm-group-name { font-size: 12px; color: #86909c; margin-bottom: 6px; font-weight: 600; }
.perm-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.perm-check-label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #4e5969; cursor: pointer; }
.dept-pos-head { display: flex; align-items: center; justify-content: space-between; }
.dept-pos-list { display: flex; flex-direction: column; gap: 12px; }
.dept-pos-card { border: 1px solid #f0f0f0; border-radius: 8px; padding: 12px 14px; }
.dept-pos-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.form-inline-input {
  height: 34px; border: 1px solid #d9dce3; border-radius: 8px; padding: 0 10px;
  font-size: 13px; outline: none; max-width: 220px;
}
.form-inline-input:focus { border-color: #1677ff; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  background: rgba(30,35,42,0.9); color: #fff; padding: 10px 22px;
  border-radius: 8px; font-size: 14px; z-index: 1000;
}

/* 宽屏响应 */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 通用表单网格 */
.form-grid { display: grid; grid-template-columns: 90px 1fr; gap: 14px 16px; align-items: center; }
.form-grid label { color: #555; font-size: 13px; }
.form-grid input, .form-grid select {
  width: 100%; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 13px; box-sizing: border-box;
}
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: #2f7bff; }

/* 行内操作链接 */
.row-link { color: #2f7bff; cursor: pointer; font-size: 13px; margin-right: 14px; }
.row-link.danger { color: #ff4d4f; }
.row-link:hover { text-decoration: underline; }
.muted { color: #999; font-size: 12px; }
.cell-ellipsis { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 回货记录返工标签 */
.back-rw-flags { display: flex; flex-direction: column; gap: 4px; white-space: normal; min-width: 150px; }
.back-rw-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.back-rw-tag { font-size: 11px; padding: 1px 7px; border-radius: 4px; line-height: 1.6; white-space: nowrap; }
.back-rw-tag.doing { background: #fff7e6; color: #d48806; border: 1px solid #ffe7ba; }
.back-rw-tag.done { background: #f0fbf3; color: #2f9e44; border: 1px solid #c3ebcf; }
.back-rw-tag.deduct { background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7; }
.back-rw-text { font-size: 12px; color: #6b7280; }

/* 勾选列表 */
.pick-actions { display: flex; align-items: center; gap: 18px; margin: 16px 0 10px; }
.check-list { max-height: 320px; overflow-y: auto; border: 1px solid #eee; border-radius: 6px; padding: 10px 12px; }
.check-line { display: block; padding: 6px 0; font-size: 13px; color: #333; cursor: pointer; }
.check-line input { margin-right: 8px; }

/* 确认弹窗 */
.confirm-text { font-size: 14px; color: #333; line-height: 1.7; padding: 4px 2px; margin: 0; word-break: break-word; overflow-wrap: anywhere; white-space: normal; }
.btn-danger {
  background: #ff4d4f; color: #fff; border: none; border-radius: 6px;
  padding: 8px 18px; font-size: 13px; cursor: pointer;
}
.btn-danger:hover { background: #f5222d; }
.btn-danger:disabled, .btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ===== 列表页优化：搜索组 / 空状态 / 结果条 ===== */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-group { display: flex; align-items: stretch; max-width: 460px; flex: 1 1 320px; }
.search-group input {
  flex: 1; min-width: 0; border: 1px solid #d9dce3; border-right: none;
  border-radius: 8px 0 0 8px; padding: 9px 14px; font-size: 13px; outline: none;
  background: #fff; color: #1f2329;
}
.search-group input:focus { border-color: #1677ff; }
.search-group input:focus + .search-group-btn { border-color: #1677ff; }
.search-group-btn {
  border: 1px solid #1677ff; background: #1677ff; color: #fff;
  border-radius: 0 8px 8px 0; padding: 0 22px; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.search-group-btn:hover { background: #0e6ae0; }

.result-bar {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #646a73;
  margin-bottom: 12px;
}
.result-bar b { color: #1f2329; font-weight: 600; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px; text-align: center; background: #fff;
  border: 1px solid #eef0f3; border-radius: 12px;
}
.empty-state .es-icon {
  width: 72px; height: 72px; border-radius: 50%; background: #f2f6ff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.empty-state .es-icon svg { width: 36px; height: 36px; }
.empty-state .es-title { font-size: 15px; font-weight: 600; color: #1f2329; margin-bottom: 6px; }
.empty-state .es-desc { font-size: 13px; color: #8a9099; max-width: 380px; line-height: 1.7; }

.more-wrap { display: flex; justify-content: center; margin-top: 16px; }

/* 订单流转看板 */
.flow-legend-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 14px; }
.flow-legend { display: inline-flex; align-items: center; font-size: 12px; color: #555; }
.flow-legend i { width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; display: inline-block; }
.flow-list { max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.flow-card { border: 1px solid #eef0f3; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fafbfc; }
.flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flow-no { font-weight: 700; color: #1f2733; }
.flow-style { color: #6b7280; font-size: 13px; flex: 1; }
.flow-status { font-size: 12px; color: #2563eb; background: #eff6ff; border-radius: 10px; padding: 2px 10px; }
.flow-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #f0f1f3; }
.flow-seg { height: 100%; }
.flow-meta { font-size: 12px; color: #8a9099; margin-top: 7px; }

/* 订单工序编辑 */
.proc-edit-head, .proc-edit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.proc-edit-head span { flex: 1; font-size: 12px; color: #8a9099; }
.proc-edit-head span:last-child { flex: 0 0 30px; }
.proc-edit-row input, .proc-edit-row select { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #dfe3e8; border-radius: 7px; }
.proc-edit-row .pe-del { flex: 0 0 30px; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bed-del-link { float: right; font-size: 12px; font-weight: 400; }

/* ===== 卡片网格（对齐小程序卡片式） ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.order-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.order-card-v:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.oc-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #f2f4f7; }
.oc-style { font-size: 16px; font-weight: 700; color: #1f2733; }
.oc-status { font-size: 12px; border-radius: 11px; padding: 3px 11px; }
.oc-status.pending { color: #d97706; background: #fffbeb; }
.oc-status.cutCreated { color: #2563eb; background: #eff6ff; }
.oc-status.payrollLocked { color: #059669; background: #ecfdf5; }
.oc-status.returned { color: #d4380d; background: #fff2e8; }
.oc-status.subpending { color: #d46b08; background: #fff7e6; }
.oc-status.cancelled { color: #86909c; background: #f2f3f5; }
.oc-head-tags { display: flex; align-items: center; gap: 7px; }
.confirm-flag { font-size: 12px; color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 11px; padding: 2px 9px; }
/* 代工单标记 */
.sub-flag { font-size: 12px; color: #d46b08; background: #fff7e6; border: 1px solid #ffd591;
  border-radius: 11px; padding: 2px 9px; }
.oc-sub-badge { margin: 10px 16px 0; padding: 7px 12px; background: #fff7e6;
  border: 1px solid #ffd591; border-radius: 8px; font-size: 12px; color: #d46b08; }
.order-card-v.is-sub .oc-sub-badge { margin-bottom: 0 }
.order-card-v.is-sub .oc-body { padding-top: 12px }
.oc-body { display: flex; gap: 14px; padding: 14px 16px; flex: 1; }
.oc-cover, .oc-cover-ph { width: 78px; height: 78px; border-radius: 10px; flex: 0 0 78px; object-fit: cover; background: #f4f6f8; }
.oc-cover-ph { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #9aa1ab; }
.oc-info { flex: 1; min-width: 0; }
.oci-row { display: flex; font-size: 13px; line-height: 1.9; }
.oci-label { width: 64px; color: #9aa1ab; flex: 0 0 64px; }
.oci-value { color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid #f2f4f7; background: #fafbfc; flex-wrap: wrap; }
.cut-badge { font-size: 12px; color: #9aa1ab; background: #eef0f3; border-radius: 10px; padding: 3px 10px; }
.cut-badge.cut { color: #2563eb; background: #eff6ff; }
.cut-badge.confirmed { color: #059669; background: #ecfdf5; }
.oc-ops { display: flex; gap: 12px; flex-wrap: wrap; }
.oc-link { font-size: 13px; color: #2563eb; cursor: pointer; }
.oc-link.danger { color: #ef4444; }

/* ===== 裁床卡片 ===== */
.cut-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .15s; display: flex; flex-direction: column; }
.cut-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.oc-cutno { font-size: 15px; font-weight: 700; color: #1f2733; }
.oc-status.sub, .oc-status.edit { color: #2563eb; background: #eff6ff; }
.oc-status.submitted { color: #059669; background: #ecfdf5; }
.bed-block-v { padding: 4px 16px 10px; }
.bed-line-v { display: flex; align-items: center; gap: 10px; background: #f7f9fb; border-radius: 9px; padding: 8px 12px; margin-bottom: 7px; }
.bed-chip { font-size: 12px; font-weight: 700; color: #2563eb; background: #e0ecff; border-radius: 7px; padding: 3px 10px; flex: 0 0 auto; }
.bed-line-meta { display: flex; flex-direction: column; min-width: 0; }
.bed-line-staff { font-size: 13px; color: #374151; font-weight: 600; }
.bed-line-sub { font-size: 12px; color: #9aa1ab; }

/* ===== 外发分组卡片 ===== */
.os-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 18px; }
.os-sum-item { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 16px; text-align: center; }
.os-sum-num { font-size: 26px; font-weight: 700; color: #1f2733; }
.os-sum-num.warn { color: #d97706; }
.os-sum-num.fee { color: #2563eb; }
.os-sum-label { font-size: 13px; color: #9aa1ab; margin-top: 4px; }
.os-group-v { margin-bottom: 18px; }
.os-group-head { display: flex; align-items: baseline; gap: 12px; padding: 0 2px 10px; border-bottom: 2px solid #e8edf3; margin-bottom: 12px; }
.os-group-title { font-size: 16px; font-weight: 700; color: #1f2733; }
.os-group-sub { font-size: 12px; color: #9aa1ab; }
.os-group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.os-card-v { border: 1px solid #eceff3; border-radius: 11px; background: #fff; padding: 13px 15px; transition: box-shadow .15s; }
.os-card-v:hover { box-shadow: 0 6px 20px rgba(15,23,42,.07); }
.os-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.och-left { display: flex; flex-direction: column; min-width: 0; }
.os-no { font-size: 14px; font-weight: 700; color: #1f2733; }
.os-factory { font-size: 12px; color: #9aa1ab; }
.os-pill { font-size: 12px; border-radius: 10px; padding: 3px 10px; flex: 0 0 auto; }
.os-pill.sent { color: #2563eb; background: #eff6ff; }
.os-pill.partial, .os-pill.expired { color: #d97706; background: #fffbeb; }
.os-pill.received { color: #059669; background: #ecfdf5; }
.os-pill.cancelled, .os-pill.rejected { color: #ef4444; background: #fef2f2; }
.os-card-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.os-card-ops { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 9px; }

/* ===== 员工卡片 ===== */
.staff-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.staff-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.staff-head-v { display: flex; align-items: center; justify-content: space-between; }
.staff-id-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-avatar-v { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.staff-avatar-ph { display: flex; align-items: center; justify-content: center; background: #e7f0ff; color: #2563eb; font-size: 18px; font-weight: 700; }
.staff-name-v { font-size: 15px; font-weight: 700; color: #1f2733; }
.staff-audit { font-size: 12px; border-radius: 10px; padding: 3px 10px; }
.staff-audit.pass { color: #059669; background: #ecfdf5; }
.staff-audit.pending { color: #d97706; background: #fffbeb; }
.staff-info-v { display: flex; flex-direction: column; gap: 2px; }
.osci-row { display: flex; font-size: 13px; line-height: 1.8; }
.osci-label { width: 56px; color: #9aa1ab; flex: 0 0 56px; }
.osci-val { color: #374151; }
.staff-ops-v { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* ===== 返工卡片 ===== */
.rework-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.rework-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.rw-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rw-no { font-size: 14px; font-weight: 700; color: #1f2733; }
.rw-src { font-size: 11px; border-radius: 8px; padding: 2px 8px; }
.rw-src.in { color: #2563eb; background: #eff6ff; }
.rw-src.os { color: #7c3aed; background: #f5f3ff; }
.rw-status { font-size: 12px; color: #6b7280; }
.rw-overdue { font-size: 11px; color: #ef4444; background: #fef2f2; border-radius: 8px; padding: 2px 8px; }
.rw-info { display: flex; flex-direction: column; }
.rw-red { color: #ef4444; font-weight: 600; }
.rw-ops { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* ===== 原料卡片 ===== */
.mat-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 11px; transition: box-shadow .15s; }
.mat-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.mat-head-v { display: flex; align-items: flex-start; justify-content: space-between; }
.mat-id-v { min-width: 0; }
.mat-name { font-size: 15px; font-weight: 700; color: #1f2733; }
.mat-code { font-size: 12px; color: #9aa1ab; margin-top: 2px; }
.mat-stock-v { text-align: right; flex: 0 0 auto; }
.mat-avail { font-size: 24px; font-weight: 700; color: #1f2733; line-height: 1.1; }
.mat-avail.warn { color: #ef4444; }
.mat-avail-label { font-size: 11px; color: #9aa1ab; }
.mat-meta-v { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: #6b7280; }
.mat-warn { color: #ef4444; font-weight: 600; }
.mat-ops-v { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* ===== 成品卡片 ===== */
.fin-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.fin-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.fin-head { display: flex; align-items: center; justify-content: space-between; }
.fin-style { font-size: 15px; font-weight: 700; color: #1f2733; }
.fin-qty { font-size: 18px; font-weight: 700; color: #2563eb; }
.fin-ops { display: flex; gap: 18px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* 成品库色码矩阵 */
.fin-card-list { display: flex; flex-direction: column; gap: 16px; }
.fin-card-matrix { gap: 12px; }
.fin-card-matrix .fin-qty { font-size: 14px; font-weight: 600; color: #475569; }
.fin-warn { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.fin-matrix-wrap { overflow-x: auto; }
.fin-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.fin-matrix th, .fin-matrix td { border: 1px solid #e5e9f0; text-align: center; padding: 6px 8px; }
.fin-matrix th { background: #f8fafc; color: #334155; font-weight: 600; }
.fin-corner { background: #f1f5f9; }
.fin-color-cell { background: #fafbfc; font-weight: 600; color: #1f2733; white-space: nowrap; }
.fin-cell { min-width: 72px; }
.fin-cell.empty-cell { color: #cbd5e1; }
.fin-cell-main { font-size: 16px; font-weight: 700; color: #1d4ed8; }
.fin-cell-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.fin-cell-act { font-size: 11px; color: #64748b; margin-top: 3px; cursor: pointer; text-decoration: underline; }
.fin-cell.low { background: #fff7ed; }
.fin-cell.low .fin-cell-main { color: #ea580c; }
.fin-item-cell { max-width: 280px; text-align: left; font-size: 12px; color: #475569; }
.fin-row-ops { white-space: nowrap; }
.fin-row-ops .row-link { margin-right: 8px; }
.fin-status { padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.fin-status.ok { background: #dcfce7; color: #15803d; }
.fin-status.warn { background: #fef3c7; color: #b45309; }
.fin-status.muted { background: #f1f5f9; color: #64748b; }
.fin-row-ops .row-link.danger { color: #dc2626; }

/* ===== 厂商卡片 ===== */
.fac-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.fac-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.fac-head { display: flex; align-items: center; justify-content: space-between; }
.fac-name { font-size: 15px; font-weight: 700; color: #1f2733; }
.fac-bind { font-size: 11px; border-radius: 9px; padding: 3px 9px; }
.fac-bind.bound { color: #059669; background: #ecfdf5; }
.fac-bind.unbind { color: #9aa1ab; background: #f2f4f7; }
.fac-rows { display: flex; flex-direction: column; }
.fac-code-row { display: flex; align-items: center; gap: 10px; background: #f7f9fb; border-radius: 9px; padding: 9px 12px; }
.fac-code-label { font-size: 12px; color: #9aa1ab; }
.fac-code-val { font-size: 14px; font-weight: 700; color: #2563eb; }
.fac-down-row { display: flex; align-items: center; gap: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 9px; padding: 9px 12px; }
.fac-down-label { font-size: 12px; color: #15803d; }
.fac-down-name { font-size: 14px; font-weight: 700; color: #166534; }
.fac-ops { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* ===== 部门卡片 ===== */
.dept-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.dept-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.dept-head { display: flex; align-items: center; justify-content: space-between; }
.dept-name { font-size: 15px; font-weight: 700; color: #1f2733; }
.dept-pos-count { font-size: 12px; color: #9aa1ab; background: #f2f4f7; border-radius: 9px; padding: 3px 9px; }
.dept-desc { font-size: 13px; color: #6b7280; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-chip { font-size: 11px; color: #2563eb; background: #eff6ff; border-radius: 8px; padding: 3px 9px; }
.dept-ops { display: flex; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }

/* ===== 工序库/款式模板卡片 ===== */
.proc-card-v, .tpl-card-v { border: 1px solid #eceff3; border-radius: 12px; background: #fff; padding: 15px; display: flex; flex-direction: column; gap: 11px; transition: box-shadow .15s; }
.proc-card-v:hover, .tpl-card-v:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.pcv-head, .tcv-head { display: flex; align-items: center; justify-content: space-between; }
.pcv-name, .tcv-name { font-size: 15px; font-weight: 700; color: #1f2733; }
.pcv-dept { font-size: 11px; color: #2563eb; background: #eff6ff; border-radius: 9px; padding: 3px 9px; }
.pcv-wages { display: flex; gap: 10px; }
.pc-wage { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #f7f9fb; border-radius: 9px; padding: 9px 0; }
.pw-label { font-size: 11px; color: #9aa1ab; }
.pw-val { font-size: 14px; font-weight: 700; color: #1f2733; }
.pcv-ops, .tcv-ops { display: flex; gap: 12px; border-top: 1px solid #f2f4f7; padding-top: 10px; }
.tcv-count { font-size: 12px; color: #9aa1ab; background: #f2f4f7; border-radius: 9px; padding: 3px 9px; }
.tcv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proc-chip-v { font-size: 11px; color: #475569; background: #f2f4f7; border-radius: 8px; padding: 3px 9px; }

/* ===== 数据看板（对齐小程序 board） ===== */
.board-panel { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.board-panel-title { font-size: 14px; font-weight: 700; color: #1f2733; margin-bottom: 14px; }
.board-output { display: flex; gap: 12px; }
.bo-cell { flex: 1; text-align: center; background: #f7f9fb; border-radius: 10px; padding: 16px 8px; }
.bo-cell-link { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.bo-cell-link:hover { box-shadow: 0 4px 14px rgba(24,110,204,0.16); transform: translateY(-2px); }
.bo-num { font-size: 26px; font-weight: 700; color: #1f2733; }
.bo-unit { font-size: 13px; font-weight: 400; color: #9aa1ab; margin-left: 3px; }
.bo-label { font-size: 12px; color: #6b7280; margin-top: 6px; }

.board-report-entry { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 15px 16px; margin-bottom: 14px; cursor: pointer; transition: box-shadow .15s; }
.board-report-entry:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.bre-title { font-size: 14px; font-weight: 700; color: #1f2733; }
.bre-sub { font-size: 12px; color: #9aa1ab; margin-top: 4px; }
.bre-arrow { font-size: 20px; color: #c2c8d0; }

.board-metric { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.bm-cell { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 16px; text-align: center; }
.bm-num { font-size: 24px; font-weight: 700; }
.bm-num.green { color: #059669; }
.bm-num.blue { color: #2563eb; }
.bm-label { font-size: 12px; color: #6b7280; margin-top: 6px; }

.board-filter { display: flex; gap: 8px; margin-bottom: 14px; }
.board-flow-list { display: flex; flex-direction: column; gap: 12px; }

/* 订单流转卡片 */
.flow-card-v { display: flex; gap: 14px; background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 14px; }
.bf-cover { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.bf-cover-ph { display: flex; align-items: center; justify-content: center; background: #f2f4f7; color: #9aa1ab; font-size: 12px; }
.fc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.fc-head { display: flex; align-items: center; justify-content: space-between; }
.fc-style { font-size: 15px; font-weight: 700; color: #1f2733; }
.fc-status { font-size: 12px; color: #2563eb; background: #eff6ff; border-radius: 9px; padding: 3px 10px; }
.fc-head-tags { display: flex; align-items: center; gap: 7px; }
.fc-sub-flag { font-size: 12px; color: #d46b08; background: #fff7e6; border: 1px solid #ffd591;
  border-radius: 9px; padding: 2px 9px; }
.bf-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #f2f4f7; }
.bf-seg { height: 100%; }
.bf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-tag { font-size: 11px; border-radius: 8px; padding: 3px 9px; }
.bf-tag.done { color: #059669; background: #ecfdf5; }
.bf-tag.doing { color: #b45309; background: #fffbeb; }
.bf-tag.out { color: #2563eb; background: #eff6ff; }
.bf-tag.rework { color: #c2410c; background: #fff7ed; }
.bf-tag.pending { color: #6b7280; background: #f2f4f7; }
.bf-tag.scrap { color: #dc2626; background: #fef2f2; }
.fc-summary { font-size: 12px; color: #6b7280; }

/* ===== 订单仪表盘 ===== */
.od-overlay { position: fixed; left: 210px; top: 60px; right: 0; bottom: 0; background: rgba(15,23,42,.45); z-index: 940; display: flex; align-items: center; justify-content: center; }
.od-box { width: 1080px; max-width: calc(100vw - 234px); height: 88vh; background: #f5f7fa; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.od-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: #fff; border-bottom: 1px solid #eceff3; }
.od-top-info { display: flex; align-items: baseline; gap: 12px; }
.odt-style { font-size: 16px; font-weight: 700; color: #1f2733; }
.odt-no { font-size: 13px; color: #9aa1ab; }
.od-close-x { font-size: 24px; color: #9aa1ab; cursor: pointer; line-height: 1; }
.od-back-arrow { font-size: 28px; color: #1677ff; cursor: pointer; line-height: 1; width: 30px; }
.od-tabs { display: flex; gap: 4px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #eceff3; overflow-x: auto; }
.od-tab { padding: 7px 16px; font-size: 13px; color: #6b7280; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.od-tab.on { background: #2563eb; color: #fff; }
.od-content { flex: 1; overflow-y: auto; padding: 18px; }
.od-card { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.od-card-title { font-size: 14px; font-weight: 700; color: #1f2733; margin-bottom: 12px; }
.od-os-default { font-size: 13px; color: #666; background: #f7f9fc; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.od-os-default b { color: #1677ff; }
.od-empty { font-size: 13px; color: #9aa1ab; padding: 14px 0; text-align: center; }

/* 外发厂商单价表（订单详情，对齐小程序 orderDetail 简洁样式） */
.od-price-list {
  background: #f7f9fc; border: 1px solid #e6e9f0; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px;
}
.od-pl-title { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 8px; }
.od-pl-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
}
.od-pl-fac { font-size: 13px; color: #333; }
.od-pl-price { font-size: 13px; color: #1677ff; font-weight: 600; }

/* 复制模式提示条（对齐小程序 copy-tip） */
.of-copy-tip {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  background: #e6f4ff; color: #0958d9; border: 1px solid #91caff;
}

/* 外发厂商单价表（编辑/复制订单表单，对齐小程序 orderAdd 分块样式） */
.of-price-list {
  background: #f8fafc; border: 1px solid #e6e9f0; border-radius: 10px;
  padding: 16px; margin-bottom: 16px;
}
.of-pl-row { display: flex; align-items: center; margin-bottom: 10px; }
.of-pl-row:last-of-type { margin-bottom: 0; }
.of-pl-fac {
  flex: 1; height: 38px; box-sizing: border-box; margin-right: 10px;
  background: #f5f7fa; border: 1px solid transparent; border-radius: 8px;
  padding: 0 12px; font-size: 13px; color: #333; outline: none;
}
.of-pl-price {
  flex: 1; height: 38px; box-sizing: border-box; margin-right: 10px;
  background: #f5f7fa; border: 1px solid transparent; border-radius: 8px;
  padding: 0 12px; font-size: 13px; color: #333; outline: none;
}
.of-pl-fac:focus, .of-pl-price:focus { border-color: #1677ff; background: #fff; }
.of-pl-del { font-size: 13px; color: #e5484d; flex-shrink: 0; cursor: pointer; padding: 4px; }
.of-price-list .of-pl-add {
  display: inline-block; background: transparent; border: none; box-shadow: none;
  color: #1677ff; font-size: 13px; padding: 10px 0 2px; cursor: pointer;
}

/* 订单详情 */
.od-head { display: flex; gap: 16px; margin-bottom: 14px; }
.od-cover { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.od-cover-ph { display: flex; align-items: center; justify-content: center; background: #f2f4f7; color: #9aa1ab; font-size: 12px; }
.od-head-title { display: flex; flex-direction: column; gap: 6px; }
.od-no-v { font-size: 16px; font-weight: 700; color: #1f2733; }
.od-style-v { font-size: 13px; color: #9aa1ab; }
.od-mini-tags { display: flex; gap: 6px; margin-top: 2px; }
.od-mini-tag { font-size: 11px; color: #2563eb; background: #eff6ff; border-radius: 8px; padding: 3px 9px; }
.od-mini-tag.green { color: #059669; background: #ecfdf5; }
.od-mini-tag.orange { color: #c2410c; background: #fff7ed; }
.od-kv { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #f2f4f7; font-size: 13px; }
.od-k { color: #6b7280; }
.od-v { color: #1f2733; font-weight: 600; }
.od-detail-link { text-align: center; color: #1677ff; font-size: 13px; padding-top: 14px; border-top: 1px solid #f2f4f7; margin-top: 4px; cursor: pointer; }
.od-detail-link:hover { text-decoration: underline; }

/* 裁床信息 */
.od-sheet-row, .od-bed-row { padding: 11px 0; border-top: 1px solid #f2f4f7; }
.od-sheet-main, .od-bed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.od-sheet-no, .od-bed-name { font-size: 13px; font-weight: 600; color: #1f2733; }
.od-sheet-meta, .od-bed-meta, .od-bed-range { font-size: 12px; color: #9aa1ab; }
.od-bed-head { justify-content: space-between; }

/* 每扎进度 */
.od-grid-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #1f2733; margin-bottom: 12px; }
.od-flt-row { display: flex; gap: 16px; margin-bottom: 12px; }
.od-flt-row label { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.od-flt-row select { padding: 5px 8px; border: 1px solid #d9dde3; border-radius: 8px; font-size: 12px; }
.od-legend { display: flex; flex-wrap: wrap; gap: 14px; background: #fff; border: 1px solid #eceff3; border-radius: 10px; padding: 11px 14px; margin-bottom: 10px; }
.od-legend span { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 5px; }
.ci { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.ci.c-pending { background: #d9d9d9; } .ci.c-doing { background: #faad14; } .ci.c-out { background: #1890ff; }
.ci.c-done { background: #52c41a; } .ci.c-rework { background: #fa8c16; } .ci.c-scrap { background: #ff4d4f; }
.od-grid-tip { font-size: 12px; color: #9aa1ab; margin-bottom: 12px; }
.od-grid-sec { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.od-gs-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.od-gs-name { font-weight: 700; color: #1f2733; }
.od-gs-qty { color: #6b7280; }
.od-gs-bar { height: 8px; background: #f2f4f7; border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.od-gs-fill { height: 100%; background: #52c41a; }
.od-gs-counts { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.od-circle-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.od-circle { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; color: #fff; }
.od-circle.c-pending { background: #d9d9d9; color: #6b7280; }
.od-circle.c-doing { background: #faad14; }
.od-circle.c-out { background: #1890ff; }
.od-circle.c-done { background: #52c41a; }
.od-circle.c-rework { background: #fa8c16; }
.od-circle.c-scrap { background: #ff4d4f; }

/* 工序进度 */
.od-st-card { padding: 12px 0; border-top: 1px solid #f2f4f7; }
.od-st-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.od-st-name { font-size: 13px; font-weight: 700; color: #1f2733; }
.od-st-pct { font-size: 12px; color: #6b7280; }
.od-seg-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: #f2f4f7; margin-bottom: 8px; }
.od-seg.done { background: #52c41a; } .od-seg.out { background: #1890ff; }
.od-seg.doing { background: #faad14; } .od-seg.pending { background: #d9d9d9; }
.od-st-meta { font-size: 12px; color: #6b7280; }

/* 工序详情 */
.od-pd-row { padding: 12px 0; border-top: 1px solid #f2f4f7; }
.od-pd-name { font-size: 13px; font-weight: 700; color: #1f2733; margin-bottom: 7px; }
.od-pd-prices { display: flex; gap: 14px; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.od-pd-stat { font-size: 12px; color: #9aa1ab; }

/* 报工统计 */
.od-rep-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.od-rep-cell { background: #fff; border: 1px solid #eceff3; border-radius: 10px; padding: 14px; text-align: center; }
.od-rep-num { font-size: 19px; font-weight: 700; color: #1f2733; }
.od-rep-label { font-size: 12px; color: #6b7280; margin-top: 5px; }
.od-toggle { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.od-lvl-arrow { transition: transform .15s; color: #9aa1ab; }
.od-staff-head.on .od-lvl-arrow, .od-lvl3.on .od-lvl-arrow { transform: rotate(90deg); }
.od-staff-block { border-top: 1px solid #f2f4f7; }
.od-staff-head { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; }
.od-staff-name { font-size: 13px; font-weight: 600; color: #1f2733; flex: 1; }
.od-staff-qty { font-size: 12px; color: #9aa1ab; }
.od-staff-detail { padding-bottom: 8px; }
.od-lvl3 { display: flex; align-items: center; justify-content: space-between; padding: 9px 0 9px 14px; cursor: pointer; font-size: 12px; }
.od-lvl3-name { color: #374151; }
.od-lvl4 { padding-left: 14px; padding-bottom: 8px; }
.od-rec-row, .od-rc-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f7f9fb; font-size: 12px; }
.od-rec-main, .od-rc-main { display: flex; flex-direction: column; gap: 2px; }
.od-rec-name, .od-rc-name { color: #374151; font-weight: 600; }
.od-rec-sub, .od-rc-sub { color: #9aa1ab; }
.od-rec-remark { color: #c2410c; }
.od-rec-qty, .od-rc-qty { color: #6b7280; white-space: nowrap; }

/* 扎详情弹窗 */
.od-bp-meta { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.od-bp-tag { font-size: 11px; border-radius: 8px; padding: 3px 9px; color: #2563eb; background: #eff6ff; }
.od-bp-tag.st-done { color: #059669; background: #ecfdf5; }
.od-bp-tag.st-out { color: #2563eb; background: #eff6ff; }
.od-bp-tag.st-doing { color: #b45309; background: #fffbeb; }
.od-bp-tag.ph-rework { color: #c2410c; background: #fff7ed; }
.od-bp-tag.ph-scrap { color: #dc2626; background: #fef2f2; }
.od-bp-done-time { font-size: 12px; color: #9aa1ab; margin-bottom: 10px; }
.od-bp-proc { border-top: 1px solid #f2f4f7; padding: 11px 0; }
.od-bp-proc-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.od-bp-proc-head span:first-child { font-weight: 600; color: #1f2733; }
.od-bp-track { height: 8px; background: #f2f4f7; border-radius: 5px; overflow: hidden; margin-bottom: 7px; }
.od-bp-fill { height: 100%; background: #2563eb; }
.od-bp-fill.st-done { background: #52c41a; } .od-bp-fill.st-out { background: #1890ff; } .od-bp-fill.st-doing { background: #faad14; }
.od-bp-detail { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.od-bp-person { font-size: 12px; color: #6b7280; padding: 2px 0; }
.od-bp-person span { color: #9aa1ab; }

/* ===== 代工订单（对齐小程序 orderManage 代工栏目） ===== */
.sub-link-panel { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.slp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.slp-title { font-size: 14px; font-weight: 700; color: #1f2733; }
.sub-link-card { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #f2f4f7; }
.slc-main { display: flex; flex-direction: column; gap: 3px; }
.slc-name { font-size: 13px; font-weight: 600; color: #1f2733; }
.slc-sub { font-size: 12px; color: #9aa1ab; }
.slc-unlink { font-size: 12px; color: #dc2626; cursor: pointer; }

.sub-card-list { display: flex; flex-direction: column; gap: 12px; }
.sub-card-v { background: #fff; border: 1px solid #eceff3; border-radius: 12px; padding: 14px 16px; }
.sub-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sub-card-style { font-size: 15px; font-weight: 700; color: #1f2733; }
.sub-card-status { font-size: 12px; color: #2563eb; background: #eff6ff; border-radius: 9px; padding: 3px 10px; }
.sub-card-from { font-size: 12px; color: #9aa1ab; margin-bottom: 8px; }
.sub-fold-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f2f4f7; font-size: 13px; color: #374151; cursor: pointer; }
.sub-fold-arrow { color: #9aa1ab; transition: transform .15s; }
.sub-fold-body { padding-bottom: 8px; }
.sub-info-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sub-info-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #eef0f3; cursor: zoom-in; }
.sub-info-noimg { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: #f6f7f9; border-radius: 8px; color: #9ca3af; font-size: 13px; margin-bottom: 12px; }
.sub-bundle-tag { display: inline-block; font-size: 11px; color: #6b7280; background: #f2f4f7; border-radius: 8px; padding: 4px 9px; margin: 0 6px 6px 0; }
.sub-reason-line { font-size: 12px; color: #c2410c; padding: 4px 0; }
.sub-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sub-sa-btn { font-size: 12px; border-radius: 9px; padding: 6px 14px; cursor: pointer; color: #2563eb; background: #eff6ff; }
.sub-sa-btn.accept { color: #fff; background: #2563eb; }
.sub-sa-btn.reject { color: #dc2626; background: #fef2f2; }

/* 送货弹窗 */
.dl-row-v { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f2f4f7; }
.dl-info-v { display: flex; flex-direction: column; gap: 3px; }
.dl-name-v { font-size: 13px; font-weight: 600; color: #1f2733; }
.dl-sub-v { font-size: 12px; color: #9aa1ab; }
.dl-qty-input { width: 80px; padding: 6px; border: 1px solid #d9dde3; border-radius: 8px; font-size: 13px; }

/* 返工问题图片与扣减 */
.rw-img-block-v { margin: 8px 0; }
.rw-img-label { font-size: 12px; color: #9aa1ab; }
.rw-img-row-v { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.rw-img-v { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.rw-deduct-block-v { background: #fef2f2; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.rw-deduct-title { font-size: 12px; color: #c2410c; margin-bottom: 6px; }
.rw-deduct-row-v { display: flex; justify-content: space-between; font-size: 12px; color: #374151; padding: 3px 0; }

/* 原料分颜色库存折叠 */
.mat-color-fold-v { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f2f4f7; font-size: 13px; color: #374151; cursor: pointer; }
.mat-color-body-v { padding-bottom: 8px; }
.mat-color-row-v { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.mat-color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #e5e7eb; }
.mat-color-name { color: #374151; min-width: 90px; }
.mat-color-qty { color: #9aa1ab; }

/* 借条照片上传 */
.iou-upload-box { display: flex; flex-direction: column; gap: 8px; }
.btn-sm { padding: 5px 12px; font-size: 12px; align-self: flex-start; }
.iou-thumb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.iou-thumb-cell { position: relative; width: 64px; height: 64px; }
.iou-thumb-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.iou-thumb-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; line-height: 17px; text-align: center; background: #ef4444; color: #fff; border-radius: 50%; font-size: 12px; cursor: pointer; }
.table-iou-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e7eb; cursor: pointer; }

/* ===== 全局报工统计（对齐小程序 reportStats） ===== */
.grs-overlay { position: fixed; left: 210px; top: 60px; right: 0; bottom: 0; background: #f4f6f9; z-index: 950; display: flex; justify-content: center; }
.grs-box { width: 1080px; max-width: 100%; height: 100%; display: flex; flex-direction: column; background: #f4f6f9; }
.grs-header { display: flex; align-items: center; background: #1677ff; color: #fff; padding: 14px 20px; }
.grs-back { font-size: 30px; width: 34px; line-height: 1; cursor: pointer; }
.grs-header-title { flex: 1; font-size: 17px; font-weight: 600; }
.grs-content { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
.dept-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5e8ee; background: #fff; }

/* 订单详情全屏页：比通用全屏更宽，容纳 12 字段 + BOM/工序/扎号多表 */
.odd-box { width: 1280px; max-width: 96%; height: 100%; display: flex; flex-direction: column; background: #f4f6f9; }
.odd-content { flex: 1; overflow-y: auto; padding: 20px 24px 48px; }
.odd-content .detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; background: #fff;
  border: 1px solid #e8ebf0; border-radius: 10px; padding: 18px 20px; }
.odd-content .detail-item { display: flex; flex-direction: column; gap: 4px; }
.odd-content .di-label { font-size: 12px; color: #8a919c; }
.odd-content .di-value { font-size: 14px; color: #1f2733; font-weight: 600; }
.odd-content .detail-section-title { font-size: 15px; font-weight: 700; color: #1f2733; margin: 22px 0 10px; }
.odd-content .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.odd-content .of-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.odd-content .od-thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #e8ebf0; cursor: zoom-in; }

/* 全局汇总 */
.grs-summary { display: flex; gap: 10px; }
.grs-scell { flex: 1; background: #fff; border-radius: 10px; padding: 16px 0; text-align: center; }
.grs-snum { font-size: 20px; font-weight: 700; color: #1677ff; }
.grs-slabel { font-size: 12px; color: #888; margin-top: 6px; }

/* 卡片与折叠 */
.grs-card { background: #fff; border-radius: 12px; margin-top: 16px; padding: 18px; }
.grs-card-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: #333; cursor: pointer; }
.grs-arrow { font-size: 13px; color: #999; font-weight: 400; }
.grs-empty { text-align: center; color: #bbb; font-size: 13px; padding: 24px 0; }

/* 员工层 */
.grs-staff-block { border-bottom: 1px solid #f4f6f9; }
.grs-staff-head { display: flex; align-items: center; padding: 14px 0; cursor: pointer; }
.grs-staff-name { flex: 1; font-size: 14px; font-weight: 700; color: #333; }
.grs-staff-qty { font-size: 13px; color: #fa8c16; margin-right: 14px; }
.grs-staff-arrow { font-size: 12px; color: #bbb; }
.grs-staff-detail { padding-bottom: 12px; }

/* 工序层 */
.grs-proc-title { display: flex; justify-content: space-between; align-items: center; background: #f2f5fa; border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: 13px; font-weight: 700; color: #555; cursor: pointer; }
.grs-proc-name { flex: 1; padding-right: 10px; }
.grs-proc-arrow { font-size: 12px; color: #999; }
.grs-rec-box { padding: 4px 6px 0; }

/* 报工明细行 */
.grs-rec-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f4f6f9; }
.grs-rec-main { flex: 1; padding-right: 12px; }
.grs-rec-name { font-size: 13px; color: #333; display: block; }
.grs-rec-sub { font-size: 12px; color: #aaa; margin-top: 3px; display: block; }
.grs-rec-qty { font-size: 12px; color: #d46b08; white-space: nowrap; }
.grs-rec-empty { font-size: 12px; color: #aaa; padding: 10px 4px; }
.grs-rec-remark { display: block; font-size: 12px; color: #dc2626; background: #fef2f2; border-radius: 6px; padding: 7px 9px; margin-top: 7px; line-height: 1.4; }

/* ===== 通用图片预览灯箱 ===== */
.img-viewer { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.88); display: flex; align-items: center; justify-content: center; }
.iv-img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,0.5); user-select: none; }
.iv-close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: 0.85; z-index: 2; }
.iv-close:hover { opacity: 1; }
.iv-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 64px; line-height: 1; cursor: pointer; opacity: 0.75; user-select: none; z-index: 2; padding: 0 12px; }
.iv-nav:hover { opacity: 1; }
.iv-prev { left: 24px; }
.iv-next { right: 24px; }
.iv-nav.iv-hidden { display: none; }
.iv-count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 1px; }
/* 可预览图片的鼠标提示 */
img[data-preview], img.iv-clickable { cursor: zoom-in; }
/* 外发详情图片行 */
.os-detail-img-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.os-detail-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; cursor: zoom-in; }

/* ===== 工资试算三级可展开 ===== */
.pcl-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.pcl-card { border: 1px solid #e6ebf2; border-radius: 10px; overflow: hidden; background: #fff; }
.pcl-lv1 { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; background: #f7f9fc; }
.pcl-lv1:hover { background: #f0f5fb; }
.pcl-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.pcl-qty { font-size: 12px; font-weight: 400; color: #888; margin-left: 4px; }
.pcl-right { display: flex; align-items: center; gap: 12px; }
.pcl-wage { font-size: 14px; color: #186ecc; font-weight: 700; }
.pcl-arrow { font-size: 12px; color: #999; white-space: nowrap; }
.pcl-body { padding: 6px 14px 12px; }
.pcl-lv2 { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; margin-top: 8px; background: #f2f5fa; border-radius: 8px; cursor: pointer; }
.pcl-lv2-no { font-size: 13px; color: #374151; }
.pcl-lv3 { padding: 4px 6px 0; }
.pcl-line { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px; border-bottom: 1px solid #f3f5f8; font-size: 13px; gap: 10px; }
.pcl-line-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pcl-bundle { background: #e8f1fd; color: #186ecc; border-radius: 5px; padding: 2px 7px; font-size: 12px; white-space: nowrap; }
.pcl-cs { color: #6b7280; font-size: 12px; white-space: nowrap; }
.pcl-proc { color: #374151; }
.pcl-line-money { color: #6b7280; font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.pcl-amount { color: #d46b08; font-weight: 700; }
.pcl-deduct-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; background: #fef6f6; border-radius: 8px; font-size: 13px; }
.pcl-deduct-label { color: #b91c1c; }
.pcl-deduct-amt { color: #dc2626; font-size: 14px; }
.pcl-final { margin-left: auto; color: #374151; }
.pcl-final b { color: #186ecc; font-size: 15px; }

/* ===== 菲票卡片（对齐小程序 ticket） ===== */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ticket-card { position: relative; background: #fff; border: 2px solid #1677ff; border-radius: 10px; padding: 18px; box-sizing: border-box; }
.ticket-card.off { opacity: .45; border-color: #c9cdd4; }
.ticket-check { position: absolute; top: 10px; right: 12px; font-size: 18px; line-height: 1; cursor: pointer; color: #1677ff; }
.tc-head { text-align: center; color: #1677ff; font-size: 20px; font-weight: 700; padding-right: 28px; }
.tc-sub { text-align: center; color: #333; font-size: 13px; font-weight: 700; margin: 6px 0 12px; letter-spacing: 3px; }
.tc-row { display: flex; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #eee; gap: 6px; }
.tc-row span { color: #999; min-width: 52px; flex-shrink: 0; }
.tc-row b { color: #222; font-weight: 600; word-break: break-all; }
.tc-qr { width: 150px; height: 150px; object-fit: contain; display: block; margin: 14px auto 0; border: 1px solid #eee; }
.tc-qr.qr-none { display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 12px; }
.tc-qr.qr-gen { color: #1769e0; border-color: #bcd8fb; background: #f3f8ff; font-weight: 600; }
.tc-tip { font-size: 11px; color: #aaa; text-align: center; margin-top: 8px; }

/* ===== 打印专用：只打印勾选的菲票，隐藏后台其他所有内容 ===== */
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { position: absolute; left: 0; top: 0; width: 100%; display: block; }
  .ticket-card { border: 1px solid #000; break-inside: avoid; page-break-inside: avoid; }
  .ticket-check { display: none; }
  .ticket-card.off { display: none; }
}

/* ============================================================
   补齐：各页面缺失样式（对齐小程序，统一设计系统）
   ============================================================ */
/* 通用加载/空状态/下拉 */
.loading-box { padding: 40px 0; text-align: center; color: #86909c; font-size: 13px; }
.empty { padding: 36px 0; text-align: center; color: #a9aeb8; font-size: 13px; }
.select { height: 36px; border: 1px solid #d9dde3; border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; color: #1f2733; }
/* 选项芯片 */
.opt-chip { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid #d9dde3; border-radius: 16px; font-size: 13px; color: #4e5969; background: #fff; cursor: pointer; margin: 0 6px 6px 0; }
.opt-chip:hover { border-color: #1677ff; color: #1677ff; }
.opt-chip.on { background: #1677ff; border-color: #1677ff; color: #fff; }
.opt-chip.on:hover { border-color: #1677ff; color: #fff; background: #4096ff; }
/* 页面内 tab 变体（统一 tab 视觉） */
.board-flt, .tk-tab, .os-tab, .cutbed-tab, .rw-tab, .fin-tab, .pay-tab, .dd-tab, .vp-tab, .vd-tab, .rep-sub, .rep-dim { padding: 6px 16px; border-radius: 6px; cursor: pointer; color: #4e5969; font-size: 13px; }
.board-flt:hover, .tk-tab:hover, .os-tab:hover, .cutbed-tab:hover, .rw-tab:hover, .fin-tab:hover, .pay-tab:hover, .dd-tab:hover, .vp-tab:hover, .vd-tab:hover, .rep-sub:hover, .rep-dim:hover { color: #1677ff; }
.board-flt.active, .tk-tab.active, .os-tab.active, .cutbed-tab.active, .rw-tab.active, .fin-tab.active, .pay-tab.active, .dd-tab.active, .vp-tab.active, .vd-tab.active, .rep-sub.active, .rep-dim.active { background: #1677ff; color: #fff; }
/* 偏好面板 */
.pref-panel { background: #fff; border-radius: 12px; padding: 20px; max-width: 720px; }
.pref-note { background: #f5f7fa; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #6b7280; margin-bottom: 18px; }
.pref-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
/* 搜索/筛选/快捷/日志 */
.search-input { height: 36px; border: 1px solid #d9dde3; border-radius: 8px; padding: 0 12px; font-size: 13px; min-width: 220px; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-btn { padding: 7px 16px; border: 1px solid #d9dde3; border-radius: 8px; background: #fff; color: #4e5969; cursor: pointer; font-size: 13px; }
.quick-btn:hover { border-color: #1677ff; color: #1677ff; }
.log-line { padding: 8px 0; border-bottom: 1px solid #f2f4f7; font-size: 13px; color: #4e5969; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-type { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.log-qty { font-size: 14px; }
.log-type.stockIn, .log-type.consumeReturn { color: #52c41a; background: #f6ffed; }
.log-qty.stockIn, .log-qty.consumeReturn { color: #52c41a; }
.log-type.consume, .log-type.cutWaste { color: #ff4d4f; background: #fff1f0; }
.log-qty.consume, .log-qty.cutWaste { color: #ff4d4f; }
.log-type.stockOut, .log-type.supplierReturn { color: #faad14; background: #fff7e6; }
.log-qty.stockOut, .log-qty.supplierReturn { color: #faad14; }
.form-section { font-size: 13px; font-weight: 700; color: #1f2733; margin: 16px 0 10px; }
/* 勾选框 */
.or-chk, .dept-check, .pos-check, .dp-pool-check, .dp-pos-check, .tpl-check { width: 16px; height: 16px; cursor: pointer; accent-color: #1677ff; }
/* 岗位编辑 */
.dp-del-pos { color: #f5222d; cursor: pointer; font-size: 13px; }
/* 矩阵 matrix/mx */
.matrix-wrap { overflow-x: auto; margin: 12px 0; }
.matrix-table { border-collapse: collapse; width: 100%; }
.matrix-table th, .matrix-table td { border: 1px solid #e5e8ed; padding: 6px; font-size: 13px; text-align: center; }
.mx-corner, .mx-add-corner { background: #fafbfc; color: #6b7280; white-space: nowrap; }
.mx-size, .mx-color { background: #fafbfc; white-space: nowrap; }
.mx-cell { width: 72px; padding: 6px; border: 1px solid #e5e8ed; border-radius: 4px; text-align: center; font-size: 13px; }
.mx-del-size, .mx-del-color { cursor: pointer; color: #f5222d; margin-left: 4px; }
.mx-add { color: #1677ff; cursor: pointer; font-size: 12px; }
.mx-add-row { text-align: center; background: #fafbfc; }
/* 裁床详情 */
.detail-meta { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.detail-scroll { overflow-x: auto; }
.detail-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bed-detail { border: 1px solid #eceff3; border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fff; }
.bed-detail-head { font-size: 13px; font-weight: 700; color: #1f2733; margin-bottom: 10px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 8px 10px; font-size: 12px; border-bottom: 1px solid #f2f4f7; text-align: left; }
.mini-table th { color: #6b7280; background: #fafbfc; }
/* 报表 kpi/标签 */
.kpi-num { font-size: 26px; font-weight: 700; }
.kpi-num.blue { color: #1677ff; }
.kpi-num.green { color: #52c41a; }
.bundle-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bundle-tag { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #f2f4f7; color: #4e5969; }

/* 颜色尺码汇总矩阵 */
.csm-box { margin-top: 16px; background: #fafafa; border-radius: 8px; padding: 14px 16px; }
.csm-box .panel-title { margin-bottom: 10px; }
.csm-scroll { overflow-x: auto; }
.csm-table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
.csm-table th, .csm-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.csm-table thead th { color: #6b7280; font-weight: 500; background: #f7f8fa; }
.csm-corner { text-align: left !important; color: #888 !important; }
.csm-color { text-align: left; color: #333; font-weight: 500; }
.csm-total { font-weight: 600; color: #1677ff; }
.csm-foot td { border-top: 1px solid #e8e8e8; font-weight: 600; }
.csm-foot .csm-color { color: #888; }

/* 外发 os/ob/oe */
.osci { font-size: 13px; color: #6b7280; }
.os-proc, .ob-proc, .oe-proc { accent-color: #1677ff; margin-right: 4px; }
.os-bundle { padding: 8px 0; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.ob-fac { font-weight: 600; color: #1f2733; }
.ob-price { color: #d46b08; font-weight: 700; }
.ob-date { color: #6b7280; font-size: 12px; }
.sub-flt { height: 34px; border: 1px solid #d9dde3; border-radius: 8px; padding: 0 10px; font-size: 13px; }
/* 物料 mat/mf/ms */
.mat-type { font-weight: 700; color: #1f2733; margin: 12px 0 8px; }
.mat-meta-item { font-size: 13px; color: #4e5969; margin-right: 16px; }
.color-edit-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.mf-cname, .mf-ccode, .mf-cqty { padding: 6px 9px; border: 1px solid #dfe3e8; border-radius: 7px; font-size: 13px; }
.mf-cdel { color: #f5222d; cursor: pointer; }
.ms-inrow { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.ms-inqty { width: 90px; padding: 6px 9px; border: 1px solid #dfe3e8; border-radius: 7px; }
/* 成品/财务 */
.fin-info { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; font-size: 13px; }
.pr-order { font-size: 13px; font-weight: 600; color: #1f2733; padding: 8px 0; }
.vs-order { padding: 8px 0; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.rc-cat { padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #4e5969; }
.rc-cat.active { background: #1677ff; color: #fff; }
.od-grid-title { font-weight: 700; color: #1f2733; }
.od-bp-person.time { color: #6b7280; }

/* ===== 回收站订单分类（对齐小程序 recycle） ===== */
.rc-switch-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.rc-switch-main { flex: 1; min-width: 0; }
.rc-switch-title { font-size: 15px; font-weight: 700; color: #1f2733; margin-bottom: 6px; }
.rc-switch-desc { font-size: 12px; color: #86909c; line-height: 1.7; }
.rc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.rc-switch input { opacity: 0; width: 0; height: 0; }
.rc-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #c9cdd4; border-radius: 26px; transition: .25s; }
.rc-switch-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.rc-switch input:checked + .rc-switch-slider { background: #ff4d4f; }
.rc-switch input:checked + .rc-switch-slider::before { transform: translateX(20px); }
.rc-batch-bar { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 10px; padding: 14px 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.rc-select-all { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #4e5969; cursor: pointer; }
.rc-selected-tip { font-size: 13px; color: #86909c; }
.rc-batch-btn { margin-left: auto; padding: 8px 18px; font-size: 13px; border-radius: 6px; }
.rc-batch-btn:disabled { opacity: .5; cursor: not-allowed; }
.rc-order-card { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.rc-cb { padding-top: 2px; cursor: pointer; }
.rc-order-info { flex: 1; min-width: 0; }
.rc-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rc-no { font-size: 16px; font-weight: 700; color: #1f2733; }
.rc-style { font-size: 13px; color: #1677ff; }
.rc-meta { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.rc-time { font-size: 12px; color: #9aa1ab; }
.rc-order-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ===== 订单表单：款式图 / 走仓库 / BOM ===== */
.form-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.of-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.of-thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; }
.of-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-thumb-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px; text-align: center;
  background: rgba(0,0,0,0.55); color: #fff; border-radius: 50%; font-size: 14px; cursor: pointer; }
.of-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 84px; height: 84px; border: 1px dashed #c2c8d0; border-radius: 8px; color: #8a919c; cursor: pointer; font-size: 12px; }
.of-upload:hover { border-color: #1677ff; color: #1677ff; }
.of-plus { font-size: 22px; line-height: 1; }
.of-mode-switch { display: flex; gap: 12px; }
.of-mode-opt { flex: 1; border: 1.5px solid #e2e6ec; border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all .15s; }
.of-mode-opt.active { border-color: #1677ff; background: #f0f7ff; }
.of-mode-name { font-weight: 700; font-size: 14px; color: #1f2733; margin-bottom: 4px; }
.of-mode-desc { font-size: 12px; color: #8a919c; line-height: 1.5; }
.of-add-bom { color: #1677ff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.of-bom-item { border: 1px solid #eef0f3; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fafbfc; }
.of-bom-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.of-bom-title { font-weight: 700; font-size: 13px; color: #1f2733; }
.of-bom-right { display: flex; align-items: center; gap: 12px; }
.of-type { display: inline-flex; border: 1px solid #dfe4ea; border-radius: 7px; overflow: hidden; }
.of-type-opt { padding: 4px 12px; font-size: 12px; color: #6b7280; cursor: pointer; }
.of-type-opt.on { background: #1677ff; color: #fff; }
.of-bom-del { font-size: 12px; color: #e5484d; cursor: pointer; }
.of-bom-label { font-size: 13px; color: #6b7280; margin: 8px 0 6px; }
.of-color-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.of-color-tag { padding: 5px 12px; border: 1px solid #dfe4ea; border-radius: 16px; font-size: 12px; color: #4b5563; cursor: pointer; }
.of-color-tag.active { border-color: #1677ff; background: #e8f3ff; color: #1677ff; }
.of-fz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.of-fz-name { font-size: 13px; color: #1f2733; font-weight: 600; }
.of-fz-sub { font-size: 12px; color: #8a919c; margin-top: 2px; }
.of-fz-num { width: 110px; padding: 7px 10px; border: 1px solid #dfe4ea; border-radius: 8px; }
.of-fz-num:focus { border-color: #1677ff; outline: none; }

/* ===== 员工邀请码弹窗 ===== */
.iv-perm-label { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.iv-perm-code { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f0f7ff; border: 1px solid #cfe3fb; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.iv-perm-code span:first-child { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #1677ff; }
.iv-copy { font-size: 12px; color: #1677ff; cursor: pointer; }
.iv-qr-box { display: flex; justify-content: center; background: #f7f8fa; border-radius: 10px; padding: 16px; }
.iv-qr-img { width: 220px; height: 220px; }
.iv-qr-ph { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center;
  color: #9aa1ab; font-size: 13px; }
.iv-qr-tip { font-size: 12px; color: #8a919c; text-align: center; margin: 10px 0; }
.iv-qr-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.iv-temp-title { font-size: 14px; font-weight: 600; margin: 14px 0 10px; }
.iv-list { border: 1px solid #eef0f3; border-radius: 10px; overflow: hidden; }
.iv-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.iv-item + .iv-item { border-top: 1px solid #f0f2f5; }
.iv-code { font-size: 15px; font-weight: 700; color: #1f2733; }
.iv-meta { font-size: 12px; color: #9aa1ab; margin-top: 2px; }
.iv-del { font-size: 12px; color: #e5484d; cursor: pointer; }
.iv-empty { padding: 18px; text-align: center; color: #9aa1ab; font-size: 13px; }
.iv-create { display: flex; gap: 10px; margin-top: 14px; }
.iv-input { flex: 1; padding: 9px 12px; border: 1px solid #dfe4ea; border-radius: 8px; }
.iv-input:focus { border-color: #1677ff; outline: none; }

/* ===== 裁床新增高级功能 ===== */
.cb-switches { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 12px; background: #f7f8fa; border-radius: 8px; margin-bottom: 14px; }
.cb-switch { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #3a4250; cursor: pointer; }
.cb-multiple { width: 90px; padding: 6px 10px; border: 1px solid #dfe4ea; border-radius: 8px; }
.cb-multiple:focus { border-color: #1677ff; outline: none; }
.cb-cand-title { font-size: 13px; font-weight: 600; color: #3a4250; margin: 12px 0 8px; }
.cb-add-preset { color: #1677ff; font-weight: 400; cursor: pointer; margin-left: 6px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip { position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid #dfe4ea; border-radius: 999px; font-size: 13px;
  color: #3a4250; cursor: pointer; user-select: none; }
.cb-chip.on { background: #e8f2ff; border-color: #1677ff; color: #1677ff; font-weight: 600; }
.cb-chip-x { font-style: normal; color: #9aa1ab; padding-left: 2px; }
.cb-chip-x:hover { color: #e5484d; }
.cb-chip-code { font-size: 12px; color: #8a919c; font-weight: 400; }
.cb-chip.on .cb-chip-code { color: #4a90d9; }
.cb-cand-sub { font-size: 12px; color: #8a919c; line-height: 1.5; margin: 0 0 8px; }
.cb-cand-empty { font-size: 12px; color: #e5484d; padding: 8px 0; }

/* 裁床新增：订单信息卡片（对齐小程序） */
.cb-order-card { border: 1px solid #e6e9ef; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fafbfc; }
.cb-oi-row { display: flex; align-items: center; font-size: 13px; padding: 3px 0; }
.cb-oi-label { width: 64px; color: #8a919c; flex: 0 0 64px; }
.cb-oi-value { color: #2b323d; font-weight: 500; }
.cb-change { margin-left: auto; color: #1677ff; cursor: pointer; font-size: 13px; }
.cb-style-banner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cb-style-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid #e6e9ef; }
.cb-empty { padding: 22px; text-align: center; color: #9aa1ab; font-size: 13px;
  background: #f7f8fa; border-radius: 8px; }
.cb-summary { margin-top: 12px; font-size: 13px; color: #6b7280; }
.cb-summary b { color: #1677ff; font-size: 15px; margin: 0 2px; }
.cb-aux-title { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
.cb-aux-group { border: 1px solid #eef0f3; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.cb-aux-head { display: flex; justify-content: space-between; padding: 10px 12px;
  font-size: 13px; cursor: pointer; background: #fafbfc; }
.cb-aux-body { padding: 10px 12px; font-size: 13px; color: #6b7280; border-top: 1px solid #f0f2f5; }
.matrix-table .mx-total { background: #f7f8fa; font-weight: 600; color: #3a4250; }
.matrix-table .mx-total-head { background: #f0f2f5; font-weight: 600; }
.matrix-table .mx-grand { background: #e8f2ff; font-weight: 700; color: #1677ff; }

/* ===== 菲票可视化布局编辑器 ===== */
.tl-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.tl-left { flex: 1; min-width: 240px; }
.tl-right { width: 280px; flex-shrink: 0; }
.tl-sec-title { font-size: 13px; font-weight: 600; color: #3a4250; margin-bottom: 10px; }
.tl-row { display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid #eef0f3; border-radius: 8px; margin-bottom: 8px; }
.tl-check { font-size: 13px; color: #3a4250; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tl-move { display: flex; gap: 4px; }
.tl-arrow { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
  border: 1px solid #dfe4ea; border-radius: 6px; cursor: pointer; color: #6b7280; font-size: 13px; }
.tl-arrow:hover { border-color: #1677ff; color: #1677ff; }
.tl-preview-card { margin: 0; }
.tl-sample-qr { display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #9aa1ab; min-height: 90px; }

/* 订单详情 BOM 库存小字与删除按钮 */
.fz-meta { font-size: 11px; color: #9aa1ab; margin-top: 2px; line-height: 1.5; }
.od-del-btn { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.detail-actions .btn-ghost, .detail-actions .btn-danger { margin-right: 10px; }

/* 订单码弹窗 */
.oc-code-loading { padding: 40px 0; text-align: center; color: #9aa1ab; font-size: 14px; }
.oc-code-box { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.oc-code-img { width: 260px; height: 260px; object-fit: contain; border: 1px solid #eef0f3; border-radius: 8px; background: #fff; }
.oc-code-meta { width: 320px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f7fa; border-radius: 8px; padding: 8px 14px; margin-top: 12px; font-size: 14px; color: #1f2329; }
.oc-meta-label { font-size: 13px; color: #86909c; flex-shrink: 0; }
.oc-meta-value { font-size: 14px; color: #1f2329; font-weight: 600; text-align: right; word-break: break-all; }
.oc-style-value { font-size: 18px; font-weight: 800; color: #1677ff; }
.oc-code-tip { margin-top: 8px; font-size: 12px; color: #9aa1ab; text-align: center; line-height: 1.6; max-width: 320px; }
.oc-code-actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.oc-code-actions .btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }

/* ============ 订单看板 ============ */
.odash-tabs { display: flex; gap: 4px; padding: 10px 18px 0; flex-wrap: wrap;
  border-bottom: 1px solid #eef0f3; background: #fff; }
.odash-tab { padding: 8px 14px; font-size: 13px; color: #6b7280; cursor: pointer;
  border-radius: 6px 6px 0 0; }
.odash-tab.active { color: #1664ff; background: #f0f6ff; font-weight: 600; }
.odash-card { background: #fff; border: 1px solid #eef0f3; border-radius: 10px;
  padding: 16px; margin-bottom: 14px; }
.odash-card-title { font-size: 14px; font-weight: 600; color: #1f2329; margin-bottom: 12px; }
.odash-empty { padding: 22px 0; text-align: center; color: #9aa1ab; font-size: 13px; }
.odash-head { display: flex; gap: 14px; margin-bottom: 14px; }
.odash-cover { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; border: 1px solid #eef0f3; }
.odash-cover-ph { display: flex; align-items: center; justify-content: center;
  background: #f7f8fa; color: #9aa1ab; font-size: 12px; }
.odash-title-box { flex: 1; }
.odash-style { font-size: 17px; font-weight: 700; color: #1f2329; }
.odash-no { font-size: 13px; color: #6b7280; margin: 4px 0; }
.odash-mini-tags { display: flex; gap: 6px; }
.odash-mini { font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #eef2f7; color: #5b6470; }
.odash-mini.orange { background: #fff3e8; color: #e8740c; }
.odash-mini.green { background: #e8f8ee; color: #16a34a; }
.odash-kv { display: flex; justify-content: space-between; padding: 8px 0;
  border-top: 1px solid #f3f4f6; font-size: 13px; }
.odash-kv .ok { color: #6b7280; }
.odash-kv .ov { color: #1f2329; font-weight: 600; }
.odash-sheet, .odash-bed { padding: 10px 0; border-top: 1px solid #f3f4f6; }
.os-main { display: flex; align-items: center; gap: 8px; }
.os-no { font-weight: 600; color: #1f2329; font-size: 13px; }
.os-meta, .ob-meta { font-size: 12px; color: #9aa1ab; margin-top: 4px; }
.os-style-name { font-size: 12px; color: #1f2329; margin-bottom: 5px; font-weight: 600; }
.ob-head { display: flex; justify-content: space-between; align-items: center; }
.ob-name { font-weight: 600; color: #1f2329; font-size: 13px; }
.ob-range { font-size: 12px; color: #9aa1ab; }
.odash-filters { display: flex; gap: 14px; margin-bottom: 12px; }
.odash-flt { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ofl-label { color: #6b7280; }
.odash-flt select { padding: 5px 8px; border: 1px solid #d8dce3; border-radius: 6px; font-size: 13px; }
.odash-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; font-size: 12px; color: #6b7280; }
.odash-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.odash-tip { font-size: 12px; color: #9aa1ab; margin-bottom: 12px; }
.odash-grid-sec { margin-bottom: 16px; }
.ogs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ogs-name { font-weight: 600; color: #1f2329; font-size: 13px; }
.ogs-qty { font-size: 12px; color: #1664ff; font-weight: 600; }
.ogs-bar { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; margin-bottom: 6px; }
.ogs-bar-fill { display: block; height: 100%; background: #22a45c; border-radius: 4px; }
.ogs-counts { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.gc-out { color: #e8a13b; }
.gc-doing { color: #3b82f6; }
.gc-pending { color: #9aa1ab; }
.odash-grid-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.odash-grid-title { font-weight: 600; color: #1f2329; font-size: 14px; }
.odash-grid-total { font-size: 12px; color: #1664ff; }
.odash-detail-link { padding-top: 10px; border-top: 1px solid #f3f4f6; font-size: 13px; color: #1664ff; cursor: pointer; }
.odash-circles { display: flex; flex-wrap: wrap; gap: 8px; }
.odash-circle { width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 12px; cursor: pointer;
  color: #fff; font-weight: 600; }
.c-pending { background: #c4cad4; }
.c-doing { background: #3b82f6; }
.c-out { background: #e8a13b; }
.c-done { background: #22a45c; }
.c-rework { background: #e0556a; }
.c-scrap { background: #6b7280; }
.odash-stage { padding: 12px 0; border-top: 1px solid #f3f4f6; }
.ost-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ost-name { font-weight: 600; color: #1f2329; font-size: 13px; }
.ost-pct { font-size: 12px; color: #1664ff; }
.odash-seg-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #f3f4f6; }
.odash-seg { display: block; height: 100%; }
.seg-done { background: #22a45c; }
.seg-out { background: #e8a13b; }
.seg-doing { background: #3b82f6; }
.seg-pending { background: #d4d8df; }
.ost-meta { font-size: 12px; color: #9aa1ab; margin-top: 6px; }
.odash-pd { padding: 10px 0; border-top: 1px solid #f3f4f6; }
.opd-name { font-weight: 600; color: #1f2329; font-size: 13px; }
.opd-prices { display: flex; gap: 12px; font-size: 12px; color: #6b7280; margin: 6px 0; }
.opd-stat { font-size: 12px; color: #1664ff; }
.odash-rep-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.orc-cell { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 14px; text-align: center; }
.orc-num { font-size: 20px; font-weight: 700; color: #1f2329; }
.orc-label { font-size: 12px; color: #9aa1ab; margin-top: 4px; }
.odash-staff { border-top: 1px solid #f3f4f6; }
.ostaff-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.ostaff-name { font-weight: 600; color: #1f2329; font-size: 13px; flex: 1; }
.ostaff-qty { font-size: 12px; color: #6b7280; }
.ostaff-arrow { color: #9aa1ab; font-size: 12px; }
.ostaff-detail { padding: 0 0 10px 12px; }
.osd-proc { margin-bottom: 10px; }
.osdp-name { font-size: 12px; color: #1664ff; margin-bottom: 4px; }
.osdp-rec { display: flex; justify-content: space-between; font-size: 12px;
  color: #6b7280; padding: 3px 0; border-top: 1px solid #f7f8fa; }
.osdp-qty { color: #1f2329; }
.odash-recent { display: flex; justify-content: space-between; padding: 8px 0;
  border-top: 1px solid #f3f4f6; font-size: 12px; }
.orec-main { color: #6b7280; }
.orec-qty { color: #1f2329; font-weight: 600; }
/* 扎详情弹窗 */
.obp-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 60; }
.obp-pop { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 480px; max-width: 92%; max-height: 82%; overflow-y: auto;
  background: #fff; border-radius: 12px; padding: 18px; z-index: 61; }
.obp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.obp-no { font-weight: 700; color: #1f2329; }
.obp-close { font-size: 20px; color: #9aa1ab; cursor: pointer; }
.obp-meta { font-size: 13px; color: #1f2329; }
.obp-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff; margin-left: 8px; }
.obp-done-time { font-size: 12px; color: #9aa1ab; margin: 8px 0; }
.obp-proc { padding: 10px 0; border-top: 1px solid #f3f4f6; }
.obp-proc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.obp-name { font-size: 13px; font-weight: 600; color: #1f2329; }
.obp-stag { font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff; }
.obp-detail { font-size: 12px; color: #6b7280; }
.obp-person { font-size: 12px; color: #1f2329; margin-top: 4px; }
.obp-person.out { color: #e8740c; }
.obp-person.time { color: #9aa1ab; }

/* ============ 裁床单打印预览 ============ */
.cutsheet-overlay { position: fixed; left: 210px; top: 60px; right: 0; bottom: 0; z-index: 70; background: #eef0f3;
  display: flex; flex-direction: column; }
.cutsheet-bar { display: flex; align-items: center; gap: 14px; background: #fff;
  padding: 10px 18px; border-bottom: 1px solid #e6e8ec; }
.cutsheet-icon { font-size: 30px; color: #1677ff; cursor: pointer; line-height: 1; width: 26px; }
.cutsheet-bar-title { font-size: 15px; font-weight: 600; color: #1f2329; flex: 1; }
.cutsheet-bar-actions { display: flex; gap: 10px; }
.cutsheet-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.cs-paper { background: #fff; max-width: 820px; margin: 0 auto; padding: 40px 46px;
  border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,0.06); color: #1f2329; }
.cs-factory { text-align: center; font-size: 18px; font-weight: 700; }
.cs-title { text-align: center; font-size: 24px; letter-spacing: 8px;
  font-weight: 700; margin: 10px 0 18px; }
.cs-meta { font-size: 13px; line-height: 1.9; margin-bottom: 14px; }
.cs-mrow { display: inline-block; min-width: 48%; }
.cs-mlabel { color: #6b7280; }
.cs-sec-title { font-size: 14px; font-weight: 700; margin: 18px 0 8px;
  padding-left: 8px; border-left: 3px solid #1664ff; }
.cs-matrix, .cs-detail, .cs-usage { width: 100%; border-collapse: collapse; font-size: 12px; }
.cs-matrix th, .cs-matrix td, .cs-detail th, .cs-detail td, .cs-usage th, .cs-usage td {
  border: 1px solid #d8dce3; padding: 6px 8px; text-align: center; }
.cs-matrix th, .cs-detail th, .cs-usage th { background: #f7f8fa; font-weight: 600; }
.cs-matrix .c-color, .cs-matrix .c-total { background: #fafbfc; font-weight: 600; }
.cs-total-row td { background: #f7f8fa; font-weight: 700; }
.cs-sign { margin-top: 34px; font-size: 13px; color: #5b6470;
  display: flex; justify-content: space-between; }

/* 打印时：只显示裁床单，隐藏其他所有元素 */
@media print {
  body.cutsheet-printing * { visibility: hidden; }
  body.cutsheet-printing #cutsheet-overlay,
  body.cutsheet-printing #cutsheet-overlay * { visibility: visible; }
  body.cutsheet-printing #cutsheet-overlay {
    position: absolute; inset: 0; background: #fff; z-index: 999; }
  body.cutsheet-printing .cutsheet-bar { display: none; }
  body.cutsheet-printing .cutsheet-scroll { overflow: visible; padding: 0; }
  body.cutsheet-printing .cs-paper {
    box-shadow: none; max-width: none; padding: 0; margin: 0; }
}

/* ============ 发起返工表单 ============ */
.rwf-binfo { background: #f0f6ff; border-radius: 8px; padding: 8px 12px;
  font-size: 13px; color: #1664ff; margin: 6px 0; }
#rwf-body select, #rwf-body input, #rwf-body textarea { width: 100%; }
#rwf-file { padding: 6px 0; }
.rwf-loading { color: #9aa1ab; font-size: 13px; padding: 10px 0; }

/* ============ 员工表单头像 ============ */
.sf-avatar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sf-avatar { position: relative; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 1px solid #dfe4ea; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: #f5f7fa; flex: 0 0 72px; }
.sf-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sf-avatar-ph { font-size: 26px; color: #9aa1ab; }
.sf-avatar-mask { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45);
  color: #fff; font-size: 11px; text-align: center; padding: 2px 0; }
.sf-avatar-tip { font-size: 12px; color: #8a919c; }
.fin-empty-stock { color: #b45309; background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.cb-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #e8f1ff; border: 1px solid #bcd3fb; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.cb-filter-tip { font-size: 13px; color: #1664ff; font-weight: 600; }
/* 新增床次全屏页 */
.cba-box { width: 1280px; max-width: 96%; height: 100%; display: flex; flex-direction: column; background: #f4f6f9; }
.cba-content { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }

/* 新增/编辑订单全屏页（独立页面替代弹窗） */
.of-box { width: 1080px; max-width: 96%; height: 100%; display: flex; flex-direction: column; background: #f4f6f9; }
.of-content { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.of-card { background: #fff; border: 1px solid #e8ebf0; border-radius: 10px; padding: 20px 22px; }
.of-card .form-section-title:first-child { margin-top: 0; }
.of-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px;
  background: #fff; border: 1px solid #e8ebf0; border-radius: 10px; padding: 16px 20px; }
.of-actions button:disabled { opacity: .55; cursor: not-allowed; }

.cba-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px;
  background: #fff; border: 1px solid #e8ebf0; border-radius: 10px; padding: 16px 20px; }
.mx-no-color { text-align: center; color: #8a919c; font-size: 13px; padding: 18px 10px; background: #fafbfc; }

/* ===== 裁床详情（对齐小程序 cutBedDetail） ===== */
.cbd-card { background: #fff; border: 1px solid #eceff3; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.cbd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cbd-cutno { font-size: 17px; font-weight: 700; color: #1f2733; }
.cbd-status { font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.cbd-status.edit { color: #d48806; background: #fff7e6; border: 1px solid #ffd591; }
.cbd-status.submitted { color: #1664ff; background: #e8f1ff; border: 1px solid #bcd3fb; }
.cbd-info-row { display: flex; font-size: 13px; padding: 5px 0; }
.cbd-label { width: 84px; color: #8a919c; flex-shrink: 0; }
.cbd-value { color: #1f2733; font-weight: 600; }
.cbd-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 12px; }
.cbd-thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid #e8ebf0; cursor: zoom-in; }
.cbd-card-title { font-size: 15px; font-weight: 700; color: #1f2733; margin-bottom: 12px; }
.cbd-card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cbd-card-title-row .cbd-card-title { margin-bottom: 0; }
.cbd-empty { color: #8a919c; font-size: 13px; padding: 8px 0; }
.cbd-bed-group { padding: 12px 0; border-bottom: 1px solid #f2f4f7; }
.cbd-bed-group:last-child { border-bottom: none; }
.cbd-bed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cbd-bed-title { display: flex; align-items: center; gap: 14px; }
.cbd-chip { display: inline-block; background: #1664ff; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.cbd-bed-meta { font-size: 13px; color: #4b5563; }
.cbd-bed-del { font-size: 13px; color: #ff4d4f; cursor: pointer; }
.cbd-bed-summary { font-size: 13px; color: #8a919c; }
.cbd-table-scroll { overflow-x: auto; }
.cbd-grid-table, .cbd-usage-table, .cbd-bundle-table { width: 100%; border-collapse: collapse; }
.cbd-grid-table th, .cbd-grid-table td,
.cbd-usage-table th, .cbd-usage-table td,
.cbd-bundle-table th, .cbd-bundle-table td { padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid #f2f4f7; text-align: left; white-space: nowrap; }
.cbd-grid-table thead th, .cbd-usage-table thead th, .cbd-bundle-table thead th { color: #6b7280; background: #fafbfc; font-weight: 600; }
.cbd-grid-table .cbd-row-head { color: #1f2733; background: #fafbfc; font-weight: 600; }
.cbd-grid-table .cbd-row-total { color: #1664ff; font-weight: 700; }
.cbd-usage-tip { font-size: 12.5px; color: #8a919c; line-height: 1.7; background: #fafbfc; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.cbd-u-name { font-size: 13px; font-weight: 600; color: #1f2733; display: flex; align-items: center; gap: 6px; }
.cbd-u-type { font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.cbd-u-type.main { color: #1664ff; background: #e8f1ff; }
.cbd-u-type.aux { color: #d48806; background: #fff7e6; }
.cbd-u-color { font-size: 12px; color: #8a919c; margin-top: 3px; }
.cbd-usage-input { width: 96px; padding: 6px 8px; border: 1px solid #d4d9e0; border-radius: 6px; font-size: 13px; }
.cbd-usage-input:focus { border-color: #1664ff; outline: none; }
.cbd-actual { font-size: 13px; color: #1f2733; }
.cbd-multi-btn { font-size: 13px; color: #ff4d4f; cursor: pointer; }
.cbd-bed-section-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; }
.cbd-bed-section-staff { font-size: 13px; color: #4b5563; }
.cbd-suite { color: #d48806; font-weight: 600; }
.cbd-op-td { display: flex; gap: 10px; }
.cbd-op-edit { color: #1664ff; font-size: 12.5px; cursor: pointer; }
.cbd-op-qr { color: #1664ff; font-size: 12.5px; cursor: pointer; }
.cbd-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid #c4cad3; border-radius: 4px; cursor: pointer; font-size: 12px; color: #fff; }
.cbd-check.checked { background: #1664ff; border-color: #1664ff; }
.cbd-multi-bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.cbd-select-all { font-size: 13px; color: #1664ff; cursor: pointer; }
.cbd-multi-confirm { padding: 7px 16px; background: #ff4d4f; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.cbd-preview-bar, .cbd-bottom-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

/* 已提交裁床单：新增床次页顶部警告条 */
.cb-locked-warn { padding: 12px 16px; margin-bottom: 16px; background: #fff4ec; border: 1px solid #ffb08a; border-left: 4px solid #ff7a1a; border-radius: 8px; color: #b34800; font-size: 13.5px; line-height: 1.7; }
.cba-actions button:disabled { opacity: .55; cursor: not-allowed; }

