/* 样品管理系统 - 样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-sub: #64748b;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ===== 登录 ===== */
#loginView {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 60%);
}
.login-card {
  width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(37, 99, 235, .10);
  padding: 36px 32px;
}
.login-logo { text-align: center; margin-bottom: 6px; font-size: 34px; }
.login-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--text-sub); margin-bottom: 24px; font-size: 13px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; margin-bottom: 6px; color: var(--text-sub); font-size: 13px; }
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  transition: all .15s;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; padding: 10px; }
.login-error { color: var(--danger); font-size: 13px; margin: 8px 0; min-height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-sub); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* 登录方式切换标签 */
.login-tabs { display: flex; gap: 6px; background: #f1f5f9; border-radius: 10px; padding: 4px; margin: 16px 0; }
.login-tab {
  flex: 1; padding: 8px 0; border: none; background: transparent; border-radius: 8px;
  font-size: 13.5px; color: var(--text-sub); cursor: pointer; transition: all .15s;
}
.login-tab.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }

/* ===== 布局 ===== */
#appView { display: flex; min-height: 100vh; }
#sidebar {
  width: 208px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.side-logo { padding: 20px 18px 14px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.side-logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.side-nav { flex: 1; padding: 8px 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-sub);
  cursor: pointer;
  margin-bottom: 4px;
  font-weight: 500;
  transition: all .15s;
}
.nav-item:hover { background: #f1f5f9; color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary); }
.nav-item .ico { font-size: 16px; }
.side-foot { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-sub); }
/* 侧边栏收缩 */
.side-collapse {
  margin-left: auto;
  border: none; background: none; cursor: pointer;
  font-size: 14px; color: var(--text-sub);
  padding: 4px 8px; border-radius: 6px; line-height: 1;
}
.side-collapse:hover { background: #f1f5f9; color: var(--text); }
#sidebar.collapsed { width: 58px; }
#sidebar.collapsed .txt { display: none; }
#sidebar.collapsed .side-logo { justify-content: center; flex-direction: column; gap: 8px; padding: 16px 6px 10px; }
#sidebar.collapsed .side-collapse { margin-left: 0; }
#sidebar.collapsed .nav-item { justify-content: center; padding: 10px 6px; }
#sidebar.collapsed .side-foot { text-align: center; padding: 10px 4px; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 { font-size: 17px; font-weight: 600; flex: 1; }
.bell-wrap { position: relative; }
.bell-btn { position: relative; font-size: 18px; background: none; border: none; padding: 6px; border-radius: 8px; }
.bell-btn:hover { background: #f1f5f9; }
.bell-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.content { padding: 20px 24px; flex: 1; min-width: 0; }
.page { display: none; }
.page.active { display: block; }

/* ===== 卡片 / 表格 ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.input, select.input, textarea.input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--card);
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--primary); }
/* 表格：固定高度滚动容器（表头吸顶 + 横向滚动条固定在底部） */
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 170px);
  border-radius: var(--radius);
}
table.data { width: 100%; border-collapse: collapse; min-width: 1080px; }
table.data th, table.data td {
  padding: 8px 9px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 13px;
}
table.data th { color: var(--text-sub); font-weight: 600; background: #f8fafc; position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }
/* 列宽拖动手柄 */
.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 5;
}
.col-resizer:hover, .col-resizer:active { background: rgba(37, 99, 235, .3); border-radius: 3px; }
/* 固定列宽后内容超宽时截断显示省略号 */
table.data th, table.data td { overflow: hidden; text-overflow: ellipsis; }
/* 隐藏/显示后的列表（详情、附件等）不受限高影响 */
.drawer .table-wrap, .modal .table-wrap { max-height: none; }
table.data tbody tr:hover { background: #f8fafc; }
.cell-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: #f1f5f9; }
.thumb-empty { width: 44px; height: 44px; border-radius: 8px; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 16px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #f1f5f9; color: var(--text-sub); border: 1px solid var(--border); }
.tag.blue { background: var(--primary-light); color: var(--primary-dark); border-color: #bfdbfe; }
.tag.green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag.orange { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.tag.purple { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.tag.red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.tag.gray { background: #f1f5f9; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 6px 0; color: var(--text-sub); font-size: 13px; }
.empty-tip { text-align: center; color: var(--text-sub); padding: 44px 0; }
.row-actions { display: flex; gap: 6px; }

/* ===== 弹窗 / 抽屉 ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--card);
  border-radius: 14px;
  width: 720px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}
.modal.wide { width: 880px; }
.modal.xwide { width: 1180px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-sub); padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: #f1f5f9; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-item label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 5px; }
.form-item .req::after { content: " *"; color: var(--danger); }
.form-item .input, .form-item select, .form-item textarea { width: 100%; }
.form-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.upload-box { border: 1px dashed var(--border); border-radius: 10px; padding: 14px; text-align: center; color: var(--text-sub); cursor: pointer; transition: all .15s; font-size: 13px; }
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: #f8faff; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.upload-preview .pv { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .pv-file { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; text-align: center; padding: 4px; word-break: break-all; background: #f8fafc; }
.pv-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15,23,42,.6); color: #fff; border: none; font-size: 11px; line-height: 1; }

/* ===== 抽屉详情 ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 94vw;
  background: var(--card);
  z-index: 51;
  box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; font-size: 13.5px; }
.kv.cols2 { grid-template-columns: 96px 1fr 96px 1fr; }
@media (max-width: 980px) { .kv.cols2 { grid-template-columns: 88px 1fr; } }
.detail-top { display: flex; gap: 22px; align-items: flex-start; }
.detail-img { width: 250px; flex-shrink: 0; }
.detail-img img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #f8fafc; }
.detail-info { flex: 1; min-width: 0; }
@media (max-width: 980px) { .detail-top { flex-direction: column; } .detail-img { width: 100%; } }
.kv dt { color: var(--text-sub); }
.kv dd { word-break: break-all; }
.section-title { font-size: 14px; font-weight: 600; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 2px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline .t-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.timeline .t-meta { color: var(--text-sub); font-size: 12px; margin-top: 3px; }
.stage-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.stage-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-sub); background: #f8fafc; }
.stage-chip.done { background: var(--primary-light); border-color: #bfdbfe; color: var(--primary-dark); }
.stage-chip.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.attach-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.attach-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.attach-list a { color: var(--primary); text-decoration: none; }
.attach-list a:hover { text-decoration: underline; }

/* ===== 通知面板 ===== */
.notif-panel {
  position: absolute;
  top: 44px;
  right: 0;
  width: 360px;
  max-height: 460px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .16);
  z-index: 60;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; gap: 10px; }
.notif-item:hover { background: #f8fafc; }
.notif-item:last-child { border-bottom: none; }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.notif-item.read .dot { background: #cbd5e1; }
.notif-item.read .n-title { color: var(--text-sub); font-weight: 400; }
.n-title { font-size: 13.5px; font-weight: 600; }
.n-body { font-size: 12.5px; color: var(--text-sub); margin-top: 3px; }
.n-time { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

/* ===== 仪表盘 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card .s-label { color: var(--text-sub); font-size: 13px; }
.stat-card .s-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .s-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-grid .full { grid-column: span 2; }
.chart-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chart-box h4 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.chart-wrap { position: relative; height: 260px; }

/* ===== 用户 / 设置 ===== */
.settings-block { margin-bottom: 16px; }
.settings-block h3 { font-size: 15px; margin-bottom: 4px; }
.settings-block .desc { color: var(--text-sub); font-size: 13px; margin-bottom: 12px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; gap: 8px; align-items: center; }
.opt-row .input { flex: 1; }
.badge-admin { background: #ede9fe; color: #6d28d9; }
.badge-member { background: #f1f5f9; color: var(--text-sub); }
.switch { position: relative; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(16px); }

/* ===== Toast ===== */
#toastRoot { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 8px 30px rgba(15,23,42,.3); animation: toastIn .2s ease; max-width: 80vw; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--success); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  #sidebar { width: 62px; }
  .side-logo span.txt, .nav-item .txt { display: none; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-grid .full { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}

/* ===== 手机端适配（≤768px） ===== */
@media (max-width: 768px) {
  /* 登录页 */
  .login-card { width: 92vw; max-width: 380px; padding: 26px 20px; }

  /* 侧边栏 → 底部导航栏 */
  #appView { flex-direction: column; }
  #sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    width: auto;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, .08);
  }
  .side-logo, .side-foot { display: none; }
  .side-nav { display: flex; flex: 1; padding: 5px 6px; gap: 2px; }
  .nav-item {
    flex: 1; flex-direction: column; gap: 1px;
    padding: 5px 2px; margin: 0;
    font-size: 11px; text-align: center; justify-content: center; border-radius: 8px;
  }
  .nav-item .ico { font-size: 18px; }
  .main-area { padding-bottom: 62px; }

  /* 顶栏 */
  .topbar { padding: 0 12px; gap: 8px; height: 52px; }
  .topbar h1 { font-size: 16px; }
  .user-chip #userName { display: none; }
  .content { padding: 12px 12px 20px; }

  /* 表格容器：手机端取消固定高度，整页自然滚动 */
  .table-wrap { max-height: none; overflow-x: auto; }

  /* 工具栏 */
  .toolbar { gap: 8px; margin-bottom: 12px; }
  .toolbar .grow { min-width: 130px; }
  .toolbar .input { padding: 7px 8px; font-size: 13px; }

  /* 样品表 → 卡片列表（仅样品表；用户表保持横向滚动） */
  #samplesHead { display: none; }
  table.data { min-width: 0; border-collapse: separate; border-spacing: 0; }
  #samplesBody { display: block; padding: 4px 8px; }
  #samplesBody tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
  }
  #samplesBody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    border-bottom: none;
    white-space: normal;
    font-size: 13px;
    touch-action: manipulation;
  }
  #samplesBody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    width: 72px;
    color: var(--text-sub);
    font-size: 12.5px;
    line-height: 1.5;
  }
  #samplesBody td[data-label="序号"] { display: none; }
  #samplesBody td[data-label="样品单编号"]::before { display: none; }
  #samplesBody td[data-label="样品名称"] { font-size: 14px; font-weight: 600; }
  #samplesBody td[data-label="样品名称"]::before { display: none; }
  #samplesBody td[data-label="操作"]::before { display: none; }
  .row-actions { flex: 1; }
  .row-actions .btn { flex: 1; }

  /* 弹窗 */
  .overlay { padding: 10px; }
  .modal, .modal.wide, .modal.xwide { width: 96vw; }
  .modal-head { padding: 12px 14px; }
  .modal-head h3 { font-size: 15px; }
  .modal-body { padding: 14px; }
  .modal-foot { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .kv.cols2 { grid-template-columns: 88px 1fr; }

  /* 仪表盘 */
  .stat-grid { gap: 10px; }
  .chart-wrap { height: 220px; }

  /* 其他 */
  .pager { justify-content: center; flex-wrap: wrap; }
  #toastRoot { top: 10px; width: 92vw; }
  .toast { max-width: 92vw; }
  .opt-row { flex-wrap: wrap; }
  .notif-panel { width: min(92vw, 340px); }
}

/* 右上角姓名修改弹层 */
.user-chip #userName, .user-chip #userAvatar { cursor: pointer; }
.name-popover {
  position: fixed;
  z-index: 1000;
  width: 260px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .12);
  padding: 14px;
}

/* 样品BOM明细表 */
.bom-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bom-table th, .bom-table td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; white-space: nowrap; }
.bom-table th { background: #f8fafc; color: var(--text-sub); font-weight: 600; }
.bom-table .input { padding: 4px 8px; font-size: 13px; width: 100%; min-width: 90px; }
.bom-table td[colspan] { text-align: center; white-space: normal; }
