/* ========== 重置 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f5f8; color: #2c3e50; font-size: 14px;
}
input, button, textarea, select { font: inherit; color: inherit; outline: none; border: none; background: transparent; }
button { cursor: pointer; }

/* ========== 通用按钮 ========== */
.btn { padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: filter 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.97); filter: brightness(0.95); }
.btn-primary { background: #e84c4c; color: #fff; }
.btn-ghost { background: #fff; color: #555; border: 1px solid #dcdfe6; }
.btn-danger { background: #ff5252; color: #fff; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ========== 登录页 ========== */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #e84c4c 0%, #ff7750 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border-radius: 16px; padding: 32px 26px; width: 100%; max-width: 360px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.login-logo { font-size: 36px; font-weight: 800; text-align: center; color: #e84c4c; letter-spacing: 4px; margin-bottom: 4px; }
.login-sub { text-align: center; color: #888; font-size: 13px; margin-bottom: 26px; }
.login-tip { text-align: center; color: #888; font-size: 12px; margin-top: 14px; line-height: 1.6; }
.login-tip b { color: #e84c4c; }

/* ========== 表单 ========== */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; color: #888; margin-bottom: 6px; }
.form-row input,
.form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff;
}
.form-row input:focus, .form-row select:focus { border-color: #e84c4c; background: #fffbfb; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-with-unit { display: flex; align-items: center; gap: 6px; }
.qty-with-unit input { flex: 1; }
.qty-unit { color: #888; font-size: 15px; font-weight: 600; min-width: 24px; white-space: nowrap; }
.picker-row { display: flex; gap: 8px; }
.picker-row input { flex: 1; }
.selected-tag {
  display: inline-block; margin-top: 8px;
  padding: 6px 12px; background: #fff1f1; color: #e84c4c; border-radius: 6px; font-weight: 600;
  border: 1px solid #ffd6d6;
}

/* ========== 主框架 ========== */
.main-page { min-height: 100vh; padding-bottom: 70px; position: relative; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: linear-gradient(135deg, #e84c4c, #ff7750); color: #fff;
  box-shadow: 0 2px 8px rgba(232,76,76,0.25);
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.topbar-btn { padding: 5px 10px; background: rgba(255,255,255,0.2); color: #fff; border-radius: 12px; font-size: 12px; }

/* ========== 卡片 ========== */
.views { padding: 14px 14px 20px; }
.view { display: none; }
.view.active { display: block; }
.card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #2c3e50; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-sub { font-size: 12px; color: #888; margin-bottom: 10px; line-height: 1.6; }
.card-sub code { background: #f5f5f5; padding: 1px 5px; border-radius: 4px; font-size: 11px; color: #e84c4c; }
.barcode-hint { font-size: 12px; margin: 4px 0 8px; padding: 6px 10px; border-radius: 6px; line-height: 1.5; display: none; }
.barcode-hint.warn { display: block; background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.barcode-hint.ok { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ========== 首页 ========== */
.home-stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.home-stat { background: #fafbfc; border-radius: 10px; padding: 12px 6px; text-align: center; }
.home-stat-num { font-size: 22px; font-weight: 800; color: #e84c4c; line-height: 1.15; word-break: break-all; }
.home-stat-num.split { font-size: 15px; }
.home-stat-label { font-size: 11px; color: #888; margin-top: 6px; }
.home-status { padding: 10px 12px; background: #fff8e1; border-radius: 8px; color: #8a6d3b; font-size: 13px; }
.home-status.ok { background: #e8f5e9; color: #2e7d32; }
.home-status.warn { background: #ffebee; color: #c62828; }

/* 盘点差异（盘盈亏） */
.stk-diff-link { color: #2b6cb8; cursor: pointer; user-select: none; }
.stk-diff-box { margin-top: 8px; overflow-x: auto; }
.stk-diff-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stk-diff-table th, .stk-diff-table td { border-bottom: 1px solid #eef0f2; padding: 6px 8px; text-align: right; white-space: nowrap; }
.stk-diff-table th:first-child, .stk-diff-table td:first-child { text-align: left; }
.stk-diff-table th { background: #f5f6f7; color: #555; font-weight: 600; }
.stk-diff-table .pos { color: #2e7d32; font-weight: 700; }
.stk-diff-table .neg { color: #c62828; font-weight: 700; }
.stk-diff-unit { color: #999; font-size: 11px; margin-left: 4px; }
.stk-diff-base { color: #888; font-size: 11px; padding: 6px 2px 2px; }

.big-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-btn { background: #fff; border-radius: 14px; padding: 18px 12px; text-align: center; transition: filter 0.15s, transform 0.1s; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.big-btn:active { transform: scale(0.97); filter: brightness(0.95); }
.big-btn-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.big-btn-text { font-weight: 700; font-size: 15px; color: #2c3e50; }
.big-btn-sub { font-size: 11px; color: #888; margin-top: 4px; }
.big-btn-blue { border-top: 3px solid #4fc3f7; }
.big-btn-green { border-top: 3px solid #66bb6a; }
.big-btn-orange { border-top: 3px solid #ffa726; }
.big-btn-gray { border-top: 3px solid #b0bec5; }

/* ========== 周选择器 ========== */
.week-switcher { display: flex; align-items: center; gap: 6px; }
.week-select { padding: 5px 8px; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; font-size: 13px; max-width: 130px; }

/* ========== 销售/盘点列表 ========== */
.sales-list, .inventory-list, .record-list, .product-list { max-height: 60vh; overflow-y: auto; }
.sales-list { margin-bottom: 14px; }
.sales-cat-group { margin-bottom: 4px; }
.sales-cat-header {
  background: #f5f5f5; padding: 8px 10px; font-size: 13px; font-weight: 700; color: #333;
  border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 2;
}
.sales-cat-count { font-size: 11px; color: #999; font-weight: 400; }
.sales-item, .inv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid #f0f0f0;
}
.sales-item:last-child, .inv-item:last-child { border-bottom: none; }
.sales-item-name, .inv-item-name { flex: 1; font-size: 14px; }
.sales-item-name small, .inv-item-name small { display: block; color: #999; font-size: 11px; margin-top: 2px; }
.sales-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sales-item-unit { font-size: 12px; color: #999; min-width: 24px; }
.sales-item input, .inv-item input {
  width: 80px; padding: 8px 6px; border: 1px solid #dcdfe6; border-radius: 6px; text-align: center; font-weight: 600;
  background: #fff;
}
.inv-item-unit { font-size: 11px; color: #999; margin-left: 4px; }
.inv-item-theory { font-size: 11px; color: #888; width: 50px; text-align: center; flex-shrink: 0; }
.inv-item-theory b { color: #555; font-size: 14px; }
.inv-item-diff { min-width: 36px; text-align: center; font-weight: 700; font-size: 13px; }
.inv-item-diff.pos { color: #2e7d32; }
.inv-item-diff.neg { color: #c62828; }
.inv-item-diff.zero { color: #999; }

.search-matches { max-height: 200px; overflow-y: auto; }
.search-match-item {
  padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; cursor: pointer;
}
.search-match-item:active { background: #f5f5f5; }
.search-match-item small { color: #999; font-size: 11px; margin-left: 2px; }
.search-match-empty { padding: 12px; text-align: center; color: #999; font-size: 13px; }

.record-item {
  padding: 10px 8px; border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.record-item-head { display: flex; justify-content: space-between; font-weight: 600; }
.record-item-sub { color: #888; font-size: 12px; margin-top: 4px; }
.record-item-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: #aaa; }

.prod-cat-group { margin-bottom: 4px; }
.prod-cat-header {
  position: sticky; top: 0; z-index: 1;
  background: #f5f7fa; padding: 6px 8px;
  font-size: 13px; font-weight: 700; color: #606266;
  display: flex; align-items: center;
  border-bottom: 1px solid #e8e8e8;
}
.prod-cat-name { flex: 1; display: flex; align-items: center; gap: 8px; }
.prod-cat-label { flex: 0 0 70px; text-align: right; font-size: 13px; color: #888; font-weight: 400; }
.prod-cat-count { font-size: 11px; font-weight: 400; color: #999; }
.prod-cat-actions { flex: 0 0 120px; }
.prod-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; border-bottom: 1px solid #f0f0f0;
}
.prod-row:last-child { border-bottom: none; }
.prod-row-name { flex: 1; font-size: 14px; font-weight: 500; color: #333; }
.prod-row-spec { flex: 0 0 70px; font-size: 13px; color: #888; text-align: right; }
.prod-row-actions { flex: 0 0 120px; display: flex; gap: 10px; justify-content: flex-end; }
.prod-row-actions .prod-row-edit { background: #409eff; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; flex-shrink: 0; }
.prod-row-actions .prod-row-del { background: #ff5252; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; flex-shrink: 0; }

.inv-summary { display: flex; gap: 12px; margin: 10px 0; padding: 10px 12px; background: #fafbfc; border-radius: 8px; font-size: 13px; color: #555; flex-wrap: wrap; }
.inv-summary-item { display: flex; gap: 4px; }
.inv-summary-item b { color: #e84c4c; }

.prod-cat-select {
  padding: 8px; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 13px; background: #fff; flex: 1; min-width: 0;
}

/* ========== 套餐与出库 ========== */
.card-title-btns { display: flex; gap: 8px; flex-shrink: 0; }
.combo-row { align-items: flex-start; }
.combo-sub { font-size: 12px; color: #e84c4c; margin-top: 4px; font-weight: 400; line-height: 1.5; }
.combo-sub2 { font-size: 11px; color: #aaa; margin-top: 2px; font-weight: 400; }
.modal-box-tall { max-height: 88vh; overflow-y: auto; }
.combo-items { margin-bottom: 8px; }
.combo-empty { padding: 16px; text-align: center; color: #bbb; font-size: 13px; background: #fafbfc; border-radius: 8px; }
.combo-collapsed-hint { padding: 12px 4px 6px; color: #b8bec6; font-size: 12px; text-align: center; }
.combo-item-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 6px; border-bottom: 1px solid #f0f0f0;
}
.combo-item-name { flex: 1; font-size: 13px; }
.combo-item-name small { display: block; color: #aaa; font-size: 11px; margin-top: 2px; }
.combo-item-qty {
  width: 74px; padding: 7px 5px; border: 1px solid #dcdfe6; border-radius: 6px;
  text-align: center; font-weight: 600; background: #fff;
}
.combo-item-unit { font-size: 12px; color: #999; min-width: 26px; }
.combo-item-g { font-size: 11px; color: #e84c4c; min-width: 52px; text-align: right; }
.combo-item-del {
  width: 26px; height: 26px; border-radius: 50%; background: #ff5252; color: #fff;
  font-size: 12px; line-height: 1; flex-shrink: 0;
}
.combo-add-row { margin-top: 8px; }
.out-qty-input {
  width: 74px; padding: 8px; border: 1px solid #dcdfe6; border-radius: 6px;
  text-align: center; font-weight: 600; background: #fff; flex-shrink: 0;
}
.out-preview { font-size: 12px; color: #e84c4c; margin-top: 6px; line-height: 1.5; min-height: 16px; }
.combo-qty-hint { font-size: 12px; color: #999; }
.combo-group-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.combo-group-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; color: #555;
  background: #f4f6f8; border: 1px solid #e4e7ed; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.combo-group-tab em {
  font-style: normal; font-size: 11px; color: #999;
  background: #fff; border-radius: 8px; padding: 0 6px; line-height: 16px;
}
.combo-group-tab.on {
  background: #e8f2ff; border-color: #8ab6f0; color: #1a6acb; font-weight: 600;
}
.combo-group-tab.on em { color: #1a6acb; }
.combo-card-list {
  display: flex; flex-direction: column; gap: 8px;
}
.combo-card {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; background: #fff;
  border: 1px solid #e4e7ed; border-radius: 10px;
  cursor: pointer; font-family: inherit;
}
.combo-card:active { background: #f0f6ff; border-color: #8ab6f0; }
.combo-card-name {
  display: block; font-size: 14px; font-weight: 600; color: #222;
  margin-bottom: 3px;
}
.combo-card-sub {
  display: block; font-size: 12px; color: #777; line-height: 1.5;
}
.combo-card-remark {
  display: block; font-size: 12px; color: #e84c4c; margin-top: 2px;
}
.combo-card-tag {
  display: inline-block; font-size: 11px; font-weight: 400;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  vertical-align: middle;
}
.combo-card-tag.weigh { background: #fff4e5; color: #b26a00; border: 1px solid #ffd699; }
.combo-card-tag.flex { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.combo-group-tag {
  display: inline-block; font-size: 11px; font-weight: 400;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  background: #eef3fa; color: #4a6b96; border: 1px solid #cddcf0;
  vertical-align: middle;
}
.rpt-rollup-row { background: #fff8ec; }
.rpt-rollup-row td { font-weight: 600; color: #8a5a00; border-top: 1px solid #f0dcb0; }
.rpt-rollup-tag {
  display: inline-block; font-size: 11px; font-weight: 400;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  background: #ffefd0; color: #8a5a00; border: 1px solid #f0dcb0;
  vertical-align: middle;
}
.rpt-rollup-members {
  font-size: 11px; font-weight: 400; color: #a9863f; margin-top: 2px; line-height: 1.4;
}
.rpt-summary-item { font-size: 12px; color: #666; margin-right: 12px; }
.out-cart { margin-bottom: 4px; }
.out-cart-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid #f0f0f0;
}
.out-cart-info { flex: 1; font-size: 13px; }
.out-cart-info b { font-weight: 600; color: #333; }
.out-cart-info small { display: block; color: #e84c4c; font-size: 11px; margin-top: 3px; line-height: 1.5; }
.out-items-box { background: #fafbfc; border-radius: 6px; padding: 6px 10px; margin: 6px 0 2px; }
.out-item-line { display: flex; justify-content: space-between; font-size: 12px; color: #666; padding: 2px 0; }
.out-item-line span:last-child { font-weight: 600; color: #e84c4c; white-space: nowrap; }
.out-item-line em { font-style: normal; color: #aaa; font-size: 11px; margin-left: 6px; }

/* 渠道标签 */
.out-channel {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  background: #fff1f1; color: #e84c4c; border: 1px solid #ffd6d6;
  border-radius: 9px; font-size: 10px; font-weight: 600; vertical-align: 1px;
}

/* 出库单号 */
.out-no {
  font-size: 15px; font-weight: 800; color: #2c3e50;
}

/* ========== 套餐类型切换 ========== */
.type-seg { display: flex; gap: 8px; }
.type-seg-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #dcdfe6;
  background: #fff; font-size: 13px; font-weight: 600; color: #888; text-align: center;
}
.type-seg-btn.on { background: #fff1f1; border-color: #e84c4c; color: #e84c4c; }

/* ========== 自选套餐槽位编辑 ========== */
.slot-box {
  border: 1px solid #ebeef5; border-radius: 8px; padding: 8px; margin-bottom: 8px; background: #fafbfc;
}
.slot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slot-label {
  flex: 1; padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 6px;
  font-size: 13px; font-weight: 600; background: #fff;
}
.combo-item-row-sub { background: #fff; border-radius: 6px; border-bottom: 1px solid #f0f0f0; }

/* ========== 自选套餐出库选品 ========== */
.flex-body { max-height: 46vh; overflow-y: auto; margin-bottom: 10px; }
.flex-slot { margin-bottom: 12px; }
.flex-slot-label { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; }
.flex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flex-chip {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #dcdfe6;
  background: #fff; font-size: 13px; color: #555;
}
.flex-chip.on { background: #fff1f1; border-color: #e84c4c; color: #e84c4c; font-weight: 700; }

/* ========== 称重出库确认 ========== */
.weigh-body { margin-bottom: 10px; }
.weigh-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px; border-bottom: 1px solid #f0f0f0;
}
.weigh-name { flex: 1; font-size: 13px; font-weight: 600; }
.weigh-name small { display: block; color: #888; font-size: 11px; margin-top: 3px; font-weight: 400; }
.weigh-inputs { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.weigh-input {
  width: 84px; padding: 8px 5px; border: 1px solid #dcdfe6; border-radius: 6px;
  text-align: center; font-weight: 700; color: #e84c4c; background: #fff;
}
.weigh-unit { font-size: 12px; color: #999; }

/* ========== 历史筛选 ========== */
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter-row select, .filter-row input { padding: 8px; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; font-size: 13px; }
.filter-dash { color: #999; text-align: center; font-size: 12px; }

/* ========== 报表 ========== */
.rpt-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.rpt-actions .btn { flex: 1; }
.rpt-summary { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: #fafbfc; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.rpt-summary-item { display: flex; gap: 4px; }
.rpt-summary-item b { color: #e84c4c; }
.report-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th, .report-table td { border: 1px solid #ebeef5; padding: 8px 6px; text-align: right; white-space: nowrap; }
.report-table th { background: #f7f8fa; font-weight: 600; color: #555; font-size: 12px; text-align: center; }
.report-table th:first-child, .report-table td:first-child { text-align: left; font-weight: 500; }
.report-table tr.diff-pos td:last-child { background: #fff5f5; color: #c62828; }
.report-table tr.diff-pos td:nth-last-child(2) { color: #2e7d32; }
.report-table tfoot td { background: #f7f8fa; font-weight: 700; }

/* ========== 底部 tab ========== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #fff;
  display: grid; grid-template-columns: repeat(6, 1fr); box-shadow: 0 -1px 6px rgba(0,0,0,0.06); z-index: 40;
}
.tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; }
.tab-item.active { color: #e84c4c; }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-label { font-size: 10px; margin-top: 2px; }

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: rgba(0,0,0,0.85); color: #fff; padding: 10px 18px; border-radius: 22px; font-size: 13px;
  z-index: 100; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 全局错误条 ========== */
.err-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: #ff5252; color: #fff; padding: 10px 14px;
  font-size: 13px; word-break: break-all; max-height: 40vh; overflow-y: auto;
  box-shadow: 0 2px 6px rgba(255,82,82,0.4);
}
.err-bar-close { float: right; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; margin-left: 8px; cursor: pointer; }

/* ========== 弹窗 ========== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 14px; padding: 16px; width: 88vw; max-width: 360px; max-height: 80vh;
  display: flex; flex-direction: column;
}
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; text-align: center; }
.modal-search { padding: 10px; border: 1px solid #dcdfe6; border-radius: 8px; margin-bottom: 10px; }
.picker-list { flex: 1; overflow-y: auto; margin-bottom: 10px; }
.picker-cat-group { margin-bottom: 4px; }
.picker-cat-header {
  position: sticky; top: 0; z-index: 1;
  background: #f5f7fa; padding: 6px 12px;
  font-size: 13px; font-weight: 700; color: #606266;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #e8e8e8;
}
.picker-cat-count { font-size: 11px; font-weight: 400; color: #999; }
.picker-item {
  padding: 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.picker-item:active { background: #f5f5f5; }
.picker-item small { color: #888; font-size: 11px; }

/* ========== textarea (jsyan 字体适配) ========== */
textarea { width: 100%; padding: 10px; border: 1px solid #dcdfe6; border-radius: 8px; font: inherit; resize: vertical; min-height: 100px; }

/* 拌拌盘点组与出库提示（v20260929j） */
.inv-rollup-group .sales-cat-header { color: #8a5a00; background: #fff8ec; }
.inv-item-rollup { background: #fffdf6; }
.inv-item-members { font-size: 10px; color: #b08a3e; margin-top: 2px; line-height: 1.4; }
.out-prod-hint { font-size: 11px; color: #8a5a00; background: #fff8ec; border-radius: 6px; padding: 6px 8px; margin-top: 6px; line-height: 1.5; }
